blob: 74b58baaa93209e3d71d4d70a0db494a84263118 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000567 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000601 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000636 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000671 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000706 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000741 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000781 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000816 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000851 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000889 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000927 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000959 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000991 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001023 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001055 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001087 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001119 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001278 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001385 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001398 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
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_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001712 .name = "AT25DL081",
1713 .bustype = BUS_SPI,
1714 .manufacture_id = ATMEL_ID,
1715 .model_id = ATMEL_AT25DF081,
1716 .total_size = 1024,
1717 .page_size = 256,
1718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 256} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 32} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 16} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {1 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {1 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
1743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1744 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1745 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1746 .voltage = {1650, 1950},
1747 },
1748
1749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DL161",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25DL161,
1755 .total_size = 2048,
1756 .page_size = 256,
1757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1759 .tested = TEST_UNTESTED,
1760 .probe = probe_spi_rdid,
1761 .probe_timing = TIMING_ZERO,
1762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 512} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 64} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 32} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {2 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
1781 .printlock = spi_prettyprint_status_register_at25df_sec,
1782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1783 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1784 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1785 .voltage = {1650, 1950},
1786 },
1787
1788 {
1789 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001790 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001794 .total_size = 2048,
1795 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001796 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
1800 .probe_timing = TIMING_ZERO,
1801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 512} },
1805 .block_erase = spi_block_erase_20,
1806 }, {
1807 .eraseblocks = { {32 * 1024, 64} },
1808 .block_erase = spi_block_erase_52,
1809 }, {
1810 .eraseblocks = { {64 * 1024, 32} },
1811 .block_erase = spi_block_erase_d8,
1812 }, {
1813 .eraseblocks = { {2 * 1024 * 1024, 1} },
1814 .block_erase = spi_block_erase_60,
1815 }, {
1816 .eraseblocks = { {2 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_c7,
1818 }
1819 },
1820 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001821 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001822 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001824 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001825 },
1826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001829 .name = "AT25F512",
1830 .bustype = BUS_SPI,
1831 .manufacture_id = ATMEL_ID,
1832 .model_id = ATMEL_AT25F512,
1833 .total_size = 64,
1834 .page_size = 256,
1835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001836 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001837 .probe = probe_spi_at25f,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {32 * 1024, 2} },
1843 .block_erase = spi_block_erase_52,
1844 }, {
1845 .eraseblocks = { {64 * 1024, 1} },
1846 .block_erase = spi_block_erase_62,
1847 }
1848 },
1849 .printlock = spi_prettyprint_status_register_at25f,
1850 .unlock = spi_disable_blockprotect_at25f,
1851 .write = spi_chip_write_256,
1852 .read = spi_chip_read,
1853 .voltage = {2700, 3600},
1854 },
1855
1856 {
1857 .vendor = "Atmel",
1858 .name = "AT25F512A",
1859 .bustype = BUS_SPI,
1860 .manufacture_id = ATMEL_ID,
1861 .model_id = ATMEL_AT25F512A,
1862 .total_size = 64,
1863 .page_size = 128,
1864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001865 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001866 .probe = probe_spi_at25f,
1867 .probe_timing = TIMING_ZERO,
1868 .block_erasers =
1869 {
1870 {
1871 .eraseblocks = { {32 * 1024, 2} },
1872 .block_erase = spi_block_erase_52,
1873 }, {
1874 .eraseblocks = { {64 * 1024, 1} },
1875 .block_erase = spi_block_erase_62,
1876 }
1877 },
1878 .printlock = spi_prettyprint_status_register_at25f512a,
1879 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1880 .unlock = spi_disable_blockprotect_at25f512a,
1881 .write = spi_chip_write_256,
1882 .read = spi_chip_read,
1883 .voltage = {2700, 3600},
1884 },
1885
1886 {
1887 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001888 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 64,
1893 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001894 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .tested = TEST_UNTESTED,
1897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001898 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {4 * 1024, 16} },
1903 .block_erase = spi_block_erase_20,
1904 }, {
1905 .eraseblocks = { {32 * 1024, 2} },
1906 .block_erase = spi_block_erase_52,
1907 }, {
1908 .eraseblocks = { {32 * 1024, 2} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 1} },
1912 .block_erase = spi_block_erase_60,
1913 }, {
1914 .eraseblocks = { {64 * 1024, 1} },
1915 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001916 }, {
1917 .eraseblocks = { {64 * 1024, 1} },
1918 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001919 }
1920 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001921 .printlock = spi_prettyprint_status_register_at25f512b,
1922 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001926 },
1927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 {
1929 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001930 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1931 * All other properties seem to be the same.*/
1932 .name = "AT25F1024(A)",
1933 .bustype = BUS_SPI,
1934 .manufacture_id = ATMEL_ID,
1935 .model_id = ATMEL_AT25F1024,
1936 .total_size = 128,
1937 .page_size = 256,
1938 .feature_bits = FEATURE_WRSR_WREN,
1939 .tested = TEST_OK_PREW,
1940 .probe = probe_spi_at25f,
1941 .probe_timing = TIMING_ZERO,
1942 .block_erasers =
1943 {
1944 {
1945 .eraseblocks = { {32 * 1024, 4} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {128 * 1024, 1} },
1949 .block_erase = spi_block_erase_62,
1950 }
1951 },
1952 .printlock = spi_prettyprint_status_register_at25f,
1953 .unlock = spi_disable_blockprotect_at25f,
1954 .write = spi_chip_write_256,
1955 .read = spi_chip_read,
1956 .voltage = {2700, 3600},
1957 },
1958
1959 {
1960 .vendor = "Atmel",
1961 .name = "AT25F2048",
1962 .bustype = BUS_SPI,
1963 .manufacture_id = ATMEL_ID,
1964 .model_id = ATMEL_AT25F2048,
1965 .total_size = 256,
1966 .page_size = 256,
1967 .feature_bits = FEATURE_WRSR_WREN,
1968 .tested = TEST_UNTESTED,
1969 .probe = probe_spi_at25f,
1970 .probe_timing = TIMING_ZERO,
1971 .block_erasers =
1972 {
1973 {
1974 .eraseblocks = { {64 * 1024, 4} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {256 * 1024, 1} },
1978 .block_erase = spi_block_erase_62,
1979 }
1980 },
1981 .printlock = spi_prettyprint_status_register_at25f,
1982 .unlock = spi_disable_blockprotect_at25f,
1983 .write = spi_chip_write_256,
1984 .read = spi_chip_read,
1985 .voltage = {2700, 3600},
1986 },
1987
1988 {
1989 .vendor = "Atmel",
1990 .name = "AT25F4096",
1991 .bustype = BUS_SPI,
1992 .manufacture_id = ATMEL_ID,
1993 .model_id = ATMEL_AT25F4096,
1994 .total_size = 512,
1995 .page_size = 256,
1996 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00001997 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001998 .probe = probe_spi_at25f,
1999 .probe_timing = TIMING_ZERO,
2000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 8} },
2004 .block_erase = spi_block_erase_52,
2005 }, {
2006 .eraseblocks = { {512 * 1024, 1} },
2007 .block_erase = spi_block_erase_62,
2008 }
2009 },
2010 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002011 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2012 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002013 .write = spi_chip_write_256,
2014 .read = spi_chip_read,
2015 .voltage = {2700, 3600},
2016 },
2017
2018 {
2019 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002020 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002023 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .total_size = 128,
2025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002026 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002029 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002030 .block_erasers =
2031 {
2032 {
2033 .eraseblocks = { {4 * 1024, 32} },
2034 .block_erase = spi_block_erase_20,
2035 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002036 .eraseblocks = { {4 * 1024, 32} },
2037 .block_erase = spi_block_erase_d7,
2038 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002039 .eraseblocks = { {32 * 1024, 4} },
2040 .block_erase = spi_block_erase_52,
2041 }, {
2042 .eraseblocks = { {32 * 1024, 4} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {128 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {128 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 }
2051 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002052 .printlock = spi_prettyprint_status_register_at25fs010,
2053 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002054 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002056 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002057 },
2058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 {
2060 .vendor = "Atmel",
2061 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002064 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .total_size = 512,
2066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002067 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .tested = TEST_UNTESTED,
2069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002070 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002071 .block_erasers =
2072 {
2073 {
2074 .eraseblocks = { {4 * 1024, 128} },
2075 .block_erase = spi_block_erase_20,
2076 }, {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_d8,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_60,
2085 }, {
2086 .eraseblocks = { {512 * 1024, 1} },
2087 .block_erase = spi_block_erase_c7,
2088 }
2089 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002090 .printlock = spi_prettyprint_status_register_at25fs040,
2091 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002095 },
2096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 {
2098 .vendor = "Atmel",
2099 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 512,
2104 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002105 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002108 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002109 .block_erasers =
2110 {
2111 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002112 .eraseblocks = { {256, 2048} },
2113 .block_erase = spi_block_erase_81,
2114 }, {
2115 .eraseblocks = { {2 * 1024, 256} },
2116 .block_erase = spi_block_erase_50,
2117 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002121 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002122 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002123 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002124 .write = spi_chip_write_1,
2125 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002126 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002127 },
2128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .total_size = 1024,
2136 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002137 .feature_bits = FEATURE_WRSR_WREN,
2138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002141 .block_erasers =
2142 {
2143 {
2144 .eraseblocks = { {4 * 1024, 256} },
2145 .block_erase = spi_block_erase_20,
2146 }, {
2147 .eraseblocks = { {32 * 1024, 32} },
2148 .block_erase = spi_block_erase_52,
2149 }, {
2150 .eraseblocks = { {64 * 1024, 16} },
2151 .block_erase = spi_block_erase_d8,
2152 }, {
2153 .eraseblocks = { {1024 * 1024, 1} },
2154 .block_erase = spi_block_erase_60,
2155 }, {
2156 .eraseblocks = { {1024 * 1024, 1} },
2157 .block_erase = spi_block_erase_c7,
2158 }
2159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002160 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002161 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Atmel",
2169 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002172 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .total_size = 2048,
2174 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002178 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = { {4 * 1024, 512} },
2183 .block_erase = spi_block_erase_20,
2184 }, {
2185 .eraseblocks = { {32 * 1024, 64} },
2186 .block_erase = spi_block_erase_52,
2187 }, {
2188 .eraseblocks = { {64 * 1024, 32} },
2189 .block_erase = spi_block_erase_d8,
2190 }, {
2191 .eraseblocks = { {2 * 1024 * 1024, 1} },
2192 .block_erase = spi_block_erase_60,
2193 }, {
2194 .eraseblocks = { {2 * 1024 * 1024, 1} },
2195 .block_erase = spi_block_erase_c7,
2196 }
2197 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002198 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002199 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002203 },
2204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 {
2206 .vendor = "Atmel",
2207 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002210 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .total_size = 2048,
2212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002217 .block_erasers =
2218 {
2219 {
2220 .eraseblocks = { {4 * 1024, 512} },
2221 .block_erase = spi_block_erase_20,
2222 }, {
2223 .eraseblocks = { {32 * 1024, 64} },
2224 .block_erase = spi_block_erase_52,
2225 }, {
2226 .eraseblocks = { {64 * 1024, 32} },
2227 .block_erase = spi_block_erase_d8,
2228 }, {
2229 .eraseblocks = { {2 * 1024 * 1024, 1} },
2230 .block_erase = spi_block_erase_60,
2231 }, {
2232 .eraseblocks = { {2 * 1024 * 1024, 1} },
2233 .block_erase = spi_block_erase_c7,
2234 }
2235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002236 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002237 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002238 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002241 },
2242
2243 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 /*{
2245 .vendor = "Atmel",
2246 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002249 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .total_size = 4096,
2251 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .tested = TEST_UNTESTED,
2254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002255 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002256 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .read = spi_chip_read,
2260 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Atmel",
2264 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002267 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 512,
2269 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002270 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002271 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002273 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002274 .block_erasers =
2275 {
2276 {
2277 .eraseblocks = { {4 * 1024, 128} },
2278 .block_erase = spi_block_erase_20,
2279 }, {
2280 .eraseblocks = { {32 * 1024, 16} },
2281 .block_erase = spi_block_erase_52,
2282 }, {
2283 .eraseblocks = { {64 * 1024, 8} },
2284 .block_erase = spi_block_erase_d8,
2285 }, {
2286 .eraseblocks = { {512 * 1024, 1} },
2287 .block_erase = spi_block_erase_60,
2288 }, {
2289 .eraseblocks = { {512 * 1024, 1} },
2290 .block_erase = spi_block_erase_c7,
2291 }
2292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .write = NULL /* Incompatible Page write */,
2295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002297 },
2298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 {
2300 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002301 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002302 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002303 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002304 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002305 .total_size = 64,
2306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002307 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002308 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002309 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002310 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = { {64 * 1024, 1} },
2315 .block_erase = erase_chip_block_jedec,
2316 }
2317 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002318 .write = write_jedec,
2319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002320 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002321 },
2322
2323 {
2324 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002325 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002326 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002328 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002329 .total_size = 128,
2330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002332 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002333 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002334 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002335 .block_erasers =
2336 {
2337 {
2338 .eraseblocks = { {128 * 1024, 1} },
2339 .block_erase = erase_chip_block_jedec,
2340 }
2341 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002342 .write = write_jedec, /* FIXME */
2343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002344 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002345 },
2346
2347 {
2348 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002352 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .total_size = 256,
2354 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002355 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002358 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002359 .block_erasers =
2360 {
2361 {
2362 .eraseblocks = { {256 * 1024, 1} },
2363 .block_erase = erase_chip_block_jedec,
2364 }
2365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002369 },
2370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 {
2372 .vendor = "Atmel",
2373 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002379 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .tested = TEST_UNTESTED,
2381 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002382 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {512 * 1024, 1} },
2387 .block_erase = erase_chip_block_jedec,
2388 }
2389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002393 },
2394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 {
2396 .vendor = "Atmel",
2397 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002399 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002400 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002401 .total_size = 16896 /* No power of two sizes */,
2402 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002403 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002404 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2405 .feature_bits = FEATURE_OTP,
2406 .tested = TEST_UNTESTED,
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,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = {
2413 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2414 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2415 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2416 },
2417 .block_erase = spi_erase_at45cs_sector,
2418 }
2419 },
2420 .printlock = spi_prettyprint_status_register_plain,
2421 .gran = write_gran_1056bytes,
2422 .write = spi_write_at45db,
2423 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002424 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002427 {
2428 .vendor = "Atmel",
2429 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002432 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002433 .total_size = 128 /* or 132, determined from status register */,
2434 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002435 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002436 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2437 .feature_bits = FEATURE_OTP,
2438 .tested = TEST_UNTESTED,
2439 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002440 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002441 .block_erasers =
2442 {
2443 {
2444 .eraseblocks = { {256, 512} },
2445 .block_erase = spi_erase_at45db_page,
2446 }, {
2447 .eraseblocks = { {8 * 256, 512/8} },
2448 .block_erase = spi_erase_at45db_block,
2449 }, {
2450 .eraseblocks = {
2451 {8 * 256, 1},
2452 {120 * 256, 1},
2453 {128 * 256, 3},
2454 },
2455 .block_erase = spi_erase_at45db_sector
2456 }, {
2457 .eraseblocks = { {128 * 1024, 1} },
2458 .block_erase = spi_erase_at45db_chip,
2459 }
2460 },
2461 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2462 .printlock = spi_prettyprint_status_register_at45db,
2463 /* granularity will be set by the probing function. */
2464 .write = spi_write_at45db,
2465 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002466 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002467 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 {
2470 .vendor = "Atmel",
2471 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002472 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002473 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002474 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002475 .total_size = 256 /* or 264, determined from status register */,
2476 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002477 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002478 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2479 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002480 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002482 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = { {256, 1024} },
2487 .block_erase = spi_erase_at45db_page,
2488 }, {
2489 .eraseblocks = { {8 * 256, 1024/8} },
2490 .block_erase = spi_erase_at45db_block,
2491 }, {
2492 .eraseblocks = {
2493 {8 * 256, 1},
2494 {120 * 256, 1},
2495 {128 * 256, 7},
2496 },
2497 .block_erase = spi_erase_at45db_sector
2498 }, {
2499 .eraseblocks = { {256 * 1024, 1} },
2500 .block_erase = spi_erase_at45db_chip,
2501 }
2502 },
2503 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2504 .printlock = spi_prettyprint_status_register_at45db,
2505 /* granularity will be set by the probing function. */
2506 .write = spi_write_at45db,
2507 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002509 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002511 {
2512 .vendor = "Atmel",
2513 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002514 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002516 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 .total_size = 512 /* or 528, determined from status register */,
2518 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002519 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2521 .feature_bits = FEATURE_OTP,
2522 .tested = TEST_OK_PREW,
2523 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {256, 2048} },
2529 .block_erase = spi_erase_at45db_page,
2530 }, {
2531 .eraseblocks = { {8 * 256, 2048/8} },
2532 .block_erase = spi_erase_at45db_block,
2533 }, {
2534 .eraseblocks = {
2535 {8 * 256, 1},
2536 {248 * 256, 1},
2537 {256 * 256, 7},
2538 },
2539 .block_erase = spi_erase_at45db_sector
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_erase_at45db_chip,
2543 }
2544 },
2545 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2546 .printlock = spi_prettyprint_status_register_at45db,
2547 /* granularity will be set by the probing function. */
2548 .write = spi_write_at45db,
2549 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2550 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002551 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 {
2554 .vendor = "Atmel",
2555 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 .total_size = 1024 /* or 1056, determined from status register */,
2560 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002561 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2563 .feature_bits = FEATURE_OTP,
2564 .tested = TEST_UNTESTED,
2565 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {256, 4096} },
2571 .block_erase = spi_erase_at45db_page,
2572 }, {
2573 .eraseblocks = { {8 * 256, 4096/8} },
2574 .block_erase = spi_erase_at45db_block,
2575 }, {
2576 .eraseblocks = {
2577 {8 * 256, 1},
2578 {248 * 256, 1},
2579 {256 * 256, 15},
2580 },
2581 .block_erase = spi_erase_at45db_sector
2582 }, {
2583 .eraseblocks = { {1024 * 1024, 1} },
2584 .block_erase = spi_erase_at45db_chip,
2585 }
2586 },
2587 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2588 .printlock = spi_prettyprint_status_register_at45db,
2589 /* granularity will be set by the probing function. */
2590 .write = spi_write_at45db,
2591 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002592 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002593 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 {
2596 .vendor = "Atmel",
2597 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 .total_size = 2048 /* or 2112, determined from status register */,
2602 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002603 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002604 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2605 .feature_bits = FEATURE_OTP,
2606 .tested = TEST_OK_PREW,
2607 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {512, 4096} },
2613 .block_erase = spi_erase_at45db_page,
2614 }, {
2615 .eraseblocks = { {8 * 512, 4096/8} },
2616 .block_erase = spi_erase_at45db_block,
2617 }, {
2618 .eraseblocks = {
2619 {8 * 512, 1},
2620 {248 * 512, 1},
2621 {256 * 512, 15},
2622 },
2623 .block_erase = spi_erase_at45db_sector
2624 }, {
2625 .eraseblocks = { {2048 * 1024, 1} },
2626 .block_erase = spi_erase_at45db_chip,
2627 }
2628 },
2629 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2630 .printlock = spi_prettyprint_status_register_at45db,
2631 /* granularity will be set by the probing function. */
2632 .write = spi_write_at45db,
2633 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002634 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002635 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 {
2638 .vendor = "Atmel",
2639 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002641 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002642 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 .total_size = 4224 /* No power of two sizes */,
2644 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002645 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002646 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2647 .feature_bits = FEATURE_OTP,
2648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002650 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002651 .block_erasers =
2652 {
2653 {
2654 .eraseblocks = { {528, 8192} },
2655 .block_erase = spi_erase_at45db_page,
2656 }, {
2657 .eraseblocks = { {8 * 528, 8192/8} },
2658 .block_erase = spi_erase_at45db_block,
2659 }, /* Although the datasheets describes sectors (which can be write protected)
2660 * there seems to be no erase functions for them.
2661 {
2662 .eraseblocks = {
2663 {8 * 528, 1},
2664 {120 * 528, 1},
2665 {128 * 528, 63},
2666 },
2667 .block_erase = spi_erase_at45db_sector
2668 }, */ {
2669 .eraseblocks = { {4224 * 1024, 1} },
2670 .block_erase = spi_erase_at45db_chip,
2671 }
2672 },
2673 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2674 .gran = write_gran_528bytes,
2675 .write = spi_write_at45db,
2676 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002678 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 {
2681 .vendor = "Atmel",
2682 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002686 .total_size = 4096 /* or 4224, determined from status register */,
2687 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002688 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002689 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002690 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 .tested = TEST_UNTESTED,
2692 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002693 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .block_erasers =
2695 {
2696 {
2697 .eraseblocks = { {512, 8192} },
2698 .block_erase = spi_erase_at45db_page,
2699 }, {
2700 .eraseblocks = { {8 * 512, 8192/8} },
2701 .block_erase = spi_erase_at45db_block,
2702 }, {
2703 .eraseblocks = {
2704 {8 * 512, 1},
2705 {120 * 512, 1},
2706 {128 * 512, 63},
2707 },
2708 .block_erase = spi_erase_at45db_sector
2709 }, {
2710 .eraseblocks = { {4096 * 1024, 1} },
2711 .block_erase = spi_erase_at45db_chip,
2712 }
2713 },
2714 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2715 .printlock = spi_prettyprint_status_register_at45db,
2716 /* granularity will be set by the probing function. */
2717 .write = spi_write_at45db,
2718 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2719 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2720 },
2721
2722 {
2723 .vendor = "Atmel",
2724 .name = "AT45DB321E",
2725 .bustype = BUS_SPI,
2726 .manufacture_id = ATMEL_ID,
2727 .model_id = ATMEL_AT45DB321C,
2728 .total_size = 4096 /* or 4224, determined from status register */,
2729 .page_size = 512 /* or 528, determined from status register */,
2730 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2731 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2732 .feature_bits = FEATURE_OTP,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_at45db,
2735 .probe_timing = TIMING_ZERO,
2736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {512, 8192} },
2740 .block_erase = spi_erase_at45db_page,
2741 }, {
2742 .eraseblocks = { {8 * 512, 8192/8} },
2743 .block_erase = spi_erase_at45db_block,
2744 }, {
2745 .eraseblocks = {
2746 {8 * 512, 1},
2747 {120 * 512, 1},
2748 {128 * 512, 63},
2749 },
2750 .block_erase = spi_erase_at45db_sector
2751 }, {
2752 .eraseblocks = { {4096 * 1024, 1} },
2753 .block_erase = spi_erase_at45db_chip,
2754 }
2755 },
2756 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2757 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2758 /* granularity will be set by the probing function. */
2759 .write = spi_write_at45db,
2760 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2761 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002762 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 {
2765 .vendor = "Atmel",
2766 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 .total_size = 8192 /* or 8448, determined from status register */,
2771 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = { {1024, 8192} },
2782 .block_erase = spi_erase_at45db_page,
2783 }, {
2784 .eraseblocks = { {8 * 1024, 8192/8} },
2785 .block_erase = spi_erase_at45db_block,
2786 }, {
2787 .eraseblocks = {
2788 {8 * 1024, 1},
2789 {248 * 1024, 1},
2790 {256 * 1024, 31},
2791 },
2792 .block_erase = spi_erase_at45db_sector
2793 }, {
2794 .eraseblocks = { {8192 * 1024, 1} },
2795 .block_erase = spi_erase_at45db_chip,
2796 }
2797 },
2798 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2799 .printlock = spi_prettyprint_status_register_at45db,
2800 /* granularity will be set by the probing function. */
2801 .write = spi_write_at45db,
2802 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002803 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002804 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 {
2807 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002808 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002809 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002810 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002811 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002812 .total_size = 64,
2813 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002815 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {64 * 1024, 1} },
2822 .block_erase = erase_chip_block_jedec,
2823 }
2824 },
Sean Nelson35727f72010-01-28 23:55:12 +00002825 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002828 },
2829
2830 {
2831 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002834 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .total_size = 256,
2837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002838 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {16 * 1024, 1},
2847 {8 * 1024, 2},
2848 {96 * 1024, 1},
2849 {128 * 1024, 1},
2850 },
2851 .block_erase = erase_sector_jedec,
2852 }, {
2853 .eraseblocks = { {256 * 1024, 1} },
2854 .block_erase = erase_chip_block_jedec,
2855 }
2856 },
Sean Nelson35727f72010-01-28 23:55:12 +00002857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002859 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002860 },
2861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002862 {
2863 .vendor = "Atmel",
2864 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002866 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002867 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .total_size = 256,
2869 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002870 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002871 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = {
2878 {128 * 1024, 1},
2879 {96 * 1024, 1},
2880 {8 * 1024, 2},
2881 {16 * 1024, 1},
2882 },
2883 .block_erase = erase_sector_jedec,
2884 }, {
2885 .eraseblocks = { {256 * 1024, 1} },
2886 .block_erase = erase_chip_block_jedec,
2887 }
2888 },
Sean Nelson35727f72010-01-28 23:55:12 +00002889 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002891 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002892 },
2893
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002894 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002895 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002896 .name = "AT49(H)F010",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F010,
2900 .total_size = 128,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_OK_PREW,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {128 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 },
2913 .printlock = printlock_at49f,
2914 .write = write_jedec_1,
2915 .read = read_memmapped,
2916 .voltage = {4500, 5500},
2917 },
2918
2919 {
2920 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002921 .name = "AT49F020",
2922 .bustype = BUS_PARALLEL,
2923 .manufacture_id = ATMEL_ID,
2924 .model_id = ATMEL_AT49F020,
2925 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002926 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002927 .feature_bits = FEATURE_EITHER_RESET,
2928 .tested = TEST_OK_PRE,
2929 .probe = probe_jedec,
2930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 /* Chip features an optional permanent write protection
2938 * of the first 8 kB. The erase function is the same as
2939 * above, but 00000H to 01FFFH will not be erased.
2940 * FIXME: add another eraser when partial erasers are
2941 * supported.
2942 */
2943 },
2944 .printlock = printlock_at49f,
2945 .write = write_jedec_1,
2946 .read = read_memmapped,
2947 .voltage = {4500, 5500},
2948 },
2949
2950 {
2951 .vendor = "Atmel",
2952 .name = "AT49F040",
2953 .bustype = BUS_PARALLEL,
2954 .manufacture_id = ATMEL_ID,
2955 .model_id = ATMEL_AT49F040,
2956 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002957 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002958 .feature_bits = FEATURE_EITHER_RESET,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_jedec,
2961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = { {512 * 1024, 1} },
2966 .block_erase = erase_chip_block_jedec,
2967 }
2968 /* Chip features an optional permanent write protection
2969 * of the first 16 kB. The erase function is the same as
2970 * above, but 00000H to 03FFFH will not be erased.
2971 * FIXME: add another eraser when partial erasers are
2972 * supported.
2973 */
2974 },
2975 .printlock = printlock_at49f,
2976 .write = write_jedec_1,
2977 .read = read_memmapped,
2978 .voltage = {4500, 5500},
2979 },
2980
2981 {
2982 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002983 .name = "AT49F080",
2984 .bustype = BUS_PARALLEL,
2985 .manufacture_id = ATMEL_ID,
2986 .model_id = ATMEL_AT49F080,
2987 .total_size = 1024,
2988 .page_size = 0, /* unused */
2989 .feature_bits = FEATURE_EITHER_RESET,
2990 .tested = TEST_UNTESTED,
2991 .probe = probe_jedec,
2992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2993 .block_erasers =
2994 {
2995 {
2996 .eraseblocks = { {1024 * 1024, 1} },
2997 .block_erase = erase_chip_block_jedec,
2998 }
2999 /* Chip features an optional permanent write protection
3000 * of the first 16 kB. The erase function is the same as
3001 * above, but 00000H to 03FFFH will not be erased.
3002 * FIXME: add another eraser when partial erasers are
3003 * supported.
3004 */
3005 },
3006 .printlock = printlock_at49f,
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
3009 .voltage = {4500, 5500},
3010 },
3011
3012 {
3013 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3014 .vendor = "Atmel",
3015 .name = "AT49F080T",
3016 .bustype = BUS_PARALLEL,
3017 .manufacture_id = ATMEL_ID,
3018 .model_id = ATMEL_AT49F080T,
3019 .total_size = 1024,
3020 .page_size = 0, /* unused */
3021 .feature_bits = FEATURE_EITHER_RESET,
3022 .tested = TEST_UNTESTED,
3023 .probe = probe_jedec,
3024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3025 .block_erasers =
3026 {
3027 {
3028 .eraseblocks = { {1024 * 1024, 1} },
3029 .block_erase = erase_chip_block_jedec,
3030 }
3031 /* Chip features an optional permanent write protection
3032 * of the first 16 kB. The erase function is the same as
3033 * above, but FC000H to FFFFFH will not be erased.
3034 * FIXME: add another eraser when partial erasers are
3035 * supported.
3036 */
3037 },
3038 .printlock = printlock_at49f,
3039 .write = write_jedec_1,
3040 .read = read_memmapped,
3041 .voltage = {4500, 5500},
3042 },
3043
3044 {
3045 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003046 .name = "AT49LH002",
3047 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3048 .manufacture_id = ATMEL_ID,
3049 .model_id = ATMEL_AT49LH002,
3050 .total_size = 256,
3051 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003052 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003053 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003054 .probe = probe_82802ab,
3055 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003065 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003070 .block_erase = erase_block_82802ab,
3071 },
3072 },
3073 .printlock = printlock_regspace2_block_eraser_0,
3074 .unlock = unlock_regspace2_block_eraser_0,
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
3081 .vendor = "Atmel",
3082 .name = "AT49LH00B4",
3083 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3084 .manufacture_id = ATMEL_ID,
3085 .model_id = ATMEL_AT49LH00B4,
3086 .total_size = 512,
3087 .page_size = 0, /* unused */
3088 .feature_bits = FEATURE_REGISTERMAP,
3089 .tested = TEST_UNTESTED,
3090 .probe = probe_82802ab,
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = {
3096 {8 * 1024, 2},
3097 {16 * 1024, 1},
3098 {32 * 1024, 1},
3099 {64 * 1024, 7},
3100 },
3101 .block_erase = NULL, /* TODO: Implement. */
3102 }, {
3103 .eraseblocks = {
3104 {64 * 1024, 8},
3105 },
3106 .block_erase = erase_block_82802ab,
3107 },
3108 },
3109 .printlock = printlock_regspace2_block_eraser_0,
3110 .unlock = unlock_regspace2_block_eraser_0,
3111 .write = write_82802ab,
3112 .read = read_memmapped,
3113 .voltage = {3000, 3600},
3114 },
3115
3116 {
3117 .vendor = "Atmel",
3118 .name = "AT49LH004",
3119 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3120 .manufacture_id = ATMEL_ID,
3121 .model_id = ATMEL_AT49LH004,
3122 .total_size = 512,
3123 .page_size = 0, /* unused */
3124 .feature_bits = FEATURE_REGISTERMAP,
3125 .tested = TEST_UNTESTED,
3126 .probe = probe_82802ab,
3127 .probe_timing = TIMING_ZERO,
3128 .block_erasers =
3129 {
3130 {
3131 .eraseblocks = {
3132 {64 * 1024, 7},
3133 {32 * 1024, 1},
3134 {8 * 1024, 2},
3135 {16 * 1024, 1},
3136 },
3137 .block_erase = erase_block_82802ab,
3138 }, {
3139 .eraseblocks = {
3140 {64 * 1024, 8},
3141 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003142 .block_erase = NULL, /* TODO: Implement. */
3143 },
3144 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003145 .printlock = printlock_regspace2_block_eraser_0,
3146 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 .write = write_82802ab,
3148 .read = read_memmapped,
3149 .voltage = {3000, 3600},
3150 },
3151
3152 {
Andrew Morganca081462011-09-13 22:05:44 +00003153 .vendor = "Catalyst",
3154 .name = "CAT28F512",
3155 .bustype = BUS_PARALLEL,
3156 .manufacture_id = CATALYST_ID,
3157 .model_id = CATALYST_CAT28F512,
3158 .total_size = 64,
3159 .page_size = 0, /* unused */
3160 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003161 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003162 .probe = probe_jedec, /* FIXME! */
3163 .probe_timing = TIMING_ZERO,
3164 .block_erasers =
3165 {
3166 {
3167 .eraseblocks = { {64 * 1024, 1} },
3168 .block_erase = NULL, /* TODO */
3169 },
3170 },
3171 .write = NULL, /* TODO */
3172 .read = read_memmapped,
3173 .voltage = {4500, 5500},
3174 },
3175
3176 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003177 .vendor = "Bright",
3178 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003179 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003180 .manufacture_id = BRIGHT_ID,
3181 .model_id = BRIGHT_BM29F040,
3182 .total_size = 512,
3183 .page_size = 64 * 1024,
3184 .feature_bits = FEATURE_EITHER_RESET,
3185 .tested = TEST_OK_PR,
3186 .probe = probe_jedec,
3187 .probe_timing = TIMING_ZERO,
3188 .block_erasers =
3189 {
3190 {
3191 .eraseblocks = { {64 * 1024, 8} },
3192 .block_erase = erase_sector_jedec,
3193 }, {
3194 .eraseblocks = { {512 * 1024, 1} },
3195 .block_erase = erase_chip_block_jedec,
3196 },
3197 },
3198 .write = write_jedec_1,
3199 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003200 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003201 },
3202
3203 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003204 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003205 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003206 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003207 .manufacture_id = ESMT_ID,
3208 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003209 .total_size = 256,
3210 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003211 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003212 .tested = TEST_UNTESTED,
3213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003215 .block_erasers =
3216 {
3217 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003218 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003219 {128 * 1024, 1},
3220 {96 * 1024, 1},
3221 {8 * 1024, 2},
3222 {16 * 1024, 1},
3223 },
3224 .block_erase = erase_sector_jedec,
3225 }, {
3226 .eraseblocks = { {256 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 }
3229 },
Sean Nelson35727f72010-01-28 23:55:12 +00003230 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003233 },
3234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003235 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003236 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003237 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003238 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003239 .manufacture_id = ESMT_ID,
3240 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003241 .total_size = 1024,
3242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003243 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003244 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003245 .probe = probe_spi_rdid,
3246 .probe_timing = TIMING_ZERO,
3247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = { {4 * 1024, 256} },
3251 .block_erase = spi_block_erase_20,
3252 }, {
3253 .eraseblocks = { {64 * 1024, 16} },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {1024 * 1024, 1} },
3257 .block_erase = spi_block_erase_60,
3258 }, {
3259 .eraseblocks = { {1024 * 1024, 1} },
3260 .block_erase = spi_block_erase_c7,
3261 }
3262 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003263 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003264 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003265 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003266 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003267 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003268 },
3269
3270 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003271 .vendor = "ESMT",
3272 .name = "F25L32PA",
3273 .bustype = BUS_SPI,
3274 .manufacture_id = ESMT_ID,
3275 .model_id = ESMT_F25L32PA,
3276 .total_size = 4096,
3277 .page_size = 256,
3278 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3279 .tested = TEST_UNTESTED,
3280 .probe = probe_spi_rdid,
3281 .probe_timing = TIMING_ZERO,
3282 .block_erasers =
3283 {
3284 {
3285 .eraseblocks = { {4 * 1024, 1024} },
3286 .block_erase = spi_block_erase_20,
3287 }, {
3288 .eraseblocks = { {64 * 1024, 64} },
3289 .block_erase = spi_block_erase_d8,
3290 }, {
3291 .eraseblocks = { {4 * 1024 * 1024, 1} },
3292 .block_erase = spi_block_erase_60,
3293 }, {
3294 .eraseblocks = { {4 * 1024 * 1024, 1} },
3295 .block_erase = spi_block_erase_c7,
3296 }
3297 },
3298 .printlock = spi_prettyprint_status_register_bp2_bpl,
3299 .unlock = spi_disable_blockprotect,
3300 .write = spi_chip_write_256,
3301 .read = spi_chip_read,
3302 .voltage = {2700, 3600},
3303 },
3304
3305 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003306 .vendor = "Eon",
3307 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003308 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003309 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003310 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003311 .total_size = 64,
3312 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003313 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003314 .tested = TEST_UNTESTED,
3315 .probe = probe_spi_rdid,
3316 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = {
3321 {4 * 1024, 2},
3322 {8 * 1024, 1},
3323 {16 * 1024, 1},
3324 {32 * 1024, 1},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {64 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003334 .write = spi_chip_write_256,
3335 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
3341 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .total_size = 64,
3346 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = {
3355 {32 * 1024, 1},
3356 {16 * 1024, 1},
3357 {8 * 1024, 1},
3358 {4 * 1024, 2},
3359 },
3360 .block_erase = spi_block_erase_d8,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_c7,
3364 }
3365 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003368 .write = spi_chip_write_256,
3369 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003370 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003371 },
3372
3373 {
3374 .vendor = "Eon",
3375 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003376 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003377 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003378 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003379 .total_size = 128,
3380 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003381 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003382 .tested = TEST_UNTESTED,
3383 .probe = probe_spi_rdid,
3384 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {4 * 1024, 2},
3390 {8 * 1024, 1},
3391 {16 * 1024, 1},
3392 {32 * 1024, 3},
3393 },
3394 .block_erase = spi_block_erase_d8,
3395 }, {
3396 .eraseblocks = { {128 * 1024, 1} },
3397 .block_erase = spi_block_erase_c7,
3398 }
3399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003400 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003401 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003402 .write = spi_chip_write_256,
3403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003404 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003405 },
3406
3407 {
3408 .vendor = "Eon",
3409 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003410 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003411 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003412 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .total_size = 128,
3414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003415 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003416 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003417 .probe = probe_spi_rdid,
3418 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003419 .block_erasers =
3420 {
3421 {
3422 .eraseblocks = {
3423 {32 * 1024, 3},
3424 {16 * 1024, 1},
3425 {8 * 1024, 1},
3426 {4 * 1024, 2},
3427 },
3428 .block_erase = spi_block_erase_d8,
3429 }, {
3430 .eraseblocks = { {128 * 1024, 1} },
3431 .block_erase = spi_block_erase_c7,
3432 }
3433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003435 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003436 .write = spi_chip_write_256,
3437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003438 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003439 },
3440
3441 {
3442 .vendor = "Eon",
3443 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003444 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003445 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003446 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003447 .total_size = 256,
3448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003449 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003450 .tested = TEST_UNTESTED,
3451 .probe = probe_spi_rdid,
3452 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003453 .block_erasers =
3454 {
3455 {
3456 .eraseblocks = {
3457 {4 * 1024, 2},
3458 {8 * 1024, 1},
3459 {16 * 1024, 1},
3460 {32 * 1024, 1},
3461 {64 * 1024, 3}
3462 },
3463 .block_erase = spi_block_erase_d8,
3464 }, {
3465 .eraseblocks = { {256 * 1024, 1} },
3466 .block_erase = spi_block_erase_c7,
3467 }
3468 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003469 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003470 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003471 .write = spi_chip_write_256,
3472 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003473 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003474 },
3475
3476 {
3477 .vendor = "Eon",
3478 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003479 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003481 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003482 .total_size = 256,
3483 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003484 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003485 .tested = TEST_UNTESTED,
3486 .probe = probe_spi_rdid,
3487 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003488 .block_erasers =
3489 {
3490 {
3491 .eraseblocks = {
3492 {64 * 1024, 3},
3493 {32 * 1024, 1},
3494 {16 * 1024, 1},
3495 {8 * 1024, 1},
3496 {4 * 1024, 2},
3497 },
3498 .block_erase = spi_block_erase_d8,
3499 }, {
3500 .eraseblocks = { {256 * 1024, 1} },
3501 .block_erase = spi_block_erase_c7,
3502 }
3503 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003505 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003506 .write = spi_chip_write_256,
3507 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003509 },
3510
3511 {
3512 .vendor = "Eon",
3513 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003514 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003515 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003516 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003517 .total_size = 512,
3518 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003519 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003520 .tested = TEST_UNTESTED,
3521 .probe = probe_spi_rdid,
3522 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003523 .block_erasers =
3524 {
3525 {
3526 .eraseblocks = {
3527 {4 * 1024, 2},
3528 {8 * 1024, 1},
3529 {16 * 1024, 1},
3530 {32 * 1024, 1},
3531 {64 * 1024, 7}
3532 },
3533 .block_erase = spi_block_erase_d8,
3534 }, {
3535 .eraseblocks = { {512 * 1024, 1} },
3536 .block_erase = spi_block_erase_c7,
3537 }
3538 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003540 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003541 .write = spi_chip_write_256,
3542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003543 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003544 },
3545
3546 {
3547 .vendor = "Eon",
3548 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003549 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003551 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003552 .total_size = 512,
3553 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003554 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003555 .tested = TEST_UNTESTED,
3556 .probe = probe_spi_rdid,
3557 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003558 .block_erasers =
3559 {
3560 {
3561 .eraseblocks = {
3562 {64 * 1024, 7},
3563 {32 * 1024, 1},
3564 {16 * 1024, 1},
3565 {8 * 1024, 1},
3566 {4 * 1024, 2},
3567 },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {512 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003575 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003576 .write = spi_chip_write_256,
3577 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 1024,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 15}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
3612 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 1024,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 15},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {1024 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
3647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003648 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003654 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003655 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003656 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003657 .total_size = 2048,
3658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003659 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = {
3667 {4 * 1024, 2},
3668 {8 * 1024, 1},
3669 {16 * 1024, 1},
3670 {32 * 1024, 1},
3671 {64 * 1024, 31},
3672 },
3673 .block_erase = spi_block_erase_d8,
3674 }, {
3675 .eraseblocks = { {2 * 1024 * 1024, 1} },
3676 .block_erase = spi_block_erase_c7,
3677 }
3678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003680 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003681 .write = spi_chip_write_256,
3682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003683 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003684 },
3685
3686 {
3687 .vendor = "Eon",
3688 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003689 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003691 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .total_size = 2048,
3693 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003694 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003695 .tested = TEST_UNTESTED,
3696 .probe = probe_spi_rdid,
3697 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003698 .block_erasers =
3699 {
3700 {
3701 .eraseblocks = {
3702 {64 * 1024, 31},
3703 {32 * 1024, 1},
3704 {16 * 1024, 1},
3705 {8 * 1024, 1},
3706 {4 * 1024, 2},
3707 },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {2 * 1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_c7,
3712 }
3713 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003714 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003715 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .write = spi_chip_write_256,
3717 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003718 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003719 },
3720
3721 {
3722 .vendor = "Eon",
3723 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003724 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003725 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003726 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003727 .total_size = 4096,
3728 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003729 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003730 .tested = TEST_UNTESTED,
3731 .probe = probe_spi_rdid,
3732 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003733 .block_erasers =
3734 {
3735 {
3736 .eraseblocks = {
3737 {4 * 1024, 2},
3738 {8 * 1024, 1},
3739 {16 * 1024, 1},
3740 {32 * 1024, 1},
3741 {64 * 1024, 63},
3742 },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_c7,
3747 }
3748 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003749 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003750 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003751 .write = spi_chip_write_256,
3752 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003753 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003754 },
3755
3756 {
3757 .vendor = "Eon",
3758 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003759 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003761 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003762 .total_size = 4096,
3763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003764 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003765 .tested = TEST_UNTESTED,
3766 .probe = probe_spi_rdid,
3767 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003768 .block_erasers =
3769 {
3770 {
3771 .eraseblocks = {
3772 {64 * 1024, 63},
3773 {32 * 1024, 1},
3774 {16 * 1024, 1},
3775 {8 * 1024, 1},
3776 {4 * 1024, 2},
3777 },
3778 .block_erase = spi_block_erase_d8,
3779 }, {
3780 .eraseblocks = { {4 * 1024 * 1024, 1} },
3781 .block_erase = spi_block_erase_c7,
3782 }
3783 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003786 .write = spi_chip_write_256,
3787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003788 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 },
3790
3791 {
3792 .vendor = "Eon",
3793 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 8192,
3798 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 {64 * 1024, 127},
3812 },
3813 .block_erase = spi_block_erase_d8,
3814 }, {
3815 .eraseblocks = { {8 * 1024 * 1024, 1} },
3816 .block_erase = spi_block_erase_c7,
3817 }
3818 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .write = spi_chip_write_256,
3822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003824 },
3825
3826 {
3827 .vendor = "Eon",
3828 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003831 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003832 .total_size = 8192,
3833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003834 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003835 .tested = TEST_UNTESTED,
3836 .probe = probe_spi_rdid,
3837 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003838 .block_erasers =
3839 {
3840 {
3841 .eraseblocks = {
3842 {64 * 1024, 127},
3843 {32 * 1024, 1},
3844 {16 * 1024, 1},
3845 {8 * 1024, 1},
3846 {4 * 1024, 2},
3847 },
3848 .block_erase = spi_block_erase_d8,
3849 }, {
3850 .eraseblocks = { {8 * 1024 * 1024, 1} },
3851 .block_erase = spi_block_erase_c7,
3852 }
3853 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003854 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003855 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003856 .write = spi_chip_write_256,
3857 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003858 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003859 },
3860
3861 {
3862 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003864 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003865 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003866 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003867 .total_size = 64,
3868 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003869 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003870 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .probe = probe_spi_rdid,
3872 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003873 .block_erasers =
3874 {
3875 {
3876 .eraseblocks = { {4 * 1024, 16} },
3877 .block_erase = spi_block_erase_20,
3878 }, {
3879 .eraseblocks = { {32 * 1024, 2} },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {32 * 1024, 2} },
3883 .block_erase = spi_block_erase_52,
3884 }, {
3885 .eraseblocks = { {64 * 1024, 1} },
3886 .block_erase = spi_block_erase_60,
3887 }, {
3888 .eraseblocks = { {64 * 1024, 1} },
3889 .block_erase = spi_block_erase_c7,
3890 }
3891 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003892 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003893 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003894 .write = spi_chip_write_256,
3895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003896 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003897 },
3898
3899 {
3900 .vendor = "Eon",
3901 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003902 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003903 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003904 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003905 .total_size = 128,
3906 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003907 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003908 .tested = TEST_UNTESTED,
3909 .probe = probe_spi_rdid,
3910 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003911 .block_erasers =
3912 {
3913 {
3914 .eraseblocks = { {4 * 1024, 32} },
3915 .block_erase = spi_block_erase_20,
3916 }, {
3917 .eraseblocks = { {32 * 1024, 4} },
3918 .block_erase = spi_block_erase_d8,
3919 }, {
3920 .eraseblocks = { {32 * 1024, 4} },
3921 .block_erase = spi_block_erase_52,
3922 }, {
3923 .eraseblocks = { {128 * 1024, 1} },
3924 .block_erase = spi_block_erase_60,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003932 .write = spi_chip_write_256,
3933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003934 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003935 },
3936
3937 {
3938 .vendor = "Eon",
3939 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003943 .total_size = 256,
3944 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = { {4 * 1024, 64} },
3953 .block_erase = spi_block_erase_20,
3954 }, {
3955 .eraseblocks = { {64 * 1024, 4} },
3956 .block_erase = spi_block_erase_d8,
3957 }, {
3958 .eraseblocks = { {64 * 1024, 4} },
3959 .block_erase = spi_block_erase_52,
3960 }, {
3961 .eraseblocks = { {256 * 1024, 1} },
3962 .block_erase = spi_block_erase_60,
3963 }, {
3964 .eraseblocks = { {256 * 1024, 1} },
3965 .block_erase = spi_block_erase_c7,
3966 }
3967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003969 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003970 .write = spi_chip_write_256,
3971 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003972 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003973 },
3974
3975 {
3976 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003977 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003978 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003979 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003980 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003981 .total_size = 512,
3982 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003983 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003984 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003985 .probe = probe_spi_rdid,
3986 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003987 .block_erasers =
3988 {
3989 {
Sean Nelson54596372010-01-09 05:30:14 +00003990 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003991 .block_erase = spi_block_erase_20,
3992 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003993 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003994 .block_erase = spi_block_erase_d8,
3995 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003996 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003997 .block_erase = spi_block_erase_60,
3998 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003999 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004000 .block_erase = spi_block_erase_c7,
4001 },
4002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004004 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004005 .write = spi_chip_write_256,
4006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004007 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004008 },
4009
4010 {
4011 .vendor = "Eon",
4012 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004013 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004015 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004016 .total_size = 1024,
4017 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004018 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004020 .probe = probe_spi_rdid,
4021 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .block_erasers =
4023 {
4024 {
4025 .eraseblocks = { {4 * 1024, 256} },
4026 .block_erase = spi_block_erase_20,
4027 }, {
4028 .eraseblocks = { {64 * 1024, 16} },
4029 .block_erase = spi_block_erase_d8,
4030 }, {
4031 .eraseblocks = { {1024 * 1024, 1} },
4032 .block_erase = spi_block_erase_60,
4033 }, {
4034 .eraseblocks = { {1024 * 1024, 1} },
4035 .block_erase = spi_block_erase_c7,
4036 }
4037 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004038 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004039 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004040 .write = spi_chip_write_256,
4041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004042 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004043 },
4044
4045 {
4046 .vendor = "Eon",
4047 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004048 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004049 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004050 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004051 .total_size = 2048,
4052 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004053 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004055 .probe = probe_spi_rdid,
4056 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004057 .block_erasers =
4058 {
4059 {
4060 .eraseblocks = { {4 * 1024, 512} },
4061 .block_erase = spi_block_erase_20,
4062 }, {
4063 .eraseblocks = { {64 * 1024, 32} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {2 * 1024 * 1024, 1} },
4067 .block_erase = spi_block_erase_60,
4068 }, {
4069 .eraseblocks = { {2 * 1024 * 1024, 1} },
4070 .block_erase = spi_block_erase_c7,
4071 }
4072 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 .write = spi_chip_write_256,
4076 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004077 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004078 },
4079
4080 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .vendor = "Eon",
4082 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004083 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004084 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004085 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004086 .total_size = 4096,
4087 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004088 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = { {4 * 1024, 1024} },
4096 .block_erase = spi_block_erase_20,
4097 }, {
4098 .eraseblocks = { {64 * 1024, 64} },
4099 .block_erase = spi_block_erase_d8,
4100 }, {
4101 .eraseblocks = { {4 * 1024 * 1024, 1} },
4102 .block_erase = spi_block_erase_60,
4103 }, {
4104 .eraseblocks = { {4 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004113 },
4114
4115 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004116 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004117 .name = "EN25F64",
4118 .bustype = BUS_SPI,
4119 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004120 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004121 .total_size = 8192,
4122 .page_size = 256,
4123 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004124 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 2048} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 128} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {8 * 1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {8 * 1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
4147 .voltage = {2700, 3600},
4148 },
4149
4150 {
4151 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004152 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004153 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004154 .manufacture_id = EON_ID_NOPREFIX,
4155 .model_id = EON_EN25Q40,
4156 .total_size = 512,
4157 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004158 /* OTP: 256B total; enter 0x3A */
4159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004160 .tested = TEST_UNTESTED,
4161 .probe = probe_spi_rdid,
4162 .probe_timing = TIMING_ZERO,
4163 .block_erasers =
4164 {
4165 {
4166 .eraseblocks = { {4 * 1024, 128} },
4167 .block_erase = spi_block_erase_20,
4168 }, {
4169 .eraseblocks = { {64 * 1024, 8} },
4170 .block_erase = spi_block_erase_d8,
4171 }, {
4172 .eraseblocks = { {512 * 1024, 1} },
4173 .block_erase = spi_block_erase_60,
4174 }, {
4175 .eraseblocks = { {512 * 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 */
David Hendricks6d715302011-07-24 22:21:57 +00004180 .unlock = spi_disable_blockprotect,
4181 .write = spi_chip_write_256,
4182 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004183 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004190 .manufacture_id = EON_ID_NOPREFIX,
4191 .model_id = EON_EN25Q80,
4192 .total_size = 1024,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* OTP: 256B total; enter 0x3A */
4195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .tested = TEST_UNTESTED,
4197 .probe = probe_spi_rdid,
4198 .probe_timing = TIMING_ZERO,
4199 .block_erasers =
4200 {
4201 {
4202 .eraseblocks = { {4 * 1024, 256} },
4203 .block_erase = spi_block_erase_20,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 16} },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {1024 * 1024, 1} },
4209 .block_erase = spi_block_erase_60,
4210 }, {
4211 .eraseblocks = { {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 */
David Hendricks6d715302011-07-24 22:21:57 +00004216 .unlock = spi_disable_blockprotect,
4217 .write = spi_chip_write_256,
4218 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004219 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004220 },
4221
4222 {
4223 /* Note: EN25D16 is an evil twin which shares the model ID
4224 but has different write protection capabilities */
4225 .vendor = "Eon",
4226 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004227 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25Q16,
4230 .total_size = 2048,
4231 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004232 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004234 .tested = TEST_UNTESTED,
4235 .probe = probe_spi_rdid,
4236 .probe_timing = TIMING_ZERO,
4237 .block_erasers =
4238 {
4239 {
4240 .eraseblocks = { {4 * 1024, 512} },
4241 .block_erase = spi_block_erase_20,
4242 }, {
4243 .eraseblocks = { {64 * 1024, 32} },
4244 .block_erase = spi_block_erase_d8,
4245 }, {
4246 /* not supported by Q16 version */
4247 .eraseblocks = { {64 * 1024, 32} },
4248 .block_erase = spi_block_erase_52,
4249 }, {
4250 .eraseblocks = { {2 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {2 * 1024 * 1024, 1} },
4254 .block_erase = spi_block_erase_c7,
4255 }
4256 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004258 .unlock = spi_disable_blockprotect,
4259 .write = spi_chip_write_256,
4260 .read = spi_chip_read,
4261 .voltage = {2700, 3600},
4262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004267 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004268 .manufacture_id = EON_ID_NOPREFIX,
4269 .model_id = EON_EN25Q32,
4270 .total_size = 4096,
4271 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004272 /* OTP: 512B total; enter 0x3A */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004274 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 1024} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 64} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {4 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {4 * 1024 * 1024, 1} },
4290 .block_erase = spi_block_erase_c7,
4291 }
4292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004294 .unlock = spi_disable_blockprotect,
4295 .write = spi_chip_write_256,
4296 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004297 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004298 },
4299
4300 {
4301 .vendor = "Eon",
4302 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004303 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004304 .manufacture_id = EON_ID_NOPREFIX,
4305 .model_id = EON_EN25Q64,
4306 .total_size = 8192,
4307 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004308 /* OTP: 512B total; enter 0x3A */
4309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004310 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004311 .probe = probe_spi_rdid,
4312 .probe_timing = TIMING_ZERO,
4313 .block_erasers =
4314 {
4315 {
4316 .eraseblocks = { {4 * 1024, 2048} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 128} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { {8 * 1024 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { {8 * 1024 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004330 .unlock = spi_disable_blockprotect,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004333 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004334 },
4335
4336 {
4337 .vendor = "Eon",
4338 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004339 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25Q128,
4342 .total_size = 16384,
4343 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004344 /* OTP: 512B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers =
4350 {
4351 {
4352 .eraseblocks = { {4 * 1024, 4096} },
4353 .block_erase = spi_block_erase_20,
4354 }, {
4355 .eraseblocks = { {64 * 1024, 256} },
4356 .block_erase = spi_block_erase_d8,
4357 }, {
4358 .eraseblocks = { {16 * 1024 * 1024, 1} },
4359 .block_erase = spi_block_erase_60,
4360 }, {
4361 .eraseblocks = { {16 * 1024 * 1024, 1} },
4362 .block_erase = spi_block_erase_c7,
4363 }
4364 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004366 .unlock = spi_disable_blockprotect,
4367 .write = spi_chip_write_256,
4368 .read = spi_chip_read,
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004374 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25QH16,
4377 .total_size = 2048,
4378 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004379 /* supports SFDP */
4380 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004381 /* QPI enable 0x38, disable 0xFF */
4382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004383 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004384 .probe = probe_spi_rdid,
4385 .probe_timing = TIMING_ZERO,
4386 .block_erasers =
4387 {
4388 {
4389 .eraseblocks = { {4 * 1024, 512} },
4390 .block_erase = spi_block_erase_20,
4391 }, {
4392 .eraseblocks = { {64 * 1024, 32} },
4393 .block_erase = spi_block_erase_d8,
4394 }, {
4395 .eraseblocks = { {1024 * 2048, 1} },
4396 .block_erase = spi_block_erase_60,
4397 }, {
4398 .eraseblocks = { {1024 * 2048, 1} },
4399 .block_erase = spi_block_erase_c7,
4400 }
4401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004403 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004404 .write = spi_chip_write_256,
4405 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004406 .voltage = {2700, 3600},
4407 },
4408
4409 {
4410 .vendor = "Eon",
4411 .name = "EN25QH32",
4412 .bustype = BUS_SPI,
4413 .manufacture_id = EON_ID_NOPREFIX,
4414 .model_id = EON_EN25QH32,
4415 .total_size = 4096,
4416 .page_size = 256,
4417 /* supports SFDP */
4418 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004419 /* QPI enable 0x38, disable 0xFF */
4420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004421 .tested = TEST_UNTESTED,
4422 .probe = probe_spi_rdid,
4423 .probe_timing = TIMING_ZERO,
4424 .block_erasers =
4425 {
4426 {
4427 .eraseblocks = { {4 * 1024, 1024} },
4428 .block_erase = spi_block_erase_20,
4429 }, {
4430 .eraseblocks = { {64 * 1024, 64} },
4431 .block_erase = spi_block_erase_d8,
4432 }, {
4433 .eraseblocks = { {1024 * 4096, 1} },
4434 .block_erase = spi_block_erase_60,
4435 }, {
4436 .eraseblocks = { {1024 * 4096, 1} },
4437 .block_erase = spi_block_erase_c7,
4438 }
4439 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004440 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004441 .unlock = spi_disable_blockprotect_bp3_srwd,
4442 .write = spi_chip_write_256,
4443 .read = spi_chip_read,
4444 .voltage = {2700, 3600},
4445 },
4446
4447 {
4448 .vendor = "Eon",
4449 .name = "EN25QH64",
4450 .bustype = BUS_SPI,
4451 .manufacture_id = EON_ID_NOPREFIX,
4452 .model_id = EON_EN25QH64,
4453 .total_size = 8192,
4454 .page_size = 256,
4455 /* supports SFDP */
4456 /* OTP: 512B total; enter 0x3A */
4457 /* QPI enable 0x38, disable 0xFF */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004459 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 2048} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 128} },
4468 .block_erase = spi_block_erase_d8,
4469 }, {
4470 .eraseblocks = { { 8192 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { { 8192 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004478 .unlock = spi_disable_blockprotect_bp3_srwd,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {2700, 3600},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25QH128",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25QH128,
4490 .total_size = 16384,
4491 .page_size = 256,
4492 /* supports SFDP */
4493 /* OTP: 512B total; enter 0x3A */
4494 /* QPI enable 0x38, disable 0xFF */
4495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4496 .tested = TEST_UNTESTED,
4497 .probe = probe_spi_rdid,
4498 .probe_timing = TIMING_ZERO,
4499 .block_erasers = {
4500 {
4501 .eraseblocks = { {4 * 1024, 4096} },
4502 .block_erase = spi_block_erase_20,
4503 }, {
4504 .eraseblocks = { {64 * 1024, 256} },
4505 .block_erase = spi_block_erase_d8,
4506 }, {
4507 .eraseblocks = { { 16384 * 1024, 1} },
4508 .block_erase = spi_block_erase_60,
4509 }, {
4510 .eraseblocks = { { 16384 * 1024, 1} },
4511 .block_erase = spi_block_erase_c7,
4512 }
4513 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004514 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004515 .unlock = spi_disable_blockprotect_bp3_srwd,
4516 .write = spi_chip_write_256,
4517 .read = spi_chip_read,
4518 .voltage = {2700, 3600},
4519 },
4520
4521 {
4522 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004523 .name = "EN25S10",
4524 .bustype = BUS_SPI,
4525 .manufacture_id = EON_ID_NOPREFIX,
4526 .model_id = EON_EN25S10,
4527 .total_size = 128,
4528 .page_size = 256,
4529 /* OTP: 256B total; enter 0x3A */
4530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4531 .tested = TEST_UNTESTED,
4532 .probe = probe_spi_rdid,
4533 .probe_timing = TIMING_ZERO,
4534 .block_erasers = {
4535 {
4536 .eraseblocks = { {4 * 1024, 32} },
4537 .block_erase = spi_block_erase_20,
4538 }, {
4539 .eraseblocks = { {32 * 1024, 4} },
4540 .block_erase = spi_block_erase_52,
4541 }, {
4542 .eraseblocks = { {128 * 1024, 1} },
4543 .block_erase = spi_block_erase_60,
4544 }, {
4545 .eraseblocks = { {128 * 1024, 1} },
4546 .block_erase = spi_block_erase_c7,
4547 }
4548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004549 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004550 .unlock = spi_disable_blockprotect,
4551 .write = spi_chip_write_256,
4552 .read = spi_chip_read,
4553 .voltage = {1650, 1950},
4554 },
4555
4556 {
4557 .vendor = "Eon",
4558 .name = "EN25S20",
4559 .bustype = BUS_SPI,
4560 .manufacture_id = EON_ID_NOPREFIX,
4561 .model_id = EON_EN25S20,
4562 .total_size = 256,
4563 .page_size = 256,
4564 /* OTP: 256B total; enter 0x3A */
4565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4566 .tested = TEST_UNTESTED,
4567 .probe = probe_spi_rdid,
4568 .probe_timing = TIMING_ZERO,
4569 .block_erasers = {
4570 {
4571 .eraseblocks = { {4 * 1024, 64} },
4572 .block_erase = spi_block_erase_20,
4573 }, {
4574 .eraseblocks = { {64 * 1024, 4} },
4575 .block_erase = spi_block_erase_d8,
4576 }, {
4577 .eraseblocks = { {256 * 1024, 1} },
4578 .block_erase = spi_block_erase_60,
4579 }, {
4580 .eraseblocks = { {256 * 1024, 1} },
4581 .block_erase = spi_block_erase_c7,
4582 }
4583 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004584 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004585 .unlock = spi_disable_blockprotect,
4586 .write = spi_chip_write_256,
4587 .read = spi_chip_read,
4588 .voltage = {1650, 1950},
4589 },
4590
4591 {
4592 .vendor = "Eon",
4593 .name = "EN25S40",
4594 .bustype = BUS_SPI,
4595 .manufacture_id = EON_ID_NOPREFIX,
4596 .model_id = EON_EN25S40,
4597 .total_size = 512,
4598 .page_size = 256,
4599 /* OTP: 256B total; enter 0x3A */
4600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4601 .tested = TEST_UNTESTED,
4602 .probe = probe_spi_rdid,
4603 .probe_timing = TIMING_ZERO,
4604 .block_erasers = {
4605 {
4606 .eraseblocks = { {4 * 1024, 128} },
4607 .block_erase = spi_block_erase_20,
4608 }, {
4609 .eraseblocks = { {64 * 1024, 8} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {512 * 1024, 1} },
4613 .block_erase = spi_block_erase_60,
4614 }, {
4615 .eraseblocks = { {512 * 1024, 1} },
4616 .block_erase = spi_block_erase_c7,
4617 }
4618 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004619 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004620 .unlock = spi_disable_blockprotect,
4621 .write = spi_chip_write_256,
4622 .read = spi_chip_read,
4623 .voltage = {1650, 1950},
4624 },
4625
4626 {
4627 .vendor = "Eon",
4628 .name = "EN25S80",
4629 .bustype = BUS_SPI,
4630 .manufacture_id = EON_ID_NOPREFIX,
4631 .model_id = EON_EN25S80,
4632 .total_size = 1024,
4633 .page_size = 256,
4634 /* OTP: 256B total; enter 0x3A */
4635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4636 .tested = TEST_UNTESTED,
4637 .probe = probe_spi_rdid,
4638 .probe_timing = TIMING_ZERO,
4639 .block_erasers = {
4640 {
4641 .eraseblocks = { {4 * 1024, 256} },
4642 .block_erase = spi_block_erase_20,
4643 }, {
4644 .eraseblocks = { {64 * 1024, 16} },
4645 .block_erase = spi_block_erase_d8,
4646 }, {
4647 .eraseblocks = { {1024 * 1024, 1} },
4648 .block_erase = spi_block_erase_60,
4649 }, {
4650 .eraseblocks = { {1024 * 1024, 1} },
4651 .block_erase = spi_block_erase_c7,
4652 }
4653 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004654 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004655 .unlock = spi_disable_blockprotect,
4656 .write = spi_chip_write_256,
4657 .read = spi_chip_read,
4658 .voltage = {1650, 1950},
4659 },
4660
4661 {
4662 .vendor = "Eon",
4663 .name = "EN25S16",
4664 .bustype = BUS_SPI,
4665 .manufacture_id = EON_ID_NOPREFIX,
4666 .model_id = EON_EN25S16,
4667 .total_size = 2048,
4668 .page_size = 256,
4669 /* OTP: 512B total; enter 0x3A */
4670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4671 .tested = TEST_UNTESTED,
4672 .probe = probe_spi_rdid,
4673 .probe_timing = TIMING_ZERO,
4674 .block_erasers = {
4675 {
4676 .eraseblocks = { {4 * 1024, 512} },
4677 .block_erase = spi_block_erase_20,
4678 }, {
4679 .eraseblocks = { {64 * 1024, 32} },
4680 .block_erase = spi_block_erase_52,
4681 }, {
4682 .eraseblocks = { {32 * 1024, 64} },
4683 .block_erase = spi_block_erase_d8,
4684 }, {
4685 .eraseblocks = { {2048 * 1024, 1} },
4686 .block_erase = spi_block_erase_60,
4687 }, {
4688 .eraseblocks = { {2048 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_en25s_wp,
4693 .unlock = spi_disable_blockprotect_bp3_srwd,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read,
4696 .voltage = {1650, 1950},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25S32",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25S32,
4705 .total_size = 4096,
4706 .page_size = 256,
4707 /* OTP: 512B total; enter 0x3A */
4708 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4709 .tested = TEST_UNTESTED,
4710 .probe = probe_spi_rdid,
4711 .probe_timing = TIMING_ZERO,
4712 .block_erasers = {
4713 {
4714 .eraseblocks = { {4 * 1024, 1024} },
4715 .block_erase = spi_block_erase_20,
4716 }, {
4717 .eraseblocks = { {32 * 1024, 128} },
4718 .block_erase = spi_block_erase_52,
4719 }, {
4720 .eraseblocks = { {64 * 1024, 64} },
4721 .block_erase = spi_block_erase_d8,
4722 }, {
4723 .eraseblocks = { {4096 * 1024, 1} },
4724 .block_erase = spi_block_erase_60,
4725 }, {
4726 .eraseblocks = { {4096 * 1024, 1} },
4727 .block_erase = spi_block_erase_c7,
4728 }
4729 },
4730 .printlock = spi_prettyprint_status_register_en25s_wp,
4731 .unlock = spi_disable_blockprotect_bp3_srwd,
4732 .write = spi_chip_write_256,
4733 .read = spi_chip_read,
4734 .voltage = {1650, 1950},
4735 },
4736
4737 {
4738 .vendor = "Eon",
4739 .name = "EN25S64",
4740 .bustype = BUS_SPI,
4741 .manufacture_id = EON_ID_NOPREFIX,
4742 .model_id = EON_EN25S64,
4743 .total_size = 8192,
4744 .page_size = 256,
4745 /* OTP: 512B total; enter 0x3A */
4746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers = {
4751 {
4752 .eraseblocks = { {4 * 1024, 2048} },
4753 .block_erase = spi_block_erase_20,
4754 }, {
4755 .eraseblocks = { {64 * 1024, 128} },
4756 .block_erase = spi_block_erase_d8,
4757 }, {
4758 .eraseblocks = { {8192 * 1024, 1} },
4759 .block_erase = spi_block_erase_60,
4760 }, {
4761 .eraseblocks = { {8192 * 1024, 1} },
4762 .block_erase = spi_block_erase_c7,
4763 }
4764 },
4765 .printlock = spi_prettyprint_status_register_en25s_wp,
4766 .unlock = spi_disable_blockprotect_bp3_srwd,
4767 .write = spi_chip_write_256,
4768 .read = spi_chip_read,
4769 .voltage = {1650, 1950},
4770 },
4771
4772 {
4773 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004774 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004775 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004776 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004777 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004778 .total_size = 128,
4779 .page_size = 128,
4780 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004781 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004782 .probe = probe_jedec,
4783 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4784 .block_erasers =
4785 {
4786 {
4787 .eraseblocks = { {16 * 1024, 8} },
4788 .block_erase = erase_sector_jedec,
4789 },
4790 {
4791 .eraseblocks = { {128 * 1024, 1} },
4792 .block_erase = erase_chip_block_jedec,
4793 },
4794 },
4795 .write = write_jedec_1,
4796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004797 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004798 },
4799
4800 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004801 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004802 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004803 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004804 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004805 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 .total_size = 256,
4807 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004808 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004809 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004811 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004812 .block_erasers =
4813 {
4814 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004816 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004817 {8 * 1024, 2},
4818 {32 * 1024, 1},
4819 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004820 },
4821 .block_erase = erase_sector_jedec,
4822 }, {
4823 .eraseblocks = { {256 * 1024, 1} },
4824 .block_erase = erase_chip_block_jedec,
4825 },
4826 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004829 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004830 },
4831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004833 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004834 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004837 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 .total_size = 256,
4839 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004840 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004841 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004842 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 .block_erasers =
4845 {
4846 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004847 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004848 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004849 {32 * 1024, 1},
4850 {8 * 1024, 2},
4851 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004852 },
4853 .block_erase = erase_sector_jedec,
4854 }, {
4855 .eraseblocks = { {256 * 1024, 1} },
4856 .block_erase = erase_chip_block_jedec,
4857 },
4858 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004859 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004861 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004862 },
4863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004864 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004865 .vendor = "Eon",
4866 .name = "EN29LV640B",
4867 .bustype = BUS_PARALLEL,
4868 .manufacture_id = EON_ID,
4869 .model_id = EON_EN29LV640B,
4870 .total_size = 8192,
4871 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004872 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004873 .tested = TEST_OK_PREW,
4874 .probe = probe_en29lv640b,
4875 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4876 .block_erasers =
4877 {
4878 {
4879 .eraseblocks = {
4880 {8 * 1024, 8},
4881 {64 * 1024, 127},
4882 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004883 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004884 }, {
4885 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004886 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004887 },
4888 },
4889 .write = write_en29lv640b,
4890 .read = read_memmapped,
4891 .voltage = {2700, 3600},
4892 },
4893
4894 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00004895 .vendor = "Eon",
4896 .name = "EN29GL064(A)B",
4897 .bustype = BUS_PARALLEL,
4898 .manufacture_id = EON_ID,
4899 .model_id = EON_EN29GL064B,
4900 .total_size = 8192,
4901 .page_size = 128 * 1024, /* actual page size is 16 */
4902 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4903 .tested = TEST_UNTESTED,
4904 .probe = probe_jedec_29gl,
4905 .probe_timing = TIMING_ZERO,
4906 .block_erasers =
4907 {
4908 {
4909 .eraseblocks = {
4910 {8 * 1024, 8},
4911 {64 * 1024, 127},
4912 },
4913 .block_erase = erase_sector_jedec,
4914 }, {
4915 .eraseblocks = { {8 * 1024 * 1024, 1} },
4916 .block_erase = erase_chip_block_jedec,
4917 },
4918 },
4919 .write = write_jedec_1,
4920 .read = read_memmapped,
4921 .voltage = {2700, 3600},
4922 },
4923
4924 {
4925 .vendor = "Eon",
4926 .name = "EN29GL064(A)T",
4927 .bustype = BUS_PARALLEL,
4928 .manufacture_id = EON_ID,
4929 .model_id = EON_EN29GL064T,
4930 .total_size = 8192,
4931 .page_size = 128 * 1024, /* actual page size is 16 */
4932 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4933 .tested = TEST_UNTESTED,
4934 .probe = probe_jedec_29gl,
4935 .probe_timing = TIMING_ZERO,
4936 .block_erasers =
4937 {
4938 {
4939 .eraseblocks = {
4940 {64 * 1024, 127},
4941 {8 * 1024, 8},
4942 },
4943 .block_erase = erase_sector_jedec,
4944 }, {
4945 .eraseblocks = { {8 * 1024 * 1024, 1} },
4946 .block_erase = erase_chip_block_jedec,
4947 },
4948 },
4949 .write = write_jedec_1,
4950 .read = read_memmapped,
4951 .voltage = {2700, 3600},
4952 },
4953
4954 {
4955 .vendor = "Eon",
4956 .name = "EN29GL064H/L",
4957 .bustype = BUS_PARALLEL,
4958 .manufacture_id = EON_ID,
4959 .model_id = EON_EN29GL064HL,
4960 .total_size = 8192,
4961 .page_size = 128 * 1024, /* actual page size is 16 */
4962 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4963 .tested = TEST_UNTESTED,
4964 .probe = probe_jedec_29gl,
4965 .probe_timing = TIMING_ZERO,
4966 .block_erasers =
4967 {
4968 {
4969 .eraseblocks = { {64 * 1024, 128} },
4970 .block_erase = erase_sector_jedec,
4971 }, {
4972 .eraseblocks = { {8 * 1024 * 1024, 1} },
4973 .block_erase = erase_chip_block_jedec,
4974 },
4975 },
4976 .write = write_jedec_1,
4977 .read = read_memmapped,
4978 .voltage = {2700, 3600},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN29GL128",
4984 .bustype = BUS_PARALLEL,
4985 .manufacture_id = EON_ID,
4986 .model_id = EON_EN29GL128HL,
4987 .total_size = 16384,
4988 .page_size = 128 * 1024, /* actual page size is 16 */
4989 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4990 .tested = TEST_UNTESTED,
4991 .probe = probe_jedec_29gl,
4992 .probe_timing = TIMING_ZERO,
4993 .block_erasers =
4994 {
4995 {
4996 .eraseblocks = { {128 * 1024, 128} },
4997 .block_erase = erase_sector_jedec,
4998 }, {
4999 .eraseblocks = { {16 * 1024 * 1024, 1} },
5000 .block_erase = erase_chip_block_jedec,
5001 },
5002 },
5003 .write = write_jedec_1,
5004 .read = read_memmapped,
5005 .voltage = {2700, 3600},
5006 },
5007
5008 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005009 .vendor = "Fujitsu",
5010 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005011 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005012 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005013 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005014 .total_size = 512,
5015 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005016 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005017 .tested = TEST_UNTESTED,
5018 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005019 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005020 .block_erasers =
5021 {
5022 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005023 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005024 {16 * 1024, 1},
5025 {8 * 1024, 2},
5026 {32 * 1024, 1},
5027 {64 * 1024, 7},
5028 },
Sean Nelson35727f72010-01-28 23:55:12 +00005029 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005030 }, {
5031 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005032 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005033 },
5034 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005035 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005036 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005037 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005038 },
5039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005040 {
5041 .vendor = "Fujitsu",
5042 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005043 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005045 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 .total_size = 512,
5047 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005048 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005049 .tested = TEST_UNTESTED,
5050 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005051 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005052 .block_erasers =
5053 {
5054 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005055 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005056 {64 * 1024, 7},
5057 {32 * 1024, 1},
5058 {8 * 1024, 2},
5059 {16 * 1024, 1},
5060 },
Sean Nelson35727f72010-01-28 23:55:12 +00005061 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005062 }, {
5063 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005064 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005065 },
5066 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005067 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005069 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005070 },
5071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005072 {
Sean Nelson35727f72010-01-28 23:55:12 +00005073 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005074 .vendor = "Fujitsu",
5075 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005076 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005077 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005078 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005079 .total_size = 512,
5080 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005081 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005082 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005083 .probe = probe_jedec,
5084 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005085 .block_erasers =
5086 {
5087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005088 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005089 {16 * 1024, 1},
5090 {8 * 1024, 2},
5091 {32 * 1024, 1},
5092 {64 * 1024, 7},
5093 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005094 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005095 }, {
5096 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005097 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005098 },
5099 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005100 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005101 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005102 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005103 },
5104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005105 {
5106 .vendor = "Fujitsu",
5107 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005108 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005109 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005110 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005111 .total_size = 512,
5112 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005113 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005115 .probe = probe_jedec,
5116 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005117 .block_erasers =
5118 {
5119 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005120 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005121 {64 * 1024, 7},
5122 {32 * 1024, 1},
5123 {8 * 1024, 2},
5124 {16 * 1024, 1},
5125 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005126 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005127 }, {
5128 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005129 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005130 },
5131 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005132 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005133 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005134 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005135 },
5136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005137 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005138 .vendor = "Fujitsu",
5139 .name = "MBM29LV160BE",
5140 .bustype = BUS_PARALLEL,
5141 .manufacture_id = FUJITSU_ID,
5142 .model_id = FUJITSU_MBM29LV160BE,
5143 .total_size = 2 * 1024,
5144 .page_size = 0,
5145 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5146 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005147 .probe = probe_jedec,
5148 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = {
5153 {16 * 1024, 1},
5154 {8 * 1024, 2},
5155 {32 * 1024, 1},
5156 {64 * 1024, 31},
5157 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005158 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005159 }, {
5160 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005161 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005162 },
5163 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005164 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005165 .read = read_memmapped,
5166 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5167 },
5168
5169 {
5170 .vendor = "Fujitsu",
5171 .name = "MBM29LV160TE",
5172 .bustype = BUS_PARALLEL,
5173 .manufacture_id = FUJITSU_ID,
5174 .model_id = FUJITSU_MBM29LV160TE,
5175 .total_size = 2 * 1024,
5176 .page_size = 0,
5177 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5178 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005179 .probe = probe_jedec,
5180 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005181 .block_erasers =
5182 {
5183 {
5184 .eraseblocks = {
5185 {64 * 1024, 31},
5186 {32 * 1024, 1},
5187 {8 * 1024, 2},
5188 {16 * 1024, 1},
5189 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005190 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005191 }, {
5192 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005193 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005194 },
5195 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005196 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005197 .read = read_memmapped,
5198 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5199 },
5200
5201 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005202 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005203 .name = "GD25LQ32",
5204 .bustype = BUS_SPI,
5205 .manufacture_id = GIGADEVICE_ID,
5206 .model_id = GIGADEVICE_GD25LQ32,
5207 .total_size = 4096,
5208 .page_size = 256,
5209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5211 .tested = TEST_OK_PREW,
5212 .probe = probe_spi_rdid,
5213 .probe_timing = TIMING_ZERO,
5214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 1024} },
5218 .block_erase = spi_block_erase_20,
5219 }, {
5220 .eraseblocks = { {32 * 1024, 128} },
5221 .block_erase = spi_block_erase_52,
5222 }, {
5223 .eraseblocks = { {64 * 1024, 64} },
5224 .block_erase = spi_block_erase_d8,
5225 }, {
5226 .eraseblocks = { {4 * 1024 * 1024, 1} },
5227 .block_erase = spi_block_erase_60,
5228 }, {
5229 .eraseblocks = { {4 * 1024 * 1024, 1} },
5230 .block_erase = spi_block_erase_c7,
5231 }
5232 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005233 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005234 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5235 .write = spi_chip_write_256,
5236 .read = spi_chip_read,
5237 .voltage = {1700, 1950},
5238 },
5239
5240 {
5241 .vendor = "GigaDevice",
5242 .name = "GD25Q512",
5243 .bustype = BUS_SPI,
5244 .manufacture_id = GIGADEVICE_ID,
5245 .model_id = GIGADEVICE_GD25Q512,
5246 .total_size = 64,
5247 .page_size = 256,
5248 .feature_bits = FEATURE_WRSR_WREN,
5249 .tested = TEST_UNTESTED,
5250 .probe = probe_spi_rdid,
5251 .probe_timing = TIMING_ZERO,
5252 .block_erasers = {
5253 {
5254 .eraseblocks = { {4 * 1024, 16} },
5255 .block_erase = spi_block_erase_20,
5256 }, {
5257 .eraseblocks = { {32 * 1024, 2} },
5258 .block_erase = spi_block_erase_52,
5259 }, {
5260 .eraseblocks = { {64 * 1024, 1} },
5261 .block_erase = spi_block_erase_60,
5262 }, {
5263 .eraseblocks = { {64 * 1024, 1} },
5264 .block_erase = spi_block_erase_c7,
5265 }
5266 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005267 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005268 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5269 .write = spi_chip_write_256,
5270 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5271 .voltage = {2700, 3600},
5272 },
5273
5274 {
5275 .vendor = "GigaDevice",
5276 .name = "GD25Q10",
5277 .bustype = BUS_SPI,
5278 .manufacture_id = GIGADEVICE_ID,
5279 .model_id = GIGADEVICE_GD25Q10,
5280 .total_size = 128,
5281 .page_size = 256,
5282 .feature_bits = FEATURE_WRSR_WREN,
5283 .tested = TEST_UNTESTED,
5284 .probe = probe_spi_rdid,
5285 .probe_timing = TIMING_ZERO,
5286 .block_erasers = {
5287 {
5288 .eraseblocks = { {4 * 1024, 32} },
5289 .block_erase = spi_block_erase_20,
5290 }, {
5291 .eraseblocks = { {32 * 1024, 4} },
5292 .block_erase = spi_block_erase_52,
5293 }, {
5294 .eraseblocks = { {64 * 1024, 2} },
5295 .block_erase = spi_block_erase_d8,
5296 }, {
5297 .eraseblocks = { {128 * 1024, 1} },
5298 .block_erase = spi_block_erase_60,
5299 }, {
5300 .eraseblocks = { {128 * 1024, 1} },
5301 .block_erase = spi_block_erase_c7,
5302 }
5303 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005304 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005305 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5306 .write = spi_chip_write_256,
5307 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5308 .voltage = {2700, 3600},
5309 },
5310
5311 {
5312 .vendor = "GigaDevice",
5313 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005314 .bustype = BUS_SPI,
5315 .manufacture_id = GIGADEVICE_ID,
5316 .model_id = GIGADEVICE_GD25Q20,
5317 .total_size = 256,
5318 .page_size = 256,
5319 .feature_bits = FEATURE_WRSR_WREN,
5320 .tested = TEST_UNTESTED,
5321 .probe = probe_spi_rdid,
5322 .probe_timing = TIMING_ZERO,
5323 .block_erasers =
5324 {
5325 {
5326 .eraseblocks = { {4 * 1024, 64} },
5327 .block_erase = spi_block_erase_20,
5328 }, {
5329 .eraseblocks = { {32 * 1024, 8} },
5330 .block_erase = spi_block_erase_52,
5331 }, {
5332 .eraseblocks = { {64 * 1024, 4} },
5333 .block_erase = spi_block_erase_d8,
5334 }, {
5335 .eraseblocks = { {256 * 1024, 1} },
5336 .block_erase = spi_block_erase_60,
5337 }, {
5338 .eraseblocks = { {256 * 1024, 1} },
5339 .block_erase = spi_block_erase_c7,
5340 }
5341 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005342 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005343 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005344 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005345 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005346 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005347 },
5348
5349 {
5350 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005351 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005352 .bustype = BUS_SPI,
5353 .manufacture_id = GIGADEVICE_ID,
5354 .model_id = GIGADEVICE_GD25Q40,
5355 .total_size = 512,
5356 .page_size = 256,
5357 .feature_bits = FEATURE_WRSR_WREN,
5358 .tested = TEST_UNTESTED,
5359 .probe = probe_spi_rdid,
5360 .probe_timing = TIMING_ZERO,
5361 .block_erasers =
5362 {
5363 {
5364 .eraseblocks = { {4 * 1024, 128} },
5365 .block_erase = spi_block_erase_20,
5366 }, {
5367 .eraseblocks = { {32 * 1024, 16} },
5368 .block_erase = spi_block_erase_52,
5369 }, {
5370 .eraseblocks = { {64 * 1024, 8} },
5371 .block_erase = spi_block_erase_d8,
5372 }, {
5373 .eraseblocks = { {512 * 1024, 1} },
5374 .block_erase = spi_block_erase_60,
5375 }, {
5376 .eraseblocks = { {512 * 1024, 1} },
5377 .block_erase = spi_block_erase_c7,
5378 }
5379 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005380 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005381 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005382 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005383 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005384 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005385 },
5386
5387 {
5388 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005389 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005390 .bustype = BUS_SPI,
5391 .manufacture_id = GIGADEVICE_ID,
5392 .model_id = GIGADEVICE_GD25Q80,
5393 .total_size = 1024,
5394 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005395 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005396 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5397 .tested = TEST_OK_PREW,
5398 .probe = probe_spi_rdid,
5399 .probe_timing = TIMING_ZERO,
5400 .block_erasers =
5401 {
5402 {
5403 .eraseblocks = { {4 * 1024, 256} },
5404 .block_erase = spi_block_erase_20,
5405 }, {
5406 .eraseblocks = { {32 * 1024, 32} },
5407 .block_erase = spi_block_erase_52,
5408 }, {
5409 .eraseblocks = { {64 * 1024, 16} },
5410 .block_erase = spi_block_erase_d8,
5411 }, {
5412 .eraseblocks = { {1024 * 1024, 1} },
5413 .block_erase = spi_block_erase_60,
5414 }, {
5415 .eraseblocks = { {1024 * 1024, 1} },
5416 .block_erase = spi_block_erase_c7,
5417 }
5418 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005419 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005420 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005421 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005422 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005423 .voltage = {2700, 3600},
5424 },
5425
5426 {
5427 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005428 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005429 .bustype = BUS_SPI,
5430 .manufacture_id = GIGADEVICE_ID,
5431 .model_id = GIGADEVICE_GD25Q16,
5432 .total_size = 2048,
5433 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005434 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005435 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00005436 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005437 .probe = probe_spi_rdid,
5438 .probe_timing = TIMING_ZERO,
5439 .block_erasers =
5440 {
5441 {
5442 .eraseblocks = { {4 * 1024, 512} },
5443 .block_erase = spi_block_erase_20,
5444 }, {
5445 .eraseblocks = { {32 * 1024, 64} },
5446 .block_erase = spi_block_erase_52,
5447 }, {
5448 .eraseblocks = { {64 * 1024, 32} },
5449 .block_erase = spi_block_erase_d8,
5450 }, {
5451 .eraseblocks = { {2 * 1024 * 1024, 1} },
5452 .block_erase = spi_block_erase_60,
5453 }, {
5454 .eraseblocks = { {2 * 1024 * 1024, 1} },
5455 .block_erase = spi_block_erase_c7,
5456 }
5457 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005458 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005459 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005460 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005461 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005462 .voltage = {2700, 3600},
5463 },
5464
5465 {
5466 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005467 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005468 .bustype = BUS_SPI,
5469 .manufacture_id = GIGADEVICE_ID,
5470 .model_id = GIGADEVICE_GD25Q32,
5471 .total_size = 4096,
5472 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005473 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005474 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005475 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005476 .probe = probe_spi_rdid,
5477 .probe_timing = TIMING_ZERO,
5478 .block_erasers =
5479 {
5480 {
5481 .eraseblocks = { {4 * 1024, 1024} },
5482 .block_erase = spi_block_erase_20,
5483 }, {
5484 .eraseblocks = { {32 * 1024, 128} },
5485 .block_erase = spi_block_erase_52,
5486 }, {
5487 .eraseblocks = { {64 * 1024, 64} },
5488 .block_erase = spi_block_erase_d8,
5489 }, {
5490 .eraseblocks = { {4 * 1024 * 1024, 1} },
5491 .block_erase = spi_block_erase_60,
5492 }, {
5493 .eraseblocks = { {4 * 1024 * 1024, 1} },
5494 .block_erase = spi_block_erase_c7,
5495 }
5496 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005497 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005498 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005499 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005500 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005501 .voltage = {2700, 3600},
5502 },
5503
5504 {
5505 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005506 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005507 .bustype = BUS_SPI,
5508 .manufacture_id = GIGADEVICE_ID,
5509 .model_id = GIGADEVICE_GD25Q64,
5510 .total_size = 8192,
5511 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005512 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005513 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005514 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005515 .probe = probe_spi_rdid,
5516 .probe_timing = TIMING_ZERO,
5517 .block_erasers =
5518 {
5519 {
5520 .eraseblocks = { {4 * 1024, 2048} },
5521 .block_erase = spi_block_erase_20,
5522 }, {
5523 .eraseblocks = { {32 * 1024, 256} },
5524 .block_erase = spi_block_erase_52,
5525 }, {
5526 .eraseblocks = { {64 * 1024, 128} },
5527 .block_erase = spi_block_erase_d8,
5528 }, {
5529 .eraseblocks = { {8 * 1024 * 1024, 1} },
5530 .block_erase = spi_block_erase_60,
5531 }, {
5532 .eraseblocks = { {8 * 1024 * 1024, 1} },
5533 .block_erase = spi_block_erase_c7,
5534 }
5535 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005536 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005537 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005538 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005539 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005540 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005541 },
5542
5543 {
5544 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005545 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005546 .bustype = BUS_SPI,
5547 .manufacture_id = GIGADEVICE_ID,
5548 .model_id = GIGADEVICE_GD25Q128,
5549 .total_size = 16384,
5550 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005551 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005552 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5553 .tested = TEST_UNTESTED,
5554 .probe = probe_spi_rdid,
5555 .probe_timing = TIMING_ZERO,
5556 .block_erasers =
5557 {
5558 {
5559 .eraseblocks = { {4 * 1024, 4096} },
5560 .block_erase = spi_block_erase_20,
5561 }, {
5562 .eraseblocks = { {32 * 1024, 512} },
5563 .block_erase = spi_block_erase_52,
5564 }, {
5565 .eraseblocks = { {64 * 1024, 256} },
5566 .block_erase = spi_block_erase_d8,
5567 }, {
5568 .eraseblocks = { {16 * 1024 * 1024, 1} },
5569 .block_erase = spi_block_erase_60,
5570 }, {
5571 .eraseblocks = { {16 * 1024 * 1024, 1} },
5572 .block_erase = spi_block_erase_c7,
5573 }
5574 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005575 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005576 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5577 .write = spi_chip_write_256,
5578 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
5583 .vendor = "GigaDevice",
5584 .name = "GD25T80",
5585 .bustype = BUS_SPI,
5586 .manufacture_id = GIGADEVICE_ID,
5587 .model_id = GIGADEVICE_GD25T80,
5588 .total_size = 1024,
5589 .page_size = 256,
5590 /* OTP: 256B total; enter 0x3A */
5591 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5592 .tested = TEST_UNTESTED,
5593 .probe = probe_spi_rdid,
5594 .probe_timing = TIMING_ZERO,
5595 .block_erasers = {
5596 {
5597 .eraseblocks = { {4 * 1024, 256} },
5598 .block_erase = spi_block_erase_20,
5599 }, {
5600 .eraseblocks = { {64 * 1024, 16} },
5601 .block_erase = spi_block_erase_52,
5602 }, {
5603 .eraseblocks = { {64 * 1024, 16} },
5604 .block_erase = spi_block_erase_d8,
5605 }, {
5606 .eraseblocks = { {1024 * 1024, 1} },
5607 .block_erase = spi_block_erase_60,
5608 }, {
5609 .eraseblocks = { {1024 * 1024, 1} },
5610 .block_erase = spi_block_erase_c7,
5611 }
5612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005614 .unlock = spi_disable_blockprotect,
5615 .write = spi_chip_write_256,
5616 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005617 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005618 },
5619
5620 {
David Borgc96a8bd2010-06-21 16:12:22 +00005621 .vendor = "Hyundai",
5622 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005623 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005624 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005625 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005626 .total_size = 256,
5627 .page_size = 256 * 1024,
5628 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005629 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005630 .probe = probe_jedec,
5631 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5632 .block_erasers =
5633 {
5634 {
5635 .eraseblocks = {
5636 {64 * 1024, 3},
5637 {32 * 1024, 1},
5638 {8 * 1024, 2},
5639 {16 * 1024, 1},
5640 },
5641 .block_erase = erase_sector_jedec,
5642 }, {
5643 .eraseblocks = { {256 * 1024, 1} },
5644 .block_erase = erase_chip_block_jedec,
5645 },
5646 },
5647 .write = write_jedec_1,
5648 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005649 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005650 },
5651
5652 {
5653 .vendor = "Hyundai",
5654 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005655 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005656 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005657 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005658 .total_size = 256,
5659 .page_size = 256 * 1024,
5660 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5661 .tested = TEST_UNTESTED,
5662 .probe = probe_jedec,
5663 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5664 .block_erasers =
5665 {
5666 {
5667 .eraseblocks = {
5668 {16 * 1024, 1},
5669 {8 * 1024, 2},
5670 {32 * 1024, 1},
5671 {64 * 1024, 3},
5672 },
5673 .block_erase = erase_sector_jedec,
5674 }, {
5675 .eraseblocks = { {256 * 1024, 1} },
5676 .block_erase = erase_chip_block_jedec,
5677 },
5678 },
5679 .write = write_jedec_1,
5680 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005681 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005682 },
5683
5684 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005685 .vendor = "Hyundai",
5686 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005687 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005688 .manufacture_id = HYUNDAI_ID,
5689 .model_id = HYUNDAI_HY29F040A,
5690 .total_size = 512,
5691 .page_size = 64 * 1024,
5692 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5693 .tested = TEST_UNTESTED,
5694 .probe = probe_jedec,
5695 .probe_timing = TIMING_ZERO,
5696 .block_erasers =
5697 {
5698 {
5699 .eraseblocks = { {64 * 1024, 8} },
5700 .block_erase = erase_sector_jedec,
5701 }, {
5702 .eraseblocks = { {512 * 1024, 1} },
5703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005708 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005709 },
5710
5711 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005712 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005713 .name = "25F160S33B8",
5714 .bustype = BUS_SPI,
5715 .manufacture_id = INTEL_ID,
5716 .model_id = INTEL_25F160S33B8,
5717 .total_size = 2048,
5718 .page_size = 256,
5719 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5720 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5721 .tested = TEST_UNTESTED,
5722 .probe = probe_spi_rdid,
5723 .probe_timing = TIMING_ZERO,
5724 .block_erasers =
5725 {
5726 {
5727 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5728 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5729 * have no effect on the memory contents, but sets a flag in the SR.
5730 .eraseblocks = {
5731 {8 * 1024, 8},
5732 {64 * 1024, 31} // inaccessible
5733 },
5734 .block_erase = spi_block_erase_40,
5735 }, { */
5736 .eraseblocks = { {64 * 1024, 32} },
5737 .block_erase = spi_block_erase_d8,
5738 }, {
5739 .eraseblocks = { {2 * 1024 * 1024, 1} },
5740 .block_erase = spi_block_erase_c7,
5741 }
5742 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005743 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5744 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005745 .write = spi_chip_write_256,
5746 .read = spi_chip_read, /* also fast read 0x0B */
5747 .voltage = {2700, 3600},
5748 },
5749
5750 {
5751 .vendor = "Intel",
5752 .name = "25F160S33T8",
5753 .bustype = BUS_SPI,
5754 .manufacture_id = INTEL_ID,
5755 .model_id = INTEL_25F160S33T8,
5756 .total_size = 2048,
5757 .page_size = 256,
5758 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5760 .tested = TEST_UNTESTED,
5761 .probe = probe_spi_rdid,
5762 .probe_timing = TIMING_ZERO,
5763 .block_erasers =
5764 {
5765 {
5766 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5767 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5768 * have no effect on the memory contents, but sets a flag in the SR.
5769 .eraseblocks = {
5770 {64 * 1024, 31}, // inaccessible
5771 {8 * 1024, 8}
5772 },
5773 .block_erase = spi_block_erase_40,
5774 }, { */
5775 .eraseblocks = { {64 * 1024, 32} },
5776 .block_erase = spi_block_erase_d8,
5777 }, {
5778 .eraseblocks = { {2 * 1024 * 1024, 1} },
5779 .block_erase = spi_block_erase_c7,
5780 }
5781 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005782 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5783 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005784 .write = spi_chip_write_256,
5785 .read = spi_chip_read, /* also fast read 0x0B */
5786 .voltage = {2700, 3600},
5787 },
5788
5789 {
5790 .vendor = "Intel",
5791 .name = "25F320S33B8",
5792 .bustype = BUS_SPI,
5793 .manufacture_id = INTEL_ID,
5794 .model_id = INTEL_25F320S33B8,
5795 .total_size = 4096,
5796 .page_size = 256,
5797 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5799 .tested = TEST_UNTESTED,
5800 .probe = probe_spi_rdid,
5801 .probe_timing = TIMING_ZERO,
5802 .block_erasers =
5803 {
5804 {
5805 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5806 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5807 * have no effect on the memory contents, but sets a flag in the SR.
5808 .eraseblocks = {
5809 {8 * 1024, 8},
5810 {64 * 1024, 63} // inaccessible
5811 },
5812 .block_erase = spi_block_erase_40,
5813 }, { */
5814 .eraseblocks = { {64 * 1024, 64} },
5815 .block_erase = spi_block_erase_d8,
5816 }, {
5817 .eraseblocks = { {4 * 1024 * 1024, 1} },
5818 .block_erase = spi_block_erase_c7,
5819 }
5820 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005821 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5822 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005823 .write = spi_chip_write_256,
5824 .read = spi_chip_read, /* also fast read 0x0B */
5825 .voltage = {2700, 3600},
5826 },
5827
5828 {
5829 .vendor = "Intel",
5830 .name = "25F320S33T8",
5831 .bustype = BUS_SPI,
5832 .manufacture_id = INTEL_ID,
5833 .model_id = INTEL_25F320S33T8,
5834 .total_size = 4096,
5835 .page_size = 256,
5836 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5838 .tested = TEST_UNTESTED,
5839 .probe = probe_spi_rdid,
5840 .probe_timing = TIMING_ZERO,
5841 .block_erasers =
5842 {
5843 {
5844 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5845 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5846 * have no effect on the memory contents, but sets a flag in the SR.
5847 .eraseblocks = {
5848 {64 * 1024, 63}, // inaccessible
5849 {8 * 1024, 8}
5850 },
5851 .block_erase = spi_block_erase_40,
5852 }, { */
5853 .eraseblocks = { {64 * 1024, 64} },
5854 .block_erase = spi_block_erase_d8,
5855 }, {
5856 .eraseblocks = { {4 * 1024 * 1024, 1} },
5857 .block_erase = spi_block_erase_c7,
5858 }
5859 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005860 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5861 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005862 .write = spi_chip_write_256,
5863 .read = spi_chip_read, /* also fast read 0x0B */
5864 .voltage = {2700, 3600},
5865 },
5866
5867 {
5868 .vendor = "Intel",
5869 .name = "25F640S33B8",
5870 .bustype = BUS_SPI,
5871 .manufacture_id = INTEL_ID,
5872 .model_id = INTEL_25F640S33B8,
5873 .total_size = 8192,
5874 .page_size = 256,
5875 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5877 .tested = TEST_UNTESTED,
5878 .probe = probe_spi_rdid,
5879 .probe_timing = TIMING_ZERO,
5880 .block_erasers =
5881 {
5882 {
5883 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5884 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5885 * have no effect on the memory contents, but sets a flag in the SR.
5886 .eraseblocks = {
5887 {8 * 1024, 8},
5888 {64 * 1024, 127} // inaccessible
5889 },
5890 .block_erase = spi_block_erase_40,
5891 }, { */
5892 .eraseblocks = { {64 * 1024, 128} },
5893 .block_erase = spi_block_erase_d8,
5894 }, {
5895 .eraseblocks = { {8 * 1024 * 1024, 1} },
5896 .block_erase = spi_block_erase_c7,
5897 }
5898 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005899 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5900 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005901 .write = spi_chip_write_256,
5902 .read = spi_chip_read, /* also fast read 0x0B */
5903 .voltage = {2700, 3600},
5904 },
5905
5906 {
5907 .vendor = "Intel",
5908 .name = "25F640S33T8",
5909 .bustype = BUS_SPI,
5910 .manufacture_id = INTEL_ID,
5911 .model_id = INTEL_25F640S33T8,
5912 .total_size = 8192,
5913 .page_size = 256,
5914 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5915 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5916 .tested = TEST_UNTESTED,
5917 .probe = probe_spi_rdid,
5918 .probe_timing = TIMING_ZERO,
5919 .block_erasers =
5920 {
5921 {
5922 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5923 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5924 * have no effect on the memory contents, but sets a flag in the SR.
5925 .eraseblocks = {
5926 {64 * 1024, 127}, // inaccessible
5927 {8 * 1024, 8}
5928 },
5929 .block_erase = spi_block_erase_40,
5930 }, { */
5931 .eraseblocks = { {64 * 1024, 128} },
5932 .block_erase = spi_block_erase_d8,
5933 }, {
5934 .eraseblocks = { {8 * 1024 * 1024, 1} },
5935 .block_erase = spi_block_erase_c7,
5936 }
5937 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005938 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5939 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005940 .write = spi_chip_write_256,
5941 .read = spi_chip_read, /* also fast read 0x0B */
5942 .voltage = {2700, 3600},
5943 },
5944
5945 {
5946 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005947 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005948 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005949 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005950 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005951 .total_size = 128,
5952 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005953 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005954 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005955 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005956 .block_erasers =
5957 {
5958 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005959 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005960 {8 * 1024, 1},
5961 {4 * 1024, 2},
5962 {112 * 1024, 1},
5963 },
Sean Nelson28accc22010-03-19 18:47:06 +00005964 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005965 },
5966 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005967 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005969 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005970 },
5971
5972 {
5973 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005974 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005975 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005976 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005977 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005978 .total_size = 128,
5979 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005980 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005981 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005982 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005983 .block_erasers =
5984 {
5985 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005986 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005987 {112 * 1024, 1},
5988 {4 * 1024, 2},
5989 {8 * 1024, 1},
5990 },
Sean Nelson28accc22010-03-19 18:47:06 +00005991 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005992 },
5993 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005994 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005996 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005997 },
5998
5999 {
6000 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006001 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006002 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006003 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006004 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006005 .total_size = 256,
6006 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006007 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006008 .probe = probe_82802ab,
6009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6010 .block_erasers =
6011 {
6012 {
6013 .eraseblocks = {
6014 {128 * 1024, 1},
6015 {96 * 1024, 1},
6016 {8 * 1024, 2},
6017 {16 * 1024, 1},
6018 },
6019 .block_erase = erase_block_82802ab,
6020 },
6021 },
6022 .write = write_82802ab,
6023 .read = read_memmapped,
6024 },
6025
6026 {
6027 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006028 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006030 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006031 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006032 .total_size = 512,
6033 .page_size = 256,
6034 .tested = TEST_UNTESTED,
6035 .probe = probe_82802ab,
6036 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006037 .block_erasers =
6038 {
6039 {
6040 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006041 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006042 },
6043 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006044 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006045 .write = write_82802ab,
6046 .read = read_memmapped,
6047 },
6048
6049 {
6050 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006051 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006052 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006053 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006054 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006055 .total_size = 512,
6056 .page_size = 128 * 1024, /* maximal block size */
6057 .tested = TEST_UNTESTED,
6058 .probe = probe_82802ab,
6059 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6060 .block_erasers =
6061 {
6062 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006063 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006064 {16 * 1024, 1},
6065 {8 * 1024, 2},
6066 {96 * 1024, 1},
6067 {128 * 1024, 3},
6068 },
6069 .block_erase = erase_block_82802ab,
6070 },
6071 },
6072 .write = write_82802ab,
6073 .read = read_memmapped,
6074 },
6075
6076 {
6077 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006078 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006079 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006080 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006081 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006082 .total_size = 512,
6083 .page_size = 128 * 1024, /* maximal block size */
6084 .tested = TEST_UNTESTED,
6085 .probe = probe_82802ab,
6086 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6087 .block_erasers =
6088 {
6089 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006090 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006091 {128 * 1024, 3},
6092 {96 * 1024, 1},
6093 {8 * 1024, 2},
6094 {16 * 1024, 1},
6095 },
6096 .block_erase = erase_block_82802ab,
6097 },
6098 },
6099 .write = write_82802ab,
6100 .read = read_memmapped,
6101 },
6102
6103 {
6104 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006105 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006106 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006107 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006108 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006109 .total_size = 512,
6110 .page_size = 128 * 1024, /* maximal block size */
6111 .feature_bits = FEATURE_ADDR_SHIFTED,
6112 .tested = TEST_UNTESTED,
6113 .probe = probe_82802ab,
6114 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6115 .block_erasers =
6116 {
6117 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006118 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006119 {16 * 1024, 1},
6120 {8 * 1024, 2},
6121 {96 * 1024, 1},
6122 {128 * 1024, 3},
6123 },
6124 .block_erase = erase_block_82802ab,
6125 },
6126 },
6127 .write = write_82802ab,
6128 .read = read_memmapped,
6129 },
6130
6131 {
6132 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006133 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006134 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006135 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006136 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006137 .total_size = 512,
6138 .page_size = 128 * 1024, /* maximal block size */
6139 .feature_bits = FEATURE_ADDR_SHIFTED,
6140 .tested = TEST_UNTESTED,
6141 .probe = probe_82802ab,
6142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6143 .block_erasers =
6144 {
6145 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006146 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006147 {128 * 1024, 3},
6148 {96 * 1024, 1},
6149 {8 * 1024, 2},
6150 {16 * 1024, 1},
6151 },
6152 .block_erase = erase_block_82802ab,
6153 },
6154 },
6155 .write = write_82802ab,
6156 .read = read_memmapped,
6157 },
6158
6159 {
6160 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006161 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006162 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006163 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006164 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006165 .total_size = 512,
6166 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006167 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006168 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006169 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006170 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006171 .block_erasers =
6172 {
6173 {
6174 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006175 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006176 },
6177 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006178 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006179 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006181 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006182 },
6183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006184 {
6185 .vendor = "Intel",
6186 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006187 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006189 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .total_size = 1024,
6191 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006192 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006193 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006194 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006195 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006196 .block_erasers =
6197 {
6198 {
6199 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006200 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006201 },
6202 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006203 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006204 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006206 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006207 },
6208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006209 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006210 .vendor = "ISSI",
6211 .name = "IS29GL064B",
6212 .bustype = BUS_PARALLEL,
6213 .manufacture_id = ISSI_ID,
6214 .model_id = ISSI_PMC_IS29GL064B,
6215 .total_size = 8192,
6216 .page_size = 128 * 1024, /* actual page size is 16 */
6217 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6218 .tested = TEST_UNTESTED,
6219 .probe = probe_jedec_29gl,
6220 .probe_timing = TIMING_ZERO,
6221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = {
6225 {8 * 1024, 8},
6226 {64 * 1024, 127},
6227 },
6228 .block_erase = erase_sector_jedec,
6229 }, {
6230 .eraseblocks = { {8 * 1024 * 1024, 1} },
6231 .block_erase = erase_chip_block_jedec,
6232 },
6233 },
6234 .write = write_jedec_1,
6235 .read = read_memmapped,
6236 .voltage = {2700, 3600},
6237 },
6238
6239 {
6240 .vendor = "ISSI",
6241 .name = "IS29GL064T",
6242 .bustype = BUS_PARALLEL,
6243 .manufacture_id = ISSI_ID,
6244 .model_id = ISSI_PMC_IS29GL064T,
6245 .total_size = 8192,
6246 .page_size = 128 * 1024, /* actual page size is 16 */
6247 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6248 .tested = TEST_UNTESTED,
6249 .probe = probe_jedec_29gl,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = {
6255 {64 * 1024, 127},
6256 {8 * 1024, 8},
6257 },
6258 .block_erase = erase_sector_jedec,
6259 }, {
6260 .eraseblocks = { {8 * 1024 * 1024, 1} },
6261 .block_erase = erase_chip_block_jedec,
6262 },
6263 },
6264 .write = write_jedec_1,
6265 .read = read_memmapped,
6266 .voltage = {2700, 3600},
6267 },
6268
6269 {
6270 .vendor = "ISSI",
6271 .name = "IS29GL064H/L",
6272 .bustype = BUS_PARALLEL,
6273 .manufacture_id = ISSI_ID,
6274 .model_id = ISSI_PMC_IS29GL064HL,
6275 .total_size = 8192,
6276 .page_size = 128 * 1024, /* actual page size is 16 */
6277 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6278 .tested = TEST_UNTESTED,
6279 .probe = probe_jedec_29gl,
6280 .probe_timing = TIMING_ZERO,
6281 .block_erasers =
6282 {
6283 {
6284 .eraseblocks = { {64 * 1024, 128} },
6285 .block_erase = erase_sector_jedec,
6286 }, {
6287 .eraseblocks = { {8 * 1024 * 1024, 1} },
6288 .block_erase = erase_chip_block_jedec,
6289 },
6290 },
6291 .write = write_jedec_1,
6292 .read = read_memmapped,
6293 .voltage = {2700, 3600},
6294 },
6295
6296 {
6297 .vendor = "ISSI",
6298 .name = "IS29GL128H/L",
6299 .bustype = BUS_PARALLEL,
6300 .manufacture_id = ISSI_ID,
6301 .model_id = ISSI_PMC_IS29GL128HL,
6302 .total_size = 16384,
6303 .page_size = 128 * 1024, /* actual page size is 16 */
6304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6305 .tested = TEST_UNTESTED,
6306 .probe = probe_jedec_29gl,
6307 .probe_timing = TIMING_ZERO,
6308 .block_erasers =
6309 {
6310 {
6311 .eraseblocks = { {128 * 1024, 128} },
6312 .block_erase = erase_sector_jedec,
6313 }, {
6314 .eraseblocks = { {16 * 1024 * 1024, 1} },
6315 .block_erase = erase_chip_block_jedec,
6316 },
6317 },
6318 .write = write_jedec_1,
6319 .read = read_memmapped,
6320 .voltage = {2700, 3600},
6321 },
6322
6323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006324 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006325 .name = "MX23L3254",
6326 .bustype = BUS_SPI,
6327 .manufacture_id = MACRONIX_ID,
6328 .model_id = MACRONIX_MX23L3254,
6329 .total_size = 4096,
6330 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006331 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006332 .probe = probe_spi_rdid,
6333 .probe_timing = TIMING_ZERO,
6334 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6335 .read = spi_chip_read, /* Fast read (0x0B) supported */
6336 .voltage = {3000, 3600},
6337 },
6338
6339 {
6340 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006341 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006342 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006343 .manufacture_id = MACRONIX_ID,
6344 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006345 .total_size = 64,
6346 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006347 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006348 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006349 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006350 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006351 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006352 .block_erasers =
6353 {
6354 {
6355 .eraseblocks = { {4 * 1024, 16} },
6356 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006357 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006358 .eraseblocks = { {64 * 1024, 1} },
6359 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006360 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006361 .eraseblocks = { {64 * 1024, 1} },
6362 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006363 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006364 .eraseblocks = { {64 * 1024, 1} },
6365 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006366 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006367 .eraseblocks = { {64 * 1024, 1} },
6368 .block_erase = spi_block_erase_c7,
6369 },
6370 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006371 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006372 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006373 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006374 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6375 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006376 },
6377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006378 {
6379 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006380 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006381 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006382 .manufacture_id = MACRONIX_ID,
6383 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .total_size = 128,
6385 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006386 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006387 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006388 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006389 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006390 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006391 .block_erasers =
6392 {
6393 {
6394 .eraseblocks = { {4 * 1024, 32} },
6395 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006396 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006397 .eraseblocks = { {64 * 1024, 2} },
6398 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006399 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006400 .eraseblocks = { {128 * 1024, 1} },
6401 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006402 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006403 .eraseblocks = { {128 * 1024, 1} },
6404 .block_erase = spi_block_erase_c7,
6405 },
6406 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006407 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006409 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006410 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006411 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006412 },
6413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006414 {
6415 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006416 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006417 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006418 .manufacture_id = MACRONIX_ID,
6419 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .total_size = 256,
6421 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006422 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006423 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006424 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006425 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006426 .block_erasers =
6427 {
6428 {
6429 .eraseblocks = { {4 * 1024, 64} },
6430 .block_erase = spi_block_erase_20,
6431 }, {
6432 .eraseblocks = { {64 * 1024, 4} },
6433 .block_erase = spi_block_erase_52,
6434 }, {
6435 .eraseblocks = { {64 * 1024, 4} },
6436 .block_erase = spi_block_erase_d8,
6437 }, {
6438 .eraseblocks = { {256 * 1024, 1} },
6439 .block_erase = spi_block_erase_60,
6440 }, {
6441 .eraseblocks = { {256 * 1024, 1} },
6442 .block_erase = spi_block_erase_c7,
6443 },
6444 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006445 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006447 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006448 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006449 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006450 },
6451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006452 {
6453 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006454 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006455 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006456 .manufacture_id = MACRONIX_ID,
6457 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .total_size = 512,
6459 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006460 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006463 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006464 .block_erasers =
6465 {
6466 {
6467 .eraseblocks = { {4 * 1024, 128} },
6468 .block_erase = spi_block_erase_20,
6469 }, {
6470 .eraseblocks = { {64 * 1024, 8} },
6471 .block_erase = spi_block_erase_52,
6472 }, {
6473 .eraseblocks = { {64 * 1024, 8} },
6474 .block_erase = spi_block_erase_d8,
6475 }, {
6476 .eraseblocks = { {512 * 1024, 1} },
6477 .block_erase = spi_block_erase_60,
6478 }, {
6479 .eraseblocks = { {512 * 1024, 1} },
6480 .block_erase = spi_block_erase_c7,
6481 },
6482 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006483 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006484 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006485 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006486 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006487 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006488 },
6489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006490 {
6491 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006492 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006493 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006494 .manufacture_id = MACRONIX_ID,
6495 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006496 .total_size = 1024,
6497 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006498 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006499 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006500 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006501 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006502 .block_erasers =
6503 {
6504 {
6505 .eraseblocks = { {4 * 1024, 256} },
6506 .block_erase = spi_block_erase_20,
6507 }, {
6508 .eraseblocks = { {64 * 1024, 16} },
6509 .block_erase = spi_block_erase_52,
6510 }, {
6511 .eraseblocks = { {64 * 1024, 16} },
6512 .block_erase = spi_block_erase_d8,
6513 }, {
6514 .eraseblocks = { {1024 * 1024, 1} },
6515 .block_erase = spi_block_erase_60,
6516 }, {
6517 .eraseblocks = { {1024 * 1024, 1} },
6518 .block_erase = spi_block_erase_c7,
6519 },
6520 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006521 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006522 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006523 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006524 .read = spi_chip_read, /* Fast read (0x0B) supported */
6525 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006526 },
6527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006528 {
6529 .vendor = "Macronix",
6530 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006531 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006532 .manufacture_id = MACRONIX_ID,
6533 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006534 .total_size = 2048,
6535 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006536 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006537 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006538 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006539 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006540 .block_erasers =
6541 {
6542 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006543 .eraseblocks = { {64 * 1024, 32} },
6544 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006545 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006546 .eraseblocks = { {64 * 1024, 32} },
6547 .block_erase = spi_block_erase_d8,
6548 }, {
6549 .eraseblocks = { {2 * 1024 * 1024, 1} },
6550 .block_erase = spi_block_erase_60,
6551 }, {
6552 .eraseblocks = { {2 * 1024 * 1024, 1} },
6553 .block_erase = spi_block_erase_c7,
6554 },
6555 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006556 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006557 .unlock = spi_disable_blockprotect,
6558 .write = spi_chip_write_256,
6559 .read = spi_chip_read, /* Fast read (0x0B) supported */
6560 .voltage = {2700, 3600},
6561 },
6562
6563 {
6564 .vendor = "Macronix",
6565 .name = "MX25L1605A/MX25L1606E",
6566 .bustype = BUS_SPI,
6567 .manufacture_id = MACRONIX_ID,
6568 .model_id = MACRONIX_MX25L1605,
6569 .total_size = 2048,
6570 .page_size = 256,
6571 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6572 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6573 .tested = TEST_OK_PREW,
6574 .probe = probe_spi_rdid,
6575 .probe_timing = TIMING_ZERO,
6576 .block_erasers =
6577 {
6578 {
6579 .eraseblocks = { {4 * 1024, 512} },
6580 .block_erase = spi_block_erase_20,
6581 }, {
6582 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006583 .block_erase = spi_block_erase_52,
6584 }, {
6585 .eraseblocks = { {64 * 1024, 32} },
6586 .block_erase = spi_block_erase_d8,
6587 }, {
6588 .eraseblocks = { {2 * 1024 * 1024, 1} },
6589 .block_erase = spi_block_erase_60,
6590 }, {
6591 .eraseblocks = { {2 * 1024 * 1024, 1} },
6592 .block_erase = spi_block_erase_c7,
6593 },
6594 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006595 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006596 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006597 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006598 .read = spi_chip_read, /* Fast read (0x0B) supported */
6599 .voltage = {2700, 3600},
6600 },
6601
6602 {
6603 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006604 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006605 .bustype = BUS_SPI,
6606 .manufacture_id = MACRONIX_ID,
6607 .model_id = MACRONIX_MX25L1605,
6608 .total_size = 2048,
6609 .page_size = 256,
6610 .feature_bits = FEATURE_WRSR_WREN,
6611 .tested = TEST_OK_PREW,
6612 .probe = probe_spi_rdid,
6613 .probe_timing = TIMING_ZERO,
6614 .block_erasers =
6615 {
6616 {
6617 .eraseblocks = { {4 * 1024, 512} },
6618 .block_erase = spi_block_erase_20,
6619 }, {
6620 .eraseblocks = { {64 * 1024, 32} },
6621 .block_erase = spi_block_erase_d8,
6622 }, {
6623 .eraseblocks = { {2 * 1024 * 1024, 1} },
6624 .block_erase = spi_block_erase_60,
6625 }, {
6626 .eraseblocks = { {2 * 1024 * 1024, 1} },
6627 .block_erase = spi_block_erase_c7,
6628 },
6629 },
Stefan Tauner6697f712014-08-06 15:09:15 +00006630 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006631 .unlock = spi_disable_blockprotect,
6632 .write = spi_chip_write_256,
6633 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006634 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006635 },
6636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006637 {
6638 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006639 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006640 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006641 .manufacture_id = MACRONIX_ID,
6642 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006643 .total_size = 2048,
6644 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006645 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6646 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006647 .tested = TEST_UNTESTED,
6648 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006649 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006650 .block_erasers =
6651 {
6652 {
6653 .eraseblocks = { {4 * 1024, 512} },
6654 .block_erase = spi_block_erase_20,
6655 }, {
6656 .eraseblocks = { {64 * 1024, 32} },
6657 .block_erase = spi_block_erase_d8,
6658 }, {
6659 .eraseblocks = { {2 * 1024 * 1024, 1} },
6660 .block_erase = spi_block_erase_60,
6661 }, {
6662 .eraseblocks = { {2 * 1024 * 1024, 1} },
6663 .block_erase = spi_block_erase_c7,
6664 }
6665 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006666 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006667 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006668 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006670 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006671 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006672
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006673 {
6674 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006675 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006676 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006677 .manufacture_id = MACRONIX_ID,
6678 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006679 .total_size = 2048,
6680 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006681 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006683 .tested = TEST_UNTESTED,
6684 .probe = probe_spi_rdid,
6685 .probe_timing = TIMING_ZERO,
6686 .block_erasers =
6687 {
6688 {
6689 .eraseblocks = { {4 * 1024, 512} },
6690 .block_erase = spi_block_erase_20,
6691 }, {
6692 .eraseblocks = { {64 * 1024, 32} },
6693 .block_erase = spi_block_erase_d8,
6694 }, {
6695 .eraseblocks = { {2 * 1024 * 1024, 1} },
6696 .block_erase = spi_block_erase_60,
6697 }, {
6698 .eraseblocks = { {2 * 1024 * 1024, 1} },
6699 .block_erase = spi_block_erase_c7,
6700 }
6701 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006702 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006703 .unlock = spi_disable_blockprotect,
6704 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006705 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006706 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006707 },
6708
6709 {
6710 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006711 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006712 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006713 .manufacture_id = MACRONIX_ID,
6714 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006715 .total_size = 4096,
6716 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006717 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006718 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006719 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006720 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006721 .block_erasers =
6722 {
6723 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006724 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006725 .block_erase = spi_block_erase_20,
6726 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006727 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006728 .block_erase = spi_block_erase_d8,
6729 }, {
6730 .eraseblocks = { {4 * 1024 * 1024, 1} },
6731 .block_erase = spi_block_erase_60,
6732 }, {
6733 .eraseblocks = { {4 * 1024 * 1024, 1} },
6734 .block_erase = spi_block_erase_c7,
6735 },
6736 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006737 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006738 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006739 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006740 .read = spi_chip_read, /* Fast read (0x0B) supported */
6741 .voltage = {2700, 3600},
6742 },
6743
6744 {
6745 .vendor = "Macronix",
6746 .name = "MX25L3205D/MX25L3208D",
6747 .bustype = BUS_SPI,
6748 .manufacture_id = MACRONIX_ID,
6749 .model_id = MACRONIX_MX25L3205,
6750 .total_size = 4096,
6751 .page_size = 256,
6752 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6754 .tested = TEST_OK_PREW,
6755 .probe = probe_spi_rdid,
6756 .probe_timing = TIMING_ZERO,
6757 .block_erasers =
6758 {
6759 {
6760 .eraseblocks = { {4 * 1024, 1024} },
6761 .block_erase = spi_block_erase_20,
6762 }, {
6763 .eraseblocks = { {64 * 1024, 64} },
6764 .block_erase = spi_block_erase_d8,
6765 }, {
6766 .eraseblocks = { {4 * 1024 * 1024, 1} },
6767 .block_erase = spi_block_erase_60,
6768 }, {
6769 .eraseblocks = { {4 * 1024 * 1024, 1} },
6770 .block_erase = spi_block_erase_c7,
6771 },
6772 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006773 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006774 .unlock = spi_disable_blockprotect,
6775 .write = spi_chip_write_256,
6776 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6777 .voltage = {2700, 3600},
6778 },
6779
6780 {
6781 .vendor = "Macronix",
6782 .name = "MX25L3206E",
6783 .bustype = BUS_SPI,
6784 .manufacture_id = MACRONIX_ID,
6785 .model_id = MACRONIX_MX25L3205,
6786 .total_size = 4096,
6787 .page_size = 256,
6788 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6790 .tested = TEST_OK_PREW,
6791 .probe = probe_spi_rdid,
6792 .probe_timing = TIMING_ZERO,
6793 .block_erasers =
6794 {
6795 {
6796 .eraseblocks = { {4 * 1024, 1024} },
6797 .block_erase = spi_block_erase_20,
6798 }, {
6799 .eraseblocks = { {64 * 1024, 64} },
6800 .block_erase = spi_block_erase_d8,
6801 }, {
6802 .eraseblocks = { {64 * 1024, 64} },
6803 .block_erase = spi_block_erase_52,
6804 }, {
6805 .eraseblocks = { {4 * 1024 * 1024, 1} },
6806 .block_erase = spi_block_erase_60,
6807 }, {
6808 .eraseblocks = { {4 * 1024 * 1024, 1} },
6809 .block_erase = spi_block_erase_c7,
6810 },
6811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006812 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006813 .unlock = spi_disable_blockprotect,
6814 .write = spi_chip_write_256,
6815 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006816 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006817 },
6818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006819 {
6820 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006821 .name = "MX25L3273E",
6822 .bustype = BUS_SPI,
6823 .manufacture_id = MACRONIX_ID,
6824 .model_id = MACRONIX_MX25L3205,
6825 .total_size = 4096,
6826 .page_size = 256,
6827 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6829 .tested = TEST_UNTESTED,
6830 .probe = probe_spi_rdid,
6831 .probe_timing = TIMING_ZERO,
6832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = { {4 * 1024, 1024} },
6836 .block_erase = spi_block_erase_20,
6837 }, {
6838 .eraseblocks = { {32 * 1024, 128} },
6839 .block_erase = spi_block_erase_52,
6840 }, {
6841 .eraseblocks = { {64 * 1024, 64} },
6842 .block_erase = spi_block_erase_d8,
6843 }, {
6844 .eraseblocks = { {4 * 1024 * 1024, 1} },
6845 .block_erase = spi_block_erase_60,
6846 }, {
6847 .eraseblocks = { {4 * 1024 * 1024, 1} },
6848 .block_erase = spi_block_erase_c7,
6849 },
6850 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006851 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006852 .unlock = spi_disable_blockprotect,
6853 .write = spi_chip_write_256,
6854 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6855 .voltage = {2700, 3600},
6856 },
6857
6858 {
6859 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006860 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006861 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006862 .manufacture_id = MACRONIX_ID,
6863 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006864 .total_size = 4096,
6865 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006866 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006868 .tested = TEST_UNTESTED,
6869 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006871 .block_erasers =
6872 {
6873 {
6874 .eraseblocks = { {4 * 1024, 1024} },
6875 .block_erase = spi_block_erase_20,
6876 }, {
6877 .eraseblocks = { {64 * 1024, 64} },
6878 .block_erase = spi_block_erase_d8,
6879 }, {
6880 .eraseblocks = { {4 * 1024 * 1024, 1} },
6881 .block_erase = spi_block_erase_60,
6882 }, {
6883 .eraseblocks = { {4 * 1024 * 1024, 1} },
6884 .block_erase = spi_block_erase_c7,
6885 }
6886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006887 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006888 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006889 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006890 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006891 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006892 },
6893
6894 {
6895 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006896 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006897 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006898 .manufacture_id = MACRONIX_ID,
6899 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006900 .total_size = 8192,
6901 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006902 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006904 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006905 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006907 .block_erasers =
6908 {
6909 {
6910 .eraseblocks = { {64 * 1024, 128} },
6911 .block_erase = spi_block_erase_20,
6912 }, {
6913 .eraseblocks = { {64 * 1024, 128} },
6914 .block_erase = spi_block_erase_d8,
6915 }, {
6916 .eraseblocks = { {8 * 1024 * 1024, 1} },
6917 .block_erase = spi_block_erase_60,
6918 }, {
6919 .eraseblocks = { {8 * 1024 * 1024, 1} },
6920 .block_erase = spi_block_erase_c7,
6921 }
6922 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006923 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006924 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006925 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006927 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006928 },
6929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006930 {
6931 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006932 .name = "MX25L6406E/MX25L6436E",
6933 .bustype = BUS_SPI,
6934 .manufacture_id = MACRONIX_ID,
6935 .model_id = MACRONIX_MX25L6405,
6936 .total_size = 8192,
6937 .page_size = 256,
6938 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6939 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6940 .tested = TEST_OK_PREW,
6941 .probe = probe_spi_rdid,
6942 .probe_timing = TIMING_ZERO,
6943 .block_erasers =
6944 {
6945 {
6946 .eraseblocks = { {4 * 1024, 2048} },
6947 .block_erase = spi_block_erase_20,
6948 }, {
6949 .eraseblocks = { {64 * 1024, 128} },
6950 .block_erase = spi_block_erase_d8,
6951 }, {
6952 .eraseblocks = { {8 * 1024 * 1024, 1} },
6953 .block_erase = spi_block_erase_60,
6954 }, {
6955 .eraseblocks = { {8 * 1024 * 1024, 1} },
6956 .block_erase = spi_block_erase_c7,
6957 }
6958 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006959 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006960 .unlock = spi_disable_blockprotect,
6961 .write = spi_chip_write_256,
6962 .read = spi_chip_read,
6963 .voltage = {2700, 3600},
6964 },
6965
6966 {
6967 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006968 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006969 .bustype = BUS_SPI,
6970 .manufacture_id = MACRONIX_ID,
6971 .model_id = MACRONIX_MX25L6405,
6972 .total_size = 8192,
6973 .page_size = 256,
6974 /* supports SFDP */
6975 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6977 .tested = TEST_OK_PREW,
6978 .probe = probe_spi_rdid,
6979 .probe_timing = TIMING_ZERO,
6980 .block_erasers =
6981 {
6982 {
6983 .eraseblocks = { {4 * 1024, 2048} },
6984 .block_erase = spi_block_erase_20,
6985 }, {
6986 .eraseblocks = { {32 * 1024, 256} },
6987 .block_erase = spi_block_erase_52,
6988 }, {
6989 .eraseblocks = { {64 * 1024, 128} },
6990 .block_erase = spi_block_erase_d8,
6991 }, {
6992 .eraseblocks = { {8 * 1024 * 1024, 1} },
6993 .block_erase = spi_block_erase_60,
6994 }, {
6995 .eraseblocks = { {8 * 1024 * 1024, 1} },
6996 .block_erase = spi_block_erase_c7,
6997 }
6998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006999 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007000 .unlock = spi_disable_blockprotect,
7001 .write = spi_chip_write_256,
7002 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7003 .voltage = {2700, 3600},
7004 },
7005
7006 {
7007 .vendor = "Macronix",
7008 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007009 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007010 .manufacture_id = MACRONIX_ID,
7011 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007012 .total_size = 16384,
7013 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007014 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
7015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007016 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007018 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007019 .block_erasers =
7020 {
7021 {
7022 .eraseblocks = { {4 * 1024, 4096} },
7023 .block_erase = spi_block_erase_20,
7024 }, {
7025 .eraseblocks = { {64 * 1024, 256} },
7026 .block_erase = spi_block_erase_d8,
7027 }, {
7028 .eraseblocks = { {16 * 1024 * 1024, 1} },
7029 .block_erase = spi_block_erase_60,
7030 }, {
7031 .eraseblocks = { {16 * 1024 * 1024, 1} },
7032 .block_erase = spi_block_erase_c7,
7033 }
7034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007035 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007037 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007038 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007039 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007040 },
7041
7042 {
7043 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007044 .name = "MX25U1635E",
7045 .bustype = BUS_SPI,
7046 .manufacture_id = MACRONIX_ID,
7047 .model_id = MACRONIX_MX25U1635E,
7048 .total_size = 2048,
7049 .page_size = 256,
7050 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7051 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7053 .tested = TEST_UNTESTED,
7054 .probe = probe_spi_rdid,
7055 .probe_timing = TIMING_ZERO,
7056 .block_erasers =
7057 {
7058 {
7059 .eraseblocks = { {4 * 1024, 512} },
7060 .block_erase = spi_block_erase_20,
7061 }, {
7062 .eraseblocks = { {32 * 1024, 64} },
7063 .block_erase = spi_block_erase_52,
7064 }, {
7065 .eraseblocks = { {64 * 1024, 32} },
7066 .block_erase = spi_block_erase_d8,
7067 }, {
7068 .eraseblocks = { {2 * 1024 * 1024, 1} },
7069 .block_erase = spi_block_erase_60,
7070 }, {
7071 .eraseblocks = { {2 * 1024 * 1024, 1} },
7072 .block_erase = spi_block_erase_c7,
7073 }
7074 },
7075 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007076 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007077 .unlock = spi_disable_blockprotect,
7078 .write = spi_chip_write_256,
7079 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7080 .voltage = {1650, 2000},
7081 },
7082
7083 {
7084 .vendor = "Macronix",
7085 .name = "MX25U3235E/F",
7086 .bustype = BUS_SPI,
7087 .manufacture_id = MACRONIX_ID,
7088 .model_id = MACRONIX_MX25U3235E,
7089 .total_size = 4096,
7090 .page_size = 256,
7091 /* F model supports SFDP */
7092 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7093 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7095 .tested = TEST_OK_PREW,
7096 .probe = probe_spi_rdid,
7097 .probe_timing = TIMING_ZERO,
7098 .block_erasers =
7099 {
7100 {
7101 .eraseblocks = { {4 * 1024, 1024} },
7102 .block_erase = spi_block_erase_20,
7103 }, {
7104 .eraseblocks = { {32 * 1024, 128} },
7105 .block_erase = spi_block_erase_52,
7106 }, {
7107 .eraseblocks = { {64 * 1024, 64} },
7108 .block_erase = spi_block_erase_d8,
7109 }, {
7110 .eraseblocks = { {4 * 1024 * 1024, 1} },
7111 .block_erase = spi_block_erase_60,
7112 }, {
7113 .eraseblocks = { {4 * 1024 * 1024, 1} },
7114 .block_erase = spi_block_erase_c7,
7115 }
7116 },
7117 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007118 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007119 .unlock = spi_disable_blockprotect,
7120 .write = spi_chip_write_256,
7121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7122 .voltage = {1650, 2000},
7123 },
7124
7125 {
7126 .vendor = "Macronix",
7127 .name = "MX25U6435E/F",
7128 .bustype = BUS_SPI,
7129 .manufacture_id = MACRONIX_ID,
7130 .model_id = MACRONIX_MX25U6435E,
7131 .total_size = 8192,
7132 .page_size = 256,
7133 /* F model supports SFDP */
7134 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7135 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7137 .tested = TEST_UNTESTED,
7138 .probe = probe_spi_rdid,
7139 .probe_timing = TIMING_ZERO,
7140 .block_erasers =
7141 {
7142 {
7143 .eraseblocks = { {4 * 1024, 2048} },
7144 .block_erase = spi_block_erase_20,
7145 }, {
7146 .eraseblocks = { {32 * 1024, 256} },
7147 .block_erase = spi_block_erase_52,
7148 }, {
7149 .eraseblocks = { {64 * 1024, 128} },
7150 .block_erase = spi_block_erase_d8,
7151 }, {
7152 .eraseblocks = { {8 * 1024 * 1024, 1} },
7153 .block_erase = spi_block_erase_60,
7154 }, {
7155 .eraseblocks = { {8 * 1024 * 1024, 1} },
7156 .block_erase = spi_block_erase_c7,
7157 }
7158 },
7159 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007160 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007161 .unlock = spi_disable_blockprotect,
7162 .write = spi_chip_write_256,
7163 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7164 .voltage = {1650, 2000},
7165 },
7166
7167 {
7168 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007169 .name = "MX25U12835F",
7170 .bustype = BUS_SPI,
7171 .manufacture_id = MACRONIX_ID,
7172 .model_id = MACRONIX_MX25U12835E,
7173 .total_size = 16384,
7174 .page_size = 256,
7175 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7176 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7177 .tested = TEST_UNTESTED,
7178 .probe = probe_spi_rdid,
7179 .probe_timing = TIMING_ZERO,
7180 .block_erasers =
7181 {
7182 {
7183 .eraseblocks = { {4 * 1024, 4096} },
7184 .block_erase = spi_block_erase_20,
7185 }, {
7186 .eraseblocks = { {32 * 1024, 512} },
7187 .block_erase = spi_block_erase_52,
7188 }, {
7189 .eraseblocks = { {64 * 1024, 256} },
7190 .block_erase = spi_block_erase_d8,
7191 }, {
7192 .eraseblocks = { {16 * 1024 * 1024, 1} },
7193 .block_erase = spi_block_erase_60,
7194 }, {
7195 .eraseblocks = { {16 * 1024 * 1024, 1} },
7196 .block_erase = spi_block_erase_c7,
7197 }
7198 },
7199 /* TODO: security register */
7200 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7201 .unlock = spi_disable_blockprotect_bp3_srwd,
7202 .write = spi_chip_write_256, /* Multi I/O supported */
7203 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7204 .voltage = {1650, 2000},
7205 },
7206
7207 {
7208 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007209 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007210 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007211 .manufacture_id = MACRONIX_ID,
7212 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007213 .total_size = 128,
7214 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007215 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7216 .tested = TEST_UNTESTED,
7217 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007218 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007219 .block_erasers =
7220 {
7221 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007222 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007223 {8 * 1024, 1},
7224 {4 * 1024, 2},
7225 {8 * 1024, 2},
7226 {32 * 1024, 1},
7227 {64 * 1024, 1},
7228 },
Sean Nelson35727f72010-01-28 23:55:12 +00007229 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007230 }, {
7231 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007232 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007233 }
7234 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007235 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007236 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007237 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007238 },
7239
7240 {
7241 .vendor = "Macronix",
7242 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007243 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007244 .manufacture_id = MACRONIX_ID,
7245 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007246 .total_size = 128,
7247 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007248 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007249 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007250 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007251 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007252 .block_erasers =
7253 {
7254 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007255 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007256 {64 * 1024, 1},
7257 {32 * 1024, 1},
7258 {8 * 1024, 2},
7259 {4 * 1024, 2},
7260 {8 * 1024, 1},
7261 },
Sean Nelson35727f72010-01-28 23:55:12 +00007262 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007263 }, {
7264 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007265 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007266 }
7267 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007268 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007269 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007270 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007271 },
7272
7273 {
7274 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007275 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007276 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007277 .manufacture_id = MACRONIX_ID,
7278 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007279 .total_size = 256,
7280 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007281 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007282 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007283 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007284 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007285 .block_erasers =
7286 {
7287 {
7288 .eraseblocks = {
7289 {16 * 1024, 1},
7290 {8 * 1024, 2},
7291 {32 * 1024, 1},
7292 {64 * 1024, 3},
7293 },
Sean Nelson35727f72010-01-28 23:55:12 +00007294 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007295 }, {
7296 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007297 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007298 },
7299 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007300 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007302 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007303 },
7304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007305 {
7306 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007307 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007308 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007309 .manufacture_id = MACRONIX_ID,
7310 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007311 .total_size = 256,
7312 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007313 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007314 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007315 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007316 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007317 .block_erasers =
7318 {
7319 {
7320 .eraseblocks = {
7321 {64 * 1024, 3},
7322 {32 * 1024, 1},
7323 {8 * 1024, 2},
7324 {16 * 1024, 1},
7325 },
Sean Nelson35727f72010-01-28 23:55:12 +00007326 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007327 }, {
7328 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007329 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007330 },
7331 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007332 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007334 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007335 },
7336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007337 {
7338 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007339 .name = "MX29F022(N)B",
7340 .bustype = BUS_PARALLEL,
7341 .manufacture_id = MACRONIX_ID,
7342 .model_id = MACRONIX_MX29F022B,
7343 .total_size = 256,
7344 .page_size = 0, /* unused */
7345 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7346 .tested = TEST_UNTESTED,
7347 .probe = probe_jedec,
7348 .probe_timing = TIMING_ZERO,
7349 .block_erasers =
7350 {
7351 {
7352 .eraseblocks = {
7353 {16 * 1024, 1},
7354 {8 * 1024, 2},
7355 {32 * 1024, 1},
7356 {64 * 1024, 3},
7357 },
7358 .block_erase = erase_sector_jedec,
7359 }, {
7360 .eraseblocks = { {256 * 1024, 1} },
7361 .block_erase = erase_chip_block_jedec,
7362 }
7363 },
7364 .write = write_jedec_1,
7365 .read = read_memmapped,
7366 .voltage = {4500, 5500},
7367 },
7368
7369 {
7370 .vendor = "Macronix",
7371 .name = "MX29F022(N)T",
7372 .bustype = BUS_PARALLEL,
7373 .manufacture_id = MACRONIX_ID,
7374 .model_id = MACRONIX_MX29F022T,
7375 .total_size = 256,
7376 .page_size = 0, /* unused */
7377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7378 .tested = TEST_OK_PREW,
7379 .probe = probe_jedec,
7380 .probe_timing = TIMING_ZERO,
7381 .block_erasers =
7382 {
7383 {
7384 .eraseblocks = {
7385 {64 * 1024, 3},
7386 {32 * 1024, 1},
7387 {8 * 1024, 2},
7388 {16 * 1024, 1},
7389 },
7390 .block_erase = erase_sector_jedec,
7391 }, {
7392 .eraseblocks = { {256 * 1024, 1} },
7393 .block_erase = erase_chip_block_jedec,
7394 }
7395 },
7396 .write = write_jedec_1,
7397 .read = read_memmapped,
7398 .voltage = {4500, 5500},
7399 },
7400
7401 {
7402 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007403 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007404 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007405 .manufacture_id = MACRONIX_ID,
7406 .model_id = MACRONIX_MX29F040,
7407 .total_size = 512,
7408 .page_size = 64 * 1024,
7409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7410 .tested = TEST_UNTESTED,
7411 .probe = probe_jedec,
7412 .probe_timing = TIMING_ZERO,
7413 .block_erasers =
7414 {
7415 {
7416 .eraseblocks = { {64 * 1024, 8} },
7417 .block_erase = erase_sector_jedec,
7418 }, {
7419 .eraseblocks = { {512 * 1024, 1} },
7420 .block_erase = erase_chip_block_jedec,
7421 },
7422 },
7423 .write = write_jedec_1,
7424 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007425 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007426 },
7427
7428 {
7429 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007430 .name = "MX29GL320EB",
7431 .bustype = BUS_PARALLEL,
7432 .manufacture_id = MACRONIX_ID,
7433 .model_id = MACRONIX_MX29GL320EB,
7434 .total_size = 4096,
7435 .page_size = 128 * 1024, /* actual page size is 16 */
7436 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7437 .tested = TEST_UNTESTED,
7438 .probe = probe_jedec_29gl,
7439 .probe_timing = TIMING_ZERO,
7440 .block_erasers =
7441 {
7442 {
7443 .eraseblocks = {
7444 {8 * 1024, 8},
7445 {64 * 1024, 63},
7446 },
7447 .block_erase = erase_sector_jedec,
7448 }, {
7449 .eraseblocks = { {4 * 1024 * 1024, 1} },
7450 .block_erase = erase_chip_block_jedec,
7451 },
7452 },
7453 .write = write_jedec_1,
7454 .read = read_memmapped,
7455 .voltage = {2700, 3600},
7456 },
7457
7458 {
7459 .vendor = "Macronix",
7460 .name = "MX29GL320ET",
7461 .bustype = BUS_PARALLEL,
7462 .manufacture_id = MACRONIX_ID,
7463 .model_id = MACRONIX_MX29GL320ET,
7464 .total_size = 4096,
7465 .page_size = 128 * 1024, /* actual page size is 16 */
7466 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7467 .tested = TEST_UNTESTED,
7468 .probe = probe_jedec_29gl,
7469 .probe_timing = TIMING_ZERO,
7470 .block_erasers =
7471 {
7472 {
7473 .eraseblocks = {
7474 {64 * 1024, 63},
7475 {8 * 1024, 8},
7476 },
7477 .block_erase = erase_sector_jedec,
7478 }, {
7479 .eraseblocks = { {4 * 1024 * 1024, 1} },
7480 .block_erase = erase_chip_block_jedec,
7481 },
7482 },
7483 .write = write_jedec_1,
7484 .read = read_memmapped,
7485 .voltage = {2700, 3600},
7486 },
7487
7488 {
7489 .vendor = "Macronix",
7490 .name = "MX29GL320EH/L",
7491 .bustype = BUS_PARALLEL,
7492 .manufacture_id = MACRONIX_ID,
7493 .model_id = MACRONIX_MX29GL320EHL,
7494 .total_size = 4096,
7495 .page_size = 128 * 1024, /* actual page size is 16 */
7496 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7497 .tested = TEST_UNTESTED,
7498 .probe = probe_jedec_29gl,
7499 .probe_timing = TIMING_ZERO,
7500 .block_erasers =
7501 {
7502 {
7503 .eraseblocks = { {64 * 1024, 64} },
7504 .block_erase = erase_sector_jedec,
7505 }, {
7506 .eraseblocks = { {4 * 1024 * 1024, 1} },
7507 .block_erase = erase_chip_block_jedec,
7508 },
7509 },
7510 .write = write_jedec_1,
7511 .read = read_memmapped,
7512 .voltage = {2700, 3600},
7513 },
7514
7515 {
7516 .vendor = "Macronix",
7517 .name = "MX29GL640EB",
7518 .bustype = BUS_PARALLEL,
7519 .manufacture_id = MACRONIX_ID,
7520 .model_id = MACRONIX_MX29GL640EB,
7521 .total_size = 8192,
7522 .page_size = 128 * 1024, /* actual page size is 16 */
7523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7524 .tested = TEST_UNTESTED,
7525 .probe = probe_jedec_29gl,
7526 .probe_timing = TIMING_ZERO,
7527 .block_erasers =
7528 {
7529 {
7530 .eraseblocks = {
7531 {8 * 1024, 8},
7532 {64 * 1024, 127},
7533 },
7534 .block_erase = erase_sector_jedec,
7535 }, {
7536 .eraseblocks = { {8 * 1024 * 1024, 1} },
7537 .block_erase = erase_chip_block_jedec,
7538 },
7539 },
7540 .write = write_jedec_1,
7541 .read = read_memmapped,
7542 .voltage = {2700, 3600},
7543 },
7544
7545 {
7546 .vendor = "Macronix",
7547 .name = "MX29GL640ET",
7548 .bustype = BUS_PARALLEL,
7549 .manufacture_id = MACRONIX_ID,
7550 .model_id = MACRONIX_MX29GL640ET,
7551 .total_size = 8192,
7552 .page_size = 128 * 1024, /* actual page size is 16 */
7553 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7554 .tested = TEST_UNTESTED,
7555 .probe = probe_jedec_29gl,
7556 .probe_timing = TIMING_ZERO,
7557 .block_erasers =
7558 {
7559 {
7560 .eraseblocks = {
7561 {64 * 1024, 127},
7562 {8 * 1024, 8},
7563 },
7564 .block_erase = erase_sector_jedec,
7565 }, {
7566 .eraseblocks = { {8 * 1024 * 1024, 1} },
7567 .block_erase = erase_chip_block_jedec,
7568 },
7569 },
7570 .write = write_jedec_1,
7571 .read = read_memmapped,
7572 .voltage = {2700, 3600},
7573 },
7574
7575 {
7576 .vendor = "Macronix",
7577 .name = "MX29GL640EH/L",
7578 .bustype = BUS_PARALLEL,
7579 .manufacture_id = MACRONIX_ID,
7580 .model_id = MACRONIX_MX29GL640EHL,
7581 .total_size = 8192,
7582 .page_size = 128 * 1024, /* actual page size is 16 */
7583 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7584 .tested = TEST_UNTESTED,
7585 .probe = probe_jedec_29gl,
7586 .probe_timing = TIMING_ZERO,
7587 .block_erasers =
7588 {
7589 {
7590 .eraseblocks = { {64 * 1024, 128} },
7591 .block_erase = erase_sector_jedec,
7592 }, {
7593 .eraseblocks = { {8 * 1024 * 1024, 1} },
7594 .block_erase = erase_chip_block_jedec,
7595 },
7596 },
7597 .write = write_jedec_1,
7598 .read = read_memmapped,
7599 .voltage = {2700, 3600},
7600 },
7601
7602 {
7603 .vendor = "Macronix",
7604 .name = "MX29GL128F",
7605 .bustype = BUS_PARALLEL,
7606 .manufacture_id = MACRONIX_ID,
7607 .model_id = MACRONIX_MX29GL128F,
7608 .total_size = 16384,
7609 .page_size = 128 * 1024, /* actual page size is 16 */
7610 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7611 .tested = TEST_UNTESTED,
7612 .probe = probe_jedec_29gl,
7613 .probe_timing = TIMING_ZERO,
7614 .block_erasers =
7615 {
7616 {
7617 .eraseblocks = { {128 * 1024, 128} },
7618 .block_erase = erase_sector_jedec,
7619 }, {
7620 .eraseblocks = { {16 * 1024 * 1024, 1} },
7621 .block_erase = erase_chip_block_jedec,
7622 },
7623 },
7624 .write = write_jedec_1,
7625 .read = read_memmapped,
7626 .voltage = {2700, 3600},
7627 },
7628
7629 {
7630 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007631 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007632 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007633 .manufacture_id = MACRONIX_ID,
7634 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007635 .total_size = 512,
7636 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007637 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7638 .tested = TEST_UNTESTED,
7639 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007640 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007641 .block_erasers =
7642 {
7643 {
Stefan Tauner6697f712014-08-06 15:09:15 +00007644 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00007645 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007646 }, {
7647 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007648 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007649 },
7650 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007651 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007653 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007654 },
7655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007656 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007657 .vendor = "Micron/Numonyx/ST",
7658 .name = "M25P05-A",
7659 .bustype = BUS_SPI,
7660 .manufacture_id = ST_ID,
7661 .model_id = ST_M25P05A,
7662 .total_size = 64,
7663 .page_size = 256,
7664 .feature_bits = FEATURE_WRSR_WREN,
7665 .tested = TEST_OK_PREW,
7666 .probe = probe_spi_rdid,
7667 .probe_timing = TIMING_ZERO,
7668 .block_erasers =
7669 {
7670 {
7671 .eraseblocks = { {32 * 1024, 2} },
7672 .block_erase = spi_block_erase_d8,
7673 }, {
7674 .eraseblocks = { {64 * 1024, 1} },
7675 .block_erase = spi_block_erase_c7,
7676 }
7677 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007678 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007679 .unlock = spi_disable_blockprotect,
7680 .write = spi_chip_write_256,
7681 .read = spi_chip_read,
7682 .voltage = {2700, 3600},
7683 },
7684
7685 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7686 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7687 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7688 * only is successful if RDID does not work.
7689 */
7690 {
7691 .vendor = "Micron/Numonyx/ST",
7692 .name = "M25P05",
7693 .bustype = BUS_SPI,
7694 .manufacture_id = 0, /* Not used. */
7695 .model_id = ST_M25P05_RES,
7696 .total_size = 64,
7697 .page_size = 256,
7698 .feature_bits = FEATURE_WRSR_WREN,
7699 .tested = TEST_UNTESTED,
7700 .probe = probe_spi_res1,
7701 .probe_timing = TIMING_ZERO,
7702 .block_erasers =
7703 {
7704 {
7705 .eraseblocks = { {32 * 1024, 2} },
7706 .block_erase = spi_block_erase_d8,
7707 }, {
7708 .eraseblocks = { {64 * 1024, 1} },
7709 .block_erase = spi_block_erase_c7,
7710 }
7711 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007713 .unlock = spi_disable_blockprotect,
7714 .write = spi_chip_write_1, /* 128 */
7715 .read = spi_chip_read,
7716 .voltage = {2700, 3600},
7717 },
7718
7719 {
7720 .vendor = "Micron/Numonyx/ST",
7721 .name = "M25P10-A",
7722 .bustype = BUS_SPI,
7723 .manufacture_id = ST_ID,
7724 .model_id = ST_M25P10A,
7725 .total_size = 128,
7726 .page_size = 256,
7727 .feature_bits = FEATURE_WRSR_WREN,
7728 .tested = TEST_OK_PRE,
7729 .probe = probe_spi_rdid,
7730 .probe_timing = TIMING_ZERO,
7731 .block_erasers =
7732 {
7733 {
7734 .eraseblocks = { {32 * 1024, 4} },
7735 .block_erase = spi_block_erase_d8,
7736 }, {
7737 .eraseblocks = { {128 * 1024, 1} },
7738 .block_erase = spi_block_erase_c7,
7739 }
7740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007742 .unlock = spi_disable_blockprotect,
7743 .write = spi_chip_write_256,
7744 .read = spi_chip_read,
7745 .voltage = {2700, 3600},
7746 },
7747
7748 /* The ST M25P10 has the same problem as the M25P05. */
7749 {
7750 .vendor = "Micron/Numonyx/ST",
7751 .name = "M25P10",
7752 .bustype = BUS_SPI,
7753 .manufacture_id = 0, /* Not used. */
7754 .model_id = ST_M25P10_RES,
7755 .total_size = 128,
7756 .page_size = 256,
7757 .feature_bits = FEATURE_WRSR_WREN,
7758 .tested = TEST_UNTESTED,
7759 .probe = probe_spi_res1,
7760 .probe_timing = TIMING_ZERO,
7761 .block_erasers =
7762 {
7763 {
7764 .eraseblocks = { {32 * 1024, 4} },
7765 .block_erase = spi_block_erase_d8,
7766 }, {
7767 .eraseblocks = { {128 * 1024, 1} },
7768 .block_erase = spi_block_erase_c7,
7769 }
7770 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007771 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007772 .unlock = spi_disable_blockprotect,
7773 .write = spi_chip_write_1, /* 128 */
7774 .read = spi_chip_read,
7775 .voltage = {2700, 3600},
7776 },
7777
7778 {
7779 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7780 .name = "M25P20",
7781 .bustype = BUS_SPI,
7782 .manufacture_id = ST_ID,
7783 .model_id = ST_M25P20,
7784 .total_size = 256,
7785 .page_size = 256,
7786 .feature_bits = FEATURE_WRSR_WREN,
7787 .tested = TEST_UNTESTED,
7788 .probe = probe_spi_rdid,
7789 .probe_timing = TIMING_ZERO,
7790 .block_erasers =
7791 {
7792 {
7793 .eraseblocks = { {64 * 1024, 4} },
7794 .block_erase = spi_block_erase_d8,
7795 }, {
7796 .eraseblocks = { {256 * 1024, 1} },
7797 .block_erase = spi_block_erase_c7,
7798 }
7799 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007800 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007801 .unlock = spi_disable_blockprotect,
7802 .write = spi_chip_write_256,
7803 .read = spi_chip_read, /* Fast read (0x0B) supported */
7804 .voltage = {2700, 3600},
7805 },
7806
7807 {
7808 .vendor = "Micron/Numonyx/ST",
7809 .name = "M25P20-old",
7810 .bustype = BUS_SPI,
7811 .manufacture_id = 0, /* Not used. */
7812 .model_id = ST_M25P20_RES,
7813 .total_size = 256,
7814 .page_size = 256,
7815 .feature_bits = FEATURE_WRSR_WREN,
7816 .tested = TEST_OK_PREW,
7817 .probe = probe_spi_res1,
7818 .probe_timing = TIMING_ZERO,
7819 .block_erasers =
7820 {
7821 {
7822 .eraseblocks = { {64 * 1024, 4} },
7823 .block_erase = spi_block_erase_d8,
7824 }, {
7825 .eraseblocks = { {256 * 1024, 1} },
7826 .block_erase = spi_block_erase_c7,
7827 }
7828 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007829 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007830 .unlock = spi_disable_blockprotect,
7831 .write = spi_chip_write_256,
7832 .read = spi_chip_read, /* Fast read (0x0B) supported */
7833 .voltage = {2700, 3600},
7834 },
7835
7836 {
7837 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7838 .name = "M25P40",
7839 .bustype = BUS_SPI,
7840 .manufacture_id = ST_ID,
7841 .model_id = ST_M25P40,
7842 .total_size = 512,
7843 .page_size = 256,
7844 .feature_bits = FEATURE_WRSR_WREN,
7845 .tested = TEST_OK_PREW,
7846 .probe = probe_spi_rdid,
7847 .probe_timing = TIMING_ZERO,
7848 .block_erasers =
7849 {
7850 {
7851 .eraseblocks = { {64 * 1024, 8} },
7852 .block_erase = spi_block_erase_d8,
7853 }, {
7854 .eraseblocks = { {512 * 1024, 1} },
7855 .block_erase = spi_block_erase_c7,
7856 }
7857 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007858 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007859 .unlock = spi_disable_blockprotect,
7860 .write = spi_chip_write_256,
7861 .read = spi_chip_read,
7862 .voltage = {2700, 3600},
7863 },
7864
7865 {
7866 .vendor = "Micron/Numonyx/ST",
7867 .name = "M25P40-old",
7868 .bustype = BUS_SPI,
7869 .manufacture_id = 0, /* Not used. */
7870 .model_id = ST_M25P40_RES,
7871 .total_size = 512,
7872 .page_size = 256,
7873 .feature_bits = FEATURE_WRSR_WREN,
7874 .tested = TEST_UNTESTED,
7875 .probe = probe_spi_res1,
7876 .probe_timing = TIMING_ZERO,
7877 .block_erasers =
7878 {
7879 {
7880 .eraseblocks = { {64 * 1024, 8} },
7881 .block_erase = spi_block_erase_d8,
7882 }, {
7883 .eraseblocks = { {512 * 1024, 1} },
7884 .block_erase = spi_block_erase_c7,
7885 }
7886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007887 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007888 .unlock = spi_disable_blockprotect,
7889 .write = spi_chip_write_256,
7890 .read = spi_chip_read,
7891 },
7892
7893 {
7894 .vendor = "Micron/Numonyx/ST",
7895 .name = "M25P80",
7896 .bustype = BUS_SPI,
7897 .manufacture_id = ST_ID,
7898 .model_id = ST_M25P80,
7899 .total_size = 1024,
7900 .page_size = 256,
7901 .feature_bits = FEATURE_WRSR_WREN,
7902 .tested = TEST_OK_PREW,
7903 .probe = probe_spi_rdid,
7904 .probe_timing = TIMING_ZERO,
7905 .block_erasers =
7906 {
7907 {
7908 .eraseblocks = { {64 * 1024, 16} },
7909 .block_erase = spi_block_erase_d8,
7910 }, {
7911 .eraseblocks = { {1024 * 1024, 1} },
7912 .block_erase = spi_block_erase_c7,
7913 }
7914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007915 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007916 .unlock = spi_disable_blockprotect,
7917 .write = spi_chip_write_256,
7918 .read = spi_chip_read,
7919 .voltage = {2700, 3600},
7920 },
7921
7922 {
7923 .vendor = "Micron/Numonyx/ST",
7924 .name = "M25P16",
7925 .bustype = BUS_SPI,
7926 .manufacture_id = ST_ID,
7927 .model_id = ST_M25P16,
7928 .total_size = 2048,
7929 .page_size = 256,
7930 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007931 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007932 .probe = probe_spi_rdid,
7933 .probe_timing = TIMING_ZERO,
7934 .block_erasers =
7935 {
7936 {
7937 .eraseblocks = { {64 * 1024, 32} },
7938 .block_erase = spi_block_erase_d8,
7939 }, {
7940 .eraseblocks = { {2 * 1024 * 1024, 1} },
7941 .block_erase = spi_block_erase_c7,
7942 }
7943 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007944 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007945 .unlock = spi_disable_blockprotect,
7946 .write = spi_chip_write_256,
7947 .read = spi_chip_read,
7948 .voltage = {2700, 3600},
7949 },
7950
7951 {
7952 .vendor = "Micron/Numonyx/ST",
7953 .name = "M25P32",
7954 .bustype = BUS_SPI,
7955 .manufacture_id = ST_ID,
7956 .model_id = ST_M25P32,
7957 .total_size = 4096,
7958 .page_size = 256,
7959 .feature_bits = FEATURE_WRSR_WREN,
7960 .tested = TEST_OK_PREW,
7961 .probe = probe_spi_rdid,
7962 .probe_timing = TIMING_ZERO,
7963 .block_erasers =
7964 {
7965 {
7966 .eraseblocks = { {64 * 1024, 64} },
7967 .block_erase = spi_block_erase_d8,
7968 }, {
7969 .eraseblocks = { {4 * 1024 * 1024, 1} },
7970 .block_erase = spi_block_erase_c7,
7971 }
7972 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007973 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007974 .unlock = spi_disable_blockprotect,
7975 .write = spi_chip_write_256,
7976 .read = spi_chip_read,
7977 .voltage = {2700, 3600},
7978 },
7979
7980 {
7981 .vendor = "Micron/Numonyx/ST",
7982 .name = "M25P64",
7983 .bustype = BUS_SPI,
7984 .manufacture_id = ST_ID,
7985 .model_id = ST_M25P64,
7986 .total_size = 8192,
7987 .page_size = 256,
7988 .feature_bits = FEATURE_WRSR_WREN,
7989 .tested = TEST_OK_PREW,
7990 .probe = probe_spi_rdid,
7991 .probe_timing = TIMING_ZERO,
7992 .block_erasers =
7993 {
7994 {
7995 .eraseblocks = { {64 * 1024, 128} },
7996 .block_erase = spi_block_erase_d8,
7997 }, {
7998 .eraseblocks = { {8 * 1024 * 1024, 1} },
7999 .block_erase = spi_block_erase_c7,
8000 }
8001 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008002 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008003 .unlock = spi_disable_blockprotect,
8004 .write = spi_chip_write_256,
8005 .read = spi_chip_read,
8006 .voltage = {2700, 3600},
8007 },
8008
8009 {
8010 .vendor = "Micron/Numonyx/ST",
8011 .name = "M25P128",
8012 .bustype = BUS_SPI,
8013 .manufacture_id = ST_ID,
8014 .model_id = ST_M25P128,
8015 .total_size = 16384,
8016 .page_size = 256,
8017 .feature_bits = FEATURE_WRSR_WREN,
8018 .tested = TEST_OK_PREW,
8019 .probe = probe_spi_rdid,
8020 .probe_timing = TIMING_ZERO,
8021 .block_erasers =
8022 {
8023 {
8024 .eraseblocks = { {256 * 1024, 64} },
8025 .block_erase = spi_block_erase_d8,
8026 }, {
8027 .eraseblocks = { {16 * 1024 * 1024, 1} },
8028 .block_erase = spi_block_erase_c7,
8029 }
8030 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008031 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008032 .unlock = spi_disable_blockprotect,
8033 .write = spi_chip_write_256,
8034 .read = spi_chip_read,
8035 .voltage = {2700, 3600},
8036 },
8037
8038 {
8039 .vendor = "Micron/Numonyx/ST",
8040 .name = "M25PE10",
8041 .bustype = BUS_SPI,
8042 .manufacture_id = ST_ID,
8043 .model_id = ST_M25PE10,
8044 .total_size = 128,
8045 .page_size = 256,
8046 .feature_bits = FEATURE_WRSR_WREN,
8047 .tested = TEST_UNTESTED,
8048 .probe = probe_spi_rdid,
8049 .probe_timing = TIMING_ZERO,
8050 .block_erasers =
8051 {
8052 {
8053 .eraseblocks = { {4 * 1024, 32} },
8054 .block_erase = spi_block_erase_20,
8055 }, {
8056 .eraseblocks = { {64 * 1024, 2} },
8057 .block_erase = spi_block_erase_d8,
8058 }, {
8059 .eraseblocks = { {128 * 1024, 1} },
8060 .block_erase = spi_block_erase_c7,
8061 }
8062 },
8063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8064 .unlock = spi_disable_blockprotect,
8065 .write = spi_chip_write_256,
8066 .read = spi_chip_read,
8067 .voltage = {2700, 3600},
8068 },
8069
8070 {
8071 .vendor = "Micron/Numonyx/ST",
8072 .name = "M25PE20",
8073 .bustype = BUS_SPI,
8074 .manufacture_id = ST_ID,
8075 .model_id = ST_M25PE20,
8076 .total_size = 256,
8077 .page_size = 256,
8078 .feature_bits = FEATURE_WRSR_WREN,
8079 .tested = TEST_UNTESTED,
8080 .probe = probe_spi_rdid,
8081 .probe_timing = TIMING_ZERO,
8082 .block_erasers =
8083 {
8084 {
8085 .eraseblocks = { {4 * 1024, 64} },
8086 .block_erase = spi_block_erase_20,
8087 }, {
8088 .eraseblocks = { {64 * 1024, 4} },
8089 .block_erase = spi_block_erase_d8,
8090 }, {
8091 .eraseblocks = { {256 * 1024, 1} },
8092 .block_erase = spi_block_erase_c7,
8093 }
8094 },
8095 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8096 .unlock = spi_disable_blockprotect,
8097 .write = spi_chip_write_256,
8098 .read = spi_chip_read,
8099 .voltage = {2700, 3600},
8100 },
8101
8102 {
8103 .vendor = "Micron/Numonyx/ST",
8104 .name = "M25PE40",
8105 .bustype = BUS_SPI,
8106 .manufacture_id = ST_ID,
8107 .model_id = ST_M25PE40,
8108 .total_size = 512,
8109 .page_size = 256,
8110 .feature_bits = FEATURE_WRSR_WREN,
8111 .tested = TEST_UNTESTED,
8112 .probe = probe_spi_rdid,
8113 .probe_timing = TIMING_ZERO,
8114 .block_erasers =
8115 {
8116 {
8117 .eraseblocks = { {4 * 1024, 128} },
8118 .block_erase = spi_block_erase_20,
8119 }, {
8120 .eraseblocks = { {64 * 1024, 8} },
8121 .block_erase = spi_block_erase_d8,
8122 }, {
8123 .eraseblocks = { {512 * 1024, 1} },
8124 .block_erase = spi_block_erase_c7,
8125 }
8126 },
8127 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8128 .unlock = spi_disable_blockprotect,
8129 .write = spi_chip_write_256,
8130 .read = spi_chip_read,
8131 .voltage = {2700, 3600},
8132 },
8133
8134 {
8135 .vendor = "Micron/Numonyx/ST",
8136 .name = "M25PE80",
8137 .bustype = BUS_SPI,
8138 .manufacture_id = ST_ID,
8139 .model_id = ST_M25PE80,
8140 .total_size = 1024,
8141 .page_size = 256,
8142 .feature_bits = FEATURE_WRSR_WREN,
8143 .tested = TEST_OK_PREW,
8144 .probe = probe_spi_rdid,
8145 .probe_timing = TIMING_ZERO,
8146 .block_erasers =
8147 {
8148 {
8149 .eraseblocks = { {4 * 1024, 256} },
8150 .block_erase = spi_block_erase_20,
8151 }, {
8152 .eraseblocks = { {64 * 1024, 16} },
8153 .block_erase = spi_block_erase_d8,
8154 }, {
8155 .eraseblocks = { {1024 * 1024, 1} },
8156 .block_erase = spi_block_erase_c7,
8157 }
8158 },
8159 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8160 .unlock = spi_disable_blockprotect,
8161 .write = spi_chip_write_256,
8162 .read = spi_chip_read,
8163 .voltage = {2700, 3600},
8164 },
8165
8166 {
8167 .vendor = "Micron/Numonyx/ST",
8168 .name = "M25PE16",
8169 .bustype = BUS_SPI,
8170 .manufacture_id = ST_ID,
8171 .model_id = ST_M25PE16,
8172 .total_size = 2048,
8173 .page_size = 256,
8174 .feature_bits = FEATURE_WRSR_WREN,
8175 .tested = TEST_UNTESTED,
8176 .probe = probe_spi_rdid,
8177 .probe_timing = TIMING_ZERO,
8178 .block_erasers =
8179 {
8180 {
8181 .eraseblocks = { {4 * 1024, 512} },
8182 .block_erase = spi_block_erase_20,
8183 }, {
8184 .eraseblocks = { {64 * 1024, 32} },
8185 .block_erase = spi_block_erase_d8,
8186 }, {
8187 .eraseblocks = { {2 * 1024 * 1024, 1} },
8188 .block_erase = spi_block_erase_c7,
8189 }
8190 },
8191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8192 .unlock = spi_disable_blockprotect,
8193 .write = spi_chip_write_256,
8194 .read = spi_chip_read,
8195 .voltage = {2700, 3600},
8196 },
8197
8198 {
8199 .vendor = "Micron/Numonyx/ST",
8200 .name = "M25PX80",
8201 .bustype = BUS_SPI,
8202 .manufacture_id = ST_ID,
8203 .model_id = ST_M25PX80,
8204 .total_size = 1024,
8205 .page_size = 256,
8206 /* OTP: 64B total; read 0x4B, write 0x42 */
8207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8208 .tested = TEST_OK_PREW,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers = {
8212 {
8213 .eraseblocks = { { 4 * 1024, 256 } },
8214 .block_erase = spi_block_erase_20,
8215 }, {
8216 .eraseblocks = { {64 * 1024, 16} },
8217 .block_erase = spi_block_erase_d8,
8218 }, {
8219 .eraseblocks = { {1024 * 1024, 1} },
8220 .block_erase = spi_block_erase_c7,
8221 }
8222 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008223 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008224 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8225 .write = spi_chip_write_256,
8226 .read = spi_chip_read,
8227 .voltage = {2700, 3600},
8228 },
8229
8230 {
8231 .vendor = "Micron/Numonyx/ST",
8232 .name = "M25PX16",
8233 .bustype = BUS_SPI,
8234 .manufacture_id = ST_ID,
8235 .model_id = ST_M25PX16,
8236 .total_size = 2048,
8237 .page_size = 256,
8238 /* OTP: 64B total; read 0x4B; write 0x42 */
8239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8240 .tested = TEST_OK_PREW,
8241 .probe = probe_spi_rdid,
8242 .probe_timing = TIMING_ZERO,
8243 .block_erasers =
8244 {
8245 {
8246 .eraseblocks = { { 4 * 1024, 512 } },
8247 .block_erase = spi_block_erase_20,
8248 }, {
8249 .eraseblocks = { {64 * 1024, 32} },
8250 .block_erase = spi_block_erase_d8,
8251 }, {
8252 .eraseblocks = { {2 * 1024 * 1024, 1} },
8253 .block_erase = spi_block_erase_c7,
8254 }
8255 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008256 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008257 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8258 .write = spi_chip_write_256,
8259 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008260 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008261 },
8262
8263 {
8264 .vendor = "Micron/Numonyx/ST",
8265 .name = "M25PX32",
8266 .bustype = BUS_SPI,
8267 .manufacture_id = ST_ID,
8268 .model_id = ST_M25PX32,
8269 .total_size = 4096,
8270 .page_size = 256,
8271 /* OTP: 64B total; read 0x4B; write 0x42 */
8272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8273 .tested = TEST_OK_PRE,
8274 .probe = probe_spi_rdid,
8275 .probe_timing = TIMING_ZERO,
8276 .block_erasers =
8277 {
8278 {
8279 .eraseblocks = { { 4 * 1024, 1024 } },
8280 .block_erase = spi_block_erase_20,
8281 }, {
8282 .eraseblocks = { {64 * 1024, 64} },
8283 .block_erase = spi_block_erase_d8,
8284 }, {
8285 .eraseblocks = { {4 * 1024 * 1024, 1} },
8286 .block_erase = spi_block_erase_c7,
8287 }
8288 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008289 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008290 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8291 .write = spi_chip_write_256,
8292 .read = spi_chip_read,
8293 .voltage = {2700, 3600},
8294 },
8295
8296 {
8297 .vendor = "Micron/Numonyx/ST",
8298 .name = "M25PX64",
8299 .bustype = BUS_SPI,
8300 .manufacture_id = ST_ID,
8301 .model_id = ST_M25PX64,
8302 .total_size = 8192,
8303 .page_size = 256,
8304 /* OTP: 64B total; read 0x4B; write 0x42 */
8305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008306 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008307 .probe = probe_spi_rdid,
8308 .probe_timing = TIMING_ZERO,
8309 .block_erasers =
8310 {
8311 {
8312 .eraseblocks = { { 4 * 1024, 2048 } },
8313 .block_erase = spi_block_erase_20,
8314 }, {
8315 .eraseblocks = { {64 * 1024, 128} },
8316 .block_erase = spi_block_erase_d8,
8317 }, {
8318 .eraseblocks = { {8 * 1024 * 1024, 1} },
8319 .block_erase = spi_block_erase_c7,
8320 }
8321 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008322 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008323 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8324 .write = spi_chip_write_256,
8325 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008326 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008327 },
8328
8329 {
8330 .vendor = "Micron/Numonyx/ST",
8331 .name = "M45PE10",
8332 .bustype = BUS_SPI,
8333 .manufacture_id = ST_ID,
8334 .model_id = ST_M45PE10,
8335 .total_size = 128,
8336 .page_size = 256,
8337 .tested = TEST_UNTESTED,
8338 .probe = probe_spi_rdid,
8339 .probe_timing = TIMING_ZERO,
8340 .block_erasers = {
8341 {
8342 .eraseblocks = { {256, 512} },
8343 .block_erase = spi_block_erase_db,
8344 }, {
8345 .eraseblocks = { {64 * 1024, 2} },
8346 .block_erase = spi_block_erase_d8,
8347 }
8348 },
8349 .printlock = spi_prettyprint_status_register_default_welwip,
8350 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8351 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8352 .read = spi_chip_read, /* Fast read (0x0B) supported */
8353 .voltage = {2700, 3600},
8354 },
8355
8356 {
8357 .vendor = "Micron/Numonyx/ST",
8358 .name = "M45PE20",
8359 .bustype = BUS_SPI,
8360 .manufacture_id = ST_ID,
8361 .model_id = ST_M45PE20,
8362 .total_size = 256,
8363 .page_size = 256,
8364 .tested = TEST_UNTESTED,
8365 .probe = probe_spi_rdid,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers = {
8368 {
8369 .eraseblocks = { {256, 1024} },
8370 .block_erase = spi_block_erase_db,
8371 }, {
8372 .eraseblocks = { {64 * 1024, 4} },
8373 .block_erase = spi_block_erase_d8,
8374 }
8375 },
8376 .printlock = spi_prettyprint_status_register_default_welwip,
8377 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8378 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8379 .read = spi_chip_read, /* Fast read (0x0B) supported */
8380 .voltage = {2700, 3600},
8381 },
8382
8383 {
8384 .vendor = "Micron/Numonyx/ST",
8385 .name = "M45PE40",
8386 .bustype = BUS_SPI,
8387 .manufacture_id = ST_ID,
8388 .model_id = ST_M45PE40,
8389 .total_size = 512,
8390 .page_size = 256,
8391 .tested = TEST_UNTESTED,
8392 .probe = probe_spi_rdid,
8393 .probe_timing = TIMING_ZERO,
8394 .block_erasers = {
8395 {
8396 .eraseblocks = { {256, 2048} },
8397 .block_erase = spi_block_erase_db,
8398 }, {
8399 .eraseblocks = { {64 * 1024, 8} },
8400 .block_erase = spi_block_erase_d8,
8401 }
8402 },
8403 .printlock = spi_prettyprint_status_register_default_welwip,
8404 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8405 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8406 .read = spi_chip_read, /* Fast read (0x0B) supported */
8407 .voltage = {2700, 3600},
8408 },
8409
8410 {
8411 .vendor = "Micron/Numonyx/ST",
8412 .name = "M45PE80",
8413 .bustype = BUS_SPI,
8414 .manufacture_id = ST_ID,
8415 .model_id = ST_M45PE80,
8416 .total_size = 1024,
8417 .page_size = 256,
8418 .tested = TEST_UNTESTED,
8419 .probe = probe_spi_rdid,
8420 .probe_timing = TIMING_ZERO,
8421 .block_erasers = {
8422 {
8423 .eraseblocks = { {256, 4096} },
8424 .block_erase = spi_block_erase_db,
8425 }, {
8426 .eraseblocks = { {64 * 1024, 16} },
8427 .block_erase = spi_block_erase_d8,
8428 }
8429 },
8430 .printlock = spi_prettyprint_status_register_default_welwip,
8431 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8432 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8433 .read = spi_chip_read, /* Fast read (0x0B) supported */
8434 .voltage = {2700, 3600},
8435 },
8436
8437 {
8438 .vendor = "Micron/Numonyx/ST",
8439 .name = "M45PE16",
8440 .bustype = BUS_SPI,
8441 .manufacture_id = ST_ID,
8442 .model_id = ST_M45PE16,
8443 .total_size = 2048,
8444 .page_size = 256,
8445 .tested = TEST_UNTESTED,
8446 .probe = probe_spi_rdid,
8447 .probe_timing = TIMING_ZERO,
8448 .block_erasers = {
8449 {
8450 .eraseblocks = { {256, 8192} },
8451 .block_erase = spi_block_erase_db,
8452 }, {
8453 .eraseblocks = { {64 * 1024, 32} },
8454 .block_erase = spi_block_erase_d8,
8455 }
8456 },
8457 .printlock = spi_prettyprint_status_register_default_welwip,
8458 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8459 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8460 .read = spi_chip_read, /* Fast read (0x0B) supported */
8461 .voltage = {2700, 3600},
8462 },
8463
8464 {
8465 .vendor = "Micron/Numonyx/ST",
8466 .name = "N25Q016",
8467 .bustype = BUS_SPI,
8468 .manufacture_id = ST_ID,
8469 .model_id = ST_N25Q016__1E,
8470 .total_size = 2048,
8471 .page_size = 256,
8472 /* supports SFDP */
8473 /* OTP: 64B total; read 0x4B, write 0x42 */
8474 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8475 .tested = TEST_UNTESTED,
8476 .probe = probe_spi_rdid,
8477 .probe_timing = TIMING_ZERO,
8478 .block_erasers =
8479 {
8480 {
8481 .eraseblocks = { {4 * 1024, 512} },
8482 .block_erase = spi_block_erase_20,
8483 }, {
8484 .eraseblocks = { {32 * 1024, 64} },
8485 .block_erase = spi_block_erase_52,
8486 }, {
8487 .eraseblocks = { {64 * 1024, 32} },
8488 .block_erase = spi_block_erase_d8,
8489 }, {
8490 .eraseblocks = { {2 * 1024 * 1024, 1} },
8491 .block_erase = spi_block_erase_c7,
8492 }
8493 },
8494 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8495 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8496 .write = spi_chip_write_256, /* Multi I/O supported */
8497 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8498 .voltage = {1700, 2000},
8499 },
8500
8501 {
8502 .vendor = "Micron/Numonyx/ST",
8503 .name = "N25Q032..1E",
8504 .bustype = BUS_SPI,
8505 .manufacture_id = ST_ID,
8506 .model_id = ST_N25Q032__1E,
8507 .total_size = 4096,
8508 .page_size = 256,
8509 /* supports SFDP */
8510 /* OTP: 64B total; read 0x4B, write 0x42 */
8511 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8512 .tested = TEST_UNTESTED,
8513 .probe = probe_spi_rdid,
8514 .probe_timing = TIMING_ZERO,
8515 .block_erasers =
8516 {
8517 {
8518 .eraseblocks = { {4 * 1024, 1024} },
8519 .block_erase = spi_block_erase_20,
8520 }, {
8521 .eraseblocks = { {64 * 1024, 64} },
8522 .block_erase = spi_block_erase_d8,
8523 }, {
8524 .eraseblocks = { {4 * 1024 * 1024, 1} },
8525 .block_erase = spi_block_erase_c7,
8526 }
8527 },
8528 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8529 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8530 .write = spi_chip_write_256, /* Multi I/O supported */
8531 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8532 .voltage = {1700, 2000},
8533 },
8534
8535 {
8536 .vendor = "Micron/Numonyx/ST",
8537 .name = "N25Q032..3E",
8538 .bustype = BUS_SPI,
8539 .manufacture_id = ST_ID,
8540 .model_id = ST_N25Q032__3E,
8541 .total_size = 4096,
8542 .page_size = 256,
8543 /* supports SFDP */
8544 /* OTP: 64B total; read 0x4B, write 0x42 */
8545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8546 .tested = TEST_OK_PREW,
8547 .probe = probe_spi_rdid,
8548 .probe_timing = TIMING_ZERO,
8549 .block_erasers =
8550 {
8551 {
8552 .eraseblocks = { {4 * 1024, 1024} },
8553 .block_erase = spi_block_erase_20,
8554 }, {
8555 .eraseblocks = { {64 * 1024, 64} },
8556 .block_erase = spi_block_erase_d8,
8557 }, {
8558 .eraseblocks = { {4 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_c7,
8560 }
8561 },
8562 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8563 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8564 .write = spi_chip_write_256, /* Multi I/O supported */
8565 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8566 .voltage = {2700, 3600},
8567 },
8568
8569 {
8570 .vendor = "Micron/Numonyx/ST",
8571 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8572 .bustype = BUS_SPI,
8573 .manufacture_id = ST_ID,
8574 .model_id = ST_N25Q064__1E,
8575 .total_size = 8192,
8576 .page_size = 256,
8577 /* supports SFDP */
8578 /* OTP: 64B total; read 0x4B, write 0x42 */
8579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008580 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008581 .probe = probe_spi_rdid,
8582 .probe_timing = TIMING_ZERO,
8583 .block_erasers =
8584 {
8585 {
8586 .eraseblocks = { {4 * 1024, 2048 } },
8587 .block_erase = spi_block_erase_20,
8588 }, {
8589 .eraseblocks = { {64 * 1024, 128} },
8590 .block_erase = spi_block_erase_d8,
8591 }, {
8592 .eraseblocks = { {8 * 1024 * 1024, 1} },
8593 .block_erase = spi_block_erase_c7,
8594 }
8595 },
8596 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8597 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8598 .write = spi_chip_write_256, /* Multi I/O supported */
8599 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8600 .voltage = {1700, 2000},
8601 },
8602
8603 {
8604 .vendor = "Micron/Numonyx/ST",
8605 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8606 .bustype = BUS_SPI,
8607 .manufacture_id = ST_ID,
8608 .model_id = ST_N25Q064__3E,
8609 .total_size = 8192,
8610 .page_size = 256,
8611 /* supports SFDP */
8612 /* OTP: 64B total; read 0x4B, write 0x42 */
8613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8614 .tested = TEST_OK_PREW,
8615 .probe = probe_spi_rdid,
8616 .probe_timing = TIMING_ZERO,
8617 .block_erasers =
8618 {
8619 {
8620 .eraseblocks = { {4 * 1024, 2048 } },
8621 .block_erase = spi_block_erase_20,
8622 }, {
8623 .eraseblocks = { {64 * 1024, 128} },
8624 .block_erase = spi_block_erase_d8,
8625 }, {
8626 .eraseblocks = { {8 * 1024 * 1024, 1} },
8627 .block_erase = spi_block_erase_c7,
8628 }
8629 },
8630 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8631 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8632 .write = spi_chip_write_256, /* Multi I/O supported */
8633 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8634 .voltage = {2700, 3600},
8635 },
8636
8637 {
8638 .vendor = "Micron/Numonyx/ST",
8639 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8640 .bustype = BUS_SPI,
8641 .manufacture_id = ST_ID,
8642 .model_id = ST_N25Q128__1E,
8643 .total_size = 16384,
8644 .page_size = 256,
8645 /* supports SFDP */
8646 /* OTP: 64B total; read 0x4B, write 0x42 */
8647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8648 .tested = TEST_UNTESTED,
8649 .probe = probe_spi_rdid,
8650 .probe_timing = TIMING_ZERO,
8651 .block_erasers = {
8652 {
8653 .eraseblocks = { {4 * 1024, 4096 } },
8654 .block_erase = spi_block_erase_20,
8655 }, {
8656 .eraseblocks = { {64 * 1024, 256} },
8657 .block_erase = spi_block_erase_d8,
8658 }, {
8659 .eraseblocks = { {16384 * 1024, 1} },
8660 .block_erase = spi_block_erase_c7,
8661 }
8662 },
8663 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8664 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8665 .write = spi_chip_write_256, /* Multi I/O supported */
8666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8667 .voltage = {1700, 2000},
8668 },
8669
8670 {
8671 .vendor = "Micron/Numonyx/ST",
8672 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8673 .bustype = BUS_SPI,
8674 .manufacture_id = ST_ID,
8675 .model_id = ST_N25Q128__3E,
8676 .total_size = 16384,
8677 .page_size = 256,
8678 /* supports SFDP */
8679 /* OTP: 64B total; read 0x4B, write 0x42 */
8680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8681 .tested = TEST_OK_PREW,
8682 .probe = probe_spi_rdid,
8683 .probe_timing = TIMING_ZERO,
8684 .block_erasers = {
8685 {
8686 .eraseblocks = { {4 * 1024, 4096 } },
8687 .block_erase = spi_block_erase_20,
8688 }, {
8689 .eraseblocks = { {64 * 1024, 256} },
8690 .block_erase = spi_block_erase_d8,
8691 }, {
8692 .eraseblocks = { {16384 * 1024, 1} },
8693 .block_erase = spi_block_erase_c7,
8694 }
8695 },
8696 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8697 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8698 .write = spi_chip_write_256, /* Multi I/O supported */
8699 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8700 .voltage = {2700, 3600},
8701 },
8702
8703 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008704 .vendor = "MoselVitelic",
8705 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008706 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008707 .manufacture_id = SYNCMOS_MVC_ID,
8708 .model_id = MVC_V29C51000B,
8709 .total_size = 64,
8710 .page_size = 512,
8711 .feature_bits = FEATURE_EITHER_RESET,
8712 .tested = TEST_UNTESTED,
8713 .probe = probe_jedec,
8714 .probe_timing = TIMING_ZERO,
8715 .block_erasers =
8716 {
8717 {
8718 .eraseblocks = { {512, 128} },
8719 .block_erase = erase_sector_jedec,
8720 }, {
8721 .eraseblocks = { {64 * 1024, 1} },
8722 .block_erase = erase_chip_block_jedec,
8723 },
8724 },
8725 .write = write_jedec_1,
8726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008727 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008728 },
8729
8730 {
8731 .vendor = "MoselVitelic",
8732 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008733 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008734 .manufacture_id = SYNCMOS_MVC_ID,
8735 .model_id = MVC_V29C51000T,
8736 .total_size = 64,
8737 .page_size = 512,
8738 .feature_bits = FEATURE_EITHER_RESET,
8739 .tested = TEST_UNTESTED,
8740 .probe = probe_jedec,
8741 .probe_timing = TIMING_ZERO,
8742 .block_erasers =
8743 {
8744 {
8745 .eraseblocks = { {512, 128} },
8746 .block_erase = erase_sector_jedec,
8747 }, {
8748 .eraseblocks = { {64 * 1024, 1} },
8749 .block_erase = erase_chip_block_jedec,
8750 },
8751 },
8752 .write = write_jedec_1,
8753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008754 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008755 },
8756
8757 {
8758 .vendor = "MoselVitelic",
8759 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008760 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008761 .manufacture_id = SYNCMOS_MVC_ID,
8762 .model_id = MVC_V29C51400B,
8763 .total_size = 512,
8764 .page_size = 1024,
8765 .feature_bits = FEATURE_EITHER_RESET,
8766 .tested = TEST_UNTESTED,
8767 .probe = probe_jedec,
8768 .probe_timing = TIMING_ZERO,
8769 .block_erasers =
8770 {
8771 {
8772 .eraseblocks = { {1024, 512} },
8773 .block_erase = erase_sector_jedec,
8774 }, {
8775 .eraseblocks = { {512 * 1024, 1} },
8776 .block_erase = erase_chip_block_jedec,
8777 },
8778 },
8779 .write = write_jedec_1,
8780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008781 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008782 },
8783
8784 {
8785 .vendor = "MoselVitelic",
8786 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008787 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008788 .manufacture_id = SYNCMOS_MVC_ID,
8789 .model_id = MVC_V29C51400T,
8790 .total_size = 512,
8791 .page_size = 1024,
8792 .feature_bits = FEATURE_EITHER_RESET,
8793 .tested = TEST_UNTESTED,
8794 .probe = probe_jedec,
8795 .probe_timing = TIMING_ZERO,
8796 .block_erasers =
8797 {
8798 {
8799 .eraseblocks = { {1024, 512} },
8800 .block_erase = erase_sector_jedec,
8801 }, {
8802 .eraseblocks = { {512 * 1024, 1} },
8803 .block_erase = erase_chip_block_jedec,
8804 },
8805 },
8806 .write = write_jedec_1,
8807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008808 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008809 },
8810
8811 {
8812 .vendor = "MoselVitelic",
8813 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008814 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008815 .manufacture_id = SYNCMOS_MVC_ID,
8816 .model_id = MVC_V29LC51000,
8817 .total_size = 64,
8818 .page_size = 512,
8819 .feature_bits = FEATURE_EITHER_RESET,
8820 .tested = TEST_UNTESTED,
8821 .probe = probe_jedec,
8822 .probe_timing = TIMING_ZERO,
8823 .block_erasers =
8824 {
8825 {
8826 .eraseblocks = { {512, 128} },
8827 .block_erase = erase_sector_jedec,
8828 }, {
8829 .eraseblocks = { {64 * 1024, 1} },
8830 .block_erase = erase_chip_block_jedec,
8831 },
8832 },
8833 .write = write_jedec_1,
8834 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008835 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008836 },
8837
8838 {
8839 .vendor = "MoselVitelic",
8840 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008841 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008842 .manufacture_id = SYNCMOS_MVC_ID,
8843 .model_id = MVC_V29LC51001,
8844 .total_size = 128,
8845 .page_size = 512,
8846 .feature_bits = FEATURE_EITHER_RESET,
8847 .tested = TEST_UNTESTED,
8848 .probe = probe_jedec,
8849 .probe_timing = TIMING_ZERO,
8850 .block_erasers =
8851 {
8852 {
8853 .eraseblocks = { {512, 256} },
8854 .block_erase = erase_sector_jedec,
8855 }, {
8856 .eraseblocks = { {128 * 1024, 1} },
8857 .block_erase = erase_chip_block_jedec,
8858 },
8859 },
8860 .write = write_jedec_1,
8861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008862 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008863 },
8864
8865 {
8866 .vendor = "MoselVitelic",
8867 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008868 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008869 .manufacture_id = SYNCMOS_MVC_ID,
8870 .model_id = MVC_V29LC51002,
8871 .total_size = 256,
8872 .page_size = 512,
8873 .feature_bits = FEATURE_EITHER_RESET,
8874 .tested = TEST_UNTESTED,
8875 .probe = probe_jedec,
8876 .probe_timing = TIMING_ZERO,
8877 .block_erasers =
8878 {
8879 {
8880 .eraseblocks = { {512, 512} },
8881 .block_erase = erase_sector_jedec,
8882 }, {
8883 .eraseblocks = { {256 * 1024, 1} },
8884 .block_erase = erase_chip_block_jedec,
8885 },
8886 },
8887 .write = write_jedec_1,
8888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008889 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008890 },
8891
8892 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008893 .vendor = "Nantronics",
8894 .name = "N25S10",
8895 .bustype = BUS_SPI,
8896 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8897 .model_id = NANTRONICS_N25S10,
8898 .total_size = 128,
8899 .page_size = 256,
8900 .feature_bits = FEATURE_WRSR_WREN,
8901 .tested = TEST_UNTESTED,
8902 .probe = probe_spi_rdid,
8903 .probe_timing = TIMING_ZERO,
8904 .block_erasers =
8905 {
8906 {
8907 .eraseblocks = { {4 * 1024, 32} },
8908 .block_erase = spi_block_erase_20,
8909 }, {
8910 .eraseblocks = { {4 * 1024, 32} },
8911 .block_erase = spi_block_erase_d7,
8912 }, {
8913 .eraseblocks = { {32 * 1024, 4} },
8914 .block_erase = spi_block_erase_52,
8915 }, {
8916 .eraseblocks = { {64 * 1024, 2} },
8917 .block_erase = spi_block_erase_d8,
8918 }, {
8919 .eraseblocks = { {128 * 1024, 1} },
8920 .block_erase = spi_block_erase_60,
8921 }, {
8922 .eraseblocks = { {128 * 1024, 1} },
8923 .block_erase = spi_block_erase_c7,
8924 }
8925 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008926 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008927 .unlock = spi_disable_blockprotect_bp3_srwd,
8928 .write = spi_chip_write_256,
8929 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8930 .voltage = {2700, 3600},
8931 },
8932
8933 {
8934 .vendor = "Nantronics",
8935 .name = "N25S20",
8936 .bustype = BUS_SPI,
8937 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8938 .model_id = NANTRONICS_N25S20,
8939 .total_size = 256,
8940 .page_size = 256,
8941 .feature_bits = FEATURE_WRSR_WREN,
8942 .tested = TEST_UNTESTED,
8943 .probe = probe_spi_rdid,
8944 .probe_timing = TIMING_ZERO,
8945 .block_erasers =
8946 {
8947 {
8948 .eraseblocks = { {4 * 1024, 64} },
8949 .block_erase = spi_block_erase_20,
8950 }, {
8951 .eraseblocks = { {4 * 1024, 64} },
8952 .block_erase = spi_block_erase_d7,
8953 }, {
8954 .eraseblocks = { {32 * 1024, 8} },
8955 .block_erase = spi_block_erase_52,
8956 }, {
8957 .eraseblocks = { {64 * 1024, 4} },
8958 .block_erase = spi_block_erase_d8,
8959 }, {
8960 .eraseblocks = { {256 * 1024, 1} },
8961 .block_erase = spi_block_erase_60,
8962 }, {
8963 .eraseblocks = { {256 * 1024, 1} },
8964 .block_erase = spi_block_erase_c7,
8965 }
8966 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008967 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008968 .unlock = spi_disable_blockprotect_bp3_srwd,
8969 .write = spi_chip_write_256,
8970 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8971 .voltage = {2700, 3600},
8972 },
8973
8974 {
8975 .vendor = "Nantronics",
8976 .name = "N25S40",
8977 .bustype = BUS_SPI,
8978 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8979 .model_id = NANTRONICS_N25S40,
8980 .total_size = 512,
8981 .page_size = 256,
8982 .feature_bits = FEATURE_WRSR_WREN,
8983 .tested = TEST_UNTESTED,
8984 .probe = probe_spi_rdid,
8985 .probe_timing = TIMING_ZERO,
8986 .block_erasers =
8987 {
8988 {
8989 .eraseblocks = { {4 * 1024, 128} },
8990 .block_erase = spi_block_erase_20,
8991 }, {
8992 .eraseblocks = { {4 * 1024, 128} },
8993 .block_erase = spi_block_erase_d7,
8994 }, {
8995 .eraseblocks = { {32 * 1024, 16} },
8996 .block_erase = spi_block_erase_52,
8997 }, {
8998 .eraseblocks = { {64 * 1024, 8} },
8999 .block_erase = spi_block_erase_d8,
9000 }, {
9001 .eraseblocks = { {512 * 1024, 1} },
9002 .block_erase = spi_block_erase_60,
9003 }, {
9004 .eraseblocks = { {512 * 1024, 1} },
9005 .block_erase = spi_block_erase_c7,
9006 }
9007 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009008 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009009 .unlock = spi_disable_blockprotect_bp3_srwd,
9010 .write = spi_chip_write_256,
9011 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9012 .voltage = {2700, 3600},
9013 },
9014
9015 {
9016 .vendor = "Nantronics",
9017 .name = "N25S80",
9018 .bustype = BUS_SPI,
9019 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9020 .model_id = NANTRONICS_N25S80,
9021 .total_size = 1024,
9022 .page_size = 256,
9023 .feature_bits = FEATURE_WRSR_WREN,
9024 .tested = TEST_UNTESTED,
9025 .probe = probe_spi_rdid,
9026 .probe_timing = TIMING_ZERO,
9027 .block_erasers =
9028 {
9029 {
9030 .eraseblocks = { {4 * 1024, 256} },
9031 .block_erase = spi_block_erase_20,
9032 }, {
9033 .eraseblocks = { {32 * 1024, 32} },
9034 .block_erase = spi_block_erase_52,
9035 }, {
9036 .eraseblocks = { {64 * 1024, 16} },
9037 .block_erase = spi_block_erase_d8,
9038 }, {
9039 .eraseblocks = { {1024 * 1024, 1} },
9040 .block_erase = spi_block_erase_60,
9041 }, {
9042 .eraseblocks = { {1024 * 1024, 1} },
9043 .block_erase = spi_block_erase_c7,
9044 }
9045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009046 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009047 .unlock = spi_disable_blockprotect_bp3_srwd,
9048 .write = spi_chip_write_256,
9049 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9050 .voltage = {2700, 3600},
9051 },
9052
9053 {
9054 .vendor = "Nantronics",
9055 .name = "N25S16",
9056 .bustype = BUS_SPI,
9057 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9058 .model_id = NANTRONICS_N25S16,
9059 .total_size = 2048,
9060 .page_size = 256,
9061 .feature_bits = FEATURE_WRSR_WREN,
9062 .tested = TEST_UNTESTED,
9063 .probe = probe_spi_rdid,
9064 .probe_timing = TIMING_ZERO,
9065 .block_erasers =
9066 {
9067 {
9068 .eraseblocks = { {4 * 1024, 512} },
9069 .block_erase = spi_block_erase_20,
9070 }, {
9071 .eraseblocks = { {64 * 1024, 32} },
9072 .block_erase = spi_block_erase_d8,
9073 }, {
9074 .eraseblocks = { {2048 * 1024, 1} },
9075 .block_erase = spi_block_erase_60,
9076 }, {
9077 .eraseblocks = { {2048 * 1024, 1} },
9078 .block_erase = spi_block_erase_c7,
9079 }
9080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009081 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009082 .unlock = spi_disable_blockprotect_bp3_srwd,
9083 .write = spi_chip_write_256,
9084 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9085 .voltage = {2700, 3600},
9086 },
9087
9088 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009089 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009090 .name = "Pm25LD256C",
9091 .bustype = BUS_SPI,
9092 .manufacture_id = PMC_ID,
9093 .model_id = PMC_PM25LD256C,
9094 .total_size = 32,
9095 .page_size = 256,
9096 .feature_bits = FEATURE_WRSR_WREN,
9097 .tested = TEST_UNTESTED,
9098 .probe = probe_spi_rdid,
9099 .probe_timing = TIMING_ZERO,
9100 .block_erasers =
9101 {
9102 {
9103 .eraseblocks = { {4 * 1024, 8} },
9104 .block_erase = spi_block_erase_20,
9105 }, {
9106 .eraseblocks = { {4 * 1024, 8} },
9107 .block_erase = spi_block_erase_d7,
9108 }, {
9109 .eraseblocks = { {32 * 1024, 1} },
9110 .block_erase = spi_block_erase_d8,
9111 }, {
9112 .eraseblocks = { {32 * 1024, 1} },
9113 .block_erase = spi_block_erase_60,
9114 }, {
9115 .eraseblocks = { {32 * 1024, 1} },
9116 .block_erase = spi_block_erase_c7,
9117 }
9118 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009119 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009120 .unlock = spi_disable_blockprotect,
9121 .write = spi_chip_write_256,
9122 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9123 .voltage = {2700, 3600},
9124 },
9125 {
9126 .vendor = "PMC",
9127 .name = "Pm25LD512(C)",
9128 .bustype = BUS_SPI,
9129 .manufacture_id = PMC_ID,
9130 .model_id = PMC_PM25LD512,
9131 .total_size = 64,
9132 .page_size = 256,
9133 .feature_bits = FEATURE_WRSR_WREN,
9134 .tested = TEST_OK_PREW,
9135 .probe = probe_spi_rdid,
9136 .probe_timing = TIMING_ZERO,
9137 .block_erasers =
9138 {
9139 {
9140 .eraseblocks = { {4 * 1024, 16} },
9141 .block_erase = spi_block_erase_20,
9142 }, {
9143 .eraseblocks = { {4 * 1024, 16} },
9144 .block_erase = spi_block_erase_d7,
9145 }, {
9146 .eraseblocks = { {32 * 1024, 2} },
9147 .block_erase = spi_block_erase_d8,
9148 }, {
9149 .eraseblocks = { {64 * 1024, 1} },
9150 .block_erase = spi_block_erase_60,
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_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009157 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9158 .write = spi_chip_write_256,
9159 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9160 .voltage = {2300, 3600},
9161 },
9162
9163 {
9164 .vendor = "PMC",
9165 .name = "Pm25LD010(C)",
9166 .bustype = BUS_SPI,
9167 .manufacture_id = PMC_ID,
9168 .model_id = PMC_PM25LD010,
9169 .total_size = 128,
9170 .page_size = 256,
9171 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009172 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009173 .probe = probe_spi_rdid,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {4 * 1024, 32} },
9179 .block_erase = spi_block_erase_20,
9180 }, {
9181 .eraseblocks = { {4 * 1024, 32} },
9182 .block_erase = spi_block_erase_d7,
9183 }, {
9184 .eraseblocks = { {32 * 1024, 4} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {128 * 1024, 1} },
9188 .block_erase = spi_block_erase_60,
9189 }, {
9190 .eraseblocks = { {128 * 1024, 1} },
9191 .block_erase = spi_block_erase_c7,
9192 }
9193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009194 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009195 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9196 .write = spi_chip_write_256,
9197 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9198 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9199 },
9200
9201 {
9202 .vendor = "PMC",
9203 .name = "Pm25LD020(C)",
9204 .bustype = BUS_SPI,
9205 .manufacture_id = PMC_ID,
9206 .model_id = PMC_PM25LD020,
9207 .total_size = 256,
9208 .page_size = 256,
9209 .feature_bits = FEATURE_WRSR_WREN,
9210 .tested = TEST_UNTESTED,
9211 .probe = probe_spi_rdid,
9212 .probe_timing = TIMING_ZERO,
9213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {4 * 1024, 64} },
9217 .block_erase = spi_block_erase_20,
9218 }, {
9219 .eraseblocks = { {4 * 1024, 64} },
9220 .block_erase = spi_block_erase_d7,
9221 }, {
9222 .eraseblocks = { {64 * 1024, 4} },
9223 .block_erase = spi_block_erase_d8,
9224 }, {
9225 .eraseblocks = { {256 * 1024, 1} },
9226 .block_erase = spi_block_erase_60,
9227 }, {
9228 .eraseblocks = { {256 * 1024, 1} },
9229 .block_erase = spi_block_erase_c7,
9230 }
9231 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009232 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009233 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9234 .write = spi_chip_write_256,
9235 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9236 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9237 },
9238
9239 {
9240 .vendor = "PMC",
9241 .name = "Pm25LD040(C)",
9242 .bustype = BUS_SPI,
9243 .manufacture_id = PMC_ID,
9244 .model_id = PMC_PM25LV040,
9245 .total_size = 512,
9246 .page_size = 256,
9247 .feature_bits = FEATURE_WRSR_WREN,
9248 .tested = TEST_UNTESTED,
9249 .probe = probe_spi_rdid,
9250 .probe_timing = TIMING_ZERO,
9251 .block_erasers =
9252 {
9253 {
9254 .eraseblocks = { {4 * 1024, 128} },
9255 .block_erase = spi_block_erase_20,
9256 }, {
9257 .eraseblocks = { {4 * 1024, 128} },
9258 .block_erase = spi_block_erase_d7,
9259 }, {
9260 .eraseblocks = { {64 * 1024, 8} },
9261 .block_erase = spi_block_erase_d8,
9262 }, {
9263 .eraseblocks = { {512 * 1024, 1} },
9264 .block_erase = spi_block_erase_60,
9265 }, {
9266 .eraseblocks = { {512 * 1024, 1} },
9267 .block_erase = spi_block_erase_c7,
9268 }
9269 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009270 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009271 .unlock = spi_disable_blockprotect,
9272 .write = spi_chip_write_256,
9273 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9274 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9275 },
9276
9277{
9278 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009279 .name = "Pm25LV512(A)",
9280 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009281 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009282 .model_id = PMC_PM25LV512,
9283 .total_size = 64,
9284 .page_size = 256,
9285 .feature_bits = FEATURE_WRSR_WREN,
9286 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00009287 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009288 .probe_timing = TIMING_ZERO,
9289 .block_erasers =
9290 {
9291 {
9292 .eraseblocks = { {4 * 1024, 16} },
9293 .block_erase = spi_block_erase_d7,
9294 }, {
9295 .eraseblocks = { {32 * 1024, 2} },
9296 .block_erase = spi_block_erase_d8,
9297 }, {
9298 .eraseblocks = { {64 * 1024, 1} },
9299 .block_erase = spi_block_erase_c7,
9300 }
9301 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009302 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009303 .unlock = spi_disable_blockprotect,
9304 .write = spi_chip_write_256,
9305 .read = spi_chip_read, /* Fast read (0x0B) supported */
9306 .voltage = {2700, 3600},
9307 },
9308
9309 {
9310 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009311 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009312 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009313 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009314 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009315 .total_size = 128,
9316 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009317 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00009318 .tested = TEST_OK_PREW,
9319 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009320 .probe_timing = TIMING_ZERO,
9321 .block_erasers =
9322 {
9323 {
9324 .eraseblocks = { {4 * 1024, 32} },
9325 .block_erase = spi_block_erase_d7,
9326 }, {
9327 .eraseblocks = { {32 * 1024, 4} },
9328 .block_erase = spi_block_erase_d8,
9329 }, {
9330 .eraseblocks = { {128 * 1024, 1} },
9331 .block_erase = spi_block_erase_c7,
9332 }
9333 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009334 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009335 .unlock = spi_disable_blockprotect,
9336 .write = spi_chip_write_256,
9337 .read = spi_chip_read, /* Fast read (0x0B) supported */
9338 .voltage = {2700, 3600},
9339 },
9340
9341 {
9342 .vendor = "PMC",
9343 .name = "Pm25LV010A",
9344 .bustype = BUS_SPI,
9345 .manufacture_id = PMC_ID,
9346 .model_id = PMC_PM25LV010,
9347 .total_size = 128,
9348 .page_size = 256,
9349 .feature_bits = FEATURE_WRSR_WREN,
9350 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009351 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009352 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009353 .block_erasers =
9354 {
9355 {
9356 .eraseblocks = { {4 * 1024, 32} },
9357 .block_erase = spi_block_erase_d7,
9358 }, {
9359 .eraseblocks = { {32 * 1024, 4} },
9360 .block_erase = spi_block_erase_d8,
9361 }, {
9362 .eraseblocks = { {128 * 1024, 1} },
9363 .block_erase = spi_block_erase_c7,
9364 }
9365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009366 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009368 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009369 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009370 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009371 },
9372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009373 {
9374 .vendor = "PMC",
9375 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009376 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009377 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009378 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009379 .total_size = 256,
9380 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009381 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009382 .tested = TEST_UNTESTED,
9383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009384 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009385 .block_erasers =
9386 {
9387 {
9388 .eraseblocks = { {4 * 1024, 64} },
9389 .block_erase = spi_block_erase_d7,
9390 }, {
9391 .eraseblocks = { {64 * 1024, 4} },
9392 .block_erase = spi_block_erase_d8,
9393 }, {
9394 .eraseblocks = { {256 * 1024, 1} },
9395 .block_erase = spi_block_erase_c7,
9396 }
9397 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009398 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009399 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009400 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009401 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009402 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009403 },
9404
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009405 {
9406 .vendor = "PMC",
9407 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009408 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009409 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009410 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009411 .total_size = 512,
9412 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009413 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00009414 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009416 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009417 .block_erasers =
9418 {
9419 {
9420 .eraseblocks = { {4 * 1024, 128} },
9421 .block_erase = spi_block_erase_d7,
9422 }, {
9423 .eraseblocks = { {64 * 1024, 8} },
9424 .block_erase = spi_block_erase_d8,
9425 }, {
9426 .eraseblocks = { {512 * 1024, 1} },
9427 .block_erase = spi_block_erase_c7,
9428 }
9429 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009430 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009432 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009433 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009434 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009435 },
9436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009437 {
9438 .vendor = "PMC",
9439 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009440 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009441 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009442 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009443 .total_size = 1024,
9444 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009445 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009446 .tested = TEST_UNTESTED,
9447 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009448 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { {4 * 1024, 256} },
9453 .block_erase = spi_block_erase_d7,
9454 }, {
9455 .eraseblocks = { {4 * 1024, 256} },
9456 .block_erase = spi_block_erase_20,
9457 }, {
9458 .eraseblocks = { {64 * 1024, 16} },
9459 .block_erase = spi_block_erase_d8,
9460 }, {
9461 .eraseblocks = { {1024 * 1024, 1} },
9462 .block_erase = spi_block_erase_60,
9463 }, {
9464 .eraseblocks = { {1024 * 1024, 1} },
9465 .block_erase = spi_block_erase_c7,
9466 }
9467 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009468 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009469 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009470 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009471 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009472 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009473 },
9474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009475 {
9476 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009477 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009478 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009479 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009480 .model_id = PMC_PM25LV016B,
9481 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009482 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009483 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009484 .tested = TEST_UNTESTED,
9485 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009486 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009487 .block_erasers =
9488 {
9489 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009490 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00009491 .block_erase = spi_block_erase_d7,
9492 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009493 .eraseblocks = { {4 * 1024, 512} },
9494 .block_erase = spi_block_erase_20,
9495 }, {
9496 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00009497 .block_erase = spi_block_erase_d8,
9498 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009499 .eraseblocks = { {2 * 1024 * 1024, 1} },
9500 .block_erase = spi_block_erase_60,
9501 }, {
9502 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009503 .block_erase = spi_block_erase_c7,
9504 }
9505 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009506 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009507 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009508 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009509 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009510 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009511 },
9512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009513 {
9514 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009515 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009516 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009517 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009518 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009519 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009520 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009522 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009523 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009524 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009525 .block_erasers =
9526 {
9527 {
9528 .eraseblocks = {
9529 {128 * 1024, 1},
9530 {96 * 1024, 1},
9531 {8 * 1024, 2},
9532 {16 * 1024, 1},
9533 },
Sean Nelson35727f72010-01-28 23:55:12 +00009534 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009535 }, {
9536 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009537 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009538 },
9539 },
Sean Nelson35727f72010-01-28 23:55:12 +00009540 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009541 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009542 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009543 },
9544
9545 {
9546 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009547 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009548 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009549 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009550 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009551 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009552 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009553 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009554 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009555 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009556 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009557 .block_erasers =
9558 {
9559 {
9560 .eraseblocks = {
9561 {16 * 1024, 1},
9562 {8 * 1024, 2},
9563 {96 * 1024, 1},
9564 {128 * 1024, 1},
9565 },
Sean Nelson35727f72010-01-28 23:55:12 +00009566 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009567 }, {
9568 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009569 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009570 },
9571 },
Sean Nelson35727f72010-01-28 23:55:12 +00009572 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009574 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009575 },
9576
9577 {
9578 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009579 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009580 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009581 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009582 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009583 .total_size = 128,
9584 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009585 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009586 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009587 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009588 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009589 .block_erasers =
9590 {
9591 {
9592 .eraseblocks = { {4 * 1024, 32} },
9593 .block_erase = erase_sector_jedec,
9594 }, {
9595 .eraseblocks = { {64 * 1024, 2} },
9596 .block_erase = erase_block_jedec,
9597 }, {
9598 .eraseblocks = { {128 * 1024, 1} },
9599 .block_erase = erase_chip_block_jedec,
9600 }
9601 },
Sean Nelson35727f72010-01-28 23:55:12 +00009602 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009604 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009605 },
9606
9607 {
9608 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009609 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009610 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009611 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009612 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009613 .total_size = 256,
9614 .page_size = 4096,
9615 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9616 .tested = TEST_UNTESTED,
9617 .probe = probe_jedec,
9618 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9619 .block_erasers =
9620 {
9621 {
9622 .eraseblocks = { {4 * 1024, 64} },
9623 .block_erase = erase_sector_jedec,
9624 }, {
9625 .eraseblocks = { {64 * 1024, 4} },
9626 .block_erase = erase_block_jedec,
9627 }, {
9628 .eraseblocks = { {256 * 1024, 1} },
9629 .block_erase = erase_chip_block_jedec,
9630 }
9631 },
9632 .write = write_jedec_1,
9633 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009634 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009635 },
9636
9637 {
9638 .vendor = "PMC",
9639 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009640 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009641 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009642 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009643 .total_size = 512,
9644 .page_size = 4096,
9645 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009646 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009647 .probe = probe_jedec,
9648 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9649 .block_erasers =
9650 {
9651 {
9652 .eraseblocks = { {4 * 1024, 128} },
9653 .block_erase = erase_sector_jedec,
9654 }, {
9655 .eraseblocks = { {64 * 1024, 8} },
9656 .block_erase = erase_block_jedec,
9657 }, {
9658 .eraseblocks = { {512 * 1024, 1} },
9659 .block_erase = erase_chip_block_jedec,
9660 }
9661 },
9662 .write = write_jedec_1,
9663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009664 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009665 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009666
9667 {
9668 .vendor = "PMC",
9669 .name = "Pm39LV512",
9670 .bustype = BUS_PARALLEL,
9671 .manufacture_id = PMC_ID_NOPREFIX,
9672 .model_id = PMC_PM39LV512,
9673 .total_size = 64,
9674 .page_size = 4096,
9675 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9676 .tested = TEST_OK_PREW,
9677 .probe = probe_jedec,
9678 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9679 .block_erasers =
9680 {
9681 {
9682 .eraseblocks = { {4 * 1024, 16} },
9683 .block_erase = erase_sector_jedec,
9684 }, {
9685 .eraseblocks = { {64 * 1024, 1} },
9686 .block_erase = erase_block_jedec,
9687 }, {
9688 .eraseblocks = { {64 * 1024, 1} },
9689 .block_erase = erase_chip_block_jedec,
9690 }
9691 },
9692 .write = write_jedec_1,
9693 .read = read_memmapped,
9694 .voltage = {2700, 3600},
9695 },
9696
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009697 {
9698 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009699 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009700 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009701 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009702 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009703 .total_size = 256,
9704 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009705 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009706 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009707 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009708 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009709 .block_erasers =
9710 {
9711 {
9712 .eraseblocks = { {4 * 1024, 64} },
9713 .block_erase = erase_sector_jedec,
9714 }, {
9715 .eraseblocks = { {16 * 1024, 16} },
9716 .block_erase = erase_block_jedec,
9717 }, {
9718 .eraseblocks = { {256 * 1024, 1} },
9719 .block_erase = erase_chip_block_jedec,
9720 }
9721 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009722 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +00009723 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009725 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009726 },
9727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009728 {
9729 .vendor = "PMC",
9730 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009731 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009732 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009733 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009734 .total_size = 512,
9735 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009736 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009737 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009739 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009740 .block_erasers =
9741 {
9742 {
9743 .eraseblocks = { {4 * 1024, 128} },
9744 .block_erase = erase_sector_jedec,
9745 }, {
9746 .eraseblocks = { {64 * 1024, 8} },
9747 .block_erase = erase_block_jedec,
9748 }, {
9749 .eraseblocks = { {512 * 1024, 1} },
9750 .block_erase = erase_chip_block_jedec,
9751 }
9752 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009753 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +00009754 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009755 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009756 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009757 },
9758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009759 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009760 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009761 .name = "LE25FW106",
9762 .bustype = BUS_SPI,
9763 .manufacture_id = SANYO_ID,
9764 .model_id = SANYO_LE25FW106,
9765 .total_size = 128,
9766 .page_size = 256,
9767 .feature_bits = FEATURE_WRSR_WREN,
9768 .tested = TEST_OK_PREW,
9769 .probe = probe_spi_res2,
9770 .probe_timing = TIMING_ZERO,
9771 .block_erasers = {
9772 {
9773 .eraseblocks = { {2 * 1024, 64} },
9774 .block_erase = spi_block_erase_d7,
9775 }, {
9776 .eraseblocks = { {32 * 1024, 4} },
9777 .block_erase = spi_block_erase_d8,
9778 }, {
9779 .eraseblocks = { {128 * 1024, 1} },
9780 .block_erase = spi_block_erase_c7,
9781 }
9782 },
9783 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9784 .unlock = spi_disable_blockprotect_bp1_srwd,
9785 .write = spi_chip_write_256,
9786 .read = spi_chip_read,
9787 .voltage = {2700, 3600},
9788 },
9789
9790 {
9791 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009792 .name = "LE25FW406A",
9793 .bustype = BUS_SPI,
9794 .manufacture_id = SANYO_ID,
9795 .model_id = SANYO_LE25FW406A,
9796 .total_size = 512,
9797 .page_size = 256,
9798 .feature_bits = FEATURE_WRSR_WREN,
9799 .tested = TEST_OK_PREW,
9800 .probe = probe_spi_res2,
9801 .probe_timing = TIMING_ZERO,
9802 .block_erasers = {
9803 {
9804 .eraseblocks = { {4 * 1024, 128} },
9805 .block_erase = spi_block_erase_d7,
9806 }, {
9807 .eraseblocks = { {64 * 1024, 8} },
9808 .block_erase = spi_block_erase_d8,
9809 }, {
9810 .eraseblocks = { {512 * 1024, 1} },
9811 .block_erase = spi_block_erase_c7,
9812 }
9813 },
9814 .printlock = spi_prettyprint_status_register_plain,
9815 .unlock = spi_disable_blockprotect,
9816 .write = spi_chip_write_256,
9817 .read = spi_chip_read,
9818 .voltage = {2700, 3600},
9819 },
9820
9821 {
9822 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009823 .name = "LE25FU406B",
9824 .bustype = BUS_SPI,
9825 .manufacture_id = SANYO_ID,
9826 .model_id = SANYO_LE25FU406B,
9827 .total_size = 512,
9828 .page_size = 256,
9829 .feature_bits = FEATURE_WRSR_WREN,
9830 .tested = TEST_OK_PREW,
9831 .probe = probe_spi_res2,
9832 .probe_timing = TIMING_ZERO,
9833 .block_erasers = {
9834 {
9835 .eraseblocks = { {4 * 1024, 128} },
9836 .block_erase = spi_block_erase_d7,
9837 }, {
9838 .eraseblocks = { {64 * 1024, 8} },
9839 .block_erase = spi_block_erase_d8,
9840 }, {
9841 .eraseblocks = { {512 * 1024, 1} },
9842 .block_erase = spi_block_erase_c7,
9843 }
9844 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009845 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009846 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9847 .write = spi_chip_write_256,
9848 .read = spi_chip_read,
9849 .voltage = {2300, 3600},
9850 },
9851
9852 {
9853 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009854 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009855 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009856 .manufacture_id = SANYO_ID,
9857 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009858 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009859 .page_size = 256,
9860 .tested = TEST_UNTESTED,
9861 .probe = probe_spi_rdid,
9862 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009863 .block_erasers =
9864 {
9865 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009866 .eraseblocks = { {256, 1024} },
9867 .block_erase = spi_block_erase_db,
9868 }, {
9869 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009870 .block_erase = spi_block_erase_d8,
9871 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009872 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009873 .block_erase = spi_block_erase_c7,
9874 }
9875 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009876 .printlock = spi_prettyprint_status_register_default_welwip,
9877 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009878 .write = spi_chip_write_256,
9879 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009880 .voltage = {2700, 3600},
9881 },
9882
9883 {
9884 .vendor = "Sanyo",
9885 .name = "LE25FW403A",
9886 .bustype = BUS_SPI,
9887 .manufacture_id = SANYO_ID,
9888 .model_id = SANYO_LE25FW403A,
9889 .total_size = 512,
9890 .page_size = 256,
9891 .tested = TEST_UNTESTED,
9892 .probe = probe_spi_rdid,
9893 .probe_timing = TIMING_ZERO,
9894 .block_erasers = {
9895 {
9896 .eraseblocks = { {256, 2 * 1024} },
9897 .block_erase = spi_block_erase_db,
9898 }, {
9899 .eraseblocks = { {64 * 1024, 8} },
9900 .block_erase = spi_block_erase_d8,
9901 }, {
9902 .eraseblocks = { {512 * 1024, 1} },
9903 .block_erase = spi_block_erase_c7,
9904 }
9905 },
9906 .printlock = spi_prettyprint_status_register_default_welwip,
9907 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9908 .write = spi_chip_write_256,
9909 .read = spi_chip_read,
9910 .voltage = {2700, 3600},
9911 },
9912
9913 {
9914 .vendor = "Sanyo",
9915 .name = "LE25FW418A",
9916 .bustype = BUS_SPI,
9917 .manufacture_id = SANYO_ID,
9918 .model_id = SANYO_LE25FW418A,
9919 .total_size = 512,
9920 .page_size = 256,
9921 .feature_bits = FEATURE_WRSR_WREN,
9922 .tested = TEST_UNTESTED,
9923 .probe = probe_spi_res2,
9924 .probe_timing = TIMING_ZERO,
9925 .block_erasers = {
9926 {
9927 .eraseblocks = { {4 * 1024, 128} },
9928 .block_erase = spi_block_erase_d7,
9929 }, {
9930 .eraseblocks = { {64 * 1024, 8} },
9931 .block_erase = spi_block_erase_d8,
9932 }, {
9933 .eraseblocks = { {512 * 1024, 1} },
9934 .block_erase = spi_block_erase_c7,
9935 }
9936 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009937 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009938 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9939 .write = spi_chip_write_256,
9940 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9941 .voltage = {2700, 3600},
9942 },
9943
9944 {
9945 .vendor = "Sanyo",
9946 .name = "LE25FW806",
9947 .bustype = BUS_SPI,
9948 .manufacture_id = SANYO_ID,
9949 .model_id = SANYO_LE25FW806,
9950 .total_size = 1024,
9951 .page_size = 256,
9952 .feature_bits = FEATURE_WRSR_WREN,
9953 .tested = TEST_UNTESTED,
9954 .probe = probe_spi_res2,
9955 .probe_timing = TIMING_ZERO,
9956 .block_erasers = {
9957 {
9958 .eraseblocks = { {4 * 1024, 256} },
9959 .block_erase = spi_block_erase_20,
9960 }, {
9961 .eraseblocks = { {4 * 1024, 256} },
9962 .block_erase = spi_block_erase_d7,
9963 }, {
9964 .eraseblocks = { {64 * 1024, 16} },
9965 .block_erase = spi_block_erase_d8,
9966 }, {
9967 .eraseblocks = { {1024 * 1024, 1} },
9968 .block_erase = spi_block_erase_c7,
9969 }
9970 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009971 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009972 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9973 .write = spi_chip_write_256,
9974 .read = spi_chip_read,
9975 .voltage = {2700, 3600},
9976 },
9977
9978 {
9979 .vendor = "Sanyo",
9980 .name = "LE25FW808",
9981 .bustype = BUS_SPI,
9982 .manufacture_id = SANYO_ID,
9983 .model_id = SANYO_LE25FW808,
9984 .total_size = 1024,
9985 .page_size = 256,
9986 .feature_bits = FEATURE_WRSR_WREN,
9987 .tested = TEST_UNTESTED,
9988 .probe = probe_spi_res2,
9989 .probe_timing = TIMING_ZERO,
9990 .block_erasers = {
9991 {
9992 .eraseblocks = { {8 * 1024, 128} },
9993 .block_erase = spi_block_erase_d7,
9994 }, {
9995 .eraseblocks = { {64 * 1024, 16} },
9996 .block_erase = spi_block_erase_d8,
9997 }, {
9998 .eraseblocks = { {1024 * 1024, 1} },
9999 .block_erase = spi_block_erase_c7,
10000 }
10001 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010002 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010003 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10004 .write = spi_chip_write_256,
10005 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10006 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010007 },
10008
10009 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010010 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010011 .name = "LH28F008BJT-BTLZ1",
10012 .bustype = BUS_PARALLEL,
10013 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010014 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010015 .total_size = 1024,
10016 .page_size = 64 * 1024,
10017 .tested = TEST_OK_PREW,
10018 .probe = probe_82802ab,
10019 .probe_timing = TIMING_ZERO,
10020 .block_erasers =
10021 {
10022 {
10023 .eraseblocks = {
10024 {8 * 1024, 8},
10025 {64 * 1024, 15}
10026 },
10027 .block_erase = erase_block_82802ab,
10028 }, {
10029 .eraseblocks = { {1024 * 1024, 1} },
10030 .block_erase = erase_sector_49lfxxxc,
10031 }
10032 },
10033 .unlock = unlock_lh28f008bjt,
10034 .write = write_82802ab,
10035 .read = read_memmapped,
10036 .voltage = {2700, 3600},
10037 },
10038
10039 {
10040 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010041 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010042 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010043 .manufacture_id = SHARP_ID,
10044 .model_id = SHARP_LHF00L04,
10045 .total_size = 1024,
10046 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010047 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010048 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010049 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010051 .block_erasers =
10052 {
10053 {
10054 .eraseblocks = {
10055 {64 * 1024, 15},
10056 {8 * 1024, 8}
10057 },
Sean Nelson28accc22010-03-19 18:47:06 +000010058 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010059 }, {
10060 .eraseblocks = {
10061 {1024 * 1024, 1}
10062 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010063 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010064 },
10065 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010066 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000010067 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010069 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010070 },
10071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010072 {
10073 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000010074 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010075 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010076 .manufacture_id = SPANSION_ID,
10077 .model_id = SPANSION_S25FL004A,
10078 .total_size = 512,
10079 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010080 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010081 .tested = TEST_UNTESTED,
10082 .probe = probe_spi_rdid,
10083 .probe_timing = TIMING_ZERO,
10084 .block_erasers =
10085 {
10086 {
10087 .eraseblocks = { {64 * 1024, 8} },
10088 .block_erase = spi_block_erase_d8,
10089 }, {
10090 .eraseblocks = { {512 * 1024, 1} },
10091 .block_erase = spi_block_erase_c7,
10092 }
10093 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010095 .unlock = spi_disable_blockprotect,
10096 .write = spi_chip_write_256,
10097 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010098 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010099 },
10100
10101 {
10102 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000010103 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010104 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000010105 .manufacture_id = SPANSION_ID,
10106 .model_id = SPANSION_S25FL008A,
10107 .total_size = 1024,
10108 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010109 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010110 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000010111 .probe = probe_spi_rdid,
10112 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000010113 .block_erasers =
10114 {
10115 {
10116 .eraseblocks = { {64 * 1024, 16} },
10117 .block_erase = spi_block_erase_d8,
10118 }, {
10119 .eraseblocks = { {1024 * 1024, 1} },
10120 .block_erase = spi_block_erase_c7,
10121 }
10122 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010123 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010124 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000010125 .write = spi_chip_write_256,
10126 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010127 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000010128 },
10129
10130 {
10131 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010132 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010133 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010134 .manufacture_id = SPANSION_ID,
10135 .model_id = SPANSION_S25FL016A,
10136 .total_size = 2048,
10137 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010138 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010139 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010140 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010141 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010142 .block_erasers =
10143 {
10144 {
10145 .eraseblocks = { {64 * 1024, 32} },
10146 .block_erase = spi_block_erase_d8,
10147 }, {
10148 .eraseblocks = { {2 * 1024 * 1024, 1} },
10149 .block_erase = spi_block_erase_c7,
10150 }
10151 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010152 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010153 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010154 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010155 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010156 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010157 },
10158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010159 {
Rudy Hostf4e57772010-11-29 00:37:49 +000010160 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010161 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010162 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010163 .manufacture_id = SPANSION_ID,
10164 .model_id = SPANSION_S25FL032A,
10165 .total_size = 4096,
10166 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010167 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010168 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000010169 .probe = probe_spi_rdid,
10170 .probe_timing = TIMING_ZERO,
10171 .block_erasers =
10172 {
10173 {
10174 .eraseblocks = { {64 * 1024, 64} },
10175 .block_erase = spi_block_erase_d8,
10176 }, {
10177 .eraseblocks = { {4 * 1024 * 1024, 1} },
10178 .block_erase = spi_block_erase_c7,
10179 }
10180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010182 .unlock = spi_disable_blockprotect,
10183 .write = spi_chip_write_256,
10184 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010185 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010186 },
10187
10188 {
10189 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010190 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010191 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010192 .manufacture_id = SPANSION_ID,
10193 .model_id = SPANSION_S25FL064A,
10194 .total_size = 8192,
10195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010196 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010197 .tested = TEST_OK_PREW,
10198 .probe = probe_spi_rdid,
10199 .probe_timing = TIMING_ZERO,
10200 .block_erasers =
10201 {
10202 {
10203 .eraseblocks = { {64 * 1024, 128} },
10204 .block_erase = spi_block_erase_d8,
10205 }, {
10206 .eraseblocks = { {8 * 1024 * 1024, 1} },
10207 .block_erase = spi_block_erase_c7,
10208 }
10209 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010210 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010211 .unlock = spi_disable_blockprotect,
10212 .write = spi_chip_write_256,
10213 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010214 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010215 },
10216
10217 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010218 .vendor = "Spansion",
10219 .name = "S25FL204K",
10220 .bustype = BUS_SPI,
10221 .manufacture_id = SPANSION_ID,
10222 .model_id = SPANSION_S25FL204,
10223 .total_size = 512,
10224 .page_size = 256,
10225 .feature_bits = FEATURE_WRSR_WREN,
10226 .tested = TEST_UNTESTED,
10227 .probe = probe_spi_rdid,
10228 .probe_timing = TIMING_ZERO,
10229 .block_erasers = {
10230 {
10231 .eraseblocks = { {4 * 1024, 128} },
10232 .block_erase = spi_block_erase_20,
10233 }, {
10234 .eraseblocks = { {64 * 1024, 8} },
10235 .block_erase = spi_block_erase_d8,
10236 }, {
10237 .eraseblocks = { { 512 * 1024, 1} },
10238 .block_erase = spi_block_erase_60,
10239 }, {
10240 .eraseblocks = { { 512 * 1024, 1} },
10241 .block_erase = spi_block_erase_c7,
10242 }
10243 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010244 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010245 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010246 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010247 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010248 .voltage = {2700, 3600},
10249 },
10250
10251 {
10252 .vendor = "Spansion",
10253 .name = "S25FL208K",
10254 .bustype = BUS_SPI,
10255 .manufacture_id = SPANSION_ID,
10256 .model_id = SPANSION_S25FL208,
10257 .total_size = 1024,
10258 .page_size = 256,
10259 .feature_bits = FEATURE_WRSR_WREN,
10260 .tested = TEST_UNTESTED,
10261 .probe = probe_spi_rdid,
10262 .probe_timing = TIMING_ZERO,
10263 .block_erasers = {
10264 {
10265 .eraseblocks = { {4 * 1024, 256} },
10266 .block_erase = spi_block_erase_20,
10267 }, {
10268 .eraseblocks = { {64 * 1024, 16} },
10269 .block_erase = spi_block_erase_d8,
10270 }, {
10271 .eraseblocks = { { 1024 * 1024, 1} },
10272 .block_erase = spi_block_erase_60,
10273 }, {
10274 .eraseblocks = { { 1024 * 1024, 1} },
10275 .block_erase = spi_block_erase_c7,
10276 }
10277 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010278 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010279 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010280 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010281 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010282 .voltage = {2700, 3600},
10283 },
10284
10285 {
10286 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000010287 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010288 .bustype = BUS_SPI,
10289 .manufacture_id = SPANSION_ID,
10290 .model_id = SPANSION_S25FL216,
10291 .total_size = 2048,
10292 .page_size = 256,
10293 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
10294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10295 .tested = TEST_UNTESTED,
10296 .probe = probe_spi_rdid,
10297 .probe_timing = TIMING_ZERO,
10298 .block_erasers = {
10299 {
10300 .eraseblocks = { {4 * 1024, 512} },
10301 .block_erase = spi_block_erase_20,
10302 }, {
10303 .eraseblocks = { {64 * 1024, 32} },
10304 .block_erase = spi_block_erase_d8,
10305 }, {
10306 .eraseblocks = { { 2048 * 1024, 1} },
10307 .block_erase = spi_block_erase_60,
10308 }, {
10309 .eraseblocks = { { 2048 * 1024, 1} },
10310 .block_erase = spi_block_erase_c7,
10311 }
10312 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010313 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010314 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010315 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010316 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010317 .voltage = {2700, 3600},
10318 },
10319
10320 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010321 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000010322 .name = "S25FL132K",
10323 .bustype = BUS_SPI,
10324 .manufacture_id = SPANSION_ID,
10325 .model_id = SPANSION_S25FL132K,
10326 .total_size = 4096,
10327 .page_size = 256,
10328 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10330 .tested = TEST_UNTESTED,
10331 .probe = probe_spi_rdid,
10332 .probe_timing = TIMING_ZERO,
10333 .block_erasers = {
10334 {
10335 .eraseblocks = { {4 * 1024, 1024} },
10336 .block_erase = spi_block_erase_20,
10337 }, {
10338 .eraseblocks = { {64 * 1024, 64} },
10339 .block_erase = spi_block_erase_d8,
10340 }, {
10341 .eraseblocks = { { 4096 * 1024, 1} },
10342 .block_erase = spi_block_erase_60,
10343 }, {
10344 .eraseblocks = { { 4096 * 1024, 1} },
10345 .block_erase = spi_block_erase_c7,
10346 }
10347 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010348 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010349 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10350 .write = spi_chip_write_256,
10351 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10352 .voltage = {2700, 3600},
10353 },
10354
10355 {
10356 .vendor = "Spansion",
10357 .name = "S25FL164K",
10358 .bustype = BUS_SPI,
10359 .manufacture_id = SPANSION_ID,
10360 .model_id = SPANSION_S25FL164K,
10361 .total_size = 8192,
10362 .page_size = 256,
10363 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10364 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10365 .tested = TEST_OK_PREW,
10366 .probe = probe_spi_rdid,
10367 .probe_timing = TIMING_ZERO,
10368 .block_erasers = {
10369 {
10370 .eraseblocks = { {4 * 1024, 2048} },
10371 .block_erase = spi_block_erase_20,
10372 }, {
10373 .eraseblocks = { {64 * 1024, 128} },
10374 .block_erase = spi_block_erase_d8,
10375 }, {
10376 .eraseblocks = { { 8192 * 1024, 1} },
10377 .block_erase = spi_block_erase_60,
10378 }, {
10379 .eraseblocks = { { 8192 * 1024, 1} },
10380 .block_erase = spi_block_erase_c7,
10381 }
10382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010383 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010384 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10385 .write = spi_chip_write_256,
10386 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10387 .voltage = {2700, 3600},
10388 },
10389
10390 {
10391 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000010392 .name = "S25FL128P......0", /* uniform 64 kB sectors */
10393 .bustype = BUS_SPI,
10394 .manufacture_id = SPANSION_ID,
10395 .model_id = SPANSION_S25FL128,
10396 .total_size = 16384,
10397 .page_size = 256,
10398 .feature_bits = FEATURE_WRSR_WREN,
10399 .tested = TEST_UNTESTED,
10400 .probe = probe_spi_rdid,
10401 .probe_timing = TIMING_ZERO,
10402 .block_erasers = {
10403 {
10404 .eraseblocks = { {64 * 1024, 256} },
10405 .block_erase = spi_block_erase_20,
10406 }, {
10407 .eraseblocks = { {64 * 1024, 256} },
10408 .block_erase = spi_block_erase_d8,
10409 }, {
10410 .eraseblocks = { { 16384 * 1024, 1} },
10411 .block_erase = spi_block_erase_60,
10412 }, {
10413 .eraseblocks = { { 16384 * 1024, 1} },
10414 .block_erase = spi_block_erase_c7,
10415 }
10416 },
10417 .printlock = spi_prettyprint_status_register_bp3_srwd,
10418 .unlock = spi_disable_blockprotect_bp3_srwd,
10419 .write = spi_chip_write_256,
10420 .read = spi_chip_read, /* Fast read (0x0B) supported */
10421 .voltage = {2700, 3600},
10422 },
10423
10424 {
10425 .vendor = "Spansion",
10426 .name = "S25FL128P......1", /* uniform 256kB sectors */
10427 .bustype = BUS_SPI,
10428 .manufacture_id = SPANSION_ID,
10429 .model_id = SPANSION_S25FL128,
10430 .total_size = 16384,
10431 .page_size = 256,
10432 .feature_bits = FEATURE_WRSR_WREN,
10433 .tested = TEST_UNTESTED,
10434 .probe = probe_spi_rdid,
10435 .probe_timing = TIMING_ZERO,
10436 .block_erasers = {
10437 {
10438 .eraseblocks = { {256 * 1024, 64} },
10439 .block_erase = spi_block_erase_d8,
10440 }, {
10441 .eraseblocks = { { 16384 * 1024, 1} },
10442 .block_erase = spi_block_erase_c7,
10443 }
10444 },
10445 .printlock = spi_prettyprint_status_register_bp2_srwd,
10446 .unlock = spi_disable_blockprotect_bp2_srwd,
10447 .write = spi_chip_write_256,
10448 .read = spi_chip_read, /* Fast read (0x0B) supported */
10449 .voltage = {2700, 3600},
10450 },
10451
10452 {
10453 .vendor = "Spansion",
10454 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010455 .bustype = BUS_SPI,
10456 .manufacture_id = SPANSION_ID,
10457 .model_id = SPANSION_S25FL128,
10458 .total_size = 16384,
10459 .page_size = 256,
10460 /* supports 4B addressing */
10461 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10462 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10463 .tested = TEST_UNTESTED,
10464 .probe = probe_spi_rdid,
10465 .probe_timing = TIMING_ZERO,
10466 .block_erasers = {
10467 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010468 /* This chip supports erasing of the 32 so-called "parameter sectors" with
10469 * opcode 0x20. Trying to access an address outside these 4kB blocks does
10470 * have no effect on the memory contents, but sets a flag in the SR.
10471 .eraseblocks = {
10472 {4 * 1024, 32},
10473 {64 * 1024, 254} // inaccessible
10474 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010475 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000010476 }, { */
10477 .eraseblocks = { { 64 * 1024, 256} },
10478 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010479 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000010480 .eraseblocks = { { 16384 * 1024, 1} },
10481 .block_erase = spi_block_erase_60,
10482 }, {
10483 .eraseblocks = { { 16384 * 1024, 1} },
10484 .block_erase = spi_block_erase_c7,
10485 }
10486 },
10487 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10488 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10489 .write = spi_chip_write_256, /* Multi I/O supported */
10490 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10491 .voltage = {2700, 3600},
10492 },
10493
10494 {
10495 .vendor = "Spansion",
10496 .name = "S25FL128S......1", /* uniform 256 kB sectors */
10497 .bustype = BUS_SPI,
10498 .manufacture_id = SPANSION_ID,
10499 .model_id = SPANSION_S25FL128,
10500 .total_size = 16384,
10501 .page_size = 512,
10502 /* supports 4B addressing */
10503 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10504 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10505 .tested = TEST_UNTESTED,
10506 .probe = probe_spi_rdid,
10507 .probe_timing = TIMING_ZERO,
10508 .block_erasers = {
10509 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010510 .eraseblocks = { {256 * 1024, 64} },
10511 .block_erase = spi_block_erase_d8,
10512 }, {
10513 .eraseblocks = { { 16384 * 1024, 1} },
10514 .block_erase = spi_block_erase_60,
10515 }, {
10516 .eraseblocks = { { 16384 * 1024, 1} },
10517 .block_erase = spi_block_erase_c7,
10518 }
10519 },
10520 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10521 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10522 .write = spi_chip_write_256, /* Multi I/O supported */
10523 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10524 .voltage = {2700, 3600},
10525 },
10526
10527 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010528 .vendor = "Spansion",
10529 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10530 .bustype = BUS_SPI,
10531 .manufacture_id = SPANSION_ID,
10532 .model_id = SPANSION_S25FL128,
10533 .total_size = 16384,
10534 .page_size = 256,
10535 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10536 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10537 .tested = TEST_OK_PREW,
10538 .probe = probe_spi_rdid,
10539 .probe_timing = TIMING_ZERO,
10540 .block_erasers = {
10541 {
10542 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
10543 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
10544 * effect on the memory contents, but sets a flag in the SR.
10545 .eraseblocks = {
10546 {4 * 1024, 32},
10547 {64 * 1024, 254} // inaccessible
10548 },
10549 .block_erase = spi_block_erase_20,
10550 }, { */
10551 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
10552 .eraseblocks = {
10553 {8 * 1024, 16},
10554 {64 * 1024, 254} // inaccessible
10555 },
10556 .block_erase = spi_block_erase_40,
10557 }, { */
10558 .eraseblocks = { { 64 * 1024, 256} },
10559 .block_erase = spi_block_erase_d8,
10560 }, {
10561 .eraseblocks = { { 16384 * 1024, 1} },
10562 .block_erase = spi_block_erase_60,
10563 }, {
10564 .eraseblocks = { { 16384 * 1024, 1} },
10565 .block_erase = spi_block_erase_c7,
10566 }
10567 },
10568 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10569 .unlock = spi_disable_blockprotect_bp2_srwd,
10570 .write = spi_chip_write_256, /* Multi I/O supported */
10571 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10572 .voltage = {2700, 3600},
10573 },
10574
10575 {
10576 .vendor = "Spansion",
10577 .name = "S25FL129P......1", /* uniform 256 kB sectors */
10578 .bustype = BUS_SPI,
10579 .manufacture_id = SPANSION_ID,
10580 .model_id = SPANSION_S25FL128,
10581 .total_size = 16384,
10582 .page_size = 512,
10583 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10584 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10585 .tested = TEST_UNTESTED,
10586 .probe = probe_spi_rdid,
10587 .probe_timing = TIMING_ZERO,
10588 .block_erasers = {
10589 {
10590 .eraseblocks = { {256 * 1024, 64} },
10591 .block_erase = spi_block_erase_d8,
10592 }, {
10593 .eraseblocks = { { 16384 * 1024, 1} },
10594 .block_erase = spi_block_erase_60,
10595 }, {
10596 .eraseblocks = { { 16384 * 1024, 1} },
10597 .block_erase = spi_block_erase_c7,
10598 }
10599 },
10600 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10601 .unlock = spi_disable_blockprotect_bp2_srwd,
10602 .write = spi_chip_write_256, /* Multi I/O supported */
10603 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10604 .voltage = {2700, 3600},
10605 },
10606
10607 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010608 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000010609 .name = "SST25LF020A",
10610 .bustype = BUS_SPI,
10611 .manufacture_id = SST_ID,
10612 .model_id = SST_SST25VF020_REMS,
10613 .total_size = 256,
10614 .page_size = 256,
10615 .feature_bits = FEATURE_WRSR_EWSR,
10616 .tested = TEST_OK_PREW,
10617 .probe = probe_spi_rems,
10618 .probe_timing = TIMING_ZERO,
10619 .block_erasers =
10620 {
10621 {
10622 .eraseblocks = { {4 * 1024, 64} },
10623 .block_erase = spi_block_erase_20,
10624 }, {
10625 .eraseblocks = { {32 * 1024, 8} },
10626 .block_erase = spi_block_erase_52,
10627 }, {
10628 .eraseblocks = { {256 * 1024, 1} },
10629 .block_erase = spi_block_erase_60,
10630 },
10631 },
10632 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10633 .unlock = spi_disable_blockprotect,
10634 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10635 .read = spi_chip_read, /* Fast read (0x0B) supported */
10636 .voltage = {2700, 3600},
10637 },
10638
10639 {
10640 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000010641 .name = "SST25LF040A",
10642 .bustype = BUS_SPI,
10643 .manufacture_id = SST_ID,
10644 .model_id = SST_SST25VF040_REMS,
10645 .total_size = 512,
10646 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010647 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000010648 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000010649 .probe = probe_spi_res2,
10650 .probe_timing = TIMING_ZERO,
10651 .block_erasers =
10652 {
10653 {
10654 .eraseblocks = { {4 * 1024, 128} },
10655 .block_erase = spi_block_erase_20,
10656 }, {
10657 .eraseblocks = { {32 * 1024, 16} },
10658 .block_erase = spi_block_erase_52,
10659 }, {
10660 .eraseblocks = { {512 * 1024, 1} },
10661 .block_erase = spi_block_erase_60,
10662 },
10663 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010664 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010665 .unlock = spi_disable_blockprotect,
10666 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10667 .read = spi_chip_read,
10668 .voltage = {3000, 3600},
10669 },
10670
10671 {
10672 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010673 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000010674 .bustype = BUS_SPI,
10675 .manufacture_id = SST_ID,
10676 .model_id = SST_SST25VF080_REMS,
10677 .total_size = 1024,
10678 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010679 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000010680 .tested = TEST_UNTESTED,
10681 .probe = probe_spi_res2,
10682 .probe_timing = TIMING_ZERO,
10683 .block_erasers =
10684 {
10685 {
10686 .eraseblocks = { {4 * 1024, 256} },
10687 .block_erase = spi_block_erase_20,
10688 }, {
10689 .eraseblocks = { {32 * 1024, 32} },
10690 .block_erase = spi_block_erase_52,
10691 }, {
10692 .eraseblocks = { {1024 * 1024, 1} },
10693 .block_erase = spi_block_erase_60,
10694 },
10695 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010696 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010697 .unlock = spi_disable_blockprotect,
10698 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10699 .read = spi_chip_read,
10700 .voltage = {3000, 3600},
10701 },
10702
10703 {
10704 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010705 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000010706 .bustype = BUS_SPI,
10707 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000010708 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000010709 .total_size = 64,
10710 .page_size = 256,
10711 .feature_bits = FEATURE_WRSR_EWSR,
10712 .tested = TEST_OK_PREW,
10713 .probe = probe_spi_rems,
10714 .probe_timing = TIMING_ZERO,
10715 .block_erasers =
10716 {
10717 {
10718 .eraseblocks = { {4 * 1024, 16} },
10719 .block_erase = spi_block_erase_20,
10720 }, {
10721 .eraseblocks = { {32 * 1024, 2} },
10722 .block_erase = spi_block_erase_52,
10723 }, {
10724 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010725 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010726 }, {
10727 .eraseblocks = { {64 * 1024, 1} },
10728 .block_erase = spi_block_erase_60,
10729 }, {
10730 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010731 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010732 },
10733 },
10734 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10735 .unlock = spi_disable_blockprotect,
10736 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010737 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010738 .voltage = {2700, 3600},
10739 },
10740
10741 {
10742 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010743 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010744 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010745 .manufacture_id = SST_ID,
10746 .model_id = SST_SST25VF010_REMS,
10747 .total_size = 128,
10748 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010749 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010750 .tested = TEST_OK_PREW,
10751 .probe = probe_spi_rems,
10752 .probe_timing = TIMING_ZERO,
10753 .block_erasers =
10754 {
10755 {
10756 .eraseblocks = { {4 * 1024, 32} },
10757 .block_erase = spi_block_erase_20,
10758 }, {
10759 .eraseblocks = { {32 * 1024, 4} },
10760 .block_erase = spi_block_erase_52,
10761 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010762 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010763 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010764 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010765 .eraseblocks = { {128 * 1024, 1} },
10766 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010767 }, {
10768 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010769 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010770 },
10771 },
10772 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10773 .unlock = spi_disable_blockprotect,
10774 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010775 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010776 .voltage = {2700, 3600},
10777 },
10778
10779 {
10780 .vendor = "SST",
10781 .name = "SST25VF020",
10782 .bustype = BUS_SPI,
10783 .manufacture_id = SST_ID,
10784 .model_id = SST_SST25VF020_REMS,
10785 .total_size = 256,
10786 .page_size = 256,
10787 .feature_bits = FEATURE_WRSR_EWSR,
10788 .tested = TEST_UNTESTED,
10789 .probe = probe_spi_rems,
10790 .probe_timing = TIMING_ZERO,
10791 .block_erasers =
10792 {
10793 {
10794 .eraseblocks = { {4 * 1024, 64} },
10795 .block_erase = spi_block_erase_20,
10796 }, {
10797 .eraseblocks = { {32 * 1024, 8} },
10798 .block_erase = spi_block_erase_52,
10799 }, {
10800 .eraseblocks = { {256 * 1024, 1} },
10801 .block_erase = spi_block_erase_60,
10802 },
10803 },
10804 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10805 .unlock = spi_disable_blockprotect,
10806 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10807 .read = spi_chip_read, /* only */
10808 .voltage = {2700, 3600},
10809 },
10810
10811 {
10812 .vendor = "SST",
10813 .name = "SST25VF020B",
10814 .bustype = BUS_SPI,
10815 .manufacture_id = SST_ID,
10816 .model_id = SST_SST25VF020B,
10817 .total_size = 256,
10818 .page_size = 256,
10819 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010820 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010821 .probe = probe_spi_rdid,
10822 .probe_timing = TIMING_ZERO,
10823 .block_erasers =
10824 {
10825 {
10826 .eraseblocks = { {4 * 1024, 64} },
10827 .block_erase = spi_block_erase_20,
10828 }, {
10829 .eraseblocks = { {32 * 1024, 8} },
10830 .block_erase = spi_block_erase_52,
10831 }, {
10832 .eraseblocks = { {64 * 1024, 4} },
10833 .block_erase = spi_block_erase_d8,
10834 }, {
10835 .eraseblocks = { {256 * 1024, 1} },
10836 .block_erase = spi_block_erase_60,
10837 }, {
10838 .eraseblocks = { {256 * 1024, 1} },
10839 .block_erase = spi_block_erase_c7,
10840 },
10841 },
10842 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10843 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10844 .write = spi_aai_write, /* AAI supported (0xAD) */
10845 .read = spi_chip_read, /* Fast read (0x0B) supported */
10846 .voltage = {2700, 3600},
10847 },
10848
10849 {
10850 .vendor = "SST",
10851 .name = "SST25VF040",
10852 .bustype = BUS_SPI,
10853 .manufacture_id = SST_ID,
10854 .model_id = SST_SST25VF040_REMS,
10855 .total_size = 512,
10856 .page_size = 256,
10857 .feature_bits = FEATURE_WRSR_EWSR,
10858 .tested = TEST_OK_PR,
10859 .probe = probe_spi_rems,
10860 .probe_timing = TIMING_ZERO,
10861 .block_erasers =
10862 {
10863 {
10864 .eraseblocks = { {4 * 1024, 128} },
10865 .block_erase = spi_block_erase_20,
10866 }, {
10867 .eraseblocks = { {32 * 1024, 16} },
10868 .block_erase = spi_block_erase_52,
10869 }, {
10870 .eraseblocks = { {512 * 1024, 1} },
10871 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000010872 },
10873 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010874 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000010875 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000010876 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10877 .read = spi_chip_read,
10878 .voltage = {2700, 3600},
10879 },
10880
10881 {
10882 .vendor = "SST",
10883 .name = "SST25VF040B",
10884 .bustype = BUS_SPI,
10885 .manufacture_id = SST_ID,
10886 .model_id = SST_SST25VF040B,
10887 .total_size = 512,
10888 .page_size = 256,
10889 .feature_bits = FEATURE_WRSR_EWSR,
10890 .tested = TEST_OK_PREW,
10891 .probe = probe_spi_rdid,
10892 .probe_timing = TIMING_ZERO,
10893 .block_erasers =
10894 {
10895 {
10896 .eraseblocks = { {4 * 1024, 128} },
10897 .block_erase = spi_block_erase_20,
10898 }, {
10899 .eraseblocks = { {32 * 1024, 16} },
10900 .block_erase = spi_block_erase_52,
10901 }, {
10902 .eraseblocks = { {64 * 1024, 8} },
10903 .block_erase = spi_block_erase_d8,
10904 }, {
10905 .eraseblocks = { {512 * 1024, 1} },
10906 .block_erase = spi_block_erase_60,
10907 }, {
10908 .eraseblocks = { {512 * 1024, 1} },
10909 .block_erase = spi_block_erase_c7,
10910 },
10911 },
10912 .printlock = spi_prettyprint_status_register_sst25vf040b,
10913 .unlock = spi_disable_blockprotect,
10914 .write = spi_aai_write, /* AAI supported (0xAD) */
10915 .read = spi_chip_read, /* Fast read (0x0B) supported */
10916 .voltage = {2700, 3600},
10917 },
10918
10919 {
10920 .vendor = "SST",
10921 .name = "SST25VF040B.REMS",
10922 .bustype = BUS_SPI,
10923 .manufacture_id = SST_ID,
10924 .model_id = SST_SST25VF040B_REMS,
10925 .total_size = 512,
10926 .page_size = 256,
10927 .feature_bits = FEATURE_WRSR_EWSR,
10928 .tested = TEST_OK_PREW,
10929 .probe = probe_spi_rems,
10930 .probe_timing = TIMING_ZERO,
10931 .block_erasers =
10932 {
10933 {
10934 .eraseblocks = { {4 * 1024, 128} },
10935 .block_erase = spi_block_erase_20,
10936 }, {
10937 .eraseblocks = { {32 * 1024, 16} },
10938 .block_erase = spi_block_erase_52,
10939 }, {
10940 .eraseblocks = { {64 * 1024, 8} },
10941 .block_erase = spi_block_erase_d8,
10942 }, {
10943 .eraseblocks = { {512 * 1024, 1} },
10944 .block_erase = spi_block_erase_60,
10945 }, {
10946 .eraseblocks = { {512 * 1024, 1} },
10947 .block_erase = spi_block_erase_c7,
10948 },
10949 },
10950 .printlock = spi_prettyprint_status_register_sst25vf040b,
10951 .unlock = spi_disable_blockprotect,
10952 .write = spi_aai_write,
10953 .read = spi_chip_read,
10954 .voltage = {2700, 3600},
10955 },
10956
10957 {
10958 .vendor = "SST",
10959 .name = "SST25VF080B",
10960 .bustype = BUS_SPI,
10961 .manufacture_id = SST_ID,
10962 .model_id = SST_SST25VF080B,
10963 .total_size = 1024,
10964 .page_size = 256,
10965 .feature_bits = FEATURE_WRSR_EWSR,
10966 .tested = TEST_OK_PREW,
10967 .probe = probe_spi_rdid,
10968 .probe_timing = TIMING_ZERO,
10969 .block_erasers =
10970 {
10971 {
10972 .eraseblocks = { {4 * 1024, 256} },
10973 .block_erase = spi_block_erase_20,
10974 }, {
10975 .eraseblocks = { {32 * 1024, 32} },
10976 .block_erase = spi_block_erase_52,
10977 }, {
10978 .eraseblocks = { {64 * 1024, 16} },
10979 .block_erase = spi_block_erase_d8,
10980 }, {
10981 .eraseblocks = { {1024 * 1024, 1} },
10982 .block_erase = spi_block_erase_60,
10983 }, {
10984 .eraseblocks = { {1024 * 1024, 1} },
10985 .block_erase = spi_block_erase_c7,
10986 },
10987 },
10988 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10989 .unlock = spi_disable_blockprotect,
10990 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010991 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010992 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010993 },
10994
10995 {
10996 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010997 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010998 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010999 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011000 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011001 .total_size = 2048,
11002 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011003 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000011004 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011005 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011006 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011007 .block_erasers =
11008 {
11009 {
11010 .eraseblocks = { {4 * 1024, 512} },
11011 .block_erase = spi_block_erase_20,
11012 }, {
11013 .eraseblocks = { {32 * 1024, 64} },
11014 .block_erase = spi_block_erase_52,
11015 }, {
11016 .eraseblocks = { {64 * 1024, 32} },
11017 .block_erase = spi_block_erase_d8,
11018 }, {
11019 .eraseblocks = { {2 * 1024 * 1024, 1} },
11020 .block_erase = spi_block_erase_60,
11021 }, {
11022 .eraseblocks = { {2 * 1024 * 1024, 1} },
11023 .block_erase = spi_block_erase_c7,
11024 },
11025 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011026 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011027 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000011028 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011029 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011030 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011031 },
11032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011033 {
11034 .vendor = "SST",
11035 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011036 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011037 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011038 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011039 .total_size = 4096,
11040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011041 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000011042 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011043 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011044 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011045 .block_erasers =
11046 {
11047 {
11048 .eraseblocks = { {4 * 1024, 1024} },
11049 .block_erase = spi_block_erase_20,
11050 }, {
11051 .eraseblocks = { {32 * 1024, 128} },
11052 .block_erase = spi_block_erase_52,
11053 }, {
11054 .eraseblocks = { {64 * 1024, 64} },
11055 .block_erase = spi_block_erase_d8,
11056 }, {
11057 .eraseblocks = { {4 * 1024 * 1024, 1} },
11058 .block_erase = spi_block_erase_60,
11059 }, {
11060 .eraseblocks = { {4 * 1024 * 1024, 1} },
11061 .block_erase = spi_block_erase_c7,
11062 },
11063 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011064 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011065 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011066 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011067 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011068 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011069 },
11070
11071 {
11072 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011073 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011074 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011075 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011076 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011077 .total_size = 8192,
11078 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011079 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000011080 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011081 .probe = probe_spi_rdid,
11082 .probe_timing = TIMING_ZERO,
11083 .block_erasers =
11084 {
11085 {
11086 .eraseblocks = { {4 * 1024, 2048} },
11087 .block_erase = spi_block_erase_20,
11088 }, {
11089 .eraseblocks = { {32 * 1024, 256} },
11090 .block_erase = spi_block_erase_52,
11091 }, {
11092 .eraseblocks = { {64 * 1024, 128} },
11093 .block_erase = spi_block_erase_d8,
11094 }, {
11095 .eraseblocks = { {8 * 1024 * 1024, 1} },
11096 .block_erase = spi_block_erase_60,
11097 }, {
11098 .eraseblocks = { {8 * 1024 * 1024, 1} },
11099 .block_erase = spi_block_erase_c7,
11100 },
11101 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011102 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011103 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011104 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011105 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011106 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011107 },
11108
11109 {
11110 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000011111 .name = "SST25WF512",
11112 .bustype = BUS_SPI,
11113 .manufacture_id = SST_ID,
11114 .model_id = SST_SST25WF512,
11115 .total_size = 64,
11116 .page_size = 256,
11117 .feature_bits = FEATURE_WRSR_EITHER,
11118 .tested = TEST_UNTESTED,
11119 .probe = probe_spi_rdid,
11120 .probe_timing = TIMING_ZERO,
11121 .block_erasers =
11122 {
11123 {
11124 .eraseblocks = { {4 * 1024, 16} },
11125 .block_erase = spi_block_erase_20,
11126 }, {
11127 .eraseblocks = { {32 * 1024, 2} },
11128 .block_erase = spi_block_erase_52,
11129 }, {
11130 .eraseblocks = { {1024 * 64, 1} },
11131 .block_erase = spi_block_erase_60,
11132 }, {
11133 .eraseblocks = { {1024 * 64, 1} },
11134 .block_erase = spi_block_erase_c7,
11135 },
11136 },
Jason Harper43ddef02014-05-04 00:55:24 +000011137 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11138 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011139 .write = spi_aai_write,
11140 .read = spi_chip_read, /* Fast read (0x0B) supported */
11141 .voltage = {1650, 1950},
11142 },
11143
11144 {
11145 .vendor = "SST",
11146 .name = "SST25WF010",
11147 .bustype = BUS_SPI,
11148 .manufacture_id = SST_ID,
11149 .model_id = SST_SST25WF010,
11150 .total_size = 128,
11151 .page_size = 256,
11152 .feature_bits = FEATURE_WRSR_EITHER,
11153 .tested = TEST_UNTESTED,
11154 .probe = probe_spi_rdid,
11155 .probe_timing = TIMING_ZERO,
11156 .block_erasers =
11157 {
11158 {
11159 .eraseblocks = { {4 * 1024, 32} },
11160 .block_erase = spi_block_erase_20,
11161 }, {
11162 .eraseblocks = { {32 * 1024, 4} },
11163 .block_erase = spi_block_erase_52,
11164 }, {
11165 .eraseblocks = { {1024 * 128, 1} },
11166 .block_erase = spi_block_erase_60,
11167 }, {
11168 .eraseblocks = { {1024 * 128, 1} },
11169 .block_erase = spi_block_erase_c7,
11170 },
11171 },
Jason Harper43ddef02014-05-04 00:55:24 +000011172 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11173 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011174 .write = spi_aai_write,
11175 .read = spi_chip_read, /* Fast read (0x0B) supported */
11176 .voltage = {1650, 1950},
11177 },
11178
11179 {
11180 .vendor = "SST",
11181 .name = "SST25WF020",
11182 .bustype = BUS_SPI,
11183 .manufacture_id = SST_ID,
11184 .model_id = SST_SST25WF020,
11185 .total_size = 256,
11186 .page_size = 256,
11187 .feature_bits = FEATURE_WRSR_EITHER,
11188 .tested = TEST_UNTESTED,
11189 .probe = probe_spi_rdid,
11190 .probe_timing = TIMING_ZERO,
11191 .block_erasers =
11192 {
11193 {
11194 .eraseblocks = { {4 * 1024, 64} },
11195 .block_erase = spi_block_erase_20,
11196 }, {
11197 .eraseblocks = { {32 * 1024, 8} },
11198 .block_erase = spi_block_erase_52,
11199 }, {
11200 .eraseblocks = { {64 * 1024, 4} },
11201 .block_erase = spi_block_erase_d8,
11202 }, {
11203 .eraseblocks = { {1024 * 256, 1} },
11204 .block_erase = spi_block_erase_60,
11205 }, {
11206 .eraseblocks = { {1024 * 256, 1} },
11207 .block_erase = spi_block_erase_c7,
11208 },
11209 },
Jason Harper43ddef02014-05-04 00:55:24 +000011210 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11211 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011212 .write = spi_aai_write,
11213 .read = spi_chip_read, /* Fast read (0x0B) supported */
11214 .voltage = {1650, 1950},
11215 },
11216
11217 {
11218 .vendor = "SST",
11219 .name = "SST25WF040",
11220 .bustype = BUS_SPI,
11221 .manufacture_id = SST_ID,
11222 .model_id = SST_SST25WF040,
11223 .total_size = 512,
11224 .page_size = 256,
11225 .feature_bits = FEATURE_WRSR_EITHER,
11226 .tested = TEST_UNTESTED,
11227 .probe = probe_spi_rdid,
11228 .probe_timing = TIMING_ZERO,
11229 .block_erasers =
11230 {
11231 {
11232 .eraseblocks = { {4 * 1024, 128} },
11233 .block_erase = spi_block_erase_20,
11234 }, {
11235 .eraseblocks = { {32 * 1024, 16} },
11236 .block_erase = spi_block_erase_52,
11237 }, {
11238 .eraseblocks = { {64 * 1024, 8} },
11239 .block_erase = spi_block_erase_d8,
11240 }, {
11241 .eraseblocks = { {1024 * 512, 1} },
11242 .block_erase = spi_block_erase_60,
11243 }, {
11244 .eraseblocks = { {1024 * 512, 1} },
11245 .block_erase = spi_block_erase_c7,
11246 },
11247 },
Jason Harper43ddef02014-05-04 00:55:24 +000011248 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11249 .unlock = spi_disable_blockprotect_bp2_srwd,
11250 .write = spi_aai_write,
11251 .read = spi_chip_read, /* Fast read (0x0B) supported */
11252 .voltage = {1650, 1950},
11253 },
11254
11255 {
11256 .vendor = "SST",
11257 .name = "SST25WF080",
11258 .bustype = BUS_SPI,
11259 .manufacture_id = SST_ID,
11260 .model_id = SST_SST25WF080,
11261 .total_size = 1024,
11262 .page_size = 256,
11263 .feature_bits = FEATURE_WRSR_EITHER,
11264 .tested = TEST_OK_PREW,
11265 .probe = probe_spi_rdid,
11266 .probe_timing = TIMING_ZERO,
11267 .block_erasers =
11268 {
11269 {
11270 .eraseblocks = { {4 * 1024, 256} },
11271 .block_erase = spi_block_erase_20,
11272 }, {
11273 .eraseblocks = { {32 * 1024, 32} },
11274 .block_erase = spi_block_erase_52,
11275 }, {
11276 .eraseblocks = { {64 * 1024, 16} },
11277 .block_erase = spi_block_erase_d8,
11278 }, {
11279 .eraseblocks = { {1024 * 1024, 1} },
11280 .block_erase = spi_block_erase_60,
11281 }, {
11282 .eraseblocks = { {1024 * 1024, 1} },
11283 .block_erase = spi_block_erase_c7,
11284 },
11285 },
11286 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
11287 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011288 .write = spi_aai_write,
11289 .read = spi_chip_read, /* Fast read (0x0B) supported */
11290 .voltage = {1650, 1950},
11291 },
11292
11293 {
11294 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011295 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011298 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011299 .total_size = 512,
11300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011301 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011302 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011303 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011304 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011305 .block_erasers =
11306 {
11307 {
11308 .eraseblocks = { {128, 4096} },
11309 .block_erase = erase_sector_28sf040,
11310 }, {
11311 .eraseblocks = { {512 * 1024, 1} },
11312 .block_erase = erase_chip_28sf040,
11313 }
11314 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011315 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011316 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011317 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011318 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011319 },
11320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011321 {
11322 .vendor = "SST",
11323 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011324 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011325 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011326 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011327 .total_size = 128,
11328 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011329 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011330 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011331 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011332 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011333 .block_erasers =
11334 {
11335 {
11336 .eraseblocks = { {128 * 1024, 1} },
11337 .block_erase = erase_chip_block_jedec,
11338 }
11339 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011340 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011341 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011342 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011343 },
11344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011345 {
11346 .vendor = "SST",
11347 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011348 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011349 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011350 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011351 .total_size = 128,
11352 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011353 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011354 .tested = TEST_UNTESTED,
11355 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011356 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011357 .block_erasers =
11358 {
11359 {
11360 .eraseblocks = { {128 * 1024, 1} },
11361 .block_erase = erase_chip_block_jedec,
11362 }
11363 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011364 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011365 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011366 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011367 },
11368
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011369 {
11370 .vendor = "SST",
11371 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011372 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011373 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011374 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011375 .total_size = 256,
11376 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011377 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011378 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011379 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011380 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011381 .block_erasers =
11382 {
11383 {
11384 .eraseblocks = { {256 * 1024, 1} },
11385 .block_erase = erase_chip_block_jedec,
11386 }
11387 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011388 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011389 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011390 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011391 },
11392
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011393 {
11394 .vendor = "SST",
11395 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011396 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011397 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011398 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011399 .total_size = 256,
11400 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011401 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011402 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011403 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011404 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011405 .block_erasers =
11406 {
11407 {
11408 .eraseblocks = { {256 * 1024, 1} },
11409 .block_erase = erase_chip_block_jedec,
11410 }
11411 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011412 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011414 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011415 },
11416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011417 {
11418 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000011419 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011420 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011421 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011422 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011423 .total_size = 64,
11424 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011425 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000011426 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011427 .probe = probe_jedec,
11428 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000011429 .block_erasers =
11430 {
11431 {
11432 .eraseblocks = { {4 * 1024, 16} },
11433 .block_erase = erase_sector_jedec,
11434 }, {
11435 .eraseblocks = { {64 * 1024, 1} },
11436 .block_erase = erase_chip_block_jedec,
11437 }
11438 },
Sean Nelson35727f72010-01-28 23:55:12 +000011439 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011441 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000011442 },
11443
11444 {
11445 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011446 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011447 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011448 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011449 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011450 .total_size = 128,
11451 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011452 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011453 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011454 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011455 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011456 .block_erasers =
11457 {
11458 {
11459 .eraseblocks = { {4 * 1024, 32} },
11460 .block_erase = erase_sector_jedec,
11461 }, {
11462 .eraseblocks = { {128 * 1024, 1} },
11463 .block_erase = erase_chip_block_jedec,
11464 }
11465 },
Sean Nelson35727f72010-01-28 23:55:12 +000011466 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011467 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011468 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011469 },
11470
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011471 {
11472 .vendor = "SST",
11473 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011474 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011475 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011476 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011477 .total_size = 256,
11478 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011479 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000011480 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011481 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011482 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011483 .block_erasers =
11484 {
11485 {
11486 .eraseblocks = { {4 * 1024, 64} },
11487 .block_erase = erase_sector_jedec,
11488 }, {
11489 .eraseblocks = { {256 * 1024, 1} },
11490 .block_erase = erase_chip_block_jedec,
11491 }
11492 },
Sean Nelson35727f72010-01-28 23:55:12 +000011493 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011495 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011496 },
11497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011498 {
11499 .vendor = "SST",
11500 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011501 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011502 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011503 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011504 .total_size = 512,
11505 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011506 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011507 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011508 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011509 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011510 .block_erasers =
11511 {
11512 {
11513 .eraseblocks = { {4 * 1024, 128} },
11514 .block_erase = erase_sector_jedec,
11515 }, {
11516 .eraseblocks = { {512 * 1024, 1} },
11517 .block_erase = erase_chip_block_jedec,
11518 }
11519 },
Sean Nelson35727f72010-01-28 23:55:12 +000011520 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011522 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011523 },
11524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011525 {
11526 .vendor = "SST",
11527 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011528 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011529 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011530 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011531 .total_size = 64,
11532 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011533 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000011534 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011535 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011536 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011537 .block_erasers =
11538 {
11539 {
11540 .eraseblocks = { {4 * 1024, 16} },
11541 .block_erase = erase_sector_jedec,
11542 }, {
11543 .eraseblocks = { {64 * 1024, 1} },
11544 .block_erase = erase_chip_block_jedec,
11545 }
11546 },
Sean Nelson35727f72010-01-28 23:55:12 +000011547 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011550 },
11551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011552 {
11553 .vendor = "SST",
11554 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011555 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011556 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011557 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011558 .total_size = 128,
11559 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011560 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000011561 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011562 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011563 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011564 .block_erasers =
11565 {
11566 {
11567 .eraseblocks = { {4 * 1024, 32} },
11568 .block_erase = erase_sector_jedec,
11569 }, {
11570 .eraseblocks = { {128 * 1024, 1} },
11571 .block_erase = erase_chip_block_jedec,
11572 }
11573 },
Sean Nelson35727f72010-01-28 23:55:12 +000011574 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011576 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011577 },
11578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011579 {
11580 .vendor = "SST",
11581 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011582 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011583 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011584 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011585 .total_size = 256,
11586 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011587 .feature_bits = FEATURE_EITHER_RESET,
11588 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011589 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011590 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011591 .block_erasers =
11592 {
11593 {
11594 .eraseblocks = { {4 * 1024, 64} },
11595 .block_erase = erase_sector_jedec,
11596 }, {
11597 .eraseblocks = { {256 * 1024, 1} },
11598 .block_erase = erase_chip_block_jedec,
11599 }
11600 },
Sean Nelson35727f72010-01-28 23:55:12 +000011601 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011603 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011604 },
11605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011606 {
11607 .vendor = "SST",
11608 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011609 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011610 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011611 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011612 .total_size = 512,
11613 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011614 .feature_bits = FEATURE_EITHER_RESET,
11615 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011616 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011617 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011618 .block_erasers =
11619 {
11620 {
11621 .eraseblocks = { {4 * 1024, 128} },
11622 .block_erase = erase_sector_jedec,
11623 }, {
11624 .eraseblocks = { {512 * 1024, 1} },
11625 .block_erase = erase_chip_block_jedec,
11626 }
11627 },
Sean Nelson35727f72010-01-28 23:55:12 +000011628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011630 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000011631 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011633 {
11634 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000011635 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011636 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011637 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011638 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000011639 .total_size = 1024,
11640 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011641 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000011642 .tested = TEST_UNTESTED,
11643 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011644 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011645 .block_erasers =
11646 {
11647 {
11648 .eraseblocks = { {4 * 1024, 256} },
11649 .block_erase = erase_sector_jedec,
11650 }, {
11651 .eraseblocks = { {64 * 1024, 16} },
11652 .block_erase = erase_block_jedec,
11653 }, {
11654 .eraseblocks = { {1024 * 1024, 1} },
11655 .block_erase = erase_chip_block_jedec,
11656 }
11657 },
Sean Nelson35727f72010-01-28 23:55:12 +000011658 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011660 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000011661 },
11662
11663 {
11664 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011665 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011666 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011667 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011668 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011669 .total_size = 256,
11670 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011671 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011672 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011673 .probe = probe_jedec,
11674 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011675 .block_erasers =
11676 {
11677 {
11678 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011679 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011680 }, {
11681 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011682 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011683 }, {
11684 .eraseblocks = { {256 * 1024, 1} },
11685 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11686 }
11687 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011688 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011689 .unlock = unlock_sst_fwhub,
11690 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011691 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011692 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011693 },
11694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011695 {
11696 .vendor = "SST",
11697 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011698 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011699 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011700 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011701 .total_size = 384,
11702 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011703 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011704 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011705 .probe = probe_jedec,
11706 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011707 .block_erasers =
11708 {
11709 {
11710 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011711 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011712 }, {
11713 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011714 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011715 }, {
11716 .eraseblocks = { {384 * 1024, 1} },
11717 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11718 }
11719 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011720 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011721 .unlock = unlock_sst_fwhub,
11722 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011724 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011725 },
11726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011727 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011728 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11729 * and is only honored for 64k block erase, but not 4k sector erase.
11730 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 .vendor = "SST",
11732 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011733 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011734 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011735 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011736 .total_size = 512,
11737 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011738 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011739 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011740 .probe = probe_jedec,
11741 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011742 .block_erasers =
11743 {
11744 {
11745 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011746 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011747 }, {
11748 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011749 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011750 }, {
11751 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011752 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011753 },
11754 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011755 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011756 .unlock = unlock_sst_fwhub,
11757 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011759 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011760 },
11761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011762 {
11763 .vendor = "SST",
11764 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011765 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011766 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011767 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011768 .total_size = 512,
11769 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011770 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011771 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011772 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011773 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011774 .block_erasers =
11775 {
11776 {
11777 .eraseblocks = { {4 * 1024, 128} },
11778 .block_erase = erase_sector_49lfxxxc,
11779 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011780 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011781 {64 * 1024, 7},
11782 {32 * 1024, 1},
11783 {8 * 1024, 2},
11784 {16 * 1024, 1},
11785 },
Sean Nelson69e58112010-03-23 17:10:28 +000011786 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011787 }
11788 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011789 .printlock = printlock_regspace2_block_eraser_1,
11790 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011791 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011793 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011794 },
11795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011796 {
11797 .vendor = "SST",
11798 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011799 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011800 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011801 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011802 .total_size = 1024,
11803 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011804 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011805 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011806 .probe = probe_jedec,
11807 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011808 .block_erasers =
11809 {
11810 {
11811 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011812 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011813 }, {
11814 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011815 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011816 }, {
11817 .eraseblocks = { {1024 * 1024, 1} },
11818 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11819 }
11820 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011821 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011822 .unlock = unlock_sst_fwhub,
11823 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011824 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011825 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011826 },
11827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011828 {
11829 .vendor = "SST",
11830 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011831 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011832 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011833 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011834 .total_size = 1024,
11835 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011836 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011837 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011838 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011839 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011840 .block_erasers =
11841 {
11842 {
11843 .eraseblocks = { {4 * 1024, 256} },
11844 .block_erase = erase_sector_49lfxxxc,
11845 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011846 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011847 {64 * 1024, 15},
11848 {32 * 1024, 1},
11849 {8 * 1024, 2},
11850 {16 * 1024, 1},
11851 },
Sean Nelson69e58112010-03-23 17:10:28 +000011852 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011853 }
11854 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011855 .printlock = printlock_regspace2_block_eraser_1,
11856 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011857 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011859 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011860 },
11861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011862 {
11863 .vendor = "SST",
11864 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011865 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011866 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011867 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011868 .total_size = 2048,
11869 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011870 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011871 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011872 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011873 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011874 .block_erasers =
11875 {
11876 {
11877 .eraseblocks = { {4 * 1024, 512} },
11878 .block_erase = erase_sector_49lfxxxc,
11879 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011880 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011881 {64 * 1024, 31},
11882 {32 * 1024, 1},
11883 {8 * 1024, 2},
11884 {16 * 1024, 1},
11885 },
Sean Nelson69e58112010-03-23 17:10:28 +000011886 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011887 }
11888 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011889 .printlock = printlock_regspace2_block_eraser_1,
11890 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011891 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011893 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011894 },
11895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011896 {
11897 .vendor = "SST",
11898 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011899 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011900 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011901 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011902 .total_size = 256,
11903 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011904 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011905 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011906 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011907 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011908 .block_erasers =
11909 {
11910 {
11911 .eraseblocks = { {4 * 1024, 64} },
11912 .block_erase = erase_sector_jedec,
11913 }, {
11914 .eraseblocks = { {16 * 1024, 16} },
11915 .block_erase = erase_block_jedec,
11916 }, {
11917 .eraseblocks = { {256 * 1024, 1} },
11918 .block_erase = NULL,
11919 }
11920 },
Sean Nelson35727f72010-01-28 23:55:12 +000011921 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011923 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011924 },
11925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011926 {
11927 .vendor = "SST",
11928 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011929 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011930 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011931 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011932 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011933 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011934 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011935 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011936 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011937 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011938 .block_erasers =
11939 {
11940 {
11941 .eraseblocks = { {4 * 1024, 64} },
11942 .block_erase = erase_sector_jedec,
11943 }, {
11944 .eraseblocks = { {16 * 1024, 16} },
11945 .block_erase = erase_block_jedec,
11946 }, {
11947 .eraseblocks = { {256 * 1024, 1} },
11948 .block_erase = NULL,
11949 }
11950 },
Sean Nelson35727f72010-01-28 23:55:12 +000011951 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011953 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011954 },
11955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011956 {
11957 .vendor = "SST",
11958 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011959 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011960 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011961 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011962 .total_size = 512,
11963 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011964 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011965 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011966 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011967 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011968 .block_erasers =
11969 {
11970 {
11971 .eraseblocks = { {4 * 1024, 128} },
11972 .block_erase = erase_sector_jedec,
11973 }, {
11974 .eraseblocks = { {64 * 1024, 8} },
11975 .block_erase = erase_block_jedec,
11976 }, {
11977 .eraseblocks = { {512 * 1024, 1} },
11978 .block_erase = NULL,
11979 }
11980 },
Sean Nelson35727f72010-01-28 23:55:12 +000011981 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011982 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011983 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011984 },
11985
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011986 {
11987 .vendor = "SST",
11988 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011989 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011990 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011991 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011992 .total_size = 512,
11993 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011994 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011995 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011996 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011997 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011998 .block_erasers =
11999 {
12000 {
12001 .eraseblocks = { {4 * 1024, 128} },
12002 .block_erase = erase_sector_jedec,
12003 }, {
12004 .eraseblocks = { {64 * 1024, 8} },
12005 .block_erase = erase_block_jedec,
12006 }, {
12007 .eraseblocks = { {512 * 1024, 1} },
12008 .block_erase = NULL,
12009 }
12010 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012011 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000012012 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012013 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012014 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012015 },
12016
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012017 {
12018 .vendor = "SST",
12019 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012020 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012021 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012022 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012023 .total_size = 1024,
12024 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012025 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000012026 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012027 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012028 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012029 .block_erasers =
12030 {
12031 {
12032 .eraseblocks = { {4 * 1024, 256} },
12033 .block_erase = erase_sector_jedec,
12034 }, {
12035 .eraseblocks = { {64 * 1024, 16} },
12036 .block_erase = erase_block_jedec,
12037 }, {
12038 .eraseblocks = { {1024 * 1024, 1} },
12039 .block_erase = NULL,
12040 }
12041 },
Sean Nelson35727f72010-01-28 23:55:12 +000012042 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012044 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012045 },
12046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012047 {
12048 .vendor = "SST",
12049 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012050 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012051 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012052 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012053 .total_size = 2048,
12054 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012055 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012056 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012057 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012058 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012059 .block_erasers =
12060 {
12061 {
12062 .eraseblocks = { {4 * 1024, 512} },
12063 .block_erase = erase_sector_49lfxxxc,
12064 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012065 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012066 {64 * 1024, 31},
12067 {32 * 1024, 1},
12068 {8 * 1024, 2},
12069 {16 * 1024, 1},
12070 },
Sean Nelson69e58112010-03-23 17:10:28 +000012071 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012072 }
12073 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012074 .printlock = printlock_regspace2_block_eraser_1,
12075 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012076 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012077 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012078 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012079 },
12080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012081 {
12082 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012083 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012084 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012085 .manufacture_id = ST_ID,
12086 .model_id = ST_M29F002B,
12087 .total_size = 256,
12088 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012089 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012090 .tested = TEST_UNTESTED,
12091 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012092 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012093 .block_erasers =
12094 {
12095 {
12096 .eraseblocks = {
12097 {16 * 1024, 1},
12098 {8 * 1024, 2},
12099 {32 * 1024, 1},
12100 {64 * 1024, 3},
12101 },
12102 .block_erase = erase_sector_jedec,
12103 }, {
12104 .eraseblocks = { {256 * 1024, 1} },
12105 .block_erase = erase_chip_block_jedec,
12106 }
12107 },
Sean Nelson35727f72010-01-28 23:55:12 +000012108 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012109 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012110 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012111 },
12112
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012113 {
12114 .vendor = "ST",
12115 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012116 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012117 .manufacture_id = ST_ID,
12118 .model_id = ST_M29F002T,
12119 .total_size = 256,
12120 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012121 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012122 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012123 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012124 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012125 .block_erasers =
12126 {
12127 {
12128 .eraseblocks = {
12129 {64 * 1024, 3},
12130 {32 * 1024, 1},
12131 {8 * 1024, 2},
12132 {16 * 1024, 1},
12133 },
12134 .block_erase = erase_sector_jedec,
12135 }, {
12136 .eraseblocks = { {256 * 1024, 1} },
12137 .block_erase = erase_chip_block_jedec,
12138 }
12139 },
Sean Nelson35727f72010-01-28 23:55:12 +000012140 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012141 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012142 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012143 },
12144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012145 {
12146 .vendor = "ST",
12147 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012148 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012149 .manufacture_id = ST_ID,
12150 .model_id = ST_M29F040B,
12151 .total_size = 512,
12152 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012153 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12154 .tested = TEST_UNTESTED,
12155 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000012156 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000012157 .block_erasers =
12158 {
12159 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012160 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000012161 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012162 }, {
12163 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012164 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012165 }
12166 },
Sean Nelson35727f72010-01-28 23:55:12 +000012167 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012168 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012169 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012170 },
12171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012172 {
Sean Nelson35727f72010-01-28 23:55:12 +000012173 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012174 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012175 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012176 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012177 .manufacture_id = ST_ID,
12178 .model_id = ST_M29F400BB,
12179 .total_size = 512,
12180 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012181 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012182 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012183 .probe = probe_jedec,
12184 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012185 .block_erasers =
12186 {
12187 {
12188 .eraseblocks = {
12189 {16 * 1024, 1},
12190 {8 * 1024, 2},
12191 {32 * 1024, 1},
12192 {64 * 1024, 7},
12193 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012194 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012195 }, {
12196 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012197 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012198 }
12199 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012200 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012202 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012203 },
12204 {
12205 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
12206 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012207 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012208 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012209 .manufacture_id = ST_ID,
12210 .model_id = ST_M29F400BT,
12211 .total_size = 512,
12212 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012213 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012214 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012215 .probe = probe_jedec,
12216 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000012217 .block_erasers =
12218 {
12219 {
12220 .eraseblocks = {
12221 {64 * 1024, 7},
12222 {32 * 1024, 1},
12223 {8 * 1024, 2},
12224 {16 * 1024, 1},
12225 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012226 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012227 }, {
12228 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012229 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012230 }
12231 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012232 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012233 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012234 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012235 },
12236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012237 {
12238 .vendor = "ST",
12239 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012240 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012241 .manufacture_id = ST_ID,
12242 .model_id = ST_M29W010B,
12243 .total_size = 128,
12244 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012245 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012246 .tested = TEST_UNTESTED,
12247 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012248 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012249 .block_erasers =
12250 {
12251 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012252 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012253 .block_erase = erase_sector_jedec,
12254 }, {
12255 .eraseblocks = { {128 * 1024, 1} },
12256 .block_erase = erase_chip_block_jedec,
12257 }
12258 },
Sean Nelson35727f72010-01-28 23:55:12 +000012259 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012260 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012261 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012262 },
12263
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012264 {
12265 .vendor = "ST",
12266 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012267 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012268 .manufacture_id = ST_ID,
12269 .model_id = ST_M29W040B,
12270 .total_size = 512,
12271 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012272 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012273 .tested = TEST_UNTESTED,
12274 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012275 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012276 .block_erasers =
12277 {
12278 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012279 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012280 .block_erase = erase_sector_jedec,
12281 }, {
12282 .eraseblocks = { {512 * 1024, 1} },
12283 .block_erase = erase_chip_block_jedec,
12284 }
12285 },
Sean Nelson35727f72010-01-28 23:55:12 +000012286 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012288 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012289 },
12290
Stefan Taunereb582572012-09-21 12:52:50 +000012291 {
12292 .vendor = "ST",
12293 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012294 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000012295 .manufacture_id = ST_ID,
12296 .model_id = ST_M29W512B,
12297 .total_size = 64,
12298 .page_size = 64 * 1024,
12299 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012300 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000012301 .probe = probe_jedec,
12302 .probe_timing = TIMING_ZERO,
12303 .block_erasers =
12304 {
12305 {
12306 .eraseblocks = { {64 * 1024, 1} },
12307 .block_erase = erase_chip_block_jedec,
12308 }
12309 },
12310 .write = write_jedec_1,
12311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012312 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000012313 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000012314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012315 {
12316 .vendor = "ST",
12317 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012318 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012319 .manufacture_id = ST_ID,
12320 .model_id = ST_M50FLW040A,
12321 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012322 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012323 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012324 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012325 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012326 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012327 .block_erasers =
12328 {
12329 {
Sean Nelson329bde72010-01-19 16:39:19 +000012330 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012331 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012332 {64 * 1024, 5}, /* block */
12333 {4 * 1024, 16}, /* sector */
12334 {4 * 1024, 16}, /* sector */
12335 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012336 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012337 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012338 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012339 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012340 }
12341 },
Sean Nelson28accc22010-03-19 18:47:06 +000012342 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012343 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012345 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012346 },
12347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012348 {
12349 .vendor = "ST",
12350 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012351 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012352 .manufacture_id = ST_ID,
12353 .model_id = ST_M50FLW040B,
12354 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012355 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012356 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012357 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012358 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012359 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012360 .block_erasers =
12361 {
12362 {
Sean Nelson329bde72010-01-19 16:39:19 +000012363 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012364 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012365 {4 * 1024, 16}, /* sector */
12366 {64 * 1024, 5}, /* block */
12367 {4 * 1024, 16}, /* sector */
12368 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012369 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012370 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012371 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012372 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012373 }
12374 },
Sean Nelson28accc22010-03-19 18:47:06 +000012375 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012376 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012377 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012378 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012379 },
12380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012381 {
12382 .vendor = "ST",
12383 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012384 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012385 .manufacture_id = ST_ID,
12386 .model_id = ST_M50FLW080A,
12387 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012388 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012389 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012390 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012391 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012392 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012393 .block_erasers =
12394 {
12395 {
Sean Nelson329bde72010-01-19 16:39:19 +000012396 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012397 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012398 {64 * 1024, 13}, /* block */
12399 {4 * 1024, 16}, /* sector */
12400 {4 * 1024, 16}, /* sector */
12401 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012402 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012403 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012404 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012405 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012406 }
12407 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012408 .printlock = printlock_regspace2_block_eraser_0,
12409 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012410 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012412 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012413 },
12414
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012415 {
12416 .vendor = "ST",
12417 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012418 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012419 .manufacture_id = ST_ID,
12420 .model_id = ST_M50FLW080B,
12421 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012422 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012423 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012424 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012425 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012426 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012427 .block_erasers =
12428 {
12429 {
Sean Nelson329bde72010-01-19 16:39:19 +000012430 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012431 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012432 {4 * 1024, 16}, /* sector */
12433 {64 * 1024, 13}, /* block */
12434 {4 * 1024, 16}, /* sector */
12435 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012436 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012437 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012438 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012439 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012440 }
12441 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012442 .printlock = printlock_regspace2_block_eraser_0,
12443 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012444 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012446 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012447 },
12448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012449 {
12450 .vendor = "ST",
12451 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012452 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012453 .manufacture_id = ST_ID,
12454 .model_id = ST_M50FW002,
12455 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000012456 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012457 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012458 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012459 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012460 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012461 .block_erasers =
12462 {
12463 {
12464 .eraseblocks = {
12465 {64 * 1024, 3},
12466 {32 * 1024, 1},
12467 {8 * 1024, 2},
12468 {16 * 1024, 1},
12469 },
Sean Nelson28accc22010-03-19 18:47:06 +000012470 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012471 }, {
12472 .eraseblocks = { {256 * 1024, 1}, },
12473 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000012474 }
12475 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012476 .printlock = printlock_regspace2_block_eraser_0,
12477 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012478 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012480 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012481 },
12482
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012483 {
12484 .vendor = "ST",
12485 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012486 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012487 .manufacture_id = ST_ID,
12488 .model_id = ST_M50FW016,
12489 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012490 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012491 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012492 .tested = TEST_UNTESTED,
12493 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012494 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012495 .block_erasers =
12496 {
12497 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012498 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000012499 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012500 }
12501 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012502 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012503 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012505 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012506 },
12507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012508 {
12509 .vendor = "ST",
12510 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012511 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012512 .manufacture_id = ST_ID,
12513 .model_id = ST_M50FW040,
12514 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012515 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012516 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000012517 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012518 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012519 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012520 .block_erasers =
12521 {
12522 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012523 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012524 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012525 }
12526 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012527 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012528 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012530 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012531 },
12532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012533 {
12534 .vendor = "ST",
12535 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012536 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012537 .manufacture_id = ST_ID,
12538 .model_id = ST_M50FW080,
12539 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012540 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012541 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012542 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012543 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012544 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012545 .block_erasers =
12546 {
12547 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012548 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012549 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012550 }
12551 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012552 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012553 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012555 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012556 },
12557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012558 {
12559 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012560 .name = "M50LPW080",
12561 .bustype = BUS_LPC, /* A/A Mux */
12562 .manufacture_id = ST_ID,
12563 .model_id = ST_M50LPW080,
12564 .total_size = 1024,
12565 .page_size = 0,
12566 .feature_bits = FEATURE_REGISTERMAP,
12567 .tested = TEST_UNTESTED,
12568 .probe = probe_82802ab,
12569 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12570 .block_erasers =
12571 {
12572 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012573 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012574 .block_erase = erase_block_82802ab,
12575 }
12576 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012577 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012578 .write = write_82802ab,
12579 .read = read_memmapped,
12580 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
12581 },
12582
12583 {
12584 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012585 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012586 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012587 .manufacture_id = ST_ID,
12588 .model_id = ST_M50LPW116,
12589 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012590 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012591 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012592 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012593 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000012594 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012595 .block_erasers =
12596 {
12597 {
12598 .eraseblocks = {
12599 {4 * 1024, 16},
12600 {64 * 1024, 30},
12601 {32 * 1024, 1},
12602 {8 * 1024, 2},
12603 {16 * 1024, 1},
12604 },
Sean Nelson28accc22010-03-19 18:47:06 +000012605 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012606 }
12607 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012608 .printlock = printlock_regspace2_block_eraser_0,
12609 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012610 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012612 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012613 },
12614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012615 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012616 .vendor = "SyncMOS/MoselVitelic",
12617 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012618 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012619 .manufacture_id = SYNCMOS_MVC_ID,
12620 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012621 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012622 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012623 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012624 .tested = TEST_UNTESTED,
12625 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012627 .block_erasers =
12628 {
12629 {
12630 .eraseblocks = { {512, 256} },
12631 .block_erase = erase_sector_jedec,
12632 }, {
12633 .eraseblocks = { {128 * 1024, 1} },
12634 .block_erase = erase_chip_block_jedec,
12635 },
12636 },
Sean Nelson35727f72010-01-28 23:55:12 +000012637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012639 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012640 },
12641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012642 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012643 .vendor = "SyncMOS/MoselVitelic",
12644 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012645 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012646 .manufacture_id = SYNCMOS_MVC_ID,
12647 .model_id = SM_MVC_29C51001T,
12648 .total_size = 128,
12649 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012650 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012651 .tested = TEST_UNTESTED,
12652 .probe = probe_jedec,
12653 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12654 .block_erasers =
12655 {
12656 {
12657 .eraseblocks = { {512, 256} },
12658 .block_erase = erase_sector_jedec,
12659 }, {
12660 .eraseblocks = { {128 * 1024, 1} },
12661 .block_erase = erase_chip_block_jedec,
12662 },
12663 },
12664 .write = write_jedec_1,
12665 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012666 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012667 },
12668
12669 {
12670 .vendor = "SyncMOS/MoselVitelic",
12671 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012672 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012673 .manufacture_id = SYNCMOS_MVC_ID,
12674 .model_id = SM_MVC_29C51002B,
12675 .total_size = 256,
12676 .page_size = 512,
12677 .feature_bits = FEATURE_EITHER_RESET,
12678 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012679 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012680 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012681 .block_erasers =
12682 {
12683 {
12684 .eraseblocks = { {512, 512} },
12685 .block_erase = erase_sector_jedec,
12686 }, {
12687 .eraseblocks = { {256 * 1024, 1} },
12688 .block_erase = erase_chip_block_jedec,
12689 },
12690 },
Sean Nelson35727f72010-01-28 23:55:12 +000012691 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012692 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012693 },
12694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012695 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012696 .vendor = "SyncMOS/MoselVitelic",
12697 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012698 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012699 .manufacture_id = SYNCMOS_MVC_ID,
12700 .model_id = SM_MVC_29C51002T,
12701 .total_size = 256,
12702 .page_size = 512,
12703 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012704 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012705 .probe = probe_jedec,
12706 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12707 .block_erasers =
12708 {
12709 {
12710 .eraseblocks = { {512, 512} },
12711 .block_erase = erase_sector_jedec,
12712 }, {
12713 .eraseblocks = { {256 * 1024, 1} },
12714 .block_erase = erase_chip_block_jedec,
12715 },
12716 },
12717 .write = write_jedec_1,
12718 .read = read_memmapped,
12719 },
12720
12721 {
12722 .vendor = "SyncMOS/MoselVitelic",
12723 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012724 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012725 .manufacture_id = SYNCMOS_MVC_ID,
12726 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012727 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012728 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012729 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012730 .tested = TEST_UNTESTED,
12731 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012732 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012733 .block_erasers =
12734 {
12735 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012736 .eraseblocks = { {1024, 512} },
12737 .block_erase = erase_sector_jedec,
12738 }, {
12739 .eraseblocks = { {512 * 1024, 1} },
12740 .block_erase = erase_chip_block_jedec,
12741 },
12742 },
12743 .write = write_jedec_1,
12744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012745 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012746 },
12747
12748 {
12749 .vendor = "SyncMOS/MoselVitelic",
12750 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012751 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012752 .manufacture_id = SYNCMOS_MVC_ID,
12753 .model_id = SM_MVC_29C51004T,
12754 .total_size = 512,
12755 .page_size = 1024,
12756 .feature_bits = FEATURE_EITHER_RESET,
12757 .tested = TEST_UNTESTED,
12758 .probe = probe_jedec,
12759 .probe_timing = TIMING_ZERO,
12760 .block_erasers =
12761 {
12762 {
12763 .eraseblocks = { {1024, 512} },
12764 .block_erase = erase_sector_jedec,
12765 }, {
12766 .eraseblocks = { {512 * 1024, 1} },
12767 .block_erase = erase_chip_block_jedec,
12768 },
12769 },
12770 .write = write_jedec_1,
12771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012772 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012773 },
12774
12775 {
12776 .vendor = "SyncMOS/MoselVitelic",
12777 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012778 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012779 .manufacture_id = SYNCMOS_MVC_ID,
12780 .model_id = SM_MVC_29C31004B,
12781 .total_size = 512,
12782 .page_size = 1024,
12783 .feature_bits = FEATURE_EITHER_RESET,
12784 .tested = TEST_UNTESTED,
12785 .probe = probe_jedec,
12786 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12787 .block_erasers =
12788 {
12789 {
12790 .eraseblocks = { {1024, 512} },
12791 .block_erase = erase_sector_jedec,
12792 }, {
12793 .eraseblocks = { {512 * 1024, 1} },
12794 .block_erase = erase_chip_block_jedec,
12795 },
12796 },
12797 .write = write_jedec_1,
12798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012799 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012800 },
12801
12802 {
12803 .vendor = "SyncMOS/MoselVitelic",
12804 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012805 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012806 .manufacture_id = SYNCMOS_MVC_ID,
12807 .model_id = SM_MVC_29C31004T,
12808 .total_size = 512,
12809 .page_size = 1024,
12810 .feature_bits = FEATURE_EITHER_RESET,
12811 .tested = TEST_UNTESTED,
12812 .probe = probe_jedec,
12813 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12814 .block_erasers =
12815 {
12816 {
12817 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012818 .block_erase = erase_sector_jedec,
12819 }, {
12820 .eraseblocks = { {512 * 1024, 1} },
12821 .block_erase = erase_chip_block_jedec,
12822 },
12823 },
Sean Nelson35727f72010-01-28 23:55:12 +000012824 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012826 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012827 },
12828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012829 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012830 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012831 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012832 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012833 .manufacture_id = TI_OLD_ID,
12834 .model_id = TI_TMS29F002RB,
12835 .total_size = 256,
12836 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012837 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012838 .tested = TEST_UNTESTED,
12839 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012840 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012841 .block_erasers =
12842 {
12843 {
12844 .eraseblocks = {
12845 {16 * 1024, 1},
12846 {8 * 1024, 2},
12847 {32 * 1024, 1},
12848 {64 * 1024, 3},
12849 },
12850 .block_erase = erase_sector_jedec,
12851 }, {
12852 .eraseblocks = { {256 * 1024, 1} },
12853 .block_erase = erase_chip_block_jedec,
12854 },
12855 },
Sean Nelson35727f72010-01-28 23:55:12 +000012856 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012857 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012858 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012859 },
12860
12861 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012862 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012863 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012864 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012865 .manufacture_id = TI_OLD_ID,
12866 .model_id = TI_TMS29F002RT,
12867 .total_size = 256,
12868 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012869 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012870 .tested = TEST_UNTESTED,
12871 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012872 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012873 .block_erasers =
12874 {
12875 {
12876 .eraseblocks = {
12877 {64 * 1024, 3},
12878 {32 * 1024, 1},
12879 {8 * 1024, 2},
12880 {16 * 1024, 1},
12881 },
12882 .block_erase = erase_sector_jedec,
12883 }, {
12884 .eraseblocks = { {256 * 1024, 1} },
12885 .block_erase = erase_chip_block_jedec,
12886 },
12887 },
Sean Nelson35727f72010-01-28 23:55:12 +000012888 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012889 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012890 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012891 },
12892
12893 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012894 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012895 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012896 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012897 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012898 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012899 .total_size = 1024,
12900 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012901 /* supports SFDP */
12902 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012904 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012905 .probe = probe_spi_rdid,
12906 .probe_timing = TIMING_ZERO,
12907 .block_erasers =
12908 {
12909 {
12910 .eraseblocks = { {4 * 1024, 256} },
12911 .block_erase = spi_block_erase_20,
12912 }, {
12913 .eraseblocks = { {32 * 1024, 32} },
12914 .block_erase = spi_block_erase_52,
12915 }, {
12916 .eraseblocks = { {64 * 1024, 16} },
12917 .block_erase = spi_block_erase_d8,
12918 }, {
12919 .eraseblocks = { {1024 * 1024, 1} },
12920 .block_erase = spi_block_erase_60,
12921 }, {
12922 .eraseblocks = { {1024 * 1024, 1} },
12923 .block_erase = spi_block_erase_c7,
12924 }
12925 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012926 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012927 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012928 .write = spi_chip_write_256,
12929 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012930 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012931 },
12932
12933 {
12934 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012935 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012936 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012937 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012938 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012939 .total_size = 2048,
12940 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012941 /* supports SFDP */
12942 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012943 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012944 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012945 .probe = probe_spi_rdid,
12946 .probe_timing = TIMING_ZERO,
12947 .block_erasers =
12948 {
12949 {
12950 .eraseblocks = { {4 * 1024, 512} },
12951 .block_erase = spi_block_erase_20,
12952 }, {
12953 .eraseblocks = { {32 * 1024, 64} },
12954 .block_erase = spi_block_erase_52,
12955 }, {
12956 .eraseblocks = { {64 * 1024, 32} },
12957 .block_erase = spi_block_erase_d8,
12958 }, {
12959 .eraseblocks = { {2 * 1024 * 1024, 1} },
12960 .block_erase = spi_block_erase_60,
12961 }, {
12962 .eraseblocks = { {2 * 1024 * 1024, 1} },
12963 .block_erase = spi_block_erase_c7,
12964 }
12965 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012966 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012967 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012968 .write = spi_chip_write_256,
12969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012970 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012971 },
12972
12973 {
12974 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012975 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012976 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012977 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012978 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012979 .total_size = 4096,
12980 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012981 /* supports SFDP */
12982 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012983 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012984 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012985 .probe = probe_spi_rdid,
12986 .probe_timing = TIMING_ZERO,
12987 .block_erasers =
12988 {
12989 {
12990 .eraseblocks = { {4 * 1024, 1024} },
12991 .block_erase = spi_block_erase_20,
12992 }, {
12993 .eraseblocks = { {32 * 1024, 128} },
12994 .block_erase = spi_block_erase_52,
12995 }, {
12996 .eraseblocks = { {64 * 1024, 64} },
12997 .block_erase = spi_block_erase_d8,
12998 }, {
12999 .eraseblocks = { {4 * 1024 * 1024, 1} },
13000 .block_erase = spi_block_erase_60,
13001 }, {
13002 .eraseblocks = { {4 * 1024 * 1024, 1} },
13003 .block_erase = spi_block_erase_c7,
13004 }
13005 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013006 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013007 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013008 .write = spi_chip_write_256,
13009 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013010 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013011 },
13012
13013 {
13014 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013015 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013016 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000013017 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013018 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000013019 .total_size = 8192,
13020 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013021 /* supports SFDP */
13022 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013023 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013024 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000013025 .probe = probe_spi_rdid,
13026 .probe_timing = TIMING_ZERO,
13027 .block_erasers =
13028 {
13029 {
13030 .eraseblocks = { {4 * 1024, 2048} },
13031 .block_erase = spi_block_erase_20,
13032 }, {
13033 .eraseblocks = { {32 * 1024, 256} },
13034 .block_erase = spi_block_erase_52,
13035 }, {
13036 .eraseblocks = { {64 * 1024, 128} },
13037 .block_erase = spi_block_erase_d8,
13038 }, {
13039 .eraseblocks = { {8 * 1024 * 1024, 1} },
13040 .block_erase = spi_block_erase_60,
13041 }, {
13042 .eraseblocks = { {8 * 1024 * 1024, 1} },
13043 .block_erase = spi_block_erase_c7,
13044 }
13045 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013046 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013047 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000013048 .write = spi_chip_write_256,
13049 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013050 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000013051 },
13052
13053 {
13054 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013055 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013056 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013057 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013058 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013059 .total_size = 16384,
13060 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013061 /* supports SFDP */
13062 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013063 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013064 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013065 .probe = probe_spi_rdid,
13066 .probe_timing = TIMING_ZERO,
13067 .block_erasers =
13068 {
13069 {
13070 .eraseblocks = { {4 * 1024, 4096} },
13071 .block_erase = spi_block_erase_20,
13072 }, {
13073 .eraseblocks = { {32 * 1024, 512} },
13074 .block_erase = spi_block_erase_52,
13075 }, {
13076 .eraseblocks = { {64 * 1024, 256} },
13077 .block_erase = spi_block_erase_d8,
13078 }, {
13079 .eraseblocks = { {16 * 1024 * 1024, 1} },
13080 .block_erase = spi_block_erase_60,
13081 }, {
13082 .eraseblocks = { {16 * 1024 * 1024, 1} },
13083 .block_erase = spi_block_erase_c7,
13084 }
13085 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013086 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013087 .unlock = spi_disable_blockprotect,
13088 .write = spi_chip_write_256,
13089 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013090 .voltage = {2700, 3600},
13091 },
13092
13093 {
13094 .vendor = "Winbond",
13095 .name = "W25Q20.W",
13096 .bustype = BUS_SPI,
13097 .manufacture_id = WINBOND_NEX_ID,
13098 .model_id = WINBOND_NEX_W25Q20_W,
13099 .total_size = 256,
13100 .page_size = 256,
13101 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13102 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13103 .tested = TEST_UNTESTED,
13104 .probe = probe_spi_rdid,
13105 .probe_timing = TIMING_ZERO,
13106 .block_erasers =
13107 {
13108 {
13109 .eraseblocks = { {4 * 1024, 64} },
13110 .block_erase = spi_block_erase_20,
13111 }, {
13112 .eraseblocks = { {32 * 1024, 8} },
13113 .block_erase = spi_block_erase_52,
13114 }, {
13115 .eraseblocks = { {64 * 1024, 4} },
13116 .block_erase = spi_block_erase_d8,
13117 }, {
13118 .eraseblocks = { {256 * 1024, 1} },
13119 .block_erase = spi_block_erase_60,
13120 }, {
13121 .eraseblocks = { {256 * 1024, 1} },
13122 .block_erase = spi_block_erase_c7,
13123 }
13124 },
13125 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13126 .unlock = spi_disable_blockprotect,
13127 .write = spi_chip_write_256,
13128 .read = spi_chip_read,
13129 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13130 },
13131
13132 {
13133 .vendor = "Winbond",
13134 .name = "W25Q40.W",
13135 .bustype = BUS_SPI,
13136 .manufacture_id = WINBOND_NEX_ID,
13137 .model_id = WINBOND_NEX_W25Q40_W,
13138 .total_size = 512,
13139 .page_size = 256,
13140 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13141 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13142 .tested = TEST_UNTESTED,
13143 .probe = probe_spi_rdid,
13144 .probe_timing = TIMING_ZERO,
13145 .block_erasers =
13146 {
13147 {
13148 .eraseblocks = { {4 * 1024, 128} },
13149 .block_erase = spi_block_erase_20,
13150 }, {
13151 .eraseblocks = { {32 * 1024, 16} },
13152 .block_erase = spi_block_erase_52,
13153 }, {
13154 .eraseblocks = { {64 * 1024, 8} },
13155 .block_erase = spi_block_erase_d8,
13156 }, {
13157 .eraseblocks = { {512 * 1024, 1} },
13158 .block_erase = spi_block_erase_60,
13159 }, {
13160 .eraseblocks = { {512 * 1024, 1} },
13161 .block_erase = spi_block_erase_c7,
13162 }
13163 },
13164 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13165 .unlock = spi_disable_blockprotect,
13166 .write = spi_chip_write_256,
13167 .read = spi_chip_read,
13168 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13169 },
13170
13171 {
13172 .vendor = "Winbond",
13173 .name = "W25Q80.W",
13174 .bustype = BUS_SPI,
13175 .manufacture_id = WINBOND_NEX_ID,
13176 .model_id = WINBOND_NEX_W25Q80_W,
13177 .total_size = 1024,
13178 .page_size = 256,
13179 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13181 .tested = TEST_UNTESTED,
13182 .probe = probe_spi_rdid,
13183 .probe_timing = TIMING_ZERO,
13184 .block_erasers =
13185 {
13186 {
13187 .eraseblocks = { {4 * 1024, 256} },
13188 .block_erase = spi_block_erase_20,
13189 }, {
13190 .eraseblocks = { {32 * 1024, 32} },
13191 .block_erase = spi_block_erase_52,
13192 }, {
13193 .eraseblocks = { {64 * 1024, 16} },
13194 .block_erase = spi_block_erase_d8,
13195 }, {
13196 .eraseblocks = { {1 * 1024 * 1024, 1} },
13197 .block_erase = spi_block_erase_60,
13198 }, {
13199 .eraseblocks = { {1 * 1024 * 1024, 1} },
13200 .block_erase = spi_block_erase_c7,
13201 }
13202 },
13203 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13204 .unlock = spi_disable_blockprotect,
13205 .write = spi_chip_write_256,
13206 .read = spi_chip_read,
13207 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13208 },
13209
13210 {
13211 .vendor = "Winbond",
13212 .name = "W25Q16.W",
13213 .bustype = BUS_SPI,
13214 .manufacture_id = WINBOND_NEX_ID,
13215 .model_id = WINBOND_NEX_W25Q16_W,
13216 .total_size = 2048,
13217 .page_size = 256,
13218 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13219 /* QPI enable 0x38, disable 0xFF */
13220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13221 .tested = TEST_UNTESTED,
13222 .probe = probe_spi_rdid,
13223 .probe_timing = TIMING_ZERO,
13224 .block_erasers =
13225 {
13226 {
13227 .eraseblocks = { {4 * 1024, 512} },
13228 .block_erase = spi_block_erase_20,
13229 }, {
13230 .eraseblocks = { {32 * 1024, 64} },
13231 .block_erase = spi_block_erase_52,
13232 }, {
13233 .eraseblocks = { {64 * 1024, 32} },
13234 .block_erase = spi_block_erase_d8,
13235 }, {
13236 .eraseblocks = { {2 * 1024 * 1024, 1} },
13237 .block_erase = spi_block_erase_60,
13238 }, {
13239 .eraseblocks = { {2 * 1024 * 1024, 1} },
13240 .block_erase = spi_block_erase_c7,
13241 }
13242 },
13243 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13244 .unlock = spi_disable_blockprotect,
13245 .write = spi_chip_write_256,
13246 .read = spi_chip_read,
13247 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13248 },
13249
13250 {
13251 .vendor = "Winbond",
13252 .name = "W25Q32.W",
13253 .bustype = BUS_SPI,
13254 .manufacture_id = WINBOND_NEX_ID,
13255 .model_id = WINBOND_NEX_W25Q32_W,
13256 .total_size = 4096,
13257 .page_size = 256,
13258 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13259 /* QPI enable 0x38, disable 0xFF */
13260 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13261 .tested = TEST_OK_PREW,
13262 .probe = probe_spi_rdid,
13263 .probe_timing = TIMING_ZERO,
13264 .block_erasers =
13265 {
13266 {
13267 .eraseblocks = { {4 * 1024, 1024} },
13268 .block_erase = spi_block_erase_20,
13269 }, {
13270 .eraseblocks = { {32 * 1024, 128} },
13271 .block_erase = spi_block_erase_52,
13272 }, {
13273 .eraseblocks = { {64 * 1024, 64} },
13274 .block_erase = spi_block_erase_d8,
13275 }, {
13276 .eraseblocks = { {4 * 1024 * 1024, 1} },
13277 .block_erase = spi_block_erase_60,
13278 }, {
13279 .eraseblocks = { {4 * 1024 * 1024, 1} },
13280 .block_erase = spi_block_erase_c7,
13281 }
13282 },
13283 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13284 .unlock = spi_disable_blockprotect,
13285 .write = spi_chip_write_256,
13286 .read = spi_chip_read,
13287 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13288 },
13289
13290 {
13291 .vendor = "Winbond",
13292 .name = "W25Q64.W",
13293 .bustype = BUS_SPI,
13294 .manufacture_id = WINBOND_NEX_ID,
13295 .model_id = WINBOND_NEX_W25Q64_W,
13296 .total_size = 8192,
13297 .page_size = 256,
13298 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13299 /* QPI enable 0x38, disable 0xFF */
13300 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013301 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013302 .probe = probe_spi_rdid,
13303 .probe_timing = TIMING_ZERO,
13304 .block_erasers =
13305 {
13306 {
13307 .eraseblocks = { {4 * 1024, 2048} },
13308 .block_erase = spi_block_erase_20,
13309 }, {
13310 .eraseblocks = { {32 * 1024, 256} },
13311 .block_erase = spi_block_erase_52,
13312 }, {
13313 .eraseblocks = { {64 * 1024, 128} },
13314 .block_erase = spi_block_erase_d8,
13315 }, {
13316 .eraseblocks = { {8 * 1024 * 1024, 1} },
13317 .block_erase = spi_block_erase_60,
13318 }, {
13319 .eraseblocks = { {8 * 1024 * 1024, 1} },
13320 .block_erase = spi_block_erase_c7,
13321 }
13322 },
13323 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13324 .unlock = spi_disable_blockprotect,
13325 .write = spi_chip_write_256,
13326 .read = spi_chip_read,
13327 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013328 },
13329
13330 {
13331 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013332 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013333 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013334 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013335 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013336 .total_size = 128,
13337 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013338 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013339 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013340 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013341 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013342 .block_erasers =
13343 {
13344 {
13345 .eraseblocks = { {4 * 1024, 32} },
13346 .block_erase = spi_block_erase_20,
13347 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013348 .eraseblocks = { {64 * 1024, 2} },
13349 .block_erase = spi_block_erase_d8,
13350 }, {
13351 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013352 .block_erase = spi_block_erase_c7,
13353 }
13354 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013355 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013356 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013358 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013359 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013360 },
13361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013362 {
13363 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013364 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013366 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013367 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013368 .total_size = 256,
13369 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013370 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013371 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013373 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013374 .block_erasers =
13375 {
13376 {
13377 .eraseblocks = { {4 * 1024, 64} },
13378 .block_erase = spi_block_erase_20,
13379 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013380 .eraseblocks = { {64 * 1024, 4} },
13381 .block_erase = spi_block_erase_d8,
13382 }, {
13383 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013384 .block_erase = spi_block_erase_c7,
13385 }
13386 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013387 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013388 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013389 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013390 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013391 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013392 },
13393
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013394 {
13395 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013396 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013397 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013398 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013399 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013400 .total_size = 512,
13401 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013402 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000013403 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013404 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013405 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013406 .block_erasers =
13407 {
13408 {
13409 .eraseblocks = { {4 * 1024, 128} },
13410 .block_erase = spi_block_erase_20,
13411 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013412 .eraseblocks = { {64 * 1024, 8} },
13413 .block_erase = spi_block_erase_d8,
13414 }, {
13415 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013416 .block_erase = spi_block_erase_c7,
13417 }
13418 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013419 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013420 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013421 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013422 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013423 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013424 },
13425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013426 {
13427 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013428 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013429 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013430 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013431 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013432 .total_size = 1024,
13433 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013434 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000013435 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013436 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013437 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013438 .block_erasers =
13439 {
13440 {
13441 .eraseblocks = { {4 * 1024, 256} },
13442 .block_erase = spi_block_erase_20,
13443 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013444 .eraseblocks = { {64 * 1024, 16} },
13445 .block_erase = spi_block_erase_d8,
13446 }, {
13447 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013448 .block_erase = spi_block_erase_c7,
13449 }
13450 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013452 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013453 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013454 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013455 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013456 },
13457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013458 {
13459 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013460 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013461 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000013462 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013463 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000013464 .total_size = 2048,
13465 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013466 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000013467 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000013468 .probe = probe_spi_rdid,
13469 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013470 .block_erasers =
13471 {
13472 {
13473 .eraseblocks = { {4 * 1024, 512} },
13474 .block_erase = spi_block_erase_20,
13475 }, {
13476 .eraseblocks = { {32 * 1024, 64} },
13477 .block_erase = spi_block_erase_52,
13478 }, {
13479 .eraseblocks = { {64 * 1024, 32} },
13480 .block_erase = spi_block_erase_d8,
13481 }, {
13482 .eraseblocks = { {2 * 1024 * 1024, 1} },
13483 .block_erase = spi_block_erase_60,
13484 }, {
13485 .eraseblocks = { {2 * 1024 * 1024, 1} },
13486 .block_erase = spi_block_erase_c7,
13487 }
13488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013490 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000013491 .write = spi_chip_write_256,
13492 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013493 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000013494 },
13495
13496 {
13497 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013498 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013499 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013500 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013501 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000013502 .total_size = 4096,
13503 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013504 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013505 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000013506 .probe = probe_spi_rdid,
13507 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013508 .block_erasers =
13509 {
13510 {
13511 .eraseblocks = { {4 * 1024, 1024} },
13512 .block_erase = spi_block_erase_20,
13513 }, {
13514 .eraseblocks = { {32 * 1024, 128} },
13515 .block_erase = spi_block_erase_52,
13516 }, {
13517 .eraseblocks = { {64 * 1024, 64} },
13518 .block_erase = spi_block_erase_d8,
13519 }, {
13520 .eraseblocks = { {4 * 1024 * 1024, 1} },
13521 .block_erase = spi_block_erase_60,
13522 }, {
13523 .eraseblocks = { {4 * 1024 * 1024, 1} },
13524 .block_erase = spi_block_erase_c7,
13525 }
13526 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013527 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013528 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013529 .write = spi_chip_write_256,
13530 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013531 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013532 },
13533
13534 {
13535 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013536 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013537 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013538 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013539 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000013540 .total_size = 8192,
13541 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013542 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013543 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000013544 .probe = probe_spi_rdid,
13545 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013546 .block_erasers =
13547 {
13548 {
13549 .eraseblocks = { {4 * 1024, 2048} },
13550 .block_erase = spi_block_erase_20,
13551 }, {
13552 .eraseblocks = { {32 * 1024, 256} },
13553 .block_erase = spi_block_erase_52,
13554 }, {
13555 .eraseblocks = { {64 * 1024, 128} },
13556 .block_erase = spi_block_erase_d8,
13557 }, {
13558 .eraseblocks = { {8 * 1024 * 1024, 1} },
13559 .block_erase = spi_block_erase_60,
13560 }, {
13561 .eraseblocks = { {8 * 1024 * 1024, 1} },
13562 .block_erase = spi_block_erase_c7,
13563 }
13564 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013565 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013566 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013567 .write = spi_chip_write_256,
13568 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013569 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013570 },
13571
13572 {
13573 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013574 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013575 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013576 .manufacture_id = WINBOND_ID,
13577 .model_id = WINBOND_W29C010,
13578 .total_size = 128,
13579 .page_size = 128,
13580 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013581 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013582 .probe = probe_w29ee011,
13583 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
13584 .block_erasers =
13585 {
13586 {
13587 .eraseblocks = { {128 * 1024, 1} },
13588 .block_erase = erase_chip_block_jedec,
13589 }
13590 },
13591 .write = write_jedec,
13592 .read = read_memmapped,
13593 },
13594
13595 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
13596 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013597 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013598 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013599 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013600 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013601 .total_size = 128,
13602 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013603 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000013604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013605 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013606 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013607 .block_erasers =
13608 {
13609 {
13610 .eraseblocks = { {128 * 1024, 1} },
13611 .block_erase = erase_chip_block_jedec,
13612 }
13613 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013614 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013615 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013616 },
13617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013618 {
13619 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013620 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013621 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013622 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013623 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013624 .total_size = 256,
13625 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013626 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013627 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013628 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013629 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013630 .block_erasers =
13631 {
13632 {
13633 .eraseblocks = { {256 * 1024, 1} },
13634 .block_erase = erase_chip_block_jedec,
13635 }
13636 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013637 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013639 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013640 },
13641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013642 {
13643 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013644 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013645 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013646 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013647 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013648 .total_size = 512,
13649 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013650 .feature_bits = FEATURE_LONG_RESET,
13651 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013652 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013653 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013654 .block_erasers =
13655 {
13656 {
13657 .eraseblocks = { {512 * 1024, 1} },
13658 .block_erase = erase_chip_block_jedec,
13659 }
13660 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013661 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013663 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013664 },
13665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013666 {
13667 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000013668 .name = "W29GL032CB",
13669 .bustype = BUS_PARALLEL,
13670 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13671 .model_id = WINBOND_W29GL032CB,
13672 .total_size = 4096,
13673 .page_size = 128 * 1024, /* actual page size is 16 */
13674 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13675 .tested = TEST_UNTESTED,
13676 .probe = probe_jedec_29gl,
13677 .probe_timing = TIMING_ZERO,
13678 .block_erasers =
13679 {
13680 {
13681 .eraseblocks = {
13682 {8 * 1024, 8},
13683 {64 * 1024, 63},
13684 },
13685 .block_erase = erase_sector_jedec,
13686 }, {
13687 .eraseblocks = { {4 * 1024 * 1024, 1} },
13688 .block_erase = erase_chip_block_jedec,
13689 },
13690 },
13691 .write = write_jedec_1,
13692 .read = read_memmapped,
13693 .voltage = {2700, 3600},
13694 },
13695
13696 {
13697 .vendor = "Winbond",
13698 .name = "W29GL032CT",
13699 .bustype = BUS_PARALLEL,
13700 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13701 .model_id = WINBOND_W29GL032CT,
13702 .total_size = 4096,
13703 .page_size = 128 * 1024, /* actual page size is 16 */
13704 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13705 .tested = TEST_UNTESTED,
13706 .probe = probe_jedec_29gl,
13707 .probe_timing = TIMING_ZERO,
13708 .block_erasers =
13709 {
13710 {
13711 .eraseblocks = {
13712 {64 * 1024, 63},
13713 {8 * 1024, 8},
13714 },
13715 .block_erase = erase_sector_jedec,
13716 }, {
13717 .eraseblocks = { {4 * 1024 * 1024, 1} },
13718 .block_erase = erase_chip_block_jedec,
13719 },
13720 },
13721 .write = write_jedec_1,
13722 .read = read_memmapped,
13723 .voltage = {2700, 3600},
13724 },
13725
13726 {
13727 .vendor = "Winbond",
13728 .name = "W29GL032CH/L",
13729 .bustype = BUS_PARALLEL,
13730 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13731 .model_id = WINBOND_W29GL032CHL,
13732 .total_size = 4096,
13733 .page_size = 128 * 1024, /* actual page size is 16 */
13734 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13735 .tested = TEST_UNTESTED,
13736 .probe = probe_jedec_29gl,
13737 .probe_timing = TIMING_ZERO,
13738 .block_erasers =
13739 {
13740 {
13741 .eraseblocks = { {64 * 1024, 64} },
13742 .block_erase = erase_sector_jedec,
13743 }, {
13744 .eraseblocks = { {4 * 1024 * 1024, 1} },
13745 .block_erase = erase_chip_block_jedec,
13746 },
13747 },
13748 .write = write_jedec_1,
13749 .read = read_memmapped,
13750 .voltage = {2700, 3600},
13751 },
13752
13753 {
13754 .vendor = "Winbond",
13755 .name = "W29GL064CB",
13756 .bustype = BUS_PARALLEL,
13757 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13758 .model_id = WINBOND_W29GL064CB,
13759 .total_size = 8192,
13760 .page_size = 128 * 1024, /* actual page size is 16 */
13761 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13762 .tested = TEST_UNTESTED,
13763 .probe = probe_jedec_29gl,
13764 .probe_timing = TIMING_ZERO,
13765 .block_erasers =
13766 {
13767 {
13768 .eraseblocks = {
13769 {8 * 1024, 8},
13770 {64 * 1024, 127},
13771 },
13772 .block_erase = erase_sector_jedec,
13773 }, {
13774 .eraseblocks = { {8 * 1024 * 1024, 1} },
13775 .block_erase = erase_chip_block_jedec,
13776 },
13777 },
13778 .write = write_jedec_1,
13779 .read = read_memmapped,
13780 .voltage = {2700, 3600},
13781 },
13782
13783 {
13784 .vendor = "Winbond",
13785 .name = "W29GL064CT",
13786 .bustype = BUS_PARALLEL,
13787 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13788 .model_id = WINBOND_W29GL064CT,
13789 .total_size = 8192,
13790 .page_size = 128 * 1024, /* actual page size is 16 */
13791 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13792 .tested = TEST_UNTESTED,
13793 .probe = probe_jedec_29gl,
13794 .probe_timing = TIMING_ZERO,
13795 .block_erasers =
13796 {
13797 {
13798 .eraseblocks = {
13799 {64 * 1024, 127},
13800 {8 * 1024, 8},
13801 },
13802 .block_erase = erase_sector_jedec,
13803 }, {
13804 .eraseblocks = { {8 * 1024 * 1024, 1} },
13805 .block_erase = erase_chip_block_jedec,
13806 },
13807 },
13808 .write = write_jedec_1,
13809 .read = read_memmapped,
13810 .voltage = {2700, 3600},
13811 },
13812
13813 {
13814 .vendor = "Winbond",
13815 .name = "W29GL064CH/L",
13816 .bustype = BUS_PARALLEL,
13817 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13818 .model_id = WINBOND_W29GL064CHL,
13819 .total_size = 8192,
13820 .page_size = 128 * 1024, /* actual page size is 16 */
13821 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13822 .tested = TEST_UNTESTED,
13823 .probe = probe_jedec_29gl,
13824 .probe_timing = TIMING_ZERO,
13825 .block_erasers =
13826 {
13827 {
13828 .eraseblocks = { {64 * 1024, 128} },
13829 .block_erase = erase_sector_jedec,
13830 }, {
13831 .eraseblocks = { {8 * 1024 * 1024, 1} },
13832 .block_erase = erase_chip_block_jedec,
13833 },
13834 },
13835 .write = write_jedec_1,
13836 .read = read_memmapped,
13837 .voltage = {2700, 3600},
13838 },
13839
13840 {
13841 .vendor = "Winbond",
13842 .name = "W29GL128C",
13843 .bustype = BUS_PARALLEL,
13844 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13845 .model_id = WINBOND_W29GL128CHL,
13846 .total_size = 16384,
13847 .page_size = 128 * 1024, /* actual page size is 16 */
13848 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13849 .tested = TEST_UNTESTED,
13850 .probe = probe_jedec_29gl,
13851 .probe_timing = TIMING_ZERO,
13852 .block_erasers =
13853 {
13854 {
13855 .eraseblocks = { {128 * 1024, 128} },
13856 .block_erase = erase_sector_jedec,
13857 }, {
13858 .eraseblocks = { {16 * 1024 * 1024, 1} },
13859 .block_erase = erase_chip_block_jedec,
13860 },
13861 },
13862 .write = write_jedec_1,
13863 .read = read_memmapped,
13864 .voltage = {2700, 3600},
13865 },
13866
13867 {
13868 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000013869 .name = "W39F010",
13870 .bustype = BUS_PARALLEL,
13871 .manufacture_id = WINBOND_ID,
13872 .model_id = WINBOND_W39F010,
13873 .total_size = 128,
13874 .page_size = 4 * 1024,
13875 .feature_bits = FEATURE_EITHER_RESET,
13876 .tested = TEST_OK_PREW,
13877 .probe = probe_jedec,
13878 .probe_timing = 10,
13879 .block_erasers =
13880 {
13881 {
13882 .eraseblocks = { {4 * 1024, 32} },
13883 .block_erase = erase_block_jedec,
13884 }, {
13885 .eraseblocks = { {128 * 1024, 1} },
13886 .block_erase = erase_chip_block_jedec,
13887 }
13888 },
13889 .printlock = printlock_w39f010,
13890 .write = write_jedec_1,
13891 .read = read_memmapped,
13892 .voltage = {4500, 5500},
13893 },
13894
13895 {
13896 .vendor = "Winbond",
13897 .name = "W39L010",
13898 .bustype = BUS_PARALLEL,
13899 .manufacture_id = WINBOND_ID,
13900 .model_id = WINBOND_W39L010,
13901 .total_size = 128,
13902 .page_size = 4 * 1024,
13903 .feature_bits = FEATURE_EITHER_RESET,
13904 .tested = TEST_UNTESTED,
13905 .probe = probe_jedec,
13906 .probe_timing = 10,
13907 .block_erasers =
13908 {
13909 {
13910 .eraseblocks = { {4 * 1024, 32} },
13911 .block_erase = erase_block_jedec,
13912 }, {
13913 .eraseblocks = { {128 * 1024, 1} },
13914 .block_erase = erase_chip_block_jedec,
13915 }
13916 },
13917 .printlock = printlock_w39l010,
13918 .write = write_jedec_1,
13919 .read = read_memmapped,
13920 .voltage = {3000, 3600},
13921 },
13922
13923 {
13924 .vendor = "Winbond",
13925 .name = "W39L020",
13926 .bustype = BUS_PARALLEL,
13927 .manufacture_id = WINBOND_ID,
13928 .model_id = WINBOND_W39L020,
13929 .total_size = 256,
13930 .page_size = 4 * 1024,
13931 .feature_bits = FEATURE_EITHER_RESET,
13932 .tested = TEST_UNTESTED,
13933 .probe = probe_jedec,
13934 .probe_timing = 10,
13935 .block_erasers =
13936 {
13937 {
13938 .eraseblocks = { {4 * 1024, 64} },
13939 .block_erase = erase_block_jedec,
13940 }, {
13941 .eraseblocks = { {64 * 1024, 4} },
13942 .block_erase = erase_sector_jedec,
13943 }, {
13944 .eraseblocks = { {256 * 1024, 1} },
13945 .block_erase = erase_chip_block_jedec,
13946 }
13947 },
13948 .printlock = printlock_w39l020,
13949 .write = write_jedec_1,
13950 .read = read_memmapped,
13951 .voltage = {3000, 3600},
13952 },
13953
13954 {
13955 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000013956 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013957 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000013958 .manufacture_id = WINBOND_ID,
13959 .model_id = WINBOND_W39L040,
13960 .total_size = 512,
13961 .page_size = 64 * 1024,
13962 .feature_bits = FEATURE_EITHER_RESET,
13963 .tested = TEST_OK_PR,
13964 .probe = probe_jedec,
13965 .probe_timing = 10,
13966 .block_erasers =
13967 {
13968 {
13969 .eraseblocks = { {4 * 1024, 128} },
13970 .block_erase = erase_block_jedec,
13971 }, {
13972 .eraseblocks = { {64 * 1024, 8} },
13973 .block_erase = erase_sector_jedec,
13974 }, {
13975 .eraseblocks = { {512 * 1024, 1} },
13976 .block_erase = erase_chip_block_jedec,
13977 }
13978 },
13979 .printlock = printlock_w39l040,
13980 .write = write_jedec_1,
13981 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013982 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000013983 },
13984
13985 {
13986 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013987 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013988 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013989 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013990 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013991 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013992 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013993 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013994 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013995 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000013996 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013997 .block_erasers =
13998 {
13999 {
14000 .eraseblocks = { {64 * 1024, 8} },
14001 .block_erase = erase_sector_jedec,
14002 }, {
14003 .eraseblocks = { {512 * 1024, 1} },
14004 .block_erase = erase_chip_block_jedec,
14005 }
14006 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014007 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000014008 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014010 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014011 },
14012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014013 {
14014 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014015 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014016 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014017 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014018 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014019 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014020 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014021 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014022 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014023 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000014024 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014025 .block_erasers =
14026 {
14027 {
14028 .eraseblocks = { {64 * 1024, 8} },
14029 .block_erase = erase_sector_jedec,
14030 }, {
14031 .eraseblocks = { {512 * 1024, 1} },
14032 .block_erase = erase_chip_block_jedec,
14033 }
14034 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014035 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000014036 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014038 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014039 },
14040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014041 {
14042 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014043 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014044 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014045 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014046 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014047 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014048 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014049 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014050 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000014051 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014052 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014053 .block_erasers =
14054 {
14055 {
14056 .eraseblocks = { {64 * 1024, 8} },
14057 .block_erase = erase_sector_jedec,
14058 }, {
14059 .eraseblocks = { {512 * 1024, 1} },
14060 .block_erase = erase_chip_block_jedec,
14061 }
14062 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000014063 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000014064 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014066 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014067 },
14068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014069 {
14070 .vendor = "Winbond",
14071 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014072 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014073 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014074 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014075 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014076 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000014077 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014078 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014079 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014080 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014081 .block_erasers =
14082 {
14083 {
14084 .eraseblocks = { {4 * 1024, 128} },
14085 .block_erase = erase_block_jedec,
14086 }, {
14087 .eraseblocks = { {64 * 1024, 8} },
14088 .block_erase = erase_sector_jedec,
14089 }, {
14090 .eraseblocks = { {512 * 1024, 1} },
14091 .block_erase = erase_chip_block_jedec,
14092 }
14093 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014094 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014095 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014096 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014098 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014099 },
14100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014101 {
14102 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014103 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014104 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014105 .manufacture_id = WINBOND_ID,
14106 .model_id = WINBOND_W39V040B,
14107 .total_size = 512,
14108 .page_size = 64 * 1024,
14109 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014110 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014111 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014112 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014113 .block_erasers =
14114 {
14115 {
14116 .eraseblocks = { {64 * 1024, 8} },
14117 .block_erase = erase_sector_jedec,
14118 }, {
14119 .eraseblocks = { {512 * 1024, 1} },
14120 .block_erase = erase_chip_block_jedec,
14121 }
14122 },
14123 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014124 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014125 .write = write_jedec_1,
14126 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014127 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014128 },
14129
14130 {
14131 .vendor = "Winbond",
14132 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014133 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014134 .manufacture_id = WINBOND_ID,
14135 .model_id = WINBOND_W39V040C,
14136 .total_size = 512,
14137 .page_size = 64 * 1024,
14138 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000014139 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014140 .probe = probe_jedec,
14141 .probe_timing = 10,
14142 .block_erasers =
14143 {
14144 {
14145 .eraseblocks = { {64 * 1024, 8} },
14146 .block_erase = erase_sector_jedec,
14147 }, {
14148 .eraseblocks = { {512 * 1024, 1} },
14149 .block_erase = erase_chip_block_jedec,
14150 }
14151 },
14152 .printlock = printlock_w39v040fc,
14153 .write = write_jedec_1,
14154 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014155 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014156 },
14157
14158 {
14159 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014160 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014161 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014162 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014163 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014164 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014165 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014166 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000014167 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014168 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000014169 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014170 .block_erasers =
14171 {
14172 {
14173 .eraseblocks = { {64 * 1024, 16} },
14174 .block_erase = erase_sector_jedec,
14175 }, {
14176 .eraseblocks = { {1024 * 1024, 1} },
14177 .block_erase = erase_chip_block_jedec,
14178 }
14179 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014180 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000014181 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014183 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014184 },
14185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014186 {
14187 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014188 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014189 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014190 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014191 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014192 .total_size = 256,
14193 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014194 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014195 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014196 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014197 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014198 .block_erasers =
14199 {
14200 {
14201 .eraseblocks = {
14202 {128 * 1024, 1},
14203 {96 * 1024, 1},
14204 {8 * 1024, 2},
14205 {16 * 1024, 1},
14206 },
14207 .block_erase = erase_sector_jedec,
14208 }, {
14209 .eraseblocks = { {256 * 1024, 1} },
14210 .block_erase = erase_chip_block_jedec,
14211 }
14212 },
Sean Nelson35727f72010-01-28 23:55:12 +000014213 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014215 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014216 },
14217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014218 {
14219 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014220 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014221 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014222 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014223 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014224 .total_size = 256,
14225 .page_size = 128,
14226 .feature_bits = FEATURE_EITHER_RESET,
14227 .tested = TEST_OK_PROBE,
14228 .probe = probe_jedec,
14229 .probe_timing = 10,
14230 .block_erasers =
14231 {
14232 {
14233 .eraseblocks = { {256 * 1024, 1} },
14234 .block_erase = erase_chip_block_jedec,
14235 }
14236 },
14237 .write = write_jedec_1,
14238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014239 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014240 },
14241
14242 {
14243 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014244 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014245 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014246 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014247 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014248 .total_size = 256,
14249 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014250 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014251 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014252 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014253 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014254 .block_erasers =
14255 {
14256 {
14257 .eraseblocks = {
14258 {64 * 1024, 3},
14259 {32 * 1024, 1},
14260 {8 * 1024, 2},
14261 {16 * 1024, 1},
14262 },
14263 .block_erase = erase_sector_jedec,
14264 }, {
14265 .eraseblocks = { {256 * 1024, 1} },
14266 .block_erase = erase_chip_block_jedec,
14267 }
14268 },
Sean Nelson35727f72010-01-28 23:55:12 +000014269 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014270 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014271 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014272 },
14273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014274 {
14275 .vendor = "Winbond",
14276 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014277 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014278 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014279 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014280 .total_size = 256,
14281 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014282 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014283 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014284 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014285 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014286 .block_erasers =
14287 {
14288 {
14289 .eraseblocks = {
14290 {64 * 1024, 3},
14291 {32 * 1024, 1},
14292 {8 * 1024, 2},
14293 {16 * 1024, 1},
14294 },
14295 .block_erase = erase_sector_jedec,
14296 }, {
14297 .eraseblocks = { {256 * 1024, 1} },
14298 .block_erase = erase_chip_block_jedec,
14299 }
14300 },
Sean Nelson35727f72010-01-28 23:55:12 +000014301 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014302 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014303 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014304 },
14305
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014306 {
14307 .vendor = "Winbond",
14308 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014309 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014310 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014311 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014312 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014313 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014314 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014315 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014316 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014317 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014318 .block_erasers =
14319 {
14320 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014321 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014322 .block_erase = erase_sector_jedec,
14323 }, {
14324 .eraseblocks = { {1024 * 1024, 1} },
14325 .block_erase = erase_chip_block_jedec,
14326 }
14327 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014328 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014329 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014330 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014331 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014332 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014333 },
14334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014335 {
14336 .vendor = "Winbond",
14337 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014338 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014339 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014340 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014341 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014342 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014343 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014344 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014345 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014346 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014347 .block_erasers =
14348 {
14349 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014350 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014351 .block_erase = erase_sector_jedec,
14352 }, {
14353 .eraseblocks = { {512 * 1024, 1} },
14354 .block_erase = erase_chip_block_jedec,
14355 }
14356 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014357 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000014358 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014359 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014360 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014361 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014362
14363 {
14364 .vendor = "Unknown",
14365 .name = "SFDP-capable chip",
14366 .bustype = BUS_SPI,
14367 .manufacture_id = GENERIC_MANUF_ID,
14368 .model_id = SFDP_DEVICE_ID,
14369 /* We present our own "report this" text hence we do not
14370 * want the default "This flash part has status UNTESTED..."
14371 * text to be printed. */
14372 .tested = TEST_OK_PREW,
14373 .probe = probe_spi_sfdp,
14374 .unlock = spi_disable_blockprotect, /* is this safe? */
14375 .read = spi_chip_read,
14376 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000014377 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014378 /* Everything below will be set by the probing function. */
14379 .write = NULL,
14380 .total_size = 0,
14381 .page_size = 0,
14382 .feature_bits = 0,
14383 .block_erasers = {},
14384 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014385
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014386 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000014387 .vendor = "Programmer",
14388 .name = "Opaque flash chip",
14389 .bustype = BUS_PROG,
14390 .manufacture_id = PROGMANUF_ID,
14391 .model_id = PROGDEV_ID,
14392 .total_size = 0,
14393 .page_size = 256,
14394 /* probe is assumed to work, rest will be filled in by probe */
14395 .tested = TEST_OK_PROBE,
14396 .probe = probe_opaque,
14397 /* eraseblock sizes will be set by the probing function */
14398 .block_erasers =
14399 {
14400 {
14401 .block_erase = erase_opaque,
14402 }
14403 },
14404 .write = write_opaque,
14405 .read = read_opaque,
14406 },
14407
14408 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014409 .vendor = "AMIC",
14410 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014411 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014412 .manufacture_id = AMIC_ID,
14413 .model_id = GENERIC_DEVICE_ID,
14414 .total_size = 0,
14415 .page_size = 256,
14416 .tested = TEST_BAD_PREW,
14417 .probe = probe_spi_rdid4,
14418 .probe_timing = TIMING_ZERO,
14419 .write = NULL,
14420 .read = NULL,
14421 },
14422
14423 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014424 .vendor = "Atmel",
14425 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014426 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014427 .manufacture_id = ATMEL_ID,
14428 .model_id = GENERIC_DEVICE_ID,
14429 .total_size = 0,
14430 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014431 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014432 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014433 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014434 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014435 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014436 },
14437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014438 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000014439 .vendor = "Eon",
14440 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014441 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014442 .manufacture_id = EON_ID_NOPREFIX,
14443 .model_id = GENERIC_DEVICE_ID,
14444 .total_size = 0,
14445 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014446 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014447 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014448 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014449 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014450 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014451 },
14452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014453 {
14454 .vendor = "Macronix",
14455 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014456 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014457 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014458 .model_id = GENERIC_DEVICE_ID,
14459 .total_size = 0,
14460 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014461 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014462 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014463 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014464 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014465 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014466 },
14467
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014468 {
14469 .vendor = "PMC",
14470 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014471 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014472 .manufacture_id = PMC_ID,
14473 .model_id = GENERIC_DEVICE_ID,
14474 .total_size = 0,
14475 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014476 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014477 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014478 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014479 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014480 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014481 },
14482
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014483 {
14484 .vendor = "SST",
14485 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014486 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014487 .manufacture_id = SST_ID,
14488 .model_id = GENERIC_DEVICE_ID,
14489 .total_size = 0,
14490 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014491 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014493 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014494 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014495 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014496 },
14497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014498 {
14499 .vendor = "ST",
14500 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014501 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014502 .manufacture_id = ST_ID,
14503 .model_id = GENERIC_DEVICE_ID,
14504 .total_size = 0,
14505 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014506 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014507 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014508 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014510 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014511 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000014512
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014513 {
Sean Nelson118e1d62009-11-24 02:08:11 +000014514 .vendor = "Sanyo",
14515 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014516 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000014517 .manufacture_id = SANYO_ID,
14518 .model_id = GENERIC_DEVICE_ID,
14519 .total_size = 0,
14520 .page_size = 256,
14521 .tested = TEST_BAD_PREW,
14522 .probe = probe_spi_rdid,
14523 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000014524 .write = NULL,
14525 .read = NULL,
14526 },
14527
14528 {
Stefan Taunereb582572012-09-21 12:52:50 +000014529 .vendor = "Winbond",
14530 .name = "unknown Winbond (ex Nexcom) SPI chip",
14531 .bustype = BUS_SPI,
14532 .manufacture_id = WINBOND_NEX_ID,
14533 .model_id = GENERIC_DEVICE_ID,
14534 .total_size = 0,
14535 .page_size = 256,
14536 .tested = TEST_BAD_PREW,
14537 .probe = probe_spi_rdid,
14538 .probe_timing = TIMING_ZERO,
14539 .write = NULL,
14540 .read = NULL,
14541 },
14542
14543 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014544 .vendor = "Generic",
14545 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014546 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014547 .manufacture_id = GENERIC_MANUF_ID,
14548 .model_id = GENERIC_DEVICE_ID,
14549 .total_size = 0,
14550 .page_size = 256,
14551 .tested = TEST_BAD_PREW,
14552 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014553 .write = NULL,
14554 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000014555
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014556 {
14557 .vendor = "Generic",
14558 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014559 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014560 .manufacture_id = GENERIC_MANUF_ID,
14561 .model_id = GENERIC_DEVICE_ID,
14562 .total_size = 0,
14563 .page_size = 256,
14564 .tested = TEST_BAD_PREW,
14565 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014566 .write = NULL,
14567 },
14568
Stefan Tauner96658be2014-05-26 22:05:31 +000014569 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000014570};
Stefan Tauner96658be2014-05-26 22:05:31 +000014571
14572const unsigned int flashchips_size = ARRAY_SIZE(flashchips);