blob: 489f7c3be4712d4491a638c8868c0a023d7dd1d5 [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,
1997 .tested = TEST_UNTESTED,
1998 .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,
2480 .tested = TEST_UNTESTED,
2481 .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 */
3052 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
3053 .tested = TEST_UNTESTED,
3054 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
3055 .probe_timing = TIMING_FIXME,
3056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
3065 .block_erase = erase_block_82802ab,
3066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
3070 .block_erase = NULL, /* TODO: Implement. */
3071 },
3072 },
3073 .printlock = NULL, /* TODO */
3074 .unlock = NULL, /* unlock_82802ab() not correct(?) */
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
Andrew Morganca081462011-09-13 22:05:44 +00003081 .vendor = "Catalyst",
3082 .name = "CAT28F512",
3083 .bustype = BUS_PARALLEL,
3084 .manufacture_id = CATALYST_ID,
3085 .model_id = CATALYST_CAT28F512,
3086 .total_size = 64,
3087 .page_size = 0, /* unused */
3088 .feature_bits = 0,
3089 .tested = TEST_OK_PR,
3090 .probe = probe_jedec, /* FIXME! */
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = { {64 * 1024, 1} },
3096 .block_erase = NULL, /* TODO */
3097 },
3098 },
3099 .write = NULL, /* TODO */
3100 .read = read_memmapped,
3101 .voltage = {4500, 5500},
3102 },
3103
3104 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003105 .vendor = "Bright",
3106 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003107 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003108 .manufacture_id = BRIGHT_ID,
3109 .model_id = BRIGHT_BM29F040,
3110 .total_size = 512,
3111 .page_size = 64 * 1024,
3112 .feature_bits = FEATURE_EITHER_RESET,
3113 .tested = TEST_OK_PR,
3114 .probe = probe_jedec,
3115 .probe_timing = TIMING_ZERO,
3116 .block_erasers =
3117 {
3118 {
3119 .eraseblocks = { {64 * 1024, 8} },
3120 .block_erase = erase_sector_jedec,
3121 }, {
3122 .eraseblocks = { {512 * 1024, 1} },
3123 .block_erase = erase_chip_block_jedec,
3124 },
3125 },
3126 .write = write_jedec_1,
3127 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003128 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003129 },
3130
3131 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003132 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003133 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003134 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003135 .manufacture_id = ESMT_ID,
3136 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003137 .total_size = 256,
3138 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003139 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003140 .tested = TEST_UNTESTED,
3141 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003142 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003143 .block_erasers =
3144 {
3145 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003146 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003147 {128 * 1024, 1},
3148 {96 * 1024, 1},
3149 {8 * 1024, 2},
3150 {16 * 1024, 1},
3151 },
3152 .block_erase = erase_sector_jedec,
3153 }, {
3154 .eraseblocks = { {256 * 1024, 1} },
3155 .block_erase = erase_chip_block_jedec,
3156 }
3157 },
Sean Nelson35727f72010-01-28 23:55:12 +00003158 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003161 },
3162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003163 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003164 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003165 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003166 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003167 .manufacture_id = ESMT_ID,
3168 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003169 .total_size = 1024,
3170 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003171 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003172 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003173 .probe = probe_spi_rdid,
3174 .probe_timing = TIMING_ZERO,
3175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = { {4 * 1024, 256} },
3179 .block_erase = spi_block_erase_20,
3180 }, {
3181 .eraseblocks = { {64 * 1024, 16} },
3182 .block_erase = spi_block_erase_d8,
3183 }, {
3184 .eraseblocks = { {1024 * 1024, 1} },
3185 .block_erase = spi_block_erase_60,
3186 }, {
3187 .eraseblocks = { {1024 * 1024, 1} },
3188 .block_erase = spi_block_erase_c7,
3189 }
3190 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003193 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003195 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003196 },
3197
3198 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003199 .vendor = "ESMT",
3200 .name = "F25L32PA",
3201 .bustype = BUS_SPI,
3202 .manufacture_id = ESMT_ID,
3203 .model_id = ESMT_F25L32PA,
3204 .total_size = 4096,
3205 .page_size = 256,
3206 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3207 .tested = TEST_UNTESTED,
3208 .probe = probe_spi_rdid,
3209 .probe_timing = TIMING_ZERO,
3210 .block_erasers =
3211 {
3212 {
3213 .eraseblocks = { {4 * 1024, 1024} },
3214 .block_erase = spi_block_erase_20,
3215 }, {
3216 .eraseblocks = { {64 * 1024, 64} },
3217 .block_erase = spi_block_erase_d8,
3218 }, {
3219 .eraseblocks = { {4 * 1024 * 1024, 1} },
3220 .block_erase = spi_block_erase_60,
3221 }, {
3222 .eraseblocks = { {4 * 1024 * 1024, 1} },
3223 .block_erase = spi_block_erase_c7,
3224 }
3225 },
3226 .printlock = spi_prettyprint_status_register_bp2_bpl,
3227 .unlock = spi_disable_blockprotect,
3228 .write = spi_chip_write_256,
3229 .read = spi_chip_read,
3230 .voltage = {2700, 3600},
3231 },
3232
3233 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003234 .vendor = "Eon",
3235 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003236 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003238 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003239 .total_size = 64,
3240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003241 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003242 .tested = TEST_UNTESTED,
3243 .probe = probe_spi_rdid,
3244 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = {
3249 {4 * 1024, 2},
3250 {8 * 1024, 1},
3251 {16 * 1024, 1},
3252 {32 * 1024, 1},
3253 },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {64 * 1024, 1} },
3257 .block_erase = spi_block_erase_c7,
3258 }
3259 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003260 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003261 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003262 .write = spi_chip_write_256,
3263 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003264 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003265 },
3266
3267 {
3268 .vendor = "Eon",
3269 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003270 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003271 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003272 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003273 .total_size = 64,
3274 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003275 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003276 .tested = TEST_UNTESTED,
3277 .probe = probe_spi_rdid,
3278 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003279 .block_erasers =
3280 {
3281 {
3282 .eraseblocks = {
3283 {32 * 1024, 1},
3284 {16 * 1024, 1},
3285 {8 * 1024, 1},
3286 {4 * 1024, 2},
3287 },
3288 .block_erase = spi_block_erase_d8,
3289 }, {
3290 .eraseblocks = { {64 * 1024, 1} },
3291 .block_erase = spi_block_erase_c7,
3292 }
3293 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003294 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003295 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003296 .write = spi_chip_write_256,
3297 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003298 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003299 },
3300
3301 {
3302 .vendor = "Eon",
3303 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003304 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003305 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003306 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003307 .total_size = 128,
3308 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003309 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003310 .tested = TEST_UNTESTED,
3311 .probe = probe_spi_rdid,
3312 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003313 .block_erasers =
3314 {
3315 {
3316 .eraseblocks = {
3317 {4 * 1024, 2},
3318 {8 * 1024, 1},
3319 {16 * 1024, 1},
3320 {32 * 1024, 3},
3321 },
3322 .block_erase = spi_block_erase_d8,
3323 }, {
3324 .eraseblocks = { {128 * 1024, 1} },
3325 .block_erase = spi_block_erase_c7,
3326 }
3327 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003329 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003330 .write = spi_chip_write_256,
3331 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003332 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003333 },
3334
3335 {
3336 .vendor = "Eon",
3337 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003338 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003339 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003340 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003341 .total_size = 128,
3342 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003343 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003344 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .probe = probe_spi_rdid,
3346 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003347 .block_erasers =
3348 {
3349 {
3350 .eraseblocks = {
3351 {32 * 1024, 3},
3352 {16 * 1024, 1},
3353 {8 * 1024, 1},
3354 {4 * 1024, 2},
3355 },
3356 .block_erase = spi_block_erase_d8,
3357 }, {
3358 .eraseblocks = { {128 * 1024, 1} },
3359 .block_erase = spi_block_erase_c7,
3360 }
3361 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003362 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003363 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003364 .write = spi_chip_write_256,
3365 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003366 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003367 },
3368
3369 {
3370 .vendor = "Eon",
3371 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003372 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003373 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003374 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003375 .total_size = 256,
3376 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003377 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003378 .tested = TEST_UNTESTED,
3379 .probe = probe_spi_rdid,
3380 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003381 .block_erasers =
3382 {
3383 {
3384 .eraseblocks = {
3385 {4 * 1024, 2},
3386 {8 * 1024, 1},
3387 {16 * 1024, 1},
3388 {32 * 1024, 1},
3389 {64 * 1024, 3}
3390 },
3391 .block_erase = spi_block_erase_d8,
3392 }, {
3393 .eraseblocks = { {256 * 1024, 1} },
3394 .block_erase = spi_block_erase_c7,
3395 }
3396 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003398 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003399 .write = spi_chip_write_256,
3400 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003401 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003402 },
3403
3404 {
3405 .vendor = "Eon",
3406 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003407 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003409 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003410 .total_size = 256,
3411 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003412 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .tested = TEST_UNTESTED,
3414 .probe = probe_spi_rdid,
3415 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003416 .block_erasers =
3417 {
3418 {
3419 .eraseblocks = {
3420 {64 * 1024, 3},
3421 {32 * 1024, 1},
3422 {16 * 1024, 1},
3423 {8 * 1024, 1},
3424 {4 * 1024, 2},
3425 },
3426 .block_erase = spi_block_erase_d8,
3427 }, {
3428 .eraseblocks = { {256 * 1024, 1} },
3429 .block_erase = spi_block_erase_c7,
3430 }
3431 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003432 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003433 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003434 .write = spi_chip_write_256,
3435 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003436 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003437 },
3438
3439 {
3440 .vendor = "Eon",
3441 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003442 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003443 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003444 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003445 .total_size = 512,
3446 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003447 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003448 .tested = TEST_UNTESTED,
3449 .probe = probe_spi_rdid,
3450 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003451 .block_erasers =
3452 {
3453 {
3454 .eraseblocks = {
3455 {4 * 1024, 2},
3456 {8 * 1024, 1},
3457 {16 * 1024, 1},
3458 {32 * 1024, 1},
3459 {64 * 1024, 7}
3460 },
3461 .block_erase = spi_block_erase_d8,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = spi_block_erase_c7,
3465 }
3466 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003467 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003468 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003469 .write = spi_chip_write_256,
3470 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003471 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003472 },
3473
3474 {
3475 .vendor = "Eon",
3476 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003477 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003479 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .total_size = 512,
3481 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003482 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003483 .tested = TEST_UNTESTED,
3484 .probe = probe_spi_rdid,
3485 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003486 .block_erasers =
3487 {
3488 {
3489 .eraseblocks = {
3490 {64 * 1024, 7},
3491 {32 * 1024, 1},
3492 {16 * 1024, 1},
3493 {8 * 1024, 1},
3494 {4 * 1024, 2},
3495 },
3496 .block_erase = spi_block_erase_d8,
3497 }, {
3498 .eraseblocks = { {512 * 1024, 1} },
3499 .block_erase = spi_block_erase_c7,
3500 }
3501 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003503 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003504 .write = spi_chip_write_256,
3505 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003506 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003507 },
3508
3509 {
3510 .vendor = "Eon",
3511 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003512 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003513 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003514 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003515 .total_size = 1024,
3516 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003517 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003518 .tested = TEST_UNTESTED,
3519 .probe = probe_spi_rdid,
3520 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003521 .block_erasers =
3522 {
3523 {
3524 .eraseblocks = {
3525 {4 * 1024, 2},
3526 {8 * 1024, 1},
3527 {16 * 1024, 1},
3528 {32 * 1024, 1},
3529 {64 * 1024, 15}
3530 },
3531 .block_erase = spi_block_erase_d8,
3532 }, {
3533 .eraseblocks = { {1024 * 1024, 1} },
3534 .block_erase = spi_block_erase_c7,
3535 }
3536 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003537 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003538 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003539 .write = spi_chip_write_256,
3540 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003541 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003542 },
3543
3544 {
3545 .vendor = "Eon",
3546 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003547 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003549 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .total_size = 1024,
3551 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003552 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003553 .tested = TEST_UNTESTED,
3554 .probe = probe_spi_rdid,
3555 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003556 .block_erasers =
3557 {
3558 {
3559 .eraseblocks = {
3560 {64 * 1024, 15},
3561 {32 * 1024, 1},
3562 {16 * 1024, 1},
3563 {8 * 1024, 1},
3564 {4 * 1024, 2},
3565 },
3566 .block_erase = spi_block_erase_d8,
3567 }, {
3568 .eraseblocks = { {1024 * 1024, 1} },
3569 .block_erase = spi_block_erase_c7,
3570 }
3571 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003572 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003573 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003574 .write = spi_chip_write_256,
3575 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003576 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003577 },
3578
3579 {
3580 .vendor = "Eon",
3581 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003582 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003583 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003584 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003585 .total_size = 2048,
3586 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003587 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003588 .tested = TEST_UNTESTED,
3589 .probe = probe_spi_rdid,
3590 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003591 .block_erasers =
3592 {
3593 {
3594 .eraseblocks = {
3595 {4 * 1024, 2},
3596 {8 * 1024, 1},
3597 {16 * 1024, 1},
3598 {32 * 1024, 1},
3599 {64 * 1024, 31},
3600 },
3601 .block_erase = spi_block_erase_d8,
3602 }, {
3603 .eraseblocks = { {2 * 1024 * 1024, 1} },
3604 .block_erase = spi_block_erase_c7,
3605 }
3606 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003608 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003609 .write = spi_chip_write_256,
3610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003611 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003612 },
3613
3614 {
3615 .vendor = "Eon",
3616 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003617 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003619 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .total_size = 2048,
3621 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003622 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003623 .tested = TEST_UNTESTED,
3624 .probe = probe_spi_rdid,
3625 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003626 .block_erasers =
3627 {
3628 {
3629 .eraseblocks = {
3630 {64 * 1024, 31},
3631 {32 * 1024, 1},
3632 {16 * 1024, 1},
3633 {8 * 1024, 1},
3634 {4 * 1024, 2},
3635 },
3636 .block_erase = spi_block_erase_d8,
3637 }, {
3638 .eraseblocks = { {2 * 1024 * 1024, 1} },
3639 .block_erase = spi_block_erase_c7,
3640 }
3641 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003642 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003643 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003644 .write = spi_chip_write_256,
3645 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003646 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003647 },
3648
3649 {
3650 .vendor = "Eon",
3651 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003652 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003653 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003654 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003655 .total_size = 4096,
3656 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003657 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003658 .tested = TEST_UNTESTED,
3659 .probe = probe_spi_rdid,
3660 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003661 .block_erasers =
3662 {
3663 {
3664 .eraseblocks = {
3665 {4 * 1024, 2},
3666 {8 * 1024, 1},
3667 {16 * 1024, 1},
3668 {32 * 1024, 1},
3669 {64 * 1024, 63},
3670 },
3671 .block_erase = spi_block_erase_d8,
3672 }, {
3673 .eraseblocks = { {4 * 1024 * 1024, 1} },
3674 .block_erase = spi_block_erase_c7,
3675 }
3676 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003677 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003678 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003679 .write = spi_chip_write_256,
3680 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003681 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003682 },
3683
3684 {
3685 .vendor = "Eon",
3686 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003687 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003689 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .total_size = 4096,
3691 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003692 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003693 .tested = TEST_UNTESTED,
3694 .probe = probe_spi_rdid,
3695 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003696 .block_erasers =
3697 {
3698 {
3699 .eraseblocks = {
3700 {64 * 1024, 63},
3701 {32 * 1024, 1},
3702 {16 * 1024, 1},
3703 {8 * 1024, 1},
3704 {4 * 1024, 2},
3705 },
3706 .block_erase = spi_block_erase_d8,
3707 }, {
3708 .eraseblocks = { {4 * 1024 * 1024, 1} },
3709 .block_erase = spi_block_erase_c7,
3710 }
3711 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003712 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003714 .write = spi_chip_write_256,
3715 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003716 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003717 },
3718
3719 {
3720 .vendor = "Eon",
3721 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003722 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003724 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003725 .total_size = 8192,
3726 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003727 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003728 .tested = TEST_UNTESTED,
3729 .probe = probe_spi_rdid,
3730 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003731 .block_erasers =
3732 {
3733 {
3734 .eraseblocks = {
3735 {4 * 1024, 2},
3736 {8 * 1024, 1},
3737 {16 * 1024, 1},
3738 {32 * 1024, 1},
3739 {64 * 1024, 127},
3740 },
3741 .block_erase = spi_block_erase_d8,
3742 }, {
3743 .eraseblocks = { {8 * 1024 * 1024, 1} },
3744 .block_erase = spi_block_erase_c7,
3745 }
3746 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003747 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003748 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003749 .write = spi_chip_write_256,
3750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003751 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003752 },
3753
3754 {
3755 .vendor = "Eon",
3756 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003757 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003759 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .total_size = 8192,
3761 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003762 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003763 .tested = TEST_UNTESTED,
3764 .probe = probe_spi_rdid,
3765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003766 .block_erasers =
3767 {
3768 {
3769 .eraseblocks = {
3770 {64 * 1024, 127},
3771 {32 * 1024, 1},
3772 {16 * 1024, 1},
3773 {8 * 1024, 1},
3774 {4 * 1024, 2},
3775 },
3776 .block_erase = spi_block_erase_d8,
3777 }, {
3778 .eraseblocks = { {8 * 1024 * 1024, 1} },
3779 .block_erase = spi_block_erase_c7,
3780 }
3781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003783 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003784 .write = spi_chip_write_256,
3785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003786 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003787 },
3788
3789 {
3790 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003791 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003792 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003793 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003794 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .total_size = 64,
3796 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003797 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003798 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003799 .probe = probe_spi_rdid,
3800 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003801 .block_erasers =
3802 {
3803 {
3804 .eraseblocks = { {4 * 1024, 16} },
3805 .block_erase = spi_block_erase_20,
3806 }, {
3807 .eraseblocks = { {32 * 1024, 2} },
3808 .block_erase = spi_block_erase_d8,
3809 }, {
3810 .eraseblocks = { {32 * 1024, 2} },
3811 .block_erase = spi_block_erase_52,
3812 }, {
3813 .eraseblocks = { {64 * 1024, 1} },
3814 .block_erase = spi_block_erase_60,
3815 }, {
3816 .eraseblocks = { {64 * 1024, 1} },
3817 .block_erase = spi_block_erase_c7,
3818 }
3819 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003820 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003821 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003822 .write = spi_chip_write_256,
3823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003824 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003825 },
3826
3827 {
3828 .vendor = "Eon",
3829 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003830 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003831 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003832 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003833 .total_size = 128,
3834 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003835 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003836 .tested = TEST_UNTESTED,
3837 .probe = probe_spi_rdid,
3838 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003839 .block_erasers =
3840 {
3841 {
3842 .eraseblocks = { {4 * 1024, 32} },
3843 .block_erase = spi_block_erase_20,
3844 }, {
3845 .eraseblocks = { {32 * 1024, 4} },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {32 * 1024, 4} },
3849 .block_erase = spi_block_erase_52,
3850 }, {
3851 .eraseblocks = { {128 * 1024, 1} },
3852 .block_erase = spi_block_erase_60,
3853 }, {
3854 .eraseblocks = { {128 * 1024, 1} },
3855 .block_erase = spi_block_erase_c7,
3856 }
3857 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003858 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003860 .write = spi_chip_write_256,
3861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003862 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 },
3864
3865 {
3866 .vendor = "Eon",
3867 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003868 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003869 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003870 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .total_size = 256,
3872 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003873 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003874 .tested = TEST_UNTESTED,
3875 .probe = probe_spi_rdid,
3876 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003877 .block_erasers =
3878 {
3879 {
3880 .eraseblocks = { {4 * 1024, 64} },
3881 .block_erase = spi_block_erase_20,
3882 }, {
3883 .eraseblocks = { {64 * 1024, 4} },
3884 .block_erase = spi_block_erase_d8,
3885 }, {
3886 .eraseblocks = { {64 * 1024, 4} },
3887 .block_erase = spi_block_erase_52,
3888 }, {
3889 .eraseblocks = { {256 * 1024, 1} },
3890 .block_erase = spi_block_erase_60,
3891 }, {
3892 .eraseblocks = { {256 * 1024, 1} },
3893 .block_erase = spi_block_erase_c7,
3894 }
3895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003897 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003898 .write = spi_chip_write_256,
3899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003900 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 },
3902
3903 {
3904 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003905 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003908 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003909 .total_size = 512,
3910 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003911 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003912 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003913 .probe = probe_spi_rdid,
3914 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003915 .block_erasers =
3916 {
3917 {
Sean Nelson54596372010-01-09 05:30:14 +00003918 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003919 .block_erase = spi_block_erase_20,
3920 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003921 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003922 .block_erase = spi_block_erase_d8,
3923 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003924 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003925 .block_erase = spi_block_erase_60,
3926 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003927 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003928 .block_erase = spi_block_erase_c7,
3929 },
3930 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003931 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003932 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .write = spi_chip_write_256,
3934 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003935 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 },
3937
3938 {
3939 .vendor = "Eon",
3940 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003941 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003942 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003943 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003944 .total_size = 1024,
3945 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003946 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003947 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003948 .probe = probe_spi_rdid,
3949 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003950 .block_erasers =
3951 {
3952 {
3953 .eraseblocks = { {4 * 1024, 256} },
3954 .block_erase = spi_block_erase_20,
3955 }, {
3956 .eraseblocks = { {64 * 1024, 16} },
3957 .block_erase = spi_block_erase_d8,
3958 }, {
3959 .eraseblocks = { {1024 * 1024, 1} },
3960 .block_erase = spi_block_erase_60,
3961 }, {
3962 .eraseblocks = { {1024 * 1024, 1} },
3963 .block_erase = spi_block_erase_c7,
3964 }
3965 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003966 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003967 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003968 .write = spi_chip_write_256,
3969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003970 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003971 },
3972
3973 {
3974 .vendor = "Eon",
3975 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003976 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003977 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003978 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003979 .total_size = 2048,
3980 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003981 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003982 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .probe = probe_spi_rdid,
3984 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003985 .block_erasers =
3986 {
3987 {
3988 .eraseblocks = { {4 * 1024, 512} },
3989 .block_erase = spi_block_erase_20,
3990 }, {
3991 .eraseblocks = { {64 * 1024, 32} },
3992 .block_erase = spi_block_erase_d8,
3993 }, {
3994 .eraseblocks = { {2 * 1024 * 1024, 1} },
3995 .block_erase = spi_block_erase_60,
3996 }, {
3997 .eraseblocks = { {2 * 1024 * 1024, 1} },
3998 .block_erase = spi_block_erase_c7,
3999 }
4000 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004001 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004002 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004003 .write = spi_chip_write_256,
4004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004005 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004006 },
4007
4008 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004009 .vendor = "Eon",
4010 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004011 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004012 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004013 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .total_size = 4096,
4015 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004016 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004017 .tested = TEST_UNTESTED,
4018 .probe = probe_spi_rdid,
4019 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004020 .block_erasers =
4021 {
4022 {
4023 .eraseblocks = { {4 * 1024, 1024} },
4024 .block_erase = spi_block_erase_20,
4025 }, {
4026 .eraseblocks = { {64 * 1024, 64} },
4027 .block_erase = spi_block_erase_d8,
4028 }, {
4029 .eraseblocks = { {4 * 1024 * 1024, 1} },
4030 .block_erase = spi_block_erase_60,
4031 }, {
4032 .eraseblocks = { {4 * 1024 * 1024, 1} },
4033 .block_erase = spi_block_erase_c7,
4034 }
4035 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004036 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004037 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004038 .write = spi_chip_write_256,
4039 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004040 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004041 },
4042
4043 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004044 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004045 .name = "EN25F64",
4046 .bustype = BUS_SPI,
4047 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004048 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004049 .total_size = 8192,
4050 .page_size = 256,
4051 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004052 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004053 .probe = probe_spi_rdid,
4054 .probe_timing = TIMING_ZERO,
4055 .block_erasers =
4056 {
4057 {
4058 .eraseblocks = { {4 * 1024, 2048} },
4059 .block_erase = spi_block_erase_20,
4060 }, {
4061 .eraseblocks = { {64 * 1024, 128} },
4062 .block_erase = spi_block_erase_d8,
4063 }, {
4064 .eraseblocks = { {8 * 1024 * 1024, 1} },
4065 .block_erase = spi_block_erase_60,
4066 }, {
4067 .eraseblocks = { {8 * 1024 * 1024, 1} },
4068 .block_erase = spi_block_erase_c7,
4069 }
4070 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004071 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004072 .unlock = spi_disable_blockprotect,
4073 .write = spi_chip_write_256,
4074 .read = spi_chip_read,
4075 .voltage = {2700, 3600},
4076 },
4077
4078 {
4079 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004080 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004081 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004082 .manufacture_id = EON_ID_NOPREFIX,
4083 .model_id = EON_EN25Q40,
4084 .total_size = 512,
4085 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004086 /* OTP: 256B total; enter 0x3A */
4087 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004088 .tested = TEST_UNTESTED,
4089 .probe = probe_spi_rdid,
4090 .probe_timing = TIMING_ZERO,
4091 .block_erasers =
4092 {
4093 {
4094 .eraseblocks = { {4 * 1024, 128} },
4095 .block_erase = spi_block_erase_20,
4096 }, {
4097 .eraseblocks = { {64 * 1024, 8} },
4098 .block_erase = spi_block_erase_d8,
4099 }, {
4100 .eraseblocks = { {512 * 1024, 1} },
4101 .block_erase = spi_block_erase_60,
4102 }, {
4103 .eraseblocks = { {512 * 1024, 1} },
4104 .block_erase = spi_block_erase_c7,
4105 }
4106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004107 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004108 .unlock = spi_disable_blockprotect,
4109 .write = spi_chip_write_256,
4110 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004111 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004112 },
4113
4114 {
4115 .vendor = "Eon",
4116 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004117 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004118 .manufacture_id = EON_ID_NOPREFIX,
4119 .model_id = EON_EN25Q80,
4120 .total_size = 1024,
4121 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004122 /* OTP: 256B total; enter 0x3A */
4123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004124 .tested = TEST_UNTESTED,
4125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 256} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 16} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {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 */
David Hendricks6d715302011-07-24 22:21:57 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004147 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004148 },
4149
4150 {
4151 /* Note: EN25D16 is an evil twin which shares the model ID
4152 but has different write protection capabilities */
4153 .vendor = "Eon",
4154 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004155 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004156 .manufacture_id = EON_ID_NOPREFIX,
4157 .model_id = EON_EN25Q16,
4158 .total_size = 2048,
4159 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004160 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004162 .tested = TEST_UNTESTED,
4163 .probe = probe_spi_rdid,
4164 .probe_timing = TIMING_ZERO,
4165 .block_erasers =
4166 {
4167 {
4168 .eraseblocks = { {4 * 1024, 512} },
4169 .block_erase = spi_block_erase_20,
4170 }, {
4171 .eraseblocks = { {64 * 1024, 32} },
4172 .block_erase = spi_block_erase_d8,
4173 }, {
4174 /* not supported by Q16 version */
4175 .eraseblocks = { {64 * 1024, 32} },
4176 .block_erase = spi_block_erase_52,
4177 }, {
4178 .eraseblocks = { {2 * 1024 * 1024, 1} },
4179 .block_erase = spi_block_erase_60,
4180 }, {
4181 .eraseblocks = { {2 * 1024 * 1024, 1} },
4182 .block_erase = spi_block_erase_c7,
4183 }
4184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004185 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004186 .unlock = spi_disable_blockprotect,
4187 .write = spi_chip_write_256,
4188 .read = spi_chip_read,
4189 .voltage = {2700, 3600},
4190 },
4191
4192 {
4193 .vendor = "Eon",
4194 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004195 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .manufacture_id = EON_ID_NOPREFIX,
4197 .model_id = EON_EN25Q32,
4198 .total_size = 4096,
4199 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004200 /* OTP: 512B total; enter 0x3A */
4201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004202 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004203 .probe = probe_spi_rdid,
4204 .probe_timing = TIMING_ZERO,
4205 .block_erasers =
4206 {
4207 {
4208 .eraseblocks = { {4 * 1024, 1024} },
4209 .block_erase = spi_block_erase_20,
4210 }, {
4211 .eraseblocks = { {64 * 1024, 64} },
4212 .block_erase = spi_block_erase_d8,
4213 }, {
4214 .eraseblocks = { {4 * 1024 * 1024, 1} },
4215 .block_erase = spi_block_erase_60,
4216 }, {
4217 .eraseblocks = { {4 * 1024 * 1024, 1} },
4218 .block_erase = spi_block_erase_c7,
4219 }
4220 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004221 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004222 .unlock = spi_disable_blockprotect,
4223 .write = spi_chip_write_256,
4224 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004225 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004226 },
4227
4228 {
4229 .vendor = "Eon",
4230 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004231 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004232 .manufacture_id = EON_ID_NOPREFIX,
4233 .model_id = EON_EN25Q64,
4234 .total_size = 8192,
4235 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004236 /* OTP: 512B total; enter 0x3A */
4237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004238 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004239 .probe = probe_spi_rdid,
4240 .probe_timing = TIMING_ZERO,
4241 .block_erasers =
4242 {
4243 {
4244 .eraseblocks = { {4 * 1024, 2048} },
4245 .block_erase = spi_block_erase_20,
4246 }, {
4247 .eraseblocks = { {64 * 1024, 128} },
4248 .block_erase = spi_block_erase_d8,
4249 }, {
4250 .eraseblocks = { {8 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {8 * 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,
Stefan Taunereb582572012-09-21 12:52:50 +00004261 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q128",
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_EN25Q128,
4270 .total_size = 16384,
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,
David Hendricks6d715302011-07-24 22:21:57 +00004274 .tested = TEST_UNTESTED,
4275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 4096} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 256} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {16 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {16 * 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,
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004302 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH16,
4305 .total_size = 2048,
4306 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004311 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers =
4315 {
4316 {
4317 .eraseblocks = { {4 * 1024, 512} },
4318 .block_erase = spi_block_erase_20,
4319 }, {
4320 .eraseblocks = { {64 * 1024, 32} },
4321 .block_erase = spi_block_erase_d8,
4322 }, {
4323 .eraseblocks = { {1024 * 2048, 1} },
4324 .block_erase = spi_block_erase_60,
4325 }, {
4326 .eraseblocks = { {1024 * 2048, 1} },
4327 .block_erase = spi_block_erase_c7,
4328 }
4329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004330 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004331 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004332 .write = spi_chip_write_256,
4333 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004334 .voltage = {2700, 3600},
4335 },
4336
4337 {
4338 .vendor = "Eon",
4339 .name = "EN25QH32",
4340 .bustype = BUS_SPI,
4341 .manufacture_id = EON_ID_NOPREFIX,
4342 .model_id = EON_EN25QH32,
4343 .total_size = 4096,
4344 .page_size = 256,
4345 /* supports SFDP */
4346 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004347 /* QPI enable 0x38, disable 0xFF */
4348 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004349 .tested = TEST_UNTESTED,
4350 .probe = probe_spi_rdid,
4351 .probe_timing = TIMING_ZERO,
4352 .block_erasers =
4353 {
4354 {
4355 .eraseblocks = { {4 * 1024, 1024} },
4356 .block_erase = spi_block_erase_20,
4357 }, {
4358 .eraseblocks = { {64 * 1024, 64} },
4359 .block_erase = spi_block_erase_d8,
4360 }, {
4361 .eraseblocks = { {1024 * 4096, 1} },
4362 .block_erase = spi_block_erase_60,
4363 }, {
4364 .eraseblocks = { {1024 * 4096, 1} },
4365 .block_erase = spi_block_erase_c7,
4366 }
4367 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004368 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004369 .unlock = spi_disable_blockprotect_bp3_srwd,
4370 .write = spi_chip_write_256,
4371 .read = spi_chip_read,
4372 .voltage = {2700, 3600},
4373 },
4374
4375 {
4376 .vendor = "Eon",
4377 .name = "EN25QH64",
4378 .bustype = BUS_SPI,
4379 .manufacture_id = EON_ID_NOPREFIX,
4380 .model_id = EON_EN25QH64,
4381 .total_size = 8192,
4382 .page_size = 256,
4383 /* supports SFDP */
4384 /* OTP: 512B total; enter 0x3A */
4385 /* QPI enable 0x38, disable 0xFF */
4386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004387 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004388 .probe = probe_spi_rdid,
4389 .probe_timing = TIMING_ZERO,
4390 .block_erasers = {
4391 {
4392 .eraseblocks = { {4 * 1024, 2048} },
4393 .block_erase = spi_block_erase_20,
4394 }, {
4395 .eraseblocks = { {64 * 1024, 128} },
4396 .block_erase = spi_block_erase_d8,
4397 }, {
4398 .eraseblocks = { { 8192 * 1024, 1} },
4399 .block_erase = spi_block_erase_60,
4400 }, {
4401 .eraseblocks = { { 8192 * 1024, 1} },
4402 .block_erase = spi_block_erase_c7,
4403 }
4404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004405 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004406 .unlock = spi_disable_blockprotect_bp3_srwd,
4407 .write = spi_chip_write_256,
4408 .read = spi_chip_read,
4409 .voltage = {2700, 3600},
4410 },
4411
4412 {
4413 .vendor = "Eon",
4414 .name = "EN25QH128",
4415 .bustype = BUS_SPI,
4416 .manufacture_id = EON_ID_NOPREFIX,
4417 .model_id = EON_EN25QH128,
4418 .total_size = 16384,
4419 .page_size = 256,
4420 /* supports SFDP */
4421 /* OTP: 512B total; enter 0x3A */
4422 /* QPI enable 0x38, disable 0xFF */
4423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4424 .tested = TEST_UNTESTED,
4425 .probe = probe_spi_rdid,
4426 .probe_timing = TIMING_ZERO,
4427 .block_erasers = {
4428 {
4429 .eraseblocks = { {4 * 1024, 4096} },
4430 .block_erase = spi_block_erase_20,
4431 }, {
4432 .eraseblocks = { {64 * 1024, 256} },
4433 .block_erase = spi_block_erase_d8,
4434 }, {
4435 .eraseblocks = { { 16384 * 1024, 1} },
4436 .block_erase = spi_block_erase_60,
4437 }, {
4438 .eraseblocks = { { 16384 * 1024, 1} },
4439 .block_erase = spi_block_erase_c7,
4440 }
4441 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004442 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004443 .unlock = spi_disable_blockprotect_bp3_srwd,
4444 .write = spi_chip_write_256,
4445 .read = spi_chip_read,
4446 .voltage = {2700, 3600},
4447 },
4448
4449 {
4450 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004451 .name = "EN25S10",
4452 .bustype = BUS_SPI,
4453 .manufacture_id = EON_ID_NOPREFIX,
4454 .model_id = EON_EN25S10,
4455 .total_size = 128,
4456 .page_size = 256,
4457 /* OTP: 256B total; enter 0x3A */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4459 .tested = TEST_UNTESTED,
4460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 32} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {32 * 1024, 4} },
4468 .block_erase = spi_block_erase_52,
4469 }, {
4470 .eraseblocks = { {128 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { {128 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004478 .unlock = spi_disable_blockprotect,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {1650, 1950},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25S20",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25S20,
4490 .total_size = 256,
4491 .page_size = 256,
4492 /* OTP: 256B total; enter 0x3A */
4493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4494 .tested = TEST_UNTESTED,
4495 .probe = probe_spi_rdid,
4496 .probe_timing = TIMING_ZERO,
4497 .block_erasers = {
4498 {
4499 .eraseblocks = { {4 * 1024, 64} },
4500 .block_erase = spi_block_erase_20,
4501 }, {
4502 .eraseblocks = { {64 * 1024, 4} },
4503 .block_erase = spi_block_erase_d8,
4504 }, {
4505 .eraseblocks = { {256 * 1024, 1} },
4506 .block_erase = spi_block_erase_60,
4507 }, {
4508 .eraseblocks = { {256 * 1024, 1} },
4509 .block_erase = spi_block_erase_c7,
4510 }
4511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004512 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004513 .unlock = spi_disable_blockprotect,
4514 .write = spi_chip_write_256,
4515 .read = spi_chip_read,
4516 .voltage = {1650, 1950},
4517 },
4518
4519 {
4520 .vendor = "Eon",
4521 .name = "EN25S40",
4522 .bustype = BUS_SPI,
4523 .manufacture_id = EON_ID_NOPREFIX,
4524 .model_id = EON_EN25S40,
4525 .total_size = 512,
4526 .page_size = 256,
4527 /* OTP: 256B total; enter 0x3A */
4528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4529 .tested = TEST_UNTESTED,
4530 .probe = probe_spi_rdid,
4531 .probe_timing = TIMING_ZERO,
4532 .block_erasers = {
4533 {
4534 .eraseblocks = { {4 * 1024, 128} },
4535 .block_erase = spi_block_erase_20,
4536 }, {
4537 .eraseblocks = { {64 * 1024, 8} },
4538 .block_erase = spi_block_erase_d8,
4539 }, {
4540 .eraseblocks = { {512 * 1024, 1} },
4541 .block_erase = spi_block_erase_60,
4542 }, {
4543 .eraseblocks = { {512 * 1024, 1} },
4544 .block_erase = spi_block_erase_c7,
4545 }
4546 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004547 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004548 .unlock = spi_disable_blockprotect,
4549 .write = spi_chip_write_256,
4550 .read = spi_chip_read,
4551 .voltage = {1650, 1950},
4552 },
4553
4554 {
4555 .vendor = "Eon",
4556 .name = "EN25S80",
4557 .bustype = BUS_SPI,
4558 .manufacture_id = EON_ID_NOPREFIX,
4559 .model_id = EON_EN25S80,
4560 .total_size = 1024,
4561 .page_size = 256,
4562 /* OTP: 256B total; enter 0x3A */
4563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4564 .tested = TEST_UNTESTED,
4565 .probe = probe_spi_rdid,
4566 .probe_timing = TIMING_ZERO,
4567 .block_erasers = {
4568 {
4569 .eraseblocks = { {4 * 1024, 256} },
4570 .block_erase = spi_block_erase_20,
4571 }, {
4572 .eraseblocks = { {64 * 1024, 16} },
4573 .block_erase = spi_block_erase_d8,
4574 }, {
4575 .eraseblocks = { {1024 * 1024, 1} },
4576 .block_erase = spi_block_erase_60,
4577 }, {
4578 .eraseblocks = { {1024 * 1024, 1} },
4579 .block_erase = spi_block_erase_c7,
4580 }
4581 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004582 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004583 .unlock = spi_disable_blockprotect,
4584 .write = spi_chip_write_256,
4585 .read = spi_chip_read,
4586 .voltage = {1650, 1950},
4587 },
4588
4589 {
4590 .vendor = "Eon",
4591 .name = "EN25S16",
4592 .bustype = BUS_SPI,
4593 .manufacture_id = EON_ID_NOPREFIX,
4594 .model_id = EON_EN25S16,
4595 .total_size = 2048,
4596 .page_size = 256,
4597 /* OTP: 512B total; enter 0x3A */
4598 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4599 .tested = TEST_UNTESTED,
4600 .probe = probe_spi_rdid,
4601 .probe_timing = TIMING_ZERO,
4602 .block_erasers = {
4603 {
4604 .eraseblocks = { {4 * 1024, 512} },
4605 .block_erase = spi_block_erase_20,
4606 }, {
4607 .eraseblocks = { {64 * 1024, 32} },
4608 .block_erase = spi_block_erase_52,
4609 }, {
4610 .eraseblocks = { {32 * 1024, 64} },
4611 .block_erase = spi_block_erase_d8,
4612 }, {
4613 .eraseblocks = { {2048 * 1024, 1} },
4614 .block_erase = spi_block_erase_60,
4615 }, {
4616 .eraseblocks = { {2048 * 1024, 1} },
4617 .block_erase = spi_block_erase_c7,
4618 }
4619 },
4620 .printlock = spi_prettyprint_status_register_en25s_wp,
4621 .unlock = spi_disable_blockprotect_bp3_srwd,
4622 .write = spi_chip_write_256,
4623 .read = spi_chip_read,
4624 .voltage = {1650, 1950},
4625 },
4626
4627 {
4628 .vendor = "Eon",
4629 .name = "EN25S32",
4630 .bustype = BUS_SPI,
4631 .manufacture_id = EON_ID_NOPREFIX,
4632 .model_id = EON_EN25S32,
4633 .total_size = 4096,
4634 .page_size = 256,
4635 /* OTP: 512B total; enter 0x3A */
4636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4637 .tested = TEST_UNTESTED,
4638 .probe = probe_spi_rdid,
4639 .probe_timing = TIMING_ZERO,
4640 .block_erasers = {
4641 {
4642 .eraseblocks = { {4 * 1024, 1024} },
4643 .block_erase = spi_block_erase_20,
4644 }, {
4645 .eraseblocks = { {32 * 1024, 128} },
4646 .block_erase = spi_block_erase_52,
4647 }, {
4648 .eraseblocks = { {64 * 1024, 64} },
4649 .block_erase = spi_block_erase_d8,
4650 }, {
4651 .eraseblocks = { {4096 * 1024, 1} },
4652 .block_erase = spi_block_erase_60,
4653 }, {
4654 .eraseblocks = { {4096 * 1024, 1} },
4655 .block_erase = spi_block_erase_c7,
4656 }
4657 },
4658 .printlock = spi_prettyprint_status_register_en25s_wp,
4659 .unlock = spi_disable_blockprotect_bp3_srwd,
4660 .write = spi_chip_write_256,
4661 .read = spi_chip_read,
4662 .voltage = {1650, 1950},
4663 },
4664
4665 {
4666 .vendor = "Eon",
4667 .name = "EN25S64",
4668 .bustype = BUS_SPI,
4669 .manufacture_id = EON_ID_NOPREFIX,
4670 .model_id = EON_EN25S64,
4671 .total_size = 8192,
4672 .page_size = 256,
4673 /* OTP: 512B total; enter 0x3A */
4674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4675 .tested = TEST_UNTESTED,
4676 .probe = probe_spi_rdid,
4677 .probe_timing = TIMING_ZERO,
4678 .block_erasers = {
4679 {
4680 .eraseblocks = { {4 * 1024, 2048} },
4681 .block_erase = spi_block_erase_20,
4682 }, {
4683 .eraseblocks = { {64 * 1024, 128} },
4684 .block_erase = spi_block_erase_d8,
4685 }, {
4686 .eraseblocks = { {8192 * 1024, 1} },
4687 .block_erase = spi_block_erase_60,
4688 }, {
4689 .eraseblocks = { {8192 * 1024, 1} },
4690 .block_erase = spi_block_erase_c7,
4691 }
4692 },
4693 .printlock = spi_prettyprint_status_register_en25s_wp,
4694 .unlock = spi_disable_blockprotect_bp3_srwd,
4695 .write = spi_chip_write_256,
4696 .read = spi_chip_read,
4697 .voltage = {1650, 1950},
4698 },
4699
4700 {
4701 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004702 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004703 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004704 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004705 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004706 .total_size = 128,
4707 .page_size = 128,
4708 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004709 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004710 .probe = probe_jedec,
4711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4712 .block_erasers =
4713 {
4714 {
4715 .eraseblocks = { {16 * 1024, 8} },
4716 .block_erase = erase_sector_jedec,
4717 },
4718 {
4719 .eraseblocks = { {128 * 1024, 1} },
4720 .block_erase = erase_chip_block_jedec,
4721 },
4722 },
4723 .write = write_jedec_1,
4724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004725 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004726 },
4727
4728 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004729 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004730 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004731 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004732 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004733 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004734 .total_size = 256,
4735 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004736 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004737 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004740 .block_erasers =
4741 {
4742 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004743 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004744 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004745 {8 * 1024, 2},
4746 {32 * 1024, 1},
4747 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004748 },
4749 .block_erase = erase_sector_jedec,
4750 }, {
4751 .eraseblocks = { {256 * 1024, 1} },
4752 .block_erase = erase_chip_block_jedec,
4753 },
4754 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004755 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004757 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004758 },
4759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004760 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004761 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004762 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004763 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004764 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004765 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004766 .total_size = 256,
4767 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004768 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004769 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004770 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004771 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004772 .block_erasers =
4773 {
4774 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004775 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004776 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004777 {32 * 1024, 1},
4778 {8 * 1024, 2},
4779 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004780 },
4781 .block_erase = erase_sector_jedec,
4782 }, {
4783 .eraseblocks = { {256 * 1024, 1} },
4784 .block_erase = erase_chip_block_jedec,
4785 },
4786 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004789 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004790 },
4791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004792 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004793 .vendor = "Eon",
4794 .name = "EN29LV640B",
4795 .bustype = BUS_PARALLEL,
4796 .manufacture_id = EON_ID,
4797 .model_id = EON_EN29LV640B,
4798 .total_size = 8192,
4799 .page_size = 8192,
4800 .feature_bits = 0,
4801 .tested = TEST_OK_PREW,
4802 .probe = probe_en29lv640b,
4803 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4804 .block_erasers =
4805 {
4806 {
4807 .eraseblocks = {
4808 {8 * 1024, 8},
4809 {64 * 1024, 127},
4810 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004811 .block_erase = erase_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004812 }, {
4813 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004814 .block_erase = erase_chip_block_shifted_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 },
4816 },
4817 .write = write_en29lv640b,
4818 .read = read_memmapped,
4819 .voltage = {2700, 3600},
4820 },
4821
4822 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004823 .vendor = "Fujitsu",
4824 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004825 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004827 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004828 .total_size = 512,
4829 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004830 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004831 .tested = TEST_UNTESTED,
4832 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004833 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004834 .block_erasers =
4835 {
4836 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004837 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004838 {16 * 1024, 1},
4839 {8 * 1024, 2},
4840 {32 * 1024, 1},
4841 {64 * 1024, 7},
4842 },
Sean Nelson35727f72010-01-28 23:55:12 +00004843 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 }, {
4845 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004846 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004847 },
4848 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004849 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004850 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004851 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004852 },
4853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004854 {
4855 .vendor = "Fujitsu",
4856 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004857 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004858 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004859 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .total_size = 512,
4861 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 .tested = TEST_UNTESTED,
4864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004865 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004866 .block_erasers =
4867 {
4868 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004869 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004870 {64 * 1024, 7},
4871 {32 * 1024, 1},
4872 {8 * 1024, 2},
4873 {16 * 1024, 1},
4874 },
Sean Nelson35727f72010-01-28 23:55:12 +00004875 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004876 }, {
4877 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004878 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004879 },
4880 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004881 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004883 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004884 },
4885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004886 {
Sean Nelson35727f72010-01-28 23:55:12 +00004887 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004888 .vendor = "Fujitsu",
4889 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004890 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004891 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004892 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004893 .total_size = 512,
4894 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004895 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004896 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004897 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004898 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004899 .block_erasers =
4900 {
4901 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004902 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004903 {16 * 1024, 1},
4904 {8 * 1024, 2},
4905 {32 * 1024, 1},
4906 {64 * 1024, 7},
4907 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004908 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004909 }, {
4910 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004911 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004912 },
4913 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004914 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004915 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004916 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004917 },
4918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004919 {
4920 .vendor = "Fujitsu",
4921 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004922 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004923 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004924 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004925 .total_size = 512,
4926 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004927 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004928 .tested = TEST_UNTESTED,
4929 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004930 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004931 .block_erasers =
4932 {
4933 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004934 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004935 {64 * 1024, 7},
4936 {32 * 1024, 1},
4937 {8 * 1024, 2},
4938 {16 * 1024, 1},
4939 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004940 .block_erase = erase_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004941 }, {
4942 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004943 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004944 },
4945 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004946 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004947 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004948 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004949 },
4950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004951 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004952 .vendor = "Fujitsu",
4953 .name = "MBM29LV160BE",
4954 .bustype = BUS_PARALLEL,
4955 .manufacture_id = FUJITSU_ID,
4956 .model_id = FUJITSU_MBM29LV160BE,
4957 .total_size = 2 * 1024,
4958 .page_size = 0,
4959 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_m29f400bt,
4962 .probe_timing = TIMING_IGNORED,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = {
4967 {16 * 1024, 1},
4968 {8 * 1024, 2},
4969 {32 * 1024, 1},
4970 {64 * 1024, 31},
4971 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004972 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004973 }, {
4974 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00004975 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004976 },
4977 },
4978 .write = write_m29f400bt, /* Supports a fast mode too */
4979 .read = read_memmapped,
4980 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4981 },
4982
4983 {
4984 .vendor = "Fujitsu",
4985 .name = "MBM29LV160TE",
4986 .bustype = BUS_PARALLEL,
4987 .manufacture_id = FUJITSU_ID,
4988 .model_id = FUJITSU_MBM29LV160TE,
4989 .total_size = 2 * 1024,
4990 .page_size = 0,
4991 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4992 .tested = TEST_UNTESTED,
4993 .probe = probe_m29f400bt,
4994 .probe_timing = TIMING_IGNORED,
4995 .block_erasers =
4996 {
4997 {
4998 .eraseblocks = {
4999 {64 * 1024, 31},
5000 {32 * 1024, 1},
5001 {8 * 1024, 2},
5002 {16 * 1024, 1},
5003 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005004 .block_erase = erase_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005005 }, {
5006 .eraseblocks = { {2048 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +00005007 .block_erase = erase_chip_block_shifted_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005008 },
5009 },
5010 .write = write_m29f400bt, /* Supports a fast mode too */
5011 .read = read_memmapped,
5012 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5013 },
5014
5015 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005016 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005017 .name = "GD25LQ32",
5018 .bustype = BUS_SPI,
5019 .manufacture_id = GIGADEVICE_ID,
5020 .model_id = GIGADEVICE_GD25LQ32,
5021 .total_size = 4096,
5022 .page_size = 256,
5023 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5024 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5025 .tested = TEST_OK_PREW,
5026 .probe = probe_spi_rdid,
5027 .probe_timing = TIMING_ZERO,
5028 .block_erasers =
5029 {
5030 {
5031 .eraseblocks = { {4 * 1024, 1024} },
5032 .block_erase = spi_block_erase_20,
5033 }, {
5034 .eraseblocks = { {32 * 1024, 128} },
5035 .block_erase = spi_block_erase_52,
5036 }, {
5037 .eraseblocks = { {64 * 1024, 64} },
5038 .block_erase = spi_block_erase_d8,
5039 }, {
5040 .eraseblocks = { {4 * 1024 * 1024, 1} },
5041 .block_erase = spi_block_erase_60,
5042 }, {
5043 .eraseblocks = { {4 * 1024 * 1024, 1} },
5044 .block_erase = spi_block_erase_c7,
5045 }
5046 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005047 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005048 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5049 .write = spi_chip_write_256,
5050 .read = spi_chip_read,
5051 .voltage = {1700, 1950},
5052 },
5053
5054 {
5055 .vendor = "GigaDevice",
5056 .name = "GD25Q512",
5057 .bustype = BUS_SPI,
5058 .manufacture_id = GIGADEVICE_ID,
5059 .model_id = GIGADEVICE_GD25Q512,
5060 .total_size = 64,
5061 .page_size = 256,
5062 .feature_bits = FEATURE_WRSR_WREN,
5063 .tested = TEST_UNTESTED,
5064 .probe = probe_spi_rdid,
5065 .probe_timing = TIMING_ZERO,
5066 .block_erasers = {
5067 {
5068 .eraseblocks = { {4 * 1024, 16} },
5069 .block_erase = spi_block_erase_20,
5070 }, {
5071 .eraseblocks = { {32 * 1024, 2} },
5072 .block_erase = spi_block_erase_52,
5073 }, {
5074 .eraseblocks = { {64 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {64 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005081 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5083 .write = spi_chip_write_256,
5084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5085 .voltage = {2700, 3600},
5086 },
5087
5088 {
5089 .vendor = "GigaDevice",
5090 .name = "GD25Q10",
5091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q10,
5094 .total_size = 128,
5095 .page_size = 256,
5096 .feature_bits = FEATURE_WRSR_WREN,
5097 .tested = TEST_UNTESTED,
5098 .probe = probe_spi_rdid,
5099 .probe_timing = TIMING_ZERO,
5100 .block_erasers = {
5101 {
5102 .eraseblocks = { {4 * 1024, 32} },
5103 .block_erase = spi_block_erase_20,
5104 }, {
5105 .eraseblocks = { {32 * 1024, 4} },
5106 .block_erase = spi_block_erase_52,
5107 }, {
5108 .eraseblocks = { {64 * 1024, 2} },
5109 .block_erase = spi_block_erase_d8,
5110 }, {
5111 .eraseblocks = { {128 * 1024, 1} },
5112 .block_erase = spi_block_erase_60,
5113 }, {
5114 .eraseblocks = { {128 * 1024, 1} },
5115 .block_erase = spi_block_erase_c7,
5116 }
5117 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005118 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005119 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5120 .write = spi_chip_write_256,
5121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5122 .voltage = {2700, 3600},
5123 },
5124
5125 {
5126 .vendor = "GigaDevice",
5127 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005128 .bustype = BUS_SPI,
5129 .manufacture_id = GIGADEVICE_ID,
5130 .model_id = GIGADEVICE_GD25Q20,
5131 .total_size = 256,
5132 .page_size = 256,
5133 .feature_bits = FEATURE_WRSR_WREN,
5134 .tested = TEST_UNTESTED,
5135 .probe = probe_spi_rdid,
5136 .probe_timing = TIMING_ZERO,
5137 .block_erasers =
5138 {
5139 {
5140 .eraseblocks = { {4 * 1024, 64} },
5141 .block_erase = spi_block_erase_20,
5142 }, {
5143 .eraseblocks = { {32 * 1024, 8} },
5144 .block_erase = spi_block_erase_52,
5145 }, {
5146 .eraseblocks = { {64 * 1024, 4} },
5147 .block_erase = spi_block_erase_d8,
5148 }, {
5149 .eraseblocks = { {256 * 1024, 1} },
5150 .block_erase = spi_block_erase_60,
5151 }, {
5152 .eraseblocks = { {256 * 1024, 1} },
5153 .block_erase = spi_block_erase_c7,
5154 }
5155 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005156 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005157 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005158 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005160 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 },
5162
5163 {
5164 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005165 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005166 .bustype = BUS_SPI,
5167 .manufacture_id = GIGADEVICE_ID,
5168 .model_id = GIGADEVICE_GD25Q40,
5169 .total_size = 512,
5170 .page_size = 256,
5171 .feature_bits = FEATURE_WRSR_WREN,
5172 .tested = TEST_UNTESTED,
5173 .probe = probe_spi_rdid,
5174 .probe_timing = TIMING_ZERO,
5175 .block_erasers =
5176 {
5177 {
5178 .eraseblocks = { {4 * 1024, 128} },
5179 .block_erase = spi_block_erase_20,
5180 }, {
5181 .eraseblocks = { {32 * 1024, 16} },
5182 .block_erase = spi_block_erase_52,
5183 }, {
5184 .eraseblocks = { {64 * 1024, 8} },
5185 .block_erase = spi_block_erase_d8,
5186 }, {
5187 .eraseblocks = { {512 * 1024, 1} },
5188 .block_erase = spi_block_erase_60,
5189 }, {
5190 .eraseblocks = { {512 * 1024, 1} },
5191 .block_erase = spi_block_erase_c7,
5192 }
5193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005194 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005195 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005196 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005198 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005199 },
5200
5201 {
5202 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005203 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005204 .bustype = BUS_SPI,
5205 .manufacture_id = GIGADEVICE_ID,
5206 .model_id = GIGADEVICE_GD25Q80,
5207 .total_size = 1024,
5208 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005209 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005210 .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, 256} },
5218 .block_erase = spi_block_erase_20,
5219 }, {
5220 .eraseblocks = { {32 * 1024, 32} },
5221 .block_erase = spi_block_erase_52,
5222 }, {
5223 .eraseblocks = { {64 * 1024, 16} },
5224 .block_erase = spi_block_erase_d8,
5225 }, {
5226 .eraseblocks = { {1024 * 1024, 1} },
5227 .block_erase = spi_block_erase_60,
5228 }, {
5229 .eraseblocks = { {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) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005235 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005236 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005237 .voltage = {2700, 3600},
5238 },
5239
5240 {
5241 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005242 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005243 .bustype = BUS_SPI,
5244 .manufacture_id = GIGADEVICE_ID,
5245 .model_id = GIGADEVICE_GD25Q16,
5246 .total_size = 2048,
5247 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005248 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_spi_rdid,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = { {4 * 1024, 512} },
5257 .block_erase = spi_block_erase_20,
5258 }, {
5259 .eraseblocks = { {32 * 1024, 64} },
5260 .block_erase = spi_block_erase_52,
5261 }, {
5262 .eraseblocks = { {64 * 1024, 32} },
5263 .block_erase = spi_block_erase_d8,
5264 }, {
5265 .eraseblocks = { {2 * 1024 * 1024, 1} },
5266 .block_erase = spi_block_erase_60,
5267 }, {
5268 .eraseblocks = { {2 * 1024 * 1024, 1} },
5269 .block_erase = spi_block_erase_c7,
5270 }
5271 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005272 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005273 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005274 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005275 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005276 .voltage = {2700, 3600},
5277 },
5278
5279 {
5280 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005281 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005282 .bustype = BUS_SPI,
5283 .manufacture_id = GIGADEVICE_ID,
5284 .model_id = GIGADEVICE_GD25Q32,
5285 .total_size = 4096,
5286 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005287 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005289 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005290 .probe = probe_spi_rdid,
5291 .probe_timing = TIMING_ZERO,
5292 .block_erasers =
5293 {
5294 {
5295 .eraseblocks = { {4 * 1024, 1024} },
5296 .block_erase = spi_block_erase_20,
5297 }, {
5298 .eraseblocks = { {32 * 1024, 128} },
5299 .block_erase = spi_block_erase_52,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 64} },
5302 .block_erase = spi_block_erase_d8,
5303 }, {
5304 .eraseblocks = { {4 * 1024 * 1024, 1} },
5305 .block_erase = spi_block_erase_60,
5306 }, {
5307 .eraseblocks = { {4 * 1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_c7,
5309 }
5310 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005311 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005312 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005313 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005314 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .voltage = {2700, 3600},
5316 },
5317
5318 {
5319 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005320 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005321 .bustype = BUS_SPI,
5322 .manufacture_id = GIGADEVICE_ID,
5323 .model_id = GIGADEVICE_GD25Q64,
5324 .total_size = 8192,
5325 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005326 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005328 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005329 .probe = probe_spi_rdid,
5330 .probe_timing = TIMING_ZERO,
5331 .block_erasers =
5332 {
5333 {
5334 .eraseblocks = { {4 * 1024, 2048} },
5335 .block_erase = spi_block_erase_20,
5336 }, {
5337 .eraseblocks = { {32 * 1024, 256} },
5338 .block_erase = spi_block_erase_52,
5339 }, {
5340 .eraseblocks = { {64 * 1024, 128} },
5341 .block_erase = spi_block_erase_d8,
5342 }, {
5343 .eraseblocks = { {8 * 1024 * 1024, 1} },
5344 .block_erase = spi_block_erase_60,
5345 }, {
5346 .eraseblocks = { {8 * 1024 * 1024, 1} },
5347 .block_erase = spi_block_erase_c7,
5348 }
5349 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005350 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005351 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005352 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005353 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005354 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005355 },
5356
5357 {
5358 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005359 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005360 .bustype = BUS_SPI,
5361 .manufacture_id = GIGADEVICE_ID,
5362 .model_id = GIGADEVICE_GD25Q128,
5363 .total_size = 16384,
5364 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005365 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005366 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5367 .tested = TEST_UNTESTED,
5368 .probe = probe_spi_rdid,
5369 .probe_timing = TIMING_ZERO,
5370 .block_erasers =
5371 {
5372 {
5373 .eraseblocks = { {4 * 1024, 4096} },
5374 .block_erase = spi_block_erase_20,
5375 }, {
5376 .eraseblocks = { {32 * 1024, 512} },
5377 .block_erase = spi_block_erase_52,
5378 }, {
5379 .eraseblocks = { {64 * 1024, 256} },
5380 .block_erase = spi_block_erase_d8,
5381 }, {
5382 .eraseblocks = { {16 * 1024 * 1024, 1} },
5383 .block_erase = spi_block_erase_60,
5384 }, {
5385 .eraseblocks = { {16 * 1024 * 1024, 1} },
5386 .block_erase = spi_block_erase_c7,
5387 }
5388 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005389 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005390 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5391 .write = spi_chip_write_256,
5392 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5393 .voltage = {2700, 3600},
5394 },
5395
5396 {
5397 .vendor = "GigaDevice",
5398 .name = "GD25T80",
5399 .bustype = BUS_SPI,
5400 .manufacture_id = GIGADEVICE_ID,
5401 .model_id = GIGADEVICE_GD25T80,
5402 .total_size = 1024,
5403 .page_size = 256,
5404 /* OTP: 256B total; enter 0x3A */
5405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5406 .tested = TEST_UNTESTED,
5407 .probe = probe_spi_rdid,
5408 .probe_timing = TIMING_ZERO,
5409 .block_erasers = {
5410 {
5411 .eraseblocks = { {4 * 1024, 256} },
5412 .block_erase = spi_block_erase_20,
5413 }, {
5414 .eraseblocks = { {64 * 1024, 16} },
5415 .block_erase = spi_block_erase_52,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 16} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {1024 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {1024 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005427 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005431 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005432 },
5433
5434 {
David Borgc96a8bd2010-06-21 16:12:22 +00005435 .vendor = "Hyundai",
5436 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005437 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005438 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005439 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005440 .total_size = 256,
5441 .page_size = 256 * 1024,
5442 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005443 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005444 .probe = probe_jedec,
5445 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5446 .block_erasers =
5447 {
5448 {
5449 .eraseblocks = {
5450 {64 * 1024, 3},
5451 {32 * 1024, 1},
5452 {8 * 1024, 2},
5453 {16 * 1024, 1},
5454 },
5455 .block_erase = erase_sector_jedec,
5456 }, {
5457 .eraseblocks = { {256 * 1024, 1} },
5458 .block_erase = erase_chip_block_jedec,
5459 },
5460 },
5461 .write = write_jedec_1,
5462 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005463 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005464 },
5465
5466 {
5467 .vendor = "Hyundai",
5468 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005469 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005470 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005471 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005472 .total_size = 256,
5473 .page_size = 256 * 1024,
5474 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5475 .tested = TEST_UNTESTED,
5476 .probe = probe_jedec,
5477 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5478 .block_erasers =
5479 {
5480 {
5481 .eraseblocks = {
5482 {16 * 1024, 1},
5483 {8 * 1024, 2},
5484 {32 * 1024, 1},
5485 {64 * 1024, 3},
5486 },
5487 .block_erase = erase_sector_jedec,
5488 }, {
5489 .eraseblocks = { {256 * 1024, 1} },
5490 .block_erase = erase_chip_block_jedec,
5491 },
5492 },
5493 .write = write_jedec_1,
5494 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005495 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005496 },
5497
5498 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005499 .vendor = "Hyundai",
5500 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005501 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005502 .manufacture_id = HYUNDAI_ID,
5503 .model_id = HYUNDAI_HY29F040A,
5504 .total_size = 512,
5505 .page_size = 64 * 1024,
5506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5507 .tested = TEST_UNTESTED,
5508 .probe = probe_jedec,
5509 .probe_timing = TIMING_ZERO,
5510 .block_erasers =
5511 {
5512 {
5513 .eraseblocks = { {64 * 1024, 8} },
5514 .block_erase = erase_sector_jedec,
5515 }, {
5516 .eraseblocks = { {512 * 1024, 1} },
5517 .block_erase = erase_chip_block_jedec,
5518 },
5519 },
5520 .write = write_jedec_1,
5521 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005522 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005523 },
5524
5525 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005526 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005527 .name = "25F160S33B8",
5528 .bustype = BUS_SPI,
5529 .manufacture_id = INTEL_ID,
5530 .model_id = INTEL_25F160S33B8,
5531 .total_size = 2048,
5532 .page_size = 256,
5533 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5535 .tested = TEST_UNTESTED,
5536 .probe = probe_spi_rdid,
5537 .probe_timing = TIMING_ZERO,
5538 .block_erasers =
5539 {
5540 {
5541 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5542 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5543 * have no effect on the memory contents, but sets a flag in the SR.
5544 .eraseblocks = {
5545 {8 * 1024, 8},
5546 {64 * 1024, 31} // inaccessible
5547 },
5548 .block_erase = spi_block_erase_40,
5549 }, { */
5550 .eraseblocks = { {64 * 1024, 32} },
5551 .block_erase = spi_block_erase_d8,
5552 }, {
5553 .eraseblocks = { {2 * 1024 * 1024, 1} },
5554 .block_erase = spi_block_erase_c7,
5555 }
5556 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005557 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5558 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005559 .write = spi_chip_write_256,
5560 .read = spi_chip_read, /* also fast read 0x0B */
5561 .voltage = {2700, 3600},
5562 },
5563
5564 {
5565 .vendor = "Intel",
5566 .name = "25F160S33T8",
5567 .bustype = BUS_SPI,
5568 .manufacture_id = INTEL_ID,
5569 .model_id = INTEL_25F160S33T8,
5570 .total_size = 2048,
5571 .page_size = 256,
5572 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5574 .tested = TEST_UNTESTED,
5575 .probe = probe_spi_rdid,
5576 .probe_timing = TIMING_ZERO,
5577 .block_erasers =
5578 {
5579 {
5580 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5581 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5582 * have no effect on the memory contents, but sets a flag in the SR.
5583 .eraseblocks = {
5584 {64 * 1024, 31}, // inaccessible
5585 {8 * 1024, 8}
5586 },
5587 .block_erase = spi_block_erase_40,
5588 }, { */
5589 .eraseblocks = { {64 * 1024, 32} },
5590 .block_erase = spi_block_erase_d8,
5591 }, {
5592 .eraseblocks = { {2 * 1024 * 1024, 1} },
5593 .block_erase = spi_block_erase_c7,
5594 }
5595 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005596 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5597 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005598 .write = spi_chip_write_256,
5599 .read = spi_chip_read, /* also fast read 0x0B */
5600 .voltage = {2700, 3600},
5601 },
5602
5603 {
5604 .vendor = "Intel",
5605 .name = "25F320S33B8",
5606 .bustype = BUS_SPI,
5607 .manufacture_id = INTEL_ID,
5608 .model_id = INTEL_25F320S33B8,
5609 .total_size = 4096,
5610 .page_size = 256,
5611 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5612 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5613 .tested = TEST_UNTESTED,
5614 .probe = probe_spi_rdid,
5615 .probe_timing = TIMING_ZERO,
5616 .block_erasers =
5617 {
5618 {
5619 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5620 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5621 * have no effect on the memory contents, but sets a flag in the SR.
5622 .eraseblocks = {
5623 {8 * 1024, 8},
5624 {64 * 1024, 63} // inaccessible
5625 },
5626 .block_erase = spi_block_erase_40,
5627 }, { */
5628 .eraseblocks = { {64 * 1024, 64} },
5629 .block_erase = spi_block_erase_d8,
5630 }, {
5631 .eraseblocks = { {4 * 1024 * 1024, 1} },
5632 .block_erase = spi_block_erase_c7,
5633 }
5634 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005635 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5636 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005637 .write = spi_chip_write_256,
5638 .read = spi_chip_read, /* also fast read 0x0B */
5639 .voltage = {2700, 3600},
5640 },
5641
5642 {
5643 .vendor = "Intel",
5644 .name = "25F320S33T8",
5645 .bustype = BUS_SPI,
5646 .manufacture_id = INTEL_ID,
5647 .model_id = INTEL_25F320S33T8,
5648 .total_size = 4096,
5649 .page_size = 256,
5650 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5652 .tested = TEST_UNTESTED,
5653 .probe = probe_spi_rdid,
5654 .probe_timing = TIMING_ZERO,
5655 .block_erasers =
5656 {
5657 {
5658 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5659 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5660 * have no effect on the memory contents, but sets a flag in the SR.
5661 .eraseblocks = {
5662 {64 * 1024, 63}, // inaccessible
5663 {8 * 1024, 8}
5664 },
5665 .block_erase = spi_block_erase_40,
5666 }, { */
5667 .eraseblocks = { {64 * 1024, 64} },
5668 .block_erase = spi_block_erase_d8,
5669 }, {
5670 .eraseblocks = { {4 * 1024 * 1024, 1} },
5671 .block_erase = spi_block_erase_c7,
5672 }
5673 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005674 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5675 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005676 .write = spi_chip_write_256,
5677 .read = spi_chip_read, /* also fast read 0x0B */
5678 .voltage = {2700, 3600},
5679 },
5680
5681 {
5682 .vendor = "Intel",
5683 .name = "25F640S33B8",
5684 .bustype = BUS_SPI,
5685 .manufacture_id = INTEL_ID,
5686 .model_id = INTEL_25F640S33B8,
5687 .total_size = 8192,
5688 .page_size = 256,
5689 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5691 .tested = TEST_UNTESTED,
5692 .probe = probe_spi_rdid,
5693 .probe_timing = TIMING_ZERO,
5694 .block_erasers =
5695 {
5696 {
5697 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5698 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5699 * have no effect on the memory contents, but sets a flag in the SR.
5700 .eraseblocks = {
5701 {8 * 1024, 8},
5702 {64 * 1024, 127} // inaccessible
5703 },
5704 .block_erase = spi_block_erase_40,
5705 }, { */
5706 .eraseblocks = { {64 * 1024, 128} },
5707 .block_erase = spi_block_erase_d8,
5708 }, {
5709 .eraseblocks = { {8 * 1024 * 1024, 1} },
5710 .block_erase = spi_block_erase_c7,
5711 }
5712 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005713 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5714 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005715 .write = spi_chip_write_256,
5716 .read = spi_chip_read, /* also fast read 0x0B */
5717 .voltage = {2700, 3600},
5718 },
5719
5720 {
5721 .vendor = "Intel",
5722 .name = "25F640S33T8",
5723 .bustype = BUS_SPI,
5724 .manufacture_id = INTEL_ID,
5725 .model_id = INTEL_25F640S33T8,
5726 .total_size = 8192,
5727 .page_size = 256,
5728 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5730 .tested = TEST_UNTESTED,
5731 .probe = probe_spi_rdid,
5732 .probe_timing = TIMING_ZERO,
5733 .block_erasers =
5734 {
5735 {
5736 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5737 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5738 * have no effect on the memory contents, but sets a flag in the SR.
5739 .eraseblocks = {
5740 {64 * 1024, 127}, // inaccessible
5741 {8 * 1024, 8}
5742 },
5743 .block_erase = spi_block_erase_40,
5744 }, { */
5745 .eraseblocks = { {64 * 1024, 128} },
5746 .block_erase = spi_block_erase_d8,
5747 }, {
5748 .eraseblocks = { {8 * 1024 * 1024, 1} },
5749 .block_erase = spi_block_erase_c7,
5750 }
5751 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005752 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5753 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005754 .write = spi_chip_write_256,
5755 .read = spi_chip_read, /* also fast read 0x0B */
5756 .voltage = {2700, 3600},
5757 },
5758
5759 {
5760 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005761 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005762 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005763 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005764 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005765 .total_size = 128,
5766 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005767 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005768 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005769 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005770 .block_erasers =
5771 {
5772 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005773 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005774 {8 * 1024, 1},
5775 {4 * 1024, 2},
5776 {112 * 1024, 1},
5777 },
Sean Nelson28accc22010-03-19 18:47:06 +00005778 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005779 },
5780 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005781 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005783 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005784 },
5785
5786 {
5787 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005788 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005789 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005790 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005791 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005792 .total_size = 128,
5793 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005794 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005795 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005796 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005797 .block_erasers =
5798 {
5799 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005800 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005801 {112 * 1024, 1},
5802 {4 * 1024, 2},
5803 {8 * 1024, 1},
5804 },
Sean Nelson28accc22010-03-19 18:47:06 +00005805 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005806 },
5807 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005808 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005809 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005810 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005811 },
5812
5813 {
5814 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005815 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005816 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005817 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005818 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005819 .total_size = 256,
5820 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005821 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005822 .probe = probe_82802ab,
5823 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5824 .block_erasers =
5825 {
5826 {
5827 .eraseblocks = {
5828 {128 * 1024, 1},
5829 {96 * 1024, 1},
5830 {8 * 1024, 2},
5831 {16 * 1024, 1},
5832 },
5833 .block_erase = erase_block_82802ab,
5834 },
5835 },
5836 .write = write_82802ab,
5837 .read = read_memmapped,
5838 },
5839
5840 {
5841 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005842 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005843 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005844 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005845 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005846 .total_size = 512,
5847 .page_size = 256,
5848 .tested = TEST_UNTESTED,
5849 .probe = probe_82802ab,
5850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005851 .block_erasers =
5852 {
5853 {
5854 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005855 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005856 },
5857 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005858 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005859 .write = write_82802ab,
5860 .read = read_memmapped,
5861 },
5862
5863 {
5864 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005866 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005867 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005868 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005869 .total_size = 512,
5870 .page_size = 128 * 1024, /* maximal block size */
5871 .tested = TEST_UNTESTED,
5872 .probe = probe_82802ab,
5873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5874 .block_erasers =
5875 {
5876 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005877 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005878 {16 * 1024, 1},
5879 {8 * 1024, 2},
5880 {96 * 1024, 1},
5881 {128 * 1024, 3},
5882 },
5883 .block_erase = erase_block_82802ab,
5884 },
5885 },
5886 .write = write_82802ab,
5887 .read = read_memmapped,
5888 },
5889
5890 {
5891 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005892 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005893 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005894 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005895 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005896 .total_size = 512,
5897 .page_size = 128 * 1024, /* maximal block size */
5898 .tested = TEST_UNTESTED,
5899 .probe = probe_82802ab,
5900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5901 .block_erasers =
5902 {
5903 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005904 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005905 {128 * 1024, 3},
5906 {96 * 1024, 1},
5907 {8 * 1024, 2},
5908 {16 * 1024, 1},
5909 },
5910 .block_erase = erase_block_82802ab,
5911 },
5912 },
5913 .write = write_82802ab,
5914 .read = read_memmapped,
5915 },
5916
5917 {
5918 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005919 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005920 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005921 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005922 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005923 .total_size = 512,
5924 .page_size = 128 * 1024, /* maximal block size */
5925 .feature_bits = FEATURE_ADDR_SHIFTED,
5926 .tested = TEST_UNTESTED,
5927 .probe = probe_82802ab,
5928 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5929 .block_erasers =
5930 {
5931 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005932 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005933 {16 * 1024, 1},
5934 {8 * 1024, 2},
5935 {96 * 1024, 1},
5936 {128 * 1024, 3},
5937 },
5938 .block_erase = erase_block_82802ab,
5939 },
5940 },
5941 .write = write_82802ab,
5942 .read = read_memmapped,
5943 },
5944
5945 {
5946 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005947 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005948 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005949 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005950 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005951 .total_size = 512,
5952 .page_size = 128 * 1024, /* maximal block size */
5953 .feature_bits = FEATURE_ADDR_SHIFTED,
5954 .tested = TEST_UNTESTED,
5955 .probe = probe_82802ab,
5956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5957 .block_erasers =
5958 {
5959 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005960 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005961 {128 * 1024, 3},
5962 {96 * 1024, 1},
5963 {8 * 1024, 2},
5964 {16 * 1024, 1},
5965 },
5966 .block_erase = erase_block_82802ab,
5967 },
5968 },
5969 .write = write_82802ab,
5970 .read = read_memmapped,
5971 },
5972
5973 {
5974 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005975 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005976 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005977 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005978 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005979 .total_size = 512,
5980 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005981 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00005982 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005983 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005984 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005985 .block_erasers =
5986 {
5987 {
5988 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005989 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005990 },
5991 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00005992 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005993 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005995 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005996 },
5997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005998 {
5999 .vendor = "Intel",
6000 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006001 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006003 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006004 .total_size = 1024,
6005 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006006 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006007 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006009 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006010 .block_erasers =
6011 {
6012 {
6013 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006014 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006015 },
6016 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006017 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006018 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006021 },
6022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006023 {
6024 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006025 .name = "MX23L3254",
6026 .bustype = BUS_SPI,
6027 .manufacture_id = MACRONIX_ID,
6028 .model_id = MACRONIX_MX23L3254,
6029 .total_size = 4096,
6030 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006031 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006032 .probe = probe_spi_rdid,
6033 .probe_timing = TIMING_ZERO,
6034 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6035 .read = spi_chip_read, /* Fast read (0x0B) supported */
6036 .voltage = {3000, 3600},
6037 },
6038
6039 {
6040 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006041 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .manufacture_id = MACRONIX_ID,
6044 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 64,
6046 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006047 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006048 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006049 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006051 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006052 .block_erasers =
6053 {
6054 {
6055 .eraseblocks = { {4 * 1024, 16} },
6056 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006057 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006058 .eraseblocks = { {64 * 1024, 1} },
6059 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006060 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006061 .eraseblocks = { {64 * 1024, 1} },
6062 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006063 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006064 .eraseblocks = { {64 * 1024, 1} },
6065 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006066 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006067 .eraseblocks = { {64 * 1024, 1} },
6068 .block_erase = spi_block_erase_c7,
6069 },
6070 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006071 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006073 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006074 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6075 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006076 },
6077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006078 {
6079 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006080 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006081 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006082 .manufacture_id = MACRONIX_ID,
6083 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006084 .total_size = 128,
6085 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006086 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006087 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006088 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006089 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006090 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006091 .block_erasers =
6092 {
6093 {
6094 .eraseblocks = { {4 * 1024, 32} },
6095 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006096 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006097 .eraseblocks = { {64 * 1024, 2} },
6098 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006099 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006100 .eraseblocks = { {128 * 1024, 1} },
6101 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006102 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006103 .eraseblocks = { {128 * 1024, 1} },
6104 .block_erase = spi_block_erase_c7,
6105 },
6106 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006107 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006108 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006109 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006110 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006111 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006112 },
6113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006114 {
6115 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006116 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006117 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006118 .manufacture_id = MACRONIX_ID,
6119 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006120 .total_size = 256,
6121 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006122 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006123 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006125 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006126 .block_erasers =
6127 {
6128 {
6129 .eraseblocks = { {4 * 1024, 64} },
6130 .block_erase = spi_block_erase_20,
6131 }, {
6132 .eraseblocks = { {64 * 1024, 4} },
6133 .block_erase = spi_block_erase_52,
6134 }, {
6135 .eraseblocks = { {64 * 1024, 4} },
6136 .block_erase = spi_block_erase_d8,
6137 }, {
6138 .eraseblocks = { {256 * 1024, 1} },
6139 .block_erase = spi_block_erase_60,
6140 }, {
6141 .eraseblocks = { {256 * 1024, 1} },
6142 .block_erase = spi_block_erase_c7,
6143 },
6144 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006145 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006146 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006147 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006148 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006149 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006150 },
6151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006152 {
6153 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006154 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006155 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006156 .manufacture_id = MACRONIX_ID,
6157 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .total_size = 512,
6159 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006160 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006163 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006164 .block_erasers =
6165 {
6166 {
6167 .eraseblocks = { {4 * 1024, 128} },
6168 .block_erase = spi_block_erase_20,
6169 }, {
6170 .eraseblocks = { {64 * 1024, 8} },
6171 .block_erase = spi_block_erase_52,
6172 }, {
6173 .eraseblocks = { {64 * 1024, 8} },
6174 .block_erase = spi_block_erase_d8,
6175 }, {
6176 .eraseblocks = { {512 * 1024, 1} },
6177 .block_erase = spi_block_erase_60,
6178 }, {
6179 .eraseblocks = { {512 * 1024, 1} },
6180 .block_erase = spi_block_erase_c7,
6181 },
6182 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006183 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006184 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006185 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006186 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006187 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006188 },
6189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 {
6191 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006192 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006193 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006194 .manufacture_id = MACRONIX_ID,
6195 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .total_size = 1024,
6197 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006198 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006199 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006200 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006201 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006202 .block_erasers =
6203 {
6204 {
6205 .eraseblocks = { {4 * 1024, 256} },
6206 .block_erase = spi_block_erase_20,
6207 }, {
6208 .eraseblocks = { {64 * 1024, 16} },
6209 .block_erase = spi_block_erase_52,
6210 }, {
6211 .eraseblocks = { {64 * 1024, 16} },
6212 .block_erase = spi_block_erase_d8,
6213 }, {
6214 .eraseblocks = { {1024 * 1024, 1} },
6215 .block_erase = spi_block_erase_60,
6216 }, {
6217 .eraseblocks = { {1024 * 1024, 1} },
6218 .block_erase = spi_block_erase_c7,
6219 },
6220 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006221 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006222 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006223 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006224 .read = spi_chip_read, /* Fast read (0x0B) supported */
6225 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006226 },
6227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006228 {
6229 .vendor = "Macronix",
6230 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006231 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006232 .manufacture_id = MACRONIX_ID,
6233 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006234 .total_size = 2048,
6235 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006236 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006239 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006240 .block_erasers =
6241 {
6242 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006243 .eraseblocks = { {64 * 1024, 32} },
6244 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006245 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006246 .eraseblocks = { {64 * 1024, 32} },
6247 .block_erase = spi_block_erase_d8,
6248 }, {
6249 .eraseblocks = { {2 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_60,
6251 }, {
6252 .eraseblocks = { {2 * 1024 * 1024, 1} },
6253 .block_erase = spi_block_erase_c7,
6254 },
6255 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006256 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006257 .unlock = spi_disable_blockprotect,
6258 .write = spi_chip_write_256,
6259 .read = spi_chip_read, /* Fast read (0x0B) supported */
6260 .voltage = {2700, 3600},
6261 },
6262
6263 {
6264 .vendor = "Macronix",
6265 .name = "MX25L1605A/MX25L1606E",
6266 .bustype = BUS_SPI,
6267 .manufacture_id = MACRONIX_ID,
6268 .model_id = MACRONIX_MX25L1605,
6269 .total_size = 2048,
6270 .page_size = 256,
6271 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6273 .tested = TEST_OK_PREW,
6274 .probe = probe_spi_rdid,
6275 .probe_timing = TIMING_ZERO,
6276 .block_erasers =
6277 {
6278 {
6279 .eraseblocks = { {4 * 1024, 512} },
6280 .block_erase = spi_block_erase_20,
6281 }, {
6282 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006283 .block_erase = spi_block_erase_52,
6284 }, {
6285 .eraseblocks = { {64 * 1024, 32} },
6286 .block_erase = spi_block_erase_d8,
6287 }, {
6288 .eraseblocks = { {2 * 1024 * 1024, 1} },
6289 .block_erase = spi_block_erase_60,
6290 }, {
6291 .eraseblocks = { {2 * 1024 * 1024, 1} },
6292 .block_erase = spi_block_erase_c7,
6293 },
6294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006295 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006296 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006297 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .read = spi_chip_read, /* Fast read (0x0B) supported */
6299 .voltage = {2700, 3600},
6300 },
6301
6302 {
6303 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006304 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006305 .bustype = BUS_SPI,
6306 .manufacture_id = MACRONIX_ID,
6307 .model_id = MACRONIX_MX25L1605,
6308 .total_size = 2048,
6309 .page_size = 256,
6310 .feature_bits = FEATURE_WRSR_WREN,
6311 .tested = TEST_OK_PREW,
6312 .probe = probe_spi_rdid,
6313 .probe_timing = TIMING_ZERO,
6314 .block_erasers =
6315 {
6316 {
6317 .eraseblocks = { {4 * 1024, 512} },
6318 .block_erase = spi_block_erase_20,
6319 }, {
6320 .eraseblocks = { {64 * 1024, 32} },
6321 .block_erase = spi_block_erase_d8,
6322 }, {
6323 .eraseblocks = { {2 * 1024 * 1024, 1} },
6324 .block_erase = spi_block_erase_60,
6325 }, {
6326 .eraseblocks = { {2 * 1024 * 1024, 1} },
6327 .block_erase = spi_block_erase_c7,
6328 },
6329 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006330 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006331 .unlock = spi_disable_blockprotect,
6332 .write = spi_chip_write_256,
6333 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006334 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006335 },
6336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006337 {
6338 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006339 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006340 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006341 .manufacture_id = MACRONIX_ID,
6342 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006343 .total_size = 2048,
6344 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006345 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6346 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006347 .tested = TEST_UNTESTED,
6348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006349 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006350 .block_erasers =
6351 {
6352 {
6353 .eraseblocks = { {4 * 1024, 512} },
6354 .block_erase = spi_block_erase_20,
6355 }, {
6356 .eraseblocks = { {64 * 1024, 32} },
6357 .block_erase = spi_block_erase_d8,
6358 }, {
6359 .eraseblocks = { {2 * 1024 * 1024, 1} },
6360 .block_erase = spi_block_erase_60,
6361 }, {
6362 .eraseblocks = { {2 * 1024 * 1024, 1} },
6363 .block_erase = spi_block_erase_c7,
6364 }
6365 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006366 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006368 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006369 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006370 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006371 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006372
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006373 {
6374 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006375 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006376 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006377 .manufacture_id = MACRONIX_ID,
6378 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006379 .total_size = 2048,
6380 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006381 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006383 .tested = TEST_UNTESTED,
6384 .probe = probe_spi_rdid,
6385 .probe_timing = TIMING_ZERO,
6386 .block_erasers =
6387 {
6388 {
6389 .eraseblocks = { {4 * 1024, 512} },
6390 .block_erase = spi_block_erase_20,
6391 }, {
6392 .eraseblocks = { {64 * 1024, 32} },
6393 .block_erase = spi_block_erase_d8,
6394 }, {
6395 .eraseblocks = { {2 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_60,
6397 }, {
6398 .eraseblocks = { {2 * 1024 * 1024, 1} },
6399 .block_erase = spi_block_erase_c7,
6400 }
6401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006403 .unlock = spi_disable_blockprotect,
6404 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006406 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006407 },
6408
6409 {
6410 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006411 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006412 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006413 .manufacture_id = MACRONIX_ID,
6414 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006415 .total_size = 4096,
6416 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006417 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006420 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006421 .block_erasers =
6422 {
6423 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006424 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006425 .block_erase = spi_block_erase_20,
6426 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006427 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006428 .block_erase = spi_block_erase_d8,
6429 }, {
6430 .eraseblocks = { {4 * 1024 * 1024, 1} },
6431 .block_erase = spi_block_erase_60,
6432 }, {
6433 .eraseblocks = { {4 * 1024 * 1024, 1} },
6434 .block_erase = spi_block_erase_c7,
6435 },
6436 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006437 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006438 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006439 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006440 .read = spi_chip_read, /* Fast read (0x0B) supported */
6441 .voltage = {2700, 3600},
6442 },
6443
6444 {
6445 .vendor = "Macronix",
6446 .name = "MX25L3205D/MX25L3208D",
6447 .bustype = BUS_SPI,
6448 .manufacture_id = MACRONIX_ID,
6449 .model_id = MACRONIX_MX25L3205,
6450 .total_size = 4096,
6451 .page_size = 256,
6452 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6454 .tested = TEST_OK_PREW,
6455 .probe = probe_spi_rdid,
6456 .probe_timing = TIMING_ZERO,
6457 .block_erasers =
6458 {
6459 {
6460 .eraseblocks = { {4 * 1024, 1024} },
6461 .block_erase = spi_block_erase_20,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 64} },
6464 .block_erase = spi_block_erase_d8,
6465 }, {
6466 .eraseblocks = { {4 * 1024 * 1024, 1} },
6467 .block_erase = spi_block_erase_60,
6468 }, {
6469 .eraseblocks = { {4 * 1024 * 1024, 1} },
6470 .block_erase = spi_block_erase_c7,
6471 },
6472 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006473 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006474 .unlock = spi_disable_blockprotect,
6475 .write = spi_chip_write_256,
6476 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6477 .voltage = {2700, 3600},
6478 },
6479
6480 {
6481 .vendor = "Macronix",
6482 .name = "MX25L3206E",
6483 .bustype = BUS_SPI,
6484 .manufacture_id = MACRONIX_ID,
6485 .model_id = MACRONIX_MX25L3205,
6486 .total_size = 4096,
6487 .page_size = 256,
6488 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6490 .tested = TEST_OK_PREW,
6491 .probe = probe_spi_rdid,
6492 .probe_timing = TIMING_ZERO,
6493 .block_erasers =
6494 {
6495 {
6496 .eraseblocks = { {4 * 1024, 1024} },
6497 .block_erase = spi_block_erase_20,
6498 }, {
6499 .eraseblocks = { {64 * 1024, 64} },
6500 .block_erase = spi_block_erase_d8,
6501 }, {
6502 .eraseblocks = { {64 * 1024, 64} },
6503 .block_erase = spi_block_erase_52,
6504 }, {
6505 .eraseblocks = { {4 * 1024 * 1024, 1} },
6506 .block_erase = spi_block_erase_60,
6507 }, {
6508 .eraseblocks = { {4 * 1024 * 1024, 1} },
6509 .block_erase = spi_block_erase_c7,
6510 },
6511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006512 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006513 .unlock = spi_disable_blockprotect,
6514 .write = spi_chip_write_256,
6515 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006516 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006517 },
6518
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006519 {
6520 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006521 .name = "MX25L3273E",
6522 .bustype = BUS_SPI,
6523 .manufacture_id = MACRONIX_ID,
6524 .model_id = MACRONIX_MX25L3205,
6525 .total_size = 4096,
6526 .page_size = 256,
6527 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6529 .tested = TEST_UNTESTED,
6530 .probe = probe_spi_rdid,
6531 .probe_timing = TIMING_ZERO,
6532 .block_erasers =
6533 {
6534 {
6535 .eraseblocks = { {4 * 1024, 1024} },
6536 .block_erase = spi_block_erase_20,
6537 }, {
6538 .eraseblocks = { {32 * 1024, 128} },
6539 .block_erase = spi_block_erase_52,
6540 }, {
6541 .eraseblocks = { {64 * 1024, 64} },
6542 .block_erase = spi_block_erase_d8,
6543 }, {
6544 .eraseblocks = { {4 * 1024 * 1024, 1} },
6545 .block_erase = spi_block_erase_60,
6546 }, {
6547 .eraseblocks = { {4 * 1024 * 1024, 1} },
6548 .block_erase = spi_block_erase_c7,
6549 },
6550 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006551 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006552 .unlock = spi_disable_blockprotect,
6553 .write = spi_chip_write_256,
6554 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6555 .voltage = {2700, 3600},
6556 },
6557
6558 {
6559 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006560 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006561 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006562 .manufacture_id = MACRONIX_ID,
6563 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006564 .total_size = 4096,
6565 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006566 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006568 .tested = TEST_UNTESTED,
6569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006570 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006571 .block_erasers =
6572 {
6573 {
6574 .eraseblocks = { {4 * 1024, 1024} },
6575 .block_erase = spi_block_erase_20,
6576 }, {
6577 .eraseblocks = { {64 * 1024, 64} },
6578 .block_erase = spi_block_erase_d8,
6579 }, {
6580 .eraseblocks = { {4 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_60,
6582 }, {
6583 .eraseblocks = { {4 * 1024 * 1024, 1} },
6584 .block_erase = spi_block_erase_c7,
6585 }
6586 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006587 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006588 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006589 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006590 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006591 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006592 },
6593
6594 {
6595 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006596 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006597 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006598 .manufacture_id = MACRONIX_ID,
6599 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .total_size = 8192,
6601 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006602 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006606 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006607 .block_erasers =
6608 {
6609 {
6610 .eraseblocks = { {64 * 1024, 128} },
6611 .block_erase = spi_block_erase_20,
6612 }, {
6613 .eraseblocks = { {64 * 1024, 128} },
6614 .block_erase = spi_block_erase_d8,
6615 }, {
6616 .eraseblocks = { {8 * 1024 * 1024, 1} },
6617 .block_erase = spi_block_erase_60,
6618 }, {
6619 .eraseblocks = { {8 * 1024 * 1024, 1} },
6620 .block_erase = spi_block_erase_c7,
6621 }
6622 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006623 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006624 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006625 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006626 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006627 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006628 },
6629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006630 {
6631 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006632 .name = "MX25L6406E/MX25L6436E",
6633 .bustype = BUS_SPI,
6634 .manufacture_id = MACRONIX_ID,
6635 .model_id = MACRONIX_MX25L6405,
6636 .total_size = 8192,
6637 .page_size = 256,
6638 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6640 .tested = TEST_OK_PREW,
6641 .probe = probe_spi_rdid,
6642 .probe_timing = TIMING_ZERO,
6643 .block_erasers =
6644 {
6645 {
6646 .eraseblocks = { {4 * 1024, 2048} },
6647 .block_erase = spi_block_erase_20,
6648 }, {
6649 .eraseblocks = { {64 * 1024, 128} },
6650 .block_erase = spi_block_erase_d8,
6651 }, {
6652 .eraseblocks = { {8 * 1024 * 1024, 1} },
6653 .block_erase = spi_block_erase_60,
6654 }, {
6655 .eraseblocks = { {8 * 1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_c7,
6657 }
6658 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006659 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006660 .unlock = spi_disable_blockprotect,
6661 .write = spi_chip_write_256,
6662 .read = spi_chip_read,
6663 .voltage = {2700, 3600},
6664 },
6665
6666 {
6667 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006668 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006669 .bustype = BUS_SPI,
6670 .manufacture_id = MACRONIX_ID,
6671 .model_id = MACRONIX_MX25L6405,
6672 .total_size = 8192,
6673 .page_size = 256,
6674 /* supports SFDP */
6675 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6677 .tested = TEST_OK_PREW,
6678 .probe = probe_spi_rdid,
6679 .probe_timing = TIMING_ZERO,
6680 .block_erasers =
6681 {
6682 {
6683 .eraseblocks = { {4 * 1024, 2048} },
6684 .block_erase = spi_block_erase_20,
6685 }, {
6686 .eraseblocks = { {32 * 1024, 256} },
6687 .block_erase = spi_block_erase_52,
6688 }, {
6689 .eraseblocks = { {64 * 1024, 128} },
6690 .block_erase = spi_block_erase_d8,
6691 }, {
6692 .eraseblocks = { {8 * 1024 * 1024, 1} },
6693 .block_erase = spi_block_erase_60,
6694 }, {
6695 .eraseblocks = { {8 * 1024 * 1024, 1} },
6696 .block_erase = spi_block_erase_c7,
6697 }
6698 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006699 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00006700 .unlock = spi_disable_blockprotect,
6701 .write = spi_chip_write_256,
6702 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6703 .voltage = {2700, 3600},
6704 },
6705
6706 {
6707 .vendor = "Macronix",
6708 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006709 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006710 .manufacture_id = MACRONIX_ID,
6711 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006712 .total_size = 16384,
6713 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006714 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006716 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006718 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006719 .block_erasers =
6720 {
6721 {
6722 .eraseblocks = { {4 * 1024, 4096} },
6723 .block_erase = spi_block_erase_20,
6724 }, {
6725 .eraseblocks = { {64 * 1024, 256} },
6726 .block_erase = spi_block_erase_d8,
6727 }, {
6728 .eraseblocks = { {16 * 1024 * 1024, 1} },
6729 .block_erase = spi_block_erase_60,
6730 }, {
6731 .eraseblocks = { {16 * 1024 * 1024, 1} },
6732 .block_erase = spi_block_erase_c7,
6733 }
6734 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006735 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006736 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006737 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006738 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006739 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006740 },
6741
6742 {
6743 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006744 .name = "MX25U1635E",
6745 .bustype = BUS_SPI,
6746 .manufacture_id = MACRONIX_ID,
6747 .model_id = MACRONIX_MX25U1635E,
6748 .total_size = 2048,
6749 .page_size = 256,
6750 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6751 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6753 .tested = TEST_UNTESTED,
6754 .probe = probe_spi_rdid,
6755 .probe_timing = TIMING_ZERO,
6756 .block_erasers =
6757 {
6758 {
6759 .eraseblocks = { {4 * 1024, 512} },
6760 .block_erase = spi_block_erase_20,
6761 }, {
6762 .eraseblocks = { {32 * 1024, 64} },
6763 .block_erase = spi_block_erase_52,
6764 }, {
6765 .eraseblocks = { {64 * 1024, 32} },
6766 .block_erase = spi_block_erase_d8,
6767 }, {
6768 .eraseblocks = { {2 * 1024 * 1024, 1} },
6769 .block_erase = spi_block_erase_60,
6770 }, {
6771 .eraseblocks = { {2 * 1024 * 1024, 1} },
6772 .block_erase = spi_block_erase_c7,
6773 }
6774 },
6775 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006776 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006777 .unlock = spi_disable_blockprotect,
6778 .write = spi_chip_write_256,
6779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6780 .voltage = {1650, 2000},
6781 },
6782
6783 {
6784 .vendor = "Macronix",
6785 .name = "MX25U3235E/F",
6786 .bustype = BUS_SPI,
6787 .manufacture_id = MACRONIX_ID,
6788 .model_id = MACRONIX_MX25U3235E,
6789 .total_size = 4096,
6790 .page_size = 256,
6791 /* F model supports SFDP */
6792 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6793 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6795 .tested = TEST_OK_PREW,
6796 .probe = probe_spi_rdid,
6797 .probe_timing = TIMING_ZERO,
6798 .block_erasers =
6799 {
6800 {
6801 .eraseblocks = { {4 * 1024, 1024} },
6802 .block_erase = spi_block_erase_20,
6803 }, {
6804 .eraseblocks = { {32 * 1024, 128} },
6805 .block_erase = spi_block_erase_52,
6806 }, {
6807 .eraseblocks = { {64 * 1024, 64} },
6808 .block_erase = spi_block_erase_d8,
6809 }, {
6810 .eraseblocks = { {4 * 1024 * 1024, 1} },
6811 .block_erase = spi_block_erase_60,
6812 }, {
6813 .eraseblocks = { {4 * 1024 * 1024, 1} },
6814 .block_erase = spi_block_erase_c7,
6815 }
6816 },
6817 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006818 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006819 .unlock = spi_disable_blockprotect,
6820 .write = spi_chip_write_256,
6821 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6822 .voltage = {1650, 2000},
6823 },
6824
6825 {
6826 .vendor = "Macronix",
6827 .name = "MX25U6435E/F",
6828 .bustype = BUS_SPI,
6829 .manufacture_id = MACRONIX_ID,
6830 .model_id = MACRONIX_MX25U6435E,
6831 .total_size = 8192,
6832 .page_size = 256,
6833 /* F model supports SFDP */
6834 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6835 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6837 .tested = TEST_UNTESTED,
6838 .probe = probe_spi_rdid,
6839 .probe_timing = TIMING_ZERO,
6840 .block_erasers =
6841 {
6842 {
6843 .eraseblocks = { {4 * 1024, 2048} },
6844 .block_erase = spi_block_erase_20,
6845 }, {
6846 .eraseblocks = { {32 * 1024, 256} },
6847 .block_erase = spi_block_erase_52,
6848 }, {
6849 .eraseblocks = { {64 * 1024, 128} },
6850 .block_erase = spi_block_erase_d8,
6851 }, {
6852 .eraseblocks = { {8 * 1024 * 1024, 1} },
6853 .block_erase = spi_block_erase_60,
6854 }, {
6855 .eraseblocks = { {8 * 1024 * 1024, 1} },
6856 .block_erase = spi_block_erase_c7,
6857 }
6858 },
6859 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00006860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00006861 .unlock = spi_disable_blockprotect,
6862 .write = spi_chip_write_256,
6863 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6864 .voltage = {1650, 2000},
6865 },
6866
6867 {
6868 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00006869 .name = "MX25U12835F",
6870 .bustype = BUS_SPI,
6871 .manufacture_id = MACRONIX_ID,
6872 .model_id = MACRONIX_MX25U12835E,
6873 .total_size = 16384,
6874 .page_size = 256,
6875 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6877 .tested = TEST_UNTESTED,
6878 .probe = probe_spi_rdid,
6879 .probe_timing = TIMING_ZERO,
6880 .block_erasers =
6881 {
6882 {
6883 .eraseblocks = { {4 * 1024, 4096} },
6884 .block_erase = spi_block_erase_20,
6885 }, {
6886 .eraseblocks = { {32 * 1024, 512} },
6887 .block_erase = spi_block_erase_52,
6888 }, {
6889 .eraseblocks = { {64 * 1024, 256} },
6890 .block_erase = spi_block_erase_d8,
6891 }, {
6892 .eraseblocks = { {16 * 1024 * 1024, 1} },
6893 .block_erase = spi_block_erase_60,
6894 }, {
6895 .eraseblocks = { {16 * 1024 * 1024, 1} },
6896 .block_erase = spi_block_erase_c7,
6897 }
6898 },
6899 /* TODO: security register */
6900 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
6901 .unlock = spi_disable_blockprotect_bp3_srwd,
6902 .write = spi_chip_write_256, /* Multi I/O supported */
6903 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6904 .voltage = {1650, 2000},
6905 },
6906
6907 {
6908 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006909 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006910 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006911 .manufacture_id = MACRONIX_ID,
6912 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006913 .total_size = 128,
6914 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6916 .tested = TEST_UNTESTED,
6917 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006918 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006919 .block_erasers =
6920 {
6921 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006922 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006923 {8 * 1024, 1},
6924 {4 * 1024, 2},
6925 {8 * 1024, 2},
6926 {32 * 1024, 1},
6927 {64 * 1024, 1},
6928 },
Sean Nelson35727f72010-01-28 23:55:12 +00006929 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006930 }, {
6931 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006932 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006933 }
6934 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006935 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006937 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006938 },
6939
6940 {
6941 .vendor = "Macronix",
6942 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006943 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006944 .manufacture_id = MACRONIX_ID,
6945 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006946 .total_size = 128,
6947 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006948 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006949 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006950 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006951 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006952 .block_erasers =
6953 {
6954 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006955 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006956 {64 * 1024, 1},
6957 {32 * 1024, 1},
6958 {8 * 1024, 2},
6959 {4 * 1024, 2},
6960 {8 * 1024, 1},
6961 },
Sean Nelson35727f72010-01-28 23:55:12 +00006962 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006963 }, {
6964 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006965 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006966 }
6967 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006968 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006971 },
6972
6973 {
6974 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006975 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006976 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006977 .manufacture_id = MACRONIX_ID,
6978 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .total_size = 256,
6980 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006981 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006982 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006983 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006984 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006985 .block_erasers =
6986 {
6987 {
6988 .eraseblocks = {
6989 {16 * 1024, 1},
6990 {8 * 1024, 2},
6991 {32 * 1024, 1},
6992 {64 * 1024, 3},
6993 },
Sean Nelson35727f72010-01-28 23:55:12 +00006994 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006995 }, {
6996 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006997 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006998 },
6999 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007000 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007002 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007003 },
7004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 {
7006 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007007 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007008 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007009 .manufacture_id = MACRONIX_ID,
7010 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .total_size = 256,
7012 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007013 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007014 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007015 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007016 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007017 .block_erasers =
7018 {
7019 {
7020 .eraseblocks = {
7021 {64 * 1024, 3},
7022 {32 * 1024, 1},
7023 {8 * 1024, 2},
7024 {16 * 1024, 1},
7025 },
Sean Nelson35727f72010-01-28 23:55:12 +00007026 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007027 }, {
7028 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007029 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007030 },
7031 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007034 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007035 },
7036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 {
7038 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007039 .name = "MX29F022(N)B",
7040 .bustype = BUS_PARALLEL,
7041 .manufacture_id = MACRONIX_ID,
7042 .model_id = MACRONIX_MX29F022B,
7043 .total_size = 256,
7044 .page_size = 0, /* unused */
7045 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7046 .tested = TEST_UNTESTED,
7047 .probe = probe_jedec,
7048 .probe_timing = TIMING_ZERO,
7049 .block_erasers =
7050 {
7051 {
7052 .eraseblocks = {
7053 {16 * 1024, 1},
7054 {8 * 1024, 2},
7055 {32 * 1024, 1},
7056 {64 * 1024, 3},
7057 },
7058 .block_erase = erase_sector_jedec,
7059 }, {
7060 .eraseblocks = { {256 * 1024, 1} },
7061 .block_erase = erase_chip_block_jedec,
7062 }
7063 },
7064 .write = write_jedec_1,
7065 .read = read_memmapped,
7066 .voltage = {4500, 5500},
7067 },
7068
7069 {
7070 .vendor = "Macronix",
7071 .name = "MX29F022(N)T",
7072 .bustype = BUS_PARALLEL,
7073 .manufacture_id = MACRONIX_ID,
7074 .model_id = MACRONIX_MX29F022T,
7075 .total_size = 256,
7076 .page_size = 0, /* unused */
7077 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7078 .tested = TEST_OK_PREW,
7079 .probe = probe_jedec,
7080 .probe_timing = TIMING_ZERO,
7081 .block_erasers =
7082 {
7083 {
7084 .eraseblocks = {
7085 {64 * 1024, 3},
7086 {32 * 1024, 1},
7087 {8 * 1024, 2},
7088 {16 * 1024, 1},
7089 },
7090 .block_erase = erase_sector_jedec,
7091 }, {
7092 .eraseblocks = { {256 * 1024, 1} },
7093 .block_erase = erase_chip_block_jedec,
7094 }
7095 },
7096 .write = write_jedec_1,
7097 .read = read_memmapped,
7098 .voltage = {4500, 5500},
7099 },
7100
7101 {
7102 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007103 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007104 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007105 .manufacture_id = MACRONIX_ID,
7106 .model_id = MACRONIX_MX29F040,
7107 .total_size = 512,
7108 .page_size = 64 * 1024,
7109 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7110 .tested = TEST_UNTESTED,
7111 .probe = probe_jedec,
7112 .probe_timing = TIMING_ZERO,
7113 .block_erasers =
7114 {
7115 {
7116 .eraseblocks = { {64 * 1024, 8} },
7117 .block_erase = erase_sector_jedec,
7118 }, {
7119 .eraseblocks = { {512 * 1024, 1} },
7120 .block_erase = erase_chip_block_jedec,
7121 },
7122 },
7123 .write = write_jedec_1,
7124 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007125 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007126 },
7127
7128 {
7129 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007130 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007131 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007132 .manufacture_id = MACRONIX_ID,
7133 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007134 .total_size = 512,
7135 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007136 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7137 .tested = TEST_UNTESTED,
7138 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007139 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007140 .block_erasers =
7141 {
7142 {
7143 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007144 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007145 }, {
7146 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007147 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007148 },
7149 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007152 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007153 },
7154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007155 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007156 .vendor = "Micron/Numonyx/ST",
7157 .name = "M25P05-A",
7158 .bustype = BUS_SPI,
7159 .manufacture_id = ST_ID,
7160 .model_id = ST_M25P05A,
7161 .total_size = 64,
7162 .page_size = 256,
7163 .feature_bits = FEATURE_WRSR_WREN,
7164 .tested = TEST_OK_PREW,
7165 .probe = probe_spi_rdid,
7166 .probe_timing = TIMING_ZERO,
7167 .block_erasers =
7168 {
7169 {
7170 .eraseblocks = { {32 * 1024, 2} },
7171 .block_erase = spi_block_erase_d8,
7172 }, {
7173 .eraseblocks = { {64 * 1024, 1} },
7174 .block_erase = spi_block_erase_c7,
7175 }
7176 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007177 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007178 .unlock = spi_disable_blockprotect,
7179 .write = spi_chip_write_256,
7180 .read = spi_chip_read,
7181 .voltage = {2700, 3600},
7182 },
7183
7184 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7185 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7186 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7187 * only is successful if RDID does not work.
7188 */
7189 {
7190 .vendor = "Micron/Numonyx/ST",
7191 .name = "M25P05",
7192 .bustype = BUS_SPI,
7193 .manufacture_id = 0, /* Not used. */
7194 .model_id = ST_M25P05_RES,
7195 .total_size = 64,
7196 .page_size = 256,
7197 .feature_bits = FEATURE_WRSR_WREN,
7198 .tested = TEST_UNTESTED,
7199 .probe = probe_spi_res1,
7200 .probe_timing = TIMING_ZERO,
7201 .block_erasers =
7202 {
7203 {
7204 .eraseblocks = { {32 * 1024, 2} },
7205 .block_erase = spi_block_erase_d8,
7206 }, {
7207 .eraseblocks = { {64 * 1024, 1} },
7208 .block_erase = spi_block_erase_c7,
7209 }
7210 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007211 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007212 .unlock = spi_disable_blockprotect,
7213 .write = spi_chip_write_1, /* 128 */
7214 .read = spi_chip_read,
7215 .voltage = {2700, 3600},
7216 },
7217
7218 {
7219 .vendor = "Micron/Numonyx/ST",
7220 .name = "M25P10-A",
7221 .bustype = BUS_SPI,
7222 .manufacture_id = ST_ID,
7223 .model_id = ST_M25P10A,
7224 .total_size = 128,
7225 .page_size = 256,
7226 .feature_bits = FEATURE_WRSR_WREN,
7227 .tested = TEST_OK_PRE,
7228 .probe = probe_spi_rdid,
7229 .probe_timing = TIMING_ZERO,
7230 .block_erasers =
7231 {
7232 {
7233 .eraseblocks = { {32 * 1024, 4} },
7234 .block_erase = spi_block_erase_d8,
7235 }, {
7236 .eraseblocks = { {128 * 1024, 1} },
7237 .block_erase = spi_block_erase_c7,
7238 }
7239 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007240 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007241 .unlock = spi_disable_blockprotect,
7242 .write = spi_chip_write_256,
7243 .read = spi_chip_read,
7244 .voltage = {2700, 3600},
7245 },
7246
7247 /* The ST M25P10 has the same problem as the M25P05. */
7248 {
7249 .vendor = "Micron/Numonyx/ST",
7250 .name = "M25P10",
7251 .bustype = BUS_SPI,
7252 .manufacture_id = 0, /* Not used. */
7253 .model_id = ST_M25P10_RES,
7254 .total_size = 128,
7255 .page_size = 256,
7256 .feature_bits = FEATURE_WRSR_WREN,
7257 .tested = TEST_UNTESTED,
7258 .probe = probe_spi_res1,
7259 .probe_timing = TIMING_ZERO,
7260 .block_erasers =
7261 {
7262 {
7263 .eraseblocks = { {32 * 1024, 4} },
7264 .block_erase = spi_block_erase_d8,
7265 }, {
7266 .eraseblocks = { {128 * 1024, 1} },
7267 .block_erase = spi_block_erase_c7,
7268 }
7269 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007270 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007271 .unlock = spi_disable_blockprotect,
7272 .write = spi_chip_write_1, /* 128 */
7273 .read = spi_chip_read,
7274 .voltage = {2700, 3600},
7275 },
7276
7277 {
7278 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7279 .name = "M25P20",
7280 .bustype = BUS_SPI,
7281 .manufacture_id = ST_ID,
7282 .model_id = ST_M25P20,
7283 .total_size = 256,
7284 .page_size = 256,
7285 .feature_bits = FEATURE_WRSR_WREN,
7286 .tested = TEST_UNTESTED,
7287 .probe = probe_spi_rdid,
7288 .probe_timing = TIMING_ZERO,
7289 .block_erasers =
7290 {
7291 {
7292 .eraseblocks = { {64 * 1024, 4} },
7293 .block_erase = spi_block_erase_d8,
7294 }, {
7295 .eraseblocks = { {256 * 1024, 1} },
7296 .block_erase = spi_block_erase_c7,
7297 }
7298 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007299 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007300 .unlock = spi_disable_blockprotect,
7301 .write = spi_chip_write_256,
7302 .read = spi_chip_read, /* Fast read (0x0B) supported */
7303 .voltage = {2700, 3600},
7304 },
7305
7306 {
7307 .vendor = "Micron/Numonyx/ST",
7308 .name = "M25P20-old",
7309 .bustype = BUS_SPI,
7310 .manufacture_id = 0, /* Not used. */
7311 .model_id = ST_M25P20_RES,
7312 .total_size = 256,
7313 .page_size = 256,
7314 .feature_bits = FEATURE_WRSR_WREN,
7315 .tested = TEST_OK_PREW,
7316 .probe = probe_spi_res1,
7317 .probe_timing = TIMING_ZERO,
7318 .block_erasers =
7319 {
7320 {
7321 .eraseblocks = { {64 * 1024, 4} },
7322 .block_erase = spi_block_erase_d8,
7323 }, {
7324 .eraseblocks = { {256 * 1024, 1} },
7325 .block_erase = spi_block_erase_c7,
7326 }
7327 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007328 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007329 .unlock = spi_disable_blockprotect,
7330 .write = spi_chip_write_256,
7331 .read = spi_chip_read, /* Fast read (0x0B) supported */
7332 .voltage = {2700, 3600},
7333 },
7334
7335 {
7336 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7337 .name = "M25P40",
7338 .bustype = BUS_SPI,
7339 .manufacture_id = ST_ID,
7340 .model_id = ST_M25P40,
7341 .total_size = 512,
7342 .page_size = 256,
7343 .feature_bits = FEATURE_WRSR_WREN,
7344 .tested = TEST_OK_PREW,
7345 .probe = probe_spi_rdid,
7346 .probe_timing = TIMING_ZERO,
7347 .block_erasers =
7348 {
7349 {
7350 .eraseblocks = { {64 * 1024, 8} },
7351 .block_erase = spi_block_erase_d8,
7352 }, {
7353 .eraseblocks = { {512 * 1024, 1} },
7354 .block_erase = spi_block_erase_c7,
7355 }
7356 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007357 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007358 .unlock = spi_disable_blockprotect,
7359 .write = spi_chip_write_256,
7360 .read = spi_chip_read,
7361 .voltage = {2700, 3600},
7362 },
7363
7364 {
7365 .vendor = "Micron/Numonyx/ST",
7366 .name = "M25P40-old",
7367 .bustype = BUS_SPI,
7368 .manufacture_id = 0, /* Not used. */
7369 .model_id = ST_M25P40_RES,
7370 .total_size = 512,
7371 .page_size = 256,
7372 .feature_bits = FEATURE_WRSR_WREN,
7373 .tested = TEST_UNTESTED,
7374 .probe = probe_spi_res1,
7375 .probe_timing = TIMING_ZERO,
7376 .block_erasers =
7377 {
7378 {
7379 .eraseblocks = { {64 * 1024, 8} },
7380 .block_erase = spi_block_erase_d8,
7381 }, {
7382 .eraseblocks = { {512 * 1024, 1} },
7383 .block_erase = spi_block_erase_c7,
7384 }
7385 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007386 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007387 .unlock = spi_disable_blockprotect,
7388 .write = spi_chip_write_256,
7389 .read = spi_chip_read,
7390 },
7391
7392 {
7393 .vendor = "Micron/Numonyx/ST",
7394 .name = "M25P80",
7395 .bustype = BUS_SPI,
7396 .manufacture_id = ST_ID,
7397 .model_id = ST_M25P80,
7398 .total_size = 1024,
7399 .page_size = 256,
7400 .feature_bits = FEATURE_WRSR_WREN,
7401 .tested = TEST_OK_PREW,
7402 .probe = probe_spi_rdid,
7403 .probe_timing = TIMING_ZERO,
7404 .block_erasers =
7405 {
7406 {
7407 .eraseblocks = { {64 * 1024, 16} },
7408 .block_erase = spi_block_erase_d8,
7409 }, {
7410 .eraseblocks = { {1024 * 1024, 1} },
7411 .block_erase = spi_block_erase_c7,
7412 }
7413 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007414 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007415 .unlock = spi_disable_blockprotect,
7416 .write = spi_chip_write_256,
7417 .read = spi_chip_read,
7418 .voltage = {2700, 3600},
7419 },
7420
7421 {
7422 .vendor = "Micron/Numonyx/ST",
7423 .name = "M25P16",
7424 .bustype = BUS_SPI,
7425 .manufacture_id = ST_ID,
7426 .model_id = ST_M25P16,
7427 .total_size = 2048,
7428 .page_size = 256,
7429 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007430 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007431 .probe = probe_spi_rdid,
7432 .probe_timing = TIMING_ZERO,
7433 .block_erasers =
7434 {
7435 {
7436 .eraseblocks = { {64 * 1024, 32} },
7437 .block_erase = spi_block_erase_d8,
7438 }, {
7439 .eraseblocks = { {2 * 1024 * 1024, 1} },
7440 .block_erase = spi_block_erase_c7,
7441 }
7442 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007443 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007444 .unlock = spi_disable_blockprotect,
7445 .write = spi_chip_write_256,
7446 .read = spi_chip_read,
7447 .voltage = {2700, 3600},
7448 },
7449
7450 {
7451 .vendor = "Micron/Numonyx/ST",
7452 .name = "M25P32",
7453 .bustype = BUS_SPI,
7454 .manufacture_id = ST_ID,
7455 .model_id = ST_M25P32,
7456 .total_size = 4096,
7457 .page_size = 256,
7458 .feature_bits = FEATURE_WRSR_WREN,
7459 .tested = TEST_OK_PREW,
7460 .probe = probe_spi_rdid,
7461 .probe_timing = TIMING_ZERO,
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = { {64 * 1024, 64} },
7466 .block_erase = spi_block_erase_d8,
7467 }, {
7468 .eraseblocks = { {4 * 1024 * 1024, 1} },
7469 .block_erase = spi_block_erase_c7,
7470 }
7471 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007472 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007473 .unlock = spi_disable_blockprotect,
7474 .write = spi_chip_write_256,
7475 .read = spi_chip_read,
7476 .voltage = {2700, 3600},
7477 },
7478
7479 {
7480 .vendor = "Micron/Numonyx/ST",
7481 .name = "M25P64",
7482 .bustype = BUS_SPI,
7483 .manufacture_id = ST_ID,
7484 .model_id = ST_M25P64,
7485 .total_size = 8192,
7486 .page_size = 256,
7487 .feature_bits = FEATURE_WRSR_WREN,
7488 .tested = TEST_OK_PREW,
7489 .probe = probe_spi_rdid,
7490 .probe_timing = TIMING_ZERO,
7491 .block_erasers =
7492 {
7493 {
7494 .eraseblocks = { {64 * 1024, 128} },
7495 .block_erase = spi_block_erase_d8,
7496 }, {
7497 .eraseblocks = { {8 * 1024 * 1024, 1} },
7498 .block_erase = spi_block_erase_c7,
7499 }
7500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007501 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007502 .unlock = spi_disable_blockprotect,
7503 .write = spi_chip_write_256,
7504 .read = spi_chip_read,
7505 .voltage = {2700, 3600},
7506 },
7507
7508 {
7509 .vendor = "Micron/Numonyx/ST",
7510 .name = "M25P128",
7511 .bustype = BUS_SPI,
7512 .manufacture_id = ST_ID,
7513 .model_id = ST_M25P128,
7514 .total_size = 16384,
7515 .page_size = 256,
7516 .feature_bits = FEATURE_WRSR_WREN,
7517 .tested = TEST_OK_PREW,
7518 .probe = probe_spi_rdid,
7519 .probe_timing = TIMING_ZERO,
7520 .block_erasers =
7521 {
7522 {
7523 .eraseblocks = { {256 * 1024, 64} },
7524 .block_erase = spi_block_erase_d8,
7525 }, {
7526 .eraseblocks = { {16 * 1024 * 1024, 1} },
7527 .block_erase = spi_block_erase_c7,
7528 }
7529 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007530 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007531 .unlock = spi_disable_blockprotect,
7532 .write = spi_chip_write_256,
7533 .read = spi_chip_read,
7534 .voltage = {2700, 3600},
7535 },
7536
7537 {
7538 .vendor = "Micron/Numonyx/ST",
7539 .name = "M25PE10",
7540 .bustype = BUS_SPI,
7541 .manufacture_id = ST_ID,
7542 .model_id = ST_M25PE10,
7543 .total_size = 128,
7544 .page_size = 256,
7545 .feature_bits = FEATURE_WRSR_WREN,
7546 .tested = TEST_UNTESTED,
7547 .probe = probe_spi_rdid,
7548 .probe_timing = TIMING_ZERO,
7549 .block_erasers =
7550 {
7551 {
7552 .eraseblocks = { {4 * 1024, 32} },
7553 .block_erase = spi_block_erase_20,
7554 }, {
7555 .eraseblocks = { {64 * 1024, 2} },
7556 .block_erase = spi_block_erase_d8,
7557 }, {
7558 .eraseblocks = { {128 * 1024, 1} },
7559 .block_erase = spi_block_erase_c7,
7560 }
7561 },
7562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7563 .unlock = spi_disable_blockprotect,
7564 .write = spi_chip_write_256,
7565 .read = spi_chip_read,
7566 .voltage = {2700, 3600},
7567 },
7568
7569 {
7570 .vendor = "Micron/Numonyx/ST",
7571 .name = "M25PE20",
7572 .bustype = BUS_SPI,
7573 .manufacture_id = ST_ID,
7574 .model_id = ST_M25PE20,
7575 .total_size = 256,
7576 .page_size = 256,
7577 .feature_bits = FEATURE_WRSR_WREN,
7578 .tested = TEST_UNTESTED,
7579 .probe = probe_spi_rdid,
7580 .probe_timing = TIMING_ZERO,
7581 .block_erasers =
7582 {
7583 {
7584 .eraseblocks = { {4 * 1024, 64} },
7585 .block_erase = spi_block_erase_20,
7586 }, {
7587 .eraseblocks = { {64 * 1024, 4} },
7588 .block_erase = spi_block_erase_d8,
7589 }, {
7590 .eraseblocks = { {256 * 1024, 1} },
7591 .block_erase = spi_block_erase_c7,
7592 }
7593 },
7594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7595 .unlock = spi_disable_blockprotect,
7596 .write = spi_chip_write_256,
7597 .read = spi_chip_read,
7598 .voltage = {2700, 3600},
7599 },
7600
7601 {
7602 .vendor = "Micron/Numonyx/ST",
7603 .name = "M25PE40",
7604 .bustype = BUS_SPI,
7605 .manufacture_id = ST_ID,
7606 .model_id = ST_M25PE40,
7607 .total_size = 512,
7608 .page_size = 256,
7609 .feature_bits = FEATURE_WRSR_WREN,
7610 .tested = TEST_UNTESTED,
7611 .probe = probe_spi_rdid,
7612 .probe_timing = TIMING_ZERO,
7613 .block_erasers =
7614 {
7615 {
7616 .eraseblocks = { {4 * 1024, 128} },
7617 .block_erase = spi_block_erase_20,
7618 }, {
7619 .eraseblocks = { {64 * 1024, 8} },
7620 .block_erase = spi_block_erase_d8,
7621 }, {
7622 .eraseblocks = { {512 * 1024, 1} },
7623 .block_erase = spi_block_erase_c7,
7624 }
7625 },
7626 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7627 .unlock = spi_disable_blockprotect,
7628 .write = spi_chip_write_256,
7629 .read = spi_chip_read,
7630 .voltage = {2700, 3600},
7631 },
7632
7633 {
7634 .vendor = "Micron/Numonyx/ST",
7635 .name = "M25PE80",
7636 .bustype = BUS_SPI,
7637 .manufacture_id = ST_ID,
7638 .model_id = ST_M25PE80,
7639 .total_size = 1024,
7640 .page_size = 256,
7641 .feature_bits = FEATURE_WRSR_WREN,
7642 .tested = TEST_OK_PREW,
7643 .probe = probe_spi_rdid,
7644 .probe_timing = TIMING_ZERO,
7645 .block_erasers =
7646 {
7647 {
7648 .eraseblocks = { {4 * 1024, 256} },
7649 .block_erase = spi_block_erase_20,
7650 }, {
7651 .eraseblocks = { {64 * 1024, 16} },
7652 .block_erase = spi_block_erase_d8,
7653 }, {
7654 .eraseblocks = { {1024 * 1024, 1} },
7655 .block_erase = spi_block_erase_c7,
7656 }
7657 },
7658 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7659 .unlock = spi_disable_blockprotect,
7660 .write = spi_chip_write_256,
7661 .read = spi_chip_read,
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Micron/Numonyx/ST",
7667 .name = "M25PE16",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = ST_ID,
7670 .model_id = ST_M25PE16,
7671 .total_size = 2048,
7672 .page_size = 256,
7673 .feature_bits = FEATURE_WRSR_WREN,
7674 .tested = TEST_UNTESTED,
7675 .probe = probe_spi_rdid,
7676 .probe_timing = TIMING_ZERO,
7677 .block_erasers =
7678 {
7679 {
7680 .eraseblocks = { {4 * 1024, 512} },
7681 .block_erase = spi_block_erase_20,
7682 }, {
7683 .eraseblocks = { {64 * 1024, 32} },
7684 .block_erase = spi_block_erase_d8,
7685 }, {
7686 .eraseblocks = { {2 * 1024 * 1024, 1} },
7687 .block_erase = spi_block_erase_c7,
7688 }
7689 },
7690 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7691 .unlock = spi_disable_blockprotect,
7692 .write = spi_chip_write_256,
7693 .read = spi_chip_read,
7694 .voltage = {2700, 3600},
7695 },
7696
7697 {
7698 .vendor = "Micron/Numonyx/ST",
7699 .name = "M25PX80",
7700 .bustype = BUS_SPI,
7701 .manufacture_id = ST_ID,
7702 .model_id = ST_M25PX80,
7703 .total_size = 1024,
7704 .page_size = 256,
7705 /* OTP: 64B total; read 0x4B, write 0x42 */
7706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7707 .tested = TEST_OK_PREW,
7708 .probe = probe_spi_rdid,
7709 .probe_timing = TIMING_ZERO,
7710 .block_erasers = {
7711 {
7712 .eraseblocks = { { 4 * 1024, 256 } },
7713 .block_erase = spi_block_erase_20,
7714 }, {
7715 .eraseblocks = { {64 * 1024, 16} },
7716 .block_erase = spi_block_erase_d8,
7717 }, {
7718 .eraseblocks = { {1024 * 1024, 1} },
7719 .block_erase = spi_block_erase_c7,
7720 }
7721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007722 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007723 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7724 .write = spi_chip_write_256,
7725 .read = spi_chip_read,
7726 .voltage = {2700, 3600},
7727 },
7728
7729 {
7730 .vendor = "Micron/Numonyx/ST",
7731 .name = "M25PX16",
7732 .bustype = BUS_SPI,
7733 .manufacture_id = ST_ID,
7734 .model_id = ST_M25PX16,
7735 .total_size = 2048,
7736 .page_size = 256,
7737 /* OTP: 64B total; read 0x4B; write 0x42 */
7738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7739 .tested = TEST_OK_PREW,
7740 .probe = probe_spi_rdid,
7741 .probe_timing = TIMING_ZERO,
7742 .block_erasers =
7743 {
7744 {
7745 .eraseblocks = { { 4 * 1024, 512 } },
7746 .block_erase = spi_block_erase_20,
7747 }, {
7748 .eraseblocks = { {64 * 1024, 32} },
7749 .block_erase = spi_block_erase_d8,
7750 }, {
7751 .eraseblocks = { {2 * 1024 * 1024, 1} },
7752 .block_erase = spi_block_erase_c7,
7753 }
7754 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007755 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007756 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7757 .write = spi_chip_write_256,
7758 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007759 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007760 },
7761
7762 {
7763 .vendor = "Micron/Numonyx/ST",
7764 .name = "M25PX32",
7765 .bustype = BUS_SPI,
7766 .manufacture_id = ST_ID,
7767 .model_id = ST_M25PX32,
7768 .total_size = 4096,
7769 .page_size = 256,
7770 /* OTP: 64B total; read 0x4B; write 0x42 */
7771 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7772 .tested = TEST_OK_PRE,
7773 .probe = probe_spi_rdid,
7774 .probe_timing = TIMING_ZERO,
7775 .block_erasers =
7776 {
7777 {
7778 .eraseblocks = { { 4 * 1024, 1024 } },
7779 .block_erase = spi_block_erase_20,
7780 }, {
7781 .eraseblocks = { {64 * 1024, 64} },
7782 .block_erase = spi_block_erase_d8,
7783 }, {
7784 .eraseblocks = { {4 * 1024 * 1024, 1} },
7785 .block_erase = spi_block_erase_c7,
7786 }
7787 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007788 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007789 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7790 .write = spi_chip_write_256,
7791 .read = spi_chip_read,
7792 .voltage = {2700, 3600},
7793 },
7794
7795 {
7796 .vendor = "Micron/Numonyx/ST",
7797 .name = "M25PX64",
7798 .bustype = BUS_SPI,
7799 .manufacture_id = ST_ID,
7800 .model_id = ST_M25PX64,
7801 .total_size = 8192,
7802 .page_size = 256,
7803 /* OTP: 64B total; read 0x4B; write 0x42 */
7804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007805 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007806 .probe = probe_spi_rdid,
7807 .probe_timing = TIMING_ZERO,
7808 .block_erasers =
7809 {
7810 {
7811 .eraseblocks = { { 4 * 1024, 2048 } },
7812 .block_erase = spi_block_erase_20,
7813 }, {
7814 .eraseblocks = { {64 * 1024, 128} },
7815 .block_erase = spi_block_erase_d8,
7816 }, {
7817 .eraseblocks = { {8 * 1024 * 1024, 1} },
7818 .block_erase = spi_block_erase_c7,
7819 }
7820 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007821 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007822 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7823 .write = spi_chip_write_256,
7824 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007825 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007826 },
7827
7828 {
7829 .vendor = "Micron/Numonyx/ST",
7830 .name = "M45PE10",
7831 .bustype = BUS_SPI,
7832 .manufacture_id = ST_ID,
7833 .model_id = ST_M45PE10,
7834 .total_size = 128,
7835 .page_size = 256,
7836 .tested = TEST_UNTESTED,
7837 .probe = probe_spi_rdid,
7838 .probe_timing = TIMING_ZERO,
7839 .block_erasers = {
7840 {
7841 .eraseblocks = { {256, 512} },
7842 .block_erase = spi_block_erase_db,
7843 }, {
7844 .eraseblocks = { {64 * 1024, 2} },
7845 .block_erase = spi_block_erase_d8,
7846 }
7847 },
7848 .printlock = spi_prettyprint_status_register_default_welwip,
7849 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7850 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7851 .read = spi_chip_read, /* Fast read (0x0B) supported */
7852 .voltage = {2700, 3600},
7853 },
7854
7855 {
7856 .vendor = "Micron/Numonyx/ST",
7857 .name = "M45PE20",
7858 .bustype = BUS_SPI,
7859 .manufacture_id = ST_ID,
7860 .model_id = ST_M45PE20,
7861 .total_size = 256,
7862 .page_size = 256,
7863 .tested = TEST_UNTESTED,
7864 .probe = probe_spi_rdid,
7865 .probe_timing = TIMING_ZERO,
7866 .block_erasers = {
7867 {
7868 .eraseblocks = { {256, 1024} },
7869 .block_erase = spi_block_erase_db,
7870 }, {
7871 .eraseblocks = { {64 * 1024, 4} },
7872 .block_erase = spi_block_erase_d8,
7873 }
7874 },
7875 .printlock = spi_prettyprint_status_register_default_welwip,
7876 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7877 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7878 .read = spi_chip_read, /* Fast read (0x0B) supported */
7879 .voltage = {2700, 3600},
7880 },
7881
7882 {
7883 .vendor = "Micron/Numonyx/ST",
7884 .name = "M45PE40",
7885 .bustype = BUS_SPI,
7886 .manufacture_id = ST_ID,
7887 .model_id = ST_M45PE40,
7888 .total_size = 512,
7889 .page_size = 256,
7890 .tested = TEST_UNTESTED,
7891 .probe = probe_spi_rdid,
7892 .probe_timing = TIMING_ZERO,
7893 .block_erasers = {
7894 {
7895 .eraseblocks = { {256, 2048} },
7896 .block_erase = spi_block_erase_db,
7897 }, {
7898 .eraseblocks = { {64 * 1024, 8} },
7899 .block_erase = spi_block_erase_d8,
7900 }
7901 },
7902 .printlock = spi_prettyprint_status_register_default_welwip,
7903 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7904 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7905 .read = spi_chip_read, /* Fast read (0x0B) supported */
7906 .voltage = {2700, 3600},
7907 },
7908
7909 {
7910 .vendor = "Micron/Numonyx/ST",
7911 .name = "M45PE80",
7912 .bustype = BUS_SPI,
7913 .manufacture_id = ST_ID,
7914 .model_id = ST_M45PE80,
7915 .total_size = 1024,
7916 .page_size = 256,
7917 .tested = TEST_UNTESTED,
7918 .probe = probe_spi_rdid,
7919 .probe_timing = TIMING_ZERO,
7920 .block_erasers = {
7921 {
7922 .eraseblocks = { {256, 4096} },
7923 .block_erase = spi_block_erase_db,
7924 }, {
7925 .eraseblocks = { {64 * 1024, 16} },
7926 .block_erase = spi_block_erase_d8,
7927 }
7928 },
7929 .printlock = spi_prettyprint_status_register_default_welwip,
7930 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7931 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7932 .read = spi_chip_read, /* Fast read (0x0B) supported */
7933 .voltage = {2700, 3600},
7934 },
7935
7936 {
7937 .vendor = "Micron/Numonyx/ST",
7938 .name = "M45PE16",
7939 .bustype = BUS_SPI,
7940 .manufacture_id = ST_ID,
7941 .model_id = ST_M45PE16,
7942 .total_size = 2048,
7943 .page_size = 256,
7944 .tested = TEST_UNTESTED,
7945 .probe = probe_spi_rdid,
7946 .probe_timing = TIMING_ZERO,
7947 .block_erasers = {
7948 {
7949 .eraseblocks = { {256, 8192} },
7950 .block_erase = spi_block_erase_db,
7951 }, {
7952 .eraseblocks = { {64 * 1024, 32} },
7953 .block_erase = spi_block_erase_d8,
7954 }
7955 },
7956 .printlock = spi_prettyprint_status_register_default_welwip,
7957 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7958 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7959 .read = spi_chip_read, /* Fast read (0x0B) supported */
7960 .voltage = {2700, 3600},
7961 },
7962
7963 {
7964 .vendor = "Micron/Numonyx/ST",
7965 .name = "N25Q016",
7966 .bustype = BUS_SPI,
7967 .manufacture_id = ST_ID,
7968 .model_id = ST_N25Q016__1E,
7969 .total_size = 2048,
7970 .page_size = 256,
7971 /* supports SFDP */
7972 /* OTP: 64B total; read 0x4B, write 0x42 */
7973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7974 .tested = TEST_UNTESTED,
7975 .probe = probe_spi_rdid,
7976 .probe_timing = TIMING_ZERO,
7977 .block_erasers =
7978 {
7979 {
7980 .eraseblocks = { {4 * 1024, 512} },
7981 .block_erase = spi_block_erase_20,
7982 }, {
7983 .eraseblocks = { {32 * 1024, 64} },
7984 .block_erase = spi_block_erase_52,
7985 }, {
7986 .eraseblocks = { {64 * 1024, 32} },
7987 .block_erase = spi_block_erase_d8,
7988 }, {
7989 .eraseblocks = { {2 * 1024 * 1024, 1} },
7990 .block_erase = spi_block_erase_c7,
7991 }
7992 },
7993 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7994 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7995 .write = spi_chip_write_256, /* Multi I/O supported */
7996 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7997 .voltage = {1700, 2000},
7998 },
7999
8000 {
8001 .vendor = "Micron/Numonyx/ST",
8002 .name = "N25Q032..1E",
8003 .bustype = BUS_SPI,
8004 .manufacture_id = ST_ID,
8005 .model_id = ST_N25Q032__1E,
8006 .total_size = 4096,
8007 .page_size = 256,
8008 /* supports SFDP */
8009 /* OTP: 64B total; read 0x4B, write 0x42 */
8010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8011 .tested = TEST_UNTESTED,
8012 .probe = probe_spi_rdid,
8013 .probe_timing = TIMING_ZERO,
8014 .block_erasers =
8015 {
8016 {
8017 .eraseblocks = { {4 * 1024, 1024} },
8018 .block_erase = spi_block_erase_20,
8019 }, {
8020 .eraseblocks = { {64 * 1024, 64} },
8021 .block_erase = spi_block_erase_d8,
8022 }, {
8023 .eraseblocks = { {4 * 1024 * 1024, 1} },
8024 .block_erase = spi_block_erase_c7,
8025 }
8026 },
8027 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8028 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8029 .write = spi_chip_write_256, /* Multi I/O supported */
8030 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8031 .voltage = {1700, 2000},
8032 },
8033
8034 {
8035 .vendor = "Micron/Numonyx/ST",
8036 .name = "N25Q032..3E",
8037 .bustype = BUS_SPI,
8038 .manufacture_id = ST_ID,
8039 .model_id = ST_N25Q032__3E,
8040 .total_size = 4096,
8041 .page_size = 256,
8042 /* supports SFDP */
8043 /* OTP: 64B total; read 0x4B, write 0x42 */
8044 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8045 .tested = TEST_OK_PREW,
8046 .probe = probe_spi_rdid,
8047 .probe_timing = TIMING_ZERO,
8048 .block_erasers =
8049 {
8050 {
8051 .eraseblocks = { {4 * 1024, 1024} },
8052 .block_erase = spi_block_erase_20,
8053 }, {
8054 .eraseblocks = { {64 * 1024, 64} },
8055 .block_erase = spi_block_erase_d8,
8056 }, {
8057 .eraseblocks = { {4 * 1024 * 1024, 1} },
8058 .block_erase = spi_block_erase_c7,
8059 }
8060 },
8061 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8062 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8063 .write = spi_chip_write_256, /* Multi I/O supported */
8064 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8065 .voltage = {2700, 3600},
8066 },
8067
8068 {
8069 .vendor = "Micron/Numonyx/ST",
8070 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8071 .bustype = BUS_SPI,
8072 .manufacture_id = ST_ID,
8073 .model_id = ST_N25Q064__1E,
8074 .total_size = 8192,
8075 .page_size = 256,
8076 /* supports SFDP */
8077 /* OTP: 64B total; read 0x4B, write 0x42 */
8078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008079 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008080 .probe = probe_spi_rdid,
8081 .probe_timing = TIMING_ZERO,
8082 .block_erasers =
8083 {
8084 {
8085 .eraseblocks = { {4 * 1024, 2048 } },
8086 .block_erase = spi_block_erase_20,
8087 }, {
8088 .eraseblocks = { {64 * 1024, 128} },
8089 .block_erase = spi_block_erase_d8,
8090 }, {
8091 .eraseblocks = { {8 * 1024 * 1024, 1} },
8092 .block_erase = spi_block_erase_c7,
8093 }
8094 },
8095 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8096 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8097 .write = spi_chip_write_256, /* Multi I/O supported */
8098 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8099 .voltage = {1700, 2000},
8100 },
8101
8102 {
8103 .vendor = "Micron/Numonyx/ST",
8104 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8105 .bustype = BUS_SPI,
8106 .manufacture_id = ST_ID,
8107 .model_id = ST_N25Q064__3E,
8108 .total_size = 8192,
8109 .page_size = 256,
8110 /* supports SFDP */
8111 /* OTP: 64B total; read 0x4B, write 0x42 */
8112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8113 .tested = TEST_OK_PREW,
8114 .probe = probe_spi_rdid,
8115 .probe_timing = TIMING_ZERO,
8116 .block_erasers =
8117 {
8118 {
8119 .eraseblocks = { {4 * 1024, 2048 } },
8120 .block_erase = spi_block_erase_20,
8121 }, {
8122 .eraseblocks = { {64 * 1024, 128} },
8123 .block_erase = spi_block_erase_d8,
8124 }, {
8125 .eraseblocks = { {8 * 1024 * 1024, 1} },
8126 .block_erase = spi_block_erase_c7,
8127 }
8128 },
8129 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8130 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8131 .write = spi_chip_write_256, /* Multi I/O supported */
8132 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8133 .voltage = {2700, 3600},
8134 },
8135
8136 {
8137 .vendor = "Micron/Numonyx/ST",
8138 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8139 .bustype = BUS_SPI,
8140 .manufacture_id = ST_ID,
8141 .model_id = ST_N25Q128__1E,
8142 .total_size = 16384,
8143 .page_size = 256,
8144 /* supports SFDP */
8145 /* OTP: 64B total; read 0x4B, write 0x42 */
8146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8147 .tested = TEST_UNTESTED,
8148 .probe = probe_spi_rdid,
8149 .probe_timing = TIMING_ZERO,
8150 .block_erasers = {
8151 {
8152 .eraseblocks = { {4 * 1024, 4096 } },
8153 .block_erase = spi_block_erase_20,
8154 }, {
8155 .eraseblocks = { {64 * 1024, 256} },
8156 .block_erase = spi_block_erase_d8,
8157 }, {
8158 .eraseblocks = { {16384 * 1024, 1} },
8159 .block_erase = spi_block_erase_c7,
8160 }
8161 },
8162 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8163 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8164 .write = spi_chip_write_256, /* Multi I/O supported */
8165 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8166 .voltage = {1700, 2000},
8167 },
8168
8169 {
8170 .vendor = "Micron/Numonyx/ST",
8171 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8172 .bustype = BUS_SPI,
8173 .manufacture_id = ST_ID,
8174 .model_id = ST_N25Q128__3E,
8175 .total_size = 16384,
8176 .page_size = 256,
8177 /* supports SFDP */
8178 /* OTP: 64B total; read 0x4B, write 0x42 */
8179 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8180 .tested = TEST_OK_PREW,
8181 .probe = probe_spi_rdid,
8182 .probe_timing = TIMING_ZERO,
8183 .block_erasers = {
8184 {
8185 .eraseblocks = { {4 * 1024, 4096 } },
8186 .block_erase = spi_block_erase_20,
8187 }, {
8188 .eraseblocks = { {64 * 1024, 256} },
8189 .block_erase = spi_block_erase_d8,
8190 }, {
8191 .eraseblocks = { {16384 * 1024, 1} },
8192 .block_erase = spi_block_erase_c7,
8193 }
8194 },
8195 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8196 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8197 .write = spi_chip_write_256, /* Multi I/O supported */
8198 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8199 .voltage = {2700, 3600},
8200 },
8201
8202 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008203 .vendor = "MoselVitelic",
8204 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008205 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008206 .manufacture_id = SYNCMOS_MVC_ID,
8207 .model_id = MVC_V29C51000B,
8208 .total_size = 64,
8209 .page_size = 512,
8210 .feature_bits = FEATURE_EITHER_RESET,
8211 .tested = TEST_UNTESTED,
8212 .probe = probe_jedec,
8213 .probe_timing = TIMING_ZERO,
8214 .block_erasers =
8215 {
8216 {
8217 .eraseblocks = { {512, 128} },
8218 .block_erase = erase_sector_jedec,
8219 }, {
8220 .eraseblocks = { {64 * 1024, 1} },
8221 .block_erase = erase_chip_block_jedec,
8222 },
8223 },
8224 .write = write_jedec_1,
8225 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008226 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008227 },
8228
8229 {
8230 .vendor = "MoselVitelic",
8231 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008232 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008233 .manufacture_id = SYNCMOS_MVC_ID,
8234 .model_id = MVC_V29C51000T,
8235 .total_size = 64,
8236 .page_size = 512,
8237 .feature_bits = FEATURE_EITHER_RESET,
8238 .tested = TEST_UNTESTED,
8239 .probe = probe_jedec,
8240 .probe_timing = TIMING_ZERO,
8241 .block_erasers =
8242 {
8243 {
8244 .eraseblocks = { {512, 128} },
8245 .block_erase = erase_sector_jedec,
8246 }, {
8247 .eraseblocks = { {64 * 1024, 1} },
8248 .block_erase = erase_chip_block_jedec,
8249 },
8250 },
8251 .write = write_jedec_1,
8252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008253 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008254 },
8255
8256 {
8257 .vendor = "MoselVitelic",
8258 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008259 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008260 .manufacture_id = SYNCMOS_MVC_ID,
8261 .model_id = MVC_V29C51400B,
8262 .total_size = 512,
8263 .page_size = 1024,
8264 .feature_bits = FEATURE_EITHER_RESET,
8265 .tested = TEST_UNTESTED,
8266 .probe = probe_jedec,
8267 .probe_timing = TIMING_ZERO,
8268 .block_erasers =
8269 {
8270 {
8271 .eraseblocks = { {1024, 512} },
8272 .block_erase = erase_sector_jedec,
8273 }, {
8274 .eraseblocks = { {512 * 1024, 1} },
8275 .block_erase = erase_chip_block_jedec,
8276 },
8277 },
8278 .write = write_jedec_1,
8279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008280 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008281 },
8282
8283 {
8284 .vendor = "MoselVitelic",
8285 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008286 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008287 .manufacture_id = SYNCMOS_MVC_ID,
8288 .model_id = MVC_V29C51400T,
8289 .total_size = 512,
8290 .page_size = 1024,
8291 .feature_bits = FEATURE_EITHER_RESET,
8292 .tested = TEST_UNTESTED,
8293 .probe = probe_jedec,
8294 .probe_timing = TIMING_ZERO,
8295 .block_erasers =
8296 {
8297 {
8298 .eraseblocks = { {1024, 512} },
8299 .block_erase = erase_sector_jedec,
8300 }, {
8301 .eraseblocks = { {512 * 1024, 1} },
8302 .block_erase = erase_chip_block_jedec,
8303 },
8304 },
8305 .write = write_jedec_1,
8306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008307 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008308 },
8309
8310 {
8311 .vendor = "MoselVitelic",
8312 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008313 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008314 .manufacture_id = SYNCMOS_MVC_ID,
8315 .model_id = MVC_V29LC51000,
8316 .total_size = 64,
8317 .page_size = 512,
8318 .feature_bits = FEATURE_EITHER_RESET,
8319 .tested = TEST_UNTESTED,
8320 .probe = probe_jedec,
8321 .probe_timing = TIMING_ZERO,
8322 .block_erasers =
8323 {
8324 {
8325 .eraseblocks = { {512, 128} },
8326 .block_erase = erase_sector_jedec,
8327 }, {
8328 .eraseblocks = { {64 * 1024, 1} },
8329 .block_erase = erase_chip_block_jedec,
8330 },
8331 },
8332 .write = write_jedec_1,
8333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008334 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008335 },
8336
8337 {
8338 .vendor = "MoselVitelic",
8339 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008340 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008341 .manufacture_id = SYNCMOS_MVC_ID,
8342 .model_id = MVC_V29LC51001,
8343 .total_size = 128,
8344 .page_size = 512,
8345 .feature_bits = FEATURE_EITHER_RESET,
8346 .tested = TEST_UNTESTED,
8347 .probe = probe_jedec,
8348 .probe_timing = TIMING_ZERO,
8349 .block_erasers =
8350 {
8351 {
8352 .eraseblocks = { {512, 256} },
8353 .block_erase = erase_sector_jedec,
8354 }, {
8355 .eraseblocks = { {128 * 1024, 1} },
8356 .block_erase = erase_chip_block_jedec,
8357 },
8358 },
8359 .write = write_jedec_1,
8360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008361 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008362 },
8363
8364 {
8365 .vendor = "MoselVitelic",
8366 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008367 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008368 .manufacture_id = SYNCMOS_MVC_ID,
8369 .model_id = MVC_V29LC51002,
8370 .total_size = 256,
8371 .page_size = 512,
8372 .feature_bits = FEATURE_EITHER_RESET,
8373 .tested = TEST_UNTESTED,
8374 .probe = probe_jedec,
8375 .probe_timing = TIMING_ZERO,
8376 .block_erasers =
8377 {
8378 {
8379 .eraseblocks = { {512, 512} },
8380 .block_erase = erase_sector_jedec,
8381 }, {
8382 .eraseblocks = { {256 * 1024, 1} },
8383 .block_erase = erase_chip_block_jedec,
8384 },
8385 },
8386 .write = write_jedec_1,
8387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008388 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008389 },
8390
8391 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008392 .vendor = "Nantronics",
8393 .name = "N25S10",
8394 .bustype = BUS_SPI,
8395 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8396 .model_id = NANTRONICS_N25S10,
8397 .total_size = 128,
8398 .page_size = 256,
8399 .feature_bits = FEATURE_WRSR_WREN,
8400 .tested = TEST_UNTESTED,
8401 .probe = probe_spi_rdid,
8402 .probe_timing = TIMING_ZERO,
8403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {4 * 1024, 32} },
8407 .block_erase = spi_block_erase_20,
8408 }, {
8409 .eraseblocks = { {4 * 1024, 32} },
8410 .block_erase = spi_block_erase_d7,
8411 }, {
8412 .eraseblocks = { {32 * 1024, 4} },
8413 .block_erase = spi_block_erase_52,
8414 }, {
8415 .eraseblocks = { {64 * 1024, 2} },
8416 .block_erase = spi_block_erase_d8,
8417 }, {
8418 .eraseblocks = { {128 * 1024, 1} },
8419 .block_erase = spi_block_erase_60,
8420 }, {
8421 .eraseblocks = { {128 * 1024, 1} },
8422 .block_erase = spi_block_erase_c7,
8423 }
8424 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008425 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008426 .unlock = spi_disable_blockprotect_bp3_srwd,
8427 .write = spi_chip_write_256,
8428 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8429 .voltage = {2700, 3600},
8430 },
8431
8432 {
8433 .vendor = "Nantronics",
8434 .name = "N25S20",
8435 .bustype = BUS_SPI,
8436 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8437 .model_id = NANTRONICS_N25S20,
8438 .total_size = 256,
8439 .page_size = 256,
8440 .feature_bits = FEATURE_WRSR_WREN,
8441 .tested = TEST_UNTESTED,
8442 .probe = probe_spi_rdid,
8443 .probe_timing = TIMING_ZERO,
8444 .block_erasers =
8445 {
8446 {
8447 .eraseblocks = { {4 * 1024, 64} },
8448 .block_erase = spi_block_erase_20,
8449 }, {
8450 .eraseblocks = { {4 * 1024, 64} },
8451 .block_erase = spi_block_erase_d7,
8452 }, {
8453 .eraseblocks = { {32 * 1024, 8} },
8454 .block_erase = spi_block_erase_52,
8455 }, {
8456 .eraseblocks = { {64 * 1024, 4} },
8457 .block_erase = spi_block_erase_d8,
8458 }, {
8459 .eraseblocks = { {256 * 1024, 1} },
8460 .block_erase = spi_block_erase_60,
8461 }, {
8462 .eraseblocks = { {256 * 1024, 1} },
8463 .block_erase = spi_block_erase_c7,
8464 }
8465 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008466 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008467 .unlock = spi_disable_blockprotect_bp3_srwd,
8468 .write = spi_chip_write_256,
8469 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8470 .voltage = {2700, 3600},
8471 },
8472
8473 {
8474 .vendor = "Nantronics",
8475 .name = "N25S40",
8476 .bustype = BUS_SPI,
8477 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8478 .model_id = NANTRONICS_N25S40,
8479 .total_size = 512,
8480 .page_size = 256,
8481 .feature_bits = FEATURE_WRSR_WREN,
8482 .tested = TEST_UNTESTED,
8483 .probe = probe_spi_rdid,
8484 .probe_timing = TIMING_ZERO,
8485 .block_erasers =
8486 {
8487 {
8488 .eraseblocks = { {4 * 1024, 128} },
8489 .block_erase = spi_block_erase_20,
8490 }, {
8491 .eraseblocks = { {4 * 1024, 128} },
8492 .block_erase = spi_block_erase_d7,
8493 }, {
8494 .eraseblocks = { {32 * 1024, 16} },
8495 .block_erase = spi_block_erase_52,
8496 }, {
8497 .eraseblocks = { {64 * 1024, 8} },
8498 .block_erase = spi_block_erase_d8,
8499 }, {
8500 .eraseblocks = { {512 * 1024, 1} },
8501 .block_erase = spi_block_erase_60,
8502 }, {
8503 .eraseblocks = { {512 * 1024, 1} },
8504 .block_erase = spi_block_erase_c7,
8505 }
8506 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008507 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008508 .unlock = spi_disable_blockprotect_bp3_srwd,
8509 .write = spi_chip_write_256,
8510 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8511 .voltage = {2700, 3600},
8512 },
8513
8514 {
8515 .vendor = "Nantronics",
8516 .name = "N25S80",
8517 .bustype = BUS_SPI,
8518 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8519 .model_id = NANTRONICS_N25S80,
8520 .total_size = 1024,
8521 .page_size = 256,
8522 .feature_bits = FEATURE_WRSR_WREN,
8523 .tested = TEST_UNTESTED,
8524 .probe = probe_spi_rdid,
8525 .probe_timing = TIMING_ZERO,
8526 .block_erasers =
8527 {
8528 {
8529 .eraseblocks = { {4 * 1024, 256} },
8530 .block_erase = spi_block_erase_20,
8531 }, {
8532 .eraseblocks = { {32 * 1024, 32} },
8533 .block_erase = spi_block_erase_52,
8534 }, {
8535 .eraseblocks = { {64 * 1024, 16} },
8536 .block_erase = spi_block_erase_d8,
8537 }, {
8538 .eraseblocks = { {1024 * 1024, 1} },
8539 .block_erase = spi_block_erase_60,
8540 }, {
8541 .eraseblocks = { {1024 * 1024, 1} },
8542 .block_erase = spi_block_erase_c7,
8543 }
8544 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008545 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008546 .unlock = spi_disable_blockprotect_bp3_srwd,
8547 .write = spi_chip_write_256,
8548 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8549 .voltage = {2700, 3600},
8550 },
8551
8552 {
8553 .vendor = "Nantronics",
8554 .name = "N25S16",
8555 .bustype = BUS_SPI,
8556 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8557 .model_id = NANTRONICS_N25S16,
8558 .total_size = 2048,
8559 .page_size = 256,
8560 .feature_bits = FEATURE_WRSR_WREN,
8561 .tested = TEST_UNTESTED,
8562 .probe = probe_spi_rdid,
8563 .probe_timing = TIMING_ZERO,
8564 .block_erasers =
8565 {
8566 {
8567 .eraseblocks = { {4 * 1024, 512} },
8568 .block_erase = spi_block_erase_20,
8569 }, {
8570 .eraseblocks = { {64 * 1024, 32} },
8571 .block_erase = spi_block_erase_d8,
8572 }, {
8573 .eraseblocks = { {2048 * 1024, 1} },
8574 .block_erase = spi_block_erase_60,
8575 }, {
8576 .eraseblocks = { {2048 * 1024, 1} },
8577 .block_erase = spi_block_erase_c7,
8578 }
8579 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008580 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008581 .unlock = spi_disable_blockprotect_bp3_srwd,
8582 .write = spi_chip_write_256,
8583 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8584 .voltage = {2700, 3600},
8585 },
8586
8587 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008588 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008589 .name = "Pm25LD256C",
8590 .bustype = BUS_SPI,
8591 .manufacture_id = PMC_ID,
8592 .model_id = PMC_PM25LD256C,
8593 .total_size = 32,
8594 .page_size = 256,
8595 .feature_bits = FEATURE_WRSR_WREN,
8596 .tested = TEST_UNTESTED,
8597 .probe = probe_spi_rdid,
8598 .probe_timing = TIMING_ZERO,
8599 .block_erasers =
8600 {
8601 {
8602 .eraseblocks = { {4 * 1024, 8} },
8603 .block_erase = spi_block_erase_20,
8604 }, {
8605 .eraseblocks = { {4 * 1024, 8} },
8606 .block_erase = spi_block_erase_d7,
8607 }, {
8608 .eraseblocks = { {32 * 1024, 1} },
8609 .block_erase = spi_block_erase_d8,
8610 }, {
8611 .eraseblocks = { {32 * 1024, 1} },
8612 .block_erase = spi_block_erase_60,
8613 }, {
8614 .eraseblocks = { {32 * 1024, 1} },
8615 .block_erase = spi_block_erase_c7,
8616 }
8617 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008618 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008619 .unlock = spi_disable_blockprotect,
8620 .write = spi_chip_write_256,
8621 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8622 .voltage = {2700, 3600},
8623 },
8624 {
8625 .vendor = "PMC",
8626 .name = "Pm25LD512(C)",
8627 .bustype = BUS_SPI,
8628 .manufacture_id = PMC_ID,
8629 .model_id = PMC_PM25LD512,
8630 .total_size = 64,
8631 .page_size = 256,
8632 .feature_bits = FEATURE_WRSR_WREN,
8633 .tested = TEST_OK_PREW,
8634 .probe = probe_spi_rdid,
8635 .probe_timing = TIMING_ZERO,
8636 .block_erasers =
8637 {
8638 {
8639 .eraseblocks = { {4 * 1024, 16} },
8640 .block_erase = spi_block_erase_20,
8641 }, {
8642 .eraseblocks = { {4 * 1024, 16} },
8643 .block_erase = spi_block_erase_d7,
8644 }, {
8645 .eraseblocks = { {32 * 1024, 2} },
8646 .block_erase = spi_block_erase_d8,
8647 }, {
8648 .eraseblocks = { {64 * 1024, 1} },
8649 .block_erase = spi_block_erase_60,
8650 }, {
8651 .eraseblocks = { {64 * 1024, 1} },
8652 .block_erase = spi_block_erase_c7,
8653 }
8654 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008655 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008656 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8657 .write = spi_chip_write_256,
8658 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8659 .voltage = {2300, 3600},
8660 },
8661
8662 {
8663 .vendor = "PMC",
8664 .name = "Pm25LD010(C)",
8665 .bustype = BUS_SPI,
8666 .manufacture_id = PMC_ID,
8667 .model_id = PMC_PM25LD010,
8668 .total_size = 128,
8669 .page_size = 256,
8670 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008671 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008672 .probe = probe_spi_rdid,
8673 .probe_timing = TIMING_ZERO,
8674 .block_erasers =
8675 {
8676 {
8677 .eraseblocks = { {4 * 1024, 32} },
8678 .block_erase = spi_block_erase_20,
8679 }, {
8680 .eraseblocks = { {4 * 1024, 32} },
8681 .block_erase = spi_block_erase_d7,
8682 }, {
8683 .eraseblocks = { {32 * 1024, 4} },
8684 .block_erase = spi_block_erase_d8,
8685 }, {
8686 .eraseblocks = { {128 * 1024, 1} },
8687 .block_erase = spi_block_erase_60,
8688 }, {
8689 .eraseblocks = { {128 * 1024, 1} },
8690 .block_erase = spi_block_erase_c7,
8691 }
8692 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008693 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008694 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8695 .write = spi_chip_write_256,
8696 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8697 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8698 },
8699
8700 {
8701 .vendor = "PMC",
8702 .name = "Pm25LD020(C)",
8703 .bustype = BUS_SPI,
8704 .manufacture_id = PMC_ID,
8705 .model_id = PMC_PM25LD020,
8706 .total_size = 256,
8707 .page_size = 256,
8708 .feature_bits = FEATURE_WRSR_WREN,
8709 .tested = TEST_UNTESTED,
8710 .probe = probe_spi_rdid,
8711 .probe_timing = TIMING_ZERO,
8712 .block_erasers =
8713 {
8714 {
8715 .eraseblocks = { {4 * 1024, 64} },
8716 .block_erase = spi_block_erase_20,
8717 }, {
8718 .eraseblocks = { {4 * 1024, 64} },
8719 .block_erase = spi_block_erase_d7,
8720 }, {
8721 .eraseblocks = { {64 * 1024, 4} },
8722 .block_erase = spi_block_erase_d8,
8723 }, {
8724 .eraseblocks = { {256 * 1024, 1} },
8725 .block_erase = spi_block_erase_60,
8726 }, {
8727 .eraseblocks = { {256 * 1024, 1} },
8728 .block_erase = spi_block_erase_c7,
8729 }
8730 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008731 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008732 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8733 .write = spi_chip_write_256,
8734 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8735 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8736 },
8737
8738 {
8739 .vendor = "PMC",
8740 .name = "Pm25LD040(C)",
8741 .bustype = BUS_SPI,
8742 .manufacture_id = PMC_ID,
8743 .model_id = PMC_PM25LV040,
8744 .total_size = 512,
8745 .page_size = 256,
8746 .feature_bits = FEATURE_WRSR_WREN,
8747 .tested = TEST_UNTESTED,
8748 .probe = probe_spi_rdid,
8749 .probe_timing = TIMING_ZERO,
8750 .block_erasers =
8751 {
8752 {
8753 .eraseblocks = { {4 * 1024, 128} },
8754 .block_erase = spi_block_erase_20,
8755 }, {
8756 .eraseblocks = { {4 * 1024, 128} },
8757 .block_erase = spi_block_erase_d7,
8758 }, {
8759 .eraseblocks = { {64 * 1024, 8} },
8760 .block_erase = spi_block_erase_d8,
8761 }, {
8762 .eraseblocks = { {512 * 1024, 1} },
8763 .block_erase = spi_block_erase_60,
8764 }, {
8765 .eraseblocks = { {512 * 1024, 1} },
8766 .block_erase = spi_block_erase_c7,
8767 }
8768 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008769 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00008770 .unlock = spi_disable_blockprotect,
8771 .write = spi_chip_write_256,
8772 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8773 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8774 },
8775
8776{
8777 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008778 .name = "Pm25LV512(A)",
8779 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008780 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008781 .model_id = PMC_PM25LV512,
8782 .total_size = 64,
8783 .page_size = 256,
8784 .feature_bits = FEATURE_WRSR_WREN,
8785 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00008786 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008787 .probe_timing = TIMING_ZERO,
8788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = { {4 * 1024, 16} },
8792 .block_erase = spi_block_erase_d7,
8793 }, {
8794 .eraseblocks = { {32 * 1024, 2} },
8795 .block_erase = spi_block_erase_d8,
8796 }, {
8797 .eraseblocks = { {64 * 1024, 1} },
8798 .block_erase = spi_block_erase_c7,
8799 }
8800 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008801 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008802 .unlock = spi_disable_blockprotect,
8803 .write = spi_chip_write_256,
8804 .read = spi_chip_read, /* Fast read (0x0B) supported */
8805 .voltage = {2700, 3600},
8806 },
8807
8808 {
8809 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008811 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00008812 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008813 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008814 .total_size = 128,
8815 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008816 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00008817 .tested = TEST_OK_PREW,
8818 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008819 .probe_timing = TIMING_ZERO,
8820 .block_erasers =
8821 {
8822 {
8823 .eraseblocks = { {4 * 1024, 32} },
8824 .block_erase = spi_block_erase_d7,
8825 }, {
8826 .eraseblocks = { {32 * 1024, 4} },
8827 .block_erase = spi_block_erase_d8,
8828 }, {
8829 .eraseblocks = { {128 * 1024, 1} },
8830 .block_erase = spi_block_erase_c7,
8831 }
8832 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008833 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008834 .unlock = spi_disable_blockprotect,
8835 .write = spi_chip_write_256,
8836 .read = spi_chip_read, /* Fast read (0x0B) supported */
8837 .voltage = {2700, 3600},
8838 },
8839
8840 {
8841 .vendor = "PMC",
8842 .name = "Pm25LV010A",
8843 .bustype = BUS_SPI,
8844 .manufacture_id = PMC_ID,
8845 .model_id = PMC_PM25LV010,
8846 .total_size = 128,
8847 .page_size = 256,
8848 .feature_bits = FEATURE_WRSR_WREN,
8849 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008851 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008852 .block_erasers =
8853 {
8854 {
8855 .eraseblocks = { {4 * 1024, 32} },
8856 .block_erase = spi_block_erase_d7,
8857 }, {
8858 .eraseblocks = { {32 * 1024, 4} },
8859 .block_erase = spi_block_erase_d8,
8860 }, {
8861 .eraseblocks = { {128 * 1024, 1} },
8862 .block_erase = spi_block_erase_c7,
8863 }
8864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008865 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008866 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008867 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008868 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008869 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008870 },
8871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008872 {
8873 .vendor = "PMC",
8874 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008875 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008877 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 .total_size = 256,
8879 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008880 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008881 .tested = TEST_UNTESTED,
8882 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008883 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008884 .block_erasers =
8885 {
8886 {
8887 .eraseblocks = { {4 * 1024, 64} },
8888 .block_erase = spi_block_erase_d7,
8889 }, {
8890 .eraseblocks = { {64 * 1024, 4} },
8891 .block_erase = spi_block_erase_d8,
8892 }, {
8893 .eraseblocks = { {256 * 1024, 1} },
8894 .block_erase = spi_block_erase_c7,
8895 }
8896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008897 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008898 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008899 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008900 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008901 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008902 },
8903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008904 {
8905 .vendor = "PMC",
8906 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008907 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008908 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008909 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008910 .total_size = 512,
8911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008912 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008913 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008914 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008915 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008916 .block_erasers =
8917 {
8918 {
8919 .eraseblocks = { {4 * 1024, 128} },
8920 .block_erase = spi_block_erase_d7,
8921 }, {
8922 .eraseblocks = { {64 * 1024, 8} },
8923 .block_erase = spi_block_erase_d8,
8924 }, {
8925 .eraseblocks = { {512 * 1024, 1} },
8926 .block_erase = spi_block_erase_c7,
8927 }
8928 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008929 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008930 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008931 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008932 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008933 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008934 },
8935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008936 {
8937 .vendor = "PMC",
8938 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008939 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008940 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008941 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008942 .total_size = 1024,
8943 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008944 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008945 .tested = TEST_UNTESTED,
8946 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008947 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008948 .block_erasers =
8949 {
8950 {
8951 .eraseblocks = { {4 * 1024, 256} },
8952 .block_erase = spi_block_erase_d7,
8953 }, {
8954 .eraseblocks = { {4 * 1024, 256} },
8955 .block_erase = spi_block_erase_20,
8956 }, {
8957 .eraseblocks = { {64 * 1024, 16} },
8958 .block_erase = spi_block_erase_d8,
8959 }, {
8960 .eraseblocks = { {1024 * 1024, 1} },
8961 .block_erase = spi_block_erase_60,
8962 }, {
8963 .eraseblocks = { {1024 * 1024, 1} },
8964 .block_erase = spi_block_erase_c7,
8965 }
8966 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008967 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008968 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008969 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008970 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008971 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008972 },
8973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008974 {
8975 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008976 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008977 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008978 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008979 .model_id = PMC_PM25LV016B,
8980 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008982 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008983 .tested = TEST_UNTESTED,
8984 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008985 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008986 .block_erasers =
8987 {
8988 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008989 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008990 .block_erase = spi_block_erase_d7,
8991 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008992 .eraseblocks = { {4 * 1024, 512} },
8993 .block_erase = spi_block_erase_20,
8994 }, {
8995 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008996 .block_erase = spi_block_erase_d8,
8997 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008998 .eraseblocks = { {2 * 1024 * 1024, 1} },
8999 .block_erase = spi_block_erase_60,
9000 }, {
9001 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009002 .block_erase = spi_block_erase_c7,
9003 }
9004 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009005 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009006 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009007 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009008 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009009 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009010 },
9011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009012 {
9013 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009014 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009015 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009016 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009017 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009018 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009019 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009020 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009021 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009022 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009023 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009024 .block_erasers =
9025 {
9026 {
9027 .eraseblocks = {
9028 {128 * 1024, 1},
9029 {96 * 1024, 1},
9030 {8 * 1024, 2},
9031 {16 * 1024, 1},
9032 },
Sean Nelson35727f72010-01-28 23:55:12 +00009033 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009034 }, {
9035 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009036 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009037 },
9038 },
Sean Nelson35727f72010-01-28 23:55:12 +00009039 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009041 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009042 },
9043
9044 {
9045 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009046 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009047 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009048 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009049 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009050 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009051 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009052 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009053 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009054 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009055 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009056 .block_erasers =
9057 {
9058 {
9059 .eraseblocks = {
9060 {16 * 1024, 1},
9061 {8 * 1024, 2},
9062 {96 * 1024, 1},
9063 {128 * 1024, 1},
9064 },
Sean Nelson35727f72010-01-28 23:55:12 +00009065 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009066 }, {
9067 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009068 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009069 },
9070 },
Sean Nelson35727f72010-01-28 23:55:12 +00009071 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009073 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009074 },
9075
9076 {
9077 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009078 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009079 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009080 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009081 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009082 .total_size = 128,
9083 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009084 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009085 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009087 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009088 .block_erasers =
9089 {
9090 {
9091 .eraseblocks = { {4 * 1024, 32} },
9092 .block_erase = erase_sector_jedec,
9093 }, {
9094 .eraseblocks = { {64 * 1024, 2} },
9095 .block_erase = erase_block_jedec,
9096 }, {
9097 .eraseblocks = { {128 * 1024, 1} },
9098 .block_erase = erase_chip_block_jedec,
9099 }
9100 },
Sean Nelson35727f72010-01-28 23:55:12 +00009101 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009103 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009104 },
9105
9106 {
9107 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009108 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009109 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009110 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009111 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009112 .total_size = 256,
9113 .page_size = 4096,
9114 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9115 .tested = TEST_UNTESTED,
9116 .probe = probe_jedec,
9117 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9118 .block_erasers =
9119 {
9120 {
9121 .eraseblocks = { {4 * 1024, 64} },
9122 .block_erase = erase_sector_jedec,
9123 }, {
9124 .eraseblocks = { {64 * 1024, 4} },
9125 .block_erase = erase_block_jedec,
9126 }, {
9127 .eraseblocks = { {256 * 1024, 1} },
9128 .block_erase = erase_chip_block_jedec,
9129 }
9130 },
9131 .write = write_jedec_1,
9132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009133 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009134 },
9135
9136 {
9137 .vendor = "PMC",
9138 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009139 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009140 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009141 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009142 .total_size = 512,
9143 .page_size = 4096,
9144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009145 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009146 .probe = probe_jedec,
9147 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9148 .block_erasers =
9149 {
9150 {
9151 .eraseblocks = { {4 * 1024, 128} },
9152 .block_erase = erase_sector_jedec,
9153 }, {
9154 .eraseblocks = { {64 * 1024, 8} },
9155 .block_erase = erase_block_jedec,
9156 }, {
9157 .eraseblocks = { {512 * 1024, 1} },
9158 .block_erase = erase_chip_block_jedec,
9159 }
9160 },
9161 .write = write_jedec_1,
9162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009163 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009164 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009165
9166 {
9167 .vendor = "PMC",
9168 .name = "Pm39LV512",
9169 .bustype = BUS_PARALLEL,
9170 .manufacture_id = PMC_ID_NOPREFIX,
9171 .model_id = PMC_PM39LV512,
9172 .total_size = 64,
9173 .page_size = 4096,
9174 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9175 .tested = TEST_OK_PREW,
9176 .probe = probe_jedec,
9177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9178 .block_erasers =
9179 {
9180 {
9181 .eraseblocks = { {4 * 1024, 16} },
9182 .block_erase = erase_sector_jedec,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 1} },
9185 .block_erase = erase_block_jedec,
9186 }, {
9187 .eraseblocks = { {64 * 1024, 1} },
9188 .block_erase = erase_chip_block_jedec,
9189 }
9190 },
9191 .write = write_jedec_1,
9192 .read = read_memmapped,
9193 .voltage = {2700, 3600},
9194 },
9195
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009196 {
9197 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009198 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009199 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009200 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009201 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009202 .total_size = 256,
9203 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009204 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009205 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009206 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009207 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009208 .block_erasers =
9209 {
9210 {
9211 .eraseblocks = { {4 * 1024, 64} },
9212 .block_erase = erase_sector_jedec,
9213 }, {
9214 .eraseblocks = { {16 * 1024, 16} },
9215 .block_erase = erase_block_jedec,
9216 }, {
9217 .eraseblocks = { {256 * 1024, 1} },
9218 .block_erase = erase_chip_block_jedec,
9219 }
9220 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009221 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +00009222 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009224 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009225 },
9226
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009227 {
9228 .vendor = "PMC",
9229 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009230 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009231 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009232 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009233 .total_size = 512,
9234 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009235 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009236 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009237 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009238 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009239 .block_erasers =
9240 {
9241 {
9242 .eraseblocks = { {4 * 1024, 128} },
9243 .block_erase = erase_sector_jedec,
9244 }, {
9245 .eraseblocks = { {64 * 1024, 8} },
9246 .block_erase = erase_block_jedec,
9247 }, {
9248 .eraseblocks = { {512 * 1024, 1} },
9249 .block_erase = erase_chip_block_jedec,
9250 }
9251 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009252 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +00009253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009255 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009256 },
9257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009258 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009259 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009260 .name = "LE25FW106",
9261 .bustype = BUS_SPI,
9262 .manufacture_id = SANYO_ID,
9263 .model_id = SANYO_LE25FW106,
9264 .total_size = 128,
9265 .page_size = 256,
9266 .feature_bits = FEATURE_WRSR_WREN,
9267 .tested = TEST_OK_PREW,
9268 .probe = probe_spi_res2,
9269 .probe_timing = TIMING_ZERO,
9270 .block_erasers = {
9271 {
9272 .eraseblocks = { {2 * 1024, 64} },
9273 .block_erase = spi_block_erase_d7,
9274 }, {
9275 .eraseblocks = { {32 * 1024, 4} },
9276 .block_erase = spi_block_erase_d8,
9277 }, {
9278 .eraseblocks = { {128 * 1024, 1} },
9279 .block_erase = spi_block_erase_c7,
9280 }
9281 },
9282 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9283 .unlock = spi_disable_blockprotect_bp1_srwd,
9284 .write = spi_chip_write_256,
9285 .read = spi_chip_read,
9286 .voltage = {2700, 3600},
9287 },
9288
9289 {
9290 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009291 .name = "LE25FW406A",
9292 .bustype = BUS_SPI,
9293 .manufacture_id = SANYO_ID,
9294 .model_id = SANYO_LE25FW406A,
9295 .total_size = 512,
9296 .page_size = 256,
9297 .feature_bits = FEATURE_WRSR_WREN,
9298 .tested = TEST_OK_PREW,
9299 .probe = probe_spi_res2,
9300 .probe_timing = TIMING_ZERO,
9301 .block_erasers = {
9302 {
9303 .eraseblocks = { {4 * 1024, 128} },
9304 .block_erase = spi_block_erase_d7,
9305 }, {
9306 .eraseblocks = { {64 * 1024, 8} },
9307 .block_erase = spi_block_erase_d8,
9308 }, {
9309 .eraseblocks = { {512 * 1024, 1} },
9310 .block_erase = spi_block_erase_c7,
9311 }
9312 },
9313 .printlock = spi_prettyprint_status_register_plain,
9314 .unlock = spi_disable_blockprotect,
9315 .write = spi_chip_write_256,
9316 .read = spi_chip_read,
9317 .voltage = {2700, 3600},
9318 },
9319
9320 {
9321 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009322 .name = "LE25FU406B",
9323 .bustype = BUS_SPI,
9324 .manufacture_id = SANYO_ID,
9325 .model_id = SANYO_LE25FU406B,
9326 .total_size = 512,
9327 .page_size = 256,
9328 .feature_bits = FEATURE_WRSR_WREN,
9329 .tested = TEST_OK_PREW,
9330 .probe = probe_spi_res2,
9331 .probe_timing = TIMING_ZERO,
9332 .block_erasers = {
9333 {
9334 .eraseblocks = { {4 * 1024, 128} },
9335 .block_erase = spi_block_erase_d7,
9336 }, {
9337 .eraseblocks = { {64 * 1024, 8} },
9338 .block_erase = spi_block_erase_d8,
9339 }, {
9340 .eraseblocks = { {512 * 1024, 1} },
9341 .block_erase = spi_block_erase_c7,
9342 }
9343 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009344 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009345 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9346 .write = spi_chip_write_256,
9347 .read = spi_chip_read,
9348 .voltage = {2300, 3600},
9349 },
9350
9351 {
9352 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009353 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009354 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009355 .manufacture_id = SANYO_ID,
9356 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009357 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009358 .page_size = 256,
9359 .tested = TEST_UNTESTED,
9360 .probe = probe_spi_rdid,
9361 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009362 .block_erasers =
9363 {
9364 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009365 .eraseblocks = { {256, 1024} },
9366 .block_erase = spi_block_erase_db,
9367 }, {
9368 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009369 .block_erase = spi_block_erase_d8,
9370 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009371 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009372 .block_erase = spi_block_erase_c7,
9373 }
9374 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009375 .printlock = spi_prettyprint_status_register_default_welwip,
9376 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009377 .write = spi_chip_write_256,
9378 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009379 .voltage = {2700, 3600},
9380 },
9381
9382 {
9383 .vendor = "Sanyo",
9384 .name = "LE25FW403A",
9385 .bustype = BUS_SPI,
9386 .manufacture_id = SANYO_ID,
9387 .model_id = SANYO_LE25FW403A,
9388 .total_size = 512,
9389 .page_size = 256,
9390 .tested = TEST_UNTESTED,
9391 .probe = probe_spi_rdid,
9392 .probe_timing = TIMING_ZERO,
9393 .block_erasers = {
9394 {
9395 .eraseblocks = { {256, 2 * 1024} },
9396 .block_erase = spi_block_erase_db,
9397 }, {
9398 .eraseblocks = { {64 * 1024, 8} },
9399 .block_erase = spi_block_erase_d8,
9400 }, {
9401 .eraseblocks = { {512 * 1024, 1} },
9402 .block_erase = spi_block_erase_c7,
9403 }
9404 },
9405 .printlock = spi_prettyprint_status_register_default_welwip,
9406 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9407 .write = spi_chip_write_256,
9408 .read = spi_chip_read,
9409 .voltage = {2700, 3600},
9410 },
9411
9412 {
9413 .vendor = "Sanyo",
9414 .name = "LE25FW418A",
9415 .bustype = BUS_SPI,
9416 .manufacture_id = SANYO_ID,
9417 .model_id = SANYO_LE25FW418A,
9418 .total_size = 512,
9419 .page_size = 256,
9420 .feature_bits = FEATURE_WRSR_WREN,
9421 .tested = TEST_UNTESTED,
9422 .probe = probe_spi_res2,
9423 .probe_timing = TIMING_ZERO,
9424 .block_erasers = {
9425 {
9426 .eraseblocks = { {4 * 1024, 128} },
9427 .block_erase = spi_block_erase_d7,
9428 }, {
9429 .eraseblocks = { {64 * 1024, 8} },
9430 .block_erase = spi_block_erase_d8,
9431 }, {
9432 .eraseblocks = { {512 * 1024, 1} },
9433 .block_erase = spi_block_erase_c7,
9434 }
9435 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009436 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009437 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9438 .write = spi_chip_write_256,
9439 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9440 .voltage = {2700, 3600},
9441 },
9442
9443 {
9444 .vendor = "Sanyo",
9445 .name = "LE25FW806",
9446 .bustype = BUS_SPI,
9447 .manufacture_id = SANYO_ID,
9448 .model_id = SANYO_LE25FW806,
9449 .total_size = 1024,
9450 .page_size = 256,
9451 .feature_bits = FEATURE_WRSR_WREN,
9452 .tested = TEST_UNTESTED,
9453 .probe = probe_spi_res2,
9454 .probe_timing = TIMING_ZERO,
9455 .block_erasers = {
9456 {
9457 .eraseblocks = { {4 * 1024, 256} },
9458 .block_erase = spi_block_erase_20,
9459 }, {
9460 .eraseblocks = { {4 * 1024, 256} },
9461 .block_erase = spi_block_erase_d7,
9462 }, {
9463 .eraseblocks = { {64 * 1024, 16} },
9464 .block_erase = spi_block_erase_d8,
9465 }, {
9466 .eraseblocks = { {1024 * 1024, 1} },
9467 .block_erase = spi_block_erase_c7,
9468 }
9469 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009470 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009471 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9472 .write = spi_chip_write_256,
9473 .read = spi_chip_read,
9474 .voltage = {2700, 3600},
9475 },
9476
9477 {
9478 .vendor = "Sanyo",
9479 .name = "LE25FW808",
9480 .bustype = BUS_SPI,
9481 .manufacture_id = SANYO_ID,
9482 .model_id = SANYO_LE25FW808,
9483 .total_size = 1024,
9484 .page_size = 256,
9485 .feature_bits = FEATURE_WRSR_WREN,
9486 .tested = TEST_UNTESTED,
9487 .probe = probe_spi_res2,
9488 .probe_timing = TIMING_ZERO,
9489 .block_erasers = {
9490 {
9491 .eraseblocks = { {8 * 1024, 128} },
9492 .block_erase = spi_block_erase_d7,
9493 }, {
9494 .eraseblocks = { {64 * 1024, 16} },
9495 .block_erase = spi_block_erase_d8,
9496 }, {
9497 .eraseblocks = { {1024 * 1024, 1} },
9498 .block_erase = spi_block_erase_c7,
9499 }
9500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009501 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009502 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9503 .write = spi_chip_write_256,
9504 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9505 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009506 },
9507
9508 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009509 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009510 .name = "LH28F008BJT-BTLZ1",
9511 .bustype = BUS_PARALLEL,
9512 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009513 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009514 .total_size = 1024,
9515 .page_size = 64 * 1024,
9516 .tested = TEST_OK_PREW,
9517 .probe = probe_82802ab,
9518 .probe_timing = TIMING_ZERO,
9519 .block_erasers =
9520 {
9521 {
9522 .eraseblocks = {
9523 {8 * 1024, 8},
9524 {64 * 1024, 15}
9525 },
9526 .block_erase = erase_block_82802ab,
9527 }, {
9528 .eraseblocks = { {1024 * 1024, 1} },
9529 .block_erase = erase_sector_49lfxxxc,
9530 }
9531 },
9532 .unlock = unlock_lh28f008bjt,
9533 .write = write_82802ab,
9534 .read = read_memmapped,
9535 .voltage = {2700, 3600},
9536 },
9537
9538 {
9539 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009540 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009541 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009542 .manufacture_id = SHARP_ID,
9543 .model_id = SHARP_LHF00L04,
9544 .total_size = 1024,
9545 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009546 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009547 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009548 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009549 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009550 .block_erasers =
9551 {
9552 {
9553 .eraseblocks = {
9554 {64 * 1024, 15},
9555 {8 * 1024, 8}
9556 },
Sean Nelson28accc22010-03-19 18:47:06 +00009557 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009558 }, {
9559 .eraseblocks = {
9560 {1024 * 1024, 1}
9561 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009562 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009563 },
9564 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009565 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +00009566 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009567 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009568 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009569 },
9570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009571 {
9572 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009573 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009574 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009575 .manufacture_id = SPANSION_ID,
9576 .model_id = SPANSION_S25FL004A,
9577 .total_size = 512,
9578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009579 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009580 .tested = TEST_UNTESTED,
9581 .probe = probe_spi_rdid,
9582 .probe_timing = TIMING_ZERO,
9583 .block_erasers =
9584 {
9585 {
9586 .eraseblocks = { {64 * 1024, 8} },
9587 .block_erase = spi_block_erase_d8,
9588 }, {
9589 .eraseblocks = { {512 * 1024, 1} },
9590 .block_erase = spi_block_erase_c7,
9591 }
9592 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009593 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009594 .unlock = spi_disable_blockprotect,
9595 .write = spi_chip_write_256,
9596 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009597 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009598 },
9599
9600 {
9601 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009602 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009603 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009604 .manufacture_id = SPANSION_ID,
9605 .model_id = SPANSION_S25FL008A,
9606 .total_size = 1024,
9607 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009608 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009609 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009610 .probe = probe_spi_rdid,
9611 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009612 .block_erasers =
9613 {
9614 {
9615 .eraseblocks = { {64 * 1024, 16} },
9616 .block_erase = spi_block_erase_d8,
9617 }, {
9618 .eraseblocks = { {1024 * 1024, 1} },
9619 .block_erase = spi_block_erase_c7,
9620 }
9621 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009623 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009624 .write = spi_chip_write_256,
9625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009626 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009627 },
9628
9629 {
9630 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009631 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009632 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009633 .manufacture_id = SPANSION_ID,
9634 .model_id = SPANSION_S25FL016A,
9635 .total_size = 2048,
9636 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009637 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009638 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009640 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009641 .block_erasers =
9642 {
9643 {
9644 .eraseblocks = { {64 * 1024, 32} },
9645 .block_erase = spi_block_erase_d8,
9646 }, {
9647 .eraseblocks = { {2 * 1024 * 1024, 1} },
9648 .block_erase = spi_block_erase_c7,
9649 }
9650 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009651 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009652 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009653 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009654 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009655 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009656 },
9657
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009658 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009659 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009660 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009661 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009662 .manufacture_id = SPANSION_ID,
9663 .model_id = SPANSION_S25FL032A,
9664 .total_size = 4096,
9665 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009666 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009667 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009668 .probe = probe_spi_rdid,
9669 .probe_timing = TIMING_ZERO,
9670 .block_erasers =
9671 {
9672 {
9673 .eraseblocks = { {64 * 1024, 64} },
9674 .block_erase = spi_block_erase_d8,
9675 }, {
9676 .eraseblocks = { {4 * 1024 * 1024, 1} },
9677 .block_erase = spi_block_erase_c7,
9678 }
9679 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009680 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009681 .unlock = spi_disable_blockprotect,
9682 .write = spi_chip_write_256,
9683 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009684 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009685 },
9686
9687 {
9688 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009689 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009690 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009691 .manufacture_id = SPANSION_ID,
9692 .model_id = SPANSION_S25FL064A,
9693 .total_size = 8192,
9694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009695 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009696 .tested = TEST_OK_PREW,
9697 .probe = probe_spi_rdid,
9698 .probe_timing = TIMING_ZERO,
9699 .block_erasers =
9700 {
9701 {
9702 .eraseblocks = { {64 * 1024, 128} },
9703 .block_erase = spi_block_erase_d8,
9704 }, {
9705 .eraseblocks = { {8 * 1024 * 1024, 1} },
9706 .block_erase = spi_block_erase_c7,
9707 }
9708 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009709 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009710 .unlock = spi_disable_blockprotect,
9711 .write = spi_chip_write_256,
9712 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009713 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009714 },
9715
9716 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009717 .vendor = "Spansion",
9718 .name = "S25FL204K",
9719 .bustype = BUS_SPI,
9720 .manufacture_id = SPANSION_ID,
9721 .model_id = SPANSION_S25FL204,
9722 .total_size = 512,
9723 .page_size = 256,
9724 .feature_bits = FEATURE_WRSR_WREN,
9725 .tested = TEST_UNTESTED,
9726 .probe = probe_spi_rdid,
9727 .probe_timing = TIMING_ZERO,
9728 .block_erasers = {
9729 {
9730 .eraseblocks = { {4 * 1024, 128} },
9731 .block_erase = spi_block_erase_20,
9732 }, {
9733 .eraseblocks = { {64 * 1024, 8} },
9734 .block_erase = spi_block_erase_d8,
9735 }, {
9736 .eraseblocks = { { 512 * 1024, 1} },
9737 .block_erase = spi_block_erase_60,
9738 }, {
9739 .eraseblocks = { { 512 * 1024, 1} },
9740 .block_erase = spi_block_erase_c7,
9741 }
9742 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009743 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009744 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9745 .write = spi_chip_write_256,
9746 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9747 .voltage = {2700, 3600},
9748 },
9749
9750 {
9751 .vendor = "Spansion",
9752 .name = "S25FL208K",
9753 .bustype = BUS_SPI,
9754 .manufacture_id = SPANSION_ID,
9755 .model_id = SPANSION_S25FL208,
9756 .total_size = 1024,
9757 .page_size = 256,
9758 .feature_bits = FEATURE_WRSR_WREN,
9759 .tested = TEST_UNTESTED,
9760 .probe = probe_spi_rdid,
9761 .probe_timing = TIMING_ZERO,
9762 .block_erasers = {
9763 {
9764 .eraseblocks = { {4 * 1024, 256} },
9765 .block_erase = spi_block_erase_20,
9766 }, {
9767 .eraseblocks = { {64 * 1024, 16} },
9768 .block_erase = spi_block_erase_d8,
9769 }, {
9770 .eraseblocks = { { 1024 * 1024, 1} },
9771 .block_erase = spi_block_erase_60,
9772 }, {
9773 .eraseblocks = { { 1024 * 1024, 1} },
9774 .block_erase = spi_block_erase_c7,
9775 }
9776 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009777 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009778 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9779 .write = spi_chip_write_256,
9780 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9781 .voltage = {2700, 3600},
9782 },
9783
9784 {
9785 .vendor = "Spansion",
9786 .name = "S25FL116K/S25FL216K",
9787 .bustype = BUS_SPI,
9788 .manufacture_id = SPANSION_ID,
9789 .model_id = SPANSION_S25FL216,
9790 .total_size = 2048,
9791 .page_size = 256,
9792 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9794 .tested = TEST_UNTESTED,
9795 .probe = probe_spi_rdid,
9796 .probe_timing = TIMING_ZERO,
9797 .block_erasers = {
9798 {
9799 .eraseblocks = { {4 * 1024, 512} },
9800 .block_erase = spi_block_erase_20,
9801 }, {
9802 .eraseblocks = { {64 * 1024, 32} },
9803 .block_erase = spi_block_erase_d8,
9804 }, {
9805 .eraseblocks = { { 2048 * 1024, 1} },
9806 .block_erase = spi_block_erase_60,
9807 }, {
9808 .eraseblocks = { { 2048 * 1024, 1} },
9809 .block_erase = spi_block_erase_c7,
9810 }
9811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009812 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009813 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9814 .write = spi_chip_write_256,
9815 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9816 .voltage = {2700, 3600},
9817 },
9818
9819 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009820 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009821 .name = "S25FL132K",
9822 .bustype = BUS_SPI,
9823 .manufacture_id = SPANSION_ID,
9824 .model_id = SPANSION_S25FL132K,
9825 .total_size = 4096,
9826 .page_size = 256,
9827 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9829 .tested = TEST_UNTESTED,
9830 .probe = probe_spi_rdid,
9831 .probe_timing = TIMING_ZERO,
9832 .block_erasers = {
9833 {
9834 .eraseblocks = { {4 * 1024, 1024} },
9835 .block_erase = spi_block_erase_20,
9836 }, {
9837 .eraseblocks = { {64 * 1024, 64} },
9838 .block_erase = spi_block_erase_d8,
9839 }, {
9840 .eraseblocks = { { 4096 * 1024, 1} },
9841 .block_erase = spi_block_erase_60,
9842 }, {
9843 .eraseblocks = { { 4096 * 1024, 1} },
9844 .block_erase = spi_block_erase_c7,
9845 }
9846 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009847 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009848 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9849 .write = spi_chip_write_256,
9850 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9851 .voltage = {2700, 3600},
9852 },
9853
9854 {
9855 .vendor = "Spansion",
9856 .name = "S25FL164K",
9857 .bustype = BUS_SPI,
9858 .manufacture_id = SPANSION_ID,
9859 .model_id = SPANSION_S25FL164K,
9860 .total_size = 8192,
9861 .page_size = 256,
9862 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9864 .tested = TEST_OK_PREW,
9865 .probe = probe_spi_rdid,
9866 .probe_timing = TIMING_ZERO,
9867 .block_erasers = {
9868 {
9869 .eraseblocks = { {4 * 1024, 2048} },
9870 .block_erase = spi_block_erase_20,
9871 }, {
9872 .eraseblocks = { {64 * 1024, 128} },
9873 .block_erase = spi_block_erase_d8,
9874 }, {
9875 .eraseblocks = { { 8192 * 1024, 1} },
9876 .block_erase = spi_block_erase_60,
9877 }, {
9878 .eraseblocks = { { 8192 * 1024, 1} },
9879 .block_erase = spi_block_erase_c7,
9880 }
9881 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009882 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +00009883 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9884 .write = spi_chip_write_256,
9885 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9886 .voltage = {2700, 3600},
9887 },
9888
9889 {
9890 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009891 .name = "S25FL128S......0", /* uniform 256kB sectors */
9892 .bustype = BUS_SPI,
9893 .manufacture_id = SPANSION_ID,
9894 .model_id = SPANSION_S25FL128,
9895 .total_size = 16384,
9896 .page_size = 256,
9897 /* supports 4B addressing */
9898 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9900 .tested = TEST_UNTESTED,
9901 .probe = probe_spi_rdid,
9902 .probe_timing = TIMING_ZERO,
9903 .block_erasers = {
9904 {
9905 .eraseblocks = { {4 * 1024, 4096} },
9906 .block_erase = spi_block_erase_20,
9907 }, {
9908 .eraseblocks = { {256 * 1024, 64} },
9909 .block_erase = spi_block_erase_d8,
9910 }, {
9911 .eraseblocks = { { 16384 * 1024, 1} },
9912 .block_erase = spi_block_erase_60,
9913 }, {
9914 .eraseblocks = { { 16384 * 1024, 1} },
9915 .block_erase = spi_block_erase_c7,
9916 }
9917 },
9918 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9919 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9920 .write = spi_chip_write_256, /* Multi I/O supported */
9921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9922 .voltage = {2700, 3600},
9923 },
9924
9925 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009926 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009927 .name = "SST25LF020A",
9928 .bustype = BUS_SPI,
9929 .manufacture_id = SST_ID,
9930 .model_id = SST_SST25VF020_REMS,
9931 .total_size = 256,
9932 .page_size = 256,
9933 .feature_bits = FEATURE_WRSR_EWSR,
9934 .tested = TEST_OK_PREW,
9935 .probe = probe_spi_rems,
9936 .probe_timing = TIMING_ZERO,
9937 .block_erasers =
9938 {
9939 {
9940 .eraseblocks = { {4 * 1024, 64} },
9941 .block_erase = spi_block_erase_20,
9942 }, {
9943 .eraseblocks = { {32 * 1024, 8} },
9944 .block_erase = spi_block_erase_52,
9945 }, {
9946 .eraseblocks = { {256 * 1024, 1} },
9947 .block_erase = spi_block_erase_60,
9948 },
9949 },
9950 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9951 .unlock = spi_disable_blockprotect,
9952 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9953 .read = spi_chip_read, /* Fast read (0x0B) supported */
9954 .voltage = {2700, 3600},
9955 },
9956
9957 {
9958 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009959 .name = "SST25LF040A",
9960 .bustype = BUS_SPI,
9961 .manufacture_id = SST_ID,
9962 .model_id = SST_SST25VF040_REMS,
9963 .total_size = 512,
9964 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009965 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009966 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009967 .probe = probe_spi_res2,
9968 .probe_timing = TIMING_ZERO,
9969 .block_erasers =
9970 {
9971 {
9972 .eraseblocks = { {4 * 1024, 128} },
9973 .block_erase = spi_block_erase_20,
9974 }, {
9975 .eraseblocks = { {32 * 1024, 16} },
9976 .block_erase = spi_block_erase_52,
9977 }, {
9978 .eraseblocks = { {512 * 1024, 1} },
9979 .block_erase = spi_block_erase_60,
9980 },
9981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009982 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009983 .unlock = spi_disable_blockprotect,
9984 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9985 .read = spi_chip_read,
9986 .voltage = {3000, 3600},
9987 },
9988
9989 {
9990 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009991 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009992 .bustype = BUS_SPI,
9993 .manufacture_id = SST_ID,
9994 .model_id = SST_SST25VF080_REMS,
9995 .total_size = 1024,
9996 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009997 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009998 .tested = TEST_UNTESTED,
9999 .probe = probe_spi_res2,
10000 .probe_timing = TIMING_ZERO,
10001 .block_erasers =
10002 {
10003 {
10004 .eraseblocks = { {4 * 1024, 256} },
10005 .block_erase = spi_block_erase_20,
10006 }, {
10007 .eraseblocks = { {32 * 1024, 32} },
10008 .block_erase = spi_block_erase_52,
10009 }, {
10010 .eraseblocks = { {1024 * 1024, 1} },
10011 .block_erase = spi_block_erase_60,
10012 },
10013 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010014 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010015 .unlock = spi_disable_blockprotect,
10016 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10017 .read = spi_chip_read,
10018 .voltage = {3000, 3600},
10019 },
10020
10021 {
10022 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000010023 .name = "SST25VF512A",
10024 .bustype = BUS_SPI,
10025 .manufacture_id = SST_ID,
10026 .model_id = SST_SST25VF512A_REMS,
10027 .total_size = 64,
10028 .page_size = 256,
10029 .feature_bits = FEATURE_WRSR_EWSR,
10030 .tested = TEST_OK_PREW,
10031 .probe = probe_spi_rems,
10032 .probe_timing = TIMING_ZERO,
10033 .block_erasers =
10034 {
10035 {
10036 .eraseblocks = { {4 * 1024, 16} },
10037 .block_erase = spi_block_erase_20,
10038 }, {
10039 .eraseblocks = { {32 * 1024, 2} },
10040 .block_erase = spi_block_erase_52,
10041 }, {
10042 .eraseblocks = { {32 * 1024, 2} },
10043 .block_erase = spi_block_erase_d8,
10044 }, {
10045 .eraseblocks = { {64 * 1024, 1} },
10046 .block_erase = spi_block_erase_60,
10047 }, {
10048 .eraseblocks = { {64 * 1024, 1} },
10049 .block_erase = spi_block_erase_c7,
10050 },
10051 },
10052 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10053 .unlock = spi_disable_blockprotect,
10054 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10055 .read = spi_chip_read, /* Fast read (0x0B) supported */
10056 .voltage = {2700, 3600},
10057 },
10058
10059 {
10060 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010061 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010062 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010063 .manufacture_id = SST_ID,
10064 .model_id = SST_SST25VF010_REMS,
10065 .total_size = 128,
10066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010067 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010068 .tested = TEST_OK_PREW,
10069 .probe = probe_spi_rems,
10070 .probe_timing = TIMING_ZERO,
10071 .block_erasers =
10072 {
10073 {
10074 .eraseblocks = { {4 * 1024, 32} },
10075 .block_erase = spi_block_erase_20,
10076 }, {
10077 .eraseblocks = { {32 * 1024, 4} },
10078 .block_erase = spi_block_erase_52,
10079 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010080 .eraseblocks = { {32 * 1024, 4} },
10081 .block_erase = spi_block_erase_d8,
10082 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010083 .eraseblocks = { {128 * 1024, 1} },
10084 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010085 }, {
10086 .eraseblocks = { {128 * 1024, 1} },
10087 .block_erase = spi_block_erase_c7,
10088 },
10089 },
10090 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10091 .unlock = spi_disable_blockprotect,
10092 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10093 .read = spi_chip_read, /* Fast read (0x0B) supported */
10094 .voltage = {2700, 3600},
10095 },
10096
10097 {
10098 .vendor = "SST",
10099 .name = "SST25VF020",
10100 .bustype = BUS_SPI,
10101 .manufacture_id = SST_ID,
10102 .model_id = SST_SST25VF020_REMS,
10103 .total_size = 256,
10104 .page_size = 256,
10105 .feature_bits = FEATURE_WRSR_EWSR,
10106 .tested = TEST_UNTESTED,
10107 .probe = probe_spi_rems,
10108 .probe_timing = TIMING_ZERO,
10109 .block_erasers =
10110 {
10111 {
10112 .eraseblocks = { {4 * 1024, 64} },
10113 .block_erase = spi_block_erase_20,
10114 }, {
10115 .eraseblocks = { {32 * 1024, 8} },
10116 .block_erase = spi_block_erase_52,
10117 }, {
10118 .eraseblocks = { {256 * 1024, 1} },
10119 .block_erase = spi_block_erase_60,
10120 },
10121 },
10122 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10123 .unlock = spi_disable_blockprotect,
10124 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10125 .read = spi_chip_read, /* only */
10126 .voltage = {2700, 3600},
10127 },
10128
10129 {
10130 .vendor = "SST",
10131 .name = "SST25VF020B",
10132 .bustype = BUS_SPI,
10133 .manufacture_id = SST_ID,
10134 .model_id = SST_SST25VF020B,
10135 .total_size = 256,
10136 .page_size = 256,
10137 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010138 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000010139 .probe = probe_spi_rdid,
10140 .probe_timing = TIMING_ZERO,
10141 .block_erasers =
10142 {
10143 {
10144 .eraseblocks = { {4 * 1024, 64} },
10145 .block_erase = spi_block_erase_20,
10146 }, {
10147 .eraseblocks = { {32 * 1024, 8} },
10148 .block_erase = spi_block_erase_52,
10149 }, {
10150 .eraseblocks = { {64 * 1024, 4} },
10151 .block_erase = spi_block_erase_d8,
10152 }, {
10153 .eraseblocks = { {256 * 1024, 1} },
10154 .block_erase = spi_block_erase_60,
10155 }, {
10156 .eraseblocks = { {256 * 1024, 1} },
10157 .block_erase = spi_block_erase_c7,
10158 },
10159 },
10160 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
10161 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
10162 .write = spi_aai_write, /* AAI supported (0xAD) */
10163 .read = spi_chip_read, /* Fast read (0x0B) supported */
10164 .voltage = {2700, 3600},
10165 },
10166
10167 {
10168 .vendor = "SST",
10169 .name = "SST25VF040",
10170 .bustype = BUS_SPI,
10171 .manufacture_id = SST_ID,
10172 .model_id = SST_SST25VF040_REMS,
10173 .total_size = 512,
10174 .page_size = 256,
10175 .feature_bits = FEATURE_WRSR_EWSR,
10176 .tested = TEST_OK_PR,
10177 .probe = probe_spi_rems,
10178 .probe_timing = TIMING_ZERO,
10179 .block_erasers =
10180 {
10181 {
10182 .eraseblocks = { {4 * 1024, 128} },
10183 .block_erase = spi_block_erase_20,
10184 }, {
10185 .eraseblocks = { {32 * 1024, 16} },
10186 .block_erase = spi_block_erase_52,
10187 }, {
10188 .eraseblocks = { {512 * 1024, 1} },
10189 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000010190 },
10191 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010192 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000010193 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000010194 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10195 .read = spi_chip_read,
10196 .voltage = {2700, 3600},
10197 },
10198
10199 {
10200 .vendor = "SST",
10201 .name = "SST25VF040B",
10202 .bustype = BUS_SPI,
10203 .manufacture_id = SST_ID,
10204 .model_id = SST_SST25VF040B,
10205 .total_size = 512,
10206 .page_size = 256,
10207 .feature_bits = FEATURE_WRSR_EWSR,
10208 .tested = TEST_OK_PREW,
10209 .probe = probe_spi_rdid,
10210 .probe_timing = TIMING_ZERO,
10211 .block_erasers =
10212 {
10213 {
10214 .eraseblocks = { {4 * 1024, 128} },
10215 .block_erase = spi_block_erase_20,
10216 }, {
10217 .eraseblocks = { {32 * 1024, 16} },
10218 .block_erase = spi_block_erase_52,
10219 }, {
10220 .eraseblocks = { {64 * 1024, 8} },
10221 .block_erase = spi_block_erase_d8,
10222 }, {
10223 .eraseblocks = { {512 * 1024, 1} },
10224 .block_erase = spi_block_erase_60,
10225 }, {
10226 .eraseblocks = { {512 * 1024, 1} },
10227 .block_erase = spi_block_erase_c7,
10228 },
10229 },
10230 .printlock = spi_prettyprint_status_register_sst25vf040b,
10231 .unlock = spi_disable_blockprotect,
10232 .write = spi_aai_write, /* AAI supported (0xAD) */
10233 .read = spi_chip_read, /* Fast read (0x0B) supported */
10234 .voltage = {2700, 3600},
10235 },
10236
10237 {
10238 .vendor = "SST",
10239 .name = "SST25VF040B.REMS",
10240 .bustype = BUS_SPI,
10241 .manufacture_id = SST_ID,
10242 .model_id = SST_SST25VF040B_REMS,
10243 .total_size = 512,
10244 .page_size = 256,
10245 .feature_bits = FEATURE_WRSR_EWSR,
10246 .tested = TEST_OK_PREW,
10247 .probe = probe_spi_rems,
10248 .probe_timing = TIMING_ZERO,
10249 .block_erasers =
10250 {
10251 {
10252 .eraseblocks = { {4 * 1024, 128} },
10253 .block_erase = spi_block_erase_20,
10254 }, {
10255 .eraseblocks = { {32 * 1024, 16} },
10256 .block_erase = spi_block_erase_52,
10257 }, {
10258 .eraseblocks = { {64 * 1024, 8} },
10259 .block_erase = spi_block_erase_d8,
10260 }, {
10261 .eraseblocks = { {512 * 1024, 1} },
10262 .block_erase = spi_block_erase_60,
10263 }, {
10264 .eraseblocks = { {512 * 1024, 1} },
10265 .block_erase = spi_block_erase_c7,
10266 },
10267 },
10268 .printlock = spi_prettyprint_status_register_sst25vf040b,
10269 .unlock = spi_disable_blockprotect,
10270 .write = spi_aai_write,
10271 .read = spi_chip_read,
10272 .voltage = {2700, 3600},
10273 },
10274
10275 {
10276 .vendor = "SST",
10277 .name = "SST25VF080B",
10278 .bustype = BUS_SPI,
10279 .manufacture_id = SST_ID,
10280 .model_id = SST_SST25VF080B,
10281 .total_size = 1024,
10282 .page_size = 256,
10283 .feature_bits = FEATURE_WRSR_EWSR,
10284 .tested = TEST_OK_PREW,
10285 .probe = probe_spi_rdid,
10286 .probe_timing = TIMING_ZERO,
10287 .block_erasers =
10288 {
10289 {
10290 .eraseblocks = { {4 * 1024, 256} },
10291 .block_erase = spi_block_erase_20,
10292 }, {
10293 .eraseblocks = { {32 * 1024, 32} },
10294 .block_erase = spi_block_erase_52,
10295 }, {
10296 .eraseblocks = { {64 * 1024, 16} },
10297 .block_erase = spi_block_erase_d8,
10298 }, {
10299 .eraseblocks = { {1024 * 1024, 1} },
10300 .block_erase = spi_block_erase_60,
10301 }, {
10302 .eraseblocks = { {1024 * 1024, 1} },
10303 .block_erase = spi_block_erase_c7,
10304 },
10305 },
10306 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10307 .unlock = spi_disable_blockprotect,
10308 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010309 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010310 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010311 },
10312
10313 {
10314 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010315 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010316 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010317 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010318 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010319 .total_size = 2048,
10320 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010321 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010322 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010323 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010324 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010325 .block_erasers =
10326 {
10327 {
10328 .eraseblocks = { {4 * 1024, 512} },
10329 .block_erase = spi_block_erase_20,
10330 }, {
10331 .eraseblocks = { {32 * 1024, 64} },
10332 .block_erase = spi_block_erase_52,
10333 }, {
10334 .eraseblocks = { {64 * 1024, 32} },
10335 .block_erase = spi_block_erase_d8,
10336 }, {
10337 .eraseblocks = { {2 * 1024 * 1024, 1} },
10338 .block_erase = spi_block_erase_60,
10339 }, {
10340 .eraseblocks = { {2 * 1024 * 1024, 1} },
10341 .block_erase = spi_block_erase_c7,
10342 },
10343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010344 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010345 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010346 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010348 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010349 },
10350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010351 {
10352 .vendor = "SST",
10353 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010355 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010356 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010357 .total_size = 4096,
10358 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010359 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010360 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010362 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010363 .block_erasers =
10364 {
10365 {
10366 .eraseblocks = { {4 * 1024, 1024} },
10367 .block_erase = spi_block_erase_20,
10368 }, {
10369 .eraseblocks = { {32 * 1024, 128} },
10370 .block_erase = spi_block_erase_52,
10371 }, {
10372 .eraseblocks = { {64 * 1024, 64} },
10373 .block_erase = spi_block_erase_d8,
10374 }, {
10375 .eraseblocks = { {4 * 1024 * 1024, 1} },
10376 .block_erase = spi_block_erase_60,
10377 }, {
10378 .eraseblocks = { {4 * 1024 * 1024, 1} },
10379 .block_erase = spi_block_erase_c7,
10380 },
10381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010382 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010383 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010384 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010386 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010387 },
10388
10389 {
10390 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010391 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010392 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010393 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010394 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010395 .total_size = 8192,
10396 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010397 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010398 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010399 .probe = probe_spi_rdid,
10400 .probe_timing = TIMING_ZERO,
10401 .block_erasers =
10402 {
10403 {
10404 .eraseblocks = { {4 * 1024, 2048} },
10405 .block_erase = spi_block_erase_20,
10406 }, {
10407 .eraseblocks = { {32 * 1024, 256} },
10408 .block_erase = spi_block_erase_52,
10409 }, {
10410 .eraseblocks = { {64 * 1024, 128} },
10411 .block_erase = spi_block_erase_d8,
10412 }, {
10413 .eraseblocks = { {8 * 1024 * 1024, 1} },
10414 .block_erase = spi_block_erase_60,
10415 }, {
10416 .eraseblocks = { {8 * 1024 * 1024, 1} },
10417 .block_erase = spi_block_erase_c7,
10418 },
10419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010420 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010421 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010422 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010424 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010425 },
10426
10427 {
10428 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010429 .name = "SST25WF512",
10430 .bustype = BUS_SPI,
10431 .manufacture_id = SST_ID,
10432 .model_id = SST_SST25WF512,
10433 .total_size = 64,
10434 .page_size = 256,
10435 .feature_bits = FEATURE_WRSR_EITHER,
10436 .tested = TEST_UNTESTED,
10437 .probe = probe_spi_rdid,
10438 .probe_timing = TIMING_ZERO,
10439 .block_erasers =
10440 {
10441 {
10442 .eraseblocks = { {4 * 1024, 16} },
10443 .block_erase = spi_block_erase_20,
10444 }, {
10445 .eraseblocks = { {32 * 1024, 2} },
10446 .block_erase = spi_block_erase_52,
10447 }, {
10448 .eraseblocks = { {1024 * 64, 1} },
10449 .block_erase = spi_block_erase_60,
10450 }, {
10451 .eraseblocks = { {1024 * 64, 1} },
10452 .block_erase = spi_block_erase_c7,
10453 },
10454 },
Jason Harper43ddef02014-05-04 00:55:24 +000010455 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10456 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010457 .write = spi_aai_write,
10458 .read = spi_chip_read, /* Fast read (0x0B) supported */
10459 .voltage = {1650, 1950},
10460 },
10461
10462 {
10463 .vendor = "SST",
10464 .name = "SST25WF010",
10465 .bustype = BUS_SPI,
10466 .manufacture_id = SST_ID,
10467 .model_id = SST_SST25WF010,
10468 .total_size = 128,
10469 .page_size = 256,
10470 .feature_bits = FEATURE_WRSR_EITHER,
10471 .tested = TEST_UNTESTED,
10472 .probe = probe_spi_rdid,
10473 .probe_timing = TIMING_ZERO,
10474 .block_erasers =
10475 {
10476 {
10477 .eraseblocks = { {4 * 1024, 32} },
10478 .block_erase = spi_block_erase_20,
10479 }, {
10480 .eraseblocks = { {32 * 1024, 4} },
10481 .block_erase = spi_block_erase_52,
10482 }, {
10483 .eraseblocks = { {1024 * 128, 1} },
10484 .block_erase = spi_block_erase_60,
10485 }, {
10486 .eraseblocks = { {1024 * 128, 1} },
10487 .block_erase = spi_block_erase_c7,
10488 },
10489 },
Jason Harper43ddef02014-05-04 00:55:24 +000010490 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10491 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010492 .write = spi_aai_write,
10493 .read = spi_chip_read, /* Fast read (0x0B) supported */
10494 .voltage = {1650, 1950},
10495 },
10496
10497 {
10498 .vendor = "SST",
10499 .name = "SST25WF020",
10500 .bustype = BUS_SPI,
10501 .manufacture_id = SST_ID,
10502 .model_id = SST_SST25WF020,
10503 .total_size = 256,
10504 .page_size = 256,
10505 .feature_bits = FEATURE_WRSR_EITHER,
10506 .tested = TEST_UNTESTED,
10507 .probe = probe_spi_rdid,
10508 .probe_timing = TIMING_ZERO,
10509 .block_erasers =
10510 {
10511 {
10512 .eraseblocks = { {4 * 1024, 64} },
10513 .block_erase = spi_block_erase_20,
10514 }, {
10515 .eraseblocks = { {32 * 1024, 8} },
10516 .block_erase = spi_block_erase_52,
10517 }, {
10518 .eraseblocks = { {64 * 1024, 4} },
10519 .block_erase = spi_block_erase_d8,
10520 }, {
10521 .eraseblocks = { {1024 * 256, 1} },
10522 .block_erase = spi_block_erase_60,
10523 }, {
10524 .eraseblocks = { {1024 * 256, 1} },
10525 .block_erase = spi_block_erase_c7,
10526 },
10527 },
Jason Harper43ddef02014-05-04 00:55:24 +000010528 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10529 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010530 .write = spi_aai_write,
10531 .read = spi_chip_read, /* Fast read (0x0B) supported */
10532 .voltage = {1650, 1950},
10533 },
10534
10535 {
10536 .vendor = "SST",
10537 .name = "SST25WF040",
10538 .bustype = BUS_SPI,
10539 .manufacture_id = SST_ID,
10540 .model_id = SST_SST25WF040,
10541 .total_size = 512,
10542 .page_size = 256,
10543 .feature_bits = FEATURE_WRSR_EITHER,
10544 .tested = TEST_UNTESTED,
10545 .probe = probe_spi_rdid,
10546 .probe_timing = TIMING_ZERO,
10547 .block_erasers =
10548 {
10549 {
10550 .eraseblocks = { {4 * 1024, 128} },
10551 .block_erase = spi_block_erase_20,
10552 }, {
10553 .eraseblocks = { {32 * 1024, 16} },
10554 .block_erase = spi_block_erase_52,
10555 }, {
10556 .eraseblocks = { {64 * 1024, 8} },
10557 .block_erase = spi_block_erase_d8,
10558 }, {
10559 .eraseblocks = { {1024 * 512, 1} },
10560 .block_erase = spi_block_erase_60,
10561 }, {
10562 .eraseblocks = { {1024 * 512, 1} },
10563 .block_erase = spi_block_erase_c7,
10564 },
10565 },
Jason Harper43ddef02014-05-04 00:55:24 +000010566 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10567 .unlock = spi_disable_blockprotect_bp2_srwd,
10568 .write = spi_aai_write,
10569 .read = spi_chip_read, /* Fast read (0x0B) supported */
10570 .voltage = {1650, 1950},
10571 },
10572
10573 {
10574 .vendor = "SST",
10575 .name = "SST25WF080",
10576 .bustype = BUS_SPI,
10577 .manufacture_id = SST_ID,
10578 .model_id = SST_SST25WF080,
10579 .total_size = 1024,
10580 .page_size = 256,
10581 .feature_bits = FEATURE_WRSR_EITHER,
10582 .tested = TEST_OK_PREW,
10583 .probe = probe_spi_rdid,
10584 .probe_timing = TIMING_ZERO,
10585 .block_erasers =
10586 {
10587 {
10588 .eraseblocks = { {4 * 1024, 256} },
10589 .block_erase = spi_block_erase_20,
10590 }, {
10591 .eraseblocks = { {32 * 1024, 32} },
10592 .block_erase = spi_block_erase_52,
10593 }, {
10594 .eraseblocks = { {64 * 1024, 16} },
10595 .block_erase = spi_block_erase_d8,
10596 }, {
10597 .eraseblocks = { {1024 * 1024, 1} },
10598 .block_erase = spi_block_erase_60,
10599 }, {
10600 .eraseblocks = { {1024 * 1024, 1} },
10601 .block_erase = spi_block_erase_c7,
10602 },
10603 },
10604 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10605 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010606 .write = spi_aai_write,
10607 .read = spi_chip_read, /* Fast read (0x0B) supported */
10608 .voltage = {1650, 1950},
10609 },
10610
10611 {
10612 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010613 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010614 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010615 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010616 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010617 .total_size = 512,
10618 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010619 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010620 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010621 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010622 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010623 .block_erasers =
10624 {
10625 {
10626 .eraseblocks = { {128, 4096} },
10627 .block_erase = erase_sector_28sf040,
10628 }, {
10629 .eraseblocks = { {512 * 1024, 1} },
10630 .block_erase = erase_chip_28sf040,
10631 }
10632 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010633 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010634 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010637 },
10638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010639 {
10640 .vendor = "SST",
10641 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010642 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010644 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010645 .total_size = 128,
10646 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010647 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010648 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010649 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010650 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010651 .block_erasers =
10652 {
10653 {
10654 .eraseblocks = { {128 * 1024, 1} },
10655 .block_erase = erase_chip_block_jedec,
10656 }
10657 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010658 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010660 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010661 },
10662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010663 {
10664 .vendor = "SST",
10665 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010666 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010667 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010668 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010669 .total_size = 128,
10670 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010671 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010672 .tested = TEST_UNTESTED,
10673 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010674 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010675 .block_erasers =
10676 {
10677 {
10678 .eraseblocks = { {128 * 1024, 1} },
10679 .block_erase = erase_chip_block_jedec,
10680 }
10681 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010682 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010684 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010685 },
10686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010687 {
10688 .vendor = "SST",
10689 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010691 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010692 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010693 .total_size = 256,
10694 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010695 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010696 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010698 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010699 .block_erasers =
10700 {
10701 {
10702 .eraseblocks = { {256 * 1024, 1} },
10703 .block_erase = erase_chip_block_jedec,
10704 }
10705 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010706 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010708 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010709 },
10710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010711 {
10712 .vendor = "SST",
10713 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010714 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010715 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010716 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010717 .total_size = 256,
10718 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010719 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010720 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010721 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010722 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010723 .block_erasers =
10724 {
10725 {
10726 .eraseblocks = { {256 * 1024, 1} },
10727 .block_erase = erase_chip_block_jedec,
10728 }
10729 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010730 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010732 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010733 },
10734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010735 {
10736 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010737 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010738 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010739 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010740 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010741 .total_size = 64,
10742 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010743 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010744 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010745 .probe = probe_jedec,
10746 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010747 .block_erasers =
10748 {
10749 {
10750 .eraseblocks = { {4 * 1024, 16} },
10751 .block_erase = erase_sector_jedec,
10752 }, {
10753 .eraseblocks = { {64 * 1024, 1} },
10754 .block_erase = erase_chip_block_jedec,
10755 }
10756 },
Sean Nelson35727f72010-01-28 23:55:12 +000010757 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010759 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010760 },
10761
10762 {
10763 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010764 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010765 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010766 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010767 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010768 .total_size = 128,
10769 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010770 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010771 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010772 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010773 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010774 .block_erasers =
10775 {
10776 {
10777 .eraseblocks = { {4 * 1024, 32} },
10778 .block_erase = erase_sector_jedec,
10779 }, {
10780 .eraseblocks = { {128 * 1024, 1} },
10781 .block_erase = erase_chip_block_jedec,
10782 }
10783 },
Sean Nelson35727f72010-01-28 23:55:12 +000010784 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010785 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010786 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010787 },
10788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010789 {
10790 .vendor = "SST",
10791 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010792 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010793 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010794 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010795 .total_size = 256,
10796 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010797 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010798 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010799 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010800 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010801 .block_erasers =
10802 {
10803 {
10804 .eraseblocks = { {4 * 1024, 64} },
10805 .block_erase = erase_sector_jedec,
10806 }, {
10807 .eraseblocks = { {256 * 1024, 1} },
10808 .block_erase = erase_chip_block_jedec,
10809 }
10810 },
Sean Nelson35727f72010-01-28 23:55:12 +000010811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010813 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010814 },
10815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010816 {
10817 .vendor = "SST",
10818 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010819 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010821 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010822 .total_size = 512,
10823 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010824 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010826 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010827 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010828 .block_erasers =
10829 {
10830 {
10831 .eraseblocks = { {4 * 1024, 128} },
10832 .block_erase = erase_sector_jedec,
10833 }, {
10834 .eraseblocks = { {512 * 1024, 1} },
10835 .block_erase = erase_chip_block_jedec,
10836 }
10837 },
Sean Nelson35727f72010-01-28 23:55:12 +000010838 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010840 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010841 },
10842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010843 {
10844 .vendor = "SST",
10845 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010846 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010847 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010848 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010849 .total_size = 64,
10850 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010851 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010852 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010853 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010854 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010855 .block_erasers =
10856 {
10857 {
10858 .eraseblocks = { {4 * 1024, 16} },
10859 .block_erase = erase_sector_jedec,
10860 }, {
10861 .eraseblocks = { {64 * 1024, 1} },
10862 .block_erase = erase_chip_block_jedec,
10863 }
10864 },
Sean Nelson35727f72010-01-28 23:55:12 +000010865 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010867 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010868 },
10869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010870 {
10871 .vendor = "SST",
10872 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010873 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010874 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010875 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010876 .total_size = 128,
10877 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010878 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010879 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010880 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010881 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010882 .block_erasers =
10883 {
10884 {
10885 .eraseblocks = { {4 * 1024, 32} },
10886 .block_erase = erase_sector_jedec,
10887 }, {
10888 .eraseblocks = { {128 * 1024, 1} },
10889 .block_erase = erase_chip_block_jedec,
10890 }
10891 },
Sean Nelson35727f72010-01-28 23:55:12 +000010892 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010894 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010895 },
10896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010897 {
10898 .vendor = "SST",
10899 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010900 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010901 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010902 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010903 .total_size = 256,
10904 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010905 .feature_bits = FEATURE_EITHER_RESET,
10906 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010907 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010908 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010909 .block_erasers =
10910 {
10911 {
10912 .eraseblocks = { {4 * 1024, 64} },
10913 .block_erase = erase_sector_jedec,
10914 }, {
10915 .eraseblocks = { {256 * 1024, 1} },
10916 .block_erase = erase_chip_block_jedec,
10917 }
10918 },
Sean Nelson35727f72010-01-28 23:55:12 +000010919 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010921 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010922 },
10923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010924 {
10925 .vendor = "SST",
10926 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010927 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010928 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010929 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010930 .total_size = 512,
10931 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010932 .feature_bits = FEATURE_EITHER_RESET,
10933 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010934 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010935 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010936 .block_erasers =
10937 {
10938 {
10939 .eraseblocks = { {4 * 1024, 128} },
10940 .block_erase = erase_sector_jedec,
10941 }, {
10942 .eraseblocks = { {512 * 1024, 1} },
10943 .block_erase = erase_chip_block_jedec,
10944 }
10945 },
Sean Nelson35727f72010-01-28 23:55:12 +000010946 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010948 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010949 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010951 {
10952 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010953 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010954 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010955 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010956 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010957 .total_size = 1024,
10958 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010959 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010960 .tested = TEST_UNTESTED,
10961 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010962 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010963 .block_erasers =
10964 {
10965 {
10966 .eraseblocks = { {4 * 1024, 256} },
10967 .block_erase = erase_sector_jedec,
10968 }, {
10969 .eraseblocks = { {64 * 1024, 16} },
10970 .block_erase = erase_block_jedec,
10971 }, {
10972 .eraseblocks = { {1024 * 1024, 1} },
10973 .block_erase = erase_chip_block_jedec,
10974 }
10975 },
Sean Nelson35727f72010-01-28 23:55:12 +000010976 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010977 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010978 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010979 },
10980
10981 {
10982 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010983 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010984 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010985 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010986 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010987 .total_size = 256,
10988 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010989 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010990 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010991 .probe = probe_jedec,
10992 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010993 .block_erasers =
10994 {
10995 {
10996 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010997 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010998 }, {
10999 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011000 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011001 }, {
11002 .eraseblocks = { {256 * 1024, 1} },
11003 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11004 }
11005 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011006 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011007 .unlock = unlock_sst_fwhub,
11008 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011010 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011011 },
11012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011013 {
11014 .vendor = "SST",
11015 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011016 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011017 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011018 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011019 .total_size = 384,
11020 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011021 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011022 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011023 .probe = probe_jedec,
11024 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011025 .block_erasers =
11026 {
11027 {
11028 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011029 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011030 }, {
11031 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011032 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011033 }, {
11034 .eraseblocks = { {384 * 1024, 1} },
11035 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11036 }
11037 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011038 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011039 .unlock = unlock_sst_fwhub,
11040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011043 },
11044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011045 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011046 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11047 * and is only honored for 64k block erase, but not 4k sector erase.
11048 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011049 .vendor = "SST",
11050 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011051 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011052 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011053 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011054 .total_size = 512,
11055 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011056 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011057 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011058 .probe = probe_jedec,
11059 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011060 .block_erasers =
11061 {
11062 {
11063 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011064 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011065 }, {
11066 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011067 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011068 }, {
11069 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011070 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011071 },
11072 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011073 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011074 .unlock = unlock_sst_fwhub,
11075 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011076 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011077 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011078 },
11079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011080 {
11081 .vendor = "SST",
11082 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011083 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011084 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011085 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011086 .total_size = 512,
11087 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011088 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011089 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011090 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011091 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011092 .block_erasers =
11093 {
11094 {
11095 .eraseblocks = { {4 * 1024, 128} },
11096 .block_erase = erase_sector_49lfxxxc,
11097 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011098 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011099 {64 * 1024, 7},
11100 {32 * 1024, 1},
11101 {8 * 1024, 2},
11102 {16 * 1024, 1},
11103 },
Sean Nelson69e58112010-03-23 17:10:28 +000011104 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011105 }
11106 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011107 .printlock = printlock_regspace2_block_eraser_1,
11108 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011109 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011111 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011112 },
11113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011114 {
11115 .vendor = "SST",
11116 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011117 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011119 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011120 .total_size = 1024,
11121 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011122 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011123 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011124 .probe = probe_jedec,
11125 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011126 .block_erasers =
11127 {
11128 {
11129 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011130 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011131 }, {
11132 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011133 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011134 }, {
11135 .eraseblocks = { {1024 * 1024, 1} },
11136 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11137 }
11138 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011139 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011140 .unlock = unlock_sst_fwhub,
11141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011142 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011143 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011144 },
11145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011146 {
11147 .vendor = "SST",
11148 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011149 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011150 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011151 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011152 .total_size = 1024,
11153 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011154 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011155 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011156 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011157 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011158 .block_erasers =
11159 {
11160 {
11161 .eraseblocks = { {4 * 1024, 256} },
11162 .block_erase = erase_sector_49lfxxxc,
11163 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011164 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011165 {64 * 1024, 15},
11166 {32 * 1024, 1},
11167 {8 * 1024, 2},
11168 {16 * 1024, 1},
11169 },
Sean Nelson69e58112010-03-23 17:10:28 +000011170 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011171 }
11172 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011173 .printlock = printlock_regspace2_block_eraser_1,
11174 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011175 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011177 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011178 },
11179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011180 {
11181 .vendor = "SST",
11182 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011183 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011184 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011185 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011186 .total_size = 2048,
11187 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011188 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011189 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011190 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011191 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011192 .block_erasers =
11193 {
11194 {
11195 .eraseblocks = { {4 * 1024, 512} },
11196 .block_erase = erase_sector_49lfxxxc,
11197 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011198 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011199 {64 * 1024, 31},
11200 {32 * 1024, 1},
11201 {8 * 1024, 2},
11202 {16 * 1024, 1},
11203 },
Sean Nelson69e58112010-03-23 17:10:28 +000011204 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011205 }
11206 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011207 .printlock = printlock_regspace2_block_eraser_1,
11208 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011209 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011210 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011211 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011212 },
11213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011214 {
11215 .vendor = "SST",
11216 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011217 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011218 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011219 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011220 .total_size = 256,
11221 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011222 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000011223 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011224 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011225 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011226 .block_erasers =
11227 {
11228 {
11229 .eraseblocks = { {4 * 1024, 64} },
11230 .block_erase = erase_sector_jedec,
11231 }, {
11232 .eraseblocks = { {16 * 1024, 16} },
11233 .block_erase = erase_block_jedec,
11234 }, {
11235 .eraseblocks = { {256 * 1024, 1} },
11236 .block_erase = NULL,
11237 }
11238 },
Sean Nelson35727f72010-01-28 23:55:12 +000011239 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011240 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011241 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000011242 },
11243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011244 {
11245 .vendor = "SST",
11246 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011247 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011248 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011249 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011250 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011251 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011252 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011253 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011254 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011255 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011256 .block_erasers =
11257 {
11258 {
11259 .eraseblocks = { {4 * 1024, 64} },
11260 .block_erase = erase_sector_jedec,
11261 }, {
11262 .eraseblocks = { {16 * 1024, 16} },
11263 .block_erase = erase_block_jedec,
11264 }, {
11265 .eraseblocks = { {256 * 1024, 1} },
11266 .block_erase = NULL,
11267 }
11268 },
Sean Nelson35727f72010-01-28 23:55:12 +000011269 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011270 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011271 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011272 },
11273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011274 {
11275 .vendor = "SST",
11276 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011277 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011278 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011279 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011280 .total_size = 512,
11281 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011282 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011283 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011284 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011285 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011286 .block_erasers =
11287 {
11288 {
11289 .eraseblocks = { {4 * 1024, 128} },
11290 .block_erase = erase_sector_jedec,
11291 }, {
11292 .eraseblocks = { {64 * 1024, 8} },
11293 .block_erase = erase_block_jedec,
11294 }, {
11295 .eraseblocks = { {512 * 1024, 1} },
11296 .block_erase = NULL,
11297 }
11298 },
Sean Nelson35727f72010-01-28 23:55:12 +000011299 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011300 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011301 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011302 },
11303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011304 {
11305 .vendor = "SST",
11306 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011307 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011308 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011309 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011310 .total_size = 512,
11311 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011312 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011313 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011314 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011315 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011316 .block_erasers =
11317 {
11318 {
11319 .eraseblocks = { {4 * 1024, 128} },
11320 .block_erase = erase_sector_jedec,
11321 }, {
11322 .eraseblocks = { {64 * 1024, 8} },
11323 .block_erase = erase_block_jedec,
11324 }, {
11325 .eraseblocks = { {512 * 1024, 1} },
11326 .block_erase = NULL,
11327 }
11328 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011329 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000011330 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011331 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011332 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011333 },
11334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011335 {
11336 .vendor = "SST",
11337 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011338 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011339 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011340 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011341 .total_size = 1024,
11342 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011343 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011344 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011345 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011346 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011347 .block_erasers =
11348 {
11349 {
11350 .eraseblocks = { {4 * 1024, 256} },
11351 .block_erase = erase_sector_jedec,
11352 }, {
11353 .eraseblocks = { {64 * 1024, 16} },
11354 .block_erase = erase_block_jedec,
11355 }, {
11356 .eraseblocks = { {1024 * 1024, 1} },
11357 .block_erase = NULL,
11358 }
11359 },
Sean Nelson35727f72010-01-28 23:55:12 +000011360 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011361 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011362 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011363 },
11364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011365 {
11366 .vendor = "SST",
11367 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011368 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011369 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011370 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011371 .total_size = 2048,
11372 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011373 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011374 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011375 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011376 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011377 .block_erasers =
11378 {
11379 {
11380 .eraseblocks = { {4 * 1024, 512} },
11381 .block_erase = erase_sector_49lfxxxc,
11382 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011383 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011384 {64 * 1024, 31},
11385 {32 * 1024, 1},
11386 {8 * 1024, 2},
11387 {16 * 1024, 1},
11388 },
Sean Nelson69e58112010-03-23 17:10:28 +000011389 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011390 }
11391 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011392 .printlock = printlock_regspace2_block_eraser_1,
11393 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011394 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011395 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011396 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011397 },
11398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011399 {
11400 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011401 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011402 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011403 .manufacture_id = ST_ID,
11404 .model_id = ST_M29F002B,
11405 .total_size = 256,
11406 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011407 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011408 .tested = TEST_UNTESTED,
11409 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011410 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011411 .block_erasers =
11412 {
11413 {
11414 .eraseblocks = {
11415 {16 * 1024, 1},
11416 {8 * 1024, 2},
11417 {32 * 1024, 1},
11418 {64 * 1024, 3},
11419 },
11420 .block_erase = erase_sector_jedec,
11421 }, {
11422 .eraseblocks = { {256 * 1024, 1} },
11423 .block_erase = erase_chip_block_jedec,
11424 }
11425 },
Sean Nelson35727f72010-01-28 23:55:12 +000011426 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011427 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011428 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011429 },
11430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011431 {
11432 .vendor = "ST",
11433 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011434 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011435 .manufacture_id = ST_ID,
11436 .model_id = ST_M29F002T,
11437 .total_size = 256,
11438 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011439 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011440 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011441 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011442 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011443 .block_erasers =
11444 {
11445 {
11446 .eraseblocks = {
11447 {64 * 1024, 3},
11448 {32 * 1024, 1},
11449 {8 * 1024, 2},
11450 {16 * 1024, 1},
11451 },
11452 .block_erase = erase_sector_jedec,
11453 }, {
11454 .eraseblocks = { {256 * 1024, 1} },
11455 .block_erase = erase_chip_block_jedec,
11456 }
11457 },
Sean Nelson35727f72010-01-28 23:55:12 +000011458 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011459 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011460 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011461 },
11462
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011463 {
11464 .vendor = "ST",
11465 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011466 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011467 .manufacture_id = ST_ID,
11468 .model_id = ST_M29F040B,
11469 .total_size = 512,
11470 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011471 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11472 .tested = TEST_UNTESTED,
11473 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011474 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011475 .block_erasers =
11476 {
11477 {
11478 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011479 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011480 }, {
11481 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011482 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011483 }
11484 },
Sean Nelson35727f72010-01-28 23:55:12 +000011485 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011486 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011487 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011488 },
11489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011490 {
Sean Nelson35727f72010-01-28 23:55:12 +000011491 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011492 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011493 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011494 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011495 .manufacture_id = ST_ID,
11496 .model_id = ST_M29F400BB,
11497 .total_size = 512,
11498 .page_size = 64 * 1024,
11499 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011500 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011501 .probe = probe_m29f400bt,
11502 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11503 .block_erasers =
11504 {
11505 {
11506 .eraseblocks = {
11507 {16 * 1024, 1},
11508 {8 * 1024, 2},
11509 {32 * 1024, 1},
11510 {64 * 1024, 7},
11511 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011512 .block_erase = erase_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011513 }, {
11514 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011515 .block_erase = erase_chip_block_shifted_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011516 }
11517 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011518 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011520 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011521 },
11522 {
11523 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11524 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011525 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011526 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011527 .manufacture_id = ST_ID,
11528 .model_id = ST_M29F400BT,
11529 .total_size = 512,
11530 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011531 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011532 .tested = TEST_UNTESTED,
11533 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011534 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011535 .block_erasers =
11536 {
11537 {
11538 .eraseblocks = {
11539 {64 * 1024, 7},
11540 {32 * 1024, 1},
11541 {8 * 1024, 2},
11542 {16 * 1024, 1},
11543 },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011544 .block_erase = erase_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011545 }, {
11546 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerf2756fa2014-06-01 02:21:02 +000011547 .block_erase = erase_chip_block_shifted_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011548 }
11549 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011550 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011551 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011552 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011553 },
11554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011555 {
11556 .vendor = "ST",
11557 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011558 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011559 .manufacture_id = ST_ID,
11560 .model_id = ST_M29W010B,
11561 .total_size = 128,
11562 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011563 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011564 .tested = TEST_UNTESTED,
11565 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011566 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011567 .block_erasers =
11568 {
11569 {
11570 .eraseblocks = { {16 * 1024, 8}, },
11571 .block_erase = erase_sector_jedec,
11572 }, {
11573 .eraseblocks = { {128 * 1024, 1} },
11574 .block_erase = erase_chip_block_jedec,
11575 }
11576 },
Sean Nelson35727f72010-01-28 23:55:12 +000011577 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011579 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011580 },
11581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011582 {
11583 .vendor = "ST",
11584 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011585 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011586 .manufacture_id = ST_ID,
11587 .model_id = ST_M29W040B,
11588 .total_size = 512,
11589 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011591 .tested = TEST_UNTESTED,
11592 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011593 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011594 .block_erasers =
11595 {
11596 {
11597 .eraseblocks = { {64 * 1024, 8}, },
11598 .block_erase = erase_sector_jedec,
11599 }, {
11600 .eraseblocks = { {512 * 1024, 1} },
11601 .block_erase = erase_chip_block_jedec,
11602 }
11603 },
Sean Nelson35727f72010-01-28 23:55:12 +000011604 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011605 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011606 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011607 },
11608
Stefan Taunereb582572012-09-21 12:52:50 +000011609 {
11610 .vendor = "ST",
11611 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011612 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011613 .manufacture_id = ST_ID,
11614 .model_id = ST_M29W512B,
11615 .total_size = 64,
11616 .page_size = 64 * 1024,
11617 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011618 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011619 .probe = probe_jedec,
11620 .probe_timing = TIMING_ZERO,
11621 .block_erasers =
11622 {
11623 {
11624 .eraseblocks = { {64 * 1024, 1} },
11625 .block_erase = erase_chip_block_jedec,
11626 }
11627 },
11628 .write = write_jedec_1,
11629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011630 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011631 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011633 {
11634 .vendor = "ST",
11635 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011636 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011637 .manufacture_id = ST_ID,
11638 .model_id = ST_M50FLW040A,
11639 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011640 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011641 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011642 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011643 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011644 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011645 .block_erasers =
11646 {
11647 {
Sean Nelson329bde72010-01-19 16:39:19 +000011648 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011649 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011650 {64 * 1024, 5}, /* block */
11651 {4 * 1024, 16}, /* sector */
11652 {4 * 1024, 16}, /* sector */
11653 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011654 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011655 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011656 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011657 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011658 }
11659 },
Sean Nelson28accc22010-03-19 18:47:06 +000011660 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011661 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011663 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011664 },
11665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011666 {
11667 .vendor = "ST",
11668 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011669 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011670 .manufacture_id = ST_ID,
11671 .model_id = ST_M50FLW040B,
11672 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011673 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011674 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011675 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011676 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011677 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011678 .block_erasers =
11679 {
11680 {
Sean Nelson329bde72010-01-19 16:39:19 +000011681 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011682 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011683 {4 * 1024, 16}, /* sector */
11684 {64 * 1024, 5}, /* block */
11685 {4 * 1024, 16}, /* sector */
11686 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011687 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011688 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011689 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011690 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011691 }
11692 },
Sean Nelson28accc22010-03-19 18:47:06 +000011693 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011694 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011696 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011697 },
11698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011699 {
11700 .vendor = "ST",
11701 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011702 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011703 .manufacture_id = ST_ID,
11704 .model_id = ST_M50FLW080A,
11705 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011706 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011707 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011708 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000011709 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011710 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011711 .block_erasers =
11712 {
11713 {
Sean Nelson329bde72010-01-19 16:39:19 +000011714 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011715 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011716 {64 * 1024, 13}, /* block */
11717 {4 * 1024, 16}, /* sector */
11718 {4 * 1024, 16}, /* sector */
11719 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011720 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011721 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011722 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011723 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011724 }
11725 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011726 .printlock = printlock_regspace2_block_eraser_0,
11727 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000011728 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011729 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011730 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011731 },
11732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011733 {
11734 .vendor = "ST",
11735 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011736 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011737 .manufacture_id = ST_ID,
11738 .model_id = ST_M50FLW080B,
11739 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011740 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011741 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011742 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011743 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011744 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011745 .block_erasers =
11746 {
11747 {
Sean Nelson329bde72010-01-19 16:39:19 +000011748 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011749 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011750 {4 * 1024, 16}, /* sector */
11751 {64 * 1024, 13}, /* block */
11752 {4 * 1024, 16}, /* sector */
11753 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011754 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011755 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011756 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011757 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011758 }
11759 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011760 .printlock = printlock_regspace2_block_eraser_0,
11761 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000011762 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011763 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011764 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011765 },
11766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011767 {
11768 .vendor = "ST",
11769 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011770 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011771 .manufacture_id = ST_ID,
11772 .model_id = ST_M50FW002,
11773 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011774 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011775 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011776 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000011777 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011778 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011779 .block_erasers =
11780 {
11781 {
11782 .eraseblocks = {
11783 {64 * 1024, 3},
11784 {32 * 1024, 1},
11785 {8 * 1024, 2},
11786 {16 * 1024, 1},
11787 },
Sean Nelson28accc22010-03-19 18:47:06 +000011788 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011789 }, {
11790 .eraseblocks = { {256 * 1024, 1}, },
11791 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000011792 }
11793 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011794 .printlock = printlock_regspace2_block_eraser_0,
11795 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000011796 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011797 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011798 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011799 },
11800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011801 {
11802 .vendor = "ST",
11803 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011804 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011805 .manufacture_id = ST_ID,
11806 .model_id = ST_M50FW016,
11807 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011808 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011809 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011810 .tested = TEST_UNTESTED,
11811 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011812 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011813 .block_erasers =
11814 {
11815 {
11816 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011817 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011818 }
11819 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011820 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011821 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011823 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011824 },
11825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011826 {
11827 .vendor = "ST",
11828 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011829 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011830 .manufacture_id = ST_ID,
11831 .model_id = ST_M50FW040,
11832 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011833 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011834 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011835 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011836 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011837 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011838 .block_erasers =
11839 {
11840 {
11841 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011842 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011843 }
11844 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011845 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011846 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011847 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011848 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011849 },
11850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011851 {
11852 .vendor = "ST",
11853 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011854 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011855 .manufacture_id = ST_ID,
11856 .model_id = ST_M50FW080,
11857 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011858 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011859 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011860 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011861 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011862 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011863 .block_erasers =
11864 {
11865 {
11866 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011867 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011868 }
11869 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011870 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011871 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011872 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011873 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011874 },
11875
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011876 {
11877 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011878 .name = "M50LPW080",
11879 .bustype = BUS_LPC, /* A/A Mux */
11880 .manufacture_id = ST_ID,
11881 .model_id = ST_M50LPW080,
11882 .total_size = 1024,
11883 .page_size = 0,
11884 .feature_bits = FEATURE_REGISTERMAP,
11885 .tested = TEST_UNTESTED,
11886 .probe = probe_82802ab,
11887 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11888 .block_erasers =
11889 {
11890 {
11891 .eraseblocks = { {64 * 1024, 16}, },
11892 .block_erase = erase_block_82802ab,
11893 }
11894 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011895 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011896 .write = write_82802ab,
11897 .read = read_memmapped,
11898 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11899 },
11900
11901 {
11902 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011903 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011904 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011905 .manufacture_id = ST_ID,
11906 .model_id = ST_M50LPW116,
11907 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011908 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011909 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011910 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011911 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011912 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011913 .block_erasers =
11914 {
11915 {
11916 .eraseblocks = {
11917 {4 * 1024, 16},
11918 {64 * 1024, 30},
11919 {32 * 1024, 1},
11920 {8 * 1024, 2},
11921 {16 * 1024, 1},
11922 },
Sean Nelson28accc22010-03-19 18:47:06 +000011923 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011924 }
11925 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011926 .printlock = printlock_regspace2_block_eraser_0,
11927 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000011928 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011929 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011930 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011931 },
11932
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011933 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011934 .vendor = "SyncMOS/MoselVitelic",
11935 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011936 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011937 .manufacture_id = SYNCMOS_MVC_ID,
11938 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011939 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011940 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011941 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011942 .tested = TEST_UNTESTED,
11943 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011944 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011945 .block_erasers =
11946 {
11947 {
11948 .eraseblocks = { {512, 256} },
11949 .block_erase = erase_sector_jedec,
11950 }, {
11951 .eraseblocks = { {128 * 1024, 1} },
11952 .block_erase = erase_chip_block_jedec,
11953 },
11954 },
Sean Nelson35727f72010-01-28 23:55:12 +000011955 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011957 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011958 },
11959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011960 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011961 .vendor = "SyncMOS/MoselVitelic",
11962 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011963 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011964 .manufacture_id = SYNCMOS_MVC_ID,
11965 .model_id = SM_MVC_29C51001T,
11966 .total_size = 128,
11967 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011968 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011969 .tested = TEST_UNTESTED,
11970 .probe = probe_jedec,
11971 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11972 .block_erasers =
11973 {
11974 {
11975 .eraseblocks = { {512, 256} },
11976 .block_erase = erase_sector_jedec,
11977 }, {
11978 .eraseblocks = { {128 * 1024, 1} },
11979 .block_erase = erase_chip_block_jedec,
11980 },
11981 },
11982 .write = write_jedec_1,
11983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011984 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011985 },
11986
11987 {
11988 .vendor = "SyncMOS/MoselVitelic",
11989 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011990 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011991 .manufacture_id = SYNCMOS_MVC_ID,
11992 .model_id = SM_MVC_29C51002B,
11993 .total_size = 256,
11994 .page_size = 512,
11995 .feature_bits = FEATURE_EITHER_RESET,
11996 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011997 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011998 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011999 .block_erasers =
12000 {
12001 {
12002 .eraseblocks = { {512, 512} },
12003 .block_erase = erase_sector_jedec,
12004 }, {
12005 .eraseblocks = { {256 * 1024, 1} },
12006 .block_erase = erase_chip_block_jedec,
12007 },
12008 },
Sean Nelson35727f72010-01-28 23:55:12 +000012009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012010 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012011 },
12012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012013 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012014 .vendor = "SyncMOS/MoselVitelic",
12015 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012016 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012017 .manufacture_id = SYNCMOS_MVC_ID,
12018 .model_id = SM_MVC_29C51002T,
12019 .total_size = 256,
12020 .page_size = 512,
12021 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012022 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012023 .probe = probe_jedec,
12024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12025 .block_erasers =
12026 {
12027 {
12028 .eraseblocks = { {512, 512} },
12029 .block_erase = erase_sector_jedec,
12030 }, {
12031 .eraseblocks = { {256 * 1024, 1} },
12032 .block_erase = erase_chip_block_jedec,
12033 },
12034 },
12035 .write = write_jedec_1,
12036 .read = read_memmapped,
12037 },
12038
12039 {
12040 .vendor = "SyncMOS/MoselVitelic",
12041 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012042 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012043 .manufacture_id = SYNCMOS_MVC_ID,
12044 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012045 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012046 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012047 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012048 .tested = TEST_UNTESTED,
12049 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012050 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012051 .block_erasers =
12052 {
12053 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012054 .eraseblocks = { {1024, 512} },
12055 .block_erase = erase_sector_jedec,
12056 }, {
12057 .eraseblocks = { {512 * 1024, 1} },
12058 .block_erase = erase_chip_block_jedec,
12059 },
12060 },
12061 .write = write_jedec_1,
12062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012063 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012064 },
12065
12066 {
12067 .vendor = "SyncMOS/MoselVitelic",
12068 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012069 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012070 .manufacture_id = SYNCMOS_MVC_ID,
12071 .model_id = SM_MVC_29C51004T,
12072 .total_size = 512,
12073 .page_size = 1024,
12074 .feature_bits = FEATURE_EITHER_RESET,
12075 .tested = TEST_UNTESTED,
12076 .probe = probe_jedec,
12077 .probe_timing = TIMING_ZERO,
12078 .block_erasers =
12079 {
12080 {
12081 .eraseblocks = { {1024, 512} },
12082 .block_erase = erase_sector_jedec,
12083 }, {
12084 .eraseblocks = { {512 * 1024, 1} },
12085 .block_erase = erase_chip_block_jedec,
12086 },
12087 },
12088 .write = write_jedec_1,
12089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012090 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012091 },
12092
12093 {
12094 .vendor = "SyncMOS/MoselVitelic",
12095 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012096 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012097 .manufacture_id = SYNCMOS_MVC_ID,
12098 .model_id = SM_MVC_29C31004B,
12099 .total_size = 512,
12100 .page_size = 1024,
12101 .feature_bits = FEATURE_EITHER_RESET,
12102 .tested = TEST_UNTESTED,
12103 .probe = probe_jedec,
12104 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12105 .block_erasers =
12106 {
12107 {
12108 .eraseblocks = { {1024, 512} },
12109 .block_erase = erase_sector_jedec,
12110 }, {
12111 .eraseblocks = { {512 * 1024, 1} },
12112 .block_erase = erase_chip_block_jedec,
12113 },
12114 },
12115 .write = write_jedec_1,
12116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012117 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012118 },
12119
12120 {
12121 .vendor = "SyncMOS/MoselVitelic",
12122 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012123 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012124 .manufacture_id = SYNCMOS_MVC_ID,
12125 .model_id = SM_MVC_29C31004T,
12126 .total_size = 512,
12127 .page_size = 1024,
12128 .feature_bits = FEATURE_EITHER_RESET,
12129 .tested = TEST_UNTESTED,
12130 .probe = probe_jedec,
12131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12132 .block_erasers =
12133 {
12134 {
12135 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012136 .block_erase = erase_sector_jedec,
12137 }, {
12138 .eraseblocks = { {512 * 1024, 1} },
12139 .block_erase = erase_chip_block_jedec,
12140 },
12141 },
Sean Nelson35727f72010-01-28 23:55:12 +000012142 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012144 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012145 },
12146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012147 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012148 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012149 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012150 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012151 .manufacture_id = TI_OLD_ID,
12152 .model_id = TI_TMS29F002RB,
12153 .total_size = 256,
12154 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012155 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012156 .tested = TEST_UNTESTED,
12157 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012158 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012159 .block_erasers =
12160 {
12161 {
12162 .eraseblocks = {
12163 {16 * 1024, 1},
12164 {8 * 1024, 2},
12165 {32 * 1024, 1},
12166 {64 * 1024, 3},
12167 },
12168 .block_erase = erase_sector_jedec,
12169 }, {
12170 .eraseblocks = { {256 * 1024, 1} },
12171 .block_erase = erase_chip_block_jedec,
12172 },
12173 },
Sean Nelson35727f72010-01-28 23:55:12 +000012174 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012176 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012177 },
12178
12179 {
Uwe Hermanna106d152009-05-27 23:17:40 +000012180 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012181 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012182 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012183 .manufacture_id = TI_OLD_ID,
12184 .model_id = TI_TMS29F002RT,
12185 .total_size = 256,
12186 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000012187 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012188 .tested = TEST_UNTESTED,
12189 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012190 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012191 .block_erasers =
12192 {
12193 {
12194 .eraseblocks = {
12195 {64 * 1024, 3},
12196 {32 * 1024, 1},
12197 {8 * 1024, 2},
12198 {16 * 1024, 1},
12199 },
12200 .block_erase = erase_sector_jedec,
12201 }, {
12202 .eraseblocks = { {256 * 1024, 1} },
12203 .block_erase = erase_chip_block_jedec,
12204 },
12205 },
Sean Nelson35727f72010-01-28 23:55:12 +000012206 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012208 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000012209 },
12210
12211 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012212 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012213 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012214 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012215 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012216 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012217 .total_size = 1024,
12218 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012219 /* supports SFDP */
12220 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012222 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012223 .probe = probe_spi_rdid,
12224 .probe_timing = TIMING_ZERO,
12225 .block_erasers =
12226 {
12227 {
12228 .eraseblocks = { {4 * 1024, 256} },
12229 .block_erase = spi_block_erase_20,
12230 }, {
12231 .eraseblocks = { {32 * 1024, 32} },
12232 .block_erase = spi_block_erase_52,
12233 }, {
12234 .eraseblocks = { {64 * 1024, 16} },
12235 .block_erase = spi_block_erase_d8,
12236 }, {
12237 .eraseblocks = { {1024 * 1024, 1} },
12238 .block_erase = spi_block_erase_60,
12239 }, {
12240 .eraseblocks = { {1024 * 1024, 1} },
12241 .block_erase = spi_block_erase_c7,
12242 }
12243 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012244 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012245 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012246 .write = spi_chip_write_256,
12247 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012248 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012249 },
12250
12251 {
12252 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012253 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012254 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012255 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012256 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012257 .total_size = 2048,
12258 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012259 /* supports SFDP */
12260 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012261 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012262 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012263 .probe = probe_spi_rdid,
12264 .probe_timing = TIMING_ZERO,
12265 .block_erasers =
12266 {
12267 {
12268 .eraseblocks = { {4 * 1024, 512} },
12269 .block_erase = spi_block_erase_20,
12270 }, {
12271 .eraseblocks = { {32 * 1024, 64} },
12272 .block_erase = spi_block_erase_52,
12273 }, {
12274 .eraseblocks = { {64 * 1024, 32} },
12275 .block_erase = spi_block_erase_d8,
12276 }, {
12277 .eraseblocks = { {2 * 1024 * 1024, 1} },
12278 .block_erase = spi_block_erase_60,
12279 }, {
12280 .eraseblocks = { {2 * 1024 * 1024, 1} },
12281 .block_erase = spi_block_erase_c7,
12282 }
12283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012285 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012286 .write = spi_chip_write_256,
12287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012288 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012289 },
12290
12291 {
12292 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012293 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012294 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012295 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012296 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012297 .total_size = 4096,
12298 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012299 /* supports SFDP */
12300 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012302 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012303 .probe = probe_spi_rdid,
12304 .probe_timing = TIMING_ZERO,
12305 .block_erasers =
12306 {
12307 {
12308 .eraseblocks = { {4 * 1024, 1024} },
12309 .block_erase = spi_block_erase_20,
12310 }, {
12311 .eraseblocks = { {32 * 1024, 128} },
12312 .block_erase = spi_block_erase_52,
12313 }, {
12314 .eraseblocks = { {64 * 1024, 64} },
12315 .block_erase = spi_block_erase_d8,
12316 }, {
12317 .eraseblocks = { {4 * 1024 * 1024, 1} },
12318 .block_erase = spi_block_erase_60,
12319 }, {
12320 .eraseblocks = { {4 * 1024 * 1024, 1} },
12321 .block_erase = spi_block_erase_c7,
12322 }
12323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012324 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012325 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012326 .write = spi_chip_write_256,
12327 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012328 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012329 },
12330
12331 {
12332 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012333 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012334 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012335 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012336 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012337 .total_size = 8192,
12338 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012339 /* supports SFDP */
12340 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012342 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012343 .probe = probe_spi_rdid,
12344 .probe_timing = TIMING_ZERO,
12345 .block_erasers =
12346 {
12347 {
12348 .eraseblocks = { {4 * 1024, 2048} },
12349 .block_erase = spi_block_erase_20,
12350 }, {
12351 .eraseblocks = { {32 * 1024, 256} },
12352 .block_erase = spi_block_erase_52,
12353 }, {
12354 .eraseblocks = { {64 * 1024, 128} },
12355 .block_erase = spi_block_erase_d8,
12356 }, {
12357 .eraseblocks = { {8 * 1024 * 1024, 1} },
12358 .block_erase = spi_block_erase_60,
12359 }, {
12360 .eraseblocks = { {8 * 1024 * 1024, 1} },
12361 .block_erase = spi_block_erase_c7,
12362 }
12363 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012364 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012365 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012366 .write = spi_chip_write_256,
12367 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012368 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012369 },
12370
12371 {
12372 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012373 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012374 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012375 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012376 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012377 .total_size = 16384,
12378 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012379 /* supports SFDP */
12380 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012381 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012382 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012383 .probe = probe_spi_rdid,
12384 .probe_timing = TIMING_ZERO,
12385 .block_erasers =
12386 {
12387 {
12388 .eraseblocks = { {4 * 1024, 4096} },
12389 .block_erase = spi_block_erase_20,
12390 }, {
12391 .eraseblocks = { {32 * 1024, 512} },
12392 .block_erase = spi_block_erase_52,
12393 }, {
12394 .eraseblocks = { {64 * 1024, 256} },
12395 .block_erase = spi_block_erase_d8,
12396 }, {
12397 .eraseblocks = { {16 * 1024 * 1024, 1} },
12398 .block_erase = spi_block_erase_60,
12399 }, {
12400 .eraseblocks = { {16 * 1024 * 1024, 1} },
12401 .block_erase = spi_block_erase_c7,
12402 }
12403 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012404 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012405 .unlock = spi_disable_blockprotect,
12406 .write = spi_chip_write_256,
12407 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012408 .voltage = {2700, 3600},
12409 },
12410
12411 {
12412 .vendor = "Winbond",
12413 .name = "W25Q20.W",
12414 .bustype = BUS_SPI,
12415 .manufacture_id = WINBOND_NEX_ID,
12416 .model_id = WINBOND_NEX_W25Q20_W,
12417 .total_size = 256,
12418 .page_size = 256,
12419 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12421 .tested = TEST_UNTESTED,
12422 .probe = probe_spi_rdid,
12423 .probe_timing = TIMING_ZERO,
12424 .block_erasers =
12425 {
12426 {
12427 .eraseblocks = { {4 * 1024, 64} },
12428 .block_erase = spi_block_erase_20,
12429 }, {
12430 .eraseblocks = { {32 * 1024, 8} },
12431 .block_erase = spi_block_erase_52,
12432 }, {
12433 .eraseblocks = { {64 * 1024, 4} },
12434 .block_erase = spi_block_erase_d8,
12435 }, {
12436 .eraseblocks = { {256 * 1024, 1} },
12437 .block_erase = spi_block_erase_60,
12438 }, {
12439 .eraseblocks = { {256 * 1024, 1} },
12440 .block_erase = spi_block_erase_c7,
12441 }
12442 },
12443 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12444 .unlock = spi_disable_blockprotect,
12445 .write = spi_chip_write_256,
12446 .read = spi_chip_read,
12447 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12448 },
12449
12450 {
12451 .vendor = "Winbond",
12452 .name = "W25Q40.W",
12453 .bustype = BUS_SPI,
12454 .manufacture_id = WINBOND_NEX_ID,
12455 .model_id = WINBOND_NEX_W25Q40_W,
12456 .total_size = 512,
12457 .page_size = 256,
12458 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12460 .tested = TEST_UNTESTED,
12461 .probe = probe_spi_rdid,
12462 .probe_timing = TIMING_ZERO,
12463 .block_erasers =
12464 {
12465 {
12466 .eraseblocks = { {4 * 1024, 128} },
12467 .block_erase = spi_block_erase_20,
12468 }, {
12469 .eraseblocks = { {32 * 1024, 16} },
12470 .block_erase = spi_block_erase_52,
12471 }, {
12472 .eraseblocks = { {64 * 1024, 8} },
12473 .block_erase = spi_block_erase_d8,
12474 }, {
12475 .eraseblocks = { {512 * 1024, 1} },
12476 .block_erase = spi_block_erase_60,
12477 }, {
12478 .eraseblocks = { {512 * 1024, 1} },
12479 .block_erase = spi_block_erase_c7,
12480 }
12481 },
12482 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12483 .unlock = spi_disable_blockprotect,
12484 .write = spi_chip_write_256,
12485 .read = spi_chip_read,
12486 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12487 },
12488
12489 {
12490 .vendor = "Winbond",
12491 .name = "W25Q80.W",
12492 .bustype = BUS_SPI,
12493 .manufacture_id = WINBOND_NEX_ID,
12494 .model_id = WINBOND_NEX_W25Q80_W,
12495 .total_size = 1024,
12496 .page_size = 256,
12497 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12498 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12499 .tested = TEST_UNTESTED,
12500 .probe = probe_spi_rdid,
12501 .probe_timing = TIMING_ZERO,
12502 .block_erasers =
12503 {
12504 {
12505 .eraseblocks = { {4 * 1024, 256} },
12506 .block_erase = spi_block_erase_20,
12507 }, {
12508 .eraseblocks = { {32 * 1024, 32} },
12509 .block_erase = spi_block_erase_52,
12510 }, {
12511 .eraseblocks = { {64 * 1024, 16} },
12512 .block_erase = spi_block_erase_d8,
12513 }, {
12514 .eraseblocks = { {1 * 1024 * 1024, 1} },
12515 .block_erase = spi_block_erase_60,
12516 }, {
12517 .eraseblocks = { {1 * 1024 * 1024, 1} },
12518 .block_erase = spi_block_erase_c7,
12519 }
12520 },
12521 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12522 .unlock = spi_disable_blockprotect,
12523 .write = spi_chip_write_256,
12524 .read = spi_chip_read,
12525 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12526 },
12527
12528 {
12529 .vendor = "Winbond",
12530 .name = "W25Q16.W",
12531 .bustype = BUS_SPI,
12532 .manufacture_id = WINBOND_NEX_ID,
12533 .model_id = WINBOND_NEX_W25Q16_W,
12534 .total_size = 2048,
12535 .page_size = 256,
12536 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12537 /* QPI enable 0x38, disable 0xFF */
12538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12539 .tested = TEST_UNTESTED,
12540 .probe = probe_spi_rdid,
12541 .probe_timing = TIMING_ZERO,
12542 .block_erasers =
12543 {
12544 {
12545 .eraseblocks = { {4 * 1024, 512} },
12546 .block_erase = spi_block_erase_20,
12547 }, {
12548 .eraseblocks = { {32 * 1024, 64} },
12549 .block_erase = spi_block_erase_52,
12550 }, {
12551 .eraseblocks = { {64 * 1024, 32} },
12552 .block_erase = spi_block_erase_d8,
12553 }, {
12554 .eraseblocks = { {2 * 1024 * 1024, 1} },
12555 .block_erase = spi_block_erase_60,
12556 }, {
12557 .eraseblocks = { {2 * 1024 * 1024, 1} },
12558 .block_erase = spi_block_erase_c7,
12559 }
12560 },
12561 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12562 .unlock = spi_disable_blockprotect,
12563 .write = spi_chip_write_256,
12564 .read = spi_chip_read,
12565 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12566 },
12567
12568 {
12569 .vendor = "Winbond",
12570 .name = "W25Q32.W",
12571 .bustype = BUS_SPI,
12572 .manufacture_id = WINBOND_NEX_ID,
12573 .model_id = WINBOND_NEX_W25Q32_W,
12574 .total_size = 4096,
12575 .page_size = 256,
12576 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12577 /* QPI enable 0x38, disable 0xFF */
12578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12579 .tested = TEST_OK_PREW,
12580 .probe = probe_spi_rdid,
12581 .probe_timing = TIMING_ZERO,
12582 .block_erasers =
12583 {
12584 {
12585 .eraseblocks = { {4 * 1024, 1024} },
12586 .block_erase = spi_block_erase_20,
12587 }, {
12588 .eraseblocks = { {32 * 1024, 128} },
12589 .block_erase = spi_block_erase_52,
12590 }, {
12591 .eraseblocks = { {64 * 1024, 64} },
12592 .block_erase = spi_block_erase_d8,
12593 }, {
12594 .eraseblocks = { {4 * 1024 * 1024, 1} },
12595 .block_erase = spi_block_erase_60,
12596 }, {
12597 .eraseblocks = { {4 * 1024 * 1024, 1} },
12598 .block_erase = spi_block_erase_c7,
12599 }
12600 },
12601 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12602 .unlock = spi_disable_blockprotect,
12603 .write = spi_chip_write_256,
12604 .read = spi_chip_read,
12605 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12606 },
12607
12608 {
12609 .vendor = "Winbond",
12610 .name = "W25Q64.W",
12611 .bustype = BUS_SPI,
12612 .manufacture_id = WINBOND_NEX_ID,
12613 .model_id = WINBOND_NEX_W25Q64_W,
12614 .total_size = 8192,
12615 .page_size = 256,
12616 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12617 /* QPI enable 0x38, disable 0xFF */
12618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012619 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012620 .probe = probe_spi_rdid,
12621 .probe_timing = TIMING_ZERO,
12622 .block_erasers =
12623 {
12624 {
12625 .eraseblocks = { {4 * 1024, 2048} },
12626 .block_erase = spi_block_erase_20,
12627 }, {
12628 .eraseblocks = { {32 * 1024, 256} },
12629 .block_erase = spi_block_erase_52,
12630 }, {
12631 .eraseblocks = { {64 * 1024, 128} },
12632 .block_erase = spi_block_erase_d8,
12633 }, {
12634 .eraseblocks = { {8 * 1024 * 1024, 1} },
12635 .block_erase = spi_block_erase_60,
12636 }, {
12637 .eraseblocks = { {8 * 1024 * 1024, 1} },
12638 .block_erase = spi_block_erase_c7,
12639 }
12640 },
12641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12642 .unlock = spi_disable_blockprotect,
12643 .write = spi_chip_write_256,
12644 .read = spi_chip_read,
12645 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012646 },
12647
12648 {
12649 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012650 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012651 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012652 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012653 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012654 .total_size = 128,
12655 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012656 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012657 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012658 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012659 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012660 .block_erasers =
12661 {
12662 {
12663 .eraseblocks = { {4 * 1024, 32} },
12664 .block_erase = spi_block_erase_20,
12665 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012666 .eraseblocks = { {64 * 1024, 2} },
12667 .block_erase = spi_block_erase_d8,
12668 }, {
12669 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012670 .block_erase = spi_block_erase_c7,
12671 }
12672 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012674 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012675 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012676 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012677 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012678 },
12679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012680 {
12681 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012682 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012684 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012685 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012686 .total_size = 256,
12687 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012688 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012689 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012690 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012691 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012692 .block_erasers =
12693 {
12694 {
12695 .eraseblocks = { {4 * 1024, 64} },
12696 .block_erase = spi_block_erase_20,
12697 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012698 .eraseblocks = { {64 * 1024, 4} },
12699 .block_erase = spi_block_erase_d8,
12700 }, {
12701 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012702 .block_erase = spi_block_erase_c7,
12703 }
12704 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012705 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012706 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012707 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012708 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012709 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012710 },
12711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012712 {
12713 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012714 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012715 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012716 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012717 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012718 .total_size = 512,
12719 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012720 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012721 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012722 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012723 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012724 .block_erasers =
12725 {
12726 {
12727 .eraseblocks = { {4 * 1024, 128} },
12728 .block_erase = spi_block_erase_20,
12729 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012730 .eraseblocks = { {64 * 1024, 8} },
12731 .block_erase = spi_block_erase_d8,
12732 }, {
12733 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012734 .block_erase = spi_block_erase_c7,
12735 }
12736 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012737 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012738 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012739 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012740 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012741 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012742 },
12743
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012744 {
12745 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012746 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012747 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012748 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012749 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012750 .total_size = 1024,
12751 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012752 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012753 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012754 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012755 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012756 .block_erasers =
12757 {
12758 {
12759 .eraseblocks = { {4 * 1024, 256} },
12760 .block_erase = spi_block_erase_20,
12761 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012762 .eraseblocks = { {64 * 1024, 16} },
12763 .block_erase = spi_block_erase_d8,
12764 }, {
12765 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012766 .block_erase = spi_block_erase_c7,
12767 }
12768 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012769 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012770 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012771 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012772 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012773 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012774 },
12775
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012776 {
12777 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012778 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012779 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012780 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012781 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012782 .total_size = 2048,
12783 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012784 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012785 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012786 .probe = probe_spi_rdid,
12787 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012788 .block_erasers =
12789 {
12790 {
12791 .eraseblocks = { {4 * 1024, 512} },
12792 .block_erase = spi_block_erase_20,
12793 }, {
12794 .eraseblocks = { {32 * 1024, 64} },
12795 .block_erase = spi_block_erase_52,
12796 }, {
12797 .eraseblocks = { {64 * 1024, 32} },
12798 .block_erase = spi_block_erase_d8,
12799 }, {
12800 .eraseblocks = { {2 * 1024 * 1024, 1} },
12801 .block_erase = spi_block_erase_60,
12802 }, {
12803 .eraseblocks = { {2 * 1024 * 1024, 1} },
12804 .block_erase = spi_block_erase_c7,
12805 }
12806 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012808 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012809 .write = spi_chip_write_256,
12810 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012811 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012812 },
12813
12814 {
12815 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012816 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012817 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012818 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012819 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012820 .total_size = 4096,
12821 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012822 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012823 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012824 .probe = probe_spi_rdid,
12825 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012826 .block_erasers =
12827 {
12828 {
12829 .eraseblocks = { {4 * 1024, 1024} },
12830 .block_erase = spi_block_erase_20,
12831 }, {
12832 .eraseblocks = { {32 * 1024, 128} },
12833 .block_erase = spi_block_erase_52,
12834 }, {
12835 .eraseblocks = { {64 * 1024, 64} },
12836 .block_erase = spi_block_erase_d8,
12837 }, {
12838 .eraseblocks = { {4 * 1024 * 1024, 1} },
12839 .block_erase = spi_block_erase_60,
12840 }, {
12841 .eraseblocks = { {4 * 1024 * 1024, 1} },
12842 .block_erase = spi_block_erase_c7,
12843 }
12844 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012845 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012846 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012847 .write = spi_chip_write_256,
12848 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012849 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012850 },
12851
12852 {
12853 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012854 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012855 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012856 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012857 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012858 .total_size = 8192,
12859 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012860 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012861 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012862 .probe = probe_spi_rdid,
12863 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012864 .block_erasers =
12865 {
12866 {
12867 .eraseblocks = { {4 * 1024, 2048} },
12868 .block_erase = spi_block_erase_20,
12869 }, {
12870 .eraseblocks = { {32 * 1024, 256} },
12871 .block_erase = spi_block_erase_52,
12872 }, {
12873 .eraseblocks = { {64 * 1024, 128} },
12874 .block_erase = spi_block_erase_d8,
12875 }, {
12876 .eraseblocks = { {8 * 1024 * 1024, 1} },
12877 .block_erase = spi_block_erase_60,
12878 }, {
12879 .eraseblocks = { {8 * 1024 * 1024, 1} },
12880 .block_erase = spi_block_erase_c7,
12881 }
12882 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012883 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012884 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012885 .write = spi_chip_write_256,
12886 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012887 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012888 },
12889
12890 {
12891 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012892 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012893 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012894 .manufacture_id = WINBOND_ID,
12895 .model_id = WINBOND_W29C010,
12896 .total_size = 128,
12897 .page_size = 128,
12898 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012899 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012900 .probe = probe_w29ee011,
12901 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12902 .block_erasers =
12903 {
12904 {
12905 .eraseblocks = { {128 * 1024, 1} },
12906 .block_erase = erase_chip_block_jedec,
12907 }
12908 },
12909 .write = write_jedec,
12910 .read = read_memmapped,
12911 },
12912
12913 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12914 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012915 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012916 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012917 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012918 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012919 .total_size = 128,
12920 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012921 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012922 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012923 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012924 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012925 .block_erasers =
12926 {
12927 {
12928 .eraseblocks = { {128 * 1024, 1} },
12929 .block_erase = erase_chip_block_jedec,
12930 }
12931 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012932 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012933 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012934 },
12935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012936 {
12937 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012938 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012939 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012940 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012941 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012942 .total_size = 256,
12943 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012944 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012945 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012946 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012947 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012948 .block_erasers =
12949 {
12950 {
12951 .eraseblocks = { {256 * 1024, 1} },
12952 .block_erase = erase_chip_block_jedec,
12953 }
12954 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012955 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012957 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012958 },
12959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012960 {
12961 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012962 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012963 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012964 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012965 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012966 .total_size = 512,
12967 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012968 .feature_bits = FEATURE_LONG_RESET,
12969 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012970 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012971 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012972 .block_erasers =
12973 {
12974 {
12975 .eraseblocks = { {512 * 1024, 1} },
12976 .block_erase = erase_chip_block_jedec,
12977 }
12978 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012979 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012980 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012981 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012982 },
12983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012984 {
12985 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012986 .name = "W39F010",
12987 .bustype = BUS_PARALLEL,
12988 .manufacture_id = WINBOND_ID,
12989 .model_id = WINBOND_W39F010,
12990 .total_size = 128,
12991 .page_size = 4 * 1024,
12992 .feature_bits = FEATURE_EITHER_RESET,
12993 .tested = TEST_OK_PREW,
12994 .probe = probe_jedec,
12995 .probe_timing = 10,
12996 .block_erasers =
12997 {
12998 {
12999 .eraseblocks = { {4 * 1024, 32} },
13000 .block_erase = erase_block_jedec,
13001 }, {
13002 .eraseblocks = { {128 * 1024, 1} },
13003 .block_erase = erase_chip_block_jedec,
13004 }
13005 },
13006 .printlock = printlock_w39f010,
13007 .write = write_jedec_1,
13008 .read = read_memmapped,
13009 .voltage = {4500, 5500},
13010 },
13011
13012 {
13013 .vendor = "Winbond",
13014 .name = "W39L010",
13015 .bustype = BUS_PARALLEL,
13016 .manufacture_id = WINBOND_ID,
13017 .model_id = WINBOND_W39L010,
13018 .total_size = 128,
13019 .page_size = 4 * 1024,
13020 .feature_bits = FEATURE_EITHER_RESET,
13021 .tested = TEST_UNTESTED,
13022 .probe = probe_jedec,
13023 .probe_timing = 10,
13024 .block_erasers =
13025 {
13026 {
13027 .eraseblocks = { {4 * 1024, 32} },
13028 .block_erase = erase_block_jedec,
13029 }, {
13030 .eraseblocks = { {128 * 1024, 1} },
13031 .block_erase = erase_chip_block_jedec,
13032 }
13033 },
13034 .printlock = printlock_w39l010,
13035 .write = write_jedec_1,
13036 .read = read_memmapped,
13037 .voltage = {3000, 3600},
13038 },
13039
13040 {
13041 .vendor = "Winbond",
13042 .name = "W39L020",
13043 .bustype = BUS_PARALLEL,
13044 .manufacture_id = WINBOND_ID,
13045 .model_id = WINBOND_W39L020,
13046 .total_size = 256,
13047 .page_size = 4 * 1024,
13048 .feature_bits = FEATURE_EITHER_RESET,
13049 .tested = TEST_UNTESTED,
13050 .probe = probe_jedec,
13051 .probe_timing = 10,
13052 .block_erasers =
13053 {
13054 {
13055 .eraseblocks = { {4 * 1024, 64} },
13056 .block_erase = erase_block_jedec,
13057 }, {
13058 .eraseblocks = { {64 * 1024, 4} },
13059 .block_erase = erase_sector_jedec,
13060 }, {
13061 .eraseblocks = { {256 * 1024, 1} },
13062 .block_erase = erase_chip_block_jedec,
13063 }
13064 },
13065 .printlock = printlock_w39l020,
13066 .write = write_jedec_1,
13067 .read = read_memmapped,
13068 .voltage = {3000, 3600},
13069 },
13070
13071 {
13072 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000013073 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013074 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000013075 .manufacture_id = WINBOND_ID,
13076 .model_id = WINBOND_W39L040,
13077 .total_size = 512,
13078 .page_size = 64 * 1024,
13079 .feature_bits = FEATURE_EITHER_RESET,
13080 .tested = TEST_OK_PR,
13081 .probe = probe_jedec,
13082 .probe_timing = 10,
13083 .block_erasers =
13084 {
13085 {
13086 .eraseblocks = { {4 * 1024, 128} },
13087 .block_erase = erase_block_jedec,
13088 }, {
13089 .eraseblocks = { {64 * 1024, 8} },
13090 .block_erase = erase_sector_jedec,
13091 }, {
13092 .eraseblocks = { {512 * 1024, 1} },
13093 .block_erase = erase_chip_block_jedec,
13094 }
13095 },
13096 .printlock = printlock_w39l040,
13097 .write = write_jedec_1,
13098 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013099 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000013100 },
13101
13102 {
13103 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013104 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013105 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013106 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013107 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013108 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013109 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013110 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013111 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013112 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000013113 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013114 .block_erasers =
13115 {
13116 {
13117 .eraseblocks = { {64 * 1024, 8} },
13118 .block_erase = erase_sector_jedec,
13119 }, {
13120 .eraseblocks = { {512 * 1024, 1} },
13121 .block_erase = erase_chip_block_jedec,
13122 }
13123 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013124 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000013125 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013127 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013128 },
13129
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013130 {
13131 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013132 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013133 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013134 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013135 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013136 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013137 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013138 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013139 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013140 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000013141 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013142 .block_erasers =
13143 {
13144 {
13145 .eraseblocks = { {64 * 1024, 8} },
13146 .block_erase = erase_sector_jedec,
13147 }, {
13148 .eraseblocks = { {512 * 1024, 1} },
13149 .block_erase = erase_chip_block_jedec,
13150 }
13151 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013152 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000013153 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013155 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013156 },
13157
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013158 {
13159 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013160 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013161 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013162 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013163 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013164 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013165 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013166 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013167 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000013168 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013169 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013170 .block_erasers =
13171 {
13172 {
13173 .eraseblocks = { {64 * 1024, 8} },
13174 .block_erase = erase_sector_jedec,
13175 }, {
13176 .eraseblocks = { {512 * 1024, 1} },
13177 .block_erase = erase_chip_block_jedec,
13178 }
13179 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000013180 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000013181 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013183 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013184 },
13185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013186 {
13187 .vendor = "Winbond",
13188 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013189 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013190 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013191 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013192 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013193 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000013194 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013195 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013196 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013197 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013198 .block_erasers =
13199 {
13200 {
13201 .eraseblocks = { {4 * 1024, 128} },
13202 .block_erase = erase_block_jedec,
13203 }, {
13204 .eraseblocks = { {64 * 1024, 8} },
13205 .block_erase = erase_sector_jedec,
13206 }, {
13207 .eraseblocks = { {512 * 1024, 1} },
13208 .block_erase = erase_chip_block_jedec,
13209 }
13210 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013211 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013212 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013213 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013215 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013216 },
13217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013218 {
13219 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013220 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013221 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013222 .manufacture_id = WINBOND_ID,
13223 .model_id = WINBOND_W39V040B,
13224 .total_size = 512,
13225 .page_size = 64 * 1024,
13226 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013227 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013228 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013229 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013230 .block_erasers =
13231 {
13232 {
13233 .eraseblocks = { {64 * 1024, 8} },
13234 .block_erase = erase_sector_jedec,
13235 }, {
13236 .eraseblocks = { {512 * 1024, 1} },
13237 .block_erase = erase_chip_block_jedec,
13238 }
13239 },
13240 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013241 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013242 .write = write_jedec_1,
13243 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013244 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013245 },
13246
13247 {
13248 .vendor = "Winbond",
13249 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013250 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013251 .manufacture_id = WINBOND_ID,
13252 .model_id = WINBOND_W39V040C,
13253 .total_size = 512,
13254 .page_size = 64 * 1024,
13255 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000013256 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013257 .probe = probe_jedec,
13258 .probe_timing = 10,
13259 .block_erasers =
13260 {
13261 {
13262 .eraseblocks = { {64 * 1024, 8} },
13263 .block_erase = erase_sector_jedec,
13264 }, {
13265 .eraseblocks = { {512 * 1024, 1} },
13266 .block_erase = erase_chip_block_jedec,
13267 }
13268 },
13269 .printlock = printlock_w39v040fc,
13270 .write = write_jedec_1,
13271 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013272 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013273 },
13274
13275 {
13276 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013277 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013278 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013279 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013280 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013281 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013282 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013283 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013284 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013285 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013286 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013287 .block_erasers =
13288 {
13289 {
13290 .eraseblocks = { {64 * 1024, 16} },
13291 .block_erase = erase_sector_jedec,
13292 }, {
13293 .eraseblocks = { {1024 * 1024, 1} },
13294 .block_erase = erase_chip_block_jedec,
13295 }
13296 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013297 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013298 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013299 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013300 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013301 },
13302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013303 {
13304 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013305 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013306 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013307 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013308 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013309 .total_size = 256,
13310 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013311 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013312 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013313 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013314 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013315 .block_erasers =
13316 {
13317 {
13318 .eraseblocks = {
13319 {128 * 1024, 1},
13320 {96 * 1024, 1},
13321 {8 * 1024, 2},
13322 {16 * 1024, 1},
13323 },
13324 .block_erase = erase_sector_jedec,
13325 }, {
13326 .eraseblocks = { {256 * 1024, 1} },
13327 .block_erase = erase_chip_block_jedec,
13328 }
13329 },
Sean Nelson35727f72010-01-28 23:55:12 +000013330 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013331 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013332 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013333 },
13334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013335 {
13336 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013337 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013338 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013339 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013340 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013341 .total_size = 256,
13342 .page_size = 128,
13343 .feature_bits = FEATURE_EITHER_RESET,
13344 .tested = TEST_OK_PROBE,
13345 .probe = probe_jedec,
13346 .probe_timing = 10,
13347 .block_erasers =
13348 {
13349 {
13350 .eraseblocks = { {256 * 1024, 1} },
13351 .block_erase = erase_chip_block_jedec,
13352 }
13353 },
13354 .write = write_jedec_1,
13355 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013356 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013357 },
13358
13359 {
13360 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013361 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013362 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013363 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013364 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013365 .total_size = 256,
13366 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013367 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013368 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013369 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013370 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013371 .block_erasers =
13372 {
13373 {
13374 .eraseblocks = {
13375 {64 * 1024, 3},
13376 {32 * 1024, 1},
13377 {8 * 1024, 2},
13378 {16 * 1024, 1},
13379 },
13380 .block_erase = erase_sector_jedec,
13381 }, {
13382 .eraseblocks = { {256 * 1024, 1} },
13383 .block_erase = erase_chip_block_jedec,
13384 }
13385 },
Sean Nelson35727f72010-01-28 23:55:12 +000013386 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013388 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013389 },
13390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013391 {
13392 .vendor = "Winbond",
13393 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013394 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013395 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013396 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013397 .total_size = 256,
13398 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013399 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013400 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013401 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013402 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013403 .block_erasers =
13404 {
13405 {
13406 .eraseblocks = {
13407 {64 * 1024, 3},
13408 {32 * 1024, 1},
13409 {8 * 1024, 2},
13410 {16 * 1024, 1},
13411 },
13412 .block_erase = erase_sector_jedec,
13413 }, {
13414 .eraseblocks = { {256 * 1024, 1} },
13415 .block_erase = erase_chip_block_jedec,
13416 }
13417 },
Sean Nelson35727f72010-01-28 23:55:12 +000013418 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013419 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013420 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013421 },
13422
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013423 {
13424 .vendor = "Winbond",
13425 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013426 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013427 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013428 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013429 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013430 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013431 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013432 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013433 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013434 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013435 .block_erasers =
13436 {
13437 {
13438 .eraseblocks = { {64 * 1024, 16}, },
13439 .block_erase = erase_sector_jedec,
13440 }, {
13441 .eraseblocks = { {1024 * 1024, 1} },
13442 .block_erase = erase_chip_block_jedec,
13443 }
13444 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013445 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013446 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013447 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013448 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013449 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013450 },
13451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013452 {
13453 .vendor = "Winbond",
13454 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013455 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013456 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013457 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013458 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013459 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013460 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013461 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013462 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013463 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013464 .block_erasers =
13465 {
13466 {
13467 .eraseblocks = { {64 * 1024, 8}, },
13468 .block_erase = erase_sector_jedec,
13469 }, {
13470 .eraseblocks = { {512 * 1024, 1} },
13471 .block_erase = erase_chip_block_jedec,
13472 }
13473 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013474 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013475 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013476 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013477 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013478 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013479
13480 {
13481 .vendor = "Unknown",
13482 .name = "SFDP-capable chip",
13483 .bustype = BUS_SPI,
13484 .manufacture_id = GENERIC_MANUF_ID,
13485 .model_id = SFDP_DEVICE_ID,
13486 /* We present our own "report this" text hence we do not
13487 * want the default "This flash part has status UNTESTED..."
13488 * text to be printed. */
13489 .tested = TEST_OK_PREW,
13490 .probe = probe_spi_sfdp,
13491 .unlock = spi_disable_blockprotect, /* is this safe? */
13492 .read = spi_chip_read,
13493 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013494 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013495 /* Everything below will be set by the probing function. */
13496 .write = NULL,
13497 .total_size = 0,
13498 .page_size = 0,
13499 .feature_bits = 0,
13500 .block_erasers = {},
13501 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013503 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013504 .vendor = "Programmer",
13505 .name = "Opaque flash chip",
13506 .bustype = BUS_PROG,
13507 .manufacture_id = PROGMANUF_ID,
13508 .model_id = PROGDEV_ID,
13509 .total_size = 0,
13510 .page_size = 256,
13511 /* probe is assumed to work, rest will be filled in by probe */
13512 .tested = TEST_OK_PROBE,
13513 .probe = probe_opaque,
13514 /* eraseblock sizes will be set by the probing function */
13515 .block_erasers =
13516 {
13517 {
13518 .block_erase = erase_opaque,
13519 }
13520 },
13521 .write = write_opaque,
13522 .read = read_opaque,
13523 },
13524
13525 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013526 .vendor = "AMIC",
13527 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013528 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013529 .manufacture_id = AMIC_ID,
13530 .model_id = GENERIC_DEVICE_ID,
13531 .total_size = 0,
13532 .page_size = 256,
13533 .tested = TEST_BAD_PREW,
13534 .probe = probe_spi_rdid4,
13535 .probe_timing = TIMING_ZERO,
13536 .write = NULL,
13537 .read = NULL,
13538 },
13539
13540 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013541 .vendor = "Atmel",
13542 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013543 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013544 .manufacture_id = ATMEL_ID,
13545 .model_id = GENERIC_DEVICE_ID,
13546 .total_size = 0,
13547 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013548 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013549 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013550 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013551 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013552 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013553 },
13554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013555 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013556 .vendor = "Eon",
13557 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013559 .manufacture_id = EON_ID_NOPREFIX,
13560 .model_id = GENERIC_DEVICE_ID,
13561 .total_size = 0,
13562 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013563 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013565 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013566 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013567 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013568 },
13569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013570 {
13571 .vendor = "Macronix",
13572 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013573 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013574 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013575 .model_id = GENERIC_DEVICE_ID,
13576 .total_size = 0,
13577 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013578 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013579 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013580 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013581 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013582 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013583 },
13584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013585 {
13586 .vendor = "PMC",
13587 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013588 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013589 .manufacture_id = PMC_ID,
13590 .model_id = GENERIC_DEVICE_ID,
13591 .total_size = 0,
13592 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013593 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013595 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013596 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013597 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013598 },
13599
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013600 {
13601 .vendor = "SST",
13602 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013603 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013604 .manufacture_id = SST_ID,
13605 .model_id = GENERIC_DEVICE_ID,
13606 .total_size = 0,
13607 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013608 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013609 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013610 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013611 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013612 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013613 },
13614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013615 {
13616 .vendor = "ST",
13617 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013618 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013619 .manufacture_id = ST_ID,
13620 .model_id = GENERIC_DEVICE_ID,
13621 .total_size = 0,
13622 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013623 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013624 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013625 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013626 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013627 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013628 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013629
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013630 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013631 .vendor = "Sanyo",
13632 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013633 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013634 .manufacture_id = SANYO_ID,
13635 .model_id = GENERIC_DEVICE_ID,
13636 .total_size = 0,
13637 .page_size = 256,
13638 .tested = TEST_BAD_PREW,
13639 .probe = probe_spi_rdid,
13640 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013641 .write = NULL,
13642 .read = NULL,
13643 },
13644
13645 {
Stefan Taunereb582572012-09-21 12:52:50 +000013646 .vendor = "Winbond",
13647 .name = "unknown Winbond (ex Nexcom) SPI chip",
13648 .bustype = BUS_SPI,
13649 .manufacture_id = WINBOND_NEX_ID,
13650 .model_id = GENERIC_DEVICE_ID,
13651 .total_size = 0,
13652 .page_size = 256,
13653 .tested = TEST_BAD_PREW,
13654 .probe = probe_spi_rdid,
13655 .probe_timing = TIMING_ZERO,
13656 .write = NULL,
13657 .read = NULL,
13658 },
13659
13660 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013661 .vendor = "Generic",
13662 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013663 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013664 .manufacture_id = GENERIC_MANUF_ID,
13665 .model_id = GENERIC_DEVICE_ID,
13666 .total_size = 0,
13667 .page_size = 256,
13668 .tested = TEST_BAD_PREW,
13669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013670 .write = NULL,
13671 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013672
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013673 {
13674 .vendor = "Generic",
13675 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013676 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013677 .manufacture_id = GENERIC_MANUF_ID,
13678 .model_id = GENERIC_DEVICE_ID,
13679 .total_size = 0,
13680 .page_size = 256,
13681 .tested = TEST_BAD_PREW,
13682 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013683 .write = NULL,
13684 },
13685
Stefan Tauner96658be2014-05-26 22:05:31 +000013686 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013687};
Stefan Tauner96658be2014-05-26 22:05:31 +000013688
13689const unsigned int flashchips_size = ARRAY_SIZE(flashchips);