blob: 2bbf60fe1fdb96e296ee115e242a9eac9fe18b5a [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",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001522 .name = "AT25DF021A",
1523 .bustype = BUS_SPI,
1524 .manufacture_id = ATMEL_ID,
1525 .model_id = ATMEL_AT25DF021A,
1526 .total_size = 256,
1527 .page_size = 256,
1528 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1530 .tested = TEST_OK_PREW,
1531 .probe = probe_spi_rdid,
1532 .probe_timing = TIMING_ZERO,
1533 .block_erasers =
1534 {
1535 {
1536 .eraseblocks = { {4 * 1024, 64} },
1537 .block_erase = spi_block_erase_20,
1538 }, {
1539 .eraseblocks = { {32 * 1024, 8} },
1540 .block_erase = spi_block_erase_52,
1541 }, {
1542 .eraseblocks = { {64 * 1024, 4} },
1543 .block_erase = spi_block_erase_d8,
1544 }, {
1545 .eraseblocks = { {256 * 1024, 1} },
1546 .block_erase = spi_block_erase_60,
1547 }, {
1548 .eraseblocks = { {256 * 1024, 1} },
1549 .block_erase = spi_block_erase_c7,
1550 }
1551 },
1552 .printlock = spi_prettyprint_status_register_at25df,
1553 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1554 .write = spi_chip_write_256,
1555 .read = spi_chip_read,
1556 .voltage = {1650, 3600},
1557 },
1558
1559 {
1560 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001564 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .total_size = 512,
1566 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001567 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001568 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001570 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001571 .block_erasers =
1572 {
1573 {
1574 .eraseblocks = { {4 * 1024, 128} },
1575 .block_erase = spi_block_erase_20,
1576 }, {
1577 .eraseblocks = { {32 * 1024, 16} },
1578 .block_erase = spi_block_erase_52,
1579 }, {
1580 .eraseblocks = { {64 * 1024, 8} },
1581 .block_erase = spi_block_erase_d8,
1582 }, {
1583 .eraseblocks = { {512 * 1024, 1} },
1584 .block_erase = spi_block_erase_60,
1585 }, {
1586 .eraseblocks = { {512 * 1024, 1} },
1587 .block_erase = spi_block_erase_c7,
1588 }
1589 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001590 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001591 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001592 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001593 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001594 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001595 },
1596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 {
1598 .vendor = "Atmel",
1599 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001600 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001602 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001603 .total_size = 1024,
1604 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001605 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001606 .tested = TEST_UNTESTED,
1607 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001608 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001609 .block_erasers =
1610 {
1611 {
1612 .eraseblocks = { {4 * 1024, 256} },
1613 .block_erase = spi_block_erase_20,
1614 }, {
1615 .eraseblocks = { {32 * 1024, 32} },
1616 .block_erase = spi_block_erase_52,
1617 }, {
1618 .eraseblocks = { {64 * 1024, 16} },
1619 .block_erase = spi_block_erase_d8,
1620 }, {
1621 .eraseblocks = { {1024 * 1024, 1} },
1622 .block_erase = spi_block_erase_60,
1623 }, {
1624 .eraseblocks = { {1024 * 1024, 1} },
1625 .block_erase = spi_block_erase_c7,
1626 }
1627 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001628 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001629 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001630 .write = spi_chip_write_256,
1631 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001632 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 },
1634
1635 {
1636 .vendor = "Atmel",
1637 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001638 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001640 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001641 .total_size = 1024,
1642 .page_size = 256,
1643 .feature_bits = FEATURE_WRSR_WREN,
1644 .tested = TEST_UNTESTED,
1645 .probe = probe_spi_rdid,
1646 .probe_timing = TIMING_ZERO,
1647 .block_erasers =
1648 {
1649 {
1650 .eraseblocks = { {4 * 1024, 256} },
1651 .block_erase = spi_block_erase_20,
1652 }, {
1653 .eraseblocks = { {32 * 1024, 32} },
1654 .block_erase = spi_block_erase_52,
1655 }, {
1656 .eraseblocks = { {64 * 1024, 16} },
1657 .block_erase = spi_block_erase_d8,
1658 }, {
1659 .eraseblocks = { {1024 * 1024, 1} },
1660 .block_erase = spi_block_erase_60,
1661 }, {
1662 .eraseblocks = { {1024 * 1024, 1} },
1663 .block_erase = spi_block_erase_c7,
1664 }
1665 },
1666 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001667 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001668 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001669 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001670 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001671 },
1672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 {
1674 .vendor = "Atmel",
1675 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001676 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001678 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001679 .total_size = 2048,
1680 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001681 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001682 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001684 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001685 .block_erasers =
1686 {
1687 {
1688 .eraseblocks = { {4 * 1024, 512} },
1689 .block_erase = spi_block_erase_20,
1690 }, {
1691 .eraseblocks = { {32 * 1024, 64} },
1692 .block_erase = spi_block_erase_52,
1693 }, {
1694 .eraseblocks = { {64 * 1024, 32} },
1695 .block_erase = spi_block_erase_d8,
1696 }, {
1697 .eraseblocks = { {2 * 1024 * 1024, 1} },
1698 .block_erase = spi_block_erase_60,
1699 }, {
1700 .eraseblocks = { {2 * 1024 * 1024, 1} },
1701 .block_erase = spi_block_erase_c7,
1702 }
1703 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001704 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001705 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001706 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001707 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001708 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001709 },
1710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 {
1712 .vendor = "Atmel",
1713 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001714 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001715 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001716 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001717 .total_size = 4096,
1718 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001719 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
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",
1751 .name = "AT25DF321A",
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_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001755 .total_size = 4096,
1756 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001759 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001761 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 1024} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 128} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 64} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {4 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {4 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001781 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001783 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001785 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001786 },
1787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001788 {
1789 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001790 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001794 .total_size = 8192,
1795 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001796 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001797 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001798 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001799 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001800 .block_erasers =
1801 {
1802 {
1803 .eraseblocks = { {4 * 1024, 2048} },
1804 .block_erase = spi_block_erase_20,
1805 }, {
1806 .eraseblocks = { {32 * 1024, 256} },
1807 .block_erase = spi_block_erase_52,
1808 }, {
1809 .eraseblocks = { {64 * 1024, 128} },
1810 .block_erase = spi_block_erase_d8,
1811 }, {
1812 .eraseblocks = { {8 * 1024 * 1024, 1} },
1813 .block_erase = spi_block_erase_60,
1814 }, {
1815 .eraseblocks = { {8 * 1024 * 1024, 1} },
1816 .block_erase = spi_block_erase_c7,
1817 }
1818 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001819 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001820 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001821 .write = spi_chip_write_256,
1822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001823 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 },
1825
1826 {
1827 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001828 .name = "AT25DL081",
1829 .bustype = BUS_SPI,
1830 .manufacture_id = ATMEL_ID,
1831 .model_id = ATMEL_AT25DF081,
1832 .total_size = 1024,
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, 256} },
1843 .block_erase = spi_block_erase_20,
1844 }, {
1845 .eraseblocks = { {32 * 1024, 32} },
1846 .block_erase = spi_block_erase_52,
1847 }, {
1848 .eraseblocks = { {64 * 1024, 16} },
1849 .block_erase = spi_block_erase_d8,
1850 }, {
1851 .eraseblocks = { {1 * 1024 * 1024, 1} },
1852 .block_erase = spi_block_erase_60,
1853 }, {
1854 .eraseblocks = { {1 * 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",
1867 .name = "AT25DL161",
1868 .bustype = BUS_SPI,
1869 .manufacture_id = ATMEL_ID,
1870 .model_id = ATMEL_AT25DL161,
1871 .total_size = 2048,
1872 .page_size = 256,
1873 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1874 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1875 .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,
1898 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1899 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1900 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1901 .voltage = {1650, 1950},
1902 },
1903
1904 {
1905 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001906 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001907 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001908 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001909 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001910 .total_size = 2048,
1911 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001912 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001914 .tested = TEST_UNTESTED,
1915 .probe = probe_spi_rdid,
1916 .probe_timing = TIMING_ZERO,
1917 .block_erasers =
1918 {
1919 {
1920 .eraseblocks = { {4 * 1024, 512} },
1921 .block_erase = spi_block_erase_20,
1922 }, {
1923 .eraseblocks = { {32 * 1024, 64} },
1924 .block_erase = spi_block_erase_52,
1925 }, {
1926 .eraseblocks = { {64 * 1024, 32} },
1927 .block_erase = spi_block_erase_d8,
1928 }, {
1929 .eraseblocks = { {2 * 1024 * 1024, 1} },
1930 .block_erase = spi_block_erase_60,
1931 }, {
1932 .eraseblocks = { {2 * 1024 * 1024, 1} },
1933 .block_erase = spi_block_erase_c7,
1934 }
1935 },
1936 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001937 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001938 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001939 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001940 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001941 },
1942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 {
1944 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001945 .name = "AT25F512",
1946 .bustype = BUS_SPI,
1947 .manufacture_id = ATMEL_ID,
1948 .model_id = ATMEL_AT25F512,
1949 .total_size = 64,
1950 .page_size = 256,
1951 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001952 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001953 .probe = probe_spi_at25f,
1954 .probe_timing = TIMING_ZERO,
1955 .block_erasers =
1956 {
1957 {
1958 .eraseblocks = { {32 * 1024, 2} },
1959 .block_erase = spi_block_erase_52,
1960 }, {
1961 .eraseblocks = { {64 * 1024, 1} },
1962 .block_erase = spi_block_erase_62,
1963 }
1964 },
1965 .printlock = spi_prettyprint_status_register_at25f,
1966 .unlock = spi_disable_blockprotect_at25f,
1967 .write = spi_chip_write_256,
1968 .read = spi_chip_read,
1969 .voltage = {2700, 3600},
1970 },
1971
1972 {
1973 .vendor = "Atmel",
1974 .name = "AT25F512A",
1975 .bustype = BUS_SPI,
1976 .manufacture_id = ATMEL_ID,
1977 .model_id = ATMEL_AT25F512A,
1978 .total_size = 64,
1979 .page_size = 128,
1980 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001981 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001982 .probe = probe_spi_at25f,
1983 .probe_timing = TIMING_ZERO,
1984 .block_erasers =
1985 {
1986 {
1987 .eraseblocks = { {32 * 1024, 2} },
1988 .block_erase = spi_block_erase_52,
1989 }, {
1990 .eraseblocks = { {64 * 1024, 1} },
1991 .block_erase = spi_block_erase_62,
1992 }
1993 },
1994 .printlock = spi_prettyprint_status_register_at25f512a,
1995 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1996 .unlock = spi_disable_blockprotect_at25f512a,
1997 .write = spi_chip_write_256,
1998 .read = spi_chip_read,
1999 .voltage = {2700, 3600},
2000 },
2001
2002 {
2003 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002004 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002005 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002006 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002007 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002008 .total_size = 64,
2009 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002010 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2011 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002012 .tested = TEST_UNTESTED,
2013 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002014 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {4 * 1024, 16} },
2019 .block_erase = spi_block_erase_20,
2020 }, {
2021 .eraseblocks = { {32 * 1024, 2} },
2022 .block_erase = spi_block_erase_52,
2023 }, {
2024 .eraseblocks = { {32 * 1024, 2} },
2025 .block_erase = spi_block_erase_d8,
2026 }, {
2027 .eraseblocks = { {64 * 1024, 1} },
2028 .block_erase = spi_block_erase_60,
2029 }, {
2030 .eraseblocks = { {64 * 1024, 1} },
2031 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002032 }, {
2033 .eraseblocks = { {64 * 1024, 1} },
2034 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002035 }
2036 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002037 .printlock = spi_prettyprint_status_register_at25f512b,
2038 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002039 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002040 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002041 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002042 },
2043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002044 {
2045 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002046 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2047 * All other properties seem to be the same.*/
2048 .name = "AT25F1024(A)",
2049 .bustype = BUS_SPI,
2050 .manufacture_id = ATMEL_ID,
2051 .model_id = ATMEL_AT25F1024,
2052 .total_size = 128,
2053 .page_size = 256,
2054 .feature_bits = FEATURE_WRSR_WREN,
2055 .tested = TEST_OK_PREW,
2056 .probe = probe_spi_at25f,
2057 .probe_timing = TIMING_ZERO,
2058 .block_erasers =
2059 {
2060 {
2061 .eraseblocks = { {32 * 1024, 4} },
2062 .block_erase = spi_block_erase_52,
2063 }, {
2064 .eraseblocks = { {128 * 1024, 1} },
2065 .block_erase = spi_block_erase_62,
2066 }
2067 },
2068 .printlock = spi_prettyprint_status_register_at25f,
2069 .unlock = spi_disable_blockprotect_at25f,
2070 .write = spi_chip_write_256,
2071 .read = spi_chip_read,
2072 .voltage = {2700, 3600},
2073 },
2074
2075 {
2076 .vendor = "Atmel",
2077 .name = "AT25F2048",
2078 .bustype = BUS_SPI,
2079 .manufacture_id = ATMEL_ID,
2080 .model_id = ATMEL_AT25F2048,
2081 .total_size = 256,
2082 .page_size = 256,
2083 .feature_bits = FEATURE_WRSR_WREN,
2084 .tested = TEST_UNTESTED,
2085 .probe = probe_spi_at25f,
2086 .probe_timing = TIMING_ZERO,
2087 .block_erasers =
2088 {
2089 {
2090 .eraseblocks = { {64 * 1024, 4} },
2091 .block_erase = spi_block_erase_52,
2092 }, {
2093 .eraseblocks = { {256 * 1024, 1} },
2094 .block_erase = spi_block_erase_62,
2095 }
2096 },
2097 .printlock = spi_prettyprint_status_register_at25f,
2098 .unlock = spi_disable_blockprotect_at25f,
2099 .write = spi_chip_write_256,
2100 .read = spi_chip_read,
2101 .voltage = {2700, 3600},
2102 },
2103
2104 {
2105 .vendor = "Atmel",
2106 .name = "AT25F4096",
2107 .bustype = BUS_SPI,
2108 .manufacture_id = ATMEL_ID,
2109 .model_id = ATMEL_AT25F4096,
2110 .total_size = 512,
2111 .page_size = 256,
2112 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00002113 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002114 .probe = probe_spi_at25f,
2115 .probe_timing = TIMING_ZERO,
2116 .block_erasers =
2117 {
2118 {
2119 .eraseblocks = { {64 * 1024, 8} },
2120 .block_erase = spi_block_erase_52,
2121 }, {
2122 .eraseblocks = { {512 * 1024, 1} },
2123 .block_erase = spi_block_erase_62,
2124 }
2125 },
2126 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002127 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2128 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002129 .write = spi_chip_write_256,
2130 .read = spi_chip_read,
2131 .voltage = {2700, 3600},
2132 },
2133
2134 {
2135 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002136 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002137 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002139 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 .total_size = 128,
2141 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002142 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002143 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002144 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002145 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002146 .block_erasers =
2147 {
2148 {
2149 .eraseblocks = { {4 * 1024, 32} },
2150 .block_erase = spi_block_erase_20,
2151 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002152 .eraseblocks = { {4 * 1024, 32} },
2153 .block_erase = spi_block_erase_d7,
2154 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002155 .eraseblocks = { {32 * 1024, 4} },
2156 .block_erase = spi_block_erase_52,
2157 }, {
2158 .eraseblocks = { {32 * 1024, 4} },
2159 .block_erase = spi_block_erase_d8,
2160 }, {
2161 .eraseblocks = { {128 * 1024, 1} },
2162 .block_erase = spi_block_erase_60,
2163 }, {
2164 .eraseblocks = { {128 * 1024, 1} },
2165 .block_erase = spi_block_erase_c7,
2166 }
2167 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002168 .printlock = spi_prettyprint_status_register_at25fs010,
2169 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002170 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002172 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002173 },
2174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 {
2176 .vendor = "Atmel",
2177 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002178 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002180 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .total_size = 512,
2182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002183 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .tested = TEST_UNTESTED,
2185 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002186 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002187 .block_erasers =
2188 {
2189 {
2190 .eraseblocks = { {4 * 1024, 128} },
2191 .block_erase = spi_block_erase_20,
2192 }, {
2193 .eraseblocks = { {64 * 1024, 8} },
2194 .block_erase = spi_block_erase_52,
2195 }, {
2196 .eraseblocks = { {64 * 1024, 8} },
2197 .block_erase = spi_block_erase_d8,
2198 }, {
2199 .eraseblocks = { {512 * 1024, 1} },
2200 .block_erase = spi_block_erase_60,
2201 }, {
2202 .eraseblocks = { {512 * 1024, 1} },
2203 .block_erase = spi_block_erase_c7,
2204 }
2205 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002206 .printlock = spi_prettyprint_status_register_at25fs040,
2207 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002208 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002210 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002211 },
2212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002213 {
2214 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002215 .name = "AT25SF041",
2216 .bustype = BUS_SPI,
2217 .manufacture_id = ATMEL_ID,
2218 .model_id = ATMEL_AT25SF041,
2219 .total_size = 512,
2220 .page_size = 256,
2221 .feature_bits = FEATURE_WRSR_WREN,
2222 .tested = TEST_OK_PREW,
2223 .probe = probe_spi_rdid,
2224 .probe_timing = TIMING_ZERO,
2225 .block_erasers =
2226 {
2227 {
2228 .eraseblocks = { {4 * 1024, 128} },
2229 .block_erase = spi_block_erase_20,
2230 }, {
2231 .eraseblocks = { {32 * 1024, 16} },
2232 .block_erase = spi_block_erase_52,
2233 }, {
2234 .eraseblocks = { {64 * 1024, 8} },
2235 .block_erase = spi_block_erase_d8,
2236 }, {
2237 .eraseblocks = { {512 * 1024, 1} },
2238 .block_erase = spi_block_erase_60,
2239 }, {
2240 .eraseblocks = { {512 * 1024, 1} },
2241 .block_erase = spi_block_erase_c7,
2242 }
2243 },
2244 .printlock = spi_prettyprint_status_register_plain,
2245 .unlock = spi_disable_blockprotect,
2246 .write = spi_chip_write_256,
2247 .read = spi_chip_read,
2248 .voltage = {2500, 3600},
2249 },
2250
2251 {
2252 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002253 .name = "AT25SF081",
2254 .bustype = BUS_SPI,
2255 .manufacture_id = ATMEL_ID,
2256 .model_id = ATMEL_AT25SF081,
2257 .total_size = 1024,
2258 .page_size = 256,
2259 .feature_bits = FEATURE_WRSR_WREN,
2260 .tested = TEST_OK_PREW,
2261 .probe = probe_spi_rdid,
2262 .probe_timing = TIMING_ZERO,
2263 .block_erasers =
2264 {
2265 {
2266 .eraseblocks = { {4 * 1024, 256} },
2267 .block_erase = spi_block_erase_20,
2268 }, {
2269 .eraseblocks = { {32 * 1024, 32} },
2270 .block_erase = spi_block_erase_52,
2271 }, {
2272 .eraseblocks = { {64 * 1024, 16} },
2273 .block_erase = spi_block_erase_d8,
2274 }, {
2275 .eraseblocks = { {1024 * 1024, 1} },
2276 .block_erase = spi_block_erase_60,
2277 }, {
2278 .eraseblocks = { {1024 * 1024, 1} },
2279 .block_erase = spi_block_erase_c7,
2280 }
2281 },
2282 .printlock = spi_prettyprint_status_register_plain,
2283 .unlock = spi_disable_blockprotect,
2284 .write = spi_chip_write_256,
2285 .read = spi_chip_read,
2286 .voltage = {2300, 3600},
2287 },
2288
2289 {
2290 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002291 .name = "AT25SF161",
2292 .bustype = BUS_SPI,
2293 .manufacture_id = ATMEL_ID,
2294 .model_id = ATMEL_AT25SF161,
2295 .total_size = 2048,
2296 .page_size = 256,
2297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2298 .tested = TEST_OK_PREW,
2299 .probe = probe_spi_rdid,
2300 .probe_timing = TIMING_ZERO,
2301 .block_erasers =
2302 {
2303 {
2304 .eraseblocks = { {4 * 1024, 512} },
2305 .block_erase = spi_block_erase_20,
2306 }, {
2307 .eraseblocks = { {32 * 1024, 64} },
2308 .block_erase = spi_block_erase_52,
2309 }, {
2310 .eraseblocks = { {64 * 1024, 32} },
2311 .block_erase = spi_block_erase_d8,
2312 }, {
2313 .eraseblocks = { {2048 * 1024, 1} },
2314 .block_erase = spi_block_erase_60,
2315 }, {
2316 .eraseblocks = { {2048 * 1024, 1} },
2317 .block_erase = spi_block_erase_c7,
2318 }
2319 },
2320 .printlock = spi_prettyprint_status_register_plain,
2321 .unlock = spi_disable_blockprotect,
2322 .write = spi_chip_write_256,
2323 .read = spi_chip_read,
2324 .voltage = {2500, 3600},
2325 },
2326
2327 {
2328 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002330 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002331 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002332 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002333 .total_size = 512,
2334 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002335 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002336 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002337 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002338 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002339 .block_erasers =
2340 {
2341 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002342 .eraseblocks = { {256, 2048} },
2343 .block_erase = spi_block_erase_81,
2344 }, {
2345 .eraseblocks = { {2 * 1024, 256} },
2346 .block_erase = spi_block_erase_50,
2347 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002348 .eraseblocks = { {4 * 1024, 128} },
2349 .block_erase = spi_block_erase_20,
2350 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002351 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002352 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002353 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002354 .write = spi_chip_write_1,
2355 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002356 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002357 },
2358
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002359 {
2360 .vendor = "Atmel",
2361 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002362 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002363 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002364 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002365 .total_size = 1024,
2366 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002367 .feature_bits = FEATURE_WRSR_WREN,
2368 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002369 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002370 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002371 .block_erasers =
2372 {
2373 {
2374 .eraseblocks = { {4 * 1024, 256} },
2375 .block_erase = spi_block_erase_20,
2376 }, {
2377 .eraseblocks = { {32 * 1024, 32} },
2378 .block_erase = spi_block_erase_52,
2379 }, {
2380 .eraseblocks = { {64 * 1024, 16} },
2381 .block_erase = spi_block_erase_d8,
2382 }, {
2383 .eraseblocks = { {1024 * 1024, 1} },
2384 .block_erase = spi_block_erase_60,
2385 }, {
2386 .eraseblocks = { {1024 * 1024, 1} },
2387 .block_erase = spi_block_erase_c7,
2388 }
2389 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002390 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002391 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002392 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002393 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002394 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002395 },
2396
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002397 {
2398 .vendor = "Atmel",
2399 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002400 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002401 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002402 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 .total_size = 2048,
2404 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002405 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002406 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = { {4 * 1024, 512} },
2413 .block_erase = spi_block_erase_20,
2414 }, {
2415 .eraseblocks = { {32 * 1024, 64} },
2416 .block_erase = spi_block_erase_52,
2417 }, {
2418 .eraseblocks = { {64 * 1024, 32} },
2419 .block_erase = spi_block_erase_d8,
2420 }, {
2421 .eraseblocks = { {2 * 1024 * 1024, 1} },
2422 .block_erase = spi_block_erase_60,
2423 }, {
2424 .eraseblocks = { {2 * 1024 * 1024, 1} },
2425 .block_erase = spi_block_erase_c7,
2426 }
2427 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002428 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002429 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002430 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002432 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002433 },
2434
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002435 {
2436 .vendor = "Atmel",
2437 .name = "AT26DF161A",
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_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 .total_size = 2048,
2442 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002443 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002444 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002446 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002447 .block_erasers =
2448 {
2449 {
2450 .eraseblocks = { {4 * 1024, 512} },
2451 .block_erase = spi_block_erase_20,
2452 }, {
2453 .eraseblocks = { {32 * 1024, 64} },
2454 .block_erase = spi_block_erase_52,
2455 }, {
2456 .eraseblocks = { {64 * 1024, 32} },
2457 .block_erase = spi_block_erase_d8,
2458 }, {
2459 .eraseblocks = { {2 * 1024 * 1024, 1} },
2460 .block_erase = spi_block_erase_60,
2461 }, {
2462 .eraseblocks = { {2 * 1024 * 1024, 1} },
2463 .block_erase = spi_block_erase_c7,
2464 }
2465 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002466 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002467 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002468 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002470 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002471 },
2472
2473 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002474 /*{
2475 .vendor = "Atmel",
2476 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002477 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002478 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002479 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002480 .total_size = 4096,
2481 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002482 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .tested = TEST_UNTESTED,
2484 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002485 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002486 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002487 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002488 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .read = spi_chip_read,
2490 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002491
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002492 {
2493 .vendor = "Atmel",
2494 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002495 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002496 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002497 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002498 .total_size = 512,
2499 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002500 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002501 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002502 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002503 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002504 .block_erasers =
2505 {
2506 {
2507 .eraseblocks = { {4 * 1024, 128} },
2508 .block_erase = spi_block_erase_20,
2509 }, {
2510 .eraseblocks = { {32 * 1024, 16} },
2511 .block_erase = spi_block_erase_52,
2512 }, {
2513 .eraseblocks = { {64 * 1024, 8} },
2514 .block_erase = spi_block_erase_d8,
2515 }, {
2516 .eraseblocks = { {512 * 1024, 1} },
2517 .block_erase = spi_block_erase_60,
2518 }, {
2519 .eraseblocks = { {512 * 1024, 1} },
2520 .block_erase = spi_block_erase_c7,
2521 }
2522 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002523 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002524 .write = NULL /* Incompatible Page write */,
2525 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002526 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002527 },
2528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002529 {
2530 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002531 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002532 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002533 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002534 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002535 .total_size = 64,
2536 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002537 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002538 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002539 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002540 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002541 .block_erasers =
2542 {
2543 {
2544 .eraseblocks = { {64 * 1024, 1} },
2545 .block_erase = erase_chip_block_jedec,
2546 }
2547 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002548 .write = write_jedec,
2549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002550 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002551 },
2552
2553 {
2554 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002555 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002559 .total_size = 128,
2560 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002561 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002562 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002563 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002564 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002565 .block_erasers =
2566 {
2567 {
2568 .eraseblocks = { {128 * 1024, 1} },
2569 .block_erase = erase_chip_block_jedec,
2570 }
2571 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002572 .write = write_jedec, /* FIXME */
2573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002574 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002575 },
2576
2577 {
2578 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002579 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002580 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002581 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002582 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002583 .total_size = 256,
2584 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002585 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002586 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002587 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002588 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002589 .block_erasers =
2590 {
2591 {
2592 .eraseblocks = { {256 * 1024, 1} },
2593 .block_erase = erase_chip_block_jedec,
2594 }
2595 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002596 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002598 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002599 },
2600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002601 {
2602 .vendor = "Atmel",
2603 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002604 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002606 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002607 .total_size = 512,
2608 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002609 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002610 .tested = TEST_UNTESTED,
2611 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002612 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002613 .block_erasers =
2614 {
2615 {
2616 .eraseblocks = { {512 * 1024, 1} },
2617 .block_erase = erase_chip_block_jedec,
2618 }
2619 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002621 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002622 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002623 },
2624
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002625 {
2626 .vendor = "Atmel",
2627 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002628 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002629 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002630 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002631 .total_size = 16896 /* No power of two sizes */,
2632 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002633 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002634 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2635 .feature_bits = FEATURE_OTP,
2636 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002638 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002639 .block_erasers =
2640 {
2641 {
2642 .eraseblocks = {
2643 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2644 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2645 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2646 },
2647 .block_erase = spi_erase_at45cs_sector,
2648 }
2649 },
2650 .printlock = spi_prettyprint_status_register_plain,
2651 .gran = write_gran_1056bytes,
2652 .write = spi_write_at45db,
2653 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002654 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002655 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002657 {
2658 .vendor = "Atmel",
2659 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002660 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002661 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002662 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002663 .total_size = 128 /* or 132, determined from status register */,
2664 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002665 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002666 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2667 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002668 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002669 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002670 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002671 .block_erasers =
2672 {
2673 {
2674 .eraseblocks = { {256, 512} },
2675 .block_erase = spi_erase_at45db_page,
2676 }, {
2677 .eraseblocks = { {8 * 256, 512/8} },
2678 .block_erase = spi_erase_at45db_block,
2679 }, {
2680 .eraseblocks = {
2681 {8 * 256, 1},
2682 {120 * 256, 1},
2683 {128 * 256, 3},
2684 },
2685 .block_erase = spi_erase_at45db_sector
2686 }, {
2687 .eraseblocks = { {128 * 1024, 1} },
2688 .block_erase = spi_erase_at45db_chip,
2689 }
2690 },
2691 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2692 .printlock = spi_prettyprint_status_register_at45db,
2693 /* granularity will be set by the probing function. */
2694 .write = spi_write_at45db,
2695 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002696 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002697 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002699 {
2700 .vendor = "Atmel",
2701 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002702 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002703 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002704 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002705 .total_size = 256 /* or 264, determined from status register */,
2706 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002707 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002708 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2709 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002710 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002711 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002712 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002713 .block_erasers =
2714 {
2715 {
2716 .eraseblocks = { {256, 1024} },
2717 .block_erase = spi_erase_at45db_page,
2718 }, {
2719 .eraseblocks = { {8 * 256, 1024/8} },
2720 .block_erase = spi_erase_at45db_block,
2721 }, {
2722 .eraseblocks = {
2723 {8 * 256, 1},
2724 {120 * 256, 1},
2725 {128 * 256, 7},
2726 },
2727 .block_erase = spi_erase_at45db_sector
2728 }, {
2729 .eraseblocks = { {256 * 1024, 1} },
2730 .block_erase = spi_erase_at45db_chip,
2731 }
2732 },
2733 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2734 .printlock = spi_prettyprint_status_register_at45db,
2735 /* granularity will be set by the probing function. */
2736 .write = spi_write_at45db,
2737 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002738 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002739 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002741 {
2742 .vendor = "Atmel",
2743 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002744 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002745 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002746 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002747 .total_size = 512 /* or 528, determined from status register */,
2748 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002749 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002750 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2751 .feature_bits = FEATURE_OTP,
2752 .tested = TEST_OK_PREW,
2753 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002754 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002755 .block_erasers =
2756 {
2757 {
2758 .eraseblocks = { {256, 2048} },
2759 .block_erase = spi_erase_at45db_page,
2760 }, {
2761 .eraseblocks = { {8 * 256, 2048/8} },
2762 .block_erase = spi_erase_at45db_block,
2763 }, {
2764 .eraseblocks = {
2765 {8 * 256, 1},
2766 {248 * 256, 1},
2767 {256 * 256, 7},
2768 },
2769 .block_erase = spi_erase_at45db_sector
2770 }, {
2771 .eraseblocks = { {512 * 1024, 1} },
2772 .block_erase = spi_erase_at45db_chip,
2773 }
2774 },
2775 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2776 .printlock = spi_prettyprint_status_register_at45db,
2777 /* granularity will be set by the probing function. */
2778 .write = spi_write_at45db,
2779 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2780 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002781 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002782
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002783 {
2784 .vendor = "Atmel",
2785 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002786 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002787 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002788 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002789 .total_size = 1024 /* or 1056, determined from status register */,
2790 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002791 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002792 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2793 .feature_bits = FEATURE_OTP,
2794 .tested = TEST_UNTESTED,
2795 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002796 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002797 .block_erasers =
2798 {
2799 {
2800 .eraseblocks = { {256, 4096} },
2801 .block_erase = spi_erase_at45db_page,
2802 }, {
2803 .eraseblocks = { {8 * 256, 4096/8} },
2804 .block_erase = spi_erase_at45db_block,
2805 }, {
2806 .eraseblocks = {
2807 {8 * 256, 1},
2808 {248 * 256, 1},
2809 {256 * 256, 15},
2810 },
2811 .block_erase = spi_erase_at45db_sector
2812 }, {
2813 .eraseblocks = { {1024 * 1024, 1} },
2814 .block_erase = spi_erase_at45db_chip,
2815 }
2816 },
2817 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2818 .printlock = spi_prettyprint_status_register_at45db,
2819 /* granularity will be set by the probing function. */
2820 .write = spi_write_at45db,
2821 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002822 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002823 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002825 {
2826 .vendor = "Atmel",
2827 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002828 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002829 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002830 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002831 .total_size = 2048 /* or 2112, determined from status register */,
2832 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002833 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002834 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2835 .feature_bits = FEATURE_OTP,
2836 .tested = TEST_OK_PREW,
2837 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002838 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002839 .block_erasers =
2840 {
2841 {
2842 .eraseblocks = { {512, 4096} },
2843 .block_erase = spi_erase_at45db_page,
2844 }, {
2845 .eraseblocks = { {8 * 512, 4096/8} },
2846 .block_erase = spi_erase_at45db_block,
2847 }, {
2848 .eraseblocks = {
2849 {8 * 512, 1},
2850 {248 * 512, 1},
2851 {256 * 512, 15},
2852 },
2853 .block_erase = spi_erase_at45db_sector
2854 }, {
2855 .eraseblocks = { {2048 * 1024, 1} },
2856 .block_erase = spi_erase_at45db_chip,
2857 }
2858 },
2859 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2860 .printlock = spi_prettyprint_status_register_at45db,
2861 /* granularity will be set by the probing function. */
2862 .write = spi_write_at45db,
2863 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002864 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002865 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002867 {
2868 .vendor = "Atmel",
2869 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002870 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002871 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002872 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002873 .total_size = 4224 /* No power of two sizes */,
2874 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002875 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002876 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2877 .feature_bits = FEATURE_OTP,
2878 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002879 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002880 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002881 .block_erasers =
2882 {
2883 {
2884 .eraseblocks = { {528, 8192} },
2885 .block_erase = spi_erase_at45db_page,
2886 }, {
2887 .eraseblocks = { {8 * 528, 8192/8} },
2888 .block_erase = spi_erase_at45db_block,
2889 }, /* Although the datasheets describes sectors (which can be write protected)
2890 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002891 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002892 .eraseblocks = {
2893 {8 * 528, 1},
2894 {120 * 528, 1},
2895 {128 * 528, 63},
2896 },
2897 .block_erase = spi_erase_at45db_sector
2898 }, */ {
2899 .eraseblocks = { {4224 * 1024, 1} },
2900 .block_erase = spi_erase_at45db_chip,
2901 }
2902 },
2903 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2904 .gran = write_gran_528bytes,
2905 .write = spi_write_at45db,
2906 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002907 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002908 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002910 {
2911 .vendor = "Atmel",
2912 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002913 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002914 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002915 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002916 .total_size = 4096 /* or 4224, determined from status register */,
2917 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002918 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002919 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002920 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002921 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002923 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 .block_erasers =
2925 {
2926 {
2927 .eraseblocks = { {512, 8192} },
2928 .block_erase = spi_erase_at45db_page,
2929 }, {
2930 .eraseblocks = { {8 * 512, 8192/8} },
2931 .block_erase = spi_erase_at45db_block,
2932 }, {
2933 .eraseblocks = {
2934 {8 * 512, 1},
2935 {120 * 512, 1},
2936 {128 * 512, 63},
2937 },
2938 .block_erase = spi_erase_at45db_sector
2939 }, {
2940 .eraseblocks = { {4096 * 1024, 1} },
2941 .block_erase = spi_erase_at45db_chip,
2942 }
2943 },
2944 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2945 .printlock = spi_prettyprint_status_register_at45db,
2946 /* granularity will be set by the probing function. */
2947 .write = spi_write_at45db,
2948 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2949 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2950 },
2951
2952 {
2953 .vendor = "Atmel",
2954 .name = "AT45DB321E",
2955 .bustype = BUS_SPI,
2956 .manufacture_id = ATMEL_ID,
2957 .model_id = ATMEL_AT45DB321C,
2958 .total_size = 4096 /* or 4224, determined from status register */,
2959 .page_size = 512 /* or 528, determined from status register */,
2960 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2961 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2962 .feature_bits = FEATURE_OTP,
2963 .tested = TEST_UNTESTED,
2964 .probe = probe_spi_at45db,
2965 .probe_timing = TIMING_ZERO,
2966 .block_erasers =
2967 {
2968 {
2969 .eraseblocks = { {512, 8192} },
2970 .block_erase = spi_erase_at45db_page,
2971 }, {
2972 .eraseblocks = { {8 * 512, 8192/8} },
2973 .block_erase = spi_erase_at45db_block,
2974 }, {
2975 .eraseblocks = {
2976 {8 * 512, 1},
2977 {120 * 512, 1},
2978 {128 * 512, 63},
2979 },
2980 .block_erase = spi_erase_at45db_sector
2981 }, {
2982 .eraseblocks = { {4096 * 1024, 1} },
2983 .block_erase = spi_erase_at45db_chip,
2984 }
2985 },
2986 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2987 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2988 /* granularity will be set by the probing function. */
2989 .write = spi_write_at45db,
2990 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2991 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002992 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002994 {
2995 .vendor = "Atmel",
2996 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002997 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002998 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002999 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003000 .total_size = 8192 /* or 8448, determined from status register */,
3001 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00003002 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003003 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3004 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003005 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003006 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003007 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003008 .block_erasers =
3009 {
3010 {
3011 .eraseblocks = { {1024, 8192} },
3012 .block_erase = spi_erase_at45db_page,
3013 }, {
3014 .eraseblocks = { {8 * 1024, 8192/8} },
3015 .block_erase = spi_erase_at45db_block,
3016 }, {
3017 .eraseblocks = {
3018 {8 * 1024, 1},
3019 {248 * 1024, 1},
3020 {256 * 1024, 31},
3021 },
3022 .block_erase = spi_erase_at45db_sector
3023 }, {
3024 .eraseblocks = { {8192 * 1024, 1} },
3025 .block_erase = spi_erase_at45db_chip,
3026 }
3027 },
3028 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
3029 .printlock = spi_prettyprint_status_register_at45db,
3030 /* granularity will be set by the probing function. */
3031 .write = spi_write_at45db,
3032 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003033 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003034 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003036 {
3037 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003038 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003039 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003040 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003041 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003042 .total_size = 64,
3043 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003044 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003045 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003046 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003047 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003048 .block_erasers =
3049 {
3050 {
3051 .eraseblocks = { {64 * 1024, 1} },
3052 .block_erase = erase_chip_block_jedec,
3053 }
3054 },
Sean Nelson35727f72010-01-28 23:55:12 +00003055 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003057 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003058 },
3059
3060 {
3061 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003062 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003063 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003064 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003065 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003066 .total_size = 256,
3067 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003068 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003069 .tested = TEST_UNTESTED,
3070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003071 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003072 .block_erasers =
3073 {
3074 {
3075 .eraseblocks = {
3076 {16 * 1024, 1},
3077 {8 * 1024, 2},
3078 {96 * 1024, 1},
3079 {128 * 1024, 1},
3080 },
3081 .block_erase = erase_sector_jedec,
3082 }, {
3083 .eraseblocks = { {256 * 1024, 1} },
3084 .block_erase = erase_chip_block_jedec,
3085 }
3086 },
Sean Nelson35727f72010-01-28 23:55:12 +00003087 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003089 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003090 },
3091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003092 {
3093 .vendor = "Atmel",
3094 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003095 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003096 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003097 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003098 .total_size = 256,
3099 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003100 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003101 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003102 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003103 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003104 .block_erasers =
3105 {
3106 {
3107 .eraseblocks = {
3108 {128 * 1024, 1},
3109 {96 * 1024, 1},
3110 {8 * 1024, 2},
3111 {16 * 1024, 1},
3112 },
3113 .block_erase = erase_sector_jedec,
3114 }, {
3115 .eraseblocks = { {256 * 1024, 1} },
3116 .block_erase = erase_chip_block_jedec,
3117 }
3118 },
Sean Nelson35727f72010-01-28 23:55:12 +00003119 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003121 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003122 },
3123
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003124 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003125 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003126 .name = "AT49(H)F010",
3127 .bustype = BUS_PARALLEL,
3128 .manufacture_id = ATMEL_ID,
3129 .model_id = ATMEL_AT49F010,
3130 .total_size = 128,
3131 .page_size = 0, /* unused */
3132 .feature_bits = FEATURE_EITHER_RESET,
3133 .tested = TEST_OK_PREW,
3134 .probe = probe_jedec,
3135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {128 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
3143 .printlock = printlock_at49f,
Elyes HAOUAS124ef382018-03-27 12:15:09 +02003144 .write = write_jedec_1,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003145 .read = read_memmapped,
3146 .voltage = {4500, 5500},
3147 },
3148
3149 {
3150 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003151 .name = "AT49F020",
3152 .bustype = BUS_PARALLEL,
3153 .manufacture_id = ATMEL_ID,
3154 .model_id = ATMEL_AT49F020,
3155 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003156 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003157 .feature_bits = FEATURE_EITHER_RESET,
3158 .tested = TEST_OK_PRE,
3159 .probe = probe_jedec,
3160 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3161 .block_erasers =
3162 {
3163 {
3164 .eraseblocks = { {256 * 1024, 1} },
3165 .block_erase = erase_chip_block_jedec,
3166 }
3167 /* Chip features an optional permanent write protection
3168 * of the first 8 kB. The erase function is the same as
3169 * above, but 00000H to 01FFFH will not be erased.
3170 * FIXME: add another eraser when partial erasers are
3171 * supported.
3172 */
3173 },
3174 .printlock = printlock_at49f,
3175 .write = write_jedec_1,
3176 .read = read_memmapped,
3177 .voltage = {4500, 5500},
3178 },
3179
3180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F040",
3183 .bustype = BUS_PARALLEL,
3184 .manufacture_id = ATMEL_ID,
3185 .model_id = ATMEL_AT49F040,
3186 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003187 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003188 .feature_bits = FEATURE_EITHER_RESET,
3189 .tested = TEST_UNTESTED,
3190 .probe = probe_jedec,
3191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = { {512 * 1024, 1} },
3196 .block_erase = erase_chip_block_jedec,
3197 }
3198 /* Chip features an optional permanent write protection
3199 * of the first 16 kB. The erase function is the same as
3200 * above, but 00000H to 03FFFH will not be erased.
3201 * FIXME: add another eraser when partial erasers are
3202 * supported.
3203 */
3204 },
3205 .printlock = printlock_at49f,
3206 .write = write_jedec_1,
3207 .read = read_memmapped,
3208 .voltage = {4500, 5500},
3209 },
3210
3211 {
3212 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003213 .name = "AT49F080",
3214 .bustype = BUS_PARALLEL,
3215 .manufacture_id = ATMEL_ID,
3216 .model_id = ATMEL_AT49F080,
3217 .total_size = 1024,
3218 .page_size = 0, /* unused */
3219 .feature_bits = FEATURE_EITHER_RESET,
3220 .tested = TEST_UNTESTED,
3221 .probe = probe_jedec,
3222 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3223 .block_erasers =
3224 {
3225 {
3226 .eraseblocks = { {1024 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 }
3229 /* Chip features an optional permanent write protection
3230 * of the first 16 kB. The erase function is the same as
3231 * above, but 00000H to 03FFFH will not be erased.
3232 * FIXME: add another eraser when partial erasers are
3233 * supported.
3234 */
3235 },
3236 .printlock = printlock_at49f,
3237 .write = write_jedec_1,
3238 .read = read_memmapped,
3239 .voltage = {4500, 5500},
3240 },
3241
3242 {
3243 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3244 .vendor = "Atmel",
3245 .name = "AT49F080T",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F080T,
3249 .total_size = 1024,
3250 .page_size = 0, /* unused */
3251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {1024 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but FC000H to FFFFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003276 .name = "AT49LH002",
3277 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49LH002,
3280 .total_size = 256,
3281 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003282 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003283 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003284 .probe = probe_82802ab,
3285 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = {
3290 {64 * 1024, 3},
3291 {32 * 1024, 1},
3292 {8 * 1024, 2},
3293 {16 * 1024, 1},
3294 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003295 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003296 }, {
3297 .eraseblocks = {
3298 {64 * 1024, 4},
3299 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003300 .block_erase = erase_block_82802ab,
3301 },
3302 },
3303 .printlock = printlock_regspace2_block_eraser_0,
3304 .unlock = unlock_regspace2_block_eraser_0,
3305 .write = write_82802ab,
3306 .read = read_memmapped,
3307 .voltage = {3000, 3600},
3308 },
3309
3310 {
3311 .vendor = "Atmel",
3312 .name = "AT49LH00B4",
3313 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3314 .manufacture_id = ATMEL_ID,
3315 .model_id = ATMEL_AT49LH00B4,
3316 .total_size = 512,
3317 .page_size = 0, /* unused */
3318 .feature_bits = FEATURE_REGISTERMAP,
3319 .tested = TEST_UNTESTED,
3320 .probe = probe_82802ab,
3321 .probe_timing = TIMING_ZERO,
3322 .block_erasers =
3323 {
3324 {
3325 .eraseblocks = {
3326 {8 * 1024, 2},
3327 {16 * 1024, 1},
3328 {32 * 1024, 1},
3329 {64 * 1024, 7},
3330 },
3331 .block_erase = NULL, /* TODO: Implement. */
3332 }, {
3333 .eraseblocks = {
3334 {64 * 1024, 8},
3335 },
3336 .block_erase = erase_block_82802ab,
3337 },
3338 },
3339 .printlock = printlock_regspace2_block_eraser_0,
3340 .unlock = unlock_regspace2_block_eraser_0,
3341 .write = write_82802ab,
3342 .read = read_memmapped,
3343 .voltage = {3000, 3600},
3344 },
3345
3346 {
3347 .vendor = "Atmel",
3348 .name = "AT49LH004",
3349 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3350 .manufacture_id = ATMEL_ID,
3351 .model_id = ATMEL_AT49LH004,
3352 .total_size = 512,
3353 .page_size = 0, /* unused */
3354 .feature_bits = FEATURE_REGISTERMAP,
3355 .tested = TEST_UNTESTED,
3356 .probe = probe_82802ab,
3357 .probe_timing = TIMING_ZERO,
3358 .block_erasers =
3359 {
3360 {
3361 .eraseblocks = {
3362 {64 * 1024, 7},
3363 {32 * 1024, 1},
3364 {8 * 1024, 2},
3365 {16 * 1024, 1},
3366 },
3367 .block_erase = erase_block_82802ab,
3368 }, {
3369 .eraseblocks = {
3370 {64 * 1024, 8},
3371 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003372 .block_erase = NULL, /* TODO: Implement. */
3373 },
3374 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .printlock = printlock_regspace2_block_eraser_0,
3376 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003377 .write = write_82802ab,
3378 .read = read_memmapped,
3379 .voltage = {3000, 3600},
3380 },
3381
3382 {
Andrew Morganca081462011-09-13 22:05:44 +00003383 .vendor = "Catalyst",
3384 .name = "CAT28F512",
3385 .bustype = BUS_PARALLEL,
3386 .manufacture_id = CATALYST_ID,
3387 .model_id = CATALYST_CAT28F512,
3388 .total_size = 64,
3389 .page_size = 0, /* unused */
3390 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003391 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003392 .probe = probe_jedec, /* FIXME! */
3393 .probe_timing = TIMING_ZERO,
3394 .block_erasers =
3395 {
3396 {
3397 .eraseblocks = { {64 * 1024, 1} },
3398 .block_erase = NULL, /* TODO */
3399 },
3400 },
3401 .write = NULL, /* TODO */
3402 .read = read_memmapped,
3403 .voltage = {4500, 5500},
3404 },
3405
3406 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003407 .vendor = "Bright",
3408 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003409 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003410 .manufacture_id = BRIGHT_ID,
3411 .model_id = BRIGHT_BM29F040,
3412 .total_size = 512,
3413 .page_size = 64 * 1024,
3414 .feature_bits = FEATURE_EITHER_RESET,
3415 .tested = TEST_OK_PR,
3416 .probe = probe_jedec,
3417 .probe_timing = TIMING_ZERO,
3418 .block_erasers =
3419 {
3420 {
3421 .eraseblocks = { {64 * 1024, 8} },
3422 .block_erase = erase_sector_jedec,
3423 }, {
3424 .eraseblocks = { {512 * 1024, 1} },
3425 .block_erase = erase_chip_block_jedec,
3426 },
3427 },
3428 .write = write_jedec_1,
3429 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003430 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003431 },
3432
3433 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003434 .vendor = "ENE",
3435 .name = "KB9012 (EDI)",
3436 .bustype = BUS_SPI,
3437 .spi_cmd_set = SPI_EDI,
3438 .total_size = 128,
3439 .page_size = 128,
3440 .feature_bits = FEATURE_ERASED_ZERO,
3441 .tested = TEST_OK_PREW,
3442 .probe = edi_probe_kb9012,
3443 .probe_timing = TIMING_ZERO,
3444 .block_erasers =
3445 {
3446 {
3447 .eraseblocks = { {128, 1024} },
3448 .block_erase = edi_chip_block_erase,
3449 },
3450 },
3451 .gran = write_gran_128bytes,
3452 .write = edi_chip_write,
3453 .read = edi_chip_read,
3454 .voltage = {2700, 3600},
3455 },
3456
3457 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003458 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003459 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003460 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003461 .manufacture_id = ESMT_ID,
3462 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003463 .total_size = 256,
3464 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003465 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003466 .tested = TEST_UNTESTED,
3467 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003468 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003469 .block_erasers =
3470 {
3471 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003472 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003473 {128 * 1024, 1},
3474 {96 * 1024, 1},
3475 {8 * 1024, 2},
3476 {16 * 1024, 1},
3477 },
3478 .block_erase = erase_sector_jedec,
3479 }, {
3480 .eraseblocks = { {256 * 1024, 1} },
3481 .block_erase = erase_chip_block_jedec,
3482 }
3483 },
Sean Nelson35727f72010-01-28 23:55:12 +00003484 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003485 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003486 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003487 },
3488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003489 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003490 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003491 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003492 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003493 .manufacture_id = ESMT_ID,
3494 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003495 .total_size = 1024,
3496 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003497 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003498 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003499 .probe = probe_spi_rdid,
3500 .probe_timing = TIMING_ZERO,
3501 .block_erasers =
3502 {
3503 {
3504 .eraseblocks = { {4 * 1024, 256} },
3505 .block_erase = spi_block_erase_20,
3506 }, {
3507 .eraseblocks = { {64 * 1024, 16} },
3508 .block_erase = spi_block_erase_d8,
3509 }, {
3510 .eraseblocks = { {1024 * 1024, 1} },
3511 .block_erase = spi_block_erase_60,
3512 }, {
3513 .eraseblocks = { {1024 * 1024, 1} },
3514 .block_erase = spi_block_erase_c7,
3515 }
3516 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003517 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003518 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003519 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003520 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003521 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003522 },
3523
3524 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003525 .vendor = "ESMT",
3526 .name = "F25L32PA",
3527 .bustype = BUS_SPI,
3528 .manufacture_id = ESMT_ID,
3529 .model_id = ESMT_F25L32PA,
3530 .total_size = 4096,
3531 .page_size = 256,
3532 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3533 .tested = TEST_UNTESTED,
3534 .probe = probe_spi_rdid,
3535 .probe_timing = TIMING_ZERO,
3536 .block_erasers =
3537 {
3538 {
3539 .eraseblocks = { {4 * 1024, 1024} },
3540 .block_erase = spi_block_erase_20,
3541 }, {
3542 .eraseblocks = { {64 * 1024, 64} },
3543 .block_erase = spi_block_erase_d8,
3544 }, {
3545 .eraseblocks = { {4 * 1024 * 1024, 1} },
3546 .block_erase = spi_block_erase_60,
3547 }, {
3548 .eraseblocks = { {4 * 1024 * 1024, 1} },
3549 .block_erase = spi_block_erase_c7,
3550 }
3551 },
3552 .printlock = spi_prettyprint_status_register_bp2_bpl,
3553 .unlock = spi_disable_blockprotect,
3554 .write = spi_chip_write_256,
3555 .read = spi_chip_read,
3556 .voltage = {2700, 3600},
3557 },
3558
3559 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003560 .vendor = "Eon",
3561 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003562 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003563 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003564 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003565 .total_size = 64,
3566 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003567 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003568 .tested = TEST_UNTESTED,
3569 .probe = probe_spi_rdid,
3570 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003571 .block_erasers =
3572 {
3573 {
3574 .eraseblocks = {
3575 {4 * 1024, 2},
3576 {8 * 1024, 1},
3577 {16 * 1024, 1},
3578 {32 * 1024, 1},
3579 },
3580 .block_erase = spi_block_erase_d8,
3581 }, {
3582 .eraseblocks = { {64 * 1024, 1} },
3583 .block_erase = spi_block_erase_c7,
3584 }
3585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003587 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003588 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003589 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003590 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003591 },
3592
3593 {
3594 .vendor = "Eon",
3595 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003596 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003597 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003598 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003599 .total_size = 64,
3600 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003601 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003602 .tested = TEST_UNTESTED,
3603 .probe = probe_spi_rdid,
3604 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003605 .block_erasers =
3606 {
3607 {
3608 .eraseblocks = {
3609 {32 * 1024, 1},
3610 {16 * 1024, 1},
3611 {8 * 1024, 1},
3612 {4 * 1024, 2},
3613 },
3614 .block_erase = spi_block_erase_d8,
3615 }, {
3616 .eraseblocks = { {64 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
3618 }
3619 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003621 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003622 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003623 .read = spi_chip_read, /* Fast read (0x0B) supported */
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "Eon",
3629 .name = "EN25P05",
3630 .bustype = BUS_SPI,
3631 .manufacture_id = EON_ID_NOPREFIX,
3632 .model_id = EON_EN25B05,
3633 .total_size = 64,
3634 .page_size = 256,
3635 .feature_bits = FEATURE_WRSR_WREN,
3636 .tested = TEST_UNTESTED,
3637 .probe = probe_spi_rdid,
3638 .probe_timing = TIMING_ZERO,
3639 .block_erasers =
3640 {
3641 {
3642 .eraseblocks = {
3643 {32 * 1024, 2} },
3644 .block_erase = spi_block_erase_d8,
3645 }, {
3646 .eraseblocks = { {64 * 1024, 1} },
3647 .block_erase = spi_block_erase_c7,
3648 }
3649 },
3650 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3651 .unlock = spi_disable_blockprotect,
3652 .write = spi_chip_write_256,
3653 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003654 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003655 },
3656
3657 {
3658 .vendor = "Eon",
3659 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003660 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003661 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003662 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003663 .total_size = 128,
3664 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003665 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003666 .tested = TEST_UNTESTED,
3667 .probe = probe_spi_rdid,
3668 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003669 .block_erasers =
3670 {
3671 {
3672 .eraseblocks = {
3673 {4 * 1024, 2},
3674 {8 * 1024, 1},
3675 {16 * 1024, 1},
3676 {32 * 1024, 3},
3677 },
3678 .block_erase = spi_block_erase_d8,
3679 }, {
3680 .eraseblocks = { {128 * 1024, 1} },
3681 .block_erase = spi_block_erase_c7,
3682 }
3683 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003684 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003685 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003686 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003687 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003688 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003689 },
3690
3691 {
3692 .vendor = "Eon",
3693 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003694 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003695 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003696 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003697 .total_size = 128,
3698 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003699 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003700 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003701 .probe = probe_spi_rdid,
3702 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003703 .block_erasers =
3704 {
3705 {
3706 .eraseblocks = {
3707 {32 * 1024, 3},
3708 {16 * 1024, 1},
3709 {8 * 1024, 1},
3710 {4 * 1024, 2},
3711 },
3712 .block_erase = spi_block_erase_d8,
3713 }, {
3714 .eraseblocks = { {128 * 1024, 1} },
3715 .block_erase = spi_block_erase_c7,
3716 }
3717 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003718 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003719 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003720 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003721 .read = spi_chip_read, /* Fast read (0x0B) supported */
3722 .voltage = {2700, 3600},
3723 },
3724
3725 {
3726 .vendor = "Eon",
3727 .name = "EN25P10",
3728 .bustype = BUS_SPI,
3729 .manufacture_id = EON_ID_NOPREFIX,
3730 .model_id = EON_EN25B10,
3731 .total_size = 128,
3732 .page_size = 256,
3733 .feature_bits = FEATURE_WRSR_WREN,
3734 .tested = TEST_UNTESTED,
3735 .probe = probe_spi_rdid,
3736 .probe_timing = TIMING_ZERO,
3737 .block_erasers =
3738 {
3739 {
3740 .eraseblocks = { {32 * 1024, 4} },
3741 .block_erase = spi_block_erase_d8,
3742 }, {
3743 .eraseblocks = { {128 * 1024, 1} },
3744 .block_erase = spi_block_erase_c7,
3745 }
3746 },
3747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3748 .unlock = spi_disable_blockprotect,
3749 .write = spi_chip_write_256,
3750 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003751 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003752 },
3753
3754 {
3755 .vendor = "Eon",
3756 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003757 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003758 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003759 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003760 .total_size = 256,
3761 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003762 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003763 .tested = TEST_UNTESTED,
3764 .probe = probe_spi_rdid,
3765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003766 .block_erasers =
3767 {
3768 {
3769 .eraseblocks = {
3770 {4 * 1024, 2},
3771 {8 * 1024, 1},
3772 {16 * 1024, 1},
3773 {32 * 1024, 1},
3774 {64 * 1024, 3}
3775 },
3776 .block_erase = spi_block_erase_d8,
3777 }, {
3778 .eraseblocks = { {256 * 1024, 1} },
3779 .block_erase = spi_block_erase_c7,
3780 }
3781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003783 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003784 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003785 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003786 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003787 },
3788
3789 {
3790 .vendor = "Eon",
3791 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003792 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003793 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003794 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003795 .total_size = 256,
3796 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003797 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003798 .tested = TEST_UNTESTED,
3799 .probe = probe_spi_rdid,
3800 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003801 .block_erasers =
3802 {
3803 {
3804 .eraseblocks = {
3805 {64 * 1024, 3},
3806 {32 * 1024, 1},
3807 {16 * 1024, 1},
3808 {8 * 1024, 1},
3809 {4 * 1024, 2},
3810 },
3811 .block_erase = spi_block_erase_d8,
3812 }, {
3813 .eraseblocks = { {256 * 1024, 1} },
3814 .block_erase = spi_block_erase_c7,
3815 }
3816 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003817 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003818 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003819 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003820 .read = spi_chip_read, /* Fast read (0x0B) supported */
3821 .voltage = {2700, 3600},
3822 },
3823
3824 {
3825 .vendor = "Eon",
3826 .name = "EN25P20",
3827 .bustype = BUS_SPI,
3828 .manufacture_id = EON_ID_NOPREFIX,
3829 .model_id = EON_EN25B20,
3830 .total_size = 256,
3831 .page_size = 256,
3832 .feature_bits = FEATURE_WRSR_WREN,
3833 .tested = TEST_UNTESTED,
3834 .probe = probe_spi_rdid,
3835 .probe_timing = TIMING_ZERO,
3836 .block_erasers =
3837 {
3838 {
3839 .eraseblocks = { {64 * 1024, 4} },
3840 .block_erase = spi_block_erase_d8,
3841 }, {
3842 .eraseblocks = { {256 * 1024, 1} },
3843 .block_erase = spi_block_erase_c7,
3844 }
3845 },
3846 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3847 .unlock = spi_disable_blockprotect,
3848 .write = spi_chip_write_256,
3849 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003850 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003851 },
3852
3853 {
3854 .vendor = "Eon",
3855 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003856 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003857 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003858 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003859 .total_size = 512,
3860 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003861 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003862 .tested = TEST_UNTESTED,
3863 .probe = probe_spi_rdid,
3864 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003865 .block_erasers =
3866 {
3867 {
3868 .eraseblocks = {
3869 {4 * 1024, 2},
3870 {8 * 1024, 1},
3871 {16 * 1024, 1},
3872 {32 * 1024, 1},
3873 {64 * 1024, 7}
3874 },
3875 .block_erase = spi_block_erase_d8,
3876 }, {
3877 .eraseblocks = { {512 * 1024, 1} },
3878 .block_erase = spi_block_erase_c7,
3879 }
3880 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003881 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003882 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003883 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003884 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003885 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003886 },
3887
3888 {
3889 .vendor = "Eon",
3890 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003891 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003892 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003893 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003894 .total_size = 512,
3895 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003896 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003897 .tested = TEST_UNTESTED,
3898 .probe = probe_spi_rdid,
3899 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003900 .block_erasers =
3901 {
3902 {
3903 .eraseblocks = {
3904 {64 * 1024, 7},
3905 {32 * 1024, 1},
3906 {16 * 1024, 1},
3907 {8 * 1024, 1},
3908 {4 * 1024, 2},
3909 },
3910 .block_erase = spi_block_erase_d8,
3911 }, {
3912 .eraseblocks = { {512 * 1024, 1} },
3913 .block_erase = spi_block_erase_c7,
3914 }
3915 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003916 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003917 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003918 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003919 .read = spi_chip_read, /* Fast read (0x0B) supported */
3920 .voltage = {2700, 3600},
3921 },
3922
3923 {
3924 .vendor = "Eon",
3925 .name = "EN25P40",
3926 .bustype = BUS_SPI,
3927 .manufacture_id = EON_ID_NOPREFIX,
3928 .model_id = EON_EN25B40,
3929 .total_size = 512,
3930 .page_size = 256,
3931 .feature_bits = FEATURE_WRSR_WREN,
3932 .tested = TEST_UNTESTED,
3933 .probe = probe_spi_rdid,
3934 .probe_timing = TIMING_ZERO,
3935 .block_erasers =
3936 {
3937 {
3938 .eraseblocks = { {64 * 1024, 8} },
3939 .block_erase = spi_block_erase_d8,
3940 }, {
3941 .eraseblocks = { {512 * 1024, 1} },
3942 .block_erase = spi_block_erase_c7,
3943 }
3944 },
3945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3946 .unlock = spi_disable_blockprotect,
3947 .write = spi_chip_write_256,
3948 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003949 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003950 },
3951
3952 {
3953 .vendor = "Eon",
3954 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003955 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003956 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003957 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003958 .total_size = 1024,
3959 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003960 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003961 .tested = TEST_UNTESTED,
3962 .probe = probe_spi_rdid,
3963 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003964 .block_erasers =
3965 {
3966 {
3967 .eraseblocks = {
3968 {4 * 1024, 2},
3969 {8 * 1024, 1},
3970 {16 * 1024, 1},
3971 {32 * 1024, 1},
3972 {64 * 1024, 15}
3973 },
3974 .block_erase = spi_block_erase_d8,
3975 }, {
3976 .eraseblocks = { {1024 * 1024, 1} },
3977 .block_erase = spi_block_erase_c7,
3978 }
3979 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003980 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003981 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003982 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003983 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003984 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003985 },
3986
3987 {
3988 .vendor = "Eon",
3989 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003990 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003991 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003992 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003993 .total_size = 1024,
3994 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003995 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003996 .tested = TEST_UNTESTED,
3997 .probe = probe_spi_rdid,
3998 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003999 .block_erasers =
4000 {
4001 {
4002 .eraseblocks = {
4003 {64 * 1024, 15},
4004 {32 * 1024, 1},
4005 {16 * 1024, 1},
4006 {8 * 1024, 1},
4007 {4 * 1024, 2},
4008 },
4009 .block_erase = spi_block_erase_d8,
4010 }, {
4011 .eraseblocks = { {1024 * 1024, 1} },
4012 .block_erase = spi_block_erase_c7,
4013 }
4014 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004015 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004016 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004017 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004018 .read = spi_chip_read, /* Fast read (0x0B) supported */
4019 .voltage = {2700, 3600},
4020 },
4021
4022 {
4023 .vendor = "Eon",
4024 .name = "EN25P80",
4025 .bustype = BUS_SPI,
4026 .manufacture_id = EON_ID_NOPREFIX,
4027 .model_id = EON_EN25B80,
4028 .total_size = 1024,
4029 .page_size = 256,
4030 .feature_bits = FEATURE_WRSR_WREN,
4031 .tested = TEST_UNTESTED,
4032 .probe = probe_spi_rdid,
4033 .probe_timing = TIMING_ZERO,
4034 .block_erasers =
4035 {
4036 {
4037 .eraseblocks = { {64 * 1024, 16} },
4038 .block_erase = spi_block_erase_d8,
4039 }, {
4040 .eraseblocks = { {1024 * 1024, 1} },
4041 .block_erase = spi_block_erase_c7,
4042 }
4043 },
4044 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4045 .unlock = spi_disable_blockprotect,
4046 .write = spi_chip_write_256,
4047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004048 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004049 },
4050
4051 {
4052 .vendor = "Eon",
4053 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004054 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004055 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004056 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004057 .total_size = 2048,
4058 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004059 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004060 .tested = TEST_UNTESTED,
4061 .probe = probe_spi_rdid,
4062 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004063 .block_erasers =
4064 {
4065 {
4066 .eraseblocks = {
4067 {4 * 1024, 2},
4068 {8 * 1024, 1},
4069 {16 * 1024, 1},
4070 {32 * 1024, 1},
4071 {64 * 1024, 31},
4072 },
4073 .block_erase = spi_block_erase_d8,
4074 }, {
4075 .eraseblocks = { {2 * 1024 * 1024, 1} },
4076 .block_erase = spi_block_erase_c7,
4077 }
4078 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004079 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004080 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004081 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004082 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004083 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004084 },
4085
4086 {
4087 .vendor = "Eon",
4088 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004089 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004090 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004091 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .total_size = 2048,
4093 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004094 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004095 .tested = TEST_UNTESTED,
4096 .probe = probe_spi_rdid,
4097 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004098 .block_erasers =
4099 {
4100 {
4101 .eraseblocks = {
4102 {64 * 1024, 31},
4103 {32 * 1024, 1},
4104 {16 * 1024, 1},
4105 {8 * 1024, 1},
4106 {4 * 1024, 2},
4107 },
4108 .block_erase = spi_block_erase_d8,
4109 }, {
4110 .eraseblocks = { {2 * 1024 * 1024, 1} },
4111 .block_erase = spi_block_erase_c7,
4112 }
4113 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004114 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004115 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004116 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004117 .read = spi_chip_read, /* Fast read (0x0B) supported */
4118 .voltage = {2700, 3600},
4119 },
4120
4121 {
4122 .vendor = "Eon",
4123 .name = "EN25P16",
4124 .bustype = BUS_SPI,
4125 .manufacture_id = EON_ID_NOPREFIX,
4126 .model_id = EON_EN25B16,
4127 .total_size = 2048,
4128 .page_size = 256,
4129 .feature_bits = FEATURE_WRSR_WREN,
4130 .tested = TEST_UNTESTED,
4131 .probe = probe_spi_rdid,
4132 .probe_timing = TIMING_ZERO,
4133 .block_erasers =
4134 {
4135 {
4136 .eraseblocks = { {64 * 1024, 32} },
4137 .block_erase = spi_block_erase_d8,
4138 }, {
4139 .eraseblocks = { {2 * 1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
4143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004147 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004148 },
4149
4150 {
4151 .vendor = "Eon",
4152 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004153 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004154 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004155 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004156 .total_size = 4096,
4157 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004158 /* OTP: 512B total; enter 0x3A */
4159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004160 .tested = TEST_UNTESTED,
4161 .probe = probe_spi_rdid,
4162 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004163 .block_erasers =
4164 {
4165 {
4166 .eraseblocks = {
4167 {4 * 1024, 2},
4168 {8 * 1024, 1},
4169 {16 * 1024, 1},
4170 {32 * 1024, 1},
4171 {64 * 1024, 63},
4172 },
4173 .block_erase = spi_block_erase_d8,
4174 }, {
4175 .eraseblocks = { {4 * 1024 * 1024, 1} },
4176 .block_erase = spi_block_erase_c7,
4177 }
4178 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004180 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004181 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004182 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004183 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004190 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004191 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004192 .total_size = 4096,
4193 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004194 /* OTP: 512B total; enter 0x3A */
4195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004196 .tested = TEST_UNTESTED,
4197 .probe = probe_spi_rdid,
4198 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004199 .block_erasers =
4200 {
4201 {
4202 .eraseblocks = {
4203 {64 * 1024, 63},
4204 {32 * 1024, 1},
4205 {16 * 1024, 1},
4206 {8 * 1024, 1},
4207 {4 * 1024, 2},
4208 },
4209 .block_erase = spi_block_erase_d8,
4210 }, {
4211 .eraseblocks = { {4 * 1024 * 1024, 1} },
4212 .block_erase = spi_block_erase_c7,
4213 }
4214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004216 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004217 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004218 .read = spi_chip_read, /* Fast read (0x0B) supported */
4219 .voltage = {2700, 3600},
4220 },
4221
4222 {
4223 .vendor = "Eon",
4224 .name = "EN25P32", /* Uniform version of EN25B32 */
4225 .bustype = BUS_SPI,
4226 .manufacture_id = EON_ID_NOPREFIX,
4227 .model_id = EON_EN25B32,
4228 .total_size = 4096,
4229 .page_size = 256,
4230 /* OTP: 512B total; enter 0x3A */
4231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4232 .tested = TEST_UNTESTED,
4233 .probe = probe_spi_rdid,
4234 .probe_timing = TIMING_ZERO,
4235 .block_erasers =
4236 {
4237 {
4238 .eraseblocks = { {64 * 1024, 64} },
4239 .block_erase = spi_block_erase_d8,
4240 }, {
4241 .eraseblocks = { {4 * 1024 * 1024, 1} },
4242 .block_erase = spi_block_erase_c7,
4243 }
4244 },
4245 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4246 .unlock = spi_disable_blockprotect,
4247 .write = spi_chip_write_256,
4248 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004249 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004250 },
4251
4252 {
4253 .vendor = "Eon",
4254 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004255 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004256 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004257 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004258 .total_size = 8192,
4259 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004260 /* OTP: 512B total; enter 0x3A */
4261 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004262 .tested = TEST_UNTESTED,
4263 .probe = probe_spi_rdid,
4264 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004265 .block_erasers =
4266 {
4267 {
4268 .eraseblocks = {
4269 {4 * 1024, 2},
4270 {8 * 1024, 1},
4271 {16 * 1024, 1},
4272 {32 * 1024, 1},
4273 {64 * 1024, 127},
4274 },
4275 .block_erase = spi_block_erase_d8,
4276 }, {
4277 .eraseblocks = { {8 * 1024 * 1024, 1} },
4278 .block_erase = spi_block_erase_c7,
4279 }
4280 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004281 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004282 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004283 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004284 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004285 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004286 },
4287
4288 {
4289 .vendor = "Eon",
4290 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004291 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004292 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004293 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004294 .total_size = 8192,
4295 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004296 /* OTP: 512B total; enter 0x3A */
4297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004298 .tested = TEST_UNTESTED,
4299 .probe = probe_spi_rdid,
4300 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004301 .block_erasers =
4302 {
4303 {
4304 .eraseblocks = {
4305 {64 * 1024, 127},
4306 {32 * 1024, 1},
4307 {16 * 1024, 1},
4308 {8 * 1024, 1},
4309 {4 * 1024, 2},
4310 },
4311 .block_erase = spi_block_erase_d8,
4312 }, {
4313 .eraseblocks = { {8 * 1024 * 1024, 1} },
4314 .block_erase = spi_block_erase_c7,
4315 }
4316 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004317 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004318 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004319 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004320 .read = spi_chip_read, /* Fast read (0x0B) supported */
4321 .voltage = {2700, 3600},
4322 },
4323
4324 {
4325 .vendor = "Eon",
4326 .name = "EN25P64",
4327 .bustype = BUS_SPI,
4328 .manufacture_id = EON_ID_NOPREFIX,
4329 .model_id = EON_EN25B64,
4330 .total_size = 8192,
4331 .page_size = 256,
4332 /* OTP: 512B total; enter 0x3A */
4333 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4334 .tested = TEST_UNTESTED,
4335 .probe = probe_spi_rdid,
4336 .probe_timing = TIMING_ZERO,
4337 .block_erasers =
4338 {
4339 {
4340 .eraseblocks = { {64 * 1024, 128} },
4341 .block_erase = spi_block_erase_d8,
4342 }, {
4343 .eraseblocks = { {8 * 1024 * 1024, 1} },
4344 .block_erase = spi_block_erase_c7,
4345 }
4346 },
4347 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4348 .unlock = spi_disable_blockprotect,
4349 .write = spi_chip_write_256,
4350 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004351 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004352 },
4353
4354 {
4355 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004356 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004357 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004358 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004359 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004360 .total_size = 64,
4361 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004362 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004363 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004364 .probe = probe_spi_rdid,
4365 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004366 .block_erasers =
4367 {
4368 {
4369 .eraseblocks = { {4 * 1024, 16} },
4370 .block_erase = spi_block_erase_20,
4371 }, {
4372 .eraseblocks = { {32 * 1024, 2} },
4373 .block_erase = spi_block_erase_d8,
4374 }, {
4375 .eraseblocks = { {32 * 1024, 2} },
4376 .block_erase = spi_block_erase_52,
4377 }, {
4378 .eraseblocks = { {64 * 1024, 1} },
4379 .block_erase = spi_block_erase_60,
4380 }, {
4381 .eraseblocks = { {64 * 1024, 1} },
4382 .block_erase = spi_block_erase_c7,
4383 }
4384 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004385 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004386 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004387 .write = spi_chip_write_256,
4388 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004389 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004390 },
4391
4392 {
4393 .vendor = "Eon",
4394 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004395 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004396 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004397 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004398 .total_size = 128,
4399 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004400 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004401 .tested = TEST_UNTESTED,
4402 .probe = probe_spi_rdid,
4403 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004404 .block_erasers =
4405 {
4406 {
4407 .eraseblocks = { {4 * 1024, 32} },
4408 .block_erase = spi_block_erase_20,
4409 }, {
4410 .eraseblocks = { {32 * 1024, 4} },
4411 .block_erase = spi_block_erase_d8,
4412 }, {
4413 .eraseblocks = { {32 * 1024, 4} },
4414 .block_erase = spi_block_erase_52,
4415 }, {
4416 .eraseblocks = { {128 * 1024, 1} },
4417 .block_erase = spi_block_erase_60,
4418 }, {
4419 .eraseblocks = { {128 * 1024, 1} },
4420 .block_erase = spi_block_erase_c7,
4421 }
4422 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004423 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004424 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004425 .write = spi_chip_write_256,
4426 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004427 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004428 },
4429
4430 {
4431 .vendor = "Eon",
4432 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004433 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004434 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004435 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004436 .total_size = 256,
4437 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004438 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004439 .tested = TEST_UNTESTED,
4440 .probe = probe_spi_rdid,
4441 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004442 .block_erasers =
4443 {
4444 {
4445 .eraseblocks = { {4 * 1024, 64} },
4446 .block_erase = spi_block_erase_20,
4447 }, {
4448 .eraseblocks = { {64 * 1024, 4} },
4449 .block_erase = spi_block_erase_d8,
4450 }, {
4451 .eraseblocks = { {64 * 1024, 4} },
4452 .block_erase = spi_block_erase_52,
4453 }, {
4454 .eraseblocks = { {256 * 1024, 1} },
4455 .block_erase = spi_block_erase_60,
4456 }, {
4457 .eraseblocks = { {256 * 1024, 1} },
4458 .block_erase = spi_block_erase_c7,
4459 }
4460 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004461 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004462 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004463 .write = spi_chip_write_256,
4464 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004465 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004466 },
4467
4468 {
4469 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004470 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004471 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004472 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004473 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004474 .total_size = 512,
4475 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004476 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004477 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004478 .probe = probe_spi_rdid,
4479 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004480 .block_erasers =
4481 {
4482 {
Sean Nelson54596372010-01-09 05:30:14 +00004483 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004484 .block_erase = spi_block_erase_20,
4485 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004486 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004487 .block_erase = spi_block_erase_d8,
4488 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004489 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004490 .block_erase = spi_block_erase_60,
4491 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004492 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004493 .block_erase = spi_block_erase_c7,
4494 },
4495 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004496 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004497 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004498 .write = spi_chip_write_256,
4499 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004500 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004501 },
4502
4503 {
4504 .vendor = "Eon",
4505 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004506 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004507 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004508 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004509 .total_size = 1024,
4510 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004511 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004512 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004513 .probe = probe_spi_rdid,
4514 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004515 .block_erasers =
4516 {
4517 {
4518 .eraseblocks = { {4 * 1024, 256} },
4519 .block_erase = spi_block_erase_20,
4520 }, {
4521 .eraseblocks = { {64 * 1024, 16} },
4522 .block_erase = spi_block_erase_d8,
4523 }, {
4524 .eraseblocks = { {1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_60,
4526 }, {
4527 .eraseblocks = { {1024 * 1024, 1} },
4528 .block_erase = spi_block_erase_c7,
4529 }
4530 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004531 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004532 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004533 .write = spi_chip_write_256,
4534 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004535 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004536 },
4537
4538 {
4539 .vendor = "Eon",
4540 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004541 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004542 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004543 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004544 .total_size = 2048,
4545 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004546 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004547 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004548 .probe = probe_spi_rdid,
4549 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004550 .block_erasers =
4551 {
4552 {
4553 .eraseblocks = { {4 * 1024, 512} },
4554 .block_erase = spi_block_erase_20,
4555 }, {
4556 .eraseblocks = { {64 * 1024, 32} },
4557 .block_erase = spi_block_erase_d8,
4558 }, {
4559 .eraseblocks = { {2 * 1024 * 1024, 1} },
4560 .block_erase = spi_block_erase_60,
4561 }, {
4562 .eraseblocks = { {2 * 1024 * 1024, 1} },
4563 .block_erase = spi_block_erase_c7,
4564 }
4565 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004566 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004567 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004568 .write = spi_chip_write_256,
4569 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004570 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004571 },
4572
4573 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004574 .vendor = "Eon",
4575 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004576 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004577 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004578 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004579 .total_size = 4096,
4580 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004581 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004582 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004583 .probe = probe_spi_rdid,
4584 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004585 .block_erasers =
4586 {
4587 {
4588 .eraseblocks = { {4 * 1024, 1024} },
4589 .block_erase = spi_block_erase_20,
4590 }, {
4591 .eraseblocks = { {64 * 1024, 64} },
4592 .block_erase = spi_block_erase_d8,
4593 }, {
4594 .eraseblocks = { {4 * 1024 * 1024, 1} },
4595 .block_erase = spi_block_erase_60,
4596 }, {
4597 .eraseblocks = { {4 * 1024 * 1024, 1} },
4598 .block_erase = spi_block_erase_c7,
4599 }
4600 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004601 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004602 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004603 .write = spi_chip_write_256,
4604 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004605 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004606 },
4607
4608 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004609 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004610 .name = "EN25F64",
4611 .bustype = BUS_SPI,
4612 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004613 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004614 .total_size = 8192,
4615 .page_size = 256,
4616 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004617 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004618 .probe = probe_spi_rdid,
4619 .probe_timing = TIMING_ZERO,
4620 .block_erasers =
4621 {
4622 {
4623 .eraseblocks = { {4 * 1024, 2048} },
4624 .block_erase = spi_block_erase_20,
4625 }, {
4626 .eraseblocks = { {64 * 1024, 128} },
4627 .block_erase = spi_block_erase_d8,
4628 }, {
4629 .eraseblocks = { {8 * 1024 * 1024, 1} },
4630 .block_erase = spi_block_erase_60,
4631 }, {
4632 .eraseblocks = { {8 * 1024 * 1024, 1} },
4633 .block_erase = spi_block_erase_c7,
4634 }
4635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004636 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004637 .unlock = spi_disable_blockprotect,
4638 .write = spi_chip_write_256,
4639 .read = spi_chip_read,
4640 .voltage = {2700, 3600},
4641 },
4642
4643 {
4644 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004645 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004646 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004647 .manufacture_id = EON_ID_NOPREFIX,
4648 .model_id = EON_EN25Q40,
4649 .total_size = 512,
4650 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004651 /* OTP: 256B total; enter 0x3A */
4652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004653 .tested = TEST_UNTESTED,
4654 .probe = probe_spi_rdid,
4655 .probe_timing = TIMING_ZERO,
4656 .block_erasers =
4657 {
4658 {
4659 .eraseblocks = { {4 * 1024, 128} },
4660 .block_erase = spi_block_erase_20,
4661 }, {
4662 .eraseblocks = { {64 * 1024, 8} },
4663 .block_erase = spi_block_erase_d8,
4664 }, {
4665 .eraseblocks = { {512 * 1024, 1} },
4666 .block_erase = spi_block_erase_60,
4667 }, {
4668 .eraseblocks = { {512 * 1024, 1} },
4669 .block_erase = spi_block_erase_c7,
4670 }
4671 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004672 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004673 .unlock = spi_disable_blockprotect,
4674 .write = spi_chip_write_256,
4675 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004676 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004677 },
4678
4679 {
4680 .vendor = "Eon",
4681 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004682 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004683 .manufacture_id = EON_ID_NOPREFIX,
4684 .model_id = EON_EN25Q80,
4685 .total_size = 1024,
4686 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004687 /* OTP: 256B total; enter 0x3A */
4688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004689 .tested = TEST_UNTESTED,
4690 .probe = probe_spi_rdid,
4691 .probe_timing = TIMING_ZERO,
4692 .block_erasers =
4693 {
4694 {
4695 .eraseblocks = { {4 * 1024, 256} },
4696 .block_erase = spi_block_erase_20,
4697 }, {
4698 .eraseblocks = { {64 * 1024, 16} },
4699 .block_erase = spi_block_erase_d8,
4700 }, {
4701 .eraseblocks = { {1024 * 1024, 1} },
4702 .block_erase = spi_block_erase_60,
4703 }, {
4704 .eraseblocks = { {1024 * 1024, 1} },
4705 .block_erase = spi_block_erase_c7,
4706 }
4707 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004709 .unlock = spi_disable_blockprotect,
4710 .write = spi_chip_write_256,
4711 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004712 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004713 },
4714
4715 {
4716 /* Note: EN25D16 is an evil twin which shares the model ID
4717 but has different write protection capabilities */
4718 .vendor = "Eon",
4719 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004720 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004721 .manufacture_id = EON_ID_NOPREFIX,
4722 .model_id = EON_EN25Q16,
4723 .total_size = 2048,
4724 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004725 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4726 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004727 .tested = TEST_UNTESTED,
4728 .probe = probe_spi_rdid,
4729 .probe_timing = TIMING_ZERO,
4730 .block_erasers =
4731 {
4732 {
4733 .eraseblocks = { {4 * 1024, 512} },
4734 .block_erase = spi_block_erase_20,
4735 }, {
4736 .eraseblocks = { {64 * 1024, 32} },
4737 .block_erase = spi_block_erase_d8,
4738 }, {
4739 /* not supported by Q16 version */
4740 .eraseblocks = { {64 * 1024, 32} },
4741 .block_erase = spi_block_erase_52,
4742 }, {
4743 .eraseblocks = { {2 * 1024 * 1024, 1} },
4744 .block_erase = spi_block_erase_60,
4745 }, {
4746 .eraseblocks = { {2 * 1024 * 1024, 1} },
4747 .block_erase = spi_block_erase_c7,
4748 }
4749 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004750 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004751 .unlock = spi_disable_blockprotect,
4752 .write = spi_chip_write_256,
4753 .read = spi_chip_read,
4754 .voltage = {2700, 3600},
4755 },
4756
4757 {
4758 .vendor = "Eon",
4759 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004760 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004761 .manufacture_id = EON_ID_NOPREFIX,
4762 .model_id = EON_EN25Q32,
4763 .total_size = 4096,
4764 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004765 /* OTP: 512B total; enter 0x3A */
4766 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004767 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004768 .probe = probe_spi_rdid,
4769 .probe_timing = TIMING_ZERO,
4770 .block_erasers =
4771 {
4772 {
4773 .eraseblocks = { {4 * 1024, 1024} },
4774 .block_erase = spi_block_erase_20,
4775 }, {
4776 .eraseblocks = { {64 * 1024, 64} },
4777 .block_erase = spi_block_erase_d8,
4778 }, {
4779 .eraseblocks = { {4 * 1024 * 1024, 1} },
4780 .block_erase = spi_block_erase_60,
4781 }, {
4782 .eraseblocks = { {4 * 1024 * 1024, 1} },
4783 .block_erase = spi_block_erase_c7,
4784 }
4785 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004786 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004787 .unlock = spi_disable_blockprotect,
4788 .write = spi_chip_write_256,
4789 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004790 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004791 },
4792
4793 {
4794 .vendor = "Eon",
4795 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004796 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004797 .manufacture_id = EON_ID_NOPREFIX,
4798 .model_id = EON_EN25Q64,
4799 .total_size = 8192,
4800 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004801 /* OTP: 512B total; enter 0x3A */
4802 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004803 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004804 .probe = probe_spi_rdid,
4805 .probe_timing = TIMING_ZERO,
4806 .block_erasers =
4807 {
4808 {
4809 .eraseblocks = { {4 * 1024, 2048} },
4810 .block_erase = spi_block_erase_20,
4811 }, {
4812 .eraseblocks = { {64 * 1024, 128} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {8 * 1024 * 1024, 1} },
4816 .block_erase = spi_block_erase_60,
4817 }, {
4818 .eraseblocks = { {8 * 1024 * 1024, 1} },
4819 .block_erase = spi_block_erase_c7,
4820 }
4821 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004822 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004823 .unlock = spi_disable_blockprotect,
4824 .write = spi_chip_write_256,
4825 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004826 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004827 },
4828
4829 {
4830 .vendor = "Eon",
4831 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004832 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004833 .manufacture_id = EON_ID_NOPREFIX,
4834 .model_id = EON_EN25Q128,
4835 .total_size = 16384,
4836 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004837 /* OTP: 512B total; enter 0x3A */
4838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004839 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004840 .probe = probe_spi_rdid,
4841 .probe_timing = TIMING_ZERO,
4842 .block_erasers =
4843 {
4844 {
4845 .eraseblocks = { {4 * 1024, 4096} },
4846 .block_erase = spi_block_erase_20,
4847 }, {
4848 .eraseblocks = { {64 * 1024, 256} },
4849 .block_erase = spi_block_erase_d8,
4850 }, {
4851 .eraseblocks = { {16 * 1024 * 1024, 1} },
4852 .block_erase = spi_block_erase_60,
4853 }, {
4854 .eraseblocks = { {16 * 1024 * 1024, 1} },
4855 .block_erase = spi_block_erase_c7,
4856 }
4857 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004858 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004859 .unlock = spi_disable_blockprotect,
4860 .write = spi_chip_write_256,
4861 .read = spi_chip_read,
4862 },
4863
4864 {
4865 .vendor = "Eon",
4866 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004867 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004868 .manufacture_id = EON_ID_NOPREFIX,
4869 .model_id = EON_EN25QH16,
4870 .total_size = 2048,
4871 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004872 /* supports SFDP */
4873 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004874 /* QPI enable 0x38, disable 0xFF */
4875 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004876 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004877 .probe = probe_spi_rdid,
4878 .probe_timing = TIMING_ZERO,
4879 .block_erasers =
4880 {
4881 {
4882 .eraseblocks = { {4 * 1024, 512} },
4883 .block_erase = spi_block_erase_20,
4884 }, {
4885 .eraseblocks = { {64 * 1024, 32} },
4886 .block_erase = spi_block_erase_d8,
4887 }, {
4888 .eraseblocks = { {1024 * 2048, 1} },
4889 .block_erase = spi_block_erase_60,
4890 }, {
4891 .eraseblocks = { {1024 * 2048, 1} },
4892 .block_erase = spi_block_erase_c7,
4893 }
4894 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004895 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004896 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004897 .write = spi_chip_write_256,
4898 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004899 .voltage = {2700, 3600},
4900 },
4901
4902 {
4903 .vendor = "Eon",
4904 .name = "EN25QH32",
4905 .bustype = BUS_SPI,
4906 .manufacture_id = EON_ID_NOPREFIX,
4907 .model_id = EON_EN25QH32,
4908 .total_size = 4096,
4909 .page_size = 256,
4910 /* supports SFDP */
4911 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004912 /* QPI enable 0x38, disable 0xFF */
4913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004914 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004915 .probe = probe_spi_rdid,
4916 .probe_timing = TIMING_ZERO,
4917 .block_erasers =
4918 {
4919 {
4920 .eraseblocks = { {4 * 1024, 1024} },
4921 .block_erase = spi_block_erase_20,
4922 }, {
4923 .eraseblocks = { {64 * 1024, 64} },
4924 .block_erase = spi_block_erase_d8,
4925 }, {
4926 .eraseblocks = { {1024 * 4096, 1} },
4927 .block_erase = spi_block_erase_60,
4928 }, {
4929 .eraseblocks = { {1024 * 4096, 1} },
4930 .block_erase = spi_block_erase_c7,
4931 }
4932 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004933 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004934 .unlock = spi_disable_blockprotect_bp3_srwd,
4935 .write = spi_chip_write_256,
4936 .read = spi_chip_read,
4937 .voltage = {2700, 3600},
4938 },
4939
4940 {
4941 .vendor = "Eon",
4942 .name = "EN25QH64",
4943 .bustype = BUS_SPI,
4944 .manufacture_id = EON_ID_NOPREFIX,
4945 .model_id = EON_EN25QH64,
4946 .total_size = 8192,
4947 .page_size = 256,
4948 /* supports SFDP */
4949 /* OTP: 512B total; enter 0x3A */
4950 /* QPI enable 0x38, disable 0xFF */
4951 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004952 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004953 .probe = probe_spi_rdid,
4954 .probe_timing = TIMING_ZERO,
4955 .block_erasers = {
4956 {
4957 .eraseblocks = { {4 * 1024, 2048} },
4958 .block_erase = spi_block_erase_20,
4959 }, {
4960 .eraseblocks = { {64 * 1024, 128} },
4961 .block_erase = spi_block_erase_d8,
4962 }, {
4963 .eraseblocks = { { 8192 * 1024, 1} },
4964 .block_erase = spi_block_erase_60,
4965 }, {
4966 .eraseblocks = { { 8192 * 1024, 1} },
4967 .block_erase = spi_block_erase_c7,
4968 }
4969 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004970 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004971 .unlock = spi_disable_blockprotect_bp3_srwd,
4972 .write = spi_chip_write_256,
4973 .read = spi_chip_read,
4974 .voltage = {2700, 3600},
4975 },
4976
4977 {
4978 .vendor = "Eon",
4979 .name = "EN25QH128",
4980 .bustype = BUS_SPI,
4981 .manufacture_id = EON_ID_NOPREFIX,
4982 .model_id = EON_EN25QH128,
4983 .total_size = 16384,
4984 .page_size = 256,
4985 /* supports SFDP */
4986 /* OTP: 512B total; enter 0x3A */
4987 /* QPI enable 0x38, disable 0xFF */
4988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4989 .tested = TEST_UNTESTED,
4990 .probe = probe_spi_rdid,
4991 .probe_timing = TIMING_ZERO,
4992 .block_erasers = {
4993 {
4994 .eraseblocks = { {4 * 1024, 4096} },
4995 .block_erase = spi_block_erase_20,
4996 }, {
4997 .eraseblocks = { {64 * 1024, 256} },
4998 .block_erase = spi_block_erase_d8,
4999 }, {
5000 .eraseblocks = { { 16384 * 1024, 1} },
5001 .block_erase = spi_block_erase_60,
5002 }, {
5003 .eraseblocks = { { 16384 * 1024, 1} },
5004 .block_erase = spi_block_erase_c7,
5005 }
5006 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005007 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005008 .unlock = spi_disable_blockprotect_bp3_srwd,
5009 .write = spi_chip_write_256,
5010 .read = spi_chip_read,
5011 .voltage = {2700, 3600},
5012 },
5013
5014 {
5015 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005016 .name = "EN25S10",
5017 .bustype = BUS_SPI,
5018 .manufacture_id = EON_ID_NOPREFIX,
5019 .model_id = EON_EN25S10,
5020 .total_size = 128,
5021 .page_size = 256,
5022 /* OTP: 256B total; enter 0x3A */
5023 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5024 .tested = TEST_UNTESTED,
5025 .probe = probe_spi_rdid,
5026 .probe_timing = TIMING_ZERO,
5027 .block_erasers = {
5028 {
5029 .eraseblocks = { {4 * 1024, 32} },
5030 .block_erase = spi_block_erase_20,
5031 }, {
5032 .eraseblocks = { {32 * 1024, 4} },
5033 .block_erase = spi_block_erase_52,
5034 }, {
5035 .eraseblocks = { {128 * 1024, 1} },
5036 .block_erase = spi_block_erase_60,
5037 }, {
5038 .eraseblocks = { {128 * 1024, 1} },
5039 .block_erase = spi_block_erase_c7,
5040 }
5041 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005042 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005043 .unlock = spi_disable_blockprotect,
5044 .write = spi_chip_write_256,
5045 .read = spi_chip_read,
5046 .voltage = {1650, 1950},
5047 },
5048
5049 {
5050 .vendor = "Eon",
5051 .name = "EN25S20",
5052 .bustype = BUS_SPI,
5053 .manufacture_id = EON_ID_NOPREFIX,
5054 .model_id = EON_EN25S20,
5055 .total_size = 256,
5056 .page_size = 256,
5057 /* OTP: 256B total; enter 0x3A */
5058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5059 .tested = TEST_UNTESTED,
5060 .probe = probe_spi_rdid,
5061 .probe_timing = TIMING_ZERO,
5062 .block_erasers = {
5063 {
5064 .eraseblocks = { {4 * 1024, 64} },
5065 .block_erase = spi_block_erase_20,
5066 }, {
5067 .eraseblocks = { {64 * 1024, 4} },
5068 .block_erase = spi_block_erase_d8,
5069 }, {
5070 .eraseblocks = { {256 * 1024, 1} },
5071 .block_erase = spi_block_erase_60,
5072 }, {
5073 .eraseblocks = { {256 * 1024, 1} },
5074 .block_erase = spi_block_erase_c7,
5075 }
5076 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005077 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005078 .unlock = spi_disable_blockprotect,
5079 .write = spi_chip_write_256,
5080 .read = spi_chip_read,
5081 .voltage = {1650, 1950},
5082 },
5083
5084 {
5085 .vendor = "Eon",
5086 .name = "EN25S40",
5087 .bustype = BUS_SPI,
5088 .manufacture_id = EON_ID_NOPREFIX,
5089 .model_id = EON_EN25S40,
5090 .total_size = 512,
5091 .page_size = 256,
5092 /* OTP: 256B total; enter 0x3A */
5093 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5094 .tested = TEST_UNTESTED,
5095 .probe = probe_spi_rdid,
5096 .probe_timing = TIMING_ZERO,
5097 .block_erasers = {
5098 {
5099 .eraseblocks = { {4 * 1024, 128} },
5100 .block_erase = spi_block_erase_20,
5101 }, {
5102 .eraseblocks = { {64 * 1024, 8} },
5103 .block_erase = spi_block_erase_d8,
5104 }, {
5105 .eraseblocks = { {512 * 1024, 1} },
5106 .block_erase = spi_block_erase_60,
5107 }, {
5108 .eraseblocks = { {512 * 1024, 1} },
5109 .block_erase = spi_block_erase_c7,
5110 }
5111 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005112 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005113 .unlock = spi_disable_blockprotect,
5114 .write = spi_chip_write_256,
5115 .read = spi_chip_read,
5116 .voltage = {1650, 1950},
5117 },
5118
5119 {
5120 .vendor = "Eon",
5121 .name = "EN25S80",
5122 .bustype = BUS_SPI,
5123 .manufacture_id = EON_ID_NOPREFIX,
5124 .model_id = EON_EN25S80,
5125 .total_size = 1024,
5126 .page_size = 256,
5127 /* OTP: 256B total; enter 0x3A */
5128 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5129 .tested = TEST_UNTESTED,
5130 .probe = probe_spi_rdid,
5131 .probe_timing = TIMING_ZERO,
5132 .block_erasers = {
5133 {
5134 .eraseblocks = { {4 * 1024, 256} },
5135 .block_erase = spi_block_erase_20,
5136 }, {
5137 .eraseblocks = { {64 * 1024, 16} },
5138 .block_erase = spi_block_erase_d8,
5139 }, {
5140 .eraseblocks = { {1024 * 1024, 1} },
5141 .block_erase = spi_block_erase_60,
5142 }, {
5143 .eraseblocks = { {1024 * 1024, 1} },
5144 .block_erase = spi_block_erase_c7,
5145 }
5146 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005147 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005148 .unlock = spi_disable_blockprotect,
5149 .write = spi_chip_write_256,
5150 .read = spi_chip_read,
5151 .voltage = {1650, 1950},
5152 },
5153
5154 {
5155 .vendor = "Eon",
5156 .name = "EN25S16",
5157 .bustype = BUS_SPI,
5158 .manufacture_id = EON_ID_NOPREFIX,
5159 .model_id = EON_EN25S16,
5160 .total_size = 2048,
5161 .page_size = 256,
5162 /* OTP: 512B total; enter 0x3A */
5163 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5164 .tested = TEST_UNTESTED,
5165 .probe = probe_spi_rdid,
5166 .probe_timing = TIMING_ZERO,
5167 .block_erasers = {
5168 {
5169 .eraseblocks = { {4 * 1024, 512} },
5170 .block_erase = spi_block_erase_20,
5171 }, {
5172 .eraseblocks = { {64 * 1024, 32} },
5173 .block_erase = spi_block_erase_52,
5174 }, {
5175 .eraseblocks = { {32 * 1024, 64} },
5176 .block_erase = spi_block_erase_d8,
5177 }, {
5178 .eraseblocks = { {2048 * 1024, 1} },
5179 .block_erase = spi_block_erase_60,
5180 }, {
5181 .eraseblocks = { {2048 * 1024, 1} },
5182 .block_erase = spi_block_erase_c7,
5183 }
5184 },
5185 .printlock = spi_prettyprint_status_register_en25s_wp,
5186 .unlock = spi_disable_blockprotect_bp3_srwd,
5187 .write = spi_chip_write_256,
5188 .read = spi_chip_read,
5189 .voltage = {1650, 1950},
5190 },
5191
5192 {
5193 .vendor = "Eon",
5194 .name = "EN25S32",
5195 .bustype = BUS_SPI,
5196 .manufacture_id = EON_ID_NOPREFIX,
5197 .model_id = EON_EN25S32,
5198 .total_size = 4096,
5199 .page_size = 256,
5200 /* OTP: 512B total; enter 0x3A */
5201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5202 .tested = TEST_UNTESTED,
5203 .probe = probe_spi_rdid,
5204 .probe_timing = TIMING_ZERO,
5205 .block_erasers = {
5206 {
5207 .eraseblocks = { {4 * 1024, 1024} },
5208 .block_erase = spi_block_erase_20,
5209 }, {
5210 .eraseblocks = { {32 * 1024, 128} },
5211 .block_erase = spi_block_erase_52,
5212 }, {
5213 .eraseblocks = { {64 * 1024, 64} },
5214 .block_erase = spi_block_erase_d8,
5215 }, {
5216 .eraseblocks = { {4096 * 1024, 1} },
5217 .block_erase = spi_block_erase_60,
5218 }, {
5219 .eraseblocks = { {4096 * 1024, 1} },
5220 .block_erase = spi_block_erase_c7,
5221 }
5222 },
5223 .printlock = spi_prettyprint_status_register_en25s_wp,
5224 .unlock = spi_disable_blockprotect_bp3_srwd,
5225 .write = spi_chip_write_256,
5226 .read = spi_chip_read,
5227 .voltage = {1650, 1950},
5228 },
5229
5230 {
5231 .vendor = "Eon",
5232 .name = "EN25S64",
5233 .bustype = BUS_SPI,
5234 .manufacture_id = EON_ID_NOPREFIX,
5235 .model_id = EON_EN25S64,
5236 .total_size = 8192,
5237 .page_size = 256,
5238 /* OTP: 512B total; enter 0x3A */
5239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5240 .tested = TEST_UNTESTED,
5241 .probe = probe_spi_rdid,
5242 .probe_timing = TIMING_ZERO,
5243 .block_erasers = {
5244 {
5245 .eraseblocks = { {4 * 1024, 2048} },
5246 .block_erase = spi_block_erase_20,
5247 }, {
5248 .eraseblocks = { {64 * 1024, 128} },
5249 .block_erase = spi_block_erase_d8,
5250 }, {
5251 .eraseblocks = { {8192 * 1024, 1} },
5252 .block_erase = spi_block_erase_60,
5253 }, {
5254 .eraseblocks = { {8192 * 1024, 1} },
5255 .block_erase = spi_block_erase_c7,
5256 }
5257 },
5258 .printlock = spi_prettyprint_status_register_en25s_wp,
5259 .unlock = spi_disable_blockprotect_bp3_srwd,
5260 .write = spi_chip_write_256,
5261 .read = spi_chip_read,
5262 .voltage = {1650, 1950},
5263 },
5264
5265 {
5266 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005267 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005268 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005269 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005270 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005271 .total_size = 128,
5272 .page_size = 128,
5273 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005274 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005275 .probe = probe_jedec,
5276 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5277 .block_erasers =
5278 {
5279 {
5280 .eraseblocks = { {16 * 1024, 8} },
5281 .block_erase = erase_sector_jedec,
5282 },
5283 {
5284 .eraseblocks = { {128 * 1024, 1} },
5285 .block_erase = erase_chip_block_jedec,
5286 },
5287 },
5288 .write = write_jedec_1,
5289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005290 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005291 },
5292
5293 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005294 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005295 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005297 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005298 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005299 .total_size = 256,
5300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005301 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005302 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005303 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005304 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005305 .block_erasers =
5306 {
5307 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005308 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005309 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005310 {8 * 1024, 2},
5311 {32 * 1024, 1},
5312 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005313 },
5314 .block_erase = erase_sector_jedec,
5315 }, {
5316 .eraseblocks = { {256 * 1024, 1} },
5317 .block_erase = erase_chip_block_jedec,
5318 },
5319 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005320 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005321 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005322 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005323 },
5324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005325 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005326 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005327 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005328 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005329 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005330 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005331 .total_size = 256,
5332 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005333 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005334 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005335 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005336 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005337 .block_erasers =
5338 {
5339 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005340 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005341 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005342 {32 * 1024, 1},
5343 {8 * 1024, 2},
5344 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005345 },
5346 .block_erase = erase_sector_jedec,
5347 }, {
5348 .eraseblocks = { {256 * 1024, 1} },
5349 .block_erase = erase_chip_block_jedec,
5350 },
5351 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005352 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005353 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005354 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005355 },
5356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005357 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005358 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005359 .name = "EN29LV040(A)",
5360 .bustype = BUS_PARALLEL,
5361 .manufacture_id = EON_ID,
5362 .model_id = EON_EN29LV040,
5363 .total_size = 512,
5364 .page_size = 4 * 1024,
5365 .tested = TEST_OK_PREW,
5366 .probe = probe_jedec,
5367 .probe_timing = TIMING_ZERO,
5368 .block_erasers =
5369 {
5370 {
5371 .eraseblocks = { {64 * 1024, 8} },
5372 .block_erase = erase_sector_jedec,
5373 },
5374 {
5375 .eraseblocks = { {512 * 1024, 1} },
5376 .block_erase = erase_chip_block_jedec,
5377 },
5378 },
5379 .write = write_jedec_1,
5380 .read = read_memmapped,
5381 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5382 },
5383
5384 {
5385 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005386 .name = "EN29LV640B",
5387 .bustype = BUS_PARALLEL,
5388 .manufacture_id = EON_ID,
5389 .model_id = EON_EN29LV640B,
5390 .total_size = 8192,
5391 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005392 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005393 .tested = TEST_OK_PREW,
5394 .probe = probe_en29lv640b,
5395 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5396 .block_erasers =
5397 {
5398 {
5399 .eraseblocks = {
5400 {8 * 1024, 8},
5401 {64 * 1024, 127},
5402 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005403 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005404 }, {
5405 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005406 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005407 },
5408 },
5409 .write = write_en29lv640b,
5410 .read = read_memmapped,
5411 .voltage = {2700, 3600},
5412 },
5413
5414 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005415 .vendor = "Eon",
5416 .name = "EN29GL064(A)B",
5417 .bustype = BUS_PARALLEL,
5418 .manufacture_id = EON_ID,
5419 .model_id = EON_EN29GL064B,
5420 .total_size = 8192,
5421 .page_size = 128 * 1024, /* actual page size is 16 */
5422 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5423 .tested = TEST_UNTESTED,
5424 .probe = probe_jedec_29gl,
5425 .probe_timing = TIMING_ZERO,
5426 .block_erasers =
5427 {
5428 {
5429 .eraseblocks = {
5430 {8 * 1024, 8},
5431 {64 * 1024, 127},
5432 },
5433 .block_erase = erase_sector_jedec,
5434 }, {
5435 .eraseblocks = { {8 * 1024 * 1024, 1} },
5436 .block_erase = erase_chip_block_jedec,
5437 },
5438 },
5439 .write = write_jedec_1,
5440 .read = read_memmapped,
5441 .voltage = {2700, 3600},
5442 },
5443
5444 {
5445 .vendor = "Eon",
5446 .name = "EN29GL064(A)T",
5447 .bustype = BUS_PARALLEL,
5448 .manufacture_id = EON_ID,
5449 .model_id = EON_EN29GL064T,
5450 .total_size = 8192,
5451 .page_size = 128 * 1024, /* actual page size is 16 */
5452 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5453 .tested = TEST_UNTESTED,
5454 .probe = probe_jedec_29gl,
5455 .probe_timing = TIMING_ZERO,
5456 .block_erasers =
5457 {
5458 {
5459 .eraseblocks = {
5460 {64 * 1024, 127},
5461 {8 * 1024, 8},
5462 },
5463 .block_erase = erase_sector_jedec,
5464 }, {
5465 .eraseblocks = { {8 * 1024 * 1024, 1} },
5466 .block_erase = erase_chip_block_jedec,
5467 },
5468 },
5469 .write = write_jedec_1,
5470 .read = read_memmapped,
5471 .voltage = {2700, 3600},
5472 },
5473
5474 {
5475 .vendor = "Eon",
5476 .name = "EN29GL064H/L",
5477 .bustype = BUS_PARALLEL,
5478 .manufacture_id = EON_ID,
5479 .model_id = EON_EN29GL064HL,
5480 .total_size = 8192,
5481 .page_size = 128 * 1024, /* actual page size is 16 */
5482 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5483 .tested = TEST_UNTESTED,
5484 .probe = probe_jedec_29gl,
5485 .probe_timing = TIMING_ZERO,
5486 .block_erasers =
5487 {
5488 {
5489 .eraseblocks = { {64 * 1024, 128} },
5490 .block_erase = erase_sector_jedec,
5491 }, {
5492 .eraseblocks = { {8 * 1024 * 1024, 1} },
5493 .block_erase = erase_chip_block_jedec,
5494 },
5495 },
5496 .write = write_jedec_1,
5497 .read = read_memmapped,
5498 .voltage = {2700, 3600},
5499 },
5500
5501 {
5502 .vendor = "Eon",
5503 .name = "EN29GL128",
5504 .bustype = BUS_PARALLEL,
5505 .manufacture_id = EON_ID,
5506 .model_id = EON_EN29GL128HL,
5507 .total_size = 16384,
5508 .page_size = 128 * 1024, /* actual page size is 16 */
5509 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5510 .tested = TEST_UNTESTED,
5511 .probe = probe_jedec_29gl,
5512 .probe_timing = TIMING_ZERO,
5513 .block_erasers =
5514 {
5515 {
5516 .eraseblocks = { {128 * 1024, 128} },
5517 .block_erase = erase_sector_jedec,
5518 }, {
5519 .eraseblocks = { {16 * 1024 * 1024, 1} },
5520 .block_erase = erase_chip_block_jedec,
5521 },
5522 },
5523 .write = write_jedec_1,
5524 .read = read_memmapped,
5525 .voltage = {2700, 3600},
5526 },
5527
5528 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005529 .vendor = "ESI",
5530 .name = "ES25P40",
5531 .bustype = BUS_SPI,
5532 .manufacture_id = EXCEL_ID_NOPREFIX,
5533 .model_id = EXCEL_ES25P40,
5534 .total_size = 512,
5535 .page_size = 256,
5536 /* 256-byte paramter page separate from memory array:
5537 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5538 .feature_bits = FEATURE_WRSR_WREN,
5539 .tested = TEST_UNTESTED,
5540 .probe = probe_spi_rdid,
5541 .probe_timing = TIMING_ZERO,
5542 .block_erasers =
5543 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005544 {
5545 .eraseblocks = { {64 * 1024, 8} },
5546 .block_erase = spi_block_erase_d8,
5547 }, {
5548 .eraseblocks = { {512 * 1024, 1} },
5549 .block_erase = spi_block_erase_c7,
5550 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005551 },
5552 .printlock = spi_prettyprint_status_register_bp2_srwd,
5553 .unlock = spi_disable_blockprotect_bp2_srwd,
5554 .write = spi_chip_write_256,
5555 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5556 .voltage = {2700, 3600},
5557 },
5558
5559 {
5560 .vendor = "ESI",
5561 .name = "ES25P80",
5562 .bustype = BUS_SPI,
5563 .manufacture_id = EXCEL_ID_NOPREFIX,
5564 .model_id = EXCEL_ES25P80,
5565 .total_size = 1024,
5566 .page_size = 256,
5567 /* 256-byte paramter page separate from memory array:
5568 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5569 .feature_bits = FEATURE_WRSR_WREN,
5570 .tested = TEST_UNTESTED,
5571 .probe = probe_spi_rdid,
5572 .probe_timing = TIMING_ZERO,
5573 .block_erasers =
5574 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005575 {
5576 .eraseblocks = { {64 * 1024, 16} },
5577 .block_erase = spi_block_erase_d8,
5578 }, {
5579 .eraseblocks = { {1024 * 1024, 1} },
5580 .block_erase = spi_block_erase_c7,
5581 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005582 },
5583 .printlock = spi_prettyprint_status_register_bp2_srwd,
5584 .unlock = spi_disable_blockprotect_bp2_srwd,
5585 .write = spi_chip_write_256,
5586 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5587 .voltage = {2700, 3600},
5588 },
5589
5590 {
5591 .vendor = "ESI",
5592 .name = "ES25P16",
5593 .bustype = BUS_SPI,
5594 .manufacture_id = EXCEL_ID_NOPREFIX,
5595 .model_id = EXCEL_ES25P16,
5596 .total_size = 2 * 1024,
5597 .page_size = 256,
5598 /* 256-byte paramter page separate from memory array:
5599 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5600 .feature_bits = FEATURE_WRSR_WREN,
5601 .tested = TEST_UNTESTED,
5602 .probe = probe_spi_rdid,
5603 .probe_timing = TIMING_ZERO,
5604 .block_erasers =
5605 {
5606 {
5607 .eraseblocks = { {64 * 1024, 32} },
5608 .block_erase = spi_block_erase_d8,
5609 }, {
5610 .eraseblocks = { {2 * 1024 * 1024, 1} },
5611 .block_erase = spi_block_erase_c7,
5612 }
5613 },
5614 .printlock = spi_prettyprint_status_register_bp2_srwd,
5615 .unlock = spi_disable_blockprotect_bp2_srwd,
5616 .write = spi_chip_write_256,
5617 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5618 .voltage = {2700, 3600},
5619 },
5620
5621 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005622 .vendor = "Fujitsu",
5623 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005624 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005625 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005626 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005627 .total_size = 512,
5628 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005629 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005630 .tested = TEST_UNTESTED,
5631 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005632 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005633 .block_erasers =
5634 {
5635 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005636 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005637 {16 * 1024, 1},
5638 {8 * 1024, 2},
5639 {32 * 1024, 1},
5640 {64 * 1024, 7},
5641 },
Sean Nelson35727f72010-01-28 23:55:12 +00005642 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005643 }, {
5644 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005645 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005646 },
5647 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005648 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005649 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005650 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005651 },
5652
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 {
5654 .vendor = "Fujitsu",
5655 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005656 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005657 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005658 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005659 .total_size = 512,
5660 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005661 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005662 .tested = TEST_UNTESTED,
5663 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005664 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005665 .block_erasers =
5666 {
5667 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005668 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005669 {64 * 1024, 7},
5670 {32 * 1024, 1},
5671 {8 * 1024, 2},
5672 {16 * 1024, 1},
5673 },
Sean Nelson35727f72010-01-28 23:55:12 +00005674 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005675 }, {
5676 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005677 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005678 },
5679 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005680 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005682 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005683 },
5684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005685 {
Sean Nelson35727f72010-01-28 23:55:12 +00005686 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005687 .vendor = "Fujitsu",
5688 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005689 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005690 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005691 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005692 .total_size = 512,
5693 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005694 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005695 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005696 .probe = probe_jedec,
5697 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005698 .block_erasers =
5699 {
5700 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005701 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005702 {16 * 1024, 1},
5703 {8 * 1024, 2},
5704 {32 * 1024, 1},
5705 {64 * 1024, 7},
5706 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005707 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005708 }, {
5709 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005710 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005711 },
5712 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005713 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005714 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005715 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005716 },
5717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005718 {
5719 .vendor = "Fujitsu",
5720 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005721 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005722 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005723 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005724 .total_size = 512,
5725 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005726 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005727 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005728 .probe = probe_jedec,
5729 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005730 .block_erasers =
5731 {
5732 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005733 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005734 {64 * 1024, 7},
5735 {32 * 1024, 1},
5736 {8 * 1024, 2},
5737 {16 * 1024, 1},
5738 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005739 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005740 }, {
5741 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005742 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005743 },
5744 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005745 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005746 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005747 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005748 },
5749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005750 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005751 .vendor = "Fujitsu",
5752 .name = "MBM29LV160BE",
5753 .bustype = BUS_PARALLEL,
5754 .manufacture_id = FUJITSU_ID,
5755 .model_id = FUJITSU_MBM29LV160BE,
5756 .total_size = 2 * 1024,
5757 .page_size = 0,
5758 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5759 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005760 .probe = probe_jedec,
5761 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005762 .block_erasers =
5763 {
5764 {
5765 .eraseblocks = {
5766 {16 * 1024, 1},
5767 {8 * 1024, 2},
5768 {32 * 1024, 1},
5769 {64 * 1024, 31},
5770 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005771 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005772 }, {
5773 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005774 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005775 },
5776 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005777 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005778 .read = read_memmapped,
5779 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5780 },
5781
5782 {
5783 .vendor = "Fujitsu",
5784 .name = "MBM29LV160TE",
5785 .bustype = BUS_PARALLEL,
5786 .manufacture_id = FUJITSU_ID,
5787 .model_id = FUJITSU_MBM29LV160TE,
5788 .total_size = 2 * 1024,
5789 .page_size = 0,
5790 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5791 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005792 .probe = probe_jedec,
5793 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005794 .block_erasers =
5795 {
5796 {
5797 .eraseblocks = {
5798 {64 * 1024, 31},
5799 {32 * 1024, 1},
5800 {8 * 1024, 2},
5801 {16 * 1024, 1},
5802 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005803 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005804 }, {
5805 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005806 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005807 },
5808 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005809 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005810 .read = read_memmapped,
5811 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5812 },
5813
5814 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005815 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005816 .name = "GD25LQ40",
5817 .bustype = BUS_SPI,
5818 .manufacture_id = GIGADEVICE_ID,
5819 .model_id = GIGADEVICE_GD25LQ40,
5820 .total_size = 512,
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, 128} },
5831 .block_erase = spi_block_erase_20,
5832 }, {
5833 .eraseblocks = { {32 * 1024, 16} },
5834 .block_erase = spi_block_erase_52,
5835 }, {
5836 .eraseblocks = { {64 * 1024, 8} },
5837 .block_erase = spi_block_erase_d8,
5838 }, {
5839 .eraseblocks = { {512 * 1024, 1} },
5840 .block_erase = spi_block_erase_60,
5841 }, {
5842 .eraseblocks = { {512 * 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 = "GD25LQ80",
5856 .bustype = BUS_SPI,
5857 .manufacture_id = GIGADEVICE_ID,
5858 .model_id = GIGADEVICE_GD25LQ80,
5859 .total_size = 1024,
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, 256} },
5870 .block_erase = spi_block_erase_20,
5871 }, {
5872 .eraseblocks = { {32 * 1024, 32} },
5873 .block_erase = spi_block_erase_52,
5874 }, {
5875 .eraseblocks = { {64 * 1024, 16} },
5876 .block_erase = spi_block_erase_d8,
5877 }, {
5878 .eraseblocks = { {1 * 1024 * 1024, 1} },
5879 .block_erase = spi_block_erase_60,
5880 }, {
5881 .eraseblocks = { {1 * 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",
5894 .name = "GD25LQ16",
5895 .bustype = BUS_SPI,
5896 .manufacture_id = GIGADEVICE_ID,
5897 .model_id = GIGADEVICE_GD25LQ16,
5898 .total_size = 2048,
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_UNTESTED,
5903 .probe = probe_spi_rdid,
5904 .probe_timing = TIMING_ZERO,
5905 .block_erasers =
5906 {
5907 {
5908 .eraseblocks = { {4 * 1024, 512} },
5909 .block_erase = spi_block_erase_20,
5910 }, {
5911 .eraseblocks = { {32 * 1024, 64} },
5912 .block_erase = spi_block_erase_52,
5913 }, {
5914 .eraseblocks = { {64 * 1024, 32} },
5915 .block_erase = spi_block_erase_d8,
5916 }, {
5917 .eraseblocks = { {2 * 1024 * 1024, 1} },
5918 .block_erase = spi_block_erase_60,
5919 }, {
5920 .eraseblocks = { {2 * 1024 * 1024, 1} },
5921 .block_erase = spi_block_erase_c7,
5922 }
5923 },
5924 .printlock = spi_prettyprint_status_register_bp4_srwd,
5925 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5926 .write = spi_chip_write_256,
5927 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5928 .voltage = {1695, 1950},
5929 },
5930
5931 {
5932 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005933 .name = "GD25LQ32",
5934 .bustype = BUS_SPI,
5935 .manufacture_id = GIGADEVICE_ID,
5936 .model_id = GIGADEVICE_GD25LQ32,
5937 .total_size = 4096,
5938 .page_size = 256,
5939 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5941 .tested = TEST_OK_PREW,
5942 .probe = probe_spi_rdid,
5943 .probe_timing = TIMING_ZERO,
5944 .block_erasers =
5945 {
5946 {
5947 .eraseblocks = { {4 * 1024, 1024} },
5948 .block_erase = spi_block_erase_20,
5949 }, {
5950 .eraseblocks = { {32 * 1024, 128} },
5951 .block_erase = spi_block_erase_52,
5952 }, {
5953 .eraseblocks = { {64 * 1024, 64} },
5954 .block_erase = spi_block_erase_d8,
5955 }, {
5956 .eraseblocks = { {4 * 1024 * 1024, 1} },
5957 .block_erase = spi_block_erase_60,
5958 }, {
5959 .eraseblocks = { {4 * 1024 * 1024, 1} },
5960 .block_erase = spi_block_erase_c7,
5961 }
5962 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005963 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005964 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5965 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5967 .voltage = {1695, 1950},
5968 },
5969
5970 {
5971 .vendor = "GigaDevice",
5972 .name = "GD25LQ64(B)",
5973 .bustype = BUS_SPI,
5974 .manufacture_id = GIGADEVICE_ID,
5975 .model_id = GIGADEVICE_GD25LQ64,
5976 .total_size = 8192,
5977 .page_size = 256,
5978 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005980 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005981 .probe = probe_spi_rdid,
5982 .probe_timing = TIMING_ZERO,
5983 .block_erasers =
5984 {
5985 {
5986 .eraseblocks = { {4 * 1024, 2048} },
5987 .block_erase = spi_block_erase_20,
5988 }, {
5989 .eraseblocks = { {32 * 1024, 256} },
5990 .block_erase = spi_block_erase_52,
5991 }, {
5992 .eraseblocks = { {64 * 1024, 128} },
5993 .block_erase = spi_block_erase_d8,
5994 }, {
5995 .eraseblocks = { {8 * 1024 * 1024, 1} },
5996 .block_erase = spi_block_erase_60,
5997 }, {
5998 .eraseblocks = { {8 * 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},
6007 },
6008
6009 {
6010 .vendor = "GigaDevice",
6011 .name = "GD25LQ128",
6012 .bustype = BUS_SPI,
6013 .manufacture_id = GIGADEVICE_ID,
6014 .model_id = GIGADEVICE_GD25LQ128,
6015 .total_size = 16384,
6016 .page_size = 256,
6017 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6018 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6019 .tested = TEST_UNTESTED,
6020 .probe = probe_spi_rdid,
6021 .probe_timing = TIMING_ZERO,
6022 .block_erasers =
6023 {
6024 {
6025 .eraseblocks = { {4 * 1024, 4096} },
6026 .block_erase = spi_block_erase_20,
6027 }, {
6028 .eraseblocks = { {32 * 1024, 512} },
6029 .block_erase = spi_block_erase_52,
6030 }, {
6031 .eraseblocks = { {64 * 1024, 256} },
6032 .block_erase = spi_block_erase_d8,
6033 }, {
6034 .eraseblocks = { {16 * 1024 * 1024, 1} },
6035 .block_erase = spi_block_erase_60,
6036 }, {
6037 .eraseblocks = { {16 * 1024 * 1024, 1} },
6038 .block_erase = spi_block_erase_c7,
6039 }
6040 },
6041 .printlock = spi_prettyprint_status_register_bp4_srwd,
6042 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6043 .write = spi_chip_write_256,
6044 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6045 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006046 },
6047
6048 {
6049 .vendor = "GigaDevice",
6050 .name = "GD25Q512",
6051 .bustype = BUS_SPI,
6052 .manufacture_id = GIGADEVICE_ID,
6053 .model_id = GIGADEVICE_GD25Q512,
6054 .total_size = 64,
6055 .page_size = 256,
6056 .feature_bits = FEATURE_WRSR_WREN,
6057 .tested = TEST_UNTESTED,
6058 .probe = probe_spi_rdid,
6059 .probe_timing = TIMING_ZERO,
6060 .block_erasers = {
6061 {
6062 .eraseblocks = { {4 * 1024, 16} },
6063 .block_erase = spi_block_erase_20,
6064 }, {
6065 .eraseblocks = { {32 * 1024, 2} },
6066 .block_erase = spi_block_erase_52,
6067 }, {
6068 .eraseblocks = { {64 * 1024, 1} },
6069 .block_erase = spi_block_erase_60,
6070 }, {
6071 .eraseblocks = { {64 * 1024, 1} },
6072 .block_erase = spi_block_erase_c7,
6073 }
6074 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006075 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006076 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6077 .write = spi_chip_write_256,
6078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6079 .voltage = {2700, 3600},
6080 },
6081
6082 {
6083 .vendor = "GigaDevice",
6084 .name = "GD25Q10",
6085 .bustype = BUS_SPI,
6086 .manufacture_id = GIGADEVICE_ID,
6087 .model_id = GIGADEVICE_GD25Q10,
6088 .total_size = 128,
6089 .page_size = 256,
6090 .feature_bits = FEATURE_WRSR_WREN,
6091 .tested = TEST_UNTESTED,
6092 .probe = probe_spi_rdid,
6093 .probe_timing = TIMING_ZERO,
6094 .block_erasers = {
6095 {
6096 .eraseblocks = { {4 * 1024, 32} },
6097 .block_erase = spi_block_erase_20,
6098 }, {
6099 .eraseblocks = { {32 * 1024, 4} },
6100 .block_erase = spi_block_erase_52,
6101 }, {
6102 .eraseblocks = { {64 * 1024, 2} },
6103 .block_erase = spi_block_erase_d8,
6104 }, {
6105 .eraseblocks = { {128 * 1024, 1} },
6106 .block_erase = spi_block_erase_60,
6107 }, {
6108 .eraseblocks = { {128 * 1024, 1} },
6109 .block_erase = spi_block_erase_c7,
6110 }
6111 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006112 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006113 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6114 .write = spi_chip_write_256,
6115 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6116 .voltage = {2700, 3600},
6117 },
6118
6119 {
6120 .vendor = "GigaDevice",
6121 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006122 .bustype = BUS_SPI,
6123 .manufacture_id = GIGADEVICE_ID,
6124 .model_id = GIGADEVICE_GD25Q20,
6125 .total_size = 256,
6126 .page_size = 256,
6127 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00006128 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006129 .probe = probe_spi_rdid,
6130 .probe_timing = TIMING_ZERO,
6131 .block_erasers =
6132 {
6133 {
6134 .eraseblocks = { {4 * 1024, 64} },
6135 .block_erase = spi_block_erase_20,
6136 }, {
6137 .eraseblocks = { {32 * 1024, 8} },
6138 .block_erase = spi_block_erase_52,
6139 }, {
6140 .eraseblocks = { {64 * 1024, 4} },
6141 .block_erase = spi_block_erase_d8,
6142 }, {
6143 .eraseblocks = { {256 * 1024, 1} },
6144 .block_erase = spi_block_erase_60,
6145 }, {
6146 .eraseblocks = { {256 * 1024, 1} },
6147 .block_erase = spi_block_erase_c7,
6148 }
6149 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006150 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006151 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006152 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006153 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006154 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006155 },
6156
6157 {
6158 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006159 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006160 .bustype = BUS_SPI,
6161 .manufacture_id = GIGADEVICE_ID,
6162 .model_id = GIGADEVICE_GD25Q40,
6163 .total_size = 512,
6164 .page_size = 256,
6165 .feature_bits = FEATURE_WRSR_WREN,
6166 .tested = TEST_UNTESTED,
6167 .probe = probe_spi_rdid,
6168 .probe_timing = TIMING_ZERO,
6169 .block_erasers =
6170 {
6171 {
6172 .eraseblocks = { {4 * 1024, 128} },
6173 .block_erase = spi_block_erase_20,
6174 }, {
6175 .eraseblocks = { {32 * 1024, 16} },
6176 .block_erase = spi_block_erase_52,
6177 }, {
6178 .eraseblocks = { {64 * 1024, 8} },
6179 .block_erase = spi_block_erase_d8,
6180 }, {
6181 .eraseblocks = { {512 * 1024, 1} },
6182 .block_erase = spi_block_erase_60,
6183 }, {
6184 .eraseblocks = { {512 * 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 */
Stefan Taunereb582572012-09-21 12:52:50 +00006192 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006193 },
6194
6195 {
6196 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006197 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006198 .bustype = BUS_SPI,
6199 .manufacture_id = GIGADEVICE_ID,
6200 .model_id = GIGADEVICE_GD25Q80,
6201 .total_size = 1024,
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,
6205 .tested = TEST_OK_PREW,
6206 .probe = probe_spi_rdid,
6207 .probe_timing = TIMING_ZERO,
6208 .block_erasers =
6209 {
6210 {
6211 .eraseblocks = { {4 * 1024, 256} },
6212 .block_erase = spi_block_erase_20,
6213 }, {
6214 .eraseblocks = { {32 * 1024, 32} },
6215 .block_erase = spi_block_erase_52,
6216 }, {
6217 .eraseblocks = { {64 * 1024, 16} },
6218 .block_erase = spi_block_erase_d8,
6219 }, {
6220 .eraseblocks = { {1024 * 1024, 1} },
6221 .block_erase = spi_block_erase_60,
6222 }, {
6223 .eraseblocks = { {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",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006236 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
6239 .model_id = GIGADEVICE_GD25Q16,
6240 .total_size = 2048,
6241 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +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, 512} },
6251 .block_erase = spi_block_erase_20,
6252 }, {
6253 .eraseblocks = { {32 * 1024, 64} },
6254 .block_erase = spi_block_erase_52,
6255 }, {
6256 .eraseblocks = { {64 * 1024, 32} },
6257 .block_erase = spi_block_erase_d8,
6258 }, {
6259 .eraseblocks = { {2 * 1024 * 1024, 1} },
6260 .block_erase = spi_block_erase_60,
6261 }, {
6262 .eraseblocks = { {2 * 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 = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
6278 .model_id = GIGADEVICE_GD25Q32,
6279 .total_size = 4096,
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 Taunerc2eec2c2014-05-03 21:33:01 +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, 1024} },
6290 .block_erase = spi_block_erase_20,
6291 }, {
6292 .eraseblocks = { {32 * 1024, 128} },
6293 .block_erase = spi_block_erase_52,
6294 }, {
6295 .eraseblocks = { {64 * 1024, 64} },
6296 .block_erase = spi_block_erase_d8,
6297 }, {
6298 .eraseblocks = { {4 * 1024 * 1024, 1} },
6299 .block_erase = spi_block_erase_60,
6300 }, {
6301 .eraseblocks = { {4 * 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 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006309 .voltage = {2700, 3600},
6310 },
6311
6312 {
6313 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006314 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006315 .bustype = BUS_SPI,
6316 .manufacture_id = GIGADEVICE_ID,
6317 .model_id = GIGADEVICE_GD25Q64,
6318 .total_size = 8192,
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,
Stefan Taunereb582572012-09-21 12:52:50 +00006322 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006323 .probe = probe_spi_rdid,
6324 .probe_timing = TIMING_ZERO,
6325 .block_erasers =
6326 {
6327 {
6328 .eraseblocks = { {4 * 1024, 2048} },
6329 .block_erase = spi_block_erase_20,
6330 }, {
6331 .eraseblocks = { {32 * 1024, 256} },
6332 .block_erase = spi_block_erase_52,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 128} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {8 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {8 * 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) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006346 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006347 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006348 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006349 },
6350
6351 {
6352 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006353 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006354 .bustype = BUS_SPI,
6355 .manufacture_id = GIGADEVICE_ID,
6356 .model_id = GIGADEVICE_GD25Q128,
6357 .total_size = 16384,
6358 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006359 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6361 .tested = TEST_UNTESTED,
6362 .probe = probe_spi_rdid,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 4096} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {32 * 1024, 512} },
6371 .block_erase = spi_block_erase_52,
6372 }, {
6373 .eraseblocks = { {64 * 1024, 256} },
6374 .block_erase = spi_block_erase_d8,
6375 }, {
6376 .eraseblocks = { {16 * 1024 * 1024, 1} },
6377 .block_erase = spi_block_erase_60,
6378 }, {
6379 .eraseblocks = { {16 * 1024 * 1024, 1} },
6380 .block_erase = spi_block_erase_c7,
6381 }
6382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006383 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006384 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6385 .write = spi_chip_write_256,
6386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6387 .voltage = {2700, 3600},
6388 },
6389
6390 {
6391 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006392 .name = "GD25Q128C",
6393 .bustype = BUS_SPI,
6394 .manufacture_id = GIGADEVICE_ID,
6395 .model_id = GIGADEVICE_GD25Q128,
6396 .total_size = 16384,
6397 .page_size = 256,
6398 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6399 /* QPI: enable 0x38, disable 0xFF */
6400 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6401 .tested = TEST_UNTESTED,
6402 .probe = probe_spi_rdid,
6403 .probe_timing = TIMING_ZERO,
6404 .block_erasers =
6405 {
6406 {
6407 .eraseblocks = { {4 * 1024, 4096} },
6408 .block_erase = spi_block_erase_20,
6409 }, {
6410 .eraseblocks = { {32 * 1024, 512} },
6411 .block_erase = spi_block_erase_52,
6412 }, {
6413 .eraseblocks = { {64 * 1024, 256} },
6414 .block_erase = spi_block_erase_d8,
6415 }, {
6416 .eraseblocks = { {16 * 1024 * 1024, 1} },
6417 .block_erase = spi_block_erase_60,
6418 }, {
6419 .eraseblocks = { {16 * 1024 * 1024, 1} },
6420 .block_erase = spi_block_erase_c7,
6421 }
6422 },
6423 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6424 .printlock = spi_prettyprint_status_register_bp4_srwd,
6425 .unlock = spi_disable_blockprotect_bp4_srwd,
6426 .write = spi_chip_write_256,
6427 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6428 .voltage = {2700, 3600},
6429 },
6430
6431 {
6432 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006433 .name = "GD25T80",
6434 .bustype = BUS_SPI,
6435 .manufacture_id = GIGADEVICE_ID,
6436 .model_id = GIGADEVICE_GD25T80,
6437 .total_size = 1024,
6438 .page_size = 256,
6439 /* OTP: 256B total; enter 0x3A */
6440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6441 .tested = TEST_UNTESTED,
6442 .probe = probe_spi_rdid,
6443 .probe_timing = TIMING_ZERO,
6444 .block_erasers = {
6445 {
6446 .eraseblocks = { {4 * 1024, 256} },
6447 .block_erase = spi_block_erase_20,
6448 }, {
6449 .eraseblocks = { {64 * 1024, 16} },
6450 .block_erase = spi_block_erase_52,
6451 }, {
6452 .eraseblocks = { {64 * 1024, 16} },
6453 .block_erase = spi_block_erase_d8,
6454 }, {
6455 .eraseblocks = { {1024 * 1024, 1} },
6456 .block_erase = spi_block_erase_60,
6457 }, {
6458 .eraseblocks = { {1024 * 1024, 1} },
6459 .block_erase = spi_block_erase_c7,
6460 }
6461 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006462 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006463 .unlock = spi_disable_blockprotect,
6464 .write = spi_chip_write_256,
6465 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006466 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006467 },
6468
6469 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006470 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006471 .name = "GD25VQ21B",
6472 .bustype = BUS_SPI,
6473 .manufacture_id = GIGADEVICE_ID,
6474 .model_id = GIGADEVICE_GD25VQ21B,
6475 .total_size = 256,
6476 .page_size = 256,
6477 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6478 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6479 .tested = TEST_UNTESTED,
6480 .probe = probe_spi_rdid,
6481 .probe_timing = TIMING_ZERO,
6482 .block_erasers =
6483 {
6484 {
6485 .eraseblocks = { { 4 * 1024, 64} },
6486 .block_erase = spi_block_erase_20,
6487 }, {
6488 .eraseblocks = { { 32 * 1024, 8} },
6489 .block_erase = spi_block_erase_52,
6490 }, {
6491 .eraseblocks = { { 64 * 1024, 4} },
6492 .block_erase = spi_block_erase_d8,
6493 }, {
6494 .eraseblocks = { {256 * 1024, 1} },
6495 .block_erase = spi_block_erase_60,
6496 }, {
6497 .eraseblocks = { {256 * 1024, 1} },
6498 .block_erase = spi_block_erase_c7,
6499 }
6500 },
6501 .printlock = spi_prettyprint_status_register_bp4_srwd,
6502 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6503 .write = spi_chip_write_256,
6504 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6505 .voltage = {2300, 3600},
6506 },
6507
6508 {
6509 .vendor = "GigaDevice",
6510 .name = "GD25VQ40C",
6511 .bustype = BUS_SPI,
6512 .manufacture_id = GIGADEVICE_ID,
6513 .model_id = GIGADEVICE_GD25VQ41B,
6514 .total_size = 512,
6515 .page_size = 256,
6516 /* Supports SFDP */
6517 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6518 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6519 .tested = TEST_UNTESTED,
6520 .probe = probe_spi_rdid,
6521 .probe_timing = TIMING_ZERO,
6522 .block_erasers =
6523 {
6524 {
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 }
6540 },
6541 .printlock = spi_prettyprint_status_register_bp4_srwd,
6542 .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",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006550 .name = "GD25VQ41B",
6551 .bustype = BUS_SPI,
6552 .manufacture_id = GIGADEVICE_ID,
6553 .model_id = GIGADEVICE_GD25VQ41B,
6554 .total_size = 512,
6555 .page_size = 256,
6556 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006558 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006559 .probe = probe_spi_rdid,
6560 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006561 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006562 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006563 {
6564 .eraseblocks = { { 4 * 1024, 128} },
6565 .block_erase = spi_block_erase_20,
6566 }, {
6567 .eraseblocks = { { 32 * 1024, 16} },
6568 .block_erase = spi_block_erase_52,
6569 }, {
6570 .eraseblocks = { { 64 * 1024, 8} },
6571 .block_erase = spi_block_erase_d8,
6572 }, {
6573 .eraseblocks = { {512 * 1024, 1} },
6574 .block_erase = spi_block_erase_60,
6575 }, {
6576 .eraseblocks = { {512 * 1024, 1} },
6577 .block_erase = spi_block_erase_c7,
6578 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006579 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006580 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006581 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6582 .write = spi_chip_write_256,
6583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6584 .voltage = {2300, 3600},
6585 },
6586
6587 {
6588 .vendor = "GigaDevice",
6589 .name = "GD25VQ80C",
6590 .bustype = BUS_SPI,
6591 .manufacture_id = GIGADEVICE_ID,
6592 .model_id = GIGADEVICE_GD25VQ80C,
6593 .total_size = 1024,
6594 .page_size = 256,
6595 /* Supports SFDP */
6596 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6597 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6598 .tested = TEST_UNTESTED,
6599 .probe = probe_spi_rdid,
6600 .probe_timing = TIMING_ZERO,
6601 .block_erasers =
6602 {
6603 {
6604 .eraseblocks = { { 4 * 1024, 256} },
6605 .block_erase = spi_block_erase_20,
6606 }, {
6607 .eraseblocks = { { 32 * 1024, 32} },
6608 .block_erase = spi_block_erase_52,
6609 }, {
6610 .eraseblocks = { { 64 * 1024, 16} },
6611 .block_erase = spi_block_erase_d8,
6612 }, {
6613 .eraseblocks = { {1024 * 1024, 1} },
6614 .block_erase = spi_block_erase_60,
6615 }, {
6616 .eraseblocks = { {1024 * 1024, 1} },
6617 .block_erase = spi_block_erase_c7,
6618 }
6619 },
6620 .printlock = spi_prettyprint_status_register_bp4_srwd,
6621 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6622 .write = spi_chip_write_256,
6623 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6624 .voltage = {2300, 3600},
6625 },
6626
6627 {
6628 .vendor = "GigaDevice",
6629 .name = "GD25VQ16C",
6630 .bustype = BUS_SPI,
6631 .manufacture_id = GIGADEVICE_ID,
6632 .model_id = GIGADEVICE_GD25VQ16C,
6633 .total_size = 2 * 1024,
6634 .page_size = 256,
6635 /* Supports SFDP */
6636 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6637 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6638 .tested = TEST_UNTESTED,
6639 .probe = probe_spi_rdid,
6640 .probe_timing = TIMING_ZERO,
6641 .block_erasers =
6642 {
6643 {
6644 .eraseblocks = { { 4 * 1024, 512} },
6645 .block_erase = spi_block_erase_20,
6646 }, {
6647 .eraseblocks = { { 32 * 1024, 64} },
6648 .block_erase = spi_block_erase_52,
6649 }, {
6650 .eraseblocks = { { 64 * 1024, 32} },
6651 .block_erase = spi_block_erase_d8,
6652 }, {
6653 .eraseblocks = { {2 * 1024 * 1024, 1} },
6654 .block_erase = spi_block_erase_60,
6655 }, {
6656 .eraseblocks = { {2 * 1024 * 1024, 1} },
6657 .block_erase = spi_block_erase_c7,
6658 }
6659 },
6660 .printlock = spi_prettyprint_status_register_bp4_srwd,
6661 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006662 .write = spi_chip_write_256,
6663 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6664 .voltage = {2300, 3600},
6665 },
6666
6667 {
David Borgc96a8bd2010-06-21 16:12:22 +00006668 .vendor = "Hyundai",
6669 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006670 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006671 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006672 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006673 .total_size = 256,
6674 .page_size = 256 * 1024,
6675 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006676 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006677 .probe = probe_jedec,
6678 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6679 .block_erasers =
6680 {
6681 {
6682 .eraseblocks = {
6683 {64 * 1024, 3},
6684 {32 * 1024, 1},
6685 {8 * 1024, 2},
6686 {16 * 1024, 1},
6687 },
6688 .block_erase = erase_sector_jedec,
6689 }, {
6690 .eraseblocks = { {256 * 1024, 1} },
6691 .block_erase = erase_chip_block_jedec,
6692 },
6693 },
6694 .write = write_jedec_1,
6695 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006696 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006697 },
6698
6699 {
6700 .vendor = "Hyundai",
6701 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006702 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006703 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006704 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006705 .total_size = 256,
6706 .page_size = 256 * 1024,
6707 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6708 .tested = TEST_UNTESTED,
6709 .probe = probe_jedec,
6710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6711 .block_erasers =
6712 {
6713 {
6714 .eraseblocks = {
6715 {16 * 1024, 1},
6716 {8 * 1024, 2},
6717 {32 * 1024, 1},
6718 {64 * 1024, 3},
6719 },
6720 .block_erase = erase_sector_jedec,
6721 }, {
6722 .eraseblocks = { {256 * 1024, 1} },
6723 .block_erase = erase_chip_block_jedec,
6724 },
6725 },
6726 .write = write_jedec_1,
6727 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006728 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006729 },
6730
6731 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006732 .vendor = "Hyundai",
6733 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006734 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006735 .manufacture_id = HYUNDAI_ID,
6736 .model_id = HYUNDAI_HY29F040A,
6737 .total_size = 512,
6738 .page_size = 64 * 1024,
6739 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6740 .tested = TEST_UNTESTED,
6741 .probe = probe_jedec,
6742 .probe_timing = TIMING_ZERO,
6743 .block_erasers =
6744 {
6745 {
6746 .eraseblocks = { {64 * 1024, 8} },
6747 .block_erase = erase_sector_jedec,
6748 }, {
6749 .eraseblocks = { {512 * 1024, 1} },
6750 .block_erase = erase_chip_block_jedec,
6751 },
6752 },
6753 .write = write_jedec_1,
6754 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006755 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006756 },
6757
6758 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006759 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006760 .name = "25F160S33B8",
6761 .bustype = BUS_SPI,
6762 .manufacture_id = INTEL_ID,
6763 .model_id = INTEL_25F160S33B8,
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 {8 * 1024, 8},
6779 {64 * 1024, 31} // inaccessible
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 = "25F160S33T8",
6800 .bustype = BUS_SPI,
6801 .manufacture_id = INTEL_ID,
6802 .model_id = INTEL_25F160S33T8,
6803 .total_size = 2048,
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 {64 * 1024, 31}, // inaccessible
6818 {8 * 1024, 8}
6819 },
6820 .block_erase = spi_block_erase_40,
6821 }, { */
6822 .eraseblocks = { {64 * 1024, 32} },
6823 .block_erase = spi_block_erase_d8,
6824 }, {
6825 .eraseblocks = { {2 * 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 = "25F320S33B8",
6839 .bustype = BUS_SPI,
6840 .manufacture_id = INTEL_ID,
6841 .model_id = INTEL_25F320S33B8,
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 {8 * 1024, 8},
6857 {64 * 1024, 63} // inaccessible
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 = "25F320S33T8",
6878 .bustype = BUS_SPI,
6879 .manufacture_id = INTEL_ID,
6880 .model_id = INTEL_25F320S33T8,
6881 .total_size = 4096,
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 {64 * 1024, 63}, // inaccessible
6896 {8 * 1024, 8}
6897 },
6898 .block_erase = spi_block_erase_40,
6899 }, { */
6900 .eraseblocks = { {64 * 1024, 64} },
6901 .block_erase = spi_block_erase_d8,
6902 }, {
6903 .eraseblocks = { {4 * 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 = "25F640S33B8",
6917 .bustype = BUS_SPI,
6918 .manufacture_id = INTEL_ID,
6919 .model_id = INTEL_25F640S33B8,
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 {8 * 1024, 8},
6935 {64 * 1024, 127} // inaccessible
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",
6955 .name = "25F640S33T8",
6956 .bustype = BUS_SPI,
6957 .manufacture_id = INTEL_ID,
6958 .model_id = INTEL_25F640S33T8,
6959 .total_size = 8192,
6960 .page_size = 256,
6961 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6963 .tested = TEST_UNTESTED,
6964 .probe = probe_spi_rdid,
6965 .probe_timing = TIMING_ZERO,
6966 .block_erasers =
6967 {
6968 {
6969 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6970 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6971 * have no effect on the memory contents, but sets a flag in the SR.
6972 .eraseblocks = {
6973 {64 * 1024, 127}, // inaccessible
6974 {8 * 1024, 8}
6975 },
6976 .block_erase = spi_block_erase_40,
6977 }, { */
6978 .eraseblocks = { {64 * 1024, 128} },
6979 .block_erase = spi_block_erase_d8,
6980 }, {
6981 .eraseblocks = { {8 * 1024 * 1024, 1} },
6982 .block_erase = spi_block_erase_c7,
6983 }
6984 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006985 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6986 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006987 .write = spi_chip_write_256,
6988 .read = spi_chip_read, /* also fast read 0x0B */
6989 .voltage = {2700, 3600},
6990 },
6991
6992 {
6993 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006994 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006995 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006996 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006997 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006998 .total_size = 128,
6999 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00007000 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007001 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007002 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00007003 .block_erasers =
7004 {
7005 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007006 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007007 {8 * 1024, 1},
7008 {4 * 1024, 2},
7009 {112 * 1024, 1},
7010 },
Sean Nelson28accc22010-03-19 18:47:06 +00007011 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007012 },
7013 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007014 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007016 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007017 },
7018
7019 {
7020 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007021 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007022 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007023 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007024 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007025 .total_size = 128,
7026 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00007027 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007028 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007029 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00007030 .block_erasers =
7031 {
7032 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007033 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007034 {112 * 1024, 1},
7035 {4 * 1024, 2},
7036 {8 * 1024, 1},
7037 },
Sean Nelson28accc22010-03-19 18:47:06 +00007038 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007039 },
7040 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007041 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007043 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00007044 },
7045
7046 {
7047 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007048 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007049 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007050 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007051 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007052 .total_size = 256,
7053 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007054 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00007055 .probe = probe_82802ab,
7056 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7057 .block_erasers =
7058 {
7059 {
7060 .eraseblocks = {
7061 {128 * 1024, 1},
7062 {96 * 1024, 1},
7063 {8 * 1024, 2},
7064 {16 * 1024, 1},
7065 },
7066 .block_erase = erase_block_82802ab,
7067 },
7068 },
7069 .write = write_82802ab,
7070 .read = read_memmapped,
7071 },
7072
7073 {
7074 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007075 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007076 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007077 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007078 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007079 .total_size = 512,
7080 .page_size = 256,
7081 .tested = TEST_UNTESTED,
7082 .probe = probe_82802ab,
7083 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007084 .block_erasers =
7085 {
7086 {
7087 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007088 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007089 },
7090 },
Sean Nelsondee4a832010-03-22 04:39:31 +00007091 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00007092 .write = write_82802ab,
7093 .read = read_memmapped,
7094 },
7095
7096 {
7097 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007098 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007099 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007100 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007101 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007102 .total_size = 512,
7103 .page_size = 128 * 1024, /* maximal block size */
7104 .tested = TEST_UNTESTED,
7105 .probe = probe_82802ab,
7106 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7107 .block_erasers =
7108 {
7109 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007110 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007111 {16 * 1024, 1},
7112 {8 * 1024, 2},
7113 {96 * 1024, 1},
7114 {128 * 1024, 3},
7115 },
7116 .block_erase = erase_block_82802ab,
7117 },
7118 },
7119 .write = write_82802ab,
7120 .read = read_memmapped,
7121 },
7122
7123 {
7124 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007125 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007126 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007127 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007128 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007129 .total_size = 512,
7130 .page_size = 128 * 1024, /* maximal block size */
7131 .tested = TEST_UNTESTED,
7132 .probe = probe_82802ab,
7133 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7134 .block_erasers =
7135 {
7136 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007137 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007138 {128 * 1024, 3},
7139 {96 * 1024, 1},
7140 {8 * 1024, 2},
7141 {16 * 1024, 1},
7142 },
7143 .block_erase = erase_block_82802ab,
7144 },
7145 },
7146 .write = write_82802ab,
7147 .read = read_memmapped,
7148 },
7149
7150 {
7151 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007152 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007153 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007154 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007155 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00007156 .total_size = 512,
7157 .page_size = 128 * 1024, /* maximal block size */
7158 .feature_bits = FEATURE_ADDR_SHIFTED,
7159 .tested = TEST_UNTESTED,
7160 .probe = probe_82802ab,
7161 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7162 .block_erasers =
7163 {
7164 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007165 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007166 {16 * 1024, 1},
7167 {8 * 1024, 2},
7168 {96 * 1024, 1},
7169 {128 * 1024, 3},
7170 },
7171 .block_erase = erase_block_82802ab,
7172 },
7173 },
7174 .write = write_82802ab,
7175 .read = read_memmapped,
7176 },
7177
7178 {
7179 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007180 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007181 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007182 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007183 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007184 .total_size = 512,
7185 .page_size = 128 * 1024, /* maximal block size */
7186 .feature_bits = FEATURE_ADDR_SHIFTED,
7187 .tested = TEST_UNTESTED,
7188 .probe = probe_82802ab,
7189 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7190 .block_erasers =
7191 {
7192 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007193 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007194 {128 * 1024, 3},
7195 {96 * 1024, 1},
7196 {8 * 1024, 2},
7197 {16 * 1024, 1},
7198 },
7199 .block_erase = erase_block_82802ab,
7200 },
7201 },
7202 .write = write_82802ab,
7203 .read = read_memmapped,
7204 },
7205
7206 {
7207 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007208 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007209 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007210 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007211 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007212 .total_size = 512,
7213 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007214 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007215 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007216 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007217 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007218 .block_erasers =
7219 {
7220 {
7221 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007222 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007223 },
7224 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007225 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007226 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007228 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007229 },
7230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007231 {
7232 .vendor = "Intel",
7233 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007234 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007235 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007236 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007237 .total_size = 1024,
7238 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007239 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007240 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007241 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007242 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007243 .block_erasers =
7244 {
7245 {
7246 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007247 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007248 },
7249 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007250 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007251 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007253 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007254 },
7255
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007256 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007257 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007258 .name = "IS25LP128",
7259 .bustype = BUS_SPI,
7260 .manufacture_id = ISSI_ID_SPI,
7261 .model_id = ISSI_IS25LP128,
7262 .total_size = 16384,
7263 .page_size = 256,
7264 /* OTP: 1024B total; read 0x48; write 0x42 */
7265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7266 .tested = TEST_OK_PREW,
7267 .probe = probe_spi_rdid,
7268 .probe_timing = TIMING_ZERO,
7269 .block_erasers =
7270 {
7271 {
7272 .eraseblocks = { {4 * 1024, 4096} },
7273 .block_erase = spi_block_erase_20,
7274 }, {
7275 .eraseblocks = { {4 * 1024, 4096} },
7276 .block_erase = spi_block_erase_d7,
7277 }, {
7278 .eraseblocks = { {32 * 1024, 512} },
7279 .block_erase = spi_block_erase_52,
7280 }, {
7281 .eraseblocks = { {64 * 1024, 256} },
7282 .block_erase = spi_block_erase_d8,
7283 }, {
7284 .eraseblocks = { {16 * 1024 * 1024, 1} },
7285 .block_erase = spi_block_erase_60,
7286 }, {
7287 .eraseblocks = { {16 * 1024 * 1024, 1} },
7288 .block_erase = spi_block_erase_c7,
7289 }
7290 },
7291 .unlock = spi_disable_blockprotect,
7292 .write = spi_chip_write_256,
7293 .read = spi_chip_read,
7294 .voltage = {2300, 3600},
7295 },
7296
7297 {
7298 .vendor = "ISSI",
7299 .name = "IS25WP128",
7300 .bustype = BUS_SPI,
7301 .manufacture_id = ISSI_ID_SPI,
7302 .model_id = ISSI_IS25WP128,
7303 .total_size = 16384,
7304 .page_size = 256,
7305 /* OTP: 1024B total; read 0x48; write 0x42 */
7306 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7307 .tested = TEST_OK_PREW,
7308 .probe = probe_spi_rdid,
7309 .probe_timing = TIMING_ZERO,
7310 .block_erasers =
7311 {
7312 {
7313 .eraseblocks = { {4 * 1024, 4096} },
7314 .block_erase = spi_block_erase_20,
7315 }, {
7316 .eraseblocks = { {4 * 1024, 4096} },
7317 .block_erase = spi_block_erase_d7,
7318 }, {
7319 .eraseblocks = { {32 * 1024, 512} },
7320 .block_erase = spi_block_erase_52,
7321 }, {
7322 .eraseblocks = { {64 * 1024, 256} },
7323 .block_erase = spi_block_erase_d8,
7324 }, {
7325 .eraseblocks = { {16 * 1024 * 1024, 1} },
7326 .block_erase = spi_block_erase_60,
7327 }, {
7328 .eraseblocks = { {16 * 1024 * 1024, 1} },
7329 .block_erase = spi_block_erase_c7,
7330 }
7331 },
7332 .unlock = spi_disable_blockprotect,
7333 .write = spi_chip_write_256,
7334 .read = spi_chip_read,
7335 .voltage = {1650, 1950},
7336 },
7337
7338 {
7339 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007340 .name = "IS29GL064B",
7341 .bustype = BUS_PARALLEL,
7342 .manufacture_id = ISSI_ID,
7343 .model_id = ISSI_PMC_IS29GL064B,
7344 .total_size = 8192,
7345 .page_size = 128 * 1024, /* actual page size is 16 */
7346 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7347 .tested = TEST_UNTESTED,
7348 .probe = probe_jedec_29gl,
7349 .probe_timing = TIMING_ZERO,
7350 .block_erasers =
7351 {
7352 {
7353 .eraseblocks = {
7354 {8 * 1024, 8},
7355 {64 * 1024, 127},
7356 },
7357 .block_erase = erase_sector_jedec,
7358 }, {
7359 .eraseblocks = { {8 * 1024 * 1024, 1} },
7360 .block_erase = erase_chip_block_jedec,
7361 },
7362 },
7363 .write = write_jedec_1,
7364 .read = read_memmapped,
7365 .voltage = {2700, 3600},
7366 },
7367
7368 {
7369 .vendor = "ISSI",
7370 .name = "IS29GL064T",
7371 .bustype = BUS_PARALLEL,
7372 .manufacture_id = ISSI_ID,
7373 .model_id = ISSI_PMC_IS29GL064T,
7374 .total_size = 8192,
7375 .page_size = 128 * 1024, /* actual page size is 16 */
7376 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7377 .tested = TEST_UNTESTED,
7378 .probe = probe_jedec_29gl,
7379 .probe_timing = TIMING_ZERO,
7380 .block_erasers =
7381 {
7382 {
7383 .eraseblocks = {
7384 {64 * 1024, 127},
7385 {8 * 1024, 8},
7386 },
7387 .block_erase = erase_sector_jedec,
7388 }, {
7389 .eraseblocks = { {8 * 1024 * 1024, 1} },
7390 .block_erase = erase_chip_block_jedec,
7391 },
7392 },
7393 .write = write_jedec_1,
7394 .read = read_memmapped,
7395 .voltage = {2700, 3600},
7396 },
7397
7398 {
7399 .vendor = "ISSI",
7400 .name = "IS29GL064H/L",
7401 .bustype = BUS_PARALLEL,
7402 .manufacture_id = ISSI_ID,
7403 .model_id = ISSI_PMC_IS29GL064HL,
7404 .total_size = 8192,
7405 .page_size = 128 * 1024, /* actual page size is 16 */
7406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7407 .tested = TEST_UNTESTED,
7408 .probe = probe_jedec_29gl,
7409 .probe_timing = TIMING_ZERO,
7410 .block_erasers =
7411 {
7412 {
7413 .eraseblocks = { {64 * 1024, 128} },
7414 .block_erase = erase_sector_jedec,
7415 }, {
7416 .eraseblocks = { {8 * 1024 * 1024, 1} },
7417 .block_erase = erase_chip_block_jedec,
7418 },
7419 },
7420 .write = write_jedec_1,
7421 .read = read_memmapped,
7422 .voltage = {2700, 3600},
7423 },
7424
7425 {
7426 .vendor = "ISSI",
7427 .name = "IS29GL128H/L",
7428 .bustype = BUS_PARALLEL,
7429 .manufacture_id = ISSI_ID,
7430 .model_id = ISSI_PMC_IS29GL128HL,
7431 .total_size = 16384,
7432 .page_size = 128 * 1024, /* actual page size is 16 */
7433 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7434 .tested = TEST_UNTESTED,
7435 .probe = probe_jedec_29gl,
7436 .probe_timing = TIMING_ZERO,
7437 .block_erasers =
7438 {
7439 {
7440 .eraseblocks = { {128 * 1024, 128} },
7441 .block_erase = erase_sector_jedec,
7442 }, {
7443 .eraseblocks = { {16 * 1024 * 1024, 1} },
7444 .block_erase = erase_chip_block_jedec,
7445 },
7446 },
7447 .write = write_jedec_1,
7448 .read = read_memmapped,
7449 .voltage = {2700, 3600},
7450 },
7451
7452 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007453 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007454 .name = "MX23L1654",
7455 .bustype = BUS_SPI,
7456 .manufacture_id = MACRONIX_ID,
7457 .model_id = MACRONIX_MX23L1654,
7458 .total_size = 2048,
7459 .page_size = 256,
7460 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7461 .probe = probe_spi_rdid,
7462 .probe_timing = TIMING_ZERO,
7463 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7464 .read = spi_chip_read, /* Fast read (0x0B) supported */
7465 .voltage = {3000, 3600},
7466 },
7467
7468 {
7469 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007470 .name = "MX23L3254",
7471 .bustype = BUS_SPI,
7472 .manufacture_id = MACRONIX_ID,
7473 .model_id = MACRONIX_MX23L3254,
7474 .total_size = 4096,
7475 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007476 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007477 .probe = probe_spi_rdid,
7478 .probe_timing = TIMING_ZERO,
7479 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7480 .read = spi_chip_read, /* Fast read (0x0B) supported */
7481 .voltage = {3000, 3600},
7482 },
7483
7484 {
7485 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007486 .name = "MX23L6454",
7487 .bustype = BUS_SPI,
7488 .manufacture_id = MACRONIX_ID,
7489 .model_id = MACRONIX_MX23L6454,
7490 .total_size = 8192,
7491 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007492 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007493 .probe = probe_spi_rdid,
7494 .probe_timing = TIMING_ZERO,
7495 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7496 .read = spi_chip_read, /* Fast read (0x0B) supported */
7497 .voltage = {3000, 3600},
7498 },
7499
7500 {
7501 .vendor = "Macronix",
7502 .name = "MX23L12854",
7503 .bustype = BUS_SPI,
7504 .manufacture_id = MACRONIX_ID,
7505 .model_id = MACRONIX_MX23L12854,
7506 .total_size = 16384,
7507 .page_size = 256,
7508 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7509 .probe = probe_spi_rdid,
7510 .probe_timing = TIMING_ZERO,
7511 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7512 .read = spi_chip_read, /* Fast read (0x0B) supported */
7513 .voltage = {3000, 3600},
7514 },
7515
7516 {
7517 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007518 .name = "MX25L512(E)/MX25V512(C)",
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_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007522 .total_size = 64,
7523 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007524 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +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, 16} },
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, 1} },
7536 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007537 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007538 .eraseblocks = { {64 * 1024, 1} },
7539 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007540 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007541 .eraseblocks = { {64 * 1024, 1} },
7542 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007543 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007544 .eraseblocks = { {64 * 1024, 1} },
7545 .block_erase = spi_block_erase_c7,
7546 },
7547 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007548 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007549 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007550 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007551 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7552 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007553 },
7554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007555 {
7556 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007557 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007558 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007559 .manufacture_id = MACRONIX_ID,
7560 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007561 .total_size = 128,
7562 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007563 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007564 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007565 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007566 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007567 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007568 .block_erasers =
7569 {
7570 {
7571 .eraseblocks = { {4 * 1024, 32} },
7572 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007573 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007574 .eraseblocks = { {64 * 1024, 2} },
7575 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007576 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007577 .eraseblocks = { {128 * 1024, 1} },
7578 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007579 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007580 .eraseblocks = { {128 * 1024, 1} },
7581 .block_erase = spi_block_erase_c7,
7582 },
7583 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007584 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007585 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007586 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007587 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007589 },
7590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007591 {
7592 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007593 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007594 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007595 .manufacture_id = MACRONIX_ID,
7596 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007597 .total_size = 256,
7598 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007599 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007600 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007602 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007603 .block_erasers =
7604 {
7605 {
7606 .eraseblocks = { {4 * 1024, 64} },
7607 .block_erase = spi_block_erase_20,
7608 }, {
7609 .eraseblocks = { {64 * 1024, 4} },
7610 .block_erase = spi_block_erase_52,
7611 }, {
7612 .eraseblocks = { {64 * 1024, 4} },
7613 .block_erase = spi_block_erase_d8,
7614 }, {
7615 .eraseblocks = { {256 * 1024, 1} },
7616 .block_erase = spi_block_erase_60,
7617 }, {
7618 .eraseblocks = { {256 * 1024, 1} },
7619 .block_erase = spi_block_erase_c7,
7620 },
7621 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007622 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007623 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007624 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007625 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007626 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007627 },
7628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007629 {
7630 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007631 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007632 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007633 .manufacture_id = MACRONIX_ID,
7634 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007635 .total_size = 512,
7636 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007637 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007638 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007640 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007641 .block_erasers =
7642 {
7643 {
7644 .eraseblocks = { {4 * 1024, 128} },
7645 .block_erase = spi_block_erase_20,
7646 }, {
7647 .eraseblocks = { {64 * 1024, 8} },
7648 .block_erase = spi_block_erase_52,
7649 }, {
7650 .eraseblocks = { {64 * 1024, 8} },
7651 .block_erase = spi_block_erase_d8,
7652 }, {
7653 .eraseblocks = { {512 * 1024, 1} },
7654 .block_erase = spi_block_erase_60,
7655 }, {
7656 .eraseblocks = { {512 * 1024, 1} },
7657 .block_erase = spi_block_erase_c7,
7658 },
7659 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007660 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007661 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007662 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007663 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007664 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007665 },
7666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007667 {
7668 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007669 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007670 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007671 .manufacture_id = MACRONIX_ID,
7672 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007673 .total_size = 1024,
7674 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007675 /* MX25L8006E, MX25L8008E support SFDP */
7676 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007677 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007678 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007680 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007681 .block_erasers =
7682 {
7683 {
7684 .eraseblocks = { {4 * 1024, 256} },
7685 .block_erase = spi_block_erase_20,
7686 }, {
7687 .eraseblocks = { {64 * 1024, 16} },
7688 .block_erase = spi_block_erase_52,
7689 }, {
7690 .eraseblocks = { {64 * 1024, 16} },
7691 .block_erase = spi_block_erase_d8,
7692 }, {
7693 .eraseblocks = { {1024 * 1024, 1} },
7694 .block_erase = spi_block_erase_60,
7695 }, {
7696 .eraseblocks = { {1024 * 1024, 1} },
7697 .block_erase = spi_block_erase_c7,
7698 },
7699 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007700 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007701 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007702 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007703 .read = spi_chip_read, /* Fast read (0x0B) supported */
7704 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007705 },
7706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007707 {
7708 .vendor = "Macronix",
7709 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007710 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007711 .manufacture_id = MACRONIX_ID,
7712 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007713 .total_size = 2048,
7714 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007715 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007716 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007718 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007719 .block_erasers =
7720 {
7721 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007722 .eraseblocks = { {64 * 1024, 32} },
7723 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007724 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007725 .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_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007736 .unlock = spi_disable_blockprotect,
7737 .write = spi_chip_write_256,
7738 .read = spi_chip_read, /* Fast read (0x0B) supported */
7739 .voltage = {2700, 3600},
7740 },
7741
7742 {
7743 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007744 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
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,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007750 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007751 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7752 .tested = TEST_OK_PREW,
7753 .probe = probe_spi_rdid,
7754 .probe_timing = TIMING_ZERO,
7755 .block_erasers =
7756 {
7757 {
7758 .eraseblocks = { {4 * 1024, 512} },
7759 .block_erase = spi_block_erase_20,
7760 }, {
7761 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007762 .block_erase = spi_block_erase_52,
7763 }, {
7764 .eraseblocks = { {64 * 1024, 32} },
7765 .block_erase = spi_block_erase_d8,
7766 }, {
7767 .eraseblocks = { {2 * 1024 * 1024, 1} },
7768 .block_erase = spi_block_erase_60,
7769 }, {
7770 .eraseblocks = { {2 * 1024 * 1024, 1} },
7771 .block_erase = spi_block_erase_c7,
7772 },
7773 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007774 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007775 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007776 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007777 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007778 .voltage = {2700, 3600},
7779 },
7780
7781 {
7782 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007783 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007784 .bustype = BUS_SPI,
7785 .manufacture_id = MACRONIX_ID,
7786 .model_id = MACRONIX_MX25L1605,
7787 .total_size = 2048,
7788 .page_size = 256,
7789 .feature_bits = FEATURE_WRSR_WREN,
7790 .tested = TEST_OK_PREW,
7791 .probe = probe_spi_rdid,
7792 .probe_timing = TIMING_ZERO,
7793 .block_erasers =
7794 {
7795 {
7796 .eraseblocks = { {4 * 1024, 512} },
7797 .block_erase = spi_block_erase_20,
7798 }, {
7799 .eraseblocks = { {64 * 1024, 32} },
7800 .block_erase = spi_block_erase_d8,
7801 }, {
7802 .eraseblocks = { {2 * 1024 * 1024, 1} },
7803 .block_erase = spi_block_erase_60,
7804 }, {
7805 .eraseblocks = { {2 * 1024 * 1024, 1} },
7806 .block_erase = spi_block_erase_c7,
7807 },
7808 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007809 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007810 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007811 .write = spi_chip_write_256,
7812 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007813 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007814 },
7815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007816 {
7817 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007818 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007819 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007820 .manufacture_id = MACRONIX_ID,
7821 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007822 .total_size = 2048,
7823 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007824 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007826 .tested = TEST_UNTESTED,
7827 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007829 .block_erasers =
7830 {
7831 {
7832 .eraseblocks = { {4 * 1024, 512} },
7833 .block_erase = spi_block_erase_20,
7834 }, {
7835 .eraseblocks = { {64 * 1024, 32} },
7836 .block_erase = spi_block_erase_d8,
7837 }, {
7838 .eraseblocks = { {2 * 1024 * 1024, 1} },
7839 .block_erase = spi_block_erase_60,
7840 }, {
7841 .eraseblocks = { {2 * 1024 * 1024, 1} },
7842 .block_erase = spi_block_erase_c7,
7843 }
7844 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007845 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007846 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007847 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007848 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007849 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007850 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007851
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007852 {
7853 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007854 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007855 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007856 .manufacture_id = MACRONIX_ID,
7857 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007858 .total_size = 2048,
7859 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007860 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007862 .tested = TEST_UNTESTED,
7863 .probe = probe_spi_rdid,
7864 .probe_timing = TIMING_ZERO,
7865 .block_erasers =
7866 {
7867 {
7868 .eraseblocks = { {4 * 1024, 512} },
7869 .block_erase = spi_block_erase_20,
7870 }, {
7871 .eraseblocks = { {64 * 1024, 32} },
7872 .block_erase = spi_block_erase_d8,
7873 }, {
7874 .eraseblocks = { {2 * 1024 * 1024, 1} },
7875 .block_erase = spi_block_erase_60,
7876 }, {
7877 .eraseblocks = { {2 * 1024 * 1024, 1} },
7878 .block_erase = spi_block_erase_c7,
7879 }
7880 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007881 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007882 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007883 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007884 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007885 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007886 },
7887
7888 {
7889 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007890 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007891 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007892 .manufacture_id = MACRONIX_ID,
7893 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007894 .total_size = 4096,
7895 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007896 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007897 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007898 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007899 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007900 .block_erasers =
7901 {
7902 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007903 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007904 .block_erase = spi_block_erase_20,
7905 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007906 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007907 .block_erase = spi_block_erase_d8,
7908 }, {
7909 .eraseblocks = { {4 * 1024 * 1024, 1} },
7910 .block_erase = spi_block_erase_60,
7911 }, {
7912 .eraseblocks = { {4 * 1024 * 1024, 1} },
7913 .block_erase = spi_block_erase_c7,
7914 },
7915 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007916 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007917 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007918 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007919 .read = spi_chip_read, /* Fast read (0x0B) supported */
7920 .voltage = {2700, 3600},
7921 },
7922
7923 {
7924 .vendor = "Macronix",
7925 .name = "MX25L3205D/MX25L3208D",
7926 .bustype = BUS_SPI,
7927 .manufacture_id = MACRONIX_ID,
7928 .model_id = MACRONIX_MX25L3205,
7929 .total_size = 4096,
7930 .page_size = 256,
7931 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7933 .tested = TEST_OK_PREW,
7934 .probe = probe_spi_rdid,
7935 .probe_timing = TIMING_ZERO,
7936 .block_erasers =
7937 {
7938 {
7939 .eraseblocks = { {4 * 1024, 1024} },
7940 .block_erase = spi_block_erase_20,
7941 }, {
7942 .eraseblocks = { {64 * 1024, 64} },
7943 .block_erase = spi_block_erase_d8,
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 Tauner74dc73f2015-03-01 22:04:38 +00007952 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
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 */
7956 .voltage = {2700, 3600},
7957 },
7958
7959 {
7960 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007961 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007962 .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,
7969 .tested = TEST_OK_PREW,
7970 .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 = { {64 * 1024, 64} },
7979 .block_erase = spi_block_erase_d8,
7980 }, {
7981 .eraseblocks = { {64 * 1024, 64} },
7982 .block_erase = spi_block_erase_52,
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 Tauner226037d2013-03-16 01:22:12 +00007993 .write = spi_chip_write_256,
7994 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007995 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007996 },
7997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007998 {
7999 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008000 .name = "MX25L3273E",
8001 .bustype = BUS_SPI,
8002 .manufacture_id = MACRONIX_ID,
8003 .model_id = MACRONIX_MX25L3205,
8004 .total_size = 4096,
8005 .page_size = 256,
8006 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008008 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008009 .probe = probe_spi_rdid,
8010 .probe_timing = TIMING_ZERO,
8011 .block_erasers =
8012 {
8013 {
8014 .eraseblocks = { {4 * 1024, 1024} },
8015 .block_erase = spi_block_erase_20,
8016 }, {
8017 .eraseblocks = { {32 * 1024, 128} },
8018 .block_erase = spi_block_erase_52,
8019 }, {
8020 .eraseblocks = { {64 * 1024, 64} },
8021 .block_erase = spi_block_erase_d8,
8022 }, {
8023 .eraseblocks = { {4 * 1024 * 1024, 1} },
8024 .block_erase = spi_block_erase_60,
8025 }, {
8026 .eraseblocks = { {4 * 1024 * 1024, 1} },
8027 .block_erase = spi_block_erase_c7,
8028 },
8029 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008030 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008031 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008032 .write = spi_chip_write_256,
8033 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8034 .voltage = {2700, 3600},
8035 },
8036
8037 {
8038 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008039 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008040 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008041 .manufacture_id = MACRONIX_ID,
8042 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008043 .total_size = 4096,
8044 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008045 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008047 .tested = TEST_UNTESTED,
8048 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008049 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008050 .block_erasers =
8051 {
8052 {
8053 .eraseblocks = { {4 * 1024, 1024} },
8054 .block_erase = spi_block_erase_20,
8055 }, {
8056 .eraseblocks = { {64 * 1024, 64} },
8057 .block_erase = spi_block_erase_d8,
8058 }, {
8059 .eraseblocks = { {4 * 1024 * 1024, 1} },
8060 .block_erase = spi_block_erase_60,
8061 }, {
8062 .eraseblocks = { {4 * 1024 * 1024, 1} },
8063 .block_erase = spi_block_erase_c7,
8064 }
8065 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008066 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008067 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008068 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008069 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008070 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008071 },
8072
8073 {
8074 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008075 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008076 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008077 .manufacture_id = MACRONIX_ID,
8078 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008079 .total_size = 8192,
8080 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008081 /* Has an additional 512B EEPROM sector */
8082 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008083 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008084 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008085 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008086 .block_erasers =
8087 {
8088 {
8089 .eraseblocks = { {64 * 1024, 128} },
8090 .block_erase = spi_block_erase_20,
8091 }, {
8092 .eraseblocks = { {64 * 1024, 128} },
8093 .block_erase = spi_block_erase_d8,
8094 }, {
8095 .eraseblocks = { {8 * 1024 * 1024, 1} },
8096 .block_erase = spi_block_erase_60,
8097 }, {
8098 .eraseblocks = { {8 * 1024 * 1024, 1} },
8099 .block_erase = spi_block_erase_c7,
8100 }
8101 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008102 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008103 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008104 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008105 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008106 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008107 },
8108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008109 {
8110 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008111 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008112 .bustype = BUS_SPI,
8113 .manufacture_id = MACRONIX_ID,
8114 .model_id = MACRONIX_MX25L6405,
8115 .total_size = 8192,
8116 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008117 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8119 .tested = TEST_OK_PREW,
8120 .probe = probe_spi_rdid,
8121 .probe_timing = TIMING_ZERO,
8122 .block_erasers =
8123 {
8124 {
8125 .eraseblocks = { {4 * 1024, 2048} },
8126 .block_erase = spi_block_erase_20,
8127 }, {
8128 .eraseblocks = { {64 * 1024, 128} },
8129 .block_erase = spi_block_erase_d8,
8130 }, {
8131 .eraseblocks = { {8 * 1024 * 1024, 1} },
8132 .block_erase = spi_block_erase_60,
8133 }, {
8134 .eraseblocks = { {8 * 1024 * 1024, 1} },
8135 .block_erase = spi_block_erase_c7,
8136 }
8137 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008138 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008139 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008140 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008141 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008142 .voltage = {2700, 3600},
8143 },
8144
8145 {
8146 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008147 .name = "MX25L6406E/MX25L6408E",
8148 .bustype = BUS_SPI,
8149 .manufacture_id = MACRONIX_ID,
8150 .model_id = MACRONIX_MX25L6405,
8151 .total_size = 8192,
8152 .page_size = 256,
8153 /* MX25L6406E supports SFDP */
8154 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8155 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8156 .tested = TEST_OK_PREW,
8157 .probe = probe_spi_rdid,
8158 .probe_timing = TIMING_ZERO,
8159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = { {4 * 1024, 2048} },
8163 .block_erase = spi_block_erase_20,
8164 }, {
8165 .eraseblocks = { {64 * 1024, 128} },
8166 .block_erase = spi_block_erase_52,
8167 }, {
8168 .eraseblocks = { {64 * 1024, 128} },
8169 .block_erase = spi_block_erase_d8,
8170 }, {
8171 .eraseblocks = { {8 * 1024 * 1024, 1} },
8172 .block_erase = spi_block_erase_60,
8173 }, {
8174 .eraseblocks = { {8 * 1024 * 1024, 1} },
8175 .block_erase = spi_block_erase_c7,
8176 }
8177 },
8178 .printlock = spi_prettyprint_status_register_bp3_srwd,
8179 .unlock = spi_disable_blockprotect_bp3_srwd,
8180 .write = spi_chip_write_256,
8181 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8182 .voltage = {2700, 3600},
8183 },
8184
8185 {
8186 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008187 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008188 .bustype = BUS_SPI,
8189 .manufacture_id = MACRONIX_ID,
8190 .model_id = MACRONIX_MX25L6405,
8191 .total_size = 8192,
8192 .page_size = 256,
8193 /* supports SFDP */
8194 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8196 .tested = TEST_OK_PREW,
8197 .probe = probe_spi_rdid,
8198 .probe_timing = TIMING_ZERO,
8199 .block_erasers =
8200 {
8201 {
8202 .eraseblocks = { {4 * 1024, 2048} },
8203 .block_erase = spi_block_erase_20,
8204 }, {
8205 .eraseblocks = { {32 * 1024, 256} },
8206 .block_erase = spi_block_erase_52,
8207 }, {
8208 .eraseblocks = { {64 * 1024, 128} },
8209 .block_erase = spi_block_erase_d8,
8210 }, {
8211 .eraseblocks = { {8 * 1024 * 1024, 1} },
8212 .block_erase = spi_block_erase_60,
8213 }, {
8214 .eraseblocks = { {8 * 1024 * 1024, 1} },
8215 .block_erase = spi_block_erase_c7,
8216 }
8217 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008218 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008219 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008220 .write = spi_chip_write_256,
8221 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8222 .voltage = {2700, 3600},
8223 },
8224
8225 {
8226 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008227 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008228 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008229 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008230 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008231 .total_size = 16384,
8232 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008233 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008235 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008236 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008237 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008238 .block_erasers =
8239 {
8240 {
8241 .eraseblocks = { {4 * 1024, 4096} },
8242 .block_erase = spi_block_erase_20,
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 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008254 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008255 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008256 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008257 .read = spi_chip_read, /* Fast read (0x0B) supported */
8258 .voltage = {2700, 3600},
8259 },
8260
8261 {
8262 .vendor = "Macronix",
8263 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8264 .bustype = BUS_SPI,
8265 .manufacture_id = MACRONIX_ID,
8266 .model_id = MACRONIX_MX25L12805D,
8267 .total_size = 16384,
8268 .page_size = 256,
8269 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8271 .tested = TEST_OK_PREW,
8272 .probe = probe_spi_rdid,
8273 .probe_timing = TIMING_ZERO,
8274 .block_erasers =
8275 {
8276 {
8277 .eraseblocks = { {4 * 1024, 4096} },
8278 .block_erase = spi_block_erase_20,
8279 }, {
8280 .eraseblocks = { {32 * 1024, 512} },
8281 .block_erase = spi_block_erase_52,
8282 }, {
8283 .eraseblocks = { {64 * 1024, 256} },
8284 .block_erase = spi_block_erase_d8,
8285 }, {
8286 .eraseblocks = { {16 * 1024 * 1024, 1} },
8287 .block_erase = spi_block_erase_60,
8288 }, {
8289 .eraseblocks = { {16 * 1024 * 1024, 1} },
8290 .block_erase = spi_block_erase_c7,
8291 }
8292 },
8293 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8294 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8295 .unlock = spi_disable_blockprotect_bp3_srwd,
8296 .write = spi_chip_write_256,
8297 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008298 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008299 },
8300
8301 {
8302 .vendor = "Macronix",
Nico Huberaac81422017-11-10 22:54:13 +01008303 .name = "MX25L25635F",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008304 .bustype = BUS_SPI,
8305 .manufacture_id = MACRONIX_ID,
8306 .model_id = MACRONIX_MX25L25635F,
8307 .total_size = 32768,
8308 .page_size = 256,
8309 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8311 .tested = TEST_UNTESTED,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008312 .probe = probe_spi_rdid,
8313 .probe_timing = TIMING_ZERO,
8314 .block_erasers =
8315 {
8316 {
8317 .eraseblocks = { {4 * 1024, 8192} },
Nico Huberaac81422017-11-10 22:54:13 +01008318 .block_erase = spi_block_erase_21,
8319 }, {
8320 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008321 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008322 }, {
8323 .eraseblocks = { {32 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008324 .block_erase = spi_block_erase_5c,
8325 }, {
8326 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008327 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008328 }, {
8329 .eraseblocks = { {64 * 1024, 512} },
Nico Huberaac81422017-11-10 22:54:13 +01008330 .block_erase = spi_block_erase_dc,
8331 }, {
8332 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008333 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008334 }, {
8335 .eraseblocks = { {32 * 1024 * 1024, 1} },
8336 .block_erase = spi_block_erase_60,
8337 }, {
8338 .eraseblocks = { {32 * 1024 * 1024, 1} },
8339 .block_erase = spi_block_erase_c7,
8340 }
8341 },
8342 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8343 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8344 .unlock = spi_disable_blockprotect_bp3_srwd,
8345 .write = spi_chip_write_256,
8346 .read = spi_chip_read, /* Fast read (0x0B) supported */
8347 .voltage = {2700, 3600},
8348 },
8349
8350 {
8351 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008352 .name = "MX66L51235F",
8353 .bustype = BUS_SPI,
8354 .manufacture_id = MACRONIX_ID,
8355 .model_id = MACRONIX_MX66L51235F,
8356 .total_size = 65536,
8357 .page_size = 256,
8358 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huberaac81422017-11-10 22:54:13 +01008359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8360 .tested = TEST_UNTESTED,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008361 .probe = probe_spi_rdid,
8362 .probe_timing = TIMING_ZERO,
8363 .block_erasers =
8364 {
8365 {
8366 .eraseblocks = { {4 * 1024, 16384} },
Nico Huberaac81422017-11-10 22:54:13 +01008367 .block_erase = spi_block_erase_21,
8368 }, {
8369 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008370 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008371 }, {
8372 .eraseblocks = { {32 * 1024, 2048} },
Nico Huberaac81422017-11-10 22:54:13 +01008373 .block_erase = spi_block_erase_5c,
8374 }, {
8375 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008376 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008377 }, {
8378 .eraseblocks = { {64 * 1024, 1024} },
Nico Huberaac81422017-11-10 22:54:13 +01008379 .block_erase = spi_block_erase_dc,
8380 }, {
8381 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008382 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008383 }, {
8384 .eraseblocks = { {64 * 1024 * 1024, 1} },
8385 .block_erase = spi_block_erase_60,
8386 }, {
8387 .eraseblocks = { {64 * 1024 * 1024, 1} },
8388 .block_erase = spi_block_erase_c7,
8389 }
8390 },
8391 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8392 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8393 .unlock = spi_disable_blockprotect_bp3_srwd,
8394 .write = spi_chip_write_256,
8395 .read = spi_chip_read, /* Fast read (0x0B) supported */
8396 .voltage = {2700, 3600},
8397 },
8398
8399 {
8400 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008401 .name = "MX25U1635E",
8402 .bustype = BUS_SPI,
8403 .manufacture_id = MACRONIX_ID,
8404 .model_id = MACRONIX_MX25U1635E,
8405 .total_size = 2048,
8406 .page_size = 256,
8407 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8408 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8409 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008410 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008411 .probe = probe_spi_rdid,
8412 .probe_timing = TIMING_ZERO,
8413 .block_erasers =
8414 {
8415 {
8416 .eraseblocks = { {4 * 1024, 512} },
8417 .block_erase = spi_block_erase_20,
8418 }, {
8419 .eraseblocks = { {32 * 1024, 64} },
8420 .block_erase = spi_block_erase_52,
8421 }, {
8422 .eraseblocks = { {64 * 1024, 32} },
8423 .block_erase = spi_block_erase_d8,
8424 }, {
8425 .eraseblocks = { {2 * 1024 * 1024, 1} },
8426 .block_erase = spi_block_erase_60,
8427 }, {
8428 .eraseblocks = { {2 * 1024 * 1024, 1} },
8429 .block_erase = spi_block_erase_c7,
8430 }
8431 },
8432 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008433 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008434 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008435 .write = spi_chip_write_256,
8436 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8437 .voltage = {1650, 2000},
8438 },
8439
8440 {
8441 .vendor = "Macronix",
8442 .name = "MX25U3235E/F",
8443 .bustype = BUS_SPI,
8444 .manufacture_id = MACRONIX_ID,
8445 .model_id = MACRONIX_MX25U3235E,
8446 .total_size = 4096,
8447 .page_size = 256,
8448 /* F model supports SFDP */
8449 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8450 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8452 .tested = TEST_OK_PREW,
8453 .probe = probe_spi_rdid,
8454 .probe_timing = TIMING_ZERO,
8455 .block_erasers =
8456 {
8457 {
8458 .eraseblocks = { {4 * 1024, 1024} },
8459 .block_erase = spi_block_erase_20,
8460 }, {
8461 .eraseblocks = { {32 * 1024, 128} },
8462 .block_erase = spi_block_erase_52,
8463 }, {
8464 .eraseblocks = { {64 * 1024, 64} },
8465 .block_erase = spi_block_erase_d8,
8466 }, {
8467 .eraseblocks = { {4 * 1024 * 1024, 1} },
8468 .block_erase = spi_block_erase_60,
8469 }, {
8470 .eraseblocks = { {4 * 1024 * 1024, 1} },
8471 .block_erase = spi_block_erase_c7,
8472 }
8473 },
8474 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008475 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008476 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008477 .write = spi_chip_write_256,
8478 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8479 .voltage = {1650, 2000},
8480 },
8481
8482 {
8483 .vendor = "Macronix",
8484 .name = "MX25U6435E/F",
8485 .bustype = BUS_SPI,
8486 .manufacture_id = MACRONIX_ID,
8487 .model_id = MACRONIX_MX25U6435E,
8488 .total_size = 8192,
8489 .page_size = 256,
8490 /* F model supports SFDP */
8491 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8492 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008494 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008495 .probe = probe_spi_rdid,
8496 .probe_timing = TIMING_ZERO,
8497 .block_erasers =
8498 {
8499 {
8500 .eraseblocks = { {4 * 1024, 2048} },
8501 .block_erase = spi_block_erase_20,
8502 }, {
8503 .eraseblocks = { {32 * 1024, 256} },
8504 .block_erase = spi_block_erase_52,
8505 }, {
8506 .eraseblocks = { {64 * 1024, 128} },
8507 .block_erase = spi_block_erase_d8,
8508 }, {
8509 .eraseblocks = { {8 * 1024 * 1024, 1} },
8510 .block_erase = spi_block_erase_60,
8511 }, {
8512 .eraseblocks = { {8 * 1024 * 1024, 1} },
8513 .block_erase = spi_block_erase_c7,
8514 }
8515 },
8516 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008517 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008518 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008519 .write = spi_chip_write_256,
8520 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8521 .voltage = {1650, 2000},
8522 },
8523
8524 {
8525 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008526 .name = "MX25U12835F",
8527 .bustype = BUS_SPI,
8528 .manufacture_id = MACRONIX_ID,
8529 .model_id = MACRONIX_MX25U12835E,
8530 .total_size = 16384,
8531 .page_size = 256,
8532 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8534 .tested = TEST_UNTESTED,
8535 .probe = probe_spi_rdid,
8536 .probe_timing = TIMING_ZERO,
8537 .block_erasers =
8538 {
8539 {
8540 .eraseblocks = { {4 * 1024, 4096} },
8541 .block_erase = spi_block_erase_20,
8542 }, {
8543 .eraseblocks = { {32 * 1024, 512} },
8544 .block_erase = spi_block_erase_52,
8545 }, {
8546 .eraseblocks = { {64 * 1024, 256} },
8547 .block_erase = spi_block_erase_d8,
8548 }, {
8549 .eraseblocks = { {16 * 1024 * 1024, 1} },
8550 .block_erase = spi_block_erase_60,
8551 }, {
8552 .eraseblocks = { {16 * 1024 * 1024, 1} },
8553 .block_erase = spi_block_erase_c7,
8554 }
8555 },
8556 /* TODO: security register */
8557 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8558 .unlock = spi_disable_blockprotect_bp3_srwd,
8559 .write = spi_chip_write_256, /* Multi I/O supported */
8560 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8561 .voltage = {1650, 2000},
8562 },
8563
8564 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008565 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008566 .name = "MX25U51245G",
8567 .bustype = BUS_SPI,
8568 .manufacture_id = MACRONIX_ID,
8569 .model_id = MACRONIX_MX25U51245G,
8570 .total_size = 65536,
8571 .page_size = 256,
8572 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8574 .tested = TEST_OK_PREW,
8575 .probe = probe_spi_rdid,
8576 .probe_timing = TIMING_ZERO,
8577 .block_erasers =
8578 {
8579 {
8580 .eraseblocks = { {4 * 1024, 16384} },
8581 .block_erase = spi_block_erase_21,
8582 }, {
8583 .eraseblocks = { {4 * 1024, 16384} },
8584 .block_erase = spi_block_erase_20,
8585 }, {
8586 .eraseblocks = { {32 * 1024, 2048} },
8587 .block_erase = spi_block_erase_5c,
8588 }, {
8589 .eraseblocks = { {32 * 1024, 2048} },
8590 .block_erase = spi_block_erase_52,
8591 }, {
8592 .eraseblocks = { {64 * 1024, 1024} },
8593 .block_erase = spi_block_erase_dc,
8594 }, {
8595 .eraseblocks = { {64 * 1024, 1024} },
8596 .block_erase = spi_block_erase_d8,
8597 }, {
8598 .eraseblocks = { {64 * 1024 * 1024, 1} },
8599 .block_erase = spi_block_erase_60,
8600 }, {
8601 .eraseblocks = { {64 * 1024 * 1024, 1} },
8602 .block_erase = spi_block_erase_c7,
8603 }
8604 },
8605 /* TODO: security register */
8606 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8607 .unlock = spi_disable_blockprotect_bp3_srwd,
8608 .write = spi_chip_write_256, /* Multi I/O supported */
8609 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8610 .voltage = {1650, 2000},
8611 },
8612
8613 {
8614 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008615 .name = "MX25L6495F",
8616 .bustype = BUS_SPI,
8617 .manufacture_id = MACRONIX_ID,
8618 .model_id = MACRONIX_MX25L6495F,
8619 .total_size = 8192,
8620 .page_size = 256,
8621 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8622 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8623 .tested = TEST_OK_PREW,
8624 .probe = probe_spi_rdid,
8625 .probe_timing = TIMING_ZERO,
8626 .block_erasers =
8627 {
8628 {
8629 .eraseblocks = { {4 * 1024, 2048} },
8630 .block_erase = spi_block_erase_20,
8631 }, {
8632 .eraseblocks = { {64 * 1024, 128} },
8633 .block_erase = spi_block_erase_d8,
8634 }, {
8635 .eraseblocks = { {32 * 1024, 256} },
8636 .block_erase = spi_block_erase_52,
8637 }, {
8638 .eraseblocks = { {8 * 1024 * 1024, 1} },
8639 .block_erase = spi_block_erase_60,
8640 }, {
8641 .eraseblocks = { {8 * 1024 * 1024, 1} },
8642 .block_erase = spi_block_erase_c7,
8643 }
8644 },
8645 .unlock = spi_disable_blockprotect,
8646 .write = spi_chip_write_256,
8647 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8648 .voltage = {2700, 3600},
8649 },
8650
8651 {
Martin Roth440057a2014-07-13 00:05:07 +00008652 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008653 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008654 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008655 .manufacture_id = MACRONIX_ID,
8656 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008657 .total_size = 128,
8658 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008659 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8660 .tested = TEST_UNTESTED,
8661 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008662 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008663 .block_erasers =
8664 {
8665 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008666 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008667 {8 * 1024, 1},
8668 {4 * 1024, 2},
8669 {8 * 1024, 2},
8670 {32 * 1024, 1},
8671 {64 * 1024, 1},
8672 },
Sean Nelson35727f72010-01-28 23:55:12 +00008673 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008674 }, {
8675 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008676 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008677 }
8678 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008679 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008681 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008682 },
8683
8684 {
8685 .vendor = "Macronix",
8686 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008687 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008688 .manufacture_id = MACRONIX_ID,
8689 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008690 .total_size = 128,
8691 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008692 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008693 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008694 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008695 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008696 .block_erasers =
8697 {
8698 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008699 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008700 {64 * 1024, 1},
8701 {32 * 1024, 1},
8702 {8 * 1024, 2},
8703 {4 * 1024, 2},
8704 {8 * 1024, 1},
8705 },
Sean Nelson35727f72010-01-28 23:55:12 +00008706 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008707 }, {
8708 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008709 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008710 }
8711 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008712 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008713 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008714 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008715 },
8716
8717 {
8718 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008719 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008720 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008721 .manufacture_id = MACRONIX_ID,
8722 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008723 .total_size = 256,
8724 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008725 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008726 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008727 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008728 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008729 .block_erasers =
8730 {
8731 {
8732 .eraseblocks = {
8733 {16 * 1024, 1},
8734 {8 * 1024, 2},
8735 {32 * 1024, 1},
8736 {64 * 1024, 3},
8737 },
Sean Nelson35727f72010-01-28 23:55:12 +00008738 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008739 }, {
8740 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008741 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008742 },
8743 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008744 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008745 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008746 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008747 },
8748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008749 {
8750 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008751 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008752 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008753 .manufacture_id = MACRONIX_ID,
8754 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008755 .total_size = 256,
8756 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008757 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008758 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008759 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008760 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008761 .block_erasers =
8762 {
8763 {
8764 .eraseblocks = {
8765 {64 * 1024, 3},
8766 {32 * 1024, 1},
8767 {8 * 1024, 2},
8768 {16 * 1024, 1},
8769 },
Sean Nelson35727f72010-01-28 23:55:12 +00008770 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008771 }, {
8772 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008773 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008774 },
8775 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008776 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008777 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008778 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008779 },
8780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008781 {
8782 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008783 .name = "MX29F022(N)B",
8784 .bustype = BUS_PARALLEL,
8785 .manufacture_id = MACRONIX_ID,
8786 .model_id = MACRONIX_MX29F022B,
8787 .total_size = 256,
8788 .page_size = 0, /* unused */
8789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8790 .tested = TEST_UNTESTED,
8791 .probe = probe_jedec,
8792 .probe_timing = TIMING_ZERO,
8793 .block_erasers =
8794 {
8795 {
8796 .eraseblocks = {
8797 {16 * 1024, 1},
8798 {8 * 1024, 2},
8799 {32 * 1024, 1},
8800 {64 * 1024, 3},
8801 },
8802 .block_erase = erase_sector_jedec,
8803 }, {
8804 .eraseblocks = { {256 * 1024, 1} },
8805 .block_erase = erase_chip_block_jedec,
8806 }
8807 },
8808 .write = write_jedec_1,
8809 .read = read_memmapped,
8810 .voltage = {4500, 5500},
8811 },
8812
8813 {
8814 .vendor = "Macronix",
8815 .name = "MX29F022(N)T",
8816 .bustype = BUS_PARALLEL,
8817 .manufacture_id = MACRONIX_ID,
8818 .model_id = MACRONIX_MX29F022T,
8819 .total_size = 256,
8820 .page_size = 0, /* unused */
8821 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8822 .tested = TEST_OK_PREW,
8823 .probe = probe_jedec,
8824 .probe_timing = TIMING_ZERO,
8825 .block_erasers =
8826 {
8827 {
8828 .eraseblocks = {
8829 {64 * 1024, 3},
8830 {32 * 1024, 1},
8831 {8 * 1024, 2},
8832 {16 * 1024, 1},
8833 },
8834 .block_erase = erase_sector_jedec,
8835 }, {
8836 .eraseblocks = { {256 * 1024, 1} },
8837 .block_erase = erase_chip_block_jedec,
8838 }
8839 },
8840 .write = write_jedec_1,
8841 .read = read_memmapped,
8842 .voltage = {4500, 5500},
8843 },
8844
8845 {
8846 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008847 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008848 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008849 .manufacture_id = MACRONIX_ID,
8850 .model_id = MACRONIX_MX29F040,
8851 .total_size = 512,
8852 .page_size = 64 * 1024,
8853 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8854 .tested = TEST_UNTESTED,
8855 .probe = probe_jedec,
8856 .probe_timing = TIMING_ZERO,
8857 .block_erasers =
8858 {
8859 {
8860 .eraseblocks = { {64 * 1024, 8} },
8861 .block_erase = erase_sector_jedec,
8862 }, {
8863 .eraseblocks = { {512 * 1024, 1} },
8864 .block_erase = erase_chip_block_jedec,
8865 },
8866 },
8867 .write = write_jedec_1,
8868 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008869 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008870 },
8871
8872 {
8873 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008874 .name = "MX29GL320EB",
8875 .bustype = BUS_PARALLEL,
8876 .manufacture_id = MACRONIX_ID,
8877 .model_id = MACRONIX_MX29GL320EB,
8878 .total_size = 4096,
8879 .page_size = 128 * 1024, /* actual page size is 16 */
8880 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8881 .tested = TEST_UNTESTED,
8882 .probe = probe_jedec_29gl,
8883 .probe_timing = TIMING_ZERO,
8884 .block_erasers =
8885 {
8886 {
8887 .eraseblocks = {
8888 {8 * 1024, 8},
8889 {64 * 1024, 63},
8890 },
8891 .block_erase = erase_sector_jedec,
8892 }, {
8893 .eraseblocks = { {4 * 1024 * 1024, 1} },
8894 .block_erase = erase_chip_block_jedec,
8895 },
8896 },
8897 .write = write_jedec_1,
8898 .read = read_memmapped,
8899 .voltage = {2700, 3600},
8900 },
8901
8902 {
8903 .vendor = "Macronix",
8904 .name = "MX29GL320ET",
8905 .bustype = BUS_PARALLEL,
8906 .manufacture_id = MACRONIX_ID,
8907 .model_id = MACRONIX_MX29GL320ET,
8908 .total_size = 4096,
8909 .page_size = 128 * 1024, /* actual page size is 16 */
8910 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8911 .tested = TEST_UNTESTED,
8912 .probe = probe_jedec_29gl,
8913 .probe_timing = TIMING_ZERO,
8914 .block_erasers =
8915 {
8916 {
8917 .eraseblocks = {
8918 {64 * 1024, 63},
8919 {8 * 1024, 8},
8920 },
8921 .block_erase = erase_sector_jedec,
8922 }, {
8923 .eraseblocks = { {4 * 1024 * 1024, 1} },
8924 .block_erase = erase_chip_block_jedec,
8925 },
8926 },
8927 .write = write_jedec_1,
8928 .read = read_memmapped,
8929 .voltage = {2700, 3600},
8930 },
8931
8932 {
8933 .vendor = "Macronix",
8934 .name = "MX29GL320EH/L",
8935 .bustype = BUS_PARALLEL,
8936 .manufacture_id = MACRONIX_ID,
8937 .model_id = MACRONIX_MX29GL320EHL,
8938 .total_size = 4096,
8939 .page_size = 128 * 1024, /* actual page size is 16 */
8940 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8941 .tested = TEST_UNTESTED,
8942 .probe = probe_jedec_29gl,
8943 .probe_timing = TIMING_ZERO,
8944 .block_erasers =
8945 {
8946 {
8947 .eraseblocks = { {64 * 1024, 64} },
8948 .block_erase = erase_sector_jedec,
8949 }, {
8950 .eraseblocks = { {4 * 1024 * 1024, 1} },
8951 .block_erase = erase_chip_block_jedec,
8952 },
8953 },
8954 .write = write_jedec_1,
8955 .read = read_memmapped,
8956 .voltage = {2700, 3600},
8957 },
8958
8959 {
8960 .vendor = "Macronix",
8961 .name = "MX29GL640EB",
8962 .bustype = BUS_PARALLEL,
8963 .manufacture_id = MACRONIX_ID,
8964 .model_id = MACRONIX_MX29GL640EB,
8965 .total_size = 8192,
8966 .page_size = 128 * 1024, /* actual page size is 16 */
8967 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8968 .tested = TEST_UNTESTED,
8969 .probe = probe_jedec_29gl,
8970 .probe_timing = TIMING_ZERO,
8971 .block_erasers =
8972 {
8973 {
8974 .eraseblocks = {
8975 {8 * 1024, 8},
8976 {64 * 1024, 127},
8977 },
8978 .block_erase = erase_sector_jedec,
8979 }, {
8980 .eraseblocks = { {8 * 1024 * 1024, 1} },
8981 .block_erase = erase_chip_block_jedec,
8982 },
8983 },
8984 .write = write_jedec_1,
8985 .read = read_memmapped,
8986 .voltage = {2700, 3600},
8987 },
8988
8989 {
8990 .vendor = "Macronix",
8991 .name = "MX29GL640ET",
8992 .bustype = BUS_PARALLEL,
8993 .manufacture_id = MACRONIX_ID,
8994 .model_id = MACRONIX_MX29GL640ET,
8995 .total_size = 8192,
8996 .page_size = 128 * 1024, /* actual page size is 16 */
8997 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8998 .tested = TEST_UNTESTED,
8999 .probe = probe_jedec_29gl,
9000 .probe_timing = TIMING_ZERO,
9001 .block_erasers =
9002 {
9003 {
9004 .eraseblocks = {
9005 {64 * 1024, 127},
9006 {8 * 1024, 8},
9007 },
9008 .block_erase = erase_sector_jedec,
9009 }, {
9010 .eraseblocks = { {8 * 1024 * 1024, 1} },
9011 .block_erase = erase_chip_block_jedec,
9012 },
9013 },
9014 .write = write_jedec_1,
9015 .read = read_memmapped,
9016 .voltage = {2700, 3600},
9017 },
9018
9019 {
9020 .vendor = "Macronix",
9021 .name = "MX29GL640EH/L",
9022 .bustype = BUS_PARALLEL,
9023 .manufacture_id = MACRONIX_ID,
9024 .model_id = MACRONIX_MX29GL640EHL,
9025 .total_size = 8192,
9026 .page_size = 128 * 1024, /* actual page size is 16 */
9027 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9028 .tested = TEST_UNTESTED,
9029 .probe = probe_jedec_29gl,
9030 .probe_timing = TIMING_ZERO,
9031 .block_erasers =
9032 {
9033 {
9034 .eraseblocks = { {64 * 1024, 128} },
9035 .block_erase = erase_sector_jedec,
9036 }, {
9037 .eraseblocks = { {8 * 1024 * 1024, 1} },
9038 .block_erase = erase_chip_block_jedec,
9039 },
9040 },
9041 .write = write_jedec_1,
9042 .read = read_memmapped,
9043 .voltage = {2700, 3600},
9044 },
9045
9046 {
9047 .vendor = "Macronix",
9048 .name = "MX29GL128F",
9049 .bustype = BUS_PARALLEL,
9050 .manufacture_id = MACRONIX_ID,
9051 .model_id = MACRONIX_MX29GL128F,
9052 .total_size = 16384,
9053 .page_size = 128 * 1024, /* actual page size is 16 */
9054 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9055 .tested = TEST_UNTESTED,
9056 .probe = probe_jedec_29gl,
9057 .probe_timing = TIMING_ZERO,
9058 .block_erasers =
9059 {
9060 {
9061 .eraseblocks = { {128 * 1024, 128} },
9062 .block_erase = erase_sector_jedec,
9063 }, {
9064 .eraseblocks = { {16 * 1024 * 1024, 1} },
9065 .block_erase = erase_chip_block_jedec,
9066 },
9067 },
9068 .write = write_jedec_1,
9069 .read = read_memmapped,
9070 .voltage = {2700, 3600},
9071 },
9072
9073 {
9074 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009075 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009076 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009077 .manufacture_id = MACRONIX_ID,
9078 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009079 .total_size = 512,
9080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009081 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9082 .tested = TEST_UNTESTED,
9083 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009084 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009085 .block_erasers =
9086 {
9087 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009088 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009089 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009090 }, {
9091 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009092 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009093 },
9094 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009095 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009097 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009098 },
9099
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009100 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009101 .vendor = "Micron/Numonyx/ST",
9102 .name = "M25P05-A",
9103 .bustype = BUS_SPI,
9104 .manufacture_id = ST_ID,
9105 .model_id = ST_M25P05A,
9106 .total_size = 64,
9107 .page_size = 256,
9108 .feature_bits = FEATURE_WRSR_WREN,
9109 .tested = TEST_OK_PREW,
9110 .probe = probe_spi_rdid,
9111 .probe_timing = TIMING_ZERO,
9112 .block_erasers =
9113 {
9114 {
9115 .eraseblocks = { {32 * 1024, 2} },
9116 .block_erase = spi_block_erase_d8,
9117 }, {
9118 .eraseblocks = { {64 * 1024, 1} },
9119 .block_erase = spi_block_erase_c7,
9120 }
9121 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009122 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009123 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009124 .write = spi_chip_write_256,
9125 .read = spi_chip_read,
9126 .voltage = {2700, 3600},
9127 },
9128
9129 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9130 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9131 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9132 * only is successful if RDID does not work.
9133 */
9134 {
9135 .vendor = "Micron/Numonyx/ST",
9136 .name = "M25P05",
9137 .bustype = BUS_SPI,
9138 .manufacture_id = 0, /* Not used. */
9139 .model_id = ST_M25P05_RES,
9140 .total_size = 64,
9141 .page_size = 256,
9142 .feature_bits = FEATURE_WRSR_WREN,
9143 .tested = TEST_UNTESTED,
9144 .probe = probe_spi_res1,
9145 .probe_timing = TIMING_ZERO,
9146 .block_erasers =
9147 {
9148 {
9149 .eraseblocks = { {32 * 1024, 2} },
9150 .block_erase = spi_block_erase_d8,
9151 }, {
9152 .eraseblocks = { {64 * 1024, 1} },
9153 .block_erase = spi_block_erase_c7,
9154 }
9155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009156 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009157 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009158 .write = spi_chip_write_1, /* 128 */
9159 .read = spi_chip_read,
9160 .voltage = {2700, 3600},
9161 },
9162
9163 {
9164 .vendor = "Micron/Numonyx/ST",
9165 .name = "M25P10-A",
9166 .bustype = BUS_SPI,
9167 .manufacture_id = ST_ID,
9168 .model_id = ST_M25P10A,
9169 .total_size = 128,
9170 .page_size = 256,
9171 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009172 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009173 .probe = probe_spi_rdid,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {32 * 1024, 4} },
9179 .block_erase = spi_block_erase_d8,
9180 }, {
9181 .eraseblocks = { {128 * 1024, 1} },
9182 .block_erase = spi_block_erase_c7,
9183 }
9184 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009185 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009186 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009187 .write = spi_chip_write_256,
9188 .read = spi_chip_read,
9189 .voltage = {2700, 3600},
9190 },
9191
9192 /* The ST M25P10 has the same problem as the M25P05. */
9193 {
9194 .vendor = "Micron/Numonyx/ST",
9195 .name = "M25P10",
9196 .bustype = BUS_SPI,
9197 .manufacture_id = 0, /* Not used. */
9198 .model_id = ST_M25P10_RES,
9199 .total_size = 128,
9200 .page_size = 256,
9201 .feature_bits = FEATURE_WRSR_WREN,
9202 .tested = TEST_UNTESTED,
9203 .probe = probe_spi_res1,
9204 .probe_timing = TIMING_ZERO,
9205 .block_erasers =
9206 {
9207 {
9208 .eraseblocks = { {32 * 1024, 4} },
9209 .block_erase = spi_block_erase_d8,
9210 }, {
9211 .eraseblocks = { {128 * 1024, 1} },
9212 .block_erase = spi_block_erase_c7,
9213 }
9214 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009215 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009216 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009217 .write = spi_chip_write_1, /* 128 */
9218 .read = spi_chip_read,
9219 .voltage = {2700, 3600},
9220 },
9221
9222 {
9223 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9224 .name = "M25P20",
9225 .bustype = BUS_SPI,
9226 .manufacture_id = ST_ID,
9227 .model_id = ST_M25P20,
9228 .total_size = 256,
9229 .page_size = 256,
9230 .feature_bits = FEATURE_WRSR_WREN,
9231 .tested = TEST_UNTESTED,
9232 .probe = probe_spi_rdid,
9233 .probe_timing = TIMING_ZERO,
9234 .block_erasers =
9235 {
9236 {
9237 .eraseblocks = { {64 * 1024, 4} },
9238 .block_erase = spi_block_erase_d8,
9239 }, {
9240 .eraseblocks = { {256 * 1024, 1} },
9241 .block_erase = spi_block_erase_c7,
9242 }
9243 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009244 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009245 .unlock = spi_disable_blockprotect,
9246 .write = spi_chip_write_256,
9247 .read = spi_chip_read, /* Fast read (0x0B) supported */
9248 .voltage = {2700, 3600},
9249 },
9250
9251 {
9252 .vendor = "Micron/Numonyx/ST",
9253 .name = "M25P20-old",
9254 .bustype = BUS_SPI,
9255 .manufacture_id = 0, /* Not used. */
9256 .model_id = ST_M25P20_RES,
9257 .total_size = 256,
9258 .page_size = 256,
9259 .feature_bits = FEATURE_WRSR_WREN,
9260 .tested = TEST_OK_PREW,
9261 .probe = probe_spi_res1,
9262 .probe_timing = TIMING_ZERO,
9263 .block_erasers =
9264 {
9265 {
9266 .eraseblocks = { {64 * 1024, 4} },
9267 .block_erase = spi_block_erase_d8,
9268 }, {
9269 .eraseblocks = { {256 * 1024, 1} },
9270 .block_erase = spi_block_erase_c7,
9271 }
9272 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009273 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009274 .unlock = spi_disable_blockprotect,
9275 .write = spi_chip_write_256,
9276 .read = spi_chip_read, /* Fast read (0x0B) supported */
9277 .voltage = {2700, 3600},
9278 },
9279
9280 {
9281 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9282 .name = "M25P40",
9283 .bustype = BUS_SPI,
9284 .manufacture_id = ST_ID,
9285 .model_id = ST_M25P40,
9286 .total_size = 512,
9287 .page_size = 256,
9288 .feature_bits = FEATURE_WRSR_WREN,
9289 .tested = TEST_OK_PREW,
9290 .probe = probe_spi_rdid,
9291 .probe_timing = TIMING_ZERO,
9292 .block_erasers =
9293 {
9294 {
9295 .eraseblocks = { {64 * 1024, 8} },
9296 .block_erase = spi_block_erase_d8,
9297 }, {
9298 .eraseblocks = { {512 * 1024, 1} },
9299 .block_erase = spi_block_erase_c7,
9300 }
9301 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009302 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009303 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009304 .write = spi_chip_write_256,
9305 .read = spi_chip_read,
9306 .voltage = {2700, 3600},
9307 },
9308
9309 {
9310 .vendor = "Micron/Numonyx/ST",
9311 .name = "M25P40-old",
9312 .bustype = BUS_SPI,
9313 .manufacture_id = 0, /* Not used. */
9314 .model_id = ST_M25P40_RES,
9315 .total_size = 512,
9316 .page_size = 256,
9317 .feature_bits = FEATURE_WRSR_WREN,
9318 .tested = TEST_UNTESTED,
9319 .probe = probe_spi_res1,
9320 .probe_timing = TIMING_ZERO,
9321 .block_erasers =
9322 {
9323 {
9324 .eraseblocks = { {64 * 1024, 8} },
9325 .block_erase = spi_block_erase_d8,
9326 }, {
9327 .eraseblocks = { {512 * 1024, 1} },
9328 .block_erase = spi_block_erase_c7,
9329 }
9330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009331 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009332 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009333 .write = spi_chip_write_256,
9334 .read = spi_chip_read,
9335 },
9336
9337 {
9338 .vendor = "Micron/Numonyx/ST",
9339 .name = "M25P80",
9340 .bustype = BUS_SPI,
9341 .manufacture_id = ST_ID,
9342 .model_id = ST_M25P80,
9343 .total_size = 1024,
9344 .page_size = 256,
9345 .feature_bits = FEATURE_WRSR_WREN,
9346 .tested = TEST_OK_PREW,
9347 .probe = probe_spi_rdid,
9348 .probe_timing = TIMING_ZERO,
9349 .block_erasers =
9350 {
9351 {
9352 .eraseblocks = { {64 * 1024, 16} },
9353 .block_erase = spi_block_erase_d8,
9354 }, {
9355 .eraseblocks = { {1024 * 1024, 1} },
9356 .block_erase = spi_block_erase_c7,
9357 }
9358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009360 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009361 .write = spi_chip_write_256,
9362 .read = spi_chip_read,
9363 .voltage = {2700, 3600},
9364 },
9365
9366 {
9367 .vendor = "Micron/Numonyx/ST",
9368 .name = "M25P16",
9369 .bustype = BUS_SPI,
9370 .manufacture_id = ST_ID,
9371 .model_id = ST_M25P16,
9372 .total_size = 2048,
9373 .page_size = 256,
9374 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009375 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009376 .probe = probe_spi_rdid,
9377 .probe_timing = TIMING_ZERO,
9378 .block_erasers =
9379 {
9380 {
9381 .eraseblocks = { {64 * 1024, 32} },
9382 .block_erase = spi_block_erase_d8,
9383 }, {
9384 .eraseblocks = { {2 * 1024 * 1024, 1} },
9385 .block_erase = spi_block_erase_c7,
9386 }
9387 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009388 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009389 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009390 .write = spi_chip_write_256,
9391 .read = spi_chip_read,
9392 .voltage = {2700, 3600},
9393 },
9394
9395 {
9396 .vendor = "Micron/Numonyx/ST",
9397 .name = "M25P32",
9398 .bustype = BUS_SPI,
9399 .manufacture_id = ST_ID,
9400 .model_id = ST_M25P32,
9401 .total_size = 4096,
9402 .page_size = 256,
9403 .feature_bits = FEATURE_WRSR_WREN,
9404 .tested = TEST_OK_PREW,
9405 .probe = probe_spi_rdid,
9406 .probe_timing = TIMING_ZERO,
9407 .block_erasers =
9408 {
9409 {
9410 .eraseblocks = { {64 * 1024, 64} },
9411 .block_erase = spi_block_erase_d8,
9412 }, {
9413 .eraseblocks = { {4 * 1024 * 1024, 1} },
9414 .block_erase = spi_block_erase_c7,
9415 }
9416 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009417 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009418 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009419 .write = spi_chip_write_256,
9420 .read = spi_chip_read,
9421 .voltage = {2700, 3600},
9422 },
9423
9424 {
9425 .vendor = "Micron/Numonyx/ST",
9426 .name = "M25P64",
9427 .bustype = BUS_SPI,
9428 .manufacture_id = ST_ID,
9429 .model_id = ST_M25P64,
9430 .total_size = 8192,
9431 .page_size = 256,
9432 .feature_bits = FEATURE_WRSR_WREN,
9433 .tested = TEST_OK_PREW,
9434 .probe = probe_spi_rdid,
9435 .probe_timing = TIMING_ZERO,
9436 .block_erasers =
9437 {
9438 {
9439 .eraseblocks = { {64 * 1024, 128} },
9440 .block_erase = spi_block_erase_d8,
9441 }, {
9442 .eraseblocks = { {8 * 1024 * 1024, 1} },
9443 .block_erase = spi_block_erase_c7,
9444 }
9445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009446 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009447 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009448 .write = spi_chip_write_256,
9449 .read = spi_chip_read,
9450 .voltage = {2700, 3600},
9451 },
9452
9453 {
9454 .vendor = "Micron/Numonyx/ST",
9455 .name = "M25P128",
9456 .bustype = BUS_SPI,
9457 .manufacture_id = ST_ID,
9458 .model_id = ST_M25P128,
9459 .total_size = 16384,
9460 .page_size = 256,
9461 .feature_bits = FEATURE_WRSR_WREN,
9462 .tested = TEST_OK_PREW,
9463 .probe = probe_spi_rdid,
9464 .probe_timing = TIMING_ZERO,
9465 .block_erasers =
9466 {
9467 {
9468 .eraseblocks = { {256 * 1024, 64} },
9469 .block_erase = spi_block_erase_d8,
9470 }, {
9471 .eraseblocks = { {16 * 1024 * 1024, 1} },
9472 .block_erase = spi_block_erase_c7,
9473 }
9474 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009475 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009476 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009477 .write = spi_chip_write_256,
9478 .read = spi_chip_read,
9479 .voltage = {2700, 3600},
9480 },
9481
9482 {
9483 .vendor = "Micron/Numonyx/ST",
9484 .name = "M25PE10",
9485 .bustype = BUS_SPI,
9486 .manufacture_id = ST_ID,
9487 .model_id = ST_M25PE10,
9488 .total_size = 128,
9489 .page_size = 256,
9490 .feature_bits = FEATURE_WRSR_WREN,
9491 .tested = TEST_UNTESTED,
9492 .probe = probe_spi_rdid,
9493 .probe_timing = TIMING_ZERO,
9494 .block_erasers =
9495 {
9496 {
9497 .eraseblocks = { {4 * 1024, 32} },
9498 .block_erase = spi_block_erase_20,
9499 }, {
9500 .eraseblocks = { {64 * 1024, 2} },
9501 .block_erase = spi_block_erase_d8,
9502 }, {
9503 .eraseblocks = { {128 * 1024, 1} },
9504 .block_erase = spi_block_erase_c7,
9505 }
9506 },
9507 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9508 .unlock = spi_disable_blockprotect,
9509 .write = spi_chip_write_256,
9510 .read = spi_chip_read,
9511 .voltage = {2700, 3600},
9512 },
9513
9514 {
9515 .vendor = "Micron/Numonyx/ST",
9516 .name = "M25PE20",
9517 .bustype = BUS_SPI,
9518 .manufacture_id = ST_ID,
9519 .model_id = ST_M25PE20,
9520 .total_size = 256,
9521 .page_size = 256,
9522 .feature_bits = FEATURE_WRSR_WREN,
9523 .tested = TEST_UNTESTED,
9524 .probe = probe_spi_rdid,
9525 .probe_timing = TIMING_ZERO,
9526 .block_erasers =
9527 {
9528 {
9529 .eraseblocks = { {4 * 1024, 64} },
9530 .block_erase = spi_block_erase_20,
9531 }, {
9532 .eraseblocks = { {64 * 1024, 4} },
9533 .block_erase = spi_block_erase_d8,
9534 }, {
9535 .eraseblocks = { {256 * 1024, 1} },
9536 .block_erase = spi_block_erase_c7,
9537 }
9538 },
9539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9540 .unlock = spi_disable_blockprotect,
9541 .write = spi_chip_write_256,
9542 .read = spi_chip_read,
9543 .voltage = {2700, 3600},
9544 },
9545
9546 {
9547 .vendor = "Micron/Numonyx/ST",
9548 .name = "M25PE40",
9549 .bustype = BUS_SPI,
9550 .manufacture_id = ST_ID,
9551 .model_id = ST_M25PE40,
9552 .total_size = 512,
9553 .page_size = 256,
9554 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009555 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009556 .probe = probe_spi_rdid,
9557 .probe_timing = TIMING_ZERO,
9558 .block_erasers =
9559 {
9560 {
9561 .eraseblocks = { {4 * 1024, 128} },
9562 .block_erase = spi_block_erase_20,
9563 }, {
9564 .eraseblocks = { {64 * 1024, 8} },
9565 .block_erase = spi_block_erase_d8,
9566 }, {
9567 .eraseblocks = { {512 * 1024, 1} },
9568 .block_erase = spi_block_erase_c7,
9569 }
9570 },
9571 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9572 .unlock = spi_disable_blockprotect,
9573 .write = spi_chip_write_256,
9574 .read = spi_chip_read,
9575 .voltage = {2700, 3600},
9576 },
9577
9578 {
9579 .vendor = "Micron/Numonyx/ST",
9580 .name = "M25PE80",
9581 .bustype = BUS_SPI,
9582 .manufacture_id = ST_ID,
9583 .model_id = ST_M25PE80,
9584 .total_size = 1024,
9585 .page_size = 256,
9586 .feature_bits = FEATURE_WRSR_WREN,
9587 .tested = TEST_OK_PREW,
9588 .probe = probe_spi_rdid,
9589 .probe_timing = TIMING_ZERO,
9590 .block_erasers =
9591 {
9592 {
9593 .eraseblocks = { {4 * 1024, 256} },
9594 .block_erase = spi_block_erase_20,
9595 }, {
9596 .eraseblocks = { {64 * 1024, 16} },
9597 .block_erase = spi_block_erase_d8,
9598 }, {
9599 .eraseblocks = { {1024 * 1024, 1} },
9600 .block_erase = spi_block_erase_c7,
9601 }
9602 },
9603 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9604 .unlock = spi_disable_blockprotect,
9605 .write = spi_chip_write_256,
9606 .read = spi_chip_read,
9607 .voltage = {2700, 3600},
9608 },
9609
9610 {
9611 .vendor = "Micron/Numonyx/ST",
9612 .name = "M25PE16",
9613 .bustype = BUS_SPI,
9614 .manufacture_id = ST_ID,
9615 .model_id = ST_M25PE16,
9616 .total_size = 2048,
9617 .page_size = 256,
9618 .feature_bits = FEATURE_WRSR_WREN,
9619 .tested = TEST_UNTESTED,
9620 .probe = probe_spi_rdid,
9621 .probe_timing = TIMING_ZERO,
9622 .block_erasers =
9623 {
9624 {
9625 .eraseblocks = { {4 * 1024, 512} },
9626 .block_erase = spi_block_erase_20,
9627 }, {
9628 .eraseblocks = { {64 * 1024, 32} },
9629 .block_erase = spi_block_erase_d8,
9630 }, {
9631 .eraseblocks = { {2 * 1024 * 1024, 1} },
9632 .block_erase = spi_block_erase_c7,
9633 }
9634 },
9635 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9636 .unlock = spi_disable_blockprotect,
9637 .write = spi_chip_write_256,
9638 .read = spi_chip_read,
9639 .voltage = {2700, 3600},
9640 },
9641
9642 {
9643 .vendor = "Micron/Numonyx/ST",
9644 .name = "M25PX80",
9645 .bustype = BUS_SPI,
9646 .manufacture_id = ST_ID,
9647 .model_id = ST_M25PX80,
9648 .total_size = 1024,
9649 .page_size = 256,
9650 /* OTP: 64B total; read 0x4B, write 0x42 */
9651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9652 .tested = TEST_OK_PREW,
9653 .probe = probe_spi_rdid,
9654 .probe_timing = TIMING_ZERO,
9655 .block_erasers = {
9656 {
9657 .eraseblocks = { { 4 * 1024, 256 } },
9658 .block_erase = spi_block_erase_20,
9659 }, {
9660 .eraseblocks = { {64 * 1024, 16} },
9661 .block_erase = spi_block_erase_d8,
9662 }, {
9663 .eraseblocks = { {1024 * 1024, 1} },
9664 .block_erase = spi_block_erase_c7,
9665 }
9666 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009667 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009668 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9669 .write = spi_chip_write_256,
9670 .read = spi_chip_read,
9671 .voltage = {2700, 3600},
9672 },
9673
9674 {
9675 .vendor = "Micron/Numonyx/ST",
9676 .name = "M25PX16",
9677 .bustype = BUS_SPI,
9678 .manufacture_id = ST_ID,
9679 .model_id = ST_M25PX16,
9680 .total_size = 2048,
9681 .page_size = 256,
9682 /* OTP: 64B total; read 0x4B; write 0x42 */
9683 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9684 .tested = TEST_OK_PREW,
9685 .probe = probe_spi_rdid,
9686 .probe_timing = TIMING_ZERO,
9687 .block_erasers =
9688 {
9689 {
9690 .eraseblocks = { { 4 * 1024, 512 } },
9691 .block_erase = spi_block_erase_20,
9692 }, {
9693 .eraseblocks = { {64 * 1024, 32} },
9694 .block_erase = spi_block_erase_d8,
9695 }, {
9696 .eraseblocks = { {2 * 1024 * 1024, 1} },
9697 .block_erase = spi_block_erase_c7,
9698 }
9699 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009700 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009701 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9702 .write = spi_chip_write_256,
9703 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009704 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009705 },
9706
9707 {
9708 .vendor = "Micron/Numonyx/ST",
9709 .name = "M25PX32",
9710 .bustype = BUS_SPI,
9711 .manufacture_id = ST_ID,
9712 .model_id = ST_M25PX32,
9713 .total_size = 4096,
9714 .page_size = 256,
9715 /* OTP: 64B total; read 0x4B; write 0x42 */
9716 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9717 .tested = TEST_OK_PRE,
9718 .probe = probe_spi_rdid,
9719 .probe_timing = TIMING_ZERO,
9720 .block_erasers =
9721 {
9722 {
9723 .eraseblocks = { { 4 * 1024, 1024 } },
9724 .block_erase = spi_block_erase_20,
9725 }, {
9726 .eraseblocks = { {64 * 1024, 64} },
9727 .block_erase = spi_block_erase_d8,
9728 }, {
9729 .eraseblocks = { {4 * 1024 * 1024, 1} },
9730 .block_erase = spi_block_erase_c7,
9731 }
9732 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009733 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009734 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9735 .write = spi_chip_write_256,
9736 .read = spi_chip_read,
9737 .voltage = {2700, 3600},
9738 },
9739
9740 {
9741 .vendor = "Micron/Numonyx/ST",
9742 .name = "M25PX64",
9743 .bustype = BUS_SPI,
9744 .manufacture_id = ST_ID,
9745 .model_id = ST_M25PX64,
9746 .total_size = 8192,
9747 .page_size = 256,
9748 /* OTP: 64B total; read 0x4B; write 0x42 */
9749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009750 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009751 .probe = probe_spi_rdid,
9752 .probe_timing = TIMING_ZERO,
9753 .block_erasers =
9754 {
9755 {
9756 .eraseblocks = { { 4 * 1024, 2048 } },
9757 .block_erase = spi_block_erase_20,
9758 }, {
9759 .eraseblocks = { {64 * 1024, 128} },
9760 .block_erase = spi_block_erase_d8,
9761 }, {
9762 .eraseblocks = { {8 * 1024 * 1024, 1} },
9763 .block_erase = spi_block_erase_c7,
9764 }
9765 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009766 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009767 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9768 .write = spi_chip_write_256,
9769 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009770 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009771 },
9772
9773 {
9774 .vendor = "Micron/Numonyx/ST",
9775 .name = "M45PE10",
9776 .bustype = BUS_SPI,
9777 .manufacture_id = ST_ID,
9778 .model_id = ST_M45PE10,
9779 .total_size = 128,
9780 .page_size = 256,
9781 .tested = TEST_UNTESTED,
9782 .probe = probe_spi_rdid,
9783 .probe_timing = TIMING_ZERO,
9784 .block_erasers = {
9785 {
9786 .eraseblocks = { {256, 512} },
9787 .block_erase = spi_block_erase_db,
9788 }, {
9789 .eraseblocks = { {64 * 1024, 2} },
9790 .block_erase = spi_block_erase_d8,
9791 }
9792 },
9793 .printlock = spi_prettyprint_status_register_default_welwip,
9794 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9795 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9796 .read = spi_chip_read, /* Fast read (0x0B) supported */
9797 .voltage = {2700, 3600},
9798 },
9799
9800 {
9801 .vendor = "Micron/Numonyx/ST",
9802 .name = "M45PE20",
9803 .bustype = BUS_SPI,
9804 .manufacture_id = ST_ID,
9805 .model_id = ST_M45PE20,
9806 .total_size = 256,
9807 .page_size = 256,
9808 .tested = TEST_UNTESTED,
9809 .probe = probe_spi_rdid,
9810 .probe_timing = TIMING_ZERO,
9811 .block_erasers = {
9812 {
9813 .eraseblocks = { {256, 1024} },
9814 .block_erase = spi_block_erase_db,
9815 }, {
9816 .eraseblocks = { {64 * 1024, 4} },
9817 .block_erase = spi_block_erase_d8,
9818 }
9819 },
9820 .printlock = spi_prettyprint_status_register_default_welwip,
9821 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9822 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9823 .read = spi_chip_read, /* Fast read (0x0B) supported */
9824 .voltage = {2700, 3600},
9825 },
9826
9827 {
9828 .vendor = "Micron/Numonyx/ST",
9829 .name = "M45PE40",
9830 .bustype = BUS_SPI,
9831 .manufacture_id = ST_ID,
9832 .model_id = ST_M45PE40,
9833 .total_size = 512,
9834 .page_size = 256,
9835 .tested = TEST_UNTESTED,
9836 .probe = probe_spi_rdid,
9837 .probe_timing = TIMING_ZERO,
9838 .block_erasers = {
9839 {
9840 .eraseblocks = { {256, 2048} },
9841 .block_erase = spi_block_erase_db,
9842 }, {
9843 .eraseblocks = { {64 * 1024, 8} },
9844 .block_erase = spi_block_erase_d8,
9845 }
9846 },
9847 .printlock = spi_prettyprint_status_register_default_welwip,
9848 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009849 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009850 .read = spi_chip_read, /* Fast read (0x0B) supported */
9851 .voltage = {2700, 3600},
9852 },
9853
9854 {
9855 .vendor = "Micron/Numonyx/ST",
9856 .name = "M45PE80",
9857 .bustype = BUS_SPI,
9858 .manufacture_id = ST_ID,
9859 .model_id = ST_M45PE80,
9860 .total_size = 1024,
9861 .page_size = 256,
9862 .tested = TEST_UNTESTED,
9863 .probe = probe_spi_rdid,
9864 .probe_timing = TIMING_ZERO,
9865 .block_erasers = {
9866 {
9867 .eraseblocks = { {256, 4096} },
9868 .block_erase = spi_block_erase_db,
9869 }, {
9870 .eraseblocks = { {64 * 1024, 16} },
9871 .block_erase = spi_block_erase_d8,
9872 }
9873 },
9874 .printlock = spi_prettyprint_status_register_default_welwip,
9875 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9876 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9877 .read = spi_chip_read, /* Fast read (0x0B) supported */
9878 .voltage = {2700, 3600},
9879 },
9880
9881 {
9882 .vendor = "Micron/Numonyx/ST",
9883 .name = "M45PE16",
9884 .bustype = BUS_SPI,
9885 .manufacture_id = ST_ID,
9886 .model_id = ST_M45PE16,
9887 .total_size = 2048,
9888 .page_size = 256,
9889 .tested = TEST_UNTESTED,
9890 .probe = probe_spi_rdid,
9891 .probe_timing = TIMING_ZERO,
9892 .block_erasers = {
9893 {
9894 .eraseblocks = { {256, 8192} },
9895 .block_erase = spi_block_erase_db,
9896 }, {
9897 .eraseblocks = { {64 * 1024, 32} },
9898 .block_erase = spi_block_erase_d8,
9899 }
9900 },
9901 .printlock = spi_prettyprint_status_register_default_welwip,
9902 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9903 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9904 .read = spi_chip_read, /* Fast read (0x0B) supported */
9905 .voltage = {2700, 3600},
9906 },
9907
9908 {
9909 .vendor = "Micron/Numonyx/ST",
9910 .name = "N25Q016",
9911 .bustype = BUS_SPI,
9912 .manufacture_id = ST_ID,
9913 .model_id = ST_N25Q016__1E,
9914 .total_size = 2048,
9915 .page_size = 256,
9916 /* supports SFDP */
9917 /* OTP: 64B total; read 0x4B, write 0x42 */
9918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9919 .tested = TEST_UNTESTED,
9920 .probe = probe_spi_rdid,
9921 .probe_timing = TIMING_ZERO,
9922 .block_erasers =
9923 {
9924 {
9925 .eraseblocks = { {4 * 1024, 512} },
9926 .block_erase = spi_block_erase_20,
9927 }, {
9928 .eraseblocks = { {32 * 1024, 64} },
9929 .block_erase = spi_block_erase_52,
9930 }, {
9931 .eraseblocks = { {64 * 1024, 32} },
9932 .block_erase = spi_block_erase_d8,
9933 }, {
9934 .eraseblocks = { {2 * 1024 * 1024, 1} },
9935 .block_erase = spi_block_erase_c7,
9936 }
9937 },
9938 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9939 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9940 .write = spi_chip_write_256, /* Multi I/O supported */
9941 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9942 .voltage = {1700, 2000},
9943 },
9944
9945 {
9946 .vendor = "Micron/Numonyx/ST",
9947 .name = "N25Q032..1E",
9948 .bustype = BUS_SPI,
9949 .manufacture_id = ST_ID,
9950 .model_id = ST_N25Q032__1E,
9951 .total_size = 4096,
9952 .page_size = 256,
9953 /* supports SFDP */
9954 /* OTP: 64B total; read 0x4B, write 0x42 */
9955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9956 .tested = TEST_UNTESTED,
9957 .probe = probe_spi_rdid,
9958 .probe_timing = TIMING_ZERO,
9959 .block_erasers =
9960 {
9961 {
9962 .eraseblocks = { {4 * 1024, 1024} },
9963 .block_erase = spi_block_erase_20,
9964 }, {
9965 .eraseblocks = { {64 * 1024, 64} },
9966 .block_erase = spi_block_erase_d8,
9967 }, {
9968 .eraseblocks = { {4 * 1024 * 1024, 1} },
9969 .block_erase = spi_block_erase_c7,
9970 }
9971 },
9972 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9973 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9974 .write = spi_chip_write_256, /* Multi I/O supported */
9975 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9976 .voltage = {1700, 2000},
9977 },
9978
9979 {
9980 .vendor = "Micron/Numonyx/ST",
9981 .name = "N25Q032..3E",
9982 .bustype = BUS_SPI,
9983 .manufacture_id = ST_ID,
9984 .model_id = ST_N25Q032__3E,
9985 .total_size = 4096,
9986 .page_size = 256,
9987 /* supports SFDP */
9988 /* OTP: 64B total; read 0x4B, write 0x42 */
9989 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9990 .tested = TEST_OK_PREW,
9991 .probe = probe_spi_rdid,
9992 .probe_timing = TIMING_ZERO,
9993 .block_erasers =
9994 {
9995 {
9996 .eraseblocks = { {4 * 1024, 1024} },
9997 .block_erase = spi_block_erase_20,
9998 }, {
9999 .eraseblocks = { {64 * 1024, 64} },
10000 .block_erase = spi_block_erase_d8,
10001 }, {
10002 .eraseblocks = { {4 * 1024 * 1024, 1} },
10003 .block_erase = spi_block_erase_c7,
10004 }
10005 },
10006 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10007 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10008 .write = spi_chip_write_256, /* Multi I/O supported */
10009 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10010 .voltage = {2700, 3600},
10011 },
10012
10013 {
10014 .vendor = "Micron/Numonyx/ST",
10015 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10016 .bustype = BUS_SPI,
10017 .manufacture_id = ST_ID,
10018 .model_id = ST_N25Q064__1E,
10019 .total_size = 8192,
10020 .page_size = 256,
10021 /* supports SFDP */
10022 /* OTP: 64B total; read 0x4B, write 0x42 */
10023 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010024 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010025 .probe = probe_spi_rdid,
10026 .probe_timing = TIMING_ZERO,
10027 .block_erasers =
10028 {
10029 {
10030 .eraseblocks = { {4 * 1024, 2048 } },
10031 .block_erase = spi_block_erase_20,
10032 }, {
10033 .eraseblocks = { {64 * 1024, 128} },
10034 .block_erase = spi_block_erase_d8,
10035 }, {
10036 .eraseblocks = { {8 * 1024 * 1024, 1} },
10037 .block_erase = spi_block_erase_c7,
10038 }
10039 },
10040 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10041 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10042 .write = spi_chip_write_256, /* Multi I/O supported */
10043 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10044 .voltage = {1700, 2000},
10045 },
10046
10047 {
10048 .vendor = "Micron/Numonyx/ST",
10049 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10050 .bustype = BUS_SPI,
10051 .manufacture_id = ST_ID,
10052 .model_id = ST_N25Q064__3E,
10053 .total_size = 8192,
10054 .page_size = 256,
10055 /* supports SFDP */
10056 /* OTP: 64B total; read 0x4B, write 0x42 */
10057 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10058 .tested = TEST_OK_PREW,
10059 .probe = probe_spi_rdid,
10060 .probe_timing = TIMING_ZERO,
10061 .block_erasers =
10062 {
10063 {
10064 .eraseblocks = { {4 * 1024, 2048 } },
10065 .block_erase = spi_block_erase_20,
10066 }, {
10067 .eraseblocks = { {64 * 1024, 128} },
10068 .block_erase = spi_block_erase_d8,
10069 }, {
10070 .eraseblocks = { {8 * 1024 * 1024, 1} },
10071 .block_erase = spi_block_erase_c7,
10072 }
10073 },
10074 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10075 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10076 .write = spi_chip_write_256, /* Multi I/O supported */
10077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10078 .voltage = {2700, 3600},
10079 },
10080
10081 {
10082 .vendor = "Micron/Numonyx/ST",
10083 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10084 .bustype = BUS_SPI,
10085 .manufacture_id = ST_ID,
10086 .model_id = ST_N25Q128__1E,
10087 .total_size = 16384,
10088 .page_size = 256,
10089 /* supports SFDP */
10090 /* OTP: 64B total; read 0x4B, write 0x42 */
10091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010092 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010093 .probe = probe_spi_rdid,
10094 .probe_timing = TIMING_ZERO,
10095 .block_erasers = {
10096 {
10097 .eraseblocks = { {4 * 1024, 4096 } },
10098 .block_erase = spi_block_erase_20,
10099 }, {
10100 .eraseblocks = { {64 * 1024, 256} },
10101 .block_erase = spi_block_erase_d8,
10102 }, {
10103 .eraseblocks = { {16384 * 1024, 1} },
10104 .block_erase = spi_block_erase_c7,
10105 }
10106 },
10107 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10108 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10109 .write = spi_chip_write_256, /* Multi I/O supported */
10110 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10111 .voltage = {1700, 2000},
10112 },
10113
10114 {
10115 .vendor = "Micron/Numonyx/ST",
10116 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10117 .bustype = BUS_SPI,
10118 .manufacture_id = ST_ID,
10119 .model_id = ST_N25Q128__3E,
10120 .total_size = 16384,
10121 .page_size = 256,
10122 /* supports SFDP */
10123 /* OTP: 64B total; read 0x4B, write 0x42 */
10124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10125 .tested = TEST_OK_PREW,
10126 .probe = probe_spi_rdid,
10127 .probe_timing = TIMING_ZERO,
10128 .block_erasers = {
10129 {
10130 .eraseblocks = { {4 * 1024, 4096 } },
10131 .block_erase = spi_block_erase_20,
10132 }, {
10133 .eraseblocks = { {64 * 1024, 256} },
10134 .block_erase = spi_block_erase_d8,
10135 }, {
10136 .eraseblocks = { {16384 * 1024, 1} },
10137 .block_erase = spi_block_erase_c7,
10138 }
10139 },
10140 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10141 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10142 .write = spi_chip_write_256, /* Multi I/O supported */
10143 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10144 .voltage = {2700, 3600},
10145 },
10146
10147 {
Ed Swierk199ab392017-07-03 13:33:44 -070010148 .vendor = "Micron",
10149 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10150 .bustype = BUS_SPI,
10151 .manufacture_id = ST_ID,
10152 .model_id = ST_N25Q256__3E,
10153 .total_size = 32768,
10154 .page_size = 256,
10155 /* supports SFDP */
10156 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10158 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010159 .probe = probe_spi_rdid,
10160 .probe_timing = TIMING_ZERO,
10161 .block_erasers = {
10162 {
10163 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010164 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010165 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010166 .eraseblocks = { {4 * 1024, 8192} },
10167 .block_erase = spi_block_erase_20,
10168 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010169 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010170 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010171 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010172 .eraseblocks = { {64 * 1024, 512} },
10173 .block_erase = spi_block_erase_d8,
10174 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010175 .eraseblocks = { {32768 * 1024, 1} },
10176 .block_erase = spi_block_erase_c7,
10177 }
10178 },
10179 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10180 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10181 .write = spi_chip_write_256, /* Multi I/O supported */
10182 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10183 .voltage = {2700, 3600},
10184 },
10185
10186 {
10187 .vendor = "Micron",
10188 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
10189 .bustype = BUS_SPI,
10190 .manufacture_id = ST_ID,
10191 .model_id = ST_N25Q512__3E,
10192 .total_size = 65536,
10193 .page_size = 256,
10194 /* supports SFDP */
10195 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010196 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10197 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010198 .probe = probe_spi_rdid,
10199 .probe_timing = TIMING_ZERO,
10200 .block_erasers = {
10201 {
10202 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010203 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010204 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010205 .eraseblocks = { {4 * 1024, 16384} },
10206 .block_erase = spi_block_erase_20,
10207 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010208 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010209 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010210 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010211 .eraseblocks = { {64 * 1024, 1024} },
10212 .block_erase = spi_block_erase_d8,
10213 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010214 .eraseblocks = { {65536 * 1024, 1} },
10215 .block_erase = spi_block_erase_c7,
10216 }
10217 },
10218 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10219 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10220 .write = spi_chip_write_256, /* Multi I/O supported */
10221 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10222 .voltage = {2700, 3600},
10223 },
10224
10225 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010226 .vendor = "MoselVitelic",
10227 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010228 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010229 .manufacture_id = SYNCMOS_MVC_ID,
10230 .model_id = MVC_V29C51000B,
10231 .total_size = 64,
10232 .page_size = 512,
10233 .feature_bits = FEATURE_EITHER_RESET,
10234 .tested = TEST_UNTESTED,
10235 .probe = probe_jedec,
10236 .probe_timing = TIMING_ZERO,
10237 .block_erasers =
10238 {
10239 {
10240 .eraseblocks = { {512, 128} },
10241 .block_erase = erase_sector_jedec,
10242 }, {
10243 .eraseblocks = { {64 * 1024, 1} },
10244 .block_erase = erase_chip_block_jedec,
10245 },
10246 },
10247 .write = write_jedec_1,
10248 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010249 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010250 },
10251
10252 {
10253 .vendor = "MoselVitelic",
10254 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010255 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010256 .manufacture_id = SYNCMOS_MVC_ID,
10257 .model_id = MVC_V29C51000T,
10258 .total_size = 64,
10259 .page_size = 512,
10260 .feature_bits = FEATURE_EITHER_RESET,
10261 .tested = TEST_UNTESTED,
10262 .probe = probe_jedec,
10263 .probe_timing = TIMING_ZERO,
10264 .block_erasers =
10265 {
10266 {
10267 .eraseblocks = { {512, 128} },
10268 .block_erase = erase_sector_jedec,
10269 }, {
10270 .eraseblocks = { {64 * 1024, 1} },
10271 .block_erase = erase_chip_block_jedec,
10272 },
10273 },
10274 .write = write_jedec_1,
10275 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010276 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010277 },
10278
10279 {
10280 .vendor = "MoselVitelic",
10281 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010282 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010283 .manufacture_id = SYNCMOS_MVC_ID,
10284 .model_id = MVC_V29C51400B,
10285 .total_size = 512,
10286 .page_size = 1024,
10287 .feature_bits = FEATURE_EITHER_RESET,
10288 .tested = TEST_UNTESTED,
10289 .probe = probe_jedec,
10290 .probe_timing = TIMING_ZERO,
10291 .block_erasers =
10292 {
10293 {
10294 .eraseblocks = { {1024, 512} },
10295 .block_erase = erase_sector_jedec,
10296 }, {
10297 .eraseblocks = { {512 * 1024, 1} },
10298 .block_erase = erase_chip_block_jedec,
10299 },
10300 },
10301 .write = write_jedec_1,
10302 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010303 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010304 },
10305
10306 {
10307 .vendor = "MoselVitelic",
10308 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010309 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010310 .manufacture_id = SYNCMOS_MVC_ID,
10311 .model_id = MVC_V29C51400T,
10312 .total_size = 512,
10313 .page_size = 1024,
10314 .feature_bits = FEATURE_EITHER_RESET,
10315 .tested = TEST_UNTESTED,
10316 .probe = probe_jedec,
10317 .probe_timing = TIMING_ZERO,
10318 .block_erasers =
10319 {
10320 {
10321 .eraseblocks = { {1024, 512} },
10322 .block_erase = erase_sector_jedec,
10323 }, {
10324 .eraseblocks = { {512 * 1024, 1} },
10325 .block_erase = erase_chip_block_jedec,
10326 },
10327 },
10328 .write = write_jedec_1,
10329 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010330 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010331 },
10332
10333 {
10334 .vendor = "MoselVitelic",
10335 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010336 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010337 .manufacture_id = SYNCMOS_MVC_ID,
10338 .model_id = MVC_V29LC51000,
10339 .total_size = 64,
10340 .page_size = 512,
10341 .feature_bits = FEATURE_EITHER_RESET,
10342 .tested = TEST_UNTESTED,
10343 .probe = probe_jedec,
10344 .probe_timing = TIMING_ZERO,
10345 .block_erasers =
10346 {
10347 {
10348 .eraseblocks = { {512, 128} },
10349 .block_erase = erase_sector_jedec,
10350 }, {
10351 .eraseblocks = { {64 * 1024, 1} },
10352 .block_erase = erase_chip_block_jedec,
10353 },
10354 },
10355 .write = write_jedec_1,
10356 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010357 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010358 },
10359
10360 {
10361 .vendor = "MoselVitelic",
10362 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010363 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010364 .manufacture_id = SYNCMOS_MVC_ID,
10365 .model_id = MVC_V29LC51001,
10366 .total_size = 128,
10367 .page_size = 512,
10368 .feature_bits = FEATURE_EITHER_RESET,
10369 .tested = TEST_UNTESTED,
10370 .probe = probe_jedec,
10371 .probe_timing = TIMING_ZERO,
10372 .block_erasers =
10373 {
10374 {
10375 .eraseblocks = { {512, 256} },
10376 .block_erase = erase_sector_jedec,
10377 }, {
10378 .eraseblocks = { {128 * 1024, 1} },
10379 .block_erase = erase_chip_block_jedec,
10380 },
10381 },
10382 .write = write_jedec_1,
10383 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010384 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010385 },
10386
10387 {
10388 .vendor = "MoselVitelic",
10389 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010390 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010391 .manufacture_id = SYNCMOS_MVC_ID,
10392 .model_id = MVC_V29LC51002,
10393 .total_size = 256,
10394 .page_size = 512,
10395 .feature_bits = FEATURE_EITHER_RESET,
10396 .tested = TEST_UNTESTED,
10397 .probe = probe_jedec,
10398 .probe_timing = TIMING_ZERO,
10399 .block_erasers =
10400 {
10401 {
10402 .eraseblocks = { {512, 512} },
10403 .block_erase = erase_sector_jedec,
10404 }, {
10405 .eraseblocks = { {256 * 1024, 1} },
10406 .block_erase = erase_chip_block_jedec,
10407 },
10408 },
10409 .write = write_jedec_1,
10410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010411 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010412 },
10413
10414 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010415 .vendor = "Nantronics",
10416 .name = "N25S10",
10417 .bustype = BUS_SPI,
10418 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10419 .model_id = NANTRONICS_N25S10,
10420 .total_size = 128,
10421 .page_size = 256,
10422 .feature_bits = FEATURE_WRSR_WREN,
10423 .tested = TEST_UNTESTED,
10424 .probe = probe_spi_rdid,
10425 .probe_timing = TIMING_ZERO,
10426 .block_erasers =
10427 {
10428 {
10429 .eraseblocks = { {4 * 1024, 32} },
10430 .block_erase = spi_block_erase_20,
10431 }, {
10432 .eraseblocks = { {4 * 1024, 32} },
10433 .block_erase = spi_block_erase_d7,
10434 }, {
10435 .eraseblocks = { {32 * 1024, 4} },
10436 .block_erase = spi_block_erase_52,
10437 }, {
10438 .eraseblocks = { {64 * 1024, 2} },
10439 .block_erase = spi_block_erase_d8,
10440 }, {
10441 .eraseblocks = { {128 * 1024, 1} },
10442 .block_erase = spi_block_erase_60,
10443 }, {
10444 .eraseblocks = { {128 * 1024, 1} },
10445 .block_erase = spi_block_erase_c7,
10446 }
10447 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010448 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010449 .unlock = spi_disable_blockprotect_bp3_srwd,
10450 .write = spi_chip_write_256,
10451 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10452 .voltage = {2700, 3600},
10453 },
10454
10455 {
10456 .vendor = "Nantronics",
10457 .name = "N25S20",
10458 .bustype = BUS_SPI,
10459 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10460 .model_id = NANTRONICS_N25S20,
10461 .total_size = 256,
10462 .page_size = 256,
10463 .feature_bits = FEATURE_WRSR_WREN,
10464 .tested = TEST_UNTESTED,
10465 .probe = probe_spi_rdid,
10466 .probe_timing = TIMING_ZERO,
10467 .block_erasers =
10468 {
10469 {
10470 .eraseblocks = { {4 * 1024, 64} },
10471 .block_erase = spi_block_erase_20,
10472 }, {
10473 .eraseblocks = { {4 * 1024, 64} },
10474 .block_erase = spi_block_erase_d7,
10475 }, {
10476 .eraseblocks = { {32 * 1024, 8} },
10477 .block_erase = spi_block_erase_52,
10478 }, {
10479 .eraseblocks = { {64 * 1024, 4} },
10480 .block_erase = spi_block_erase_d8,
10481 }, {
10482 .eraseblocks = { {256 * 1024, 1} },
10483 .block_erase = spi_block_erase_60,
10484 }, {
10485 .eraseblocks = { {256 * 1024, 1} },
10486 .block_erase = spi_block_erase_c7,
10487 }
10488 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010489 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010490 .unlock = spi_disable_blockprotect_bp3_srwd,
10491 .write = spi_chip_write_256,
10492 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10493 .voltage = {2700, 3600},
10494 },
10495
10496 {
10497 .vendor = "Nantronics",
10498 .name = "N25S40",
10499 .bustype = BUS_SPI,
10500 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10501 .model_id = NANTRONICS_N25S40,
10502 .total_size = 512,
10503 .page_size = 256,
10504 .feature_bits = FEATURE_WRSR_WREN,
10505 .tested = TEST_UNTESTED,
10506 .probe = probe_spi_rdid,
10507 .probe_timing = TIMING_ZERO,
10508 .block_erasers =
10509 {
10510 {
10511 .eraseblocks = { {4 * 1024, 128} },
10512 .block_erase = spi_block_erase_20,
10513 }, {
10514 .eraseblocks = { {4 * 1024, 128} },
10515 .block_erase = spi_block_erase_d7,
10516 }, {
10517 .eraseblocks = { {32 * 1024, 16} },
10518 .block_erase = spi_block_erase_52,
10519 }, {
10520 .eraseblocks = { {64 * 1024, 8} },
10521 .block_erase = spi_block_erase_d8,
10522 }, {
10523 .eraseblocks = { {512 * 1024, 1} },
10524 .block_erase = spi_block_erase_60,
10525 }, {
10526 .eraseblocks = { {512 * 1024, 1} },
10527 .block_erase = spi_block_erase_c7,
10528 }
10529 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010530 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010531 .unlock = spi_disable_blockprotect_bp3_srwd,
10532 .write = spi_chip_write_256,
10533 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10534 .voltage = {2700, 3600},
10535 },
10536
10537 {
10538 .vendor = "Nantronics",
10539 .name = "N25S80",
10540 .bustype = BUS_SPI,
10541 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10542 .model_id = NANTRONICS_N25S80,
10543 .total_size = 1024,
10544 .page_size = 256,
10545 .feature_bits = FEATURE_WRSR_WREN,
10546 .tested = TEST_UNTESTED,
10547 .probe = probe_spi_rdid,
10548 .probe_timing = TIMING_ZERO,
10549 .block_erasers =
10550 {
10551 {
10552 .eraseblocks = { {4 * 1024, 256} },
10553 .block_erase = spi_block_erase_20,
10554 }, {
10555 .eraseblocks = { {32 * 1024, 32} },
10556 .block_erase = spi_block_erase_52,
10557 }, {
10558 .eraseblocks = { {64 * 1024, 16} },
10559 .block_erase = spi_block_erase_d8,
10560 }, {
10561 .eraseblocks = { {1024 * 1024, 1} },
10562 .block_erase = spi_block_erase_60,
10563 }, {
10564 .eraseblocks = { {1024 * 1024, 1} },
10565 .block_erase = spi_block_erase_c7,
10566 }
10567 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010568 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010569 .unlock = spi_disable_blockprotect_bp3_srwd,
10570 .write = spi_chip_write_256,
10571 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10572 .voltage = {2700, 3600},
10573 },
10574
10575 {
10576 .vendor = "Nantronics",
10577 .name = "N25S16",
10578 .bustype = BUS_SPI,
10579 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10580 .model_id = NANTRONICS_N25S16,
10581 .total_size = 2048,
10582 .page_size = 256,
10583 .feature_bits = FEATURE_WRSR_WREN,
10584 .tested = TEST_UNTESTED,
10585 .probe = probe_spi_rdid,
10586 .probe_timing = TIMING_ZERO,
10587 .block_erasers =
10588 {
10589 {
10590 .eraseblocks = { {4 * 1024, 512} },
10591 .block_erase = spi_block_erase_20,
10592 }, {
10593 .eraseblocks = { {64 * 1024, 32} },
10594 .block_erase = spi_block_erase_d8,
10595 }, {
10596 .eraseblocks = { {2048 * 1024, 1} },
10597 .block_erase = spi_block_erase_60,
10598 }, {
10599 .eraseblocks = { {2048 * 1024, 1} },
10600 .block_erase = spi_block_erase_c7,
10601 }
10602 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010603 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010604 .unlock = spi_disable_blockprotect_bp3_srwd,
10605 .write = spi_chip_write_256,
10606 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10607 .voltage = {2700, 3600},
10608 },
10609
10610 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010611 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010612 .name = "Pm25LD256C",
10613 .bustype = BUS_SPI,
10614 .manufacture_id = PMC_ID,
10615 .model_id = PMC_PM25LD256C,
10616 .total_size = 32,
10617 .page_size = 256,
10618 .feature_bits = FEATURE_WRSR_WREN,
10619 .tested = TEST_UNTESTED,
10620 .probe = probe_spi_rdid,
10621 .probe_timing = TIMING_ZERO,
10622 .block_erasers =
10623 {
10624 {
10625 .eraseblocks = { {4 * 1024, 8} },
10626 .block_erase = spi_block_erase_20,
10627 }, {
10628 .eraseblocks = { {4 * 1024, 8} },
10629 .block_erase = spi_block_erase_d7,
10630 }, {
10631 .eraseblocks = { {32 * 1024, 1} },
10632 .block_erase = spi_block_erase_d8,
10633 }, {
10634 .eraseblocks = { {32 * 1024, 1} },
10635 .block_erase = spi_block_erase_60,
10636 }, {
10637 .eraseblocks = { {32 * 1024, 1} },
10638 .block_erase = spi_block_erase_c7,
10639 }
10640 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010641 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010642 .unlock = spi_disable_blockprotect,
10643 .write = spi_chip_write_256,
10644 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10645 .voltage = {2700, 3600},
10646 },
10647 {
10648 .vendor = "PMC",
10649 .name = "Pm25LD512(C)",
10650 .bustype = BUS_SPI,
10651 .manufacture_id = PMC_ID,
10652 .model_id = PMC_PM25LD512,
10653 .total_size = 64,
10654 .page_size = 256,
10655 .feature_bits = FEATURE_WRSR_WREN,
10656 .tested = TEST_OK_PREW,
10657 .probe = probe_spi_rdid,
10658 .probe_timing = TIMING_ZERO,
10659 .block_erasers =
10660 {
10661 {
10662 .eraseblocks = { {4 * 1024, 16} },
10663 .block_erase = spi_block_erase_20,
10664 }, {
10665 .eraseblocks = { {4 * 1024, 16} },
10666 .block_erase = spi_block_erase_d7,
10667 }, {
10668 .eraseblocks = { {32 * 1024, 2} },
10669 .block_erase = spi_block_erase_d8,
10670 }, {
10671 .eraseblocks = { {64 * 1024, 1} },
10672 .block_erase = spi_block_erase_60,
10673 }, {
10674 .eraseblocks = { {64 * 1024, 1} },
10675 .block_erase = spi_block_erase_c7,
10676 }
10677 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010678 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010679 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10680 .write = spi_chip_write_256,
10681 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10682 .voltage = {2300, 3600},
10683 },
10684
10685 {
10686 .vendor = "PMC",
10687 .name = "Pm25LD010(C)",
10688 .bustype = BUS_SPI,
10689 .manufacture_id = PMC_ID,
10690 .model_id = PMC_PM25LD010,
10691 .total_size = 128,
10692 .page_size = 256,
10693 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010694 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010695 .probe = probe_spi_rdid,
10696 .probe_timing = TIMING_ZERO,
10697 .block_erasers =
10698 {
10699 {
10700 .eraseblocks = { {4 * 1024, 32} },
10701 .block_erase = spi_block_erase_20,
10702 }, {
10703 .eraseblocks = { {4 * 1024, 32} },
10704 .block_erase = spi_block_erase_d7,
10705 }, {
10706 .eraseblocks = { {32 * 1024, 4} },
10707 .block_erase = spi_block_erase_d8,
10708 }, {
10709 .eraseblocks = { {128 * 1024, 1} },
10710 .block_erase = spi_block_erase_60,
10711 }, {
10712 .eraseblocks = { {128 * 1024, 1} },
10713 .block_erase = spi_block_erase_c7,
10714 }
10715 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010716 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010717 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10718 .write = spi_chip_write_256,
10719 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10720 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10721 },
10722
10723 {
10724 .vendor = "PMC",
10725 .name = "Pm25LD020(C)",
10726 .bustype = BUS_SPI,
10727 .manufacture_id = PMC_ID,
10728 .model_id = PMC_PM25LD020,
10729 .total_size = 256,
10730 .page_size = 256,
10731 .feature_bits = FEATURE_WRSR_WREN,
10732 .tested = TEST_UNTESTED,
10733 .probe = probe_spi_rdid,
10734 .probe_timing = TIMING_ZERO,
10735 .block_erasers =
10736 {
10737 {
10738 .eraseblocks = { {4 * 1024, 64} },
10739 .block_erase = spi_block_erase_20,
10740 }, {
10741 .eraseblocks = { {4 * 1024, 64} },
10742 .block_erase = spi_block_erase_d7,
10743 }, {
10744 .eraseblocks = { {64 * 1024, 4} },
10745 .block_erase = spi_block_erase_d8,
10746 }, {
10747 .eraseblocks = { {256 * 1024, 1} },
10748 .block_erase = spi_block_erase_60,
10749 }, {
10750 .eraseblocks = { {256 * 1024, 1} },
10751 .block_erase = spi_block_erase_c7,
10752 }
10753 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010754 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010755 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10756 .write = spi_chip_write_256,
10757 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10758 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
10759 },
10760
10761 {
10762 .vendor = "PMC",
10763 .name = "Pm25LD040(C)",
10764 .bustype = BUS_SPI,
10765 .manufacture_id = PMC_ID,
10766 .model_id = PMC_PM25LV040,
10767 .total_size = 512,
10768 .page_size = 256,
10769 .feature_bits = FEATURE_WRSR_WREN,
10770 .tested = TEST_UNTESTED,
10771 .probe = probe_spi_rdid,
10772 .probe_timing = TIMING_ZERO,
10773 .block_erasers =
10774 {
10775 {
10776 .eraseblocks = { {4 * 1024, 128} },
10777 .block_erase = spi_block_erase_20,
10778 }, {
10779 .eraseblocks = { {4 * 1024, 128} },
10780 .block_erase = spi_block_erase_d7,
10781 }, {
10782 .eraseblocks = { {64 * 1024, 8} },
10783 .block_erase = spi_block_erase_d8,
10784 }, {
10785 .eraseblocks = { {512 * 1024, 1} },
10786 .block_erase = spi_block_erase_60,
10787 }, {
10788 .eraseblocks = { {512 * 1024, 1} },
10789 .block_erase = spi_block_erase_c7,
10790 }
10791 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010792 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010793 .unlock = spi_disable_blockprotect,
10794 .write = spi_chip_write_256,
10795 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10796 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10797 },
10798
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010799 {
10800 .vendor = "PMC",
10801 .name = "Pm25LQ020",
10802 .bustype = BUS_SPI,
10803 .manufacture_id = PMC_ID,
10804 .model_id = PMC_PM25LQ020,
10805 .total_size = 256,
10806 .page_size = 256,
10807 /* OTP: 256B total; read 0x4B, write 0xB1 */
10808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10809 .tested = TEST_UNTESTED,
10810 .probe = probe_spi_rdid,
10811 .probe_timing = TIMING_ZERO,
10812 .block_erasers =
10813 {
10814 {
10815 .eraseblocks = { {4 * 1024, 64} },
10816 .block_erase = spi_block_erase_20,
10817 }, {
10818 .eraseblocks = { {4 * 1024, 64} },
10819 .block_erase = spi_block_erase_d7,
10820 }, {
10821 .eraseblocks = { {64 * 1024, 4} },
10822 .block_erase = spi_block_erase_d8,
10823 }, {
10824 .eraseblocks = { {256 * 1024, 1} },
10825 .block_erase = spi_block_erase_60,
10826 }, {
10827 .eraseblocks = { {256 * 1024, 1} },
10828 .block_erase = spi_block_erase_c7,
10829 }
10830 },
10831 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10832 .unlock = spi_disable_blockprotect_bp3_srwd,
10833 .write = spi_chip_write_256,
10834 .read = spi_chip_read,
10835 .voltage = {2300, 3600},
10836 },
10837
10838 {
10839 .vendor = "PMC",
10840 .name = "Pm25LQ040",
10841 .bustype = BUS_SPI,
10842 .manufacture_id = PMC_ID,
10843 .model_id = PMC_PM25LQ040,
10844 .total_size = 512,
10845 .page_size = 256,
10846 /* OTP: 256B total; read 0x4B, write 0xB1 */
10847 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10848 .tested = TEST_UNTESTED,
10849 .probe = probe_spi_rdid,
10850 .probe_timing = TIMING_ZERO,
10851 .block_erasers =
10852 {
10853 {
10854 .eraseblocks = { {4 * 1024, 128} },
10855 .block_erase = spi_block_erase_20,
10856 }, {
10857 .eraseblocks = { {4 * 1024, 128} },
10858 .block_erase = spi_block_erase_d7,
10859 }, {
10860 .eraseblocks = { {64 * 1024, 8} },
10861 .block_erase = spi_block_erase_d8,
10862 }, {
10863 .eraseblocks = { {512 * 1024, 1} },
10864 .block_erase = spi_block_erase_60,
10865 }, {
10866 .eraseblocks = { {512 * 1024, 1} },
10867 .block_erase = spi_block_erase_c7,
10868 }
10869 },
10870 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10871 .unlock = spi_disable_blockprotect_bp3_srwd,
10872 .write = spi_chip_write_256,
10873 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10874 .voltage = {2300, 3600},
10875 },
10876
10877 {
10878 .vendor = "PMC",
10879 .name = "Pm25LQ080",
10880 .bustype = BUS_SPI,
10881 .manufacture_id = PMC_ID,
10882 .model_id = PMC_PM25LQ080,
10883 .total_size = 1024,
10884 .page_size = 256,
10885 /* OTP: 64B total; read 0x4B, write 0xB1 */
10886 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10887 .tested = TEST_UNTESTED,
10888 .probe = probe_spi_rdid,
10889 .probe_timing = TIMING_ZERO,
10890 .block_erasers =
10891 {
10892 {
10893 .eraseblocks = { {4 * 1024, 256} },
10894 .block_erase = spi_block_erase_20,
10895 }, {
10896 .eraseblocks = { {4 * 1024, 256} },
10897 .block_erase = spi_block_erase_d7,
10898 }, {
10899 .eraseblocks = { {64 * 1024, 16} },
10900 .block_erase = spi_block_erase_d8,
10901 }, {
10902 .eraseblocks = { {1024 * 1024, 1} },
10903 .block_erase = spi_block_erase_60,
10904 }, {
10905 .eraseblocks = { {1024 * 1024, 1} },
10906 .block_erase = spi_block_erase_c7,
10907 }
10908 },
10909 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10910 .unlock = spi_disable_blockprotect_bp3_srwd,
10911 .write = spi_chip_write_256,
10912 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10913 .voltage = {2300, 3600},
10914 },
10915
10916 {
10917 .vendor = "PMC",
10918 .name = "Pm25LQ016",
10919 .bustype = BUS_SPI,
10920 .manufacture_id = PMC_ID,
10921 .model_id = PMC_PM25LQ016,
10922 .total_size = 2048,
10923 .page_size = 256,
10924 /* OTP: 256B total; read 0x4B, write 0xB1 */
10925 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10926 .tested = TEST_UNTESTED,
10927 .probe = probe_spi_rdid,
10928 .probe_timing = TIMING_ZERO,
10929 .block_erasers =
10930 {
10931 {
10932 .eraseblocks = { {4 * 1024, 512} },
10933 .block_erase = spi_block_erase_20,
10934 }, {
10935 .eraseblocks = { {4 * 1024, 512} },
10936 .block_erase = spi_block_erase_d7,
10937 }, {
10938 .eraseblocks = { {64 * 1024, 32} },
10939 .block_erase = spi_block_erase_d8,
10940 }, {
10941 .eraseblocks = { {2048 * 1024, 1} },
10942 .block_erase = spi_block_erase_60,
10943 }, {
10944 .eraseblocks = { {2048 * 1024, 1} },
10945 .block_erase = spi_block_erase_c7,
10946 }
10947 },
10948 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10949 .unlock = spi_disable_blockprotect_bp3_srwd,
10950 .write = spi_chip_write_256,
10951 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10952 .voltage = {2300, 3600},
10953 },
10954
10955 {
10956 .vendor = "PMC",
10957 .name = "Pm25LQ032C",
10958 .bustype = BUS_SPI,
10959 .manufacture_id = PMC_ID,
10960 .model_id = PMC_PM25LQ032C,
10961 .total_size = 4096,
10962 .page_size = 256,
10963 /* OTP: 64B total; read 0x4B, write 0xB1 */
10964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010965 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010966 .probe = probe_spi_rdid,
10967 .probe_timing = TIMING_ZERO,
10968 .block_erasers =
10969 {
10970 {
10971 .eraseblocks = { {4 * 1024, 1024} },
10972 .block_erase = spi_block_erase_20,
10973 }, {
10974 .eraseblocks = { {4 * 1024, 1024} },
10975 .block_erase = spi_block_erase_d7,
10976 }, {
10977 .eraseblocks = { {64 * 1024, 64} },
10978 .block_erase = spi_block_erase_d8,
10979 }, {
10980 .eraseblocks = { {4096 * 1024, 1} },
10981 .block_erase = spi_block_erase_60,
10982 }, {
10983 .eraseblocks = { {4096 * 1024, 1} },
10984 .block_erase = spi_block_erase_c7,
10985 }
10986 },
10987 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10988 .unlock = spi_disable_blockprotect_bp3_srwd,
10989 .write = spi_chip_write_256,
10990 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10991 .voltage = {2700, 3600},
10992 },
10993
10994 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010995 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010996 .name = "Pm25LV512(A)",
10997 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010998 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010999 .model_id = PMC_PM25LV512,
11000 .total_size = 64,
11001 .page_size = 256,
11002 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000011003 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000011004 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011005 .probe_timing = TIMING_ZERO,
11006 .block_erasers =
11007 {
11008 {
11009 .eraseblocks = { {4 * 1024, 16} },
11010 .block_erase = spi_block_erase_d7,
11011 }, {
11012 .eraseblocks = { {32 * 1024, 2} },
11013 .block_erase = spi_block_erase_d8,
11014 }, {
11015 .eraseblocks = { {64 * 1024, 1} },
11016 .block_erase = spi_block_erase_c7,
11017 }
11018 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011019 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011020 .unlock = spi_disable_blockprotect,
11021 .write = spi_chip_write_256,
11022 .read = spi_chip_read, /* Fast read (0x0B) supported */
11023 .voltage = {2700, 3600},
11024 },
11025
11026 {
11027 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011028 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011029 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011030 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011031 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011032 .total_size = 128,
11033 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011034 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000011035 .tested = TEST_OK_PREW,
11036 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011037 .probe_timing = TIMING_ZERO,
11038 .block_erasers =
11039 {
11040 {
11041 .eraseblocks = { {4 * 1024, 32} },
11042 .block_erase = spi_block_erase_d7,
11043 }, {
11044 .eraseblocks = { {32 * 1024, 4} },
11045 .block_erase = spi_block_erase_d8,
11046 }, {
11047 .eraseblocks = { {128 * 1024, 1} },
11048 .block_erase = spi_block_erase_c7,
11049 }
11050 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011051 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011052 .unlock = spi_disable_blockprotect,
11053 .write = spi_chip_write_256,
11054 .read = spi_chip_read, /* Fast read (0x0B) supported */
11055 .voltage = {2700, 3600},
11056 },
11057
11058 {
11059 .vendor = "PMC",
11060 .name = "Pm25LV010A",
11061 .bustype = BUS_SPI,
11062 .manufacture_id = PMC_ID,
11063 .model_id = PMC_PM25LV010,
11064 .total_size = 128,
11065 .page_size = 256,
11066 .feature_bits = FEATURE_WRSR_WREN,
11067 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011068 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011069 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011070 .block_erasers =
11071 {
11072 {
11073 .eraseblocks = { {4 * 1024, 32} },
11074 .block_erase = spi_block_erase_d7,
11075 }, {
11076 .eraseblocks = { {32 * 1024, 4} },
11077 .block_erase = spi_block_erase_d8,
11078 }, {
11079 .eraseblocks = { {128 * 1024, 1} },
11080 .block_erase = spi_block_erase_c7,
11081 }
11082 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011083 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011084 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011085 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011086 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011087 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011088 },
11089
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011090 {
11091 .vendor = "PMC",
11092 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011093 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011094 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011095 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011096 .total_size = 256,
11097 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011098 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011099 .tested = TEST_UNTESTED,
11100 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011101 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011102 .block_erasers =
11103 {
11104 {
11105 .eraseblocks = { {4 * 1024, 64} },
11106 .block_erase = spi_block_erase_d7,
11107 }, {
11108 .eraseblocks = { {64 * 1024, 4} },
11109 .block_erase = spi_block_erase_d8,
11110 }, {
11111 .eraseblocks = { {256 * 1024, 1} },
11112 .block_erase = spi_block_erase_c7,
11113 }
11114 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011115 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011116 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011117 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011119 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011120 },
11121
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011122 {
11123 .vendor = "PMC",
11124 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011125 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011126 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011127 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011128 .total_size = 512,
11129 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011130 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011131 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011132 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011133 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011134 .block_erasers =
11135 {
11136 {
11137 .eraseblocks = { {4 * 1024, 128} },
11138 .block_erase = spi_block_erase_d7,
11139 }, {
11140 .eraseblocks = { {64 * 1024, 8} },
11141 .block_erase = spi_block_erase_d8,
11142 }, {
11143 .eraseblocks = { {512 * 1024, 1} },
11144 .block_erase = spi_block_erase_c7,
11145 }
11146 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011147 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011148 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011149 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011150 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011151 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011152 },
11153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011154 {
11155 .vendor = "PMC",
11156 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011157 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011158 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011159 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011160 .total_size = 1024,
11161 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011162 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011163 .tested = TEST_UNTESTED,
11164 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011165 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011166 .block_erasers =
11167 {
11168 {
11169 .eraseblocks = { {4 * 1024, 256} },
11170 .block_erase = spi_block_erase_d7,
11171 }, {
11172 .eraseblocks = { {4 * 1024, 256} },
11173 .block_erase = spi_block_erase_20,
11174 }, {
11175 .eraseblocks = { {64 * 1024, 16} },
11176 .block_erase = spi_block_erase_d8,
11177 }, {
11178 .eraseblocks = { {1024 * 1024, 1} },
11179 .block_erase = spi_block_erase_60,
11180 }, {
11181 .eraseblocks = { {1024 * 1024, 1} },
11182 .block_erase = spi_block_erase_c7,
11183 }
11184 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011185 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011186 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011187 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011188 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011189 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011190 },
11191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011192 {
11193 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011194 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011195 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011196 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011197 .model_id = PMC_PM25LV016B,
11198 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011199 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011200 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011201 .tested = TEST_UNTESTED,
11202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011203 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011204 .block_erasers =
11205 {
11206 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011207 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000011208 .block_erase = spi_block_erase_d7,
11209 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011210 .eraseblocks = { {4 * 1024, 512} },
11211 .block_erase = spi_block_erase_20,
11212 }, {
11213 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000011214 .block_erase = spi_block_erase_d8,
11215 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011216 .eraseblocks = { {2 * 1024 * 1024, 1} },
11217 .block_erase = spi_block_erase_60,
11218 }, {
11219 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011220 .block_erase = spi_block_erase_c7,
11221 }
11222 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011223 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011224 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011225 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011226 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011227 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011228 },
11229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011230 {
11231 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011232 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011233 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011234 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011235 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011236 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011237 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011238 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011239 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011240 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011241 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011242 .block_erasers =
11243 {
11244 {
11245 .eraseblocks = {
11246 {128 * 1024, 1},
11247 {96 * 1024, 1},
11248 {8 * 1024, 2},
11249 {16 * 1024, 1},
11250 },
Sean Nelson35727f72010-01-28 23:55:12 +000011251 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011252 }, {
11253 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011254 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011255 },
11256 },
Sean Nelson35727f72010-01-28 23:55:12 +000011257 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011259 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011260 },
11261
11262 {
11263 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011264 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011265 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011266 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011267 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011268 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011269 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011271 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011272 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011273 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011274 .block_erasers =
11275 {
11276 {
11277 .eraseblocks = {
11278 {16 * 1024, 1},
11279 {8 * 1024, 2},
11280 {96 * 1024, 1},
11281 {128 * 1024, 1},
11282 },
Sean Nelson35727f72010-01-28 23:55:12 +000011283 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011284 }, {
11285 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011286 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011287 },
11288 },
Sean Nelson35727f72010-01-28 23:55:12 +000011289 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011291 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011292 },
11293
11294 {
11295 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011296 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011297 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011298 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011299 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011300 .total_size = 128,
11301 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011303 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011304 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011305 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011306 .block_erasers =
11307 {
11308 {
11309 .eraseblocks = { {4 * 1024, 32} },
11310 .block_erase = erase_sector_jedec,
11311 }, {
11312 .eraseblocks = { {64 * 1024, 2} },
11313 .block_erase = erase_block_jedec,
11314 }, {
11315 .eraseblocks = { {128 * 1024, 1} },
11316 .block_erase = erase_chip_block_jedec,
11317 }
11318 },
Sean Nelson35727f72010-01-28 23:55:12 +000011319 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011321 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011322 },
11323
11324 {
11325 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011326 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011327 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011328 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011329 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011330 .total_size = 256,
11331 .page_size = 4096,
11332 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11333 .tested = TEST_UNTESTED,
11334 .probe = probe_jedec,
11335 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11336 .block_erasers =
11337 {
11338 {
11339 .eraseblocks = { {4 * 1024, 64} },
11340 .block_erase = erase_sector_jedec,
11341 }, {
11342 .eraseblocks = { {64 * 1024, 4} },
11343 .block_erase = erase_block_jedec,
11344 }, {
11345 .eraseblocks = { {256 * 1024, 1} },
11346 .block_erase = erase_chip_block_jedec,
11347 }
11348 },
11349 .write = write_jedec_1,
11350 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011351 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011352 },
11353
11354 {
11355 .vendor = "PMC",
11356 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011357 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011358 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011359 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011360 .total_size = 512,
11361 .page_size = 4096,
11362 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011363 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011364 .probe = probe_jedec,
11365 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11366 .block_erasers =
11367 {
11368 {
11369 .eraseblocks = { {4 * 1024, 128} },
11370 .block_erase = erase_sector_jedec,
11371 }, {
11372 .eraseblocks = { {64 * 1024, 8} },
11373 .block_erase = erase_block_jedec,
11374 }, {
11375 .eraseblocks = { {512 * 1024, 1} },
11376 .block_erase = erase_chip_block_jedec,
11377 }
11378 },
11379 .write = write_jedec_1,
11380 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011381 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011382 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011383
11384 {
11385 .vendor = "PMC",
11386 .name = "Pm39LV512",
11387 .bustype = BUS_PARALLEL,
11388 .manufacture_id = PMC_ID_NOPREFIX,
11389 .model_id = PMC_PM39LV512,
11390 .total_size = 64,
11391 .page_size = 4096,
11392 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11393 .tested = TEST_OK_PREW,
11394 .probe = probe_jedec,
11395 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11396 .block_erasers =
11397 {
11398 {
11399 .eraseblocks = { {4 * 1024, 16} },
11400 .block_erase = erase_sector_jedec,
11401 }, {
11402 .eraseblocks = { {64 * 1024, 1} },
11403 .block_erase = erase_block_jedec,
11404 }, {
11405 .eraseblocks = { {64 * 1024, 1} },
11406 .block_erase = erase_chip_block_jedec,
11407 }
11408 },
11409 .write = write_jedec_1,
11410 .read = read_memmapped,
11411 .voltage = {2700, 3600},
11412 },
11413
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011414 {
11415 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011416 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011417 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011418 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011419 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011420 .total_size = 256,
11421 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011422 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011423 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011424 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011425 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011426 .block_erasers =
11427 {
11428 {
11429 .eraseblocks = { {4 * 1024, 64} },
11430 .block_erase = erase_sector_jedec,
11431 }, {
11432 .eraseblocks = { {16 * 1024, 16} },
11433 .block_erase = erase_block_jedec,
11434 }, {
11435 .eraseblocks = { {256 * 1024, 1} },
11436 .block_erase = erase_chip_block_jedec,
11437 }
11438 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011439 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011440 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011441 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011442 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011443 },
11444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011445 {
11446 .vendor = "PMC",
11447 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011448 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011449 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011450 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011451 .total_size = 512,
11452 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011453 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011454 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011455 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011456 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011457 .block_erasers =
11458 {
11459 {
11460 .eraseblocks = { {4 * 1024, 128} },
11461 .block_erase = erase_sector_jedec,
11462 }, {
11463 .eraseblocks = { {64 * 1024, 8} },
11464 .block_erase = erase_block_jedec,
11465 }, {
11466 .eraseblocks = { {512 * 1024, 1} },
11467 .block_erase = erase_chip_block_jedec,
11468 }
11469 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011470 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011471 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011473 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011474 },
11475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011476 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011477 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011478 .name = "LE25FW106",
11479 .bustype = BUS_SPI,
11480 .manufacture_id = SANYO_ID,
11481 .model_id = SANYO_LE25FW106,
11482 .total_size = 128,
11483 .page_size = 256,
11484 .feature_bits = FEATURE_WRSR_WREN,
11485 .tested = TEST_OK_PREW,
11486 .probe = probe_spi_res2,
11487 .probe_timing = TIMING_ZERO,
11488 .block_erasers = {
11489 {
11490 .eraseblocks = { {2 * 1024, 64} },
11491 .block_erase = spi_block_erase_d7,
11492 }, {
11493 .eraseblocks = { {32 * 1024, 4} },
11494 .block_erase = spi_block_erase_d8,
11495 }, {
11496 .eraseblocks = { {128 * 1024, 1} },
11497 .block_erase = spi_block_erase_c7,
11498 }
11499 },
11500 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11501 .unlock = spi_disable_blockprotect_bp1_srwd,
11502 .write = spi_chip_write_256,
11503 .read = spi_chip_read,
11504 .voltage = {2700, 3600},
11505 },
11506
11507 {
11508 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011509 .name = "LE25FW406A",
11510 .bustype = BUS_SPI,
11511 .manufacture_id = SANYO_ID,
11512 .model_id = SANYO_LE25FW406A,
11513 .total_size = 512,
11514 .page_size = 256,
11515 .feature_bits = FEATURE_WRSR_WREN,
11516 .tested = TEST_OK_PREW,
11517 .probe = probe_spi_res2,
11518 .probe_timing = TIMING_ZERO,
11519 .block_erasers = {
11520 {
11521 .eraseblocks = { {4 * 1024, 128} },
11522 .block_erase = spi_block_erase_d7,
11523 }, {
11524 .eraseblocks = { {64 * 1024, 8} },
11525 .block_erase = spi_block_erase_d8,
11526 }, {
11527 .eraseblocks = { {512 * 1024, 1} },
11528 .block_erase = spi_block_erase_c7,
11529 }
11530 },
11531 .printlock = spi_prettyprint_status_register_plain,
11532 .unlock = spi_disable_blockprotect,
11533 .write = spi_chip_write_256,
11534 .read = spi_chip_read,
11535 .voltage = {2700, 3600},
11536 },
11537
11538 {
11539 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011540 .name = "LE25FU406B",
11541 .bustype = BUS_SPI,
11542 .manufacture_id = SANYO_ID,
11543 .model_id = SANYO_LE25FU406B,
11544 .total_size = 512,
11545 .page_size = 256,
11546 .feature_bits = FEATURE_WRSR_WREN,
11547 .tested = TEST_OK_PREW,
11548 .probe = probe_spi_res2,
11549 .probe_timing = TIMING_ZERO,
11550 .block_erasers = {
11551 {
11552 .eraseblocks = { {4 * 1024, 128} },
11553 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011554 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011555 .eraseblocks = { {64 * 1024, 8} },
11556 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011557 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011558 .eraseblocks = { {512 * 1024, 1} },
11559 .block_erase = spi_block_erase_c7,
11560 }
11561 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011562 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011563 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11564 .write = spi_chip_write_256,
11565 .read = spi_chip_read,
11566 .voltage = {2300, 3600},
11567 },
11568
11569 {
11570 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011571 .name = "LE25FU406C/LE25U40CMC",
11572 .bustype = BUS_SPI,
11573 .manufacture_id = SANYO_ID,
11574 .model_id = SANYO_LE25FU406C,
11575 .total_size = 512,
11576 .page_size = 256,
11577 .feature_bits = FEATURE_WRSR_WREN,
11578 .tested = TEST_OK_PR,
11579 .probe = probe_spi_rdid,
11580 .probe_timing = TIMING_ZERO,
11581 .block_erasers = {
11582 {
11583 .eraseblocks = { {4 * 1024, 128} },
11584 .block_erase = spi_block_erase_20,
11585 }, {
11586 .eraseblocks = { {4 * 1024, 128} },
11587 .block_erase = spi_block_erase_d7,
11588 }, {
11589 .eraseblocks = { {64 * 1024, 8} },
11590 .block_erase = spi_block_erase_d8,
11591 }, {
11592 .eraseblocks = { {512 * 1024, 1} },
11593 .block_erase = spi_block_erase_60,
11594 }, {
11595 .eraseblocks = { {512 * 1024, 1} },
11596 .block_erase = spi_block_erase_c7,
11597 }
11598 },
11599 .printlock = spi_prettyprint_status_register_bp2_srwd,
11600 .unlock = spi_disable_blockprotect_bp2_srwd,
11601 .write = spi_chip_write_256,
11602 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11603 .voltage = {2300, 3600},
11604 },
11605
11606 {
11607 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011608 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011609 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011610 .manufacture_id = SANYO_ID,
11611 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011612 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011613 .page_size = 256,
11614 .tested = TEST_UNTESTED,
11615 .probe = probe_spi_rdid,
11616 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011617 .block_erasers =
11618 {
11619 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011620 .eraseblocks = { {256, 1024} },
11621 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011622 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011623 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011624 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011625 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011626 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011627 .block_erase = spi_block_erase_c7,
11628 }
11629 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011630 .printlock = spi_prettyprint_status_register_default_welwip,
11631 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011632 .write = spi_chip_write_256,
11633 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011634 .voltage = {2700, 3600},
11635 },
11636
11637 {
11638 .vendor = "Sanyo",
11639 .name = "LE25FW403A",
11640 .bustype = BUS_SPI,
11641 .manufacture_id = SANYO_ID,
11642 .model_id = SANYO_LE25FW403A,
11643 .total_size = 512,
11644 .page_size = 256,
11645 .tested = TEST_UNTESTED,
11646 .probe = probe_spi_rdid,
11647 .probe_timing = TIMING_ZERO,
11648 .block_erasers = {
11649 {
11650 .eraseblocks = { {256, 2 * 1024} },
11651 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011652 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011653 .eraseblocks = { {64 * 1024, 8} },
11654 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011655 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011656 .eraseblocks = { {512 * 1024, 1} },
11657 .block_erase = spi_block_erase_c7,
11658 }
11659 },
11660 .printlock = spi_prettyprint_status_register_default_welwip,
11661 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11662 .write = spi_chip_write_256,
11663 .read = spi_chip_read,
11664 .voltage = {2700, 3600},
11665 },
11666
11667 {
11668 .vendor = "Sanyo",
11669 .name = "LE25FW418A",
11670 .bustype = BUS_SPI,
11671 .manufacture_id = SANYO_ID,
11672 .model_id = SANYO_LE25FW418A,
11673 .total_size = 512,
11674 .page_size = 256,
11675 .feature_bits = FEATURE_WRSR_WREN,
11676 .tested = TEST_UNTESTED,
11677 .probe = probe_spi_res2,
11678 .probe_timing = TIMING_ZERO,
11679 .block_erasers = {
11680 {
11681 .eraseblocks = { {4 * 1024, 128} },
11682 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011683 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011684 .eraseblocks = { {64 * 1024, 8} },
11685 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011686 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011687 .eraseblocks = { {512 * 1024, 1} },
11688 .block_erase = spi_block_erase_c7,
11689 }
11690 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011691 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011692 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11693 .write = spi_chip_write_256,
11694 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11695 .voltage = {2700, 3600},
11696 },
11697
11698 {
11699 .vendor = "Sanyo",
11700 .name = "LE25FW806",
11701 .bustype = BUS_SPI,
11702 .manufacture_id = SANYO_ID,
11703 .model_id = SANYO_LE25FW806,
11704 .total_size = 1024,
11705 .page_size = 256,
11706 .feature_bits = FEATURE_WRSR_WREN,
11707 .tested = TEST_UNTESTED,
11708 .probe = probe_spi_res2,
11709 .probe_timing = TIMING_ZERO,
11710 .block_erasers = {
11711 {
11712 .eraseblocks = { {4 * 1024, 256} },
11713 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011714 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011715 .eraseblocks = { {4 * 1024, 256} },
11716 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011717 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011718 .eraseblocks = { {64 * 1024, 16} },
11719 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011720 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011721 .eraseblocks = { {1024 * 1024, 1} },
11722 .block_erase = spi_block_erase_c7,
11723 }
11724 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011725 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011726 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11727 .write = spi_chip_write_256,
11728 .read = spi_chip_read,
11729 .voltage = {2700, 3600},
11730 },
11731
11732 {
11733 .vendor = "Sanyo",
11734 .name = "LE25FW808",
11735 .bustype = BUS_SPI,
11736 .manufacture_id = SANYO_ID,
11737 .model_id = SANYO_LE25FW808,
11738 .total_size = 1024,
11739 .page_size = 256,
11740 .feature_bits = FEATURE_WRSR_WREN,
11741 .tested = TEST_UNTESTED,
11742 .probe = probe_spi_res2,
11743 .probe_timing = TIMING_ZERO,
11744 .block_erasers = {
11745 {
11746 .eraseblocks = { {8 * 1024, 128} },
11747 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011748 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011749 .eraseblocks = { {64 * 1024, 16} },
11750 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011751 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011752 .eraseblocks = { {1024 * 1024, 1} },
11753 .block_erase = spi_block_erase_c7,
11754 }
11755 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011756 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011757 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11758 .write = spi_chip_write_256,
11759 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11760 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011761 },
11762
11763 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011764 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011765 .name = "LH28F008BJT-BTLZ1",
11766 .bustype = BUS_PARALLEL,
11767 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011768 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011769 .total_size = 1024,
11770 .page_size = 64 * 1024,
11771 .tested = TEST_OK_PREW,
11772 .probe = probe_82802ab,
11773 .probe_timing = TIMING_ZERO,
11774 .block_erasers =
11775 {
11776 {
11777 .eraseblocks = {
11778 {8 * 1024, 8},
11779 {64 * 1024, 15}
11780 },
11781 .block_erase = erase_block_82802ab,
11782 }, {
11783 .eraseblocks = { {1024 * 1024, 1} },
11784 .block_erase = erase_sector_49lfxxxc,
11785 }
11786 },
11787 .unlock = unlock_lh28f008bjt,
11788 .write = write_82802ab,
11789 .read = read_memmapped,
11790 .voltage = {2700, 3600},
11791 },
11792
11793 {
11794 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011795 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011796 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011797 .manufacture_id = SHARP_ID,
11798 .model_id = SHARP_LHF00L04,
11799 .total_size = 1024,
11800 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011801 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011802 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011803 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011804 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011805 .block_erasers =
11806 {
11807 {
11808 .eraseblocks = {
11809 {64 * 1024, 15},
11810 {8 * 1024, 8}
11811 },
Sean Nelson28accc22010-03-19 18:47:06 +000011812 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011813 }, {
11814 .eraseblocks = {
11815 {1024 * 1024, 1}
11816 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011817 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011818 },
11819 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011820 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011821 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011823 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011824 },
11825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011826 {
11827 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011828 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011829 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011830 .manufacture_id = SPANSION_ID,
11831 .model_id = SPANSION_S25FL004A,
11832 .total_size = 512,
11833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011834 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011835 .tested = TEST_UNTESTED,
11836 .probe = probe_spi_rdid,
11837 .probe_timing = TIMING_ZERO,
11838 .block_erasers =
11839 {
11840 {
11841 .eraseblocks = { {64 * 1024, 8} },
11842 .block_erase = spi_block_erase_d8,
11843 }, {
11844 .eraseblocks = { {512 * 1024, 1} },
11845 .block_erase = spi_block_erase_c7,
11846 }
11847 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011848 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011849 .unlock = spi_disable_blockprotect,
11850 .write = spi_chip_write_256,
11851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011852 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011853 },
11854
11855 {
11856 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011857 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011858 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011859 .manufacture_id = SPANSION_ID,
11860 .model_id = SPANSION_S25FL008A,
11861 .total_size = 1024,
11862 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011863 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011864 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011865 .probe = probe_spi_rdid,
11866 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011867 .block_erasers =
11868 {
11869 {
11870 .eraseblocks = { {64 * 1024, 16} },
11871 .block_erase = spi_block_erase_d8,
11872 }, {
11873 .eraseblocks = { {1024 * 1024, 1} },
11874 .block_erase = spi_block_erase_c7,
11875 }
11876 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011877 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011878 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011879 .write = spi_chip_write_256,
11880 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011881 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011882 },
11883
11884 {
11885 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011886 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011887 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011888 .manufacture_id = SPANSION_ID,
11889 .model_id = SPANSION_S25FL016A,
11890 .total_size = 2048,
11891 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011892 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011893 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011894 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011895 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011896 .block_erasers =
11897 {
11898 {
11899 .eraseblocks = { {64 * 1024, 32} },
11900 .block_erase = spi_block_erase_d8,
11901 }, {
11902 .eraseblocks = { {2 * 1024 * 1024, 1} },
11903 .block_erase = spi_block_erase_c7,
11904 }
11905 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011907 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011908 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011909 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011910 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011911 },
11912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011913 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011914 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011915 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011916 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011917 .manufacture_id = SPANSION_ID,
11918 .model_id = SPANSION_S25FL032A,
11919 .total_size = 4096,
11920 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011921 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011922 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011923 .probe = probe_spi_rdid,
11924 .probe_timing = TIMING_ZERO,
11925 .block_erasers =
11926 {
11927 {
11928 .eraseblocks = { {64 * 1024, 64} },
11929 .block_erase = spi_block_erase_d8,
11930 }, {
11931 .eraseblocks = { {4 * 1024 * 1024, 1} },
11932 .block_erase = spi_block_erase_c7,
11933 }
11934 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011935 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011936 .unlock = spi_disable_blockprotect,
11937 .write = spi_chip_write_256,
11938 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011939 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011940 },
11941
11942 {
11943 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011944 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011945 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011946 .manufacture_id = SPANSION_ID,
11947 .model_id = SPANSION_S25FL064A,
11948 .total_size = 8192,
11949 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011950 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011951 .tested = TEST_OK_PREW,
11952 .probe = probe_spi_rdid,
11953 .probe_timing = TIMING_ZERO,
11954 .block_erasers =
11955 {
11956 {
11957 .eraseblocks = { {64 * 1024, 128} },
11958 .block_erase = spi_block_erase_d8,
11959 }, {
11960 .eraseblocks = { {8 * 1024 * 1024, 1} },
11961 .block_erase = spi_block_erase_c7,
11962 }
11963 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011964 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011965 .unlock = spi_disable_blockprotect,
11966 .write = spi_chip_write_256,
11967 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011968 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011969 },
11970
11971 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011972 .vendor = "Spansion",
11973 .name = "S25FL204K",
11974 .bustype = BUS_SPI,
11975 .manufacture_id = SPANSION_ID,
11976 .model_id = SPANSION_S25FL204,
11977 .total_size = 512,
11978 .page_size = 256,
11979 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011980 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011981 .probe = probe_spi_rdid,
11982 .probe_timing = TIMING_ZERO,
11983 .block_erasers = {
11984 {
11985 .eraseblocks = { {4 * 1024, 128} },
11986 .block_erase = spi_block_erase_20,
11987 }, {
11988 .eraseblocks = { {64 * 1024, 8} },
11989 .block_erase = spi_block_erase_d8,
11990 }, {
11991 .eraseblocks = { { 512 * 1024, 1} },
11992 .block_erase = spi_block_erase_60,
11993 }, {
11994 .eraseblocks = { { 512 * 1024, 1} },
11995 .block_erase = spi_block_erase_c7,
11996 }
11997 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011998 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011999 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012000 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012001 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012002 .voltage = {2700, 3600},
12003 },
12004
12005 {
12006 .vendor = "Spansion",
12007 .name = "S25FL208K",
12008 .bustype = BUS_SPI,
12009 .manufacture_id = SPANSION_ID,
12010 .model_id = SPANSION_S25FL208,
12011 .total_size = 1024,
12012 .page_size = 256,
12013 .feature_bits = FEATURE_WRSR_WREN,
12014 .tested = TEST_UNTESTED,
12015 .probe = probe_spi_rdid,
12016 .probe_timing = TIMING_ZERO,
12017 .block_erasers = {
12018 {
12019 .eraseblocks = { {4 * 1024, 256} },
12020 .block_erase = spi_block_erase_20,
12021 }, {
12022 .eraseblocks = { {64 * 1024, 16} },
12023 .block_erase = spi_block_erase_d8,
12024 }, {
12025 .eraseblocks = { { 1024 * 1024, 1} },
12026 .block_erase = spi_block_erase_60,
12027 }, {
12028 .eraseblocks = { { 1024 * 1024, 1} },
12029 .block_erase = spi_block_erase_c7,
12030 }
12031 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012032 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012033 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012034 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012035 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012036 .voltage = {2700, 3600},
12037 },
12038
12039 {
12040 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000012041 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012042 .bustype = BUS_SPI,
12043 .manufacture_id = SPANSION_ID,
12044 .model_id = SPANSION_S25FL216,
12045 .total_size = 2048,
12046 .page_size = 256,
12047 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
12048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12049 .tested = TEST_UNTESTED,
12050 .probe = probe_spi_rdid,
12051 .probe_timing = TIMING_ZERO,
12052 .block_erasers = {
12053 {
12054 .eraseblocks = { {4 * 1024, 512} },
12055 .block_erase = spi_block_erase_20,
12056 }, {
12057 .eraseblocks = { {64 * 1024, 32} },
12058 .block_erase = spi_block_erase_d8,
12059 }, {
12060 .eraseblocks = { { 2048 * 1024, 1} },
12061 .block_erase = spi_block_erase_60,
12062 }, {
12063 .eraseblocks = { { 2048 * 1024, 1} },
12064 .block_erase = spi_block_erase_c7,
12065 }
12066 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012067 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000012068 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012069 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000012070 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000012071 .voltage = {2700, 3600},
12072 },
12073
12074 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012075 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000012076 .name = "S25FL132K",
12077 .bustype = BUS_SPI,
12078 .manufacture_id = SPANSION_ID,
12079 .model_id = SPANSION_S25FL132K,
12080 .total_size = 4096,
12081 .page_size = 256,
12082 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12084 .tested = TEST_UNTESTED,
12085 .probe = probe_spi_rdid,
12086 .probe_timing = TIMING_ZERO,
12087 .block_erasers = {
12088 {
12089 .eraseblocks = { {4 * 1024, 1024} },
12090 .block_erase = spi_block_erase_20,
12091 }, {
12092 .eraseblocks = { {64 * 1024, 64} },
12093 .block_erase = spi_block_erase_d8,
12094 }, {
12095 .eraseblocks = { { 4096 * 1024, 1} },
12096 .block_erase = spi_block_erase_60,
12097 }, {
12098 .eraseblocks = { { 4096 * 1024, 1} },
12099 .block_erase = spi_block_erase_c7,
12100 }
12101 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012102 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012103 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12104 .write = spi_chip_write_256,
12105 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12106 .voltage = {2700, 3600},
12107 },
12108
12109 {
12110 .vendor = "Spansion",
12111 .name = "S25FL164K",
12112 .bustype = BUS_SPI,
12113 .manufacture_id = SPANSION_ID,
12114 .model_id = SPANSION_S25FL164K,
12115 .total_size = 8192,
12116 .page_size = 256,
12117 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
12118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12119 .tested = TEST_OK_PREW,
12120 .probe = probe_spi_rdid,
12121 .probe_timing = TIMING_ZERO,
12122 .block_erasers = {
12123 {
12124 .eraseblocks = { {4 * 1024, 2048} },
12125 .block_erase = spi_block_erase_20,
12126 }, {
12127 .eraseblocks = { {64 * 1024, 128} },
12128 .block_erase = spi_block_erase_d8,
12129 }, {
12130 .eraseblocks = { { 8192 * 1024, 1} },
12131 .block_erase = spi_block_erase_60,
12132 }, {
12133 .eraseblocks = { { 8192 * 1024, 1} },
12134 .block_erase = spi_block_erase_c7,
12135 }
12136 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012137 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000012138 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12139 .write = spi_chip_write_256,
12140 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12141 .voltage = {2700, 3600},
12142 },
12143
12144 {
12145 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000012146 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12147 .bustype = BUS_SPI,
12148 .manufacture_id = SPANSION_ID,
12149 .model_id = SPANSION_S25FL128,
12150 .total_size = 16384,
12151 .page_size = 256,
12152 /* supports 4B addressing */
12153 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12154 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12155 .tested = TEST_OK_PREW,
12156 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
12157 .probe = probe_spi_rdid,
12158 .probe_timing = TIMING_ZERO,
12159 .block_erasers = {
12160 {
12161 /* This chip supports erasing of 32 so-called "parameter sectors" with
12162 * opcode 0x20 which may be configured to be on top or bottom of the address
12163 * space. Trying to access an address outside these 4kB blocks does have no
12164 * effect on the memory contents, e.g.
12165 .eraseblocks = {
12166 {4 * 1024, 32},
12167 {64 * 1024, 254} // inaccessible
12168 },
12169 .block_erase = spi_block_erase_20,
12170 }, { */
12171 .eraseblocks = { { 64 * 1024, 256} },
12172 .block_erase = spi_block_erase_d8,
12173 }, {
12174 .eraseblocks = { { 16384 * 1024, 1} },
12175 .block_erase = spi_block_erase_60,
12176 }, {
12177 .eraseblocks = { { 16384 * 1024, 1} },
12178 .block_erase = spi_block_erase_c7,
12179 }
12180 },
12181 .printlock = spi_prettyprint_status_register_bp2_srwd,
12182 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12183 .write = spi_chip_write_256, /* Multi I/O supported */
12184 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12185 .voltage = {2700, 3600},
12186 },
12187
12188 {
12189 .vendor = "Spansion",
12190 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
12191 .bustype = BUS_SPI,
12192 .manufacture_id = SPANSION_ID,
12193 .model_id = SPANSION_S25FL128,
12194 .total_size = 16384,
12195 .page_size = 512,
12196 /* supports 4B addressing */
12197 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12199 .tested = TEST_UNTESTED,
12200 .probe = probe_spi_rdid,
12201 .probe_timing = TIMING_ZERO,
12202 .block_erasers = {
12203 {
12204 .eraseblocks = { {256 * 1024, 64} },
12205 .block_erase = spi_block_erase_d8,
12206 }, {
12207 .eraseblocks = { { 16384 * 1024, 1} },
12208 .block_erase = spi_block_erase_60,
12209 }, {
12210 .eraseblocks = { { 16384 * 1024, 1} },
12211 .block_erase = spi_block_erase_c7,
12212 }
12213 },
12214 .printlock = spi_prettyprint_status_register_bp2_srwd,
12215 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
12216 .write = spi_chip_write_256, /* Multi I/O supported */
12217 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12218 .voltage = {2700, 3600},
12219 },
12220
12221 {
12222 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000012223 .name = "S25FL128P......0", /* uniform 64 kB sectors */
12224 .bustype = BUS_SPI,
12225 .manufacture_id = SPANSION_ID,
12226 .model_id = SPANSION_S25FL128,
12227 .total_size = 16384,
12228 .page_size = 256,
12229 .feature_bits = FEATURE_WRSR_WREN,
12230 .tested = TEST_UNTESTED,
12231 .probe = probe_spi_rdid,
12232 .probe_timing = TIMING_ZERO,
12233 .block_erasers = {
12234 {
12235 .eraseblocks = { {64 * 1024, 256} },
12236 .block_erase = spi_block_erase_20,
12237 }, {
12238 .eraseblocks = { {64 * 1024, 256} },
12239 .block_erase = spi_block_erase_d8,
12240 }, {
12241 .eraseblocks = { { 16384 * 1024, 1} },
12242 .block_erase = spi_block_erase_60,
12243 }, {
12244 .eraseblocks = { { 16384 * 1024, 1} },
12245 .block_erase = spi_block_erase_c7,
12246 }
12247 },
12248 .printlock = spi_prettyprint_status_register_bp3_srwd,
12249 .unlock = spi_disable_blockprotect_bp3_srwd,
12250 .write = spi_chip_write_256,
12251 .read = spi_chip_read, /* Fast read (0x0B) supported */
12252 .voltage = {2700, 3600},
12253 },
12254
12255 {
12256 .vendor = "Spansion",
12257 .name = "S25FL128P......1", /* uniform 256kB sectors */
12258 .bustype = BUS_SPI,
12259 .manufacture_id = SPANSION_ID,
12260 .model_id = SPANSION_S25FL128,
12261 .total_size = 16384,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_WREN,
12264 .tested = TEST_UNTESTED,
12265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers = {
12268 {
12269 .eraseblocks = { {256 * 1024, 64} },
12270 .block_erase = spi_block_erase_d8,
12271 }, {
12272 .eraseblocks = { { 16384 * 1024, 1} },
12273 .block_erase = spi_block_erase_c7,
12274 }
12275 },
12276 .printlock = spi_prettyprint_status_register_bp2_srwd,
12277 .unlock = spi_disable_blockprotect_bp2_srwd,
12278 .write = spi_chip_write_256,
12279 .read = spi_chip_read, /* Fast read (0x0B) supported */
12280 .voltage = {2700, 3600},
12281 },
12282
12283 {
12284 .vendor = "Spansion",
12285 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012286 .bustype = BUS_SPI,
12287 .manufacture_id = SPANSION_ID,
12288 .model_id = SPANSION_S25FL128,
12289 .total_size = 16384,
12290 .page_size = 256,
12291 /* supports 4B addressing */
12292 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012294 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012295 .probe = probe_spi_rdid,
12296 .probe_timing = TIMING_ZERO,
12297 .block_erasers = {
12298 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012299 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12300 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12301 * have no effect on the memory contents, but sets a flag in the SR.
12302 .eraseblocks = {
12303 {4 * 1024, 32},
12304 {64 * 1024, 254} // inaccessible
12305 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012306 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012307 }, { */
12308 .eraseblocks = { { 64 * 1024, 256} },
12309 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012310 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012311 .eraseblocks = { { 16384 * 1024, 1} },
12312 .block_erase = spi_block_erase_60,
12313 }, {
12314 .eraseblocks = { { 16384 * 1024, 1} },
12315 .block_erase = spi_block_erase_c7,
12316 }
12317 },
12318 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12320 .write = spi_chip_write_256, /* Multi I/O supported */
12321 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12322 .voltage = {2700, 3600},
12323 },
12324
12325 {
12326 .vendor = "Spansion",
12327 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12328 .bustype = BUS_SPI,
12329 .manufacture_id = SPANSION_ID,
12330 .model_id = SPANSION_S25FL128,
12331 .total_size = 16384,
12332 .page_size = 512,
12333 /* supports 4B addressing */
12334 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12335 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12336 .tested = TEST_UNTESTED,
12337 .probe = probe_spi_rdid,
12338 .probe_timing = TIMING_ZERO,
12339 .block_erasers = {
12340 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012341 .eraseblocks = { {256 * 1024, 64} },
12342 .block_erase = spi_block_erase_d8,
12343 }, {
12344 .eraseblocks = { { 16384 * 1024, 1} },
12345 .block_erase = spi_block_erase_60,
12346 }, {
12347 .eraseblocks = { { 16384 * 1024, 1} },
12348 .block_erase = spi_block_erase_c7,
12349 }
12350 },
12351 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12352 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12353 .write = spi_chip_write_256, /* Multi I/O supported */
12354 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12355 .voltage = {2700, 3600},
12356 },
12357
12358 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012359 .vendor = "Spansion",
12360 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12361 .bustype = BUS_SPI,
12362 .manufacture_id = SPANSION_ID,
12363 .model_id = SPANSION_S25FL128,
12364 .total_size = 16384,
12365 .page_size = 256,
12366 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12368 .tested = TEST_OK_PREW,
12369 .probe = probe_spi_rdid,
12370 .probe_timing = TIMING_ZERO,
12371 .block_erasers = {
12372 {
12373 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12374 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12375 * effect on the memory contents, but sets a flag in the SR.
12376 .eraseblocks = {
12377 {4 * 1024, 32},
12378 {64 * 1024, 254} // inaccessible
12379 },
12380 .block_erase = spi_block_erase_20,
12381 }, { */
12382 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12383 .eraseblocks = {
12384 {8 * 1024, 16},
12385 {64 * 1024, 254} // inaccessible
12386 },
12387 .block_erase = spi_block_erase_40,
12388 }, { */
12389 .eraseblocks = { { 64 * 1024, 256} },
12390 .block_erase = spi_block_erase_d8,
12391 }, {
12392 .eraseblocks = { { 16384 * 1024, 1} },
12393 .block_erase = spi_block_erase_60,
12394 }, {
12395 .eraseblocks = { { 16384 * 1024, 1} },
12396 .block_erase = spi_block_erase_c7,
12397 }
12398 },
12399 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12400 .unlock = spi_disable_blockprotect_bp2_srwd,
12401 .write = spi_chip_write_256, /* Multi I/O supported */
12402 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12403 .voltage = {2700, 3600},
12404 },
12405
12406 {
12407 .vendor = "Spansion",
12408 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12409 .bustype = BUS_SPI,
12410 .manufacture_id = SPANSION_ID,
12411 .model_id = SPANSION_S25FL128,
12412 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012413 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012414 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12416 .tested = TEST_UNTESTED,
12417 .probe = probe_spi_rdid,
12418 .probe_timing = TIMING_ZERO,
12419 .block_erasers = {
12420 {
12421 .eraseblocks = { {256 * 1024, 64} },
12422 .block_erase = spi_block_erase_d8,
12423 }, {
12424 .eraseblocks = { { 16384 * 1024, 1} },
12425 .block_erase = spi_block_erase_60,
12426 }, {
12427 .eraseblocks = { { 16384 * 1024, 1} },
12428 .block_erase = spi_block_erase_c7,
12429 }
12430 },
12431 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12432 .unlock = spi_disable_blockprotect_bp2_srwd,
12433 .write = spi_chip_write_256, /* Multi I/O supported */
12434 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12435 .voltage = {2700, 3600},
12436 },
12437
12438 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012439 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012440 .name = "SST25LF020A",
12441 .bustype = BUS_SPI,
12442 .manufacture_id = SST_ID,
12443 .model_id = SST_SST25VF020_REMS,
12444 .total_size = 256,
12445 .page_size = 256,
12446 .feature_bits = FEATURE_WRSR_EWSR,
12447 .tested = TEST_OK_PREW,
12448 .probe = probe_spi_rems,
12449 .probe_timing = TIMING_ZERO,
12450 .block_erasers =
12451 {
12452 {
12453 .eraseblocks = { {4 * 1024, 64} },
12454 .block_erase = spi_block_erase_20,
12455 }, {
12456 .eraseblocks = { {32 * 1024, 8} },
12457 .block_erase = spi_block_erase_52,
12458 }, {
12459 .eraseblocks = { {256 * 1024, 1} },
12460 .block_erase = spi_block_erase_60,
12461 },
12462 },
12463 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12464 .unlock = spi_disable_blockprotect,
12465 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12466 .read = spi_chip_read, /* Fast read (0x0B) supported */
12467 .voltage = {2700, 3600},
12468 },
12469
12470 {
12471 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012472 .name = "SST25LF040A",
12473 .bustype = BUS_SPI,
12474 .manufacture_id = SST_ID,
12475 .model_id = SST_SST25VF040_REMS,
12476 .total_size = 512,
12477 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012478 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012479 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012480 .probe = probe_spi_res2,
12481 .probe_timing = TIMING_ZERO,
12482 .block_erasers =
12483 {
12484 {
12485 .eraseblocks = { {4 * 1024, 128} },
12486 .block_erase = spi_block_erase_20,
12487 }, {
12488 .eraseblocks = { {32 * 1024, 16} },
12489 .block_erase = spi_block_erase_52,
12490 }, {
12491 .eraseblocks = { {512 * 1024, 1} },
12492 .block_erase = spi_block_erase_60,
12493 },
12494 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012495 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012496 .unlock = spi_disable_blockprotect,
12497 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12498 .read = spi_chip_read,
12499 .voltage = {3000, 3600},
12500 },
12501
12502 {
12503 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012504 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012505 .bustype = BUS_SPI,
12506 .manufacture_id = SST_ID,
12507 .model_id = SST_SST25VF080_REMS,
12508 .total_size = 1024,
12509 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012510 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012511 .tested = TEST_UNTESTED,
12512 .probe = probe_spi_res2,
12513 .probe_timing = TIMING_ZERO,
12514 .block_erasers =
12515 {
12516 {
12517 .eraseblocks = { {4 * 1024, 256} },
12518 .block_erase = spi_block_erase_20,
12519 }, {
12520 .eraseblocks = { {32 * 1024, 32} },
12521 .block_erase = spi_block_erase_52,
12522 }, {
12523 .eraseblocks = { {1024 * 1024, 1} },
12524 .block_erase = spi_block_erase_60,
12525 },
12526 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012527 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012528 .unlock = spi_disable_blockprotect,
12529 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12530 .read = spi_chip_read,
12531 .voltage = {3000, 3600},
12532 },
12533
12534 {
12535 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012536 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012537 .bustype = BUS_SPI,
12538 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012539 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012540 .total_size = 64,
12541 .page_size = 256,
12542 .feature_bits = FEATURE_WRSR_EWSR,
12543 .tested = TEST_OK_PREW,
12544 .probe = probe_spi_rems,
12545 .probe_timing = TIMING_ZERO,
12546 .block_erasers =
12547 {
12548 {
12549 .eraseblocks = { {4 * 1024, 16} },
12550 .block_erase = spi_block_erase_20,
12551 }, {
12552 .eraseblocks = { {32 * 1024, 2} },
12553 .block_erase = spi_block_erase_52,
12554 }, {
12555 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012556 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012557 }, {
12558 .eraseblocks = { {64 * 1024, 1} },
12559 .block_erase = spi_block_erase_60,
12560 }, {
12561 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012562 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012563 },
12564 },
12565 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12566 .unlock = spi_disable_blockprotect,
12567 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012568 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012569 .voltage = {2700, 3600},
12570 },
12571
12572 {
12573 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012574 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012575 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012576 .manufacture_id = SST_ID,
12577 .model_id = SST_SST25VF010_REMS,
12578 .total_size = 128,
12579 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012580 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012581 .tested = TEST_OK_PREW,
12582 .probe = probe_spi_rems,
12583 .probe_timing = TIMING_ZERO,
12584 .block_erasers =
12585 {
12586 {
12587 .eraseblocks = { {4 * 1024, 32} },
12588 .block_erase = spi_block_erase_20,
12589 }, {
12590 .eraseblocks = { {32 * 1024, 4} },
12591 .block_erase = spi_block_erase_52,
12592 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012593 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012594 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012595 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012596 .eraseblocks = { {128 * 1024, 1} },
12597 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012598 }, {
12599 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012600 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012601 },
12602 },
12603 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12604 .unlock = spi_disable_blockprotect,
12605 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012606 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012607 .voltage = {2700, 3600},
12608 },
12609
12610 {
12611 .vendor = "SST",
12612 .name = "SST25VF020",
12613 .bustype = BUS_SPI,
12614 .manufacture_id = SST_ID,
12615 .model_id = SST_SST25VF020_REMS,
12616 .total_size = 256,
12617 .page_size = 256,
12618 .feature_bits = FEATURE_WRSR_EWSR,
12619 .tested = TEST_UNTESTED,
12620 .probe = probe_spi_rems,
12621 .probe_timing = TIMING_ZERO,
12622 .block_erasers =
12623 {
12624 {
12625 .eraseblocks = { {4 * 1024, 64} },
12626 .block_erase = spi_block_erase_20,
12627 }, {
12628 .eraseblocks = { {32 * 1024, 8} },
12629 .block_erase = spi_block_erase_52,
12630 }, {
12631 .eraseblocks = { {256 * 1024, 1} },
12632 .block_erase = spi_block_erase_60,
12633 },
12634 },
12635 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12636 .unlock = spi_disable_blockprotect,
12637 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12638 .read = spi_chip_read, /* only */
12639 .voltage = {2700, 3600},
12640 },
12641
12642 {
12643 .vendor = "SST",
12644 .name = "SST25VF020B",
12645 .bustype = BUS_SPI,
12646 .manufacture_id = SST_ID,
12647 .model_id = SST_SST25VF020B,
12648 .total_size = 256,
12649 .page_size = 256,
12650 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012651 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012652 .probe = probe_spi_rdid,
12653 .probe_timing = TIMING_ZERO,
12654 .block_erasers =
12655 {
12656 {
12657 .eraseblocks = { {4 * 1024, 64} },
12658 .block_erase = spi_block_erase_20,
12659 }, {
12660 .eraseblocks = { {32 * 1024, 8} },
12661 .block_erase = spi_block_erase_52,
12662 }, {
12663 .eraseblocks = { {64 * 1024, 4} },
12664 .block_erase = spi_block_erase_d8,
12665 }, {
12666 .eraseblocks = { {256 * 1024, 1} },
12667 .block_erase = spi_block_erase_60,
12668 }, {
12669 .eraseblocks = { {256 * 1024, 1} },
12670 .block_erase = spi_block_erase_c7,
12671 },
12672 },
12673 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12674 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12675 .write = spi_aai_write, /* AAI supported (0xAD) */
12676 .read = spi_chip_read, /* Fast read (0x0B) supported */
12677 .voltage = {2700, 3600},
12678 },
12679
12680 {
12681 .vendor = "SST",
12682 .name = "SST25VF040",
12683 .bustype = BUS_SPI,
12684 .manufacture_id = SST_ID,
12685 .model_id = SST_SST25VF040_REMS,
12686 .total_size = 512,
12687 .page_size = 256,
12688 .feature_bits = FEATURE_WRSR_EWSR,
12689 .tested = TEST_OK_PR,
12690 .probe = probe_spi_rems,
12691 .probe_timing = TIMING_ZERO,
12692 .block_erasers =
12693 {
12694 {
12695 .eraseblocks = { {4 * 1024, 128} },
12696 .block_erase = spi_block_erase_20,
12697 }, {
12698 .eraseblocks = { {32 * 1024, 16} },
12699 .block_erase = spi_block_erase_52,
12700 }, {
12701 .eraseblocks = { {512 * 1024, 1} },
12702 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012703 },
12704 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012705 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012706 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012707 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12708 .read = spi_chip_read,
12709 .voltage = {2700, 3600},
12710 },
12711
12712 {
12713 .vendor = "SST",
12714 .name = "SST25VF040B",
12715 .bustype = BUS_SPI,
12716 .manufacture_id = SST_ID,
12717 .model_id = SST_SST25VF040B,
12718 .total_size = 512,
12719 .page_size = 256,
12720 .feature_bits = FEATURE_WRSR_EWSR,
12721 .tested = TEST_OK_PREW,
12722 .probe = probe_spi_rdid,
12723 .probe_timing = TIMING_ZERO,
12724 .block_erasers =
12725 {
12726 {
12727 .eraseblocks = { {4 * 1024, 128} },
12728 .block_erase = spi_block_erase_20,
12729 }, {
12730 .eraseblocks = { {32 * 1024, 16} },
12731 .block_erase = spi_block_erase_52,
12732 }, {
12733 .eraseblocks = { {64 * 1024, 8} },
12734 .block_erase = spi_block_erase_d8,
12735 }, {
12736 .eraseblocks = { {512 * 1024, 1} },
12737 .block_erase = spi_block_erase_60,
12738 }, {
12739 .eraseblocks = { {512 * 1024, 1} },
12740 .block_erase = spi_block_erase_c7,
12741 },
12742 },
12743 .printlock = spi_prettyprint_status_register_sst25vf040b,
12744 .unlock = spi_disable_blockprotect,
12745 .write = spi_aai_write, /* AAI supported (0xAD) */
12746 .read = spi_chip_read, /* Fast read (0x0B) supported */
12747 .voltage = {2700, 3600},
12748 },
12749
12750 {
12751 .vendor = "SST",
12752 .name = "SST25VF040B.REMS",
12753 .bustype = BUS_SPI,
12754 .manufacture_id = SST_ID,
12755 .model_id = SST_SST25VF040B_REMS,
12756 .total_size = 512,
12757 .page_size = 256,
12758 .feature_bits = FEATURE_WRSR_EWSR,
12759 .tested = TEST_OK_PREW,
12760 .probe = probe_spi_rems,
12761 .probe_timing = TIMING_ZERO,
12762 .block_erasers =
12763 {
12764 {
12765 .eraseblocks = { {4 * 1024, 128} },
12766 .block_erase = spi_block_erase_20,
12767 }, {
12768 .eraseblocks = { {32 * 1024, 16} },
12769 .block_erase = spi_block_erase_52,
12770 }, {
12771 .eraseblocks = { {64 * 1024, 8} },
12772 .block_erase = spi_block_erase_d8,
12773 }, {
12774 .eraseblocks = { {512 * 1024, 1} },
12775 .block_erase = spi_block_erase_60,
12776 }, {
12777 .eraseblocks = { {512 * 1024, 1} },
12778 .block_erase = spi_block_erase_c7,
12779 },
12780 },
12781 .printlock = spi_prettyprint_status_register_sst25vf040b,
12782 .unlock = spi_disable_blockprotect,
12783 .write = spi_aai_write,
12784 .read = spi_chip_read,
12785 .voltage = {2700, 3600},
12786 },
12787
12788 {
12789 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012790 .name = "SST25WF020A",
12791 .bustype = BUS_SPI,
12792 .manufacture_id = SANYO_ID, /* See flashchips.h */
12793 .model_id = SST_SST25WF020A,
12794 .total_size = 256,
12795 .page_size = 256,
12796 .feature_bits = FEATURE_WRSR_WREN,
12797 .tested = TEST_UNTESTED,
12798 .probe = probe_spi_rdid,
12799 .probe_timing = TIMING_ZERO,
12800 .block_erasers =
12801 {
12802 {
12803 .eraseblocks = { {4 * 1024, 64} },
12804 .block_erase = spi_block_erase_20,
12805 }, {
12806 .eraseblocks = { {64 * 1024, 4} },
12807 .block_erase = spi_block_erase_d8,
12808 }, {
12809 .eraseblocks = { {256 * 1024, 1} },
12810 .block_erase = spi_block_erase_60,
12811 }, {
12812 .eraseblocks = { {256 * 1024, 1} },
12813 .block_erase = spi_block_erase_c7,
12814 },
12815 },
12816 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12817 .unlock = spi_disable_blockprotect_bp2_srwd,
12818 .write = spi_chip_write_256,
12819 .read = spi_chip_read, /* Fast read (0x0B) supported */
12820 .voltage = {1650, 1950},
12821 },
12822
12823 {
12824 .vendor = "SST",
12825 .name = "SST25WF040B",
12826 .bustype = BUS_SPI,
12827 .manufacture_id = SANYO_ID, /* See flashchips.h */
12828 .model_id = SST_SST25WF040B,
12829 .total_size = 512,
12830 .page_size = 256,
12831 .feature_bits = FEATURE_WRSR_WREN,
12832 .tested = TEST_UNTESTED,
12833 .probe = probe_spi_rdid,
12834 .probe_timing = TIMING_ZERO,
12835 .block_erasers =
12836 {
12837 {
12838 .eraseblocks = { {4 * 1024, 128} },
12839 .block_erase = spi_block_erase_20,
12840 }, {
12841 .eraseblocks = { {64 * 1024, 8} },
12842 .block_erase = spi_block_erase_d8,
12843 }, {
12844 .eraseblocks = { {512 * 1024, 1} },
12845 .block_erase = spi_block_erase_60,
12846 }, {
12847 .eraseblocks = { {512 * 1024, 1} },
12848 .block_erase = spi_block_erase_c7,
12849 },
12850 },
12851 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12852 .unlock = spi_disable_blockprotect_bp2_srwd,
12853 .write = spi_chip_write_256,
12854 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12855 .voltage = {1650, 1950},
12856 },
12857
12858 {
12859 .vendor = "SST",
12860 .name = "SST25WF080B",
12861 .bustype = BUS_SPI,
12862 .manufacture_id = SANYO_ID, /* See flashchips.h */
12863 .model_id = SST_SST25WF080B,
12864 .total_size = 1024,
12865 .page_size = 256,
12866 .feature_bits = FEATURE_WRSR_WREN,
12867 .tested = TEST_OK_PREW,
12868 .probe = probe_spi_rdid,
12869 .probe_timing = TIMING_ZERO,
12870 .block_erasers =
12871 {
12872 {
12873 .eraseblocks = { {4 * 1024, 256} },
12874 .block_erase = spi_block_erase_20,
12875 }, {
12876 .eraseblocks = { {64 * 1024, 16} },
12877 .block_erase = spi_block_erase_d8,
12878 }, {
12879 .eraseblocks = { {1024 * 1024, 1} },
12880 .block_erase = spi_block_erase_60,
12881 }, {
12882 .eraseblocks = { {1024 * 1024, 1} },
12883 .block_erase = spi_block_erase_c7,
12884 },
12885 },
12886 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12887 .unlock = spi_disable_blockprotect_bp2_srwd,
12888 .write = spi_chip_write_256,
12889 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12890 .voltage = {1650, 1950},
12891 },
12892
12893 {
12894 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012895 .name = "SST25VF080B",
12896 .bustype = BUS_SPI,
12897 .manufacture_id = SST_ID,
12898 .model_id = SST_SST25VF080B,
12899 .total_size = 1024,
12900 .page_size = 256,
12901 .feature_bits = FEATURE_WRSR_EWSR,
12902 .tested = TEST_OK_PREW,
12903 .probe = probe_spi_rdid,
12904 .probe_timing = TIMING_ZERO,
12905 .block_erasers =
12906 {
12907 {
12908 .eraseblocks = { {4 * 1024, 256} },
12909 .block_erase = spi_block_erase_20,
12910 }, {
12911 .eraseblocks = { {32 * 1024, 32} },
12912 .block_erase = spi_block_erase_52,
12913 }, {
12914 .eraseblocks = { {64 * 1024, 16} },
12915 .block_erase = spi_block_erase_d8,
12916 }, {
12917 .eraseblocks = { {1024 * 1024, 1} },
12918 .block_erase = spi_block_erase_60,
12919 }, {
12920 .eraseblocks = { {1024 * 1024, 1} },
12921 .block_erase = spi_block_erase_c7,
12922 },
12923 },
12924 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12925 .unlock = spi_disable_blockprotect,
12926 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012927 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012928 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012929 },
12930
12931 {
12932 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012933 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012934 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012936 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012937 .total_size = 2048,
12938 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012939 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012940 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012941 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012942 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012943 .block_erasers =
12944 {
12945 {
12946 .eraseblocks = { {4 * 1024, 512} },
12947 .block_erase = spi_block_erase_20,
12948 }, {
12949 .eraseblocks = { {32 * 1024, 64} },
12950 .block_erase = spi_block_erase_52,
12951 }, {
12952 .eraseblocks = { {64 * 1024, 32} },
12953 .block_erase = spi_block_erase_d8,
12954 }, {
12955 .eraseblocks = { {2 * 1024 * 1024, 1} },
12956 .block_erase = spi_block_erase_60,
12957 }, {
12958 .eraseblocks = { {2 * 1024 * 1024, 1} },
12959 .block_erase = spi_block_erase_c7,
12960 },
12961 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012962 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012963 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012964 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012966 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012967 },
12968
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012969 {
12970 .vendor = "SST",
12971 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012972 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012973 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012974 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012975 .total_size = 4096,
12976 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012977 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012978 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012979 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012980 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012981 .block_erasers =
12982 {
12983 {
12984 .eraseblocks = { {4 * 1024, 1024} },
12985 .block_erase = spi_block_erase_20,
12986 }, {
12987 .eraseblocks = { {32 * 1024, 128} },
12988 .block_erase = spi_block_erase_52,
12989 }, {
12990 .eraseblocks = { {64 * 1024, 64} },
12991 .block_erase = spi_block_erase_d8,
12992 }, {
12993 .eraseblocks = { {4 * 1024 * 1024, 1} },
12994 .block_erase = spi_block_erase_60,
12995 }, {
12996 .eraseblocks = { {4 * 1024 * 1024, 1} },
12997 .block_erase = spi_block_erase_c7,
12998 },
12999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013000 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013001 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000013002 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013003 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013004 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013005 },
13006
13007 {
13008 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013009 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013010 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013011 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013012 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013013 .total_size = 8192,
13014 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013015 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000013016 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013017 .probe = probe_spi_rdid,
13018 .probe_timing = TIMING_ZERO,
13019 .block_erasers =
13020 {
13021 {
13022 .eraseblocks = { {4 * 1024, 2048} },
13023 .block_erase = spi_block_erase_20,
13024 }, {
13025 .eraseblocks = { {32 * 1024, 256} },
13026 .block_erase = spi_block_erase_52,
13027 }, {
13028 .eraseblocks = { {64 * 1024, 128} },
13029 .block_erase = spi_block_erase_d8,
13030 }, {
13031 .eraseblocks = { {8 * 1024 * 1024, 1} },
13032 .block_erase = spi_block_erase_60,
13033 }, {
13034 .eraseblocks = { {8 * 1024 * 1024, 1} },
13035 .block_erase = spi_block_erase_c7,
13036 },
13037 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013038 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013039 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000013040 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013042 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013043 },
13044
13045 {
13046 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013047 .name = "SST26VF016B(A)",
13048 .bustype = BUS_SPI,
13049 .manufacture_id = SST_ID,
13050 .model_id = SST_SST26VF016B,
13051 .total_size = 2048,
13052 .page_size = 256,
13053 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13054 .tested = TEST_OK_PREW,
13055 .probe = probe_spi_rdid,
13056 .probe_timing = TIMING_ZERO,
13057 .block_erasers =
13058 {
13059 {
13060 .eraseblocks = { {4 * 1024, 512} },
13061 .block_erase = spi_block_erase_20,
13062 }, {
13063 .eraseblocks = {
13064 {8 * 1024, 4},
13065 {32 * 1024, 1},
13066 {64 * 1024, 30},
13067 {32 * 1024, 1},
13068 {8 * 1024, 4},
13069 },
13070 .block_erase = spi_block_erase_d8,
13071 }, {
13072 .eraseblocks = { {2 * 1024 * 1024, 1} },
13073 .block_erase = spi_block_erase_c7,
13074 },
13075 },
13076 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13077 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13078 .write = spi_chip_write_256, /* Multi I/O supported */
13079 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13080 .voltage = {2700, 3600},
13081 },
13082 {
13083 .vendor = "SST",
13084 .name = "SST26VF032B(A)",
13085 .bustype = BUS_SPI,
13086 .manufacture_id = SST_ID,
13087 .model_id = SST_SST26VF032B,
13088 .total_size = 4096,
13089 .page_size = 256,
13090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13091 .tested = TEST_UNTESTED,
13092 .probe = probe_spi_rdid,
13093 .probe_timing = TIMING_ZERO,
13094 .block_erasers =
13095 {
13096 {
13097 .eraseblocks = { {4 * 1024, 1024} },
13098 .block_erase = spi_block_erase_20,
13099 }, {
13100 .eraseblocks = {
13101 {8 * 1024, 4},
13102 {32 * 1024, 1},
13103 {64 * 1024, 62},
13104 {32 * 1024, 1},
13105 {8 * 1024, 4},
13106 },
13107 .block_erase = spi_block_erase_d8,
13108 }, {
13109 .eraseblocks = { {4 * 1024 * 1024, 1} },
13110 .block_erase = spi_block_erase_c7,
13111 },
13112 },
13113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13114 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13115 .write = spi_chip_write_256, /* Multi I/O supported */
13116 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13117 .voltage = {2700, 3600},
13118 },
13119
13120
13121 {
13122 .vendor = "SST",
13123 .name = "SST26VF064B(A)",
13124 .bustype = BUS_SPI,
13125 .manufacture_id = SST_ID,
13126 .model_id = SST_SST26VF064B,
13127 .total_size = 8192,
13128 .page_size = 256,
13129 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13130 .tested = TEST_OK_PREW,
13131 .probe = probe_spi_rdid,
13132 .probe_timing = TIMING_ZERO,
13133 .block_erasers =
13134 {
13135 {
13136 .eraseblocks = { {4 * 1024, 2048} },
13137 .block_erase = spi_block_erase_20,
13138 }, {
13139 .eraseblocks = {
13140 {8 * 1024, 4},
13141 {32 * 1024, 1},
13142 {64 * 1024, 126},
13143 {32 * 1024, 1},
13144 {8 * 1024, 4},
13145 },
13146 .block_erase = spi_block_erase_d8,
13147 }, {
13148 .eraseblocks = { {8 * 1024 * 1024, 1} },
13149 .block_erase = spi_block_erase_c7,
13150 },
13151 },
13152 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13153 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13154 .write = spi_chip_write_256, /* Multi I/O supported */
13155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13156 .voltage = {2700, 3600},
13157 },
13158
13159 {
13160 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000013161 .name = "SST25WF512",
13162 .bustype = BUS_SPI,
13163 .manufacture_id = SST_ID,
13164 .model_id = SST_SST25WF512,
13165 .total_size = 64,
13166 .page_size = 256,
13167 .feature_bits = FEATURE_WRSR_EITHER,
13168 .tested = TEST_UNTESTED,
13169 .probe = probe_spi_rdid,
13170 .probe_timing = TIMING_ZERO,
13171 .block_erasers =
13172 {
13173 {
13174 .eraseblocks = { {4 * 1024, 16} },
13175 .block_erase = spi_block_erase_20,
13176 }, {
13177 .eraseblocks = { {32 * 1024, 2} },
13178 .block_erase = spi_block_erase_52,
13179 }, {
13180 .eraseblocks = { {1024 * 64, 1} },
13181 .block_erase = spi_block_erase_60,
13182 }, {
13183 .eraseblocks = { {1024 * 64, 1} },
13184 .block_erase = spi_block_erase_c7,
13185 },
13186 },
Jason Harper43ddef02014-05-04 00:55:24 +000013187 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13188 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013189 .write = spi_aai_write,
13190 .read = spi_chip_read, /* Fast read (0x0B) supported */
13191 .voltage = {1650, 1950},
13192 },
13193
13194 {
13195 .vendor = "SST",
13196 .name = "SST25WF010",
13197 .bustype = BUS_SPI,
13198 .manufacture_id = SST_ID,
13199 .model_id = SST_SST25WF010,
13200 .total_size = 128,
13201 .page_size = 256,
13202 .feature_bits = FEATURE_WRSR_EITHER,
13203 .tested = TEST_UNTESTED,
13204 .probe = probe_spi_rdid,
13205 .probe_timing = TIMING_ZERO,
13206 .block_erasers =
13207 {
13208 {
13209 .eraseblocks = { {4 * 1024, 32} },
13210 .block_erase = spi_block_erase_20,
13211 }, {
13212 .eraseblocks = { {32 * 1024, 4} },
13213 .block_erase = spi_block_erase_52,
13214 }, {
13215 .eraseblocks = { {1024 * 128, 1} },
13216 .block_erase = spi_block_erase_60,
13217 }, {
13218 .eraseblocks = { {1024 * 128, 1} },
13219 .block_erase = spi_block_erase_c7,
13220 },
13221 },
Jason Harper43ddef02014-05-04 00:55:24 +000013222 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13223 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013224 .write = spi_aai_write,
13225 .read = spi_chip_read, /* Fast read (0x0B) supported */
13226 .voltage = {1650, 1950},
13227 },
13228
13229 {
13230 .vendor = "SST",
13231 .name = "SST25WF020",
13232 .bustype = BUS_SPI,
13233 .manufacture_id = SST_ID,
13234 .model_id = SST_SST25WF020,
13235 .total_size = 256,
13236 .page_size = 256,
13237 .feature_bits = FEATURE_WRSR_EITHER,
13238 .tested = TEST_UNTESTED,
13239 .probe = probe_spi_rdid,
13240 .probe_timing = TIMING_ZERO,
13241 .block_erasers =
13242 {
13243 {
13244 .eraseblocks = { {4 * 1024, 64} },
13245 .block_erase = spi_block_erase_20,
13246 }, {
13247 .eraseblocks = { {32 * 1024, 8} },
13248 .block_erase = spi_block_erase_52,
13249 }, {
13250 .eraseblocks = { {64 * 1024, 4} },
13251 .block_erase = spi_block_erase_d8,
13252 }, {
13253 .eraseblocks = { {1024 * 256, 1} },
13254 .block_erase = spi_block_erase_60,
13255 }, {
13256 .eraseblocks = { {1024 * 256, 1} },
13257 .block_erase = spi_block_erase_c7,
13258 },
13259 },
Jason Harper43ddef02014-05-04 00:55:24 +000013260 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13261 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013262 .write = spi_aai_write,
13263 .read = spi_chip_read, /* Fast read (0x0B) supported */
13264 .voltage = {1650, 1950},
13265 },
13266
13267 {
13268 .vendor = "SST",
13269 .name = "SST25WF040",
13270 .bustype = BUS_SPI,
13271 .manufacture_id = SST_ID,
13272 .model_id = SST_SST25WF040,
13273 .total_size = 512,
13274 .page_size = 256,
13275 .feature_bits = FEATURE_WRSR_EITHER,
13276 .tested = TEST_UNTESTED,
13277 .probe = probe_spi_rdid,
13278 .probe_timing = TIMING_ZERO,
13279 .block_erasers =
13280 {
13281 {
13282 .eraseblocks = { {4 * 1024, 128} },
13283 .block_erase = spi_block_erase_20,
13284 }, {
13285 .eraseblocks = { {32 * 1024, 16} },
13286 .block_erase = spi_block_erase_52,
13287 }, {
13288 .eraseblocks = { {64 * 1024, 8} },
13289 .block_erase = spi_block_erase_d8,
13290 }, {
13291 .eraseblocks = { {1024 * 512, 1} },
13292 .block_erase = spi_block_erase_60,
13293 }, {
13294 .eraseblocks = { {1024 * 512, 1} },
13295 .block_erase = spi_block_erase_c7,
13296 },
13297 },
Jason Harper43ddef02014-05-04 00:55:24 +000013298 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13299 .unlock = spi_disable_blockprotect_bp2_srwd,
13300 .write = spi_aai_write,
13301 .read = spi_chip_read, /* Fast read (0x0B) supported */
13302 .voltage = {1650, 1950},
13303 },
13304
13305 {
13306 .vendor = "SST",
13307 .name = "SST25WF080",
13308 .bustype = BUS_SPI,
13309 .manufacture_id = SST_ID,
13310 .model_id = SST_SST25WF080,
13311 .total_size = 1024,
13312 .page_size = 256,
13313 .feature_bits = FEATURE_WRSR_EITHER,
13314 .tested = TEST_OK_PREW,
13315 .probe = probe_spi_rdid,
13316 .probe_timing = TIMING_ZERO,
13317 .block_erasers =
13318 {
13319 {
13320 .eraseblocks = { {4 * 1024, 256} },
13321 .block_erase = spi_block_erase_20,
13322 }, {
13323 .eraseblocks = { {32 * 1024, 32} },
13324 .block_erase = spi_block_erase_52,
13325 }, {
13326 .eraseblocks = { {64 * 1024, 16} },
13327 .block_erase = spi_block_erase_d8,
13328 }, {
13329 .eraseblocks = { {1024 * 1024, 1} },
13330 .block_erase = spi_block_erase_60,
13331 }, {
13332 .eraseblocks = { {1024 * 1024, 1} },
13333 .block_erase = spi_block_erase_c7,
13334 },
13335 },
13336 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13337 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000013338 .write = spi_aai_write,
13339 .read = spi_chip_read, /* Fast read (0x0B) supported */
13340 .voltage = {1650, 1950},
13341 },
13342
13343 {
13344 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013345 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013346 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013347 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013348 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013349 .total_size = 512,
13350 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013351 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013352 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013353 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013354 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013355 .block_erasers =
13356 {
13357 {
13358 .eraseblocks = { {128, 4096} },
13359 .block_erase = erase_sector_28sf040,
13360 }, {
13361 .eraseblocks = { {512 * 1024, 1} },
13362 .block_erase = erase_chip_28sf040,
13363 }
13364 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013365 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013366 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013369 },
13370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013371 {
13372 .vendor = "SST",
13373 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013375 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013376 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013377 .total_size = 128,
13378 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013379 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013380 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013381 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013382 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013383 .block_erasers =
13384 {
13385 {
13386 .eraseblocks = { {128 * 1024, 1} },
13387 .block_erase = erase_chip_block_jedec,
13388 }
13389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013393 },
13394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013395 {
13396 .vendor = "SST",
13397 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013399 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013400 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013401 .total_size = 128,
13402 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013403 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013404 .tested = TEST_UNTESTED,
13405 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013406 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013407 .block_erasers =
13408 {
13409 {
13410 .eraseblocks = { {128 * 1024, 1} },
13411 .block_erase = erase_chip_block_jedec,
13412 }
13413 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013414 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013416 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013417 },
13418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013419 {
13420 .vendor = "SST",
13421 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013422 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013424 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013425 .total_size = 256,
13426 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013427 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013428 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013429 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013430 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013431 .block_erasers =
13432 {
13433 {
13434 .eraseblocks = { {256 * 1024, 1} },
13435 .block_erase = erase_chip_block_jedec,
13436 }
13437 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013438 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013440 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013441 },
13442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013443 {
13444 .vendor = "SST",
13445 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013446 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013447 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013448 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013449 .total_size = 256,
13450 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013451 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013452 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013453 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013454 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013455 .block_erasers =
13456 {
13457 {
13458 .eraseblocks = { {256 * 1024, 1} },
13459 .block_erase = erase_chip_block_jedec,
13460 }
13461 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013462 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013464 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013465 },
13466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013467 {
13468 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000013469 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013470 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013471 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013472 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013473 .total_size = 64,
13474 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013475 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000013476 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013477 .probe = probe_jedec,
13478 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000013479 .block_erasers =
13480 {
13481 {
13482 .eraseblocks = { {4 * 1024, 16} },
13483 .block_erase = erase_sector_jedec,
13484 }, {
13485 .eraseblocks = { {64 * 1024, 1} },
13486 .block_erase = erase_chip_block_jedec,
13487 }
13488 },
Sean Nelson35727f72010-01-28 23:55:12 +000013489 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013491 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000013492 },
13493
13494 {
13495 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013496 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013497 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013498 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013499 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013500 .total_size = 128,
13501 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013502 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013503 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013504 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013505 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013506 .block_erasers =
13507 {
13508 {
13509 .eraseblocks = { {4 * 1024, 32} },
13510 .block_erase = erase_sector_jedec,
13511 }, {
13512 .eraseblocks = { {128 * 1024, 1} },
13513 .block_erase = erase_chip_block_jedec,
13514 }
13515 },
Sean Nelson35727f72010-01-28 23:55:12 +000013516 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013518 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013519 },
13520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013521 {
13522 .vendor = "SST",
13523 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013524 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013525 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013526 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013527 .total_size = 256,
13528 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013529 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013530 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013531 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013532 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013533 .block_erasers =
13534 {
13535 {
13536 .eraseblocks = { {4 * 1024, 64} },
13537 .block_erase = erase_sector_jedec,
13538 }, {
13539 .eraseblocks = { {256 * 1024, 1} },
13540 .block_erase = erase_chip_block_jedec,
13541 }
13542 },
Sean Nelson35727f72010-01-28 23:55:12 +000013543 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013545 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013546 },
13547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013548 {
13549 .vendor = "SST",
13550 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013551 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013552 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013553 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013554 .total_size = 512,
13555 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013556 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013557 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013558 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013559 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013560 .block_erasers =
13561 {
13562 {
13563 .eraseblocks = { {4 * 1024, 128} },
13564 .block_erase = erase_sector_jedec,
13565 }, {
13566 .eraseblocks = { {512 * 1024, 1} },
13567 .block_erase = erase_chip_block_jedec,
13568 }
13569 },
Sean Nelson35727f72010-01-28 23:55:12 +000013570 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013572 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013573 },
13574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013575 {
13576 .vendor = "SST",
13577 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013578 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013579 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013580 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013581 .total_size = 64,
13582 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013583 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013584 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013585 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013586 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013587 .block_erasers =
13588 {
13589 {
13590 .eraseblocks = { {4 * 1024, 16} },
13591 .block_erase = erase_sector_jedec,
13592 }, {
13593 .eraseblocks = { {64 * 1024, 1} },
13594 .block_erase = erase_chip_block_jedec,
13595 }
13596 },
Sean Nelson35727f72010-01-28 23:55:12 +000013597 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013600 },
13601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013602 {
13603 .vendor = "SST",
13604 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013605 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013606 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013607 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013608 .total_size = 128,
13609 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013610 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013611 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013612 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013613 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013614 .block_erasers =
13615 {
13616 {
13617 .eraseblocks = { {4 * 1024, 32} },
13618 .block_erase = erase_sector_jedec,
13619 }, {
13620 .eraseblocks = { {128 * 1024, 1} },
13621 .block_erase = erase_chip_block_jedec,
13622 }
13623 },
Sean Nelson35727f72010-01-28 23:55:12 +000013624 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013626 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013627 },
13628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013629 {
13630 .vendor = "SST",
13631 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013632 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013633 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013634 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013635 .total_size = 256,
13636 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013637 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013638 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013639 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013640 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013641 .block_erasers =
13642 {
13643 {
13644 .eraseblocks = { {4 * 1024, 64} },
13645 .block_erase = erase_sector_jedec,
13646 }, {
13647 .eraseblocks = { {256 * 1024, 1} },
13648 .block_erase = erase_chip_block_jedec,
13649 }
13650 },
Sean Nelson35727f72010-01-28 23:55:12 +000013651 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013653 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013654 },
13655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013656 {
13657 .vendor = "SST",
13658 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013659 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013660 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013661 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013662 .total_size = 512,
13663 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013664 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013665 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013666 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013667 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013668 .block_erasers =
13669 {
13670 {
13671 .eraseblocks = { {4 * 1024, 128} },
13672 .block_erase = erase_sector_jedec,
13673 }, {
13674 .eraseblocks = { {512 * 1024, 1} },
13675 .block_erase = erase_chip_block_jedec,
13676 }
13677 },
Sean Nelson35727f72010-01-28 23:55:12 +000013678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013679 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013680 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013681 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013683 {
13684 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013685 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013686 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013687 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013688 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013689 .total_size = 1024,
13690 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013691 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013692 .tested = TEST_UNTESTED,
13693 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013694 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013695 .block_erasers =
13696 {
13697 {
13698 .eraseblocks = { {4 * 1024, 256} },
13699 .block_erase = erase_sector_jedec,
13700 }, {
13701 .eraseblocks = { {64 * 1024, 16} },
13702 .block_erase = erase_block_jedec,
13703 }, {
13704 .eraseblocks = { {1024 * 1024, 1} },
13705 .block_erase = erase_chip_block_jedec,
13706 }
13707 },
Sean Nelson35727f72010-01-28 23:55:12 +000013708 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013709 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013710 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013711 },
13712
13713 {
13714 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013715 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013716 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013717 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013718 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013719 .total_size = 256,
13720 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013721 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013722 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013723 .probe = probe_jedec,
13724 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013725 .block_erasers =
13726 {
13727 {
13728 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013729 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013730 }, {
13731 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013732 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013733 }, {
13734 .eraseblocks = { {256 * 1024, 1} },
13735 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13736 }
13737 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013738 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013739 .unlock = unlock_sst_fwhub,
13740 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013741 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013742 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013743 },
13744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013745 {
13746 .vendor = "SST",
13747 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013748 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013749 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013750 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013751 .total_size = 384,
13752 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013753 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013754 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013755 .probe = probe_jedec,
13756 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013757 .block_erasers =
13758 {
13759 {
13760 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013761 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013762 }, {
13763 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013764 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013765 }, {
13766 .eraseblocks = { {384 * 1024, 1} },
13767 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13768 }
13769 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013770 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013771 .unlock = unlock_sst_fwhub,
13772 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013774 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013775 },
13776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013777 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013778 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13779 * and is only honored for 64k block erase, but not 4k sector erase.
13780 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013781 .vendor = "SST",
13782 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013783 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013784 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013785 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013786 .total_size = 512,
13787 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013788 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013789 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013790 .probe = probe_jedec,
13791 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013792 .block_erasers =
13793 {
13794 {
13795 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013796 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013797 }, {
13798 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013799 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013800 }, {
13801 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013802 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013803 },
13804 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013805 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013806 .unlock = unlock_sst_fwhub,
13807 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013808 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013809 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013810 },
13811
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013812 {
13813 .vendor = "SST",
13814 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013815 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013816 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013817 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013818 .total_size = 512,
13819 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013820 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013821 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013822 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013823 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013824 .block_erasers =
13825 {
13826 {
13827 .eraseblocks = { {4 * 1024, 128} },
13828 .block_erase = erase_sector_49lfxxxc,
13829 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013830 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013831 {64 * 1024, 7},
13832 {32 * 1024, 1},
13833 {8 * 1024, 2},
13834 {16 * 1024, 1},
13835 },
Sean Nelson69e58112010-03-23 17:10:28 +000013836 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013837 }
13838 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013839 .printlock = printlock_regspace2_block_eraser_1,
13840 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013841 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013842 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013843 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013844 },
13845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013846 {
13847 .vendor = "SST",
13848 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013849 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013850 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013851 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013852 .total_size = 1024,
13853 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013854 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013855 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013856 .probe = probe_jedec,
13857 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013858 .block_erasers =
13859 {
13860 {
13861 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013862 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013863 }, {
13864 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013865 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013866 }, {
13867 .eraseblocks = { {1024 * 1024, 1} },
13868 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13869 }
13870 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013871 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013872 .unlock = unlock_sst_fwhub,
13873 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013875 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013876 },
13877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013878 {
13879 .vendor = "SST",
13880 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013881 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013883 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013884 .total_size = 1024,
13885 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013886 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013887 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013888 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013889 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013890 .block_erasers =
13891 {
13892 {
13893 .eraseblocks = { {4 * 1024, 256} },
13894 .block_erase = erase_sector_49lfxxxc,
13895 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013896 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013897 {64 * 1024, 15},
13898 {32 * 1024, 1},
13899 {8 * 1024, 2},
13900 {16 * 1024, 1},
13901 },
Sean Nelson69e58112010-03-23 17:10:28 +000013902 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013903 }
13904 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013905 .printlock = printlock_regspace2_block_eraser_1,
13906 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013907 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013909 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013910 },
13911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013912 {
13913 .vendor = "SST",
13914 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013915 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013916 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013917 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013918 .total_size = 2048,
13919 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013920 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013921 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013922 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013923 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013924 .block_erasers =
13925 {
13926 {
13927 .eraseblocks = { {4 * 1024, 512} },
13928 .block_erase = erase_sector_49lfxxxc,
13929 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013930 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013931 {64 * 1024, 31},
13932 {32 * 1024, 1},
13933 {8 * 1024, 2},
13934 {16 * 1024, 1},
13935 },
Sean Nelson69e58112010-03-23 17:10:28 +000013936 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013937 }
13938 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013939 .printlock = printlock_regspace2_block_eraser_1,
13940 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013941 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013943 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013944 },
13945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013946 {
13947 .vendor = "SST",
13948 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013949 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013950 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013951 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013952 .total_size = 256,
13953 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013954 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013955 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013956 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013957 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013958 .block_erasers =
13959 {
13960 {
13961 .eraseblocks = { {4 * 1024, 64} },
13962 .block_erase = erase_sector_jedec,
13963 }, {
13964 .eraseblocks = { {16 * 1024, 16} },
13965 .block_erase = erase_block_jedec,
13966 }, {
13967 .eraseblocks = { {256 * 1024, 1} },
13968 .block_erase = NULL,
13969 }
13970 },
Sean Nelson35727f72010-01-28 23:55:12 +000013971 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013972 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013973 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013974 },
13975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013976 {
13977 .vendor = "SST",
13978 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013979 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013980 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013981 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013982 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013983 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013984 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013985 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013986 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013987 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013988 .block_erasers =
13989 {
13990 {
13991 .eraseblocks = { {4 * 1024, 64} },
13992 .block_erase = erase_sector_jedec,
13993 }, {
13994 .eraseblocks = { {16 * 1024, 16} },
13995 .block_erase = erase_block_jedec,
13996 }, {
13997 .eraseblocks = { {256 * 1024, 1} },
13998 .block_erase = NULL,
13999 }
14000 },
Sean Nelson35727f72010-01-28 23:55:12 +000014001 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014003 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014004 },
14005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014006 {
14007 .vendor = "SST",
14008 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014009 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014010 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014011 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014012 .total_size = 512,
14013 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014014 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014015 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014016 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014017 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014018 .block_erasers =
14019 {
14020 {
14021 .eraseblocks = { {4 * 1024, 128} },
14022 .block_erase = erase_sector_jedec,
14023 }, {
14024 .eraseblocks = { {64 * 1024, 8} },
14025 .block_erase = erase_block_jedec,
14026 }, {
14027 .eraseblocks = { {512 * 1024, 1} },
14028 .block_erase = NULL,
14029 }
14030 },
Sean Nelson35727f72010-01-28 23:55:12 +000014031 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014033 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014034 },
14035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014036 {
14037 .vendor = "SST",
14038 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014039 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014040 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014041 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014042 .total_size = 512,
14043 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014044 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014045 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014046 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014047 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014048 .block_erasers =
14049 {
14050 {
14051 .eraseblocks = { {4 * 1024, 128} },
14052 .block_erase = erase_sector_jedec,
14053 }, {
14054 .eraseblocks = { {64 * 1024, 8} },
14055 .block_erase = erase_block_jedec,
14056 }, {
14057 .eraseblocks = { {512 * 1024, 1} },
14058 .block_erase = NULL,
14059 }
14060 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014061 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014062 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014064 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014065 },
14066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014067 {
14068 .vendor = "SST",
14069 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014070 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014072 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014073 .total_size = 1024,
14074 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014075 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014076 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014077 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014078 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014079 .block_erasers =
14080 {
14081 {
14082 .eraseblocks = { {4 * 1024, 256} },
14083 .block_erase = erase_sector_jedec,
14084 }, {
14085 .eraseblocks = { {64 * 1024, 16} },
14086 .block_erase = erase_block_jedec,
14087 }, {
14088 .eraseblocks = { {1024 * 1024, 1} },
14089 .block_erase = NULL,
14090 }
14091 },
Sean Nelson35727f72010-01-28 23:55:12 +000014092 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014093 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014094 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014095 },
14096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014097 {
14098 .vendor = "SST",
14099 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014100 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014101 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014102 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014103 .total_size = 2048,
14104 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014105 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014106 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014107 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014108 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014109 .block_erasers =
14110 {
14111 {
14112 .eraseblocks = { {4 * 1024, 512} },
14113 .block_erase = erase_sector_49lfxxxc,
14114 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014115 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014116 {64 * 1024, 31},
14117 {32 * 1024, 1},
14118 {8 * 1024, 2},
14119 {16 * 1024, 1},
14120 },
Sean Nelson69e58112010-03-23 17:10:28 +000014121 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014122 }
14123 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014124 .printlock = printlock_regspace2_block_eraser_1,
14125 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014126 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014127 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014128 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014129 },
14130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014131 {
14132 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014133 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014134 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014135 .manufacture_id = ST_ID,
14136 .model_id = ST_M29F002B,
14137 .total_size = 256,
14138 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014139 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014140 .tested = TEST_UNTESTED,
14141 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014143 .block_erasers =
14144 {
14145 {
14146 .eraseblocks = {
14147 {16 * 1024, 1},
14148 {8 * 1024, 2},
14149 {32 * 1024, 1},
14150 {64 * 1024, 3},
14151 },
14152 .block_erase = erase_sector_jedec,
14153 }, {
14154 .eraseblocks = { {256 * 1024, 1} },
14155 .block_erase = erase_chip_block_jedec,
14156 }
14157 },
Sean Nelson35727f72010-01-28 23:55:12 +000014158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014159 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014160 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014161 },
14162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014163 {
14164 .vendor = "ST",
14165 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014166 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014167 .manufacture_id = ST_ID,
14168 .model_id = ST_M29F002T,
14169 .total_size = 256,
14170 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014171 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014172 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014173 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014174 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014175 .block_erasers =
14176 {
14177 {
14178 .eraseblocks = {
14179 {64 * 1024, 3},
14180 {32 * 1024, 1},
14181 {8 * 1024, 2},
14182 {16 * 1024, 1},
14183 },
14184 .block_erase = erase_sector_jedec,
14185 }, {
14186 .eraseblocks = { {256 * 1024, 1} },
14187 .block_erase = erase_chip_block_jedec,
14188 }
14189 },
Sean Nelson35727f72010-01-28 23:55:12 +000014190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014191 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014192 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014193 },
14194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014195 {
14196 .vendor = "ST",
14197 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014198 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014199 .manufacture_id = ST_ID,
14200 .model_id = ST_M29F040B,
14201 .total_size = 512,
14202 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014203 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14204 .tested = TEST_UNTESTED,
14205 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014206 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014207 .block_erasers =
14208 {
14209 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014210 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014211 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014212 }, {
14213 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014214 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014215 }
14216 },
Sean Nelson35727f72010-01-28 23:55:12 +000014217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014219 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014220 },
14221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014222 {
Sean Nelson35727f72010-01-28 23:55:12 +000014223 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014224 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014225 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014226 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014227 .manufacture_id = ST_ID,
14228 .model_id = ST_M29F400BB,
14229 .total_size = 512,
14230 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014231 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014232 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014233 .probe = probe_jedec,
14234 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014235 .block_erasers =
14236 {
14237 {
14238 .eraseblocks = {
14239 {16 * 1024, 1},
14240 {8 * 1024, 2},
14241 {32 * 1024, 1},
14242 {64 * 1024, 7},
14243 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014244 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014245 }, {
14246 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014247 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014248 }
14249 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014250 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014252 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014253 },
14254 {
14255 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14256 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014257 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014258 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014259 .manufacture_id = ST_ID,
14260 .model_id = ST_M29F400BT,
14261 .total_size = 512,
14262 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014263 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014264 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014265 .probe = probe_jedec,
14266 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014267 .block_erasers =
14268 {
14269 {
14270 .eraseblocks = {
14271 {64 * 1024, 7},
14272 {32 * 1024, 1},
14273 {8 * 1024, 2},
14274 {16 * 1024, 1},
14275 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014276 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014277 }, {
14278 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014279 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014280 }
14281 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014282 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014284 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014285 },
14286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014287 {
14288 .vendor = "ST",
14289 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014290 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014291 .manufacture_id = ST_ID,
14292 .model_id = ST_M29W010B,
14293 .total_size = 128,
14294 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014295 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014296 .tested = TEST_UNTESTED,
14297 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014298 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014299 .block_erasers =
14300 {
14301 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014302 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014303 .block_erase = erase_sector_jedec,
14304 }, {
14305 .eraseblocks = { {128 * 1024, 1} },
14306 .block_erase = erase_chip_block_jedec,
14307 }
14308 },
Sean Nelson35727f72010-01-28 23:55:12 +000014309 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014310 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014311 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014312 },
14313
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014314 {
14315 .vendor = "ST",
14316 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014317 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014318 .manufacture_id = ST_ID,
14319 .model_id = ST_M29W040B,
14320 .total_size = 512,
14321 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014322 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 .tested = TEST_UNTESTED,
14324 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014325 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014326 .block_erasers =
14327 {
14328 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014329 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014330 .block_erase = erase_sector_jedec,
14331 }, {
14332 .eraseblocks = { {512 * 1024, 1} },
14333 .block_erase = erase_chip_block_jedec,
14334 }
14335 },
Sean Nelson35727f72010-01-28 23:55:12 +000014336 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014338 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014339 },
14340
Stefan Taunereb582572012-09-21 12:52:50 +000014341 {
14342 .vendor = "ST",
14343 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014344 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000014345 .manufacture_id = ST_ID,
14346 .model_id = ST_M29W512B,
14347 .total_size = 64,
14348 .page_size = 64 * 1024,
14349 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014350 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014351 .probe = probe_jedec,
14352 .probe_timing = TIMING_ZERO,
14353 .block_erasers =
14354 {
14355 {
14356 .eraseblocks = { {64 * 1024, 1} },
14357 .block_erase = erase_chip_block_jedec,
14358 }
14359 },
14360 .write = write_jedec_1,
14361 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014362 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014363 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014365 {
14366 .vendor = "ST",
14367 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014368 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014369 .manufacture_id = ST_ID,
14370 .model_id = ST_M50FLW040A,
14371 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014372 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014373 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014374 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014375 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014376 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014377 .block_erasers =
14378 {
14379 {
Sean Nelson329bde72010-01-19 16:39:19 +000014380 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014381 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014382 {64 * 1024, 5}, /* block */
14383 {4 * 1024, 16}, /* sector */
14384 {4 * 1024, 16}, /* sector */
14385 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014386 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014387 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014388 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014389 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014390 }
14391 },
Sean Nelson28accc22010-03-19 18:47:06 +000014392 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014393 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014395 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014396 },
14397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014398 {
14399 .vendor = "ST",
14400 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014401 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014402 .manufacture_id = ST_ID,
14403 .model_id = ST_M50FLW040B,
14404 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014405 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014406 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014407 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014408 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014409 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014410 .block_erasers =
14411 {
14412 {
Sean Nelson329bde72010-01-19 16:39:19 +000014413 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014414 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014415 {4 * 1024, 16}, /* sector */
14416 {64 * 1024, 5}, /* block */
14417 {4 * 1024, 16}, /* sector */
14418 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014419 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014420 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014421 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014422 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014423 }
14424 },
Sean Nelson28accc22010-03-19 18:47:06 +000014425 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014426 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014428 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014429 },
14430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014431 {
14432 .vendor = "ST",
14433 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014434 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014435 .manufacture_id = ST_ID,
14436 .model_id = ST_M50FLW080A,
14437 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014438 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014439 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014440 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014441 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014442 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014443 .block_erasers =
14444 {
14445 {
Sean Nelson329bde72010-01-19 16:39:19 +000014446 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014447 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014448 {64 * 1024, 13}, /* block */
14449 {4 * 1024, 16}, /* sector */
14450 {4 * 1024, 16}, /* sector */
14451 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014452 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014453 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014454 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014455 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014456 }
14457 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014458 .printlock = printlock_regspace2_block_eraser_0,
14459 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014460 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014461 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014462 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014463 },
14464
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014465 {
14466 .vendor = "ST",
14467 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014468 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014469 .manufacture_id = ST_ID,
14470 .model_id = ST_M50FLW080B,
14471 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014472 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014473 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014474 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014475 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014476 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014477 .block_erasers =
14478 {
14479 {
Sean Nelson329bde72010-01-19 16:39:19 +000014480 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014481 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014482 {4 * 1024, 16}, /* sector */
14483 {64 * 1024, 13}, /* block */
14484 {4 * 1024, 16}, /* sector */
14485 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014486 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014487 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014488 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014489 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014490 }
14491 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014492 .printlock = printlock_regspace2_block_eraser_0,
14493 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014494 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014496 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014497 },
14498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014499 {
14500 .vendor = "ST",
14501 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014502 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014503 .manufacture_id = ST_ID,
14504 .model_id = ST_M50FW002,
14505 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014506 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014507 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014508 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014509 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014510 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014511 .block_erasers =
14512 {
14513 {
14514 .eraseblocks = {
14515 {64 * 1024, 3},
14516 {32 * 1024, 1},
14517 {8 * 1024, 2},
14518 {16 * 1024, 1},
14519 },
Sean Nelson28accc22010-03-19 18:47:06 +000014520 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014521 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014522 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014523 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014524 }
14525 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014526 .printlock = printlock_regspace2_block_eraser_0,
14527 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014528 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014530 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014531 },
14532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014533 {
14534 .vendor = "ST",
14535 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014536 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014537 .manufacture_id = ST_ID,
14538 .model_id = ST_M50FW016,
14539 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014540 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014541 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014542 .tested = TEST_UNTESTED,
14543 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014544 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014545 .block_erasers =
14546 {
14547 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014548 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014549 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014550 }
14551 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014552 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014553 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014555 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014556 },
14557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014558 {
14559 .vendor = "ST",
14560 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014561 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014562 .manufacture_id = ST_ID,
14563 .model_id = ST_M50FW040,
14564 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014565 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014566 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014567 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014569 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014570 .block_erasers =
14571 {
14572 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014573 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014574 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014575 }
14576 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014577 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014578 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014580 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014581 },
14582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014583 {
14584 .vendor = "ST",
14585 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014586 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014587 .manufacture_id = ST_ID,
14588 .model_id = ST_M50FW080,
14589 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014590 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014591 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014592 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014593 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014594 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014595 .block_erasers =
14596 {
14597 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014598 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014599 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014600 }
14601 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014602 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014603 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014604 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014605 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014606 },
14607
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014608 {
14609 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014610 .name = "M50LPW080",
14611 .bustype = BUS_LPC, /* A/A Mux */
14612 .manufacture_id = ST_ID,
14613 .model_id = ST_M50LPW080,
14614 .total_size = 1024,
14615 .page_size = 0,
14616 .feature_bits = FEATURE_REGISTERMAP,
14617 .tested = TEST_UNTESTED,
14618 .probe = probe_82802ab,
14619 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14620 .block_erasers =
14621 {
14622 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014623 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014624 .block_erase = erase_block_82802ab,
14625 }
14626 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014627 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014628 .write = write_82802ab,
14629 .read = read_memmapped,
14630 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14631 },
14632
14633 {
14634 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014635 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014636 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014637 .manufacture_id = ST_ID,
14638 .model_id = ST_M50LPW116,
14639 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014640 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014641 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014642 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014643 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014644 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014645 .block_erasers =
14646 {
14647 {
14648 .eraseblocks = {
14649 {4 * 1024, 16},
14650 {64 * 1024, 30},
14651 {32 * 1024, 1},
14652 {8 * 1024, 2},
14653 {16 * 1024, 1},
14654 },
Sean Nelson28accc22010-03-19 18:47:06 +000014655 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014656 }
14657 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014658 .printlock = printlock_regspace2_block_eraser_0,
14659 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014660 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014661 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014662 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014663 },
14664
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014665 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014666 .vendor = "SyncMOS/MoselVitelic",
14667 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014668 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014669 .manufacture_id = SYNCMOS_MVC_ID,
14670 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014671 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014672 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014673 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014674 .tested = TEST_UNTESTED,
14675 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014676 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014677 .block_erasers =
14678 {
14679 {
14680 .eraseblocks = { {512, 256} },
14681 .block_erase = erase_sector_jedec,
14682 }, {
14683 .eraseblocks = { {128 * 1024, 1} },
14684 .block_erase = erase_chip_block_jedec,
14685 },
14686 },
Sean Nelson35727f72010-01-28 23:55:12 +000014687 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014689 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014690 },
14691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014693 .vendor = "SyncMOS/MoselVitelic",
14694 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014695 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014696 .manufacture_id = SYNCMOS_MVC_ID,
14697 .model_id = SM_MVC_29C51001T,
14698 .total_size = 128,
14699 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014700 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014701 .tested = TEST_UNTESTED,
14702 .probe = probe_jedec,
14703 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14704 .block_erasers =
14705 {
14706 {
14707 .eraseblocks = { {512, 256} },
14708 .block_erase = erase_sector_jedec,
14709 }, {
14710 .eraseblocks = { {128 * 1024, 1} },
14711 .block_erase = erase_chip_block_jedec,
14712 },
14713 },
14714 .write = write_jedec_1,
14715 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014716 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014717 },
14718
14719 {
14720 .vendor = "SyncMOS/MoselVitelic",
14721 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014722 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014723 .manufacture_id = SYNCMOS_MVC_ID,
14724 .model_id = SM_MVC_29C51002B,
14725 .total_size = 256,
14726 .page_size = 512,
14727 .feature_bits = FEATURE_EITHER_RESET,
14728 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014729 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014730 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014731 .block_erasers =
14732 {
14733 {
14734 .eraseblocks = { {512, 512} },
14735 .block_erase = erase_sector_jedec,
14736 }, {
14737 .eraseblocks = { {256 * 1024, 1} },
14738 .block_erase = erase_chip_block_jedec,
14739 },
14740 },
Sean Nelson35727f72010-01-28 23:55:12 +000014741 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014742 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014743 },
14744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014745 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014746 .vendor = "SyncMOS/MoselVitelic",
14747 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014748 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014749 .manufacture_id = SYNCMOS_MVC_ID,
14750 .model_id = SM_MVC_29C51002T,
14751 .total_size = 256,
14752 .page_size = 512,
14753 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014754 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014755 .probe = probe_jedec,
14756 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14757 .block_erasers =
14758 {
14759 {
14760 .eraseblocks = { {512, 512} },
14761 .block_erase = erase_sector_jedec,
14762 }, {
14763 .eraseblocks = { {256 * 1024, 1} },
14764 .block_erase = erase_chip_block_jedec,
14765 },
14766 },
14767 .write = write_jedec_1,
14768 .read = read_memmapped,
14769 },
14770
14771 {
14772 .vendor = "SyncMOS/MoselVitelic",
14773 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014774 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014775 .manufacture_id = SYNCMOS_MVC_ID,
14776 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014777 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014778 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014779 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014780 .tested = TEST_UNTESTED,
14781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014782 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014783 .block_erasers =
14784 {
14785 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014786 .eraseblocks = { {1024, 512} },
14787 .block_erase = erase_sector_jedec,
14788 }, {
14789 .eraseblocks = { {512 * 1024, 1} },
14790 .block_erase = erase_chip_block_jedec,
14791 },
14792 },
14793 .write = write_jedec_1,
14794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014795 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014796 },
14797
14798 {
14799 .vendor = "SyncMOS/MoselVitelic",
14800 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014801 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014802 .manufacture_id = SYNCMOS_MVC_ID,
14803 .model_id = SM_MVC_29C51004T,
14804 .total_size = 512,
14805 .page_size = 1024,
14806 .feature_bits = FEATURE_EITHER_RESET,
14807 .tested = TEST_UNTESTED,
14808 .probe = probe_jedec,
14809 .probe_timing = TIMING_ZERO,
14810 .block_erasers =
14811 {
14812 {
14813 .eraseblocks = { {1024, 512} },
14814 .block_erase = erase_sector_jedec,
14815 }, {
14816 .eraseblocks = { {512 * 1024, 1} },
14817 .block_erase = erase_chip_block_jedec,
14818 },
14819 },
14820 .write = write_jedec_1,
14821 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014822 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014823 },
14824
14825 {
14826 .vendor = "SyncMOS/MoselVitelic",
14827 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014828 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014829 .manufacture_id = SYNCMOS_MVC_ID,
14830 .model_id = SM_MVC_29C31004B,
14831 .total_size = 512,
14832 .page_size = 1024,
14833 .feature_bits = FEATURE_EITHER_RESET,
14834 .tested = TEST_UNTESTED,
14835 .probe = probe_jedec,
14836 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14837 .block_erasers =
14838 {
14839 {
14840 .eraseblocks = { {1024, 512} },
14841 .block_erase = erase_sector_jedec,
14842 }, {
14843 .eraseblocks = { {512 * 1024, 1} },
14844 .block_erase = erase_chip_block_jedec,
14845 },
14846 },
14847 .write = write_jedec_1,
14848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014849 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014850 },
14851
14852 {
14853 .vendor = "SyncMOS/MoselVitelic",
14854 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014855 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014856 .manufacture_id = SYNCMOS_MVC_ID,
14857 .model_id = SM_MVC_29C31004T,
14858 .total_size = 512,
14859 .page_size = 1024,
14860 .feature_bits = FEATURE_EITHER_RESET,
14861 .tested = TEST_UNTESTED,
14862 .probe = probe_jedec,
14863 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14864 .block_erasers =
14865 {
14866 {
14867 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014868 .block_erase = erase_sector_jedec,
14869 }, {
14870 .eraseblocks = { {512 * 1024, 1} },
14871 .block_erase = erase_chip_block_jedec,
14872 },
14873 },
Sean Nelson35727f72010-01-28 23:55:12 +000014874 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014876 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014877 },
14878
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014879 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014880 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014881 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014882 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014883 .manufacture_id = TI_OLD_ID,
14884 .model_id = TI_TMS29F002RB,
14885 .total_size = 256,
14886 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014887 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014888 .tested = TEST_UNTESTED,
14889 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014890 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014891 .block_erasers =
14892 {
14893 {
14894 .eraseblocks = {
14895 {16 * 1024, 1},
14896 {8 * 1024, 2},
14897 {32 * 1024, 1},
14898 {64 * 1024, 3},
14899 },
14900 .block_erase = erase_sector_jedec,
14901 }, {
14902 .eraseblocks = { {256 * 1024, 1} },
14903 .block_erase = erase_chip_block_jedec,
14904 },
14905 },
Sean Nelson35727f72010-01-28 23:55:12 +000014906 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014907 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014908 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014909 },
14910
14911 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014912 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014913 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014914 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014915 .manufacture_id = TI_OLD_ID,
14916 .model_id = TI_TMS29F002RT,
14917 .total_size = 256,
14918 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014919 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014920 .tested = TEST_UNTESTED,
14921 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014922 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014923 .block_erasers =
14924 {
14925 {
14926 .eraseblocks = {
14927 {64 * 1024, 3},
14928 {32 * 1024, 1},
14929 {8 * 1024, 2},
14930 {16 * 1024, 1},
14931 },
14932 .block_erase = erase_sector_jedec,
14933 }, {
14934 .eraseblocks = { {256 * 1024, 1} },
14935 .block_erase = erase_chip_block_jedec,
14936 },
14937 },
Sean Nelson35727f72010-01-28 23:55:12 +000014938 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014939 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014940 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014941 },
14942
14943 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014944 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014945 .name = "W25Q40.V",
14946 .bustype = BUS_SPI,
14947 .manufacture_id = WINBOND_NEX_ID,
14948 .model_id = WINBOND_NEX_W25Q40_V,
14949 .total_size = 512,
14950 .page_size = 256,
14951 /* supports SFDP */
14952 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14953 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014954 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014955 .probe = probe_spi_rdid,
14956 .probe_timing = TIMING_ZERO,
14957 .block_erasers =
14958 {
14959 {
14960 .eraseblocks = { {4 * 1024, 128} },
14961 .block_erase = spi_block_erase_20,
14962 }, {
14963 .eraseblocks = { {32 * 1024, 16} },
14964 .block_erase = spi_block_erase_52,
14965 }, {
14966 .eraseblocks = { {64 * 1024, 8} },
14967 .block_erase = spi_block_erase_d8,
14968 }, {
14969 .eraseblocks = { {512 * 1024, 1} },
14970 .block_erase = spi_block_erase_60,
14971 }, {
14972 .eraseblocks = { {512 * 1024, 1} },
14973 .block_erase = spi_block_erase_c7,
14974 }
14975 },
14976 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14977 .unlock = spi_disable_blockprotect,
14978 .write = spi_chip_write_256, /* Multi I/O supported */
14979 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14980 .voltage = {2700, 3600},
14981 },
14982
14983 {
14984 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014985 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014986 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014987 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014988 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014989 .total_size = 1024,
14990 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014991 /* supports SFDP */
14992 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014994 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014995 .probe = probe_spi_rdid,
14996 .probe_timing = TIMING_ZERO,
14997 .block_erasers =
14998 {
14999 {
15000 .eraseblocks = { {4 * 1024, 256} },
15001 .block_erase = spi_block_erase_20,
15002 }, {
15003 .eraseblocks = { {32 * 1024, 32} },
15004 .block_erase = spi_block_erase_52,
15005 }, {
15006 .eraseblocks = { {64 * 1024, 16} },
15007 .block_erase = spi_block_erase_d8,
15008 }, {
15009 .eraseblocks = { {1024 * 1024, 1} },
15010 .block_erase = spi_block_erase_60,
15011 }, {
15012 .eraseblocks = { {1024 * 1024, 1} },
15013 .block_erase = spi_block_erase_c7,
15014 }
15015 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015016 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015017 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015018 .write = spi_chip_write_256,
15019 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015020 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015021 },
15022
15023 {
15024 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015025 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015026 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015027 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015028 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015029 .total_size = 2048,
15030 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015031 /* supports SFDP */
15032 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015033 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000015034 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015035 .probe = probe_spi_rdid,
15036 .probe_timing = TIMING_ZERO,
15037 .block_erasers =
15038 {
15039 {
15040 .eraseblocks = { {4 * 1024, 512} },
15041 .block_erase = spi_block_erase_20,
15042 }, {
15043 .eraseblocks = { {32 * 1024, 64} },
15044 .block_erase = spi_block_erase_52,
15045 }, {
15046 .eraseblocks = { {64 * 1024, 32} },
15047 .block_erase = spi_block_erase_d8,
15048 }, {
15049 .eraseblocks = { {2 * 1024 * 1024, 1} },
15050 .block_erase = spi_block_erase_60,
15051 }, {
15052 .eraseblocks = { {2 * 1024 * 1024, 1} },
15053 .block_erase = spi_block_erase_c7,
15054 }
15055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015057 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015058 .write = spi_chip_write_256,
15059 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015060 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015061 },
15062
15063 {
15064 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015065 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015066 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015067 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015068 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015069 .total_size = 4096,
15070 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015071 /* supports SFDP */
15072 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015073 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015074 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015075 .probe = probe_spi_rdid,
15076 .probe_timing = TIMING_ZERO,
15077 .block_erasers =
15078 {
15079 {
15080 .eraseblocks = { {4 * 1024, 1024} },
15081 .block_erase = spi_block_erase_20,
15082 }, {
15083 .eraseblocks = { {32 * 1024, 128} },
15084 .block_erase = spi_block_erase_52,
15085 }, {
15086 .eraseblocks = { {64 * 1024, 64} },
15087 .block_erase = spi_block_erase_d8,
15088 }, {
15089 .eraseblocks = { {4 * 1024 * 1024, 1} },
15090 .block_erase = spi_block_erase_60,
15091 }, {
15092 .eraseblocks = { {4 * 1024 * 1024, 1} },
15093 .block_erase = spi_block_erase_c7,
15094 }
15095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015096 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015097 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015098 .write = spi_chip_write_256,
15099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015100 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000015101 },
15102
15103 {
15104 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015105 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015106 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000015107 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015108 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000015109 .total_size = 8192,
15110 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015111 /* supports SFDP */
15112 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015113 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000015114 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000015115 .probe = probe_spi_rdid,
15116 .probe_timing = TIMING_ZERO,
15117 .block_erasers =
15118 {
15119 {
15120 .eraseblocks = { {4 * 1024, 2048} },
15121 .block_erase = spi_block_erase_20,
15122 }, {
15123 .eraseblocks = { {32 * 1024, 256} },
15124 .block_erase = spi_block_erase_52,
15125 }, {
15126 .eraseblocks = { {64 * 1024, 128} },
15127 .block_erase = spi_block_erase_d8,
15128 }, {
15129 .eraseblocks = { {8 * 1024 * 1024, 1} },
15130 .block_erase = spi_block_erase_60,
15131 }, {
15132 .eraseblocks = { {8 * 1024 * 1024, 1} },
15133 .block_erase = spi_block_erase_c7,
15134 }
15135 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015136 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015137 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000015138 .write = spi_chip_write_256,
15139 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015140 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015141 },
15142
15143 {
15144 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015145 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015146 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015147 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015148 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015149 .total_size = 16384,
15150 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015151 /* supports SFDP */
15152 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015154 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015155 .probe = probe_spi_rdid,
15156 .probe_timing = TIMING_ZERO,
15157 .block_erasers =
15158 {
15159 {
15160 .eraseblocks = { {4 * 1024, 4096} },
15161 .block_erase = spi_block_erase_20,
15162 }, {
15163 .eraseblocks = { {32 * 1024, 512} },
15164 .block_erase = spi_block_erase_52,
15165 }, {
15166 .eraseblocks = { {64 * 1024, 256} },
15167 .block_erase = spi_block_erase_d8,
15168 }, {
15169 .eraseblocks = { {16 * 1024 * 1024, 1} },
15170 .block_erase = spi_block_erase_60,
15171 }, {
15172 .eraseblocks = { {16 * 1024 * 1024, 1} },
15173 .block_erase = spi_block_erase_c7,
15174 }
15175 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015176 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015177 .unlock = spi_disable_blockprotect,
15178 .write = spi_chip_write_256,
15179 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015180 .voltage = {2700, 3600},
15181 },
15182
15183 {
15184 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020015185 .name = "W25Q256.V",
15186 .bustype = BUS_SPI,
15187 .manufacture_id = WINBOND_NEX_ID,
15188 .model_id = WINBOND_NEX_W25Q256_V,
15189 .total_size = 32768,
15190 .page_size = 256,
15191 /* supports SFDP */
15192 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15193 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010015194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
15195 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
15196 .tested = TEST_UNTESTED,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015197 .probe = probe_spi_rdid,
15198 .probe_timing = TIMING_ZERO,
15199 .block_erasers =
15200 {
15201 {
15202 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020015203 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015204 }, {
15205 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020015206 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015207 }, {
15208 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020015209 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015210 }, {
15211 .eraseblocks = { {32 * 1024 * 1024, 1} },
15212 .block_erase = spi_block_erase_60,
15213 }, {
15214 .eraseblocks = { {32 * 1024 * 1024, 1} },
15215 .block_erase = spi_block_erase_c7,
15216 }
15217 },
15218 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15219 .unlock = spi_disable_blockprotect,
15220 .write = spi_chip_write_256,
15221 .read = spi_chip_read,
15222 .voltage = {2700, 3600},
15223 },
15224
15225 {
15226 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015227 .name = "W25Q20.W",
15228 .bustype = BUS_SPI,
15229 .manufacture_id = WINBOND_NEX_ID,
15230 .model_id = WINBOND_NEX_W25Q20_W,
15231 .total_size = 256,
15232 .page_size = 256,
15233 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15235 .tested = TEST_UNTESTED,
15236 .probe = probe_spi_rdid,
15237 .probe_timing = TIMING_ZERO,
15238 .block_erasers =
15239 {
15240 {
15241 .eraseblocks = { {4 * 1024, 64} },
15242 .block_erase = spi_block_erase_20,
15243 }, {
15244 .eraseblocks = { {32 * 1024, 8} },
15245 .block_erase = spi_block_erase_52,
15246 }, {
15247 .eraseblocks = { {64 * 1024, 4} },
15248 .block_erase = spi_block_erase_d8,
15249 }, {
15250 .eraseblocks = { {256 * 1024, 1} },
15251 .block_erase = spi_block_erase_60,
15252 }, {
15253 .eraseblocks = { {256 * 1024, 1} },
15254 .block_erase = spi_block_erase_c7,
15255 }
15256 },
15257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15258 .unlock = spi_disable_blockprotect,
15259 .write = spi_chip_write_256,
15260 .read = spi_chip_read,
15261 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15262 },
15263
15264 {
15265 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020015266 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015267 .bustype = BUS_SPI,
15268 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020015269 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015270 .total_size = 512,
15271 .page_size = 256,
15272 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15274 .tested = TEST_UNTESTED,
15275 .probe = probe_spi_rdid,
15276 .probe_timing = TIMING_ZERO,
15277 .block_erasers =
15278 {
15279 {
15280 .eraseblocks = { {4 * 1024, 128} },
15281 .block_erase = spi_block_erase_20,
15282 }, {
15283 .eraseblocks = { {32 * 1024, 16} },
15284 .block_erase = spi_block_erase_52,
15285 }, {
15286 .eraseblocks = { {64 * 1024, 8} },
15287 .block_erase = spi_block_erase_d8,
15288 }, {
15289 .eraseblocks = { {512 * 1024, 1} },
15290 .block_erase = spi_block_erase_60,
15291 }, {
15292 .eraseblocks = { {512 * 1024, 1} },
15293 .block_erase = spi_block_erase_c7,
15294 }
15295 },
15296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15297 .unlock = spi_disable_blockprotect,
15298 .write = spi_chip_write_256,
15299 .read = spi_chip_read,
15300 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15301 },
15302
15303 {
15304 .vendor = "Winbond",
David Hendricksc699f5c2018-03-11 17:29:49 -070015305 .name = "W25Q80BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015306 .bustype = BUS_SPI,
15307 .manufacture_id = WINBOND_NEX_ID,
David Hendricksc699f5c2018-03-11 17:29:49 -070015308 .model_id = WINBOND_NEX_W25Q80BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015309 .total_size = 1024,
15310 .page_size = 256,
15311 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15312 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015313 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015314 .probe = probe_spi_rdid,
15315 .probe_timing = TIMING_ZERO,
15316 .block_erasers =
15317 {
15318 {
15319 .eraseblocks = { {4 * 1024, 256} },
15320 .block_erase = spi_block_erase_20,
15321 }, {
15322 .eraseblocks = { {32 * 1024, 32} },
15323 .block_erase = spi_block_erase_52,
15324 }, {
15325 .eraseblocks = { {64 * 1024, 16} },
15326 .block_erase = spi_block_erase_d8,
15327 }, {
15328 .eraseblocks = { {1 * 1024 * 1024, 1} },
15329 .block_erase = spi_block_erase_60,
15330 }, {
15331 .eraseblocks = { {1 * 1024 * 1024, 1} },
15332 .block_erase = spi_block_erase_c7,
15333 }
15334 },
15335 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15336 .unlock = spi_disable_blockprotect,
15337 .write = spi_chip_write_256,
15338 .read = spi_chip_read,
15339 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15340 },
Nico Huber25683572018-03-30 13:50:13 +020015341
15342 {
15343 .vendor = "Winbond",
15344 .name = "W25Q40EW",
15345 .bustype = BUS_SPI,
15346 .manufacture_id = WINBOND_NEX_ID,
15347 .model_id = WINBOND_NEX_W25Q40EW,
15348 .total_size = 512,
15349 .page_size = 256,
15350 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15351 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15352 .tested = TEST_UNTESTED,
15353 .probe = probe_spi_rdid,
15354 .probe_timing = TIMING_ZERO,
15355 .block_erasers =
15356 {
15357 {
15358 .eraseblocks = { {4 * 1024, 128} },
15359 .block_erase = spi_block_erase_20,
15360 }, {
15361 .eraseblocks = { {32 * 1024, 16} },
15362 .block_erase = spi_block_erase_52,
15363 }, {
15364 .eraseblocks = { {64 * 1024, 8} },
15365 .block_erase = spi_block_erase_d8,
15366 }, {
15367 .eraseblocks = { {512 * 1024, 1} },
15368 .block_erase = spi_block_erase_60,
15369 }, {
15370 .eraseblocks = { {512 * 1024, 1} },
15371 .block_erase = spi_block_erase_c7,
15372 }
15373 },
15374 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15375 .unlock = spi_disable_blockprotect,
15376 .write = spi_chip_write_256,
15377 .read = spi_chip_read,
15378 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15379 },
15380
Stanislav Sedovf5775442018-03-07 14:16:51 -080015381 {
15382 .vendor = "Winbond",
15383 .name = "W25Q80EW",
15384 .bustype = BUS_SPI,
15385 .manufacture_id = WINBOND_NEX_ID,
15386 .model_id = WINBOND_NEX_W25Q80EW,
15387 .total_size = 1024,
15388 .page_size = 256,
15389 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15390 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15391 .tested = TEST_OK_PREW,
15392 .probe = probe_spi_rdid,
15393 .probe_timing = TIMING_ZERO,
15394 .block_erasers =
15395 {
15396 {
15397 .eraseblocks = { {4 * 1024, 256} },
15398 .block_erase = spi_block_erase_20,
15399 }, {
15400 .eraseblocks = { {32 * 1024, 32} },
15401 .block_erase = spi_block_erase_52,
15402 }, {
15403 .eraseblocks = { {64 * 1024, 16} },
15404 .block_erase = spi_block_erase_d8,
15405 }, {
15406 .eraseblocks = { {1 * 1024 * 1024, 1} },
15407 .block_erase = spi_block_erase_60,
15408 }, {
15409 .eraseblocks = { {1 * 1024 * 1024, 1} },
15410 .block_erase = spi_block_erase_c7,
15411 }
15412 },
15413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15414 .unlock = spi_disable_blockprotect,
15415 .write = spi_chip_write_256,
15416 .read = spi_chip_read,
15417 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
15418 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015419
15420 {
15421 .vendor = "Winbond",
15422 .name = "W25Q16.W",
15423 .bustype = BUS_SPI,
15424 .manufacture_id = WINBOND_NEX_ID,
15425 .model_id = WINBOND_NEX_W25Q16_W,
15426 .total_size = 2048,
15427 .page_size = 256,
15428 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15429 /* QPI enable 0x38, disable 0xFF */
15430 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15431 .tested = TEST_UNTESTED,
15432 .probe = probe_spi_rdid,
15433 .probe_timing = TIMING_ZERO,
15434 .block_erasers =
15435 {
15436 {
15437 .eraseblocks = { {4 * 1024, 512} },
15438 .block_erase = spi_block_erase_20,
15439 }, {
15440 .eraseblocks = { {32 * 1024, 64} },
15441 .block_erase = spi_block_erase_52,
15442 }, {
15443 .eraseblocks = { {64 * 1024, 32} },
15444 .block_erase = spi_block_erase_d8,
15445 }, {
15446 .eraseblocks = { {2 * 1024 * 1024, 1} },
15447 .block_erase = spi_block_erase_60,
15448 }, {
15449 .eraseblocks = { {2 * 1024 * 1024, 1} },
15450 .block_erase = spi_block_erase_c7,
15451 }
15452 },
15453 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15454 .unlock = spi_disable_blockprotect,
15455 .write = spi_chip_write_256,
15456 .read = spi_chip_read,
15457 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15458 },
15459
15460 {
15461 .vendor = "Winbond",
15462 .name = "W25Q32.W",
15463 .bustype = BUS_SPI,
15464 .manufacture_id = WINBOND_NEX_ID,
15465 .model_id = WINBOND_NEX_W25Q32_W,
15466 .total_size = 4096,
15467 .page_size = 256,
15468 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15469 /* QPI enable 0x38, disable 0xFF */
15470 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15471 .tested = TEST_OK_PREW,
15472 .probe = probe_spi_rdid,
15473 .probe_timing = TIMING_ZERO,
15474 .block_erasers =
15475 {
15476 {
15477 .eraseblocks = { {4 * 1024, 1024} },
15478 .block_erase = spi_block_erase_20,
15479 }, {
15480 .eraseblocks = { {32 * 1024, 128} },
15481 .block_erase = spi_block_erase_52,
15482 }, {
15483 .eraseblocks = { {64 * 1024, 64} },
15484 .block_erase = spi_block_erase_d8,
15485 }, {
15486 .eraseblocks = { {4 * 1024 * 1024, 1} },
15487 .block_erase = spi_block_erase_60,
15488 }, {
15489 .eraseblocks = { {4 * 1024 * 1024, 1} },
15490 .block_erase = spi_block_erase_c7,
15491 }
15492 },
15493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15494 .unlock = spi_disable_blockprotect,
15495 .write = spi_chip_write_256,
15496 .read = spi_chip_read,
15497 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15498 },
15499
15500 {
15501 .vendor = "Winbond",
15502 .name = "W25Q64.W",
15503 .bustype = BUS_SPI,
15504 .manufacture_id = WINBOND_NEX_ID,
15505 .model_id = WINBOND_NEX_W25Q64_W,
15506 .total_size = 8192,
15507 .page_size = 256,
15508 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15509 /* QPI enable 0x38, disable 0xFF */
15510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015511 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015512 .probe = probe_spi_rdid,
15513 .probe_timing = TIMING_ZERO,
15514 .block_erasers =
15515 {
15516 {
15517 .eraseblocks = { {4 * 1024, 2048} },
15518 .block_erase = spi_block_erase_20,
15519 }, {
15520 .eraseblocks = { {32 * 1024, 256} },
15521 .block_erase = spi_block_erase_52,
15522 }, {
15523 .eraseblocks = { {64 * 1024, 128} },
15524 .block_erase = spi_block_erase_d8,
15525 }, {
15526 .eraseblocks = { {8 * 1024 * 1024, 1} },
15527 .block_erase = spi_block_erase_60,
15528 }, {
15529 .eraseblocks = { {8 * 1024 * 1024, 1} },
15530 .block_erase = spi_block_erase_c7,
15531 }
15532 },
15533 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15534 .unlock = spi_disable_blockprotect,
15535 .write = spi_chip_write_256,
15536 .read = spi_chip_read,
15537 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015538 },
15539
15540 {
15541 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020015542 .name = "W25Q128.W",
15543 .bustype = BUS_SPI,
15544 .manufacture_id = WINBOND_NEX_ID,
15545 .model_id = WINBOND_NEX_W25Q128_W,
15546 .total_size = 16384,
15547 .page_size = 256,
15548 /* supports SFDP */
15549 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080015551 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020015552 .probe = probe_spi_rdid,
15553 .probe_timing = TIMING_ZERO,
15554 .block_erasers =
15555 {
15556 {
15557 .eraseblocks = { {4 * 1024, 4096} },
15558 .block_erase = spi_block_erase_20,
15559 }, {
15560 .eraseblocks = { {32 * 1024, 512} },
15561 .block_erase = spi_block_erase_52,
15562 }, {
15563 .eraseblocks = { {64 * 1024, 256} },
15564 .block_erase = spi_block_erase_d8,
15565 }, {
15566 .eraseblocks = { {16 * 1024 * 1024, 1} },
15567 .block_erase = spi_block_erase_60,
15568 }, {
15569 .eraseblocks = { {16 * 1024 * 1024, 1} },
15570 .block_erase = spi_block_erase_c7,
15571 }
15572 },
15573 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15574 .unlock = spi_disable_blockprotect,
15575 .write = spi_chip_write_256,
15576 .read = spi_chip_read,
15577 .voltage = {1650, 1950},
15578 },
15579
15580 {
15581 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015582 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015583 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015584 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015585 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015586 .total_size = 128,
15587 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015588 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015589 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015590 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015591 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015592 .block_erasers =
15593 {
15594 {
15595 .eraseblocks = { {4 * 1024, 32} },
15596 .block_erase = spi_block_erase_20,
15597 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015598 .eraseblocks = { {64 * 1024, 2} },
15599 .block_erase = spi_block_erase_d8,
15600 }, {
15601 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015602 .block_erase = spi_block_erase_c7,
15603 }
15604 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015605 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015606 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015607 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015608 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015609 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015610 },
15611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015612 {
15613 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015614 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015615 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015616 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015617 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015618 .total_size = 256,
15619 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015620 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015621 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015622 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015623 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015624 .block_erasers =
15625 {
15626 {
15627 .eraseblocks = { {4 * 1024, 64} },
15628 .block_erase = spi_block_erase_20,
15629 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015630 .eraseblocks = { {64 * 1024, 4} },
15631 .block_erase = spi_block_erase_d8,
15632 }, {
15633 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015634 .block_erase = spi_block_erase_c7,
15635 }
15636 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015637 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015638 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015639 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015640 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015641 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015642 },
15643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015644 {
15645 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015646 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015647 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015648 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015649 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015650 .total_size = 512,
15651 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015652 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015653 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015654 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015655 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015656 .block_erasers =
15657 {
15658 {
15659 .eraseblocks = { {4 * 1024, 128} },
15660 .block_erase = spi_block_erase_20,
15661 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015662 .eraseblocks = { {64 * 1024, 8} },
15663 .block_erase = spi_block_erase_d8,
15664 }, {
15665 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015666 .block_erase = spi_block_erase_c7,
15667 }
15668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015670 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015671 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015673 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015674 },
15675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015676 {
15677 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015678 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015680 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015681 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015682 .total_size = 1024,
15683 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015684 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000015685 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015686 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015687 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015688 .block_erasers =
15689 {
15690 {
15691 .eraseblocks = { {4 * 1024, 256} },
15692 .block_erase = spi_block_erase_20,
15693 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015694 .eraseblocks = { {64 * 1024, 16} },
15695 .block_erase = spi_block_erase_d8,
15696 }, {
15697 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015698 .block_erase = spi_block_erase_c7,
15699 }
15700 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015701 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015702 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015703 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015704 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015705 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015706 },
15707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015708 {
15709 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015710 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015711 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000015712 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015713 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000015714 .total_size = 2048,
15715 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015716 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000015717 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000015718 .probe = probe_spi_rdid,
15719 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015720 .block_erasers =
15721 {
15722 {
15723 .eraseblocks = { {4 * 1024, 512} },
15724 .block_erase = spi_block_erase_20,
15725 }, {
15726 .eraseblocks = { {32 * 1024, 64} },
15727 .block_erase = spi_block_erase_52,
15728 }, {
15729 .eraseblocks = { {64 * 1024, 32} },
15730 .block_erase = spi_block_erase_d8,
15731 }, {
15732 .eraseblocks = { {2 * 1024 * 1024, 1} },
15733 .block_erase = spi_block_erase_60,
15734 }, {
15735 .eraseblocks = { {2 * 1024 * 1024, 1} },
15736 .block_erase = spi_block_erase_c7,
15737 }
15738 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015739 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015740 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000015741 .write = spi_chip_write_256,
15742 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015743 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000015744 },
15745
15746 {
15747 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015748 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015749 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015750 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015751 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000015752 .total_size = 4096,
15753 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015754 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015755 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015756 .probe = probe_spi_rdid,
15757 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015758 .block_erasers =
15759 {
15760 {
15761 .eraseblocks = { {4 * 1024, 1024} },
15762 .block_erase = spi_block_erase_20,
15763 }, {
15764 .eraseblocks = { {32 * 1024, 128} },
15765 .block_erase = spi_block_erase_52,
15766 }, {
15767 .eraseblocks = { {64 * 1024, 64} },
15768 .block_erase = spi_block_erase_d8,
15769 }, {
15770 .eraseblocks = { {4 * 1024 * 1024, 1} },
15771 .block_erase = spi_block_erase_60,
15772 }, {
15773 .eraseblocks = { {4 * 1024 * 1024, 1} },
15774 .block_erase = spi_block_erase_c7,
15775 }
15776 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015777 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015778 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015779 .write = spi_chip_write_256,
15780 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015781 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015782 },
15783
15784 {
15785 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015786 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015787 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015788 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015789 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000015790 .total_size = 8192,
15791 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015792 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015793 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015794 .probe = probe_spi_rdid,
15795 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015796 .block_erasers =
15797 {
15798 {
15799 .eraseblocks = { {4 * 1024, 2048} },
15800 .block_erase = spi_block_erase_20,
15801 }, {
15802 .eraseblocks = { {32 * 1024, 256} },
15803 .block_erase = spi_block_erase_52,
15804 }, {
15805 .eraseblocks = { {64 * 1024, 128} },
15806 .block_erase = spi_block_erase_d8,
15807 }, {
15808 .eraseblocks = { {8 * 1024 * 1024, 1} },
15809 .block_erase = spi_block_erase_60,
15810 }, {
15811 .eraseblocks = { {8 * 1024 * 1024, 1} },
15812 .block_erase = spi_block_erase_c7,
15813 }
15814 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015815 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015816 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015817 .write = spi_chip_write_256,
15818 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015819 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015820 },
15821
15822 {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080015823 .vendor = "Winbond",
15824 .name = "W25P80",
15825 .bustype = BUS_SPI,
15826 .manufacture_id = WINBOND_NEX_ID,
15827 .model_id = WINBOND_NEX_W25P80,
15828 .total_size = 1024,
15829 .page_size = 256,
15830 .feature_bits = FEATURE_WRSR_WREN,
15831 .tested = TEST_UNTESTED,
15832 .probe = probe_spi_rdid,
15833 .probe_timing = TIMING_ZERO,
15834 .block_erasers =
15835 {
15836 {
15837 .eraseblocks = { {64 * 1024, 16} },
15838 .block_erase = spi_block_erase_d8,
15839 }, {
15840 .eraseblocks = { {1024 * 1024, 1} },
15841 .block_erase = spi_block_erase_c7,
15842 }
15843 },
15844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15845 .unlock = spi_disable_blockprotect,
15846 .write = spi_chip_write_256,
15847 .read = spi_chip_read, /* Fast read (0x0B) supported */
15848 .voltage = {2700, 3600},
15849 },
15850
15851 {
15852 .vendor = "Winbond",
15853 .name = "W25P16",
15854 .bustype = BUS_SPI,
15855 .manufacture_id = WINBOND_NEX_ID,
15856 .model_id = WINBOND_NEX_W25P16,
15857 .total_size = 2048,
15858 .page_size = 256,
15859 .feature_bits = FEATURE_WRSR_WREN,
15860 .tested = TEST_UNTESTED,
15861 .probe = probe_spi_rdid,
15862 .probe_timing = TIMING_ZERO,
15863 .block_erasers =
15864 {
15865 {
15866 .eraseblocks = { {64 * 1024, 32} },
15867 .block_erase = spi_block_erase_d8,
15868 }, {
15869 .eraseblocks = { {2048 * 1024, 1} },
15870 .block_erase = spi_block_erase_c7,
15871 }
15872 },
15873 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15874 .unlock = spi_disable_blockprotect,
15875 .write = spi_chip_write_256,
15876 .read = spi_chip_read, /* Fast read (0x0B) supported */
15877 .voltage = {2700, 3600},
15878 },
15879
15880 {
15881 .vendor = "Winbond",
15882 .name = "W25P32",
15883 .bustype = BUS_SPI,
15884 .manufacture_id = WINBOND_NEX_ID,
15885 .model_id = WINBOND_NEX_W25P32,
15886 .total_size = 4096,
15887 .page_size = 256,
15888 .feature_bits = FEATURE_WRSR_WREN,
15889 .tested = TEST_UNTESTED,
15890 .probe = probe_spi_rdid,
15891 .probe_timing = TIMING_ZERO,
15892 .block_erasers =
15893 {
15894 {
15895 .eraseblocks = { {64 * 1024, 64} },
15896 .block_erase = spi_block_erase_d8,
15897 }, {
15898 .eraseblocks = { {4096 * 1024, 1} },
15899 .block_erase = spi_block_erase_c7,
15900 }
15901 },
15902 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15903 .unlock = spi_disable_blockprotect,
15904 .write = spi_chip_write_256,
15905 .read = spi_chip_read, /* Fast read (0x0B) supported */
15906 .voltage = {2700, 3600},
15907 },
15908 {
Zheng Bao1db2b752009-11-26 11:05:01 +000015909 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000015910 .name = "W29C512A/W29EE512",
15911 .bustype = BUS_PARALLEL,
15912 .manufacture_id = WINBOND_ID,
15913 .model_id = WINBOND_W29C512A,
15914 .total_size = 64,
15915 .page_size = 128,
15916 .feature_bits = FEATURE_LONG_RESET,
15917 .tested = TEST_OK_PREW,
15918 .probe = probe_jedec,
15919 .probe_timing = 10,
15920 .block_erasers =
15921 {
15922 {
15923 .eraseblocks = { {64 * 1024, 1} },
15924 .block_erase = erase_chip_block_jedec,
15925 }
15926 },
15927 .write = write_jedec,
15928 .read = read_memmapped,
15929 .voltage = {4500, 5500},
15930 },
15931
15932 {
15933 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015934 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015935 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015936 .manufacture_id = WINBOND_ID,
15937 .model_id = WINBOND_W29C010,
15938 .total_size = 128,
15939 .page_size = 128,
15940 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015941 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015942 .probe = probe_w29ee011,
15943 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
15944 .block_erasers =
15945 {
15946 {
15947 .eraseblocks = { {128 * 1024, 1} },
15948 .block_erase = erase_chip_block_jedec,
15949 }
15950 },
15951 .write = write_jedec,
15952 .read = read_memmapped,
15953 },
15954
15955 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
15956 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015957 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015958 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015959 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015960 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015961 .total_size = 128,
15962 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015963 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000015964 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015965 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015966 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015967 .block_erasers =
15968 {
15969 {
15970 .eraseblocks = { {128 * 1024, 1} },
15971 .block_erase = erase_chip_block_jedec,
15972 }
15973 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015974 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015975 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015976 },
15977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015978 {
15979 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015980 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015981 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015982 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015983 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015984 .total_size = 256,
15985 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015986 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015987 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015988 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015989 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015990 .block_erasers =
15991 {
15992 {
15993 .eraseblocks = { {256 * 1024, 1} },
15994 .block_erase = erase_chip_block_jedec,
15995 }
15996 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015997 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015999 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016000 },
16001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016002 {
16003 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016004 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016005 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016006 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016007 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016008 .total_size = 512,
16009 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000016010 .feature_bits = FEATURE_LONG_RESET,
16011 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016012 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016013 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016014 .block_erasers =
16015 {
16016 {
16017 .eraseblocks = { {512 * 1024, 1} },
16018 .block_erase = erase_chip_block_jedec,
16019 }
16020 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016021 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016023 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016024 },
16025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016026 {
16027 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016028 .name = "W29GL032CB",
16029 .bustype = BUS_PARALLEL,
16030 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16031 .model_id = WINBOND_W29GL032CB,
16032 .total_size = 4096,
16033 .page_size = 128 * 1024, /* actual page size is 16 */
16034 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16035 .tested = TEST_UNTESTED,
16036 .probe = probe_jedec_29gl,
16037 .probe_timing = TIMING_ZERO,
16038 .block_erasers =
16039 {
16040 {
16041 .eraseblocks = {
16042 {8 * 1024, 8},
16043 {64 * 1024, 63},
16044 },
16045 .block_erase = erase_sector_jedec,
16046 }, {
16047 .eraseblocks = { {4 * 1024 * 1024, 1} },
16048 .block_erase = erase_chip_block_jedec,
16049 },
16050 },
16051 .write = write_jedec_1,
16052 .read = read_memmapped,
16053 .voltage = {2700, 3600},
16054 },
16055
16056 {
16057 .vendor = "Winbond",
16058 .name = "W29GL032CT",
16059 .bustype = BUS_PARALLEL,
16060 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16061 .model_id = WINBOND_W29GL032CT,
16062 .total_size = 4096,
16063 .page_size = 128 * 1024, /* actual page size is 16 */
16064 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16065 .tested = TEST_UNTESTED,
16066 .probe = probe_jedec_29gl,
16067 .probe_timing = TIMING_ZERO,
16068 .block_erasers =
16069 {
16070 {
16071 .eraseblocks = {
16072 {64 * 1024, 63},
16073 {8 * 1024, 8},
16074 },
16075 .block_erase = erase_sector_jedec,
16076 }, {
16077 .eraseblocks = { {4 * 1024 * 1024, 1} },
16078 .block_erase = erase_chip_block_jedec,
16079 },
16080 },
16081 .write = write_jedec_1,
16082 .read = read_memmapped,
16083 .voltage = {2700, 3600},
16084 },
16085
16086 {
16087 .vendor = "Winbond",
16088 .name = "W29GL032CH/L",
16089 .bustype = BUS_PARALLEL,
16090 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16091 .model_id = WINBOND_W29GL032CHL,
16092 .total_size = 4096,
16093 .page_size = 128 * 1024, /* actual page size is 16 */
16094 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16095 .tested = TEST_UNTESTED,
16096 .probe = probe_jedec_29gl,
16097 .probe_timing = TIMING_ZERO,
16098 .block_erasers =
16099 {
16100 {
16101 .eraseblocks = { {64 * 1024, 64} },
16102 .block_erase = erase_sector_jedec,
16103 }, {
16104 .eraseblocks = { {4 * 1024 * 1024, 1} },
16105 .block_erase = erase_chip_block_jedec,
16106 },
16107 },
16108 .write = write_jedec_1,
16109 .read = read_memmapped,
16110 .voltage = {2700, 3600},
16111 },
16112
16113 {
16114 .vendor = "Winbond",
16115 .name = "W29GL064CB",
16116 .bustype = BUS_PARALLEL,
16117 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16118 .model_id = WINBOND_W29GL064CB,
16119 .total_size = 8192,
16120 .page_size = 128 * 1024, /* actual page size is 16 */
16121 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16122 .tested = TEST_UNTESTED,
16123 .probe = probe_jedec_29gl,
16124 .probe_timing = TIMING_ZERO,
16125 .block_erasers =
16126 {
16127 {
16128 .eraseblocks = {
16129 {8 * 1024, 8},
16130 {64 * 1024, 127},
16131 },
16132 .block_erase = erase_sector_jedec,
16133 }, {
16134 .eraseblocks = { {8 * 1024 * 1024, 1} },
16135 .block_erase = erase_chip_block_jedec,
16136 },
16137 },
16138 .write = write_jedec_1,
16139 .read = read_memmapped,
16140 .voltage = {2700, 3600},
16141 },
16142
16143 {
16144 .vendor = "Winbond",
16145 .name = "W29GL064CT",
16146 .bustype = BUS_PARALLEL,
16147 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16148 .model_id = WINBOND_W29GL064CT,
16149 .total_size = 8192,
16150 .page_size = 128 * 1024, /* actual page size is 16 */
16151 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16152 .tested = TEST_UNTESTED,
16153 .probe = probe_jedec_29gl,
16154 .probe_timing = TIMING_ZERO,
16155 .block_erasers =
16156 {
16157 {
16158 .eraseblocks = {
16159 {64 * 1024, 127},
16160 {8 * 1024, 8},
16161 },
16162 .block_erase = erase_sector_jedec,
16163 }, {
16164 .eraseblocks = { {8 * 1024 * 1024, 1} },
16165 .block_erase = erase_chip_block_jedec,
16166 },
16167 },
16168 .write = write_jedec_1,
16169 .read = read_memmapped,
16170 .voltage = {2700, 3600},
16171 },
16172
16173 {
16174 .vendor = "Winbond",
16175 .name = "W29GL064CH/L",
16176 .bustype = BUS_PARALLEL,
16177 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16178 .model_id = WINBOND_W29GL064CHL,
16179 .total_size = 8192,
16180 .page_size = 128 * 1024, /* actual page size is 16 */
16181 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16182 .tested = TEST_UNTESTED,
16183 .probe = probe_jedec_29gl,
16184 .probe_timing = TIMING_ZERO,
16185 .block_erasers =
16186 {
16187 {
16188 .eraseblocks = { {64 * 1024, 128} },
16189 .block_erase = erase_sector_jedec,
16190 }, {
16191 .eraseblocks = { {8 * 1024 * 1024, 1} },
16192 .block_erase = erase_chip_block_jedec,
16193 },
16194 },
16195 .write = write_jedec_1,
16196 .read = read_memmapped,
16197 .voltage = {2700, 3600},
16198 },
16199
16200 {
16201 .vendor = "Winbond",
16202 .name = "W29GL128C",
16203 .bustype = BUS_PARALLEL,
16204 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16205 .model_id = WINBOND_W29GL128CHL,
16206 .total_size = 16384,
16207 .page_size = 128 * 1024, /* actual page size is 16 */
16208 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16209 .tested = TEST_UNTESTED,
16210 .probe = probe_jedec_29gl,
16211 .probe_timing = TIMING_ZERO,
16212 .block_erasers =
16213 {
16214 {
16215 .eraseblocks = { {128 * 1024, 128} },
16216 .block_erase = erase_sector_jedec,
16217 }, {
16218 .eraseblocks = { {16 * 1024 * 1024, 1} },
16219 .block_erase = erase_chip_block_jedec,
16220 },
16221 },
16222 .write = write_jedec_1,
16223 .read = read_memmapped,
16224 .voltage = {2700, 3600},
16225 },
16226
16227 {
16228 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000016229 .name = "W39F010",
16230 .bustype = BUS_PARALLEL,
16231 .manufacture_id = WINBOND_ID,
16232 .model_id = WINBOND_W39F010,
16233 .total_size = 128,
16234 .page_size = 4 * 1024,
16235 .feature_bits = FEATURE_EITHER_RESET,
16236 .tested = TEST_OK_PREW,
16237 .probe = probe_jedec,
16238 .probe_timing = 10,
16239 .block_erasers =
16240 {
16241 {
16242 .eraseblocks = { {4 * 1024, 32} },
16243 .block_erase = erase_block_jedec,
16244 }, {
16245 .eraseblocks = { {128 * 1024, 1} },
16246 .block_erase = erase_chip_block_jedec,
16247 }
16248 },
16249 .printlock = printlock_w39f010,
16250 .write = write_jedec_1,
16251 .read = read_memmapped,
16252 .voltage = {4500, 5500},
16253 },
16254
16255 {
16256 .vendor = "Winbond",
16257 .name = "W39L010",
16258 .bustype = BUS_PARALLEL,
16259 .manufacture_id = WINBOND_ID,
16260 .model_id = WINBOND_W39L010,
16261 .total_size = 128,
16262 .page_size = 4 * 1024,
16263 .feature_bits = FEATURE_EITHER_RESET,
16264 .tested = TEST_UNTESTED,
16265 .probe = probe_jedec,
16266 .probe_timing = 10,
16267 .block_erasers =
16268 {
16269 {
16270 .eraseblocks = { {4 * 1024, 32} },
16271 .block_erase = erase_block_jedec,
16272 }, {
16273 .eraseblocks = { {128 * 1024, 1} },
16274 .block_erase = erase_chip_block_jedec,
16275 }
16276 },
16277 .printlock = printlock_w39l010,
16278 .write = write_jedec_1,
16279 .read = read_memmapped,
16280 .voltage = {3000, 3600},
16281 },
16282
16283 {
16284 .vendor = "Winbond",
16285 .name = "W39L020",
16286 .bustype = BUS_PARALLEL,
16287 .manufacture_id = WINBOND_ID,
16288 .model_id = WINBOND_W39L020,
16289 .total_size = 256,
16290 .page_size = 4 * 1024,
16291 .feature_bits = FEATURE_EITHER_RESET,
16292 .tested = TEST_UNTESTED,
16293 .probe = probe_jedec,
16294 .probe_timing = 10,
16295 .block_erasers =
16296 {
16297 {
16298 .eraseblocks = { {4 * 1024, 64} },
16299 .block_erase = erase_block_jedec,
16300 }, {
16301 .eraseblocks = { {64 * 1024, 4} },
16302 .block_erase = erase_sector_jedec,
16303 }, {
16304 .eraseblocks = { {256 * 1024, 1} },
16305 .block_erase = erase_chip_block_jedec,
16306 }
16307 },
16308 .printlock = printlock_w39l020,
16309 .write = write_jedec_1,
16310 .read = read_memmapped,
16311 .voltage = {3000, 3600},
16312 },
16313
16314 {
16315 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000016316 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016317 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000016318 .manufacture_id = WINBOND_ID,
16319 .model_id = WINBOND_W39L040,
16320 .total_size = 512,
16321 .page_size = 64 * 1024,
16322 .feature_bits = FEATURE_EITHER_RESET,
16323 .tested = TEST_OK_PR,
16324 .probe = probe_jedec,
16325 .probe_timing = 10,
16326 .block_erasers =
16327 {
16328 {
16329 .eraseblocks = { {4 * 1024, 128} },
16330 .block_erase = erase_block_jedec,
16331 }, {
16332 .eraseblocks = { {64 * 1024, 8} },
16333 .block_erase = erase_sector_jedec,
16334 }, {
16335 .eraseblocks = { {512 * 1024, 1} },
16336 .block_erase = erase_chip_block_jedec,
16337 }
16338 },
16339 .printlock = printlock_w39l040,
16340 .write = write_jedec_1,
16341 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016342 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000016343 },
16344
16345 {
16346 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016347 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016348 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016349 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016350 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016351 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016352 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016353 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016354 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016355 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000016356 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016357 .block_erasers =
16358 {
16359 {
16360 .eraseblocks = { {64 * 1024, 8} },
16361 .block_erase = erase_sector_jedec,
16362 }, {
16363 .eraseblocks = { {512 * 1024, 1} },
16364 .block_erase = erase_chip_block_jedec,
16365 }
16366 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016367 .printlock = printlock_w39v040a,
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 = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016376 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016377 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016378 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016379 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016380 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016381 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016382 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016383 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000016384 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +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 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016395 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000016396 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016398 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016399 },
16400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016401 {
16402 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016403 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016404 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016405 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016406 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016407 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016408 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016409 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016410 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000016411 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016412 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016413 .block_erasers =
16414 {
16415 {
16416 .eraseblocks = { {64 * 1024, 8} },
16417 .block_erase = erase_sector_jedec,
16418 }, {
16419 .eraseblocks = { {512 * 1024, 1} },
16420 .block_erase = erase_chip_block_jedec,
16421 }
16422 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000016423 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000016424 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016425 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016426 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016427 },
16428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016429 {
16430 .vendor = "Winbond",
16431 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016432 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016433 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016434 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016435 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016436 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000016437 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016438 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016439 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016440 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016441 .block_erasers =
16442 {
16443 {
16444 .eraseblocks = { {4 * 1024, 128} },
16445 .block_erase = erase_block_jedec,
16446 }, {
16447 .eraseblocks = { {64 * 1024, 8} },
16448 .block_erase = erase_sector_jedec,
16449 }, {
16450 .eraseblocks = { {512 * 1024, 1} },
16451 .block_erase = erase_chip_block_jedec,
16452 }
16453 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016454 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016455 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016456 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016458 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016459 },
16460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016461 {
16462 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016463 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016464 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016465 .manufacture_id = WINBOND_ID,
16466 .model_id = WINBOND_W39V040B,
16467 .total_size = 512,
16468 .page_size = 64 * 1024,
16469 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000016470 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016471 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016472 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016473 .block_erasers =
16474 {
16475 {
16476 .eraseblocks = { {64 * 1024, 8} },
16477 .block_erase = erase_sector_jedec,
16478 }, {
16479 .eraseblocks = { {512 * 1024, 1} },
16480 .block_erase = erase_chip_block_jedec,
16481 }
16482 },
16483 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016484 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016485 .write = write_jedec_1,
16486 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016487 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016488 },
16489
16490 {
16491 .vendor = "Winbond",
16492 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016493 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016494 .manufacture_id = WINBOND_ID,
16495 .model_id = WINBOND_W39V040C,
16496 .total_size = 512,
16497 .page_size = 64 * 1024,
16498 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000016499 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016500 .probe = probe_jedec,
16501 .probe_timing = 10,
16502 .block_erasers =
16503 {
16504 {
16505 .eraseblocks = { {64 * 1024, 8} },
16506 .block_erase = erase_sector_jedec,
16507 }, {
16508 .eraseblocks = { {512 * 1024, 1} },
16509 .block_erase = erase_chip_block_jedec,
16510 }
16511 },
16512 .printlock = printlock_w39v040fc,
16513 .write = write_jedec_1,
16514 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016515 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016516 },
16517
16518 {
16519 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016520 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016521 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016522 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016523 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016524 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016525 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016526 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000016527 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016528 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000016529 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016530 .block_erasers =
16531 {
16532 {
16533 .eraseblocks = { {64 * 1024, 16} },
16534 .block_erase = erase_sector_jedec,
16535 }, {
16536 .eraseblocks = { {1024 * 1024, 1} },
16537 .block_erase = erase_chip_block_jedec,
16538 }
16539 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016540 .printlock = printlock_w39v080a,
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",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016548 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016549 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016550 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016551 .model_id = WINBOND_W49F002U,
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 Tauner716e0982011-07-25 20:38:52 +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 {128 * 1024, 1},
16563 {96 * 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 = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016576 },
16577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016578 {
16579 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016580 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016581 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016582 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016583 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016584 .total_size = 256,
16585 .page_size = 128,
16586 .feature_bits = FEATURE_EITHER_RESET,
16587 .tested = TEST_OK_PROBE,
16588 .probe = probe_jedec,
16589 .probe_timing = 10,
16590 .block_erasers =
16591 {
16592 {
16593 .eraseblocks = { {256 * 1024, 1} },
16594 .block_erase = erase_chip_block_jedec,
16595 }
16596 },
16597 .write = write_jedec_1,
16598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016599 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016600 },
16601
16602 {
16603 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016604 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016605 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016606 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016607 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016608 .total_size = 256,
16609 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016610 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016611 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016612 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016613 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016614 .block_erasers =
16615 {
16616 {
16617 .eraseblocks = {
16618 {64 * 1024, 3},
16619 {32 * 1024, 1},
16620 {8 * 1024, 2},
16621 {16 * 1024, 1},
16622 },
16623 .block_erase = erase_sector_jedec,
16624 }, {
16625 .eraseblocks = { {256 * 1024, 1} },
16626 .block_erase = erase_chip_block_jedec,
16627 }
16628 },
Sean Nelson35727f72010-01-28 23:55:12 +000016629 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016631 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016632 },
16633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016634 {
16635 .vendor = "Winbond",
16636 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016637 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016638 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016639 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016640 .total_size = 256,
16641 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016642 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000016643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016644 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016645 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016646 .block_erasers =
16647 {
16648 {
16649 .eraseblocks = {
16650 {64 * 1024, 3},
16651 {32 * 1024, 1},
16652 {8 * 1024, 2},
16653 {16 * 1024, 1},
16654 },
16655 .block_erase = erase_sector_jedec,
16656 }, {
16657 .eraseblocks = { {256 * 1024, 1} },
16658 .block_erase = erase_chip_block_jedec,
16659 }
16660 },
Sean Nelson35727f72010-01-28 23:55:12 +000016661 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016663 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016664 },
16665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016666 {
16667 .vendor = "Winbond",
16668 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016669 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016670 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016671 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016672 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016673 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016674 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016675 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016676 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016677 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016678 .block_erasers =
16679 {
16680 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016681 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016682 .block_erase = erase_sector_jedec,
16683 }, {
16684 .eraseblocks = { {1024 * 1024, 1} },
16685 .block_erase = erase_chip_block_jedec,
16686 }
16687 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016688 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016689 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016690 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016691 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016692 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016693 },
16694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016695 {
16696 .vendor = "Winbond",
16697 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016698 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016699 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016700 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016701 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016702 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016703 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016704 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016705 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016706 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016707 .block_erasers =
16708 {
16709 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016710 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016711 .block_erase = erase_sector_jedec,
16712 }, {
16713 .eraseblocks = { {512 * 1024, 1} },
16714 .block_erase = erase_chip_block_jedec,
16715 }
16716 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016717 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000016718 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016719 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016720 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016721 },
nybashcbb46e22018-02-11 17:53:49 -080016722
16723 {
16724 .vendor = "Zetta Device",
David Hendricksa72d5a92018-02-11 17:58:44 -080016725 .name = "ZD25D20",
16726 .bustype = BUS_SPI,
16727 .manufacture_id = ZETTADEVICE_ID,
16728 .model_id = ZETTADEVICE_ZD25D20,
16729 .total_size = 256,
16730 .page_size = 256,
16731 .feature_bits = FEATURE_WRSR_WREN,
16732 .tested = TEST_UNTESTED,
16733 .probe = probe_spi_rdid,
16734 .probe_timing = TIMING_ZERO,
16735 .block_erasers =
16736 {
16737 {
16738 .eraseblocks = { {4 * 1024, 64} },
16739 .block_erase = spi_block_erase_20,
16740 }, {
16741 .eraseblocks = { {32 * 1024, 8} },
16742 .block_erase = spi_block_erase_52,
16743 }, {
16744 .eraseblocks = { {64 * 1024, 4} },
16745 .block_erase = spi_block_erase_d8,
16746 }, {
16747 .eraseblocks = { {256 * 1024, 1} },
16748 .block_erase = spi_block_erase_60,
16749 }, {
16750 .eraseblocks = { {256 * 1024, 1} },
16751 .block_erase = spi_block_erase_c7,
16752 }
16753 },
16754 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16755 .unlock = spi_disable_blockprotect,
16756 .write = spi_chip_write_256,
16757 .read = spi_chip_read,
16758 .voltage = {2700, 3600},
16759 },
16760
16761 {
16762 .vendor = "Zetta Device",
nybashcbb46e22018-02-11 17:53:49 -080016763 .name = "ZD25D40",
16764 .bustype = BUS_SPI,
16765 .manufacture_id = ZETTADEVICE_ID,
16766 .model_id = ZETTADEVICE_ZD25D40,
16767 .total_size = 512,
16768 .page_size = 256,
16769 .feature_bits = FEATURE_WRSR_WREN,
16770 .tested = TEST_UNTESTED,
16771 .probe = probe_spi_rdid,
16772 .probe_timing = TIMING_ZERO,
16773 .block_erasers =
16774 {
16775 {
16776 .eraseblocks = { {4 * 1024, 128} },
16777 .block_erase = spi_block_erase_20,
16778 }, {
16779 .eraseblocks = { {32 * 1024, 16} },
16780 .block_erase = spi_block_erase_52,
16781 }, {
16782 .eraseblocks = { {64 * 1024, 8} },
16783 .block_erase = spi_block_erase_d8,
16784 }, {
16785 .eraseblocks = { {512 * 1024, 1} },
16786 .block_erase = spi_block_erase_60,
16787 }, {
16788 .eraseblocks = { {512 * 1024, 1} },
16789 .block_erase = spi_block_erase_c7,
16790 }
16791 },
16792 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16793 .unlock = spi_disable_blockprotect,
16794 .write = spi_chip_write_256,
16795 .read = spi_chip_read,
16796 .voltage = {2700, 3600},
16797 },
16798
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016799 {
16800 .vendor = "Unknown",
16801 .name = "SFDP-capable chip",
16802 .bustype = BUS_SPI,
16803 .manufacture_id = GENERIC_MANUF_ID,
16804 .model_id = SFDP_DEVICE_ID,
16805 /* We present our own "report this" text hence we do not
16806 * want the default "This flash part has status UNTESTED..."
16807 * text to be printed. */
16808 .tested = TEST_OK_PREW,
16809 .probe = probe_spi_sfdp,
16810 .unlock = spi_disable_blockprotect, /* is this safe? */
16811 .read = spi_chip_read,
16812 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000016813 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016814 /* Everything below will be set by the probing function. */
16815 .write = NULL,
16816 .total_size = 0,
16817 .page_size = 0,
16818 .feature_bits = 0,
16819 .block_erasers = {},
16820 },
FENG yu ningff692fb2008-12-08 18:15:10 +000016821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016822 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000016823 .vendor = "Programmer",
16824 .name = "Opaque flash chip",
16825 .bustype = BUS_PROG,
16826 .manufacture_id = PROGMANUF_ID,
16827 .model_id = PROGDEV_ID,
16828 .total_size = 0,
16829 .page_size = 256,
16830 /* probe is assumed to work, rest will be filled in by probe */
16831 .tested = TEST_OK_PROBE,
16832 .probe = probe_opaque,
16833 /* eraseblock sizes will be set by the probing function */
16834 .block_erasers =
16835 {
16836 {
16837 .block_erase = erase_opaque,
16838 }
16839 },
16840 .write = write_opaque,
16841 .read = read_opaque,
16842 },
16843
16844 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016845 .vendor = "AMIC",
16846 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016847 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016848 .manufacture_id = AMIC_ID,
16849 .model_id = GENERIC_DEVICE_ID,
16850 .total_size = 0,
16851 .page_size = 256,
16852 .tested = TEST_BAD_PREW,
16853 .probe = probe_spi_rdid4,
16854 .probe_timing = TIMING_ZERO,
16855 .write = NULL,
16856 .read = NULL,
16857 },
16858
16859 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016860 .vendor = "Atmel",
16861 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016862 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016863 .manufacture_id = ATMEL_ID,
16864 .model_id = GENERIC_DEVICE_ID,
16865 .total_size = 0,
16866 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016867 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016868 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016869 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016870 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016871 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016872 },
16873
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016874 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000016875 .vendor = "Eon",
16876 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016877 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016878 .manufacture_id = EON_ID_NOPREFIX,
16879 .model_id = GENERIC_DEVICE_ID,
16880 .total_size = 0,
16881 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016882 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016883 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016884 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016885 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016886 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016887 },
16888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016889 {
16890 .vendor = "Macronix",
16891 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016892 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000016893 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016894 .model_id = GENERIC_DEVICE_ID,
16895 .total_size = 0,
16896 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016897 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016898 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016899 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016900 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016901 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016902 },
16903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016904 {
16905 .vendor = "PMC",
16906 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016907 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016908 .manufacture_id = PMC_ID,
16909 .model_id = GENERIC_DEVICE_ID,
16910 .total_size = 0,
16911 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016912 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016913 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016914 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016915 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016916 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016917 },
16918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016919 {
16920 .vendor = "SST",
16921 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016922 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016923 .manufacture_id = SST_ID,
16924 .model_id = GENERIC_DEVICE_ID,
16925 .total_size = 0,
16926 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016927 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016928 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016929 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016930 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016931 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016932 },
16933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016934 {
16935 .vendor = "ST",
16936 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016937 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016938 .manufacture_id = ST_ID,
16939 .model_id = GENERIC_DEVICE_ID,
16940 .total_size = 0,
16941 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016942 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016943 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016944 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016945 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016946 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016947 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000016948
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016949 {
Sean Nelson118e1d62009-11-24 02:08:11 +000016950 .vendor = "Sanyo",
16951 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016952 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000016953 .manufacture_id = SANYO_ID,
16954 .model_id = GENERIC_DEVICE_ID,
16955 .total_size = 0,
16956 .page_size = 256,
16957 .tested = TEST_BAD_PREW,
16958 .probe = probe_spi_rdid,
16959 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000016960 .write = NULL,
16961 .read = NULL,
16962 },
16963
16964 {
Stefan Taunereb582572012-09-21 12:52:50 +000016965 .vendor = "Winbond",
16966 .name = "unknown Winbond (ex Nexcom) SPI chip",
16967 .bustype = BUS_SPI,
16968 .manufacture_id = WINBOND_NEX_ID,
16969 .model_id = GENERIC_DEVICE_ID,
16970 .total_size = 0,
16971 .page_size = 256,
16972 .tested = TEST_BAD_PREW,
16973 .probe = probe_spi_rdid,
16974 .probe_timing = TIMING_ZERO,
16975 .write = NULL,
16976 .read = NULL,
16977 },
16978
16979 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016980 .vendor = "Generic",
16981 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016982 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016983 .manufacture_id = GENERIC_MANUF_ID,
16984 .model_id = GENERIC_DEVICE_ID,
16985 .total_size = 0,
16986 .page_size = 256,
16987 .tested = TEST_BAD_PREW,
16988 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016989 .write = NULL,
16990 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000016991
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016992 {
16993 .vendor = "Generic",
16994 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016995 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016996 .manufacture_id = GENERIC_MANUF_ID,
16997 .model_id = GENERIC_DEVICE_ID,
16998 .total_size = 0,
16999 .page_size = 256,
17000 .tested = TEST_BAD_PREW,
17001 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017002 .write = NULL,
17003 },
17004
Stefan Tauner96658be2014-05-26 22:05:31 +000017005 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000017006};
Stefan Tauner96658be2014-05-26 22:05:31 +000017007
17008const unsigned int flashchips_size = ARRAY_SIZE(flashchips);