blob: 951ced1123d5ef1cc10216df973853ad9253b467 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000567 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000601 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000636 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000671 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000706 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000741 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000781 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000816 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000851 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000889 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000927 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000959 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000991 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001023 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001055 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001087 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001119 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001278 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001385 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001398 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001712 .name = "AT25DL081",
1713 .bustype = BUS_SPI,
1714 .manufacture_id = ATMEL_ID,
1715 .model_id = ATMEL_AT25DF081,
1716 .total_size = 1024,
1717 .page_size = 256,
1718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 256} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 32} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 16} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {1 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {1 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
1743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1744 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1745 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1746 .voltage = {1650, 1950},
1747 },
1748
1749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DL161",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25DL161,
1755 .total_size = 2048,
1756 .page_size = 256,
1757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1759 .tested = TEST_UNTESTED,
1760 .probe = probe_spi_rdid,
1761 .probe_timing = TIMING_ZERO,
1762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 512} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 64} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 32} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {2 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
1781 .printlock = spi_prettyprint_status_register_at25df_sec,
1782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1783 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1784 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1785 .voltage = {1650, 1950},
1786 },
1787
1788 {
1789 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001790 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001794 .total_size = 2048,
1795 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001796 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
1800 .probe_timing = TIMING_ZERO,
1801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 512} },
1805 .block_erase = spi_block_erase_20,
1806 }, {
1807 .eraseblocks = { {32 * 1024, 64} },
1808 .block_erase = spi_block_erase_52,
1809 }, {
1810 .eraseblocks = { {64 * 1024, 32} },
1811 .block_erase = spi_block_erase_d8,
1812 }, {
1813 .eraseblocks = { {2 * 1024 * 1024, 1} },
1814 .block_erase = spi_block_erase_60,
1815 }, {
1816 .eraseblocks = { {2 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_c7,
1818 }
1819 },
1820 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001821 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001822 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001824 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001825 },
1826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001829 .name = "AT25F512",
1830 .bustype = BUS_SPI,
1831 .manufacture_id = ATMEL_ID,
1832 .model_id = ATMEL_AT25F512,
1833 .total_size = 64,
1834 .page_size = 256,
1835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001836 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001837 .probe = probe_spi_at25f,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {32 * 1024, 2} },
1843 .block_erase = spi_block_erase_52,
1844 }, {
1845 .eraseblocks = { {64 * 1024, 1} },
1846 .block_erase = spi_block_erase_62,
1847 }
1848 },
1849 .printlock = spi_prettyprint_status_register_at25f,
1850 .unlock = spi_disable_blockprotect_at25f,
1851 .write = spi_chip_write_256,
1852 .read = spi_chip_read,
1853 .voltage = {2700, 3600},
1854 },
1855
1856 {
1857 .vendor = "Atmel",
1858 .name = "AT25F512A",
1859 .bustype = BUS_SPI,
1860 .manufacture_id = ATMEL_ID,
1861 .model_id = ATMEL_AT25F512A,
1862 .total_size = 64,
1863 .page_size = 128,
1864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001865 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001866 .probe = probe_spi_at25f,
1867 .probe_timing = TIMING_ZERO,
1868 .block_erasers =
1869 {
1870 {
1871 .eraseblocks = { {32 * 1024, 2} },
1872 .block_erase = spi_block_erase_52,
1873 }, {
1874 .eraseblocks = { {64 * 1024, 1} },
1875 .block_erase = spi_block_erase_62,
1876 }
1877 },
1878 .printlock = spi_prettyprint_status_register_at25f512a,
1879 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1880 .unlock = spi_disable_blockprotect_at25f512a,
1881 .write = spi_chip_write_256,
1882 .read = spi_chip_read,
1883 .voltage = {2700, 3600},
1884 },
1885
1886 {
1887 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001888 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 64,
1893 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001894 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .tested = TEST_UNTESTED,
1897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001898 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {4 * 1024, 16} },
1903 .block_erase = spi_block_erase_20,
1904 }, {
1905 .eraseblocks = { {32 * 1024, 2} },
1906 .block_erase = spi_block_erase_52,
1907 }, {
1908 .eraseblocks = { {32 * 1024, 2} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 1} },
1912 .block_erase = spi_block_erase_60,
1913 }, {
1914 .eraseblocks = { {64 * 1024, 1} },
1915 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001916 }, {
1917 .eraseblocks = { {64 * 1024, 1} },
1918 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001919 }
1920 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001921 .printlock = spi_prettyprint_status_register_at25f512b,
1922 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001926 },
1927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 {
1929 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001930 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1931 * All other properties seem to be the same.*/
1932 .name = "AT25F1024(A)",
1933 .bustype = BUS_SPI,
1934 .manufacture_id = ATMEL_ID,
1935 .model_id = ATMEL_AT25F1024,
1936 .total_size = 128,
1937 .page_size = 256,
1938 .feature_bits = FEATURE_WRSR_WREN,
1939 .tested = TEST_OK_PREW,
1940 .probe = probe_spi_at25f,
1941 .probe_timing = TIMING_ZERO,
1942 .block_erasers =
1943 {
1944 {
1945 .eraseblocks = { {32 * 1024, 4} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {128 * 1024, 1} },
1949 .block_erase = spi_block_erase_62,
1950 }
1951 },
1952 .printlock = spi_prettyprint_status_register_at25f,
1953 .unlock = spi_disable_blockprotect_at25f,
1954 .write = spi_chip_write_256,
1955 .read = spi_chip_read,
1956 .voltage = {2700, 3600},
1957 },
1958
1959 {
1960 .vendor = "Atmel",
1961 .name = "AT25F2048",
1962 .bustype = BUS_SPI,
1963 .manufacture_id = ATMEL_ID,
1964 .model_id = ATMEL_AT25F2048,
1965 .total_size = 256,
1966 .page_size = 256,
1967 .feature_bits = FEATURE_WRSR_WREN,
1968 .tested = TEST_UNTESTED,
1969 .probe = probe_spi_at25f,
1970 .probe_timing = TIMING_ZERO,
1971 .block_erasers =
1972 {
1973 {
1974 .eraseblocks = { {64 * 1024, 4} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {256 * 1024, 1} },
1978 .block_erase = spi_block_erase_62,
1979 }
1980 },
1981 .printlock = spi_prettyprint_status_register_at25f,
1982 .unlock = spi_disable_blockprotect_at25f,
1983 .write = spi_chip_write_256,
1984 .read = spi_chip_read,
1985 .voltage = {2700, 3600},
1986 },
1987
1988 {
1989 .vendor = "Atmel",
1990 .name = "AT25F4096",
1991 .bustype = BUS_SPI,
1992 .manufacture_id = ATMEL_ID,
1993 .model_id = ATMEL_AT25F4096,
1994 .total_size = 512,
1995 .page_size = 256,
1996 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00001997 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001998 .probe = probe_spi_at25f,
1999 .probe_timing = TIMING_ZERO,
2000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 8} },
2004 .block_erase = spi_block_erase_52,
2005 }, {
2006 .eraseblocks = { {512 * 1024, 1} },
2007 .block_erase = spi_block_erase_62,
2008 }
2009 },
2010 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002011 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2012 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002013 .write = spi_chip_write_256,
2014 .read = spi_chip_read,
2015 .voltage = {2700, 3600},
2016 },
2017
2018 {
2019 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002020 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002023 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .total_size = 128,
2025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002026 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002029 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002030 .block_erasers =
2031 {
2032 {
2033 .eraseblocks = { {4 * 1024, 32} },
2034 .block_erase = spi_block_erase_20,
2035 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002036 .eraseblocks = { {4 * 1024, 32} },
2037 .block_erase = spi_block_erase_d7,
2038 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002039 .eraseblocks = { {32 * 1024, 4} },
2040 .block_erase = spi_block_erase_52,
2041 }, {
2042 .eraseblocks = { {32 * 1024, 4} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {128 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {128 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 }
2051 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002052 .printlock = spi_prettyprint_status_register_at25fs010,
2053 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002054 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002056 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002057 },
2058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 {
2060 .vendor = "Atmel",
2061 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002064 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .total_size = 512,
2066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002067 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .tested = TEST_UNTESTED,
2069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002070 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002071 .block_erasers =
2072 {
2073 {
2074 .eraseblocks = { {4 * 1024, 128} },
2075 .block_erase = spi_block_erase_20,
2076 }, {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_d8,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_60,
2085 }, {
2086 .eraseblocks = { {512 * 1024, 1} },
2087 .block_erase = spi_block_erase_c7,
2088 }
2089 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002090 .printlock = spi_prettyprint_status_register_at25fs040,
2091 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002095 },
2096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 {
2098 .vendor = "Atmel",
2099 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 512,
2104 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002105 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002108 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002109 .block_erasers =
2110 {
2111 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002112 .eraseblocks = { {256, 2048} },
2113 .block_erase = spi_block_erase_81,
2114 }, {
2115 .eraseblocks = { {2 * 1024, 256} },
2116 .block_erase = spi_block_erase_50,
2117 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002121 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002122 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002123 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002124 .write = spi_chip_write_1,
2125 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002126 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002127 },
2128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .total_size = 1024,
2136 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002137 .feature_bits = FEATURE_WRSR_WREN,
2138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002141 .block_erasers =
2142 {
2143 {
2144 .eraseblocks = { {4 * 1024, 256} },
2145 .block_erase = spi_block_erase_20,
2146 }, {
2147 .eraseblocks = { {32 * 1024, 32} },
2148 .block_erase = spi_block_erase_52,
2149 }, {
2150 .eraseblocks = { {64 * 1024, 16} },
2151 .block_erase = spi_block_erase_d8,
2152 }, {
2153 .eraseblocks = { {1024 * 1024, 1} },
2154 .block_erase = spi_block_erase_60,
2155 }, {
2156 .eraseblocks = { {1024 * 1024, 1} },
2157 .block_erase = spi_block_erase_c7,
2158 }
2159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002160 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002161 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Atmel",
2169 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002172 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .total_size = 2048,
2174 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002178 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = { {4 * 1024, 512} },
2183 .block_erase = spi_block_erase_20,
2184 }, {
2185 .eraseblocks = { {32 * 1024, 64} },
2186 .block_erase = spi_block_erase_52,
2187 }, {
2188 .eraseblocks = { {64 * 1024, 32} },
2189 .block_erase = spi_block_erase_d8,
2190 }, {
2191 .eraseblocks = { {2 * 1024 * 1024, 1} },
2192 .block_erase = spi_block_erase_60,
2193 }, {
2194 .eraseblocks = { {2 * 1024 * 1024, 1} },
2195 .block_erase = spi_block_erase_c7,
2196 }
2197 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002198 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002199 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002203 },
2204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 {
2206 .vendor = "Atmel",
2207 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002210 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .total_size = 2048,
2212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002217 .block_erasers =
2218 {
2219 {
2220 .eraseblocks = { {4 * 1024, 512} },
2221 .block_erase = spi_block_erase_20,
2222 }, {
2223 .eraseblocks = { {32 * 1024, 64} },
2224 .block_erase = spi_block_erase_52,
2225 }, {
2226 .eraseblocks = { {64 * 1024, 32} },
2227 .block_erase = spi_block_erase_d8,
2228 }, {
2229 .eraseblocks = { {2 * 1024 * 1024, 1} },
2230 .block_erase = spi_block_erase_60,
2231 }, {
2232 .eraseblocks = { {2 * 1024 * 1024, 1} },
2233 .block_erase = spi_block_erase_c7,
2234 }
2235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002236 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002237 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002238 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002241 },
2242
2243 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 /*{
2245 .vendor = "Atmel",
2246 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002249 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .total_size = 4096,
2251 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .tested = TEST_UNTESTED,
2254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002255 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002256 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .read = spi_chip_read,
2260 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Atmel",
2264 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002267 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 512,
2269 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002270 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002271 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002273 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002274 .block_erasers =
2275 {
2276 {
2277 .eraseblocks = { {4 * 1024, 128} },
2278 .block_erase = spi_block_erase_20,
2279 }, {
2280 .eraseblocks = { {32 * 1024, 16} },
2281 .block_erase = spi_block_erase_52,
2282 }, {
2283 .eraseblocks = { {64 * 1024, 8} },
2284 .block_erase = spi_block_erase_d8,
2285 }, {
2286 .eraseblocks = { {512 * 1024, 1} },
2287 .block_erase = spi_block_erase_60,
2288 }, {
2289 .eraseblocks = { {512 * 1024, 1} },
2290 .block_erase = spi_block_erase_c7,
2291 }
2292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .write = NULL /* Incompatible Page write */,
2295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002297 },
2298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 {
2300 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002301 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002302 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002303 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002304 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002305 .total_size = 64,
2306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002307 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002308 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002309 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002310 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = { {64 * 1024, 1} },
2315 .block_erase = erase_chip_block_jedec,
2316 }
2317 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002318 .write = write_jedec,
2319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002320 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002321 },
2322
2323 {
2324 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002325 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002326 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002328 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002329 .total_size = 128,
2330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002332 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002333 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002334 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002335 .block_erasers =
2336 {
2337 {
2338 .eraseblocks = { {128 * 1024, 1} },
2339 .block_erase = erase_chip_block_jedec,
2340 }
2341 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002342 .write = write_jedec, /* FIXME */
2343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002344 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002345 },
2346
2347 {
2348 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002352 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .total_size = 256,
2354 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002355 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002358 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002359 .block_erasers =
2360 {
2361 {
2362 .eraseblocks = { {256 * 1024, 1} },
2363 .block_erase = erase_chip_block_jedec,
2364 }
2365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002369 },
2370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 {
2372 .vendor = "Atmel",
2373 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002379 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .tested = TEST_UNTESTED,
2381 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002382 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {512 * 1024, 1} },
2387 .block_erase = erase_chip_block_jedec,
2388 }
2389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002393 },
2394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 {
2396 .vendor = "Atmel",
2397 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002399 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002400 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002401 .total_size = 16896 /* No power of two sizes */,
2402 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002403 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002404 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2405 .feature_bits = FEATURE_OTP,
2406 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = {
2413 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2414 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2415 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2416 },
2417 .block_erase = spi_erase_at45cs_sector,
2418 }
2419 },
2420 .printlock = spi_prettyprint_status_register_plain,
2421 .gran = write_gran_1056bytes,
2422 .write = spi_write_at45db,
2423 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002424 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002427 {
2428 .vendor = "Atmel",
2429 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002432 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002433 .total_size = 128 /* or 132, determined from status register */,
2434 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002435 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002436 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2437 .feature_bits = FEATURE_OTP,
2438 .tested = TEST_UNTESTED,
2439 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002440 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002441 .block_erasers =
2442 {
2443 {
2444 .eraseblocks = { {256, 512} },
2445 .block_erase = spi_erase_at45db_page,
2446 }, {
2447 .eraseblocks = { {8 * 256, 512/8} },
2448 .block_erase = spi_erase_at45db_block,
2449 }, {
2450 .eraseblocks = {
2451 {8 * 256, 1},
2452 {120 * 256, 1},
2453 {128 * 256, 3},
2454 },
2455 .block_erase = spi_erase_at45db_sector
2456 }, {
2457 .eraseblocks = { {128 * 1024, 1} },
2458 .block_erase = spi_erase_at45db_chip,
2459 }
2460 },
2461 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2462 .printlock = spi_prettyprint_status_register_at45db,
2463 /* granularity will be set by the probing function. */
2464 .write = spi_write_at45db,
2465 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002466 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002467 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 {
2470 .vendor = "Atmel",
2471 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002472 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002473 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002474 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002475 .total_size = 256 /* or 264, determined from status register */,
2476 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002477 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002478 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2479 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002480 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002482 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = { {256, 1024} },
2487 .block_erase = spi_erase_at45db_page,
2488 }, {
2489 .eraseblocks = { {8 * 256, 1024/8} },
2490 .block_erase = spi_erase_at45db_block,
2491 }, {
2492 .eraseblocks = {
2493 {8 * 256, 1},
2494 {120 * 256, 1},
2495 {128 * 256, 7},
2496 },
2497 .block_erase = spi_erase_at45db_sector
2498 }, {
2499 .eraseblocks = { {256 * 1024, 1} },
2500 .block_erase = spi_erase_at45db_chip,
2501 }
2502 },
2503 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2504 .printlock = spi_prettyprint_status_register_at45db,
2505 /* granularity will be set by the probing function. */
2506 .write = spi_write_at45db,
2507 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002509 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002511 {
2512 .vendor = "Atmel",
2513 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002514 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002516 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 .total_size = 512 /* or 528, determined from status register */,
2518 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002519 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2521 .feature_bits = FEATURE_OTP,
2522 .tested = TEST_OK_PREW,
2523 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {256, 2048} },
2529 .block_erase = spi_erase_at45db_page,
2530 }, {
2531 .eraseblocks = { {8 * 256, 2048/8} },
2532 .block_erase = spi_erase_at45db_block,
2533 }, {
2534 .eraseblocks = {
2535 {8 * 256, 1},
2536 {248 * 256, 1},
2537 {256 * 256, 7},
2538 },
2539 .block_erase = spi_erase_at45db_sector
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_erase_at45db_chip,
2543 }
2544 },
2545 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2546 .printlock = spi_prettyprint_status_register_at45db,
2547 /* granularity will be set by the probing function. */
2548 .write = spi_write_at45db,
2549 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2550 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002551 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 {
2554 .vendor = "Atmel",
2555 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 .total_size = 1024 /* or 1056, determined from status register */,
2560 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002561 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2563 .feature_bits = FEATURE_OTP,
2564 .tested = TEST_UNTESTED,
2565 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {256, 4096} },
2571 .block_erase = spi_erase_at45db_page,
2572 }, {
2573 .eraseblocks = { {8 * 256, 4096/8} },
2574 .block_erase = spi_erase_at45db_block,
2575 }, {
2576 .eraseblocks = {
2577 {8 * 256, 1},
2578 {248 * 256, 1},
2579 {256 * 256, 15},
2580 },
2581 .block_erase = spi_erase_at45db_sector
2582 }, {
2583 .eraseblocks = { {1024 * 1024, 1} },
2584 .block_erase = spi_erase_at45db_chip,
2585 }
2586 },
2587 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2588 .printlock = spi_prettyprint_status_register_at45db,
2589 /* granularity will be set by the probing function. */
2590 .write = spi_write_at45db,
2591 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002592 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002593 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 {
2596 .vendor = "Atmel",
2597 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 .total_size = 2048 /* or 2112, determined from status register */,
2602 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002603 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002604 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2605 .feature_bits = FEATURE_OTP,
2606 .tested = TEST_OK_PREW,
2607 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {512, 4096} },
2613 .block_erase = spi_erase_at45db_page,
2614 }, {
2615 .eraseblocks = { {8 * 512, 4096/8} },
2616 .block_erase = spi_erase_at45db_block,
2617 }, {
2618 .eraseblocks = {
2619 {8 * 512, 1},
2620 {248 * 512, 1},
2621 {256 * 512, 15},
2622 },
2623 .block_erase = spi_erase_at45db_sector
2624 }, {
2625 .eraseblocks = { {2048 * 1024, 1} },
2626 .block_erase = spi_erase_at45db_chip,
2627 }
2628 },
2629 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2630 .printlock = spi_prettyprint_status_register_at45db,
2631 /* granularity will be set by the probing function. */
2632 .write = spi_write_at45db,
2633 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002634 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002635 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 {
2638 .vendor = "Atmel",
2639 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002641 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002642 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 .total_size = 4224 /* No power of two sizes */,
2644 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002645 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002646 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2647 .feature_bits = FEATURE_OTP,
2648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002650 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002651 .block_erasers =
2652 {
2653 {
2654 .eraseblocks = { {528, 8192} },
2655 .block_erase = spi_erase_at45db_page,
2656 }, {
2657 .eraseblocks = { {8 * 528, 8192/8} },
2658 .block_erase = spi_erase_at45db_block,
2659 }, /* Although the datasheets describes sectors (which can be write protected)
2660 * there seems to be no erase functions for them.
2661 {
2662 .eraseblocks = {
2663 {8 * 528, 1},
2664 {120 * 528, 1},
2665 {128 * 528, 63},
2666 },
2667 .block_erase = spi_erase_at45db_sector
2668 }, */ {
2669 .eraseblocks = { {4224 * 1024, 1} },
2670 .block_erase = spi_erase_at45db_chip,
2671 }
2672 },
2673 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2674 .gran = write_gran_528bytes,
2675 .write = spi_write_at45db,
2676 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002678 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 {
2681 .vendor = "Atmel",
2682 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002686 .total_size = 4096 /* or 4224, determined from status register */,
2687 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002688 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002689 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002690 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 .tested = TEST_UNTESTED,
2692 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002693 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .block_erasers =
2695 {
2696 {
2697 .eraseblocks = { {512, 8192} },
2698 .block_erase = spi_erase_at45db_page,
2699 }, {
2700 .eraseblocks = { {8 * 512, 8192/8} },
2701 .block_erase = spi_erase_at45db_block,
2702 }, {
2703 .eraseblocks = {
2704 {8 * 512, 1},
2705 {120 * 512, 1},
2706 {128 * 512, 63},
2707 },
2708 .block_erase = spi_erase_at45db_sector
2709 }, {
2710 .eraseblocks = { {4096 * 1024, 1} },
2711 .block_erase = spi_erase_at45db_chip,
2712 }
2713 },
2714 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2715 .printlock = spi_prettyprint_status_register_at45db,
2716 /* granularity will be set by the probing function. */
2717 .write = spi_write_at45db,
2718 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2719 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2720 },
2721
2722 {
2723 .vendor = "Atmel",
2724 .name = "AT45DB321E",
2725 .bustype = BUS_SPI,
2726 .manufacture_id = ATMEL_ID,
2727 .model_id = ATMEL_AT45DB321C,
2728 .total_size = 4096 /* or 4224, determined from status register */,
2729 .page_size = 512 /* or 528, determined from status register */,
2730 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2731 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2732 .feature_bits = FEATURE_OTP,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_at45db,
2735 .probe_timing = TIMING_ZERO,
2736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {512, 8192} },
2740 .block_erase = spi_erase_at45db_page,
2741 }, {
2742 .eraseblocks = { {8 * 512, 8192/8} },
2743 .block_erase = spi_erase_at45db_block,
2744 }, {
2745 .eraseblocks = {
2746 {8 * 512, 1},
2747 {120 * 512, 1},
2748 {128 * 512, 63},
2749 },
2750 .block_erase = spi_erase_at45db_sector
2751 }, {
2752 .eraseblocks = { {4096 * 1024, 1} },
2753 .block_erase = spi_erase_at45db_chip,
2754 }
2755 },
2756 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2757 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2758 /* granularity will be set by the probing function. */
2759 .write = spi_write_at45db,
2760 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2761 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002762 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 {
2765 .vendor = "Atmel",
2766 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 .total_size = 8192 /* or 8448, determined from status register */,
2771 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = { {1024, 8192} },
2782 .block_erase = spi_erase_at45db_page,
2783 }, {
2784 .eraseblocks = { {8 * 1024, 8192/8} },
2785 .block_erase = spi_erase_at45db_block,
2786 }, {
2787 .eraseblocks = {
2788 {8 * 1024, 1},
2789 {248 * 1024, 1},
2790 {256 * 1024, 31},
2791 },
2792 .block_erase = spi_erase_at45db_sector
2793 }, {
2794 .eraseblocks = { {8192 * 1024, 1} },
2795 .block_erase = spi_erase_at45db_chip,
2796 }
2797 },
2798 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2799 .printlock = spi_prettyprint_status_register_at45db,
2800 /* granularity will be set by the probing function. */
2801 .write = spi_write_at45db,
2802 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002803 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002804 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 {
2807 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002808 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002809 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002810 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002811 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002812 .total_size = 64,
2813 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002815 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {64 * 1024, 1} },
2822 .block_erase = erase_chip_block_jedec,
2823 }
2824 },
Sean Nelson35727f72010-01-28 23:55:12 +00002825 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002828 },
2829
2830 {
2831 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002834 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .total_size = 256,
2837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002838 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {16 * 1024, 1},
2847 {8 * 1024, 2},
2848 {96 * 1024, 1},
2849 {128 * 1024, 1},
2850 },
2851 .block_erase = erase_sector_jedec,
2852 }, {
2853 .eraseblocks = { {256 * 1024, 1} },
2854 .block_erase = erase_chip_block_jedec,
2855 }
2856 },
Sean Nelson35727f72010-01-28 23:55:12 +00002857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002859 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002860 },
2861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002862 {
2863 .vendor = "Atmel",
2864 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002866 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002867 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .total_size = 256,
2869 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002870 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002871 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = {
2878 {128 * 1024, 1},
2879 {96 * 1024, 1},
2880 {8 * 1024, 2},
2881 {16 * 1024, 1},
2882 },
2883 .block_erase = erase_sector_jedec,
2884 }, {
2885 .eraseblocks = { {256 * 1024, 1} },
2886 .block_erase = erase_chip_block_jedec,
2887 }
2888 },
Sean Nelson35727f72010-01-28 23:55:12 +00002889 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002891 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002892 },
2893
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002894 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002895 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002896 .name = "AT49(H)F010",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F010,
2900 .total_size = 128,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_OK_PREW,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {128 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 },
2913 .printlock = printlock_at49f,
2914 .write = write_jedec_1,
2915 .read = read_memmapped,
2916 .voltage = {4500, 5500},
2917 },
2918
2919 {
2920 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002921 .name = "AT49F020",
2922 .bustype = BUS_PARALLEL,
2923 .manufacture_id = ATMEL_ID,
2924 .model_id = ATMEL_AT49F020,
2925 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002926 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002927 .feature_bits = FEATURE_EITHER_RESET,
2928 .tested = TEST_OK_PRE,
2929 .probe = probe_jedec,
2930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 /* Chip features an optional permanent write protection
2938 * of the first 8 kB. The erase function is the same as
2939 * above, but 00000H to 01FFFH will not be erased.
2940 * FIXME: add another eraser when partial erasers are
2941 * supported.
2942 */
2943 },
2944 .printlock = printlock_at49f,
2945 .write = write_jedec_1,
2946 .read = read_memmapped,
2947 .voltage = {4500, 5500},
2948 },
2949
2950 {
2951 .vendor = "Atmel",
2952 .name = "AT49F040",
2953 .bustype = BUS_PARALLEL,
2954 .manufacture_id = ATMEL_ID,
2955 .model_id = ATMEL_AT49F040,
2956 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002957 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002958 .feature_bits = FEATURE_EITHER_RESET,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_jedec,
2961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = { {512 * 1024, 1} },
2966 .block_erase = erase_chip_block_jedec,
2967 }
2968 /* Chip features an optional permanent write protection
2969 * of the first 16 kB. The erase function is the same as
2970 * above, but 00000H to 03FFFH will not be erased.
2971 * FIXME: add another eraser when partial erasers are
2972 * supported.
2973 */
2974 },
2975 .printlock = printlock_at49f,
2976 .write = write_jedec_1,
2977 .read = read_memmapped,
2978 .voltage = {4500, 5500},
2979 },
2980
2981 {
2982 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002983 .name = "AT49F080",
2984 .bustype = BUS_PARALLEL,
2985 .manufacture_id = ATMEL_ID,
2986 .model_id = ATMEL_AT49F080,
2987 .total_size = 1024,
2988 .page_size = 0, /* unused */
2989 .feature_bits = FEATURE_EITHER_RESET,
2990 .tested = TEST_UNTESTED,
2991 .probe = probe_jedec,
2992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2993 .block_erasers =
2994 {
2995 {
2996 .eraseblocks = { {1024 * 1024, 1} },
2997 .block_erase = erase_chip_block_jedec,
2998 }
2999 /* Chip features an optional permanent write protection
3000 * of the first 16 kB. The erase function is the same as
3001 * above, but 00000H to 03FFFH will not be erased.
3002 * FIXME: add another eraser when partial erasers are
3003 * supported.
3004 */
3005 },
3006 .printlock = printlock_at49f,
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
3009 .voltage = {4500, 5500},
3010 },
3011
3012 {
3013 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3014 .vendor = "Atmel",
3015 .name = "AT49F080T",
3016 .bustype = BUS_PARALLEL,
3017 .manufacture_id = ATMEL_ID,
3018 .model_id = ATMEL_AT49F080T,
3019 .total_size = 1024,
3020 .page_size = 0, /* unused */
3021 .feature_bits = FEATURE_EITHER_RESET,
3022 .tested = TEST_UNTESTED,
3023 .probe = probe_jedec,
3024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3025 .block_erasers =
3026 {
3027 {
3028 .eraseblocks = { {1024 * 1024, 1} },
3029 .block_erase = erase_chip_block_jedec,
3030 }
3031 /* Chip features an optional permanent write protection
3032 * of the first 16 kB. The erase function is the same as
3033 * above, but FC000H to FFFFFH will not be erased.
3034 * FIXME: add another eraser when partial erasers are
3035 * supported.
3036 */
3037 },
3038 .printlock = printlock_at49f,
3039 .write = write_jedec_1,
3040 .read = read_memmapped,
3041 .voltage = {4500, 5500},
3042 },
3043
3044 {
3045 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003046 .name = "AT49LH002",
3047 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3048 .manufacture_id = ATMEL_ID,
3049 .model_id = ATMEL_AT49LH002,
3050 .total_size = 256,
3051 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003052 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003053 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003054 .probe = probe_82802ab,
3055 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003065 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003070 .block_erase = erase_block_82802ab,
3071 },
3072 },
3073 .printlock = printlock_regspace2_block_eraser_0,
3074 .unlock = unlock_regspace2_block_eraser_0,
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
3081 .vendor = "Atmel",
3082 .name = "AT49LH00B4",
3083 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3084 .manufacture_id = ATMEL_ID,
3085 .model_id = ATMEL_AT49LH00B4,
3086 .total_size = 512,
3087 .page_size = 0, /* unused */
3088 .feature_bits = FEATURE_REGISTERMAP,
3089 .tested = TEST_UNTESTED,
3090 .probe = probe_82802ab,
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = {
3096 {8 * 1024, 2},
3097 {16 * 1024, 1},
3098 {32 * 1024, 1},
3099 {64 * 1024, 7},
3100 },
3101 .block_erase = NULL, /* TODO: Implement. */
3102 }, {
3103 .eraseblocks = {
3104 {64 * 1024, 8},
3105 },
3106 .block_erase = erase_block_82802ab,
3107 },
3108 },
3109 .printlock = printlock_regspace2_block_eraser_0,
3110 .unlock = unlock_regspace2_block_eraser_0,
3111 .write = write_82802ab,
3112 .read = read_memmapped,
3113 .voltage = {3000, 3600},
3114 },
3115
3116 {
3117 .vendor = "Atmel",
3118 .name = "AT49LH004",
3119 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3120 .manufacture_id = ATMEL_ID,
3121 .model_id = ATMEL_AT49LH004,
3122 .total_size = 512,
3123 .page_size = 0, /* unused */
3124 .feature_bits = FEATURE_REGISTERMAP,
3125 .tested = TEST_UNTESTED,
3126 .probe = probe_82802ab,
3127 .probe_timing = TIMING_ZERO,
3128 .block_erasers =
3129 {
3130 {
3131 .eraseblocks = {
3132 {64 * 1024, 7},
3133 {32 * 1024, 1},
3134 {8 * 1024, 2},
3135 {16 * 1024, 1},
3136 },
3137 .block_erase = erase_block_82802ab,
3138 }, {
3139 .eraseblocks = {
3140 {64 * 1024, 8},
3141 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003142 .block_erase = NULL, /* TODO: Implement. */
3143 },
3144 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003145 .printlock = printlock_regspace2_block_eraser_0,
3146 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 .write = write_82802ab,
3148 .read = read_memmapped,
3149 .voltage = {3000, 3600},
3150 },
3151
3152 {
Andrew Morganca081462011-09-13 22:05:44 +00003153 .vendor = "Catalyst",
3154 .name = "CAT28F512",
3155 .bustype = BUS_PARALLEL,
3156 .manufacture_id = CATALYST_ID,
3157 .model_id = CATALYST_CAT28F512,
3158 .total_size = 64,
3159 .page_size = 0, /* unused */
3160 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003161 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003162 .probe = probe_jedec, /* FIXME! */
3163 .probe_timing = TIMING_ZERO,
3164 .block_erasers =
3165 {
3166 {
3167 .eraseblocks = { {64 * 1024, 1} },
3168 .block_erase = NULL, /* TODO */
3169 },
3170 },
3171 .write = NULL, /* TODO */
3172 .read = read_memmapped,
3173 .voltage = {4500, 5500},
3174 },
3175
3176 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003177 .vendor = "Bright",
3178 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003179 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003180 .manufacture_id = BRIGHT_ID,
3181 .model_id = BRIGHT_BM29F040,
3182 .total_size = 512,
3183 .page_size = 64 * 1024,
3184 .feature_bits = FEATURE_EITHER_RESET,
3185 .tested = TEST_OK_PR,
3186 .probe = probe_jedec,
3187 .probe_timing = TIMING_ZERO,
3188 .block_erasers =
3189 {
3190 {
3191 .eraseblocks = { {64 * 1024, 8} },
3192 .block_erase = erase_sector_jedec,
3193 }, {
3194 .eraseblocks = { {512 * 1024, 1} },
3195 .block_erase = erase_chip_block_jedec,
3196 },
3197 },
3198 .write = write_jedec_1,
3199 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003200 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003201 },
3202
3203 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003204 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003205 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003206 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003207 .manufacture_id = ESMT_ID,
3208 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003209 .total_size = 256,
3210 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003211 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003212 .tested = TEST_UNTESTED,
3213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003215 .block_erasers =
3216 {
3217 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003218 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003219 {128 * 1024, 1},
3220 {96 * 1024, 1},
3221 {8 * 1024, 2},
3222 {16 * 1024, 1},
3223 },
3224 .block_erase = erase_sector_jedec,
3225 }, {
3226 .eraseblocks = { {256 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 }
3229 },
Sean Nelson35727f72010-01-28 23:55:12 +00003230 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003233 },
3234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003235 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003236 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003237 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003238 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003239 .manufacture_id = ESMT_ID,
3240 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003241 .total_size = 1024,
3242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003243 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003244 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003245 .probe = probe_spi_rdid,
3246 .probe_timing = TIMING_ZERO,
3247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = { {4 * 1024, 256} },
3251 .block_erase = spi_block_erase_20,
3252 }, {
3253 .eraseblocks = { {64 * 1024, 16} },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {1024 * 1024, 1} },
3257 .block_erase = spi_block_erase_60,
3258 }, {
3259 .eraseblocks = { {1024 * 1024, 1} },
3260 .block_erase = spi_block_erase_c7,
3261 }
3262 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003263 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003264 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003265 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003266 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003267 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003268 },
3269
3270 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003271 .vendor = "ESMT",
3272 .name = "F25L32PA",
3273 .bustype = BUS_SPI,
3274 .manufacture_id = ESMT_ID,
3275 .model_id = ESMT_F25L32PA,
3276 .total_size = 4096,
3277 .page_size = 256,
3278 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3279 .tested = TEST_UNTESTED,
3280 .probe = probe_spi_rdid,
3281 .probe_timing = TIMING_ZERO,
3282 .block_erasers =
3283 {
3284 {
3285 .eraseblocks = { {4 * 1024, 1024} },
3286 .block_erase = spi_block_erase_20,
3287 }, {
3288 .eraseblocks = { {64 * 1024, 64} },
3289 .block_erase = spi_block_erase_d8,
3290 }, {
3291 .eraseblocks = { {4 * 1024 * 1024, 1} },
3292 .block_erase = spi_block_erase_60,
3293 }, {
3294 .eraseblocks = { {4 * 1024 * 1024, 1} },
3295 .block_erase = spi_block_erase_c7,
3296 }
3297 },
3298 .printlock = spi_prettyprint_status_register_bp2_bpl,
3299 .unlock = spi_disable_blockprotect,
3300 .write = spi_chip_write_256,
3301 .read = spi_chip_read,
3302 .voltage = {2700, 3600},
3303 },
3304
3305 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003306 .vendor = "Eon",
3307 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003308 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003309 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003310 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003311 .total_size = 64,
3312 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003313 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003314 .tested = TEST_UNTESTED,
3315 .probe = probe_spi_rdid,
3316 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = {
3321 {4 * 1024, 2},
3322 {8 * 1024, 1},
3323 {16 * 1024, 1},
3324 {32 * 1024, 1},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {64 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003334 .write = spi_chip_write_256,
3335 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
3341 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .total_size = 64,
3346 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = {
3355 {32 * 1024, 1},
3356 {16 * 1024, 1},
3357 {8 * 1024, 1},
3358 {4 * 1024, 2},
3359 },
3360 .block_erase = spi_block_erase_d8,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_c7,
3364 }
3365 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003368 .write = spi_chip_write_256,
3369 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003370 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003371 },
3372
3373 {
3374 .vendor = "Eon",
3375 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003376 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003377 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003378 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003379 .total_size = 128,
3380 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003381 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003382 .tested = TEST_UNTESTED,
3383 .probe = probe_spi_rdid,
3384 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {4 * 1024, 2},
3390 {8 * 1024, 1},
3391 {16 * 1024, 1},
3392 {32 * 1024, 3},
3393 },
3394 .block_erase = spi_block_erase_d8,
3395 }, {
3396 .eraseblocks = { {128 * 1024, 1} },
3397 .block_erase = spi_block_erase_c7,
3398 }
3399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003400 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003401 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003402 .write = spi_chip_write_256,
3403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003404 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003405 },
3406
3407 {
3408 .vendor = "Eon",
3409 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003410 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003411 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003412 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .total_size = 128,
3414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003415 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003416 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003417 .probe = probe_spi_rdid,
3418 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003419 .block_erasers =
3420 {
3421 {
3422 .eraseblocks = {
3423 {32 * 1024, 3},
3424 {16 * 1024, 1},
3425 {8 * 1024, 1},
3426 {4 * 1024, 2},
3427 },
3428 .block_erase = spi_block_erase_d8,
3429 }, {
3430 .eraseblocks = { {128 * 1024, 1} },
3431 .block_erase = spi_block_erase_c7,
3432 }
3433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003435 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003436 .write = spi_chip_write_256,
3437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003438 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003439 },
3440
3441 {
3442 .vendor = "Eon",
3443 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003444 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003445 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003446 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003447 .total_size = 256,
3448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003449 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003450 .tested = TEST_UNTESTED,
3451 .probe = probe_spi_rdid,
3452 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003453 .block_erasers =
3454 {
3455 {
3456 .eraseblocks = {
3457 {4 * 1024, 2},
3458 {8 * 1024, 1},
3459 {16 * 1024, 1},
3460 {32 * 1024, 1},
3461 {64 * 1024, 3}
3462 },
3463 .block_erase = spi_block_erase_d8,
3464 }, {
3465 .eraseblocks = { {256 * 1024, 1} },
3466 .block_erase = spi_block_erase_c7,
3467 }
3468 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003469 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003470 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003471 .write = spi_chip_write_256,
3472 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003473 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003474 },
3475
3476 {
3477 .vendor = "Eon",
3478 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003479 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003481 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003482 .total_size = 256,
3483 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003484 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003485 .tested = TEST_UNTESTED,
3486 .probe = probe_spi_rdid,
3487 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003488 .block_erasers =
3489 {
3490 {
3491 .eraseblocks = {
3492 {64 * 1024, 3},
3493 {32 * 1024, 1},
3494 {16 * 1024, 1},
3495 {8 * 1024, 1},
3496 {4 * 1024, 2},
3497 },
3498 .block_erase = spi_block_erase_d8,
3499 }, {
3500 .eraseblocks = { {256 * 1024, 1} },
3501 .block_erase = spi_block_erase_c7,
3502 }
3503 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003505 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003506 .write = spi_chip_write_256,
3507 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003509 },
3510
3511 {
3512 .vendor = "Eon",
3513 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003514 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003515 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003516 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003517 .total_size = 512,
3518 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003519 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003520 .tested = TEST_UNTESTED,
3521 .probe = probe_spi_rdid,
3522 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003523 .block_erasers =
3524 {
3525 {
3526 .eraseblocks = {
3527 {4 * 1024, 2},
3528 {8 * 1024, 1},
3529 {16 * 1024, 1},
3530 {32 * 1024, 1},
3531 {64 * 1024, 7}
3532 },
3533 .block_erase = spi_block_erase_d8,
3534 }, {
3535 .eraseblocks = { {512 * 1024, 1} },
3536 .block_erase = spi_block_erase_c7,
3537 }
3538 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003540 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003541 .write = spi_chip_write_256,
3542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003543 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003544 },
3545
3546 {
3547 .vendor = "Eon",
3548 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003549 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003551 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003552 .total_size = 512,
3553 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003554 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003555 .tested = TEST_UNTESTED,
3556 .probe = probe_spi_rdid,
3557 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003558 .block_erasers =
3559 {
3560 {
3561 .eraseblocks = {
3562 {64 * 1024, 7},
3563 {32 * 1024, 1},
3564 {16 * 1024, 1},
3565 {8 * 1024, 1},
3566 {4 * 1024, 2},
3567 },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {512 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003575 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003576 .write = spi_chip_write_256,
3577 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 1024,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 15}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
3612 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 1024,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 15},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {1024 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
3647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003648 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003654 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003655 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003656 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003657 .total_size = 2048,
3658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003659 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = {
3667 {4 * 1024, 2},
3668 {8 * 1024, 1},
3669 {16 * 1024, 1},
3670 {32 * 1024, 1},
3671 {64 * 1024, 31},
3672 },
3673 .block_erase = spi_block_erase_d8,
3674 }, {
3675 .eraseblocks = { {2 * 1024 * 1024, 1} },
3676 .block_erase = spi_block_erase_c7,
3677 }
3678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003680 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003681 .write = spi_chip_write_256,
3682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003683 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003684 },
3685
3686 {
3687 .vendor = "Eon",
3688 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003689 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003691 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .total_size = 2048,
3693 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003694 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003695 .tested = TEST_UNTESTED,
3696 .probe = probe_spi_rdid,
3697 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003698 .block_erasers =
3699 {
3700 {
3701 .eraseblocks = {
3702 {64 * 1024, 31},
3703 {32 * 1024, 1},
3704 {16 * 1024, 1},
3705 {8 * 1024, 1},
3706 {4 * 1024, 2},
3707 },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {2 * 1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_c7,
3712 }
3713 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003714 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003715 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .write = spi_chip_write_256,
3717 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003718 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003719 },
3720
3721 {
3722 .vendor = "Eon",
3723 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003724 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003725 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003726 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003727 .total_size = 4096,
3728 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003729 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003730 .tested = TEST_UNTESTED,
3731 .probe = probe_spi_rdid,
3732 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003733 .block_erasers =
3734 {
3735 {
3736 .eraseblocks = {
3737 {4 * 1024, 2},
3738 {8 * 1024, 1},
3739 {16 * 1024, 1},
3740 {32 * 1024, 1},
3741 {64 * 1024, 63},
3742 },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_c7,
3747 }
3748 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003749 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003750 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003751 .write = spi_chip_write_256,
3752 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003753 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003754 },
3755
3756 {
3757 .vendor = "Eon",
3758 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003759 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003761 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003762 .total_size = 4096,
3763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003764 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003765 .tested = TEST_UNTESTED,
3766 .probe = probe_spi_rdid,
3767 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003768 .block_erasers =
3769 {
3770 {
3771 .eraseblocks = {
3772 {64 * 1024, 63},
3773 {32 * 1024, 1},
3774 {16 * 1024, 1},
3775 {8 * 1024, 1},
3776 {4 * 1024, 2},
3777 },
3778 .block_erase = spi_block_erase_d8,
3779 }, {
3780 .eraseblocks = { {4 * 1024 * 1024, 1} },
3781 .block_erase = spi_block_erase_c7,
3782 }
3783 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003786 .write = spi_chip_write_256,
3787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003788 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 },
3790
3791 {
3792 .vendor = "Eon",
3793 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 8192,
3798 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 {64 * 1024, 127},
3812 },
3813 .block_erase = spi_block_erase_d8,
3814 }, {
3815 .eraseblocks = { {8 * 1024 * 1024, 1} },
3816 .block_erase = spi_block_erase_c7,
3817 }
3818 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .write = spi_chip_write_256,
3822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003824 },
3825
3826 {
3827 .vendor = "Eon",
3828 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003831 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003832 .total_size = 8192,
3833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003834 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003835 .tested = TEST_UNTESTED,
3836 .probe = probe_spi_rdid,
3837 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003838 .block_erasers =
3839 {
3840 {
3841 .eraseblocks = {
3842 {64 * 1024, 127},
3843 {32 * 1024, 1},
3844 {16 * 1024, 1},
3845 {8 * 1024, 1},
3846 {4 * 1024, 2},
3847 },
3848 .block_erase = spi_block_erase_d8,
3849 }, {
3850 .eraseblocks = { {8 * 1024 * 1024, 1} },
3851 .block_erase = spi_block_erase_c7,
3852 }
3853 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003854 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003855 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003856 .write = spi_chip_write_256,
3857 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003858 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003859 },
3860
3861 {
3862 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003864 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003865 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003866 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003867 .total_size = 64,
3868 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003869 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003870 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .probe = probe_spi_rdid,
3872 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003873 .block_erasers =
3874 {
3875 {
3876 .eraseblocks = { {4 * 1024, 16} },
3877 .block_erase = spi_block_erase_20,
3878 }, {
3879 .eraseblocks = { {32 * 1024, 2} },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {32 * 1024, 2} },
3883 .block_erase = spi_block_erase_52,
3884 }, {
3885 .eraseblocks = { {64 * 1024, 1} },
3886 .block_erase = spi_block_erase_60,
3887 }, {
3888 .eraseblocks = { {64 * 1024, 1} },
3889 .block_erase = spi_block_erase_c7,
3890 }
3891 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003892 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003893 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003894 .write = spi_chip_write_256,
3895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003896 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003897 },
3898
3899 {
3900 .vendor = "Eon",
3901 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003902 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003903 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003904 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003905 .total_size = 128,
3906 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003907 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003908 .tested = TEST_UNTESTED,
3909 .probe = probe_spi_rdid,
3910 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003911 .block_erasers =
3912 {
3913 {
3914 .eraseblocks = { {4 * 1024, 32} },
3915 .block_erase = spi_block_erase_20,
3916 }, {
3917 .eraseblocks = { {32 * 1024, 4} },
3918 .block_erase = spi_block_erase_d8,
3919 }, {
3920 .eraseblocks = { {32 * 1024, 4} },
3921 .block_erase = spi_block_erase_52,
3922 }, {
3923 .eraseblocks = { {128 * 1024, 1} },
3924 .block_erase = spi_block_erase_60,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003932 .write = spi_chip_write_256,
3933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003934 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003935 },
3936
3937 {
3938 .vendor = "Eon",
3939 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003943 .total_size = 256,
3944 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = { {4 * 1024, 64} },
3953 .block_erase = spi_block_erase_20,
3954 }, {
3955 .eraseblocks = { {64 * 1024, 4} },
3956 .block_erase = spi_block_erase_d8,
3957 }, {
3958 .eraseblocks = { {64 * 1024, 4} },
3959 .block_erase = spi_block_erase_52,
3960 }, {
3961 .eraseblocks = { {256 * 1024, 1} },
3962 .block_erase = spi_block_erase_60,
3963 }, {
3964 .eraseblocks = { {256 * 1024, 1} },
3965 .block_erase = spi_block_erase_c7,
3966 }
3967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003969 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003970 .write = spi_chip_write_256,
3971 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003972 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003973 },
3974
3975 {
3976 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003977 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003978 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003979 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003980 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003981 .total_size = 512,
3982 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003983 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003984 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003985 .probe = probe_spi_rdid,
3986 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003987 .block_erasers =
3988 {
3989 {
Sean Nelson54596372010-01-09 05:30:14 +00003990 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003991 .block_erase = spi_block_erase_20,
3992 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003993 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003994 .block_erase = spi_block_erase_d8,
3995 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003996 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003997 .block_erase = spi_block_erase_60,
3998 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003999 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004000 .block_erase = spi_block_erase_c7,
4001 },
4002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004004 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004005 .write = spi_chip_write_256,
4006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004007 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004008 },
4009
4010 {
4011 .vendor = "Eon",
4012 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004013 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004015 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004016 .total_size = 1024,
4017 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004018 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004020 .probe = probe_spi_rdid,
4021 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .block_erasers =
4023 {
4024 {
4025 .eraseblocks = { {4 * 1024, 256} },
4026 .block_erase = spi_block_erase_20,
4027 }, {
4028 .eraseblocks = { {64 * 1024, 16} },
4029 .block_erase = spi_block_erase_d8,
4030 }, {
4031 .eraseblocks = { {1024 * 1024, 1} },
4032 .block_erase = spi_block_erase_60,
4033 }, {
4034 .eraseblocks = { {1024 * 1024, 1} },
4035 .block_erase = spi_block_erase_c7,
4036 }
4037 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004038 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004039 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004040 .write = spi_chip_write_256,
4041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004042 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004043 },
4044
4045 {
4046 .vendor = "Eon",
4047 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004048 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004049 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004050 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004051 .total_size = 2048,
4052 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004053 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004055 .probe = probe_spi_rdid,
4056 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004057 .block_erasers =
4058 {
4059 {
4060 .eraseblocks = { {4 * 1024, 512} },
4061 .block_erase = spi_block_erase_20,
4062 }, {
4063 .eraseblocks = { {64 * 1024, 32} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {2 * 1024 * 1024, 1} },
4067 .block_erase = spi_block_erase_60,
4068 }, {
4069 .eraseblocks = { {2 * 1024 * 1024, 1} },
4070 .block_erase = spi_block_erase_c7,
4071 }
4072 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 .write = spi_chip_write_256,
4076 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004077 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004078 },
4079
4080 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .vendor = "Eon",
4082 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004083 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004084 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004085 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004086 .total_size = 4096,
4087 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004088 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = { {4 * 1024, 1024} },
4096 .block_erase = spi_block_erase_20,
4097 }, {
4098 .eraseblocks = { {64 * 1024, 64} },
4099 .block_erase = spi_block_erase_d8,
4100 }, {
4101 .eraseblocks = { {4 * 1024 * 1024, 1} },
4102 .block_erase = spi_block_erase_60,
4103 }, {
4104 .eraseblocks = { {4 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004113 },
4114
4115 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004116 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004117 .name = "EN25F64",
4118 .bustype = BUS_SPI,
4119 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004120 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004121 .total_size = 8192,
4122 .page_size = 256,
4123 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004124 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 2048} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 128} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {8 * 1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {8 * 1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
4147 .voltage = {2700, 3600},
4148 },
4149
4150 {
4151 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004152 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004153 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004154 .manufacture_id = EON_ID_NOPREFIX,
4155 .model_id = EON_EN25Q40,
4156 .total_size = 512,
4157 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004158 /* OTP: 256B total; enter 0x3A */
4159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004160 .tested = TEST_UNTESTED,
4161 .probe = probe_spi_rdid,
4162 .probe_timing = TIMING_ZERO,
4163 .block_erasers =
4164 {
4165 {
4166 .eraseblocks = { {4 * 1024, 128} },
4167 .block_erase = spi_block_erase_20,
4168 }, {
4169 .eraseblocks = { {64 * 1024, 8} },
4170 .block_erase = spi_block_erase_d8,
4171 }, {
4172 .eraseblocks = { {512 * 1024, 1} },
4173 .block_erase = spi_block_erase_60,
4174 }, {
4175 .eraseblocks = { {512 * 1024, 1} },
4176 .block_erase = spi_block_erase_c7,
4177 }
4178 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004180 .unlock = spi_disable_blockprotect,
4181 .write = spi_chip_write_256,
4182 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004183 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004190 .manufacture_id = EON_ID_NOPREFIX,
4191 .model_id = EON_EN25Q80,
4192 .total_size = 1024,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* OTP: 256B total; enter 0x3A */
4195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .tested = TEST_UNTESTED,
4197 .probe = probe_spi_rdid,
4198 .probe_timing = TIMING_ZERO,
4199 .block_erasers =
4200 {
4201 {
4202 .eraseblocks = { {4 * 1024, 256} },
4203 .block_erase = spi_block_erase_20,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 16} },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {1024 * 1024, 1} },
4209 .block_erase = spi_block_erase_60,
4210 }, {
4211 .eraseblocks = { {1024 * 1024, 1} },
4212 .block_erase = spi_block_erase_c7,
4213 }
4214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004216 .unlock = spi_disable_blockprotect,
4217 .write = spi_chip_write_256,
4218 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004219 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004220 },
4221
4222 {
4223 /* Note: EN25D16 is an evil twin which shares the model ID
4224 but has different write protection capabilities */
4225 .vendor = "Eon",
4226 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004227 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25Q16,
4230 .total_size = 2048,
4231 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004232 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004234 .tested = TEST_UNTESTED,
4235 .probe = probe_spi_rdid,
4236 .probe_timing = TIMING_ZERO,
4237 .block_erasers =
4238 {
4239 {
4240 .eraseblocks = { {4 * 1024, 512} },
4241 .block_erase = spi_block_erase_20,
4242 }, {
4243 .eraseblocks = { {64 * 1024, 32} },
4244 .block_erase = spi_block_erase_d8,
4245 }, {
4246 /* not supported by Q16 version */
4247 .eraseblocks = { {64 * 1024, 32} },
4248 .block_erase = spi_block_erase_52,
4249 }, {
4250 .eraseblocks = { {2 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {2 * 1024 * 1024, 1} },
4254 .block_erase = spi_block_erase_c7,
4255 }
4256 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004258 .unlock = spi_disable_blockprotect,
4259 .write = spi_chip_write_256,
4260 .read = spi_chip_read,
4261 .voltage = {2700, 3600},
4262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004267 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004268 .manufacture_id = EON_ID_NOPREFIX,
4269 .model_id = EON_EN25Q32,
4270 .total_size = 4096,
4271 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004272 /* OTP: 512B total; enter 0x3A */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004274 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 1024} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 64} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {4 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {4 * 1024 * 1024, 1} },
4290 .block_erase = spi_block_erase_c7,
4291 }
4292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004294 .unlock = spi_disable_blockprotect,
4295 .write = spi_chip_write_256,
4296 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004297 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004298 },
4299
4300 {
4301 .vendor = "Eon",
4302 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004303 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004304 .manufacture_id = EON_ID_NOPREFIX,
4305 .model_id = EON_EN25Q64,
4306 .total_size = 8192,
4307 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004308 /* OTP: 512B total; enter 0x3A */
4309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004310 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004311 .probe = probe_spi_rdid,
4312 .probe_timing = TIMING_ZERO,
4313 .block_erasers =
4314 {
4315 {
4316 .eraseblocks = { {4 * 1024, 2048} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 128} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { {8 * 1024 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { {8 * 1024 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004330 .unlock = spi_disable_blockprotect,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004333 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004334 },
4335
4336 {
4337 .vendor = "Eon",
4338 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004339 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25Q128,
4342 .total_size = 16384,
4343 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004344 /* OTP: 512B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers =
4350 {
4351 {
4352 .eraseblocks = { {4 * 1024, 4096} },
4353 .block_erase = spi_block_erase_20,
4354 }, {
4355 .eraseblocks = { {64 * 1024, 256} },
4356 .block_erase = spi_block_erase_d8,
4357 }, {
4358 .eraseblocks = { {16 * 1024 * 1024, 1} },
4359 .block_erase = spi_block_erase_60,
4360 }, {
4361 .eraseblocks = { {16 * 1024 * 1024, 1} },
4362 .block_erase = spi_block_erase_c7,
4363 }
4364 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004366 .unlock = spi_disable_blockprotect,
4367 .write = spi_chip_write_256,
4368 .read = spi_chip_read,
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004374 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25QH16,
4377 .total_size = 2048,
4378 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004379 /* supports SFDP */
4380 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004381 /* QPI enable 0x38, disable 0xFF */
4382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004383 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004384 .probe = probe_spi_rdid,
4385 .probe_timing = TIMING_ZERO,
4386 .block_erasers =
4387 {
4388 {
4389 .eraseblocks = { {4 * 1024, 512} },
4390 .block_erase = spi_block_erase_20,
4391 }, {
4392 .eraseblocks = { {64 * 1024, 32} },
4393 .block_erase = spi_block_erase_d8,
4394 }, {
4395 .eraseblocks = { {1024 * 2048, 1} },
4396 .block_erase = spi_block_erase_60,
4397 }, {
4398 .eraseblocks = { {1024 * 2048, 1} },
4399 .block_erase = spi_block_erase_c7,
4400 }
4401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004403 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004404 .write = spi_chip_write_256,
4405 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004406 .voltage = {2700, 3600},
4407 },
4408
4409 {
4410 .vendor = "Eon",
4411 .name = "EN25QH32",
4412 .bustype = BUS_SPI,
4413 .manufacture_id = EON_ID_NOPREFIX,
4414 .model_id = EON_EN25QH32,
4415 .total_size = 4096,
4416 .page_size = 256,
4417 /* supports SFDP */
4418 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004419 /* QPI enable 0x38, disable 0xFF */
4420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004421 .tested = TEST_UNTESTED,
4422 .probe = probe_spi_rdid,
4423 .probe_timing = TIMING_ZERO,
4424 .block_erasers =
4425 {
4426 {
4427 .eraseblocks = { {4 * 1024, 1024} },
4428 .block_erase = spi_block_erase_20,
4429 }, {
4430 .eraseblocks = { {64 * 1024, 64} },
4431 .block_erase = spi_block_erase_d8,
4432 }, {
4433 .eraseblocks = { {1024 * 4096, 1} },
4434 .block_erase = spi_block_erase_60,
4435 }, {
4436 .eraseblocks = { {1024 * 4096, 1} },
4437 .block_erase = spi_block_erase_c7,
4438 }
4439 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004440 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004441 .unlock = spi_disable_blockprotect_bp3_srwd,
4442 .write = spi_chip_write_256,
4443 .read = spi_chip_read,
4444 .voltage = {2700, 3600},
4445 },
4446
4447 {
4448 .vendor = "Eon",
4449 .name = "EN25QH64",
4450 .bustype = BUS_SPI,
4451 .manufacture_id = EON_ID_NOPREFIX,
4452 .model_id = EON_EN25QH64,
4453 .total_size = 8192,
4454 .page_size = 256,
4455 /* supports SFDP */
4456 /* OTP: 512B total; enter 0x3A */
4457 /* QPI enable 0x38, disable 0xFF */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004459 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 2048} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 128} },
4468 .block_erase = spi_block_erase_d8,
4469 }, {
4470 .eraseblocks = { { 8192 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { { 8192 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004478 .unlock = spi_disable_blockprotect_bp3_srwd,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {2700, 3600},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25QH128",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25QH128,
4490 .total_size = 16384,
4491 .page_size = 256,
4492 /* supports SFDP */
4493 /* OTP: 512B total; enter 0x3A */
4494 /* QPI enable 0x38, disable 0xFF */
4495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4496 .tested = TEST_UNTESTED,
4497 .probe = probe_spi_rdid,
4498 .probe_timing = TIMING_ZERO,
4499 .block_erasers = {
4500 {
4501 .eraseblocks = { {4 * 1024, 4096} },
4502 .block_erase = spi_block_erase_20,
4503 }, {
4504 .eraseblocks = { {64 * 1024, 256} },
4505 .block_erase = spi_block_erase_d8,
4506 }, {
4507 .eraseblocks = { { 16384 * 1024, 1} },
4508 .block_erase = spi_block_erase_60,
4509 }, {
4510 .eraseblocks = { { 16384 * 1024, 1} },
4511 .block_erase = spi_block_erase_c7,
4512 }
4513 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004514 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004515 .unlock = spi_disable_blockprotect_bp3_srwd,
4516 .write = spi_chip_write_256,
4517 .read = spi_chip_read,
4518 .voltage = {2700, 3600},
4519 },
4520
4521 {
4522 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004523 .name = "EN25S10",
4524 .bustype = BUS_SPI,
4525 .manufacture_id = EON_ID_NOPREFIX,
4526 .model_id = EON_EN25S10,
4527 .total_size = 128,
4528 .page_size = 256,
4529 /* OTP: 256B total; enter 0x3A */
4530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4531 .tested = TEST_UNTESTED,
4532 .probe = probe_spi_rdid,
4533 .probe_timing = TIMING_ZERO,
4534 .block_erasers = {
4535 {
4536 .eraseblocks = { {4 * 1024, 32} },
4537 .block_erase = spi_block_erase_20,
4538 }, {
4539 .eraseblocks = { {32 * 1024, 4} },
4540 .block_erase = spi_block_erase_52,
4541 }, {
4542 .eraseblocks = { {128 * 1024, 1} },
4543 .block_erase = spi_block_erase_60,
4544 }, {
4545 .eraseblocks = { {128 * 1024, 1} },
4546 .block_erase = spi_block_erase_c7,
4547 }
4548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004549 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004550 .unlock = spi_disable_blockprotect,
4551 .write = spi_chip_write_256,
4552 .read = spi_chip_read,
4553 .voltage = {1650, 1950},
4554 },
4555
4556 {
4557 .vendor = "Eon",
4558 .name = "EN25S20",
4559 .bustype = BUS_SPI,
4560 .manufacture_id = EON_ID_NOPREFIX,
4561 .model_id = EON_EN25S20,
4562 .total_size = 256,
4563 .page_size = 256,
4564 /* OTP: 256B total; enter 0x3A */
4565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4566 .tested = TEST_UNTESTED,
4567 .probe = probe_spi_rdid,
4568 .probe_timing = TIMING_ZERO,
4569 .block_erasers = {
4570 {
4571 .eraseblocks = { {4 * 1024, 64} },
4572 .block_erase = spi_block_erase_20,
4573 }, {
4574 .eraseblocks = { {64 * 1024, 4} },
4575 .block_erase = spi_block_erase_d8,
4576 }, {
4577 .eraseblocks = { {256 * 1024, 1} },
4578 .block_erase = spi_block_erase_60,
4579 }, {
4580 .eraseblocks = { {256 * 1024, 1} },
4581 .block_erase = spi_block_erase_c7,
4582 }
4583 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004584 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004585 .unlock = spi_disable_blockprotect,
4586 .write = spi_chip_write_256,
4587 .read = spi_chip_read,
4588 .voltage = {1650, 1950},
4589 },
4590
4591 {
4592 .vendor = "Eon",
4593 .name = "EN25S40",
4594 .bustype = BUS_SPI,
4595 .manufacture_id = EON_ID_NOPREFIX,
4596 .model_id = EON_EN25S40,
4597 .total_size = 512,
4598 .page_size = 256,
4599 /* OTP: 256B total; enter 0x3A */
4600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4601 .tested = TEST_UNTESTED,
4602 .probe = probe_spi_rdid,
4603 .probe_timing = TIMING_ZERO,
4604 .block_erasers = {
4605 {
4606 .eraseblocks = { {4 * 1024, 128} },
4607 .block_erase = spi_block_erase_20,
4608 }, {
4609 .eraseblocks = { {64 * 1024, 8} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {512 * 1024, 1} },
4613 .block_erase = spi_block_erase_60,
4614 }, {
4615 .eraseblocks = { {512 * 1024, 1} },
4616 .block_erase = spi_block_erase_c7,
4617 }
4618 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004619 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004620 .unlock = spi_disable_blockprotect,
4621 .write = spi_chip_write_256,
4622 .read = spi_chip_read,
4623 .voltage = {1650, 1950},
4624 },
4625
4626 {
4627 .vendor = "Eon",
4628 .name = "EN25S80",
4629 .bustype = BUS_SPI,
4630 .manufacture_id = EON_ID_NOPREFIX,
4631 .model_id = EON_EN25S80,
4632 .total_size = 1024,
4633 .page_size = 256,
4634 /* OTP: 256B total; enter 0x3A */
4635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4636 .tested = TEST_UNTESTED,
4637 .probe = probe_spi_rdid,
4638 .probe_timing = TIMING_ZERO,
4639 .block_erasers = {
4640 {
4641 .eraseblocks = { {4 * 1024, 256} },
4642 .block_erase = spi_block_erase_20,
4643 }, {
4644 .eraseblocks = { {64 * 1024, 16} },
4645 .block_erase = spi_block_erase_d8,
4646 }, {
4647 .eraseblocks = { {1024 * 1024, 1} },
4648 .block_erase = spi_block_erase_60,
4649 }, {
4650 .eraseblocks = { {1024 * 1024, 1} },
4651 .block_erase = spi_block_erase_c7,
4652 }
4653 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004654 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004655 .unlock = spi_disable_blockprotect,
4656 .write = spi_chip_write_256,
4657 .read = spi_chip_read,
4658 .voltage = {1650, 1950},
4659 },
4660
4661 {
4662 .vendor = "Eon",
4663 .name = "EN25S16",
4664 .bustype = BUS_SPI,
4665 .manufacture_id = EON_ID_NOPREFIX,
4666 .model_id = EON_EN25S16,
4667 .total_size = 2048,
4668 .page_size = 256,
4669 /* OTP: 512B total; enter 0x3A */
4670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4671 .tested = TEST_UNTESTED,
4672 .probe = probe_spi_rdid,
4673 .probe_timing = TIMING_ZERO,
4674 .block_erasers = {
4675 {
4676 .eraseblocks = { {4 * 1024, 512} },
4677 .block_erase = spi_block_erase_20,
4678 }, {
4679 .eraseblocks = { {64 * 1024, 32} },
4680 .block_erase = spi_block_erase_52,
4681 }, {
4682 .eraseblocks = { {32 * 1024, 64} },
4683 .block_erase = spi_block_erase_d8,
4684 }, {
4685 .eraseblocks = { {2048 * 1024, 1} },
4686 .block_erase = spi_block_erase_60,
4687 }, {
4688 .eraseblocks = { {2048 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_en25s_wp,
4693 .unlock = spi_disable_blockprotect_bp3_srwd,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read,
4696 .voltage = {1650, 1950},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25S32",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25S32,
4705 .total_size = 4096,
4706 .page_size = 256,
4707 /* OTP: 512B total; enter 0x3A */
4708 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4709 .tested = TEST_UNTESTED,
4710 .probe = probe_spi_rdid,
4711 .probe_timing = TIMING_ZERO,
4712 .block_erasers = {
4713 {
4714 .eraseblocks = { {4 * 1024, 1024} },
4715 .block_erase = spi_block_erase_20,
4716 }, {
4717 .eraseblocks = { {32 * 1024, 128} },
4718 .block_erase = spi_block_erase_52,
4719 }, {
4720 .eraseblocks = { {64 * 1024, 64} },
4721 .block_erase = spi_block_erase_d8,
4722 }, {
4723 .eraseblocks = { {4096 * 1024, 1} },
4724 .block_erase = spi_block_erase_60,
4725 }, {
4726 .eraseblocks = { {4096 * 1024, 1} },
4727 .block_erase = spi_block_erase_c7,
4728 }
4729 },
4730 .printlock = spi_prettyprint_status_register_en25s_wp,
4731 .unlock = spi_disable_blockprotect_bp3_srwd,
4732 .write = spi_chip_write_256,
4733 .read = spi_chip_read,
4734 .voltage = {1650, 1950},
4735 },
4736
4737 {
4738 .vendor = "Eon",
4739 .name = "EN25S64",
4740 .bustype = BUS_SPI,
4741 .manufacture_id = EON_ID_NOPREFIX,
4742 .model_id = EON_EN25S64,
4743 .total_size = 8192,
4744 .page_size = 256,
4745 /* OTP: 512B total; enter 0x3A */
4746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers = {
4751 {
4752 .eraseblocks = { {4 * 1024, 2048} },
4753 .block_erase = spi_block_erase_20,
4754 }, {
4755 .eraseblocks = { {64 * 1024, 128} },
4756 .block_erase = spi_block_erase_d8,
4757 }, {
4758 .eraseblocks = { {8192 * 1024, 1} },
4759 .block_erase = spi_block_erase_60,
4760 }, {
4761 .eraseblocks = { {8192 * 1024, 1} },
4762 .block_erase = spi_block_erase_c7,
4763 }
4764 },
4765 .printlock = spi_prettyprint_status_register_en25s_wp,
4766 .unlock = spi_disable_blockprotect_bp3_srwd,
4767 .write = spi_chip_write_256,
4768 .read = spi_chip_read,
4769 .voltage = {1650, 1950},
4770 },
4771
4772 {
4773 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004774 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004775 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004776 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004777 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004778 .total_size = 128,
4779 .page_size = 128,
4780 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004781 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004782 .probe = probe_jedec,
4783 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4784 .block_erasers =
4785 {
4786 {
4787 .eraseblocks = { {16 * 1024, 8} },
4788 .block_erase = erase_sector_jedec,
4789 },
4790 {
4791 .eraseblocks = { {128 * 1024, 1} },
4792 .block_erase = erase_chip_block_jedec,
4793 },
4794 },
4795 .write = write_jedec_1,
4796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004797 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004798 },
4799
4800 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004801 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004802 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004803 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004804 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004805 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 .total_size = 256,
4807 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004808 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004809 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004811 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004812 .block_erasers =
4813 {
4814 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004816 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004817 {8 * 1024, 2},
4818 {32 * 1024, 1},
4819 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004820 },
4821 .block_erase = erase_sector_jedec,
4822 }, {
4823 .eraseblocks = { {256 * 1024, 1} },
4824 .block_erase = erase_chip_block_jedec,
4825 },
4826 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004829 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004830 },
4831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004833 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004834 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004837 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 .total_size = 256,
4839 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004840 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004841 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004842 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 .block_erasers =
4845 {
4846 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004847 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004848 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004849 {32 * 1024, 1},
4850 {8 * 1024, 2},
4851 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004852 },
4853 .block_erase = erase_sector_jedec,
4854 }, {
4855 .eraseblocks = { {256 * 1024, 1} },
4856 .block_erase = erase_chip_block_jedec,
4857 },
4858 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004859 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004861 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004862 },
4863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004864 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004865 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00004866 .name = "EN29LV040(A)",
4867 .bustype = BUS_PARALLEL,
4868 .manufacture_id = EON_ID,
4869 .model_id = EON_EN29LV040,
4870 .total_size = 512,
4871 .page_size = 4 * 1024,
4872 .tested = TEST_OK_PREW,
4873 .probe = probe_jedec,
4874 .probe_timing = TIMING_ZERO,
4875 .block_erasers =
4876 {
4877 {
4878 .eraseblocks = { {64 * 1024, 8} },
4879 .block_erase = erase_sector_jedec,
4880 },
4881 {
4882 .eraseblocks = { {512 * 1024, 1} },
4883 .block_erase = erase_chip_block_jedec,
4884 },
4885 },
4886 .write = write_jedec_1,
4887 .read = read_memmapped,
4888 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
4889 },
4890
4891 {
4892 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004893 .name = "EN29LV640B",
4894 .bustype = BUS_PARALLEL,
4895 .manufacture_id = EON_ID,
4896 .model_id = EON_EN29LV640B,
4897 .total_size = 8192,
4898 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004899 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004900 .tested = TEST_OK_PREW,
4901 .probe = probe_en29lv640b,
4902 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4903 .block_erasers =
4904 {
4905 {
4906 .eraseblocks = {
4907 {8 * 1024, 8},
4908 {64 * 1024, 127},
4909 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004910 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004911 }, {
4912 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004913 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004914 },
4915 },
4916 .write = write_en29lv640b,
4917 .read = read_memmapped,
4918 .voltage = {2700, 3600},
4919 },
4920
4921 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00004922 .vendor = "Eon",
4923 .name = "EN29GL064(A)B",
4924 .bustype = BUS_PARALLEL,
4925 .manufacture_id = EON_ID,
4926 .model_id = EON_EN29GL064B,
4927 .total_size = 8192,
4928 .page_size = 128 * 1024, /* actual page size is 16 */
4929 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4930 .tested = TEST_UNTESTED,
4931 .probe = probe_jedec_29gl,
4932 .probe_timing = TIMING_ZERO,
4933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = {
4937 {8 * 1024, 8},
4938 {64 * 1024, 127},
4939 },
4940 .block_erase = erase_sector_jedec,
4941 }, {
4942 .eraseblocks = { {8 * 1024 * 1024, 1} },
4943 .block_erase = erase_chip_block_jedec,
4944 },
4945 },
4946 .write = write_jedec_1,
4947 .read = read_memmapped,
4948 .voltage = {2700, 3600},
4949 },
4950
4951 {
4952 .vendor = "Eon",
4953 .name = "EN29GL064(A)T",
4954 .bustype = BUS_PARALLEL,
4955 .manufacture_id = EON_ID,
4956 .model_id = EON_EN29GL064T,
4957 .total_size = 8192,
4958 .page_size = 128 * 1024, /* actual page size is 16 */
4959 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_jedec_29gl,
4962 .probe_timing = TIMING_ZERO,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = {
4967 {64 * 1024, 127},
4968 {8 * 1024, 8},
4969 },
4970 .block_erase = erase_sector_jedec,
4971 }, {
4972 .eraseblocks = { {8 * 1024 * 1024, 1} },
4973 .block_erase = erase_chip_block_jedec,
4974 },
4975 },
4976 .write = write_jedec_1,
4977 .read = read_memmapped,
4978 .voltage = {2700, 3600},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN29GL064H/L",
4984 .bustype = BUS_PARALLEL,
4985 .manufacture_id = EON_ID,
4986 .model_id = EON_EN29GL064HL,
4987 .total_size = 8192,
4988 .page_size = 128 * 1024, /* actual page size is 16 */
4989 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4990 .tested = TEST_UNTESTED,
4991 .probe = probe_jedec_29gl,
4992 .probe_timing = TIMING_ZERO,
4993 .block_erasers =
4994 {
4995 {
4996 .eraseblocks = { {64 * 1024, 128} },
4997 .block_erase = erase_sector_jedec,
4998 }, {
4999 .eraseblocks = { {8 * 1024 * 1024, 1} },
5000 .block_erase = erase_chip_block_jedec,
5001 },
5002 },
5003 .write = write_jedec_1,
5004 .read = read_memmapped,
5005 .voltage = {2700, 3600},
5006 },
5007
5008 {
5009 .vendor = "Eon",
5010 .name = "EN29GL128",
5011 .bustype = BUS_PARALLEL,
5012 .manufacture_id = EON_ID,
5013 .model_id = EON_EN29GL128HL,
5014 .total_size = 16384,
5015 .page_size = 128 * 1024, /* actual page size is 16 */
5016 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5017 .tested = TEST_UNTESTED,
5018 .probe = probe_jedec_29gl,
5019 .probe_timing = TIMING_ZERO,
5020 .block_erasers =
5021 {
5022 {
5023 .eraseblocks = { {128 * 1024, 128} },
5024 .block_erase = erase_sector_jedec,
5025 }, {
5026 .eraseblocks = { {16 * 1024 * 1024, 1} },
5027 .block_erase = erase_chip_block_jedec,
5028 },
5029 },
5030 .write = write_jedec_1,
5031 .read = read_memmapped,
5032 .voltage = {2700, 3600},
5033 },
5034
5035 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005036 .vendor = "Fujitsu",
5037 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005038 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005039 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005040 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005041 .total_size = 512,
5042 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005043 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .tested = TEST_UNTESTED,
5045 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005046 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005047 .block_erasers =
5048 {
5049 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005050 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005051 {16 * 1024, 1},
5052 {8 * 1024, 2},
5053 {32 * 1024, 1},
5054 {64 * 1024, 7},
5055 },
Sean Nelson35727f72010-01-28 23:55:12 +00005056 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005057 }, {
5058 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005059 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005060 },
5061 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005062 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005064 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005065 },
5066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005067 {
5068 .vendor = "Fujitsu",
5069 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005070 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005071 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005072 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005073 .total_size = 512,
5074 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005075 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .tested = TEST_UNTESTED,
5077 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005078 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005079 .block_erasers =
5080 {
5081 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005082 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005083 {64 * 1024, 7},
5084 {32 * 1024, 1},
5085 {8 * 1024, 2},
5086 {16 * 1024, 1},
5087 },
Sean Nelson35727f72010-01-28 23:55:12 +00005088 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005089 }, {
5090 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005091 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005092 },
5093 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005094 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005096 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005097 },
5098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005099 {
Sean Nelson35727f72010-01-28 23:55:12 +00005100 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005101 .vendor = "Fujitsu",
5102 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005103 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005105 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005106 .total_size = 512,
5107 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005108 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005109 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005110 .probe = probe_jedec,
5111 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005112 .block_erasers =
5113 {
5114 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005115 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005116 {16 * 1024, 1},
5117 {8 * 1024, 2},
5118 {32 * 1024, 1},
5119 {64 * 1024, 7},
5120 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005121 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005122 }, {
5123 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005124 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005125 },
5126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005127 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005128 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005129 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005130 },
5131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 {
5133 .vendor = "Fujitsu",
5134 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005135 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005136 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005137 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 .total_size = 512,
5139 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005140 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005141 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005142 .probe = probe_jedec,
5143 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005144 .block_erasers =
5145 {
5146 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005147 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005148 {64 * 1024, 7},
5149 {32 * 1024, 1},
5150 {8 * 1024, 2},
5151 {16 * 1024, 1},
5152 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005153 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005154 }, {
5155 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005156 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005157 },
5158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005159 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005160 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005161 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005162 },
5163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005165 .vendor = "Fujitsu",
5166 .name = "MBM29LV160BE",
5167 .bustype = BUS_PARALLEL,
5168 .manufacture_id = FUJITSU_ID,
5169 .model_id = FUJITSU_MBM29LV160BE,
5170 .total_size = 2 * 1024,
5171 .page_size = 0,
5172 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5173 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005174 .probe = probe_jedec,
5175 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005176 .block_erasers =
5177 {
5178 {
5179 .eraseblocks = {
5180 {16 * 1024, 1},
5181 {8 * 1024, 2},
5182 {32 * 1024, 1},
5183 {64 * 1024, 31},
5184 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005185 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005186 }, {
5187 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005188 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005189 },
5190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005191 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005192 .read = read_memmapped,
5193 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5194 },
5195
5196 {
5197 .vendor = "Fujitsu",
5198 .name = "MBM29LV160TE",
5199 .bustype = BUS_PARALLEL,
5200 .manufacture_id = FUJITSU_ID,
5201 .model_id = FUJITSU_MBM29LV160TE,
5202 .total_size = 2 * 1024,
5203 .page_size = 0,
5204 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5205 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005206 .probe = probe_jedec,
5207 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005208 .block_erasers =
5209 {
5210 {
5211 .eraseblocks = {
5212 {64 * 1024, 31},
5213 {32 * 1024, 1},
5214 {8 * 1024, 2},
5215 {16 * 1024, 1},
5216 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005217 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005218 }, {
5219 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005220 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005221 },
5222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005223 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005224 .read = read_memmapped,
5225 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5226 },
5227
5228 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005229 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005230 .name = "GD25LQ32",
5231 .bustype = BUS_SPI,
5232 .manufacture_id = GIGADEVICE_ID,
5233 .model_id = GIGADEVICE_GD25LQ32,
5234 .total_size = 4096,
5235 .page_size = 256,
5236 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5238 .tested = TEST_OK_PREW,
5239 .probe = probe_spi_rdid,
5240 .probe_timing = TIMING_ZERO,
5241 .block_erasers =
5242 {
5243 {
5244 .eraseblocks = { {4 * 1024, 1024} },
5245 .block_erase = spi_block_erase_20,
5246 }, {
5247 .eraseblocks = { {32 * 1024, 128} },
5248 .block_erase = spi_block_erase_52,
5249 }, {
5250 .eraseblocks = { {64 * 1024, 64} },
5251 .block_erase = spi_block_erase_d8,
5252 }, {
5253 .eraseblocks = { {4 * 1024 * 1024, 1} },
5254 .block_erase = spi_block_erase_60,
5255 }, {
5256 .eraseblocks = { {4 * 1024 * 1024, 1} },
5257 .block_erase = spi_block_erase_c7,
5258 }
5259 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005260 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005261 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5262 .write = spi_chip_write_256,
5263 .read = spi_chip_read,
5264 .voltage = {1700, 1950},
5265 },
5266
5267 {
5268 .vendor = "GigaDevice",
5269 .name = "GD25Q512",
5270 .bustype = BUS_SPI,
5271 .manufacture_id = GIGADEVICE_ID,
5272 .model_id = GIGADEVICE_GD25Q512,
5273 .total_size = 64,
5274 .page_size = 256,
5275 .feature_bits = FEATURE_WRSR_WREN,
5276 .tested = TEST_UNTESTED,
5277 .probe = probe_spi_rdid,
5278 .probe_timing = TIMING_ZERO,
5279 .block_erasers = {
5280 {
5281 .eraseblocks = { {4 * 1024, 16} },
5282 .block_erase = spi_block_erase_20,
5283 }, {
5284 .eraseblocks = { {32 * 1024, 2} },
5285 .block_erase = spi_block_erase_52,
5286 }, {
5287 .eraseblocks = { {64 * 1024, 1} },
5288 .block_erase = spi_block_erase_60,
5289 }, {
5290 .eraseblocks = { {64 * 1024, 1} },
5291 .block_erase = spi_block_erase_c7,
5292 }
5293 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005294 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005295 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5296 .write = spi_chip_write_256,
5297 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5298 .voltage = {2700, 3600},
5299 },
5300
5301 {
5302 .vendor = "GigaDevice",
5303 .name = "GD25Q10",
5304 .bustype = BUS_SPI,
5305 .manufacture_id = GIGADEVICE_ID,
5306 .model_id = GIGADEVICE_GD25Q10,
5307 .total_size = 128,
5308 .page_size = 256,
5309 .feature_bits = FEATURE_WRSR_WREN,
5310 .tested = TEST_UNTESTED,
5311 .probe = probe_spi_rdid,
5312 .probe_timing = TIMING_ZERO,
5313 .block_erasers = {
5314 {
5315 .eraseblocks = { {4 * 1024, 32} },
5316 .block_erase = spi_block_erase_20,
5317 }, {
5318 .eraseblocks = { {32 * 1024, 4} },
5319 .block_erase = spi_block_erase_52,
5320 }, {
5321 .eraseblocks = { {64 * 1024, 2} },
5322 .block_erase = spi_block_erase_d8,
5323 }, {
5324 .eraseblocks = { {128 * 1024, 1} },
5325 .block_erase = spi_block_erase_60,
5326 }, {
5327 .eraseblocks = { {128 * 1024, 1} },
5328 .block_erase = spi_block_erase_c7,
5329 }
5330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005331 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005332 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5333 .write = spi_chip_write_256,
5334 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5335 .voltage = {2700, 3600},
5336 },
5337
5338 {
5339 .vendor = "GigaDevice",
5340 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005341 .bustype = BUS_SPI,
5342 .manufacture_id = GIGADEVICE_ID,
5343 .model_id = GIGADEVICE_GD25Q20,
5344 .total_size = 256,
5345 .page_size = 256,
5346 .feature_bits = FEATURE_WRSR_WREN,
5347 .tested = TEST_UNTESTED,
5348 .probe = probe_spi_rdid,
5349 .probe_timing = TIMING_ZERO,
5350 .block_erasers =
5351 {
5352 {
5353 .eraseblocks = { {4 * 1024, 64} },
5354 .block_erase = spi_block_erase_20,
5355 }, {
5356 .eraseblocks = { {32 * 1024, 8} },
5357 .block_erase = spi_block_erase_52,
5358 }, {
5359 .eraseblocks = { {64 * 1024, 4} },
5360 .block_erase = spi_block_erase_d8,
5361 }, {
5362 .eraseblocks = { {256 * 1024, 1} },
5363 .block_erase = spi_block_erase_60,
5364 }, {
5365 .eraseblocks = { {256 * 1024, 1} },
5366 .block_erase = spi_block_erase_c7,
5367 }
5368 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005369 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005370 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005371 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005372 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005373 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005374 },
5375
5376 {
5377 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005378 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005379 .bustype = BUS_SPI,
5380 .manufacture_id = GIGADEVICE_ID,
5381 .model_id = GIGADEVICE_GD25Q40,
5382 .total_size = 512,
5383 .page_size = 256,
5384 .feature_bits = FEATURE_WRSR_WREN,
5385 .tested = TEST_UNTESTED,
5386 .probe = probe_spi_rdid,
5387 .probe_timing = TIMING_ZERO,
5388 .block_erasers =
5389 {
5390 {
5391 .eraseblocks = { {4 * 1024, 128} },
5392 .block_erase = spi_block_erase_20,
5393 }, {
5394 .eraseblocks = { {32 * 1024, 16} },
5395 .block_erase = spi_block_erase_52,
5396 }, {
5397 .eraseblocks = { {64 * 1024, 8} },
5398 .block_erase = spi_block_erase_d8,
5399 }, {
5400 .eraseblocks = { {512 * 1024, 1} },
5401 .block_erase = spi_block_erase_60,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = spi_block_erase_c7,
5405 }
5406 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005407 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005408 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005409 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005410 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005411 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005412 },
5413
5414 {
5415 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005416 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005417 .bustype = BUS_SPI,
5418 .manufacture_id = GIGADEVICE_ID,
5419 .model_id = GIGADEVICE_GD25Q80,
5420 .total_size = 1024,
5421 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005422 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5424 .tested = TEST_OK_PREW,
5425 .probe = probe_spi_rdid,
5426 .probe_timing = TIMING_ZERO,
5427 .block_erasers =
5428 {
5429 {
5430 .eraseblocks = { {4 * 1024, 256} },
5431 .block_erase = spi_block_erase_20,
5432 }, {
5433 .eraseblocks = { {32 * 1024, 32} },
5434 .block_erase = spi_block_erase_52,
5435 }, {
5436 .eraseblocks = { {64 * 1024, 16} },
5437 .block_erase = spi_block_erase_d8,
5438 }, {
5439 .eraseblocks = { {1024 * 1024, 1} },
5440 .block_erase = spi_block_erase_60,
5441 }, {
5442 .eraseblocks = { {1024 * 1024, 1} },
5443 .block_erase = spi_block_erase_c7,
5444 }
5445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005446 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005447 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005448 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005449 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005450 .voltage = {2700, 3600},
5451 },
5452
5453 {
5454 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005455 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005456 .bustype = BUS_SPI,
5457 .manufacture_id = GIGADEVICE_ID,
5458 .model_id = GIGADEVICE_GD25Q16,
5459 .total_size = 2048,
5460 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005461 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005462 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00005463 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005464 .probe = probe_spi_rdid,
5465 .probe_timing = TIMING_ZERO,
5466 .block_erasers =
5467 {
5468 {
5469 .eraseblocks = { {4 * 1024, 512} },
5470 .block_erase = spi_block_erase_20,
5471 }, {
5472 .eraseblocks = { {32 * 1024, 64} },
5473 .block_erase = spi_block_erase_52,
5474 }, {
5475 .eraseblocks = { {64 * 1024, 32} },
5476 .block_erase = spi_block_erase_d8,
5477 }, {
5478 .eraseblocks = { {2 * 1024 * 1024, 1} },
5479 .block_erase = spi_block_erase_60,
5480 }, {
5481 .eraseblocks = { {2 * 1024 * 1024, 1} },
5482 .block_erase = spi_block_erase_c7,
5483 }
5484 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005485 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005486 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005487 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005488 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005489 .voltage = {2700, 3600},
5490 },
5491
5492 {
5493 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005494 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005495 .bustype = BUS_SPI,
5496 .manufacture_id = GIGADEVICE_ID,
5497 .model_id = GIGADEVICE_GD25Q32,
5498 .total_size = 4096,
5499 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005500 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005502 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005503 .probe = probe_spi_rdid,
5504 .probe_timing = TIMING_ZERO,
5505 .block_erasers =
5506 {
5507 {
5508 .eraseblocks = { {4 * 1024, 1024} },
5509 .block_erase = spi_block_erase_20,
5510 }, {
5511 .eraseblocks = { {32 * 1024, 128} },
5512 .block_erase = spi_block_erase_52,
5513 }, {
5514 .eraseblocks = { {64 * 1024, 64} },
5515 .block_erase = spi_block_erase_d8,
5516 }, {
5517 .eraseblocks = { {4 * 1024 * 1024, 1} },
5518 .block_erase = spi_block_erase_60,
5519 }, {
5520 .eraseblocks = { {4 * 1024 * 1024, 1} },
5521 .block_erase = spi_block_erase_c7,
5522 }
5523 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005524 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005525 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005526 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005527 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005528 .voltage = {2700, 3600},
5529 },
5530
5531 {
5532 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005533 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005534 .bustype = BUS_SPI,
5535 .manufacture_id = GIGADEVICE_ID,
5536 .model_id = GIGADEVICE_GD25Q64,
5537 .total_size = 8192,
5538 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005539 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005541 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005542 .probe = probe_spi_rdid,
5543 .probe_timing = TIMING_ZERO,
5544 .block_erasers =
5545 {
5546 {
5547 .eraseblocks = { {4 * 1024, 2048} },
5548 .block_erase = spi_block_erase_20,
5549 }, {
5550 .eraseblocks = { {32 * 1024, 256} },
5551 .block_erase = spi_block_erase_52,
5552 }, {
5553 .eraseblocks = { {64 * 1024, 128} },
5554 .block_erase = spi_block_erase_d8,
5555 }, {
5556 .eraseblocks = { {8 * 1024 * 1024, 1} },
5557 .block_erase = spi_block_erase_60,
5558 }, {
5559 .eraseblocks = { {8 * 1024 * 1024, 1} },
5560 .block_erase = spi_block_erase_c7,
5561 }
5562 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005563 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005564 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005565 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005566 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005567 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005568 },
5569
5570 {
5571 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005572 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005573 .bustype = BUS_SPI,
5574 .manufacture_id = GIGADEVICE_ID,
5575 .model_id = GIGADEVICE_GD25Q128,
5576 .total_size = 16384,
5577 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005578 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5580 .tested = TEST_UNTESTED,
5581 .probe = probe_spi_rdid,
5582 .probe_timing = TIMING_ZERO,
5583 .block_erasers =
5584 {
5585 {
5586 .eraseblocks = { {4 * 1024, 4096} },
5587 .block_erase = spi_block_erase_20,
5588 }, {
5589 .eraseblocks = { {32 * 1024, 512} },
5590 .block_erase = spi_block_erase_52,
5591 }, {
5592 .eraseblocks = { {64 * 1024, 256} },
5593 .block_erase = spi_block_erase_d8,
5594 }, {
5595 .eraseblocks = { {16 * 1024 * 1024, 1} },
5596 .block_erase = spi_block_erase_60,
5597 }, {
5598 .eraseblocks = { {16 * 1024 * 1024, 1} },
5599 .block_erase = spi_block_erase_c7,
5600 }
5601 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005602 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005603 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5604 .write = spi_chip_write_256,
5605 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "GigaDevice",
5611 .name = "GD25T80",
5612 .bustype = BUS_SPI,
5613 .manufacture_id = GIGADEVICE_ID,
5614 .model_id = GIGADEVICE_GD25T80,
5615 .total_size = 1024,
5616 .page_size = 256,
5617 /* OTP: 256B total; enter 0x3A */
5618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5619 .tested = TEST_UNTESTED,
5620 .probe = probe_spi_rdid,
5621 .probe_timing = TIMING_ZERO,
5622 .block_erasers = {
5623 {
5624 .eraseblocks = { {4 * 1024, 256} },
5625 .block_erase = spi_block_erase_20,
5626 }, {
5627 .eraseblocks = { {64 * 1024, 16} },
5628 .block_erase = spi_block_erase_52,
5629 }, {
5630 .eraseblocks = { {64 * 1024, 16} },
5631 .block_erase = spi_block_erase_d8,
5632 }, {
5633 .eraseblocks = { {1024 * 1024, 1} },
5634 .block_erase = spi_block_erase_60,
5635 }, {
5636 .eraseblocks = { {1024 * 1024, 1} },
5637 .block_erase = spi_block_erase_c7,
5638 }
5639 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005641 .unlock = spi_disable_blockprotect,
5642 .write = spi_chip_write_256,
5643 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005644 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005645 },
5646
5647 {
David Borgc96a8bd2010-06-21 16:12:22 +00005648 .vendor = "Hyundai",
5649 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005650 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005651 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005652 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005653 .total_size = 256,
5654 .page_size = 256 * 1024,
5655 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005656 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005657 .probe = probe_jedec,
5658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5659 .block_erasers =
5660 {
5661 {
5662 .eraseblocks = {
5663 {64 * 1024, 3},
5664 {32 * 1024, 1},
5665 {8 * 1024, 2},
5666 {16 * 1024, 1},
5667 },
5668 .block_erase = erase_sector_jedec,
5669 }, {
5670 .eraseblocks = { {256 * 1024, 1} },
5671 .block_erase = erase_chip_block_jedec,
5672 },
5673 },
5674 .write = write_jedec_1,
5675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005677 },
5678
5679 {
5680 .vendor = "Hyundai",
5681 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005682 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005683 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005684 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005685 .total_size = 256,
5686 .page_size = 256 * 1024,
5687 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5688 .tested = TEST_UNTESTED,
5689 .probe = probe_jedec,
5690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5691 .block_erasers =
5692 {
5693 {
5694 .eraseblocks = {
5695 {16 * 1024, 1},
5696 {8 * 1024, 2},
5697 {32 * 1024, 1},
5698 {64 * 1024, 3},
5699 },
5700 .block_erase = erase_sector_jedec,
5701 }, {
5702 .eraseblocks = { {256 * 1024, 1} },
5703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005708 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005709 },
5710
5711 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005712 .vendor = "Hyundai",
5713 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005714 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005715 .manufacture_id = HYUNDAI_ID,
5716 .model_id = HYUNDAI_HY29F040A,
5717 .total_size = 512,
5718 .page_size = 64 * 1024,
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec,
5722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = { {64 * 1024, 8} },
5727 .block_erase = erase_sector_jedec,
5728 }, {
5729 .eraseblocks = { {512 * 1024, 1} },
5730 .block_erase = erase_chip_block_jedec,
5731 },
5732 },
5733 .write = write_jedec_1,
5734 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005735 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005736 },
5737
5738 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005739 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005740 .name = "25F160S33B8",
5741 .bustype = BUS_SPI,
5742 .manufacture_id = INTEL_ID,
5743 .model_id = INTEL_25F160S33B8,
5744 .total_size = 2048,
5745 .page_size = 256,
5746 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5748 .tested = TEST_UNTESTED,
5749 .probe = probe_spi_rdid,
5750 .probe_timing = TIMING_ZERO,
5751 .block_erasers =
5752 {
5753 {
5754 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5755 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5756 * have no effect on the memory contents, but sets a flag in the SR.
5757 .eraseblocks = {
5758 {8 * 1024, 8},
5759 {64 * 1024, 31} // inaccessible
5760 },
5761 .block_erase = spi_block_erase_40,
5762 }, { */
5763 .eraseblocks = { {64 * 1024, 32} },
5764 .block_erase = spi_block_erase_d8,
5765 }, {
5766 .eraseblocks = { {2 * 1024 * 1024, 1} },
5767 .block_erase = spi_block_erase_c7,
5768 }
5769 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005770 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5771 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005772 .write = spi_chip_write_256,
5773 .read = spi_chip_read, /* also fast read 0x0B */
5774 .voltage = {2700, 3600},
5775 },
5776
5777 {
5778 .vendor = "Intel",
5779 .name = "25F160S33T8",
5780 .bustype = BUS_SPI,
5781 .manufacture_id = INTEL_ID,
5782 .model_id = INTEL_25F160S33T8,
5783 .total_size = 2048,
5784 .page_size = 256,
5785 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5787 .tested = TEST_UNTESTED,
5788 .probe = probe_spi_rdid,
5789 .probe_timing = TIMING_ZERO,
5790 .block_erasers =
5791 {
5792 {
5793 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5794 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5795 * have no effect on the memory contents, but sets a flag in the SR.
5796 .eraseblocks = {
5797 {64 * 1024, 31}, // inaccessible
5798 {8 * 1024, 8}
5799 },
5800 .block_erase = spi_block_erase_40,
5801 }, { */
5802 .eraseblocks = { {64 * 1024, 32} },
5803 .block_erase = spi_block_erase_d8,
5804 }, {
5805 .eraseblocks = { {2 * 1024 * 1024, 1} },
5806 .block_erase = spi_block_erase_c7,
5807 }
5808 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005809 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5810 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005811 .write = spi_chip_write_256,
5812 .read = spi_chip_read, /* also fast read 0x0B */
5813 .voltage = {2700, 3600},
5814 },
5815
5816 {
5817 .vendor = "Intel",
5818 .name = "25F320S33B8",
5819 .bustype = BUS_SPI,
5820 .manufacture_id = INTEL_ID,
5821 .model_id = INTEL_25F320S33B8,
5822 .total_size = 4096,
5823 .page_size = 256,
5824 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5826 .tested = TEST_UNTESTED,
5827 .probe = probe_spi_rdid,
5828 .probe_timing = TIMING_ZERO,
5829 .block_erasers =
5830 {
5831 {
5832 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5833 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5834 * have no effect on the memory contents, but sets a flag in the SR.
5835 .eraseblocks = {
5836 {8 * 1024, 8},
5837 {64 * 1024, 63} // inaccessible
5838 },
5839 .block_erase = spi_block_erase_40,
5840 }, { */
5841 .eraseblocks = { {64 * 1024, 64} },
5842 .block_erase = spi_block_erase_d8,
5843 }, {
5844 .eraseblocks = { {4 * 1024 * 1024, 1} },
5845 .block_erase = spi_block_erase_c7,
5846 }
5847 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005848 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5849 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005850 .write = spi_chip_write_256,
5851 .read = spi_chip_read, /* also fast read 0x0B */
5852 .voltage = {2700, 3600},
5853 },
5854
5855 {
5856 .vendor = "Intel",
5857 .name = "25F320S33T8",
5858 .bustype = BUS_SPI,
5859 .manufacture_id = INTEL_ID,
5860 .model_id = INTEL_25F320S33T8,
5861 .total_size = 4096,
5862 .page_size = 256,
5863 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5865 .tested = TEST_UNTESTED,
5866 .probe = probe_spi_rdid,
5867 .probe_timing = TIMING_ZERO,
5868 .block_erasers =
5869 {
5870 {
5871 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5872 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5873 * have no effect on the memory contents, but sets a flag in the SR.
5874 .eraseblocks = {
5875 {64 * 1024, 63}, // inaccessible
5876 {8 * 1024, 8}
5877 },
5878 .block_erase = spi_block_erase_40,
5879 }, { */
5880 .eraseblocks = { {64 * 1024, 64} },
5881 .block_erase = spi_block_erase_d8,
5882 }, {
5883 .eraseblocks = { {4 * 1024 * 1024, 1} },
5884 .block_erase = spi_block_erase_c7,
5885 }
5886 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005887 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5888 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005889 .write = spi_chip_write_256,
5890 .read = spi_chip_read, /* also fast read 0x0B */
5891 .voltage = {2700, 3600},
5892 },
5893
5894 {
5895 .vendor = "Intel",
5896 .name = "25F640S33B8",
5897 .bustype = BUS_SPI,
5898 .manufacture_id = INTEL_ID,
5899 .model_id = INTEL_25F640S33B8,
5900 .total_size = 8192,
5901 .page_size = 256,
5902 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5904 .tested = TEST_UNTESTED,
5905 .probe = probe_spi_rdid,
5906 .probe_timing = TIMING_ZERO,
5907 .block_erasers =
5908 {
5909 {
5910 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5911 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5912 * have no effect on the memory contents, but sets a flag in the SR.
5913 .eraseblocks = {
5914 {8 * 1024, 8},
5915 {64 * 1024, 127} // inaccessible
5916 },
5917 .block_erase = spi_block_erase_40,
5918 }, { */
5919 .eraseblocks = { {64 * 1024, 128} },
5920 .block_erase = spi_block_erase_d8,
5921 }, {
5922 .eraseblocks = { {8 * 1024 * 1024, 1} },
5923 .block_erase = spi_block_erase_c7,
5924 }
5925 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005926 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5927 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005928 .write = spi_chip_write_256,
5929 .read = spi_chip_read, /* also fast read 0x0B */
5930 .voltage = {2700, 3600},
5931 },
5932
5933 {
5934 .vendor = "Intel",
5935 .name = "25F640S33T8",
5936 .bustype = BUS_SPI,
5937 .manufacture_id = INTEL_ID,
5938 .model_id = INTEL_25F640S33T8,
5939 .total_size = 8192,
5940 .page_size = 256,
5941 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5943 .tested = TEST_UNTESTED,
5944 .probe = probe_spi_rdid,
5945 .probe_timing = TIMING_ZERO,
5946 .block_erasers =
5947 {
5948 {
5949 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5950 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5951 * have no effect on the memory contents, but sets a flag in the SR.
5952 .eraseblocks = {
5953 {64 * 1024, 127}, // inaccessible
5954 {8 * 1024, 8}
5955 },
5956 .block_erase = spi_block_erase_40,
5957 }, { */
5958 .eraseblocks = { {64 * 1024, 128} },
5959 .block_erase = spi_block_erase_d8,
5960 }, {
5961 .eraseblocks = { {8 * 1024 * 1024, 1} },
5962 .block_erase = spi_block_erase_c7,
5963 }
5964 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005965 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5966 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005967 .write = spi_chip_write_256,
5968 .read = spi_chip_read, /* also fast read 0x0B */
5969 .voltage = {2700, 3600},
5970 },
5971
5972 {
5973 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005974 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005975 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005976 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005977 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005978 .total_size = 128,
5979 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005980 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005981 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005982 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005983 .block_erasers =
5984 {
5985 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005986 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005987 {8 * 1024, 1},
5988 {4 * 1024, 2},
5989 {112 * 1024, 1},
5990 },
Sean Nelson28accc22010-03-19 18:47:06 +00005991 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005992 },
5993 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005994 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005996 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005997 },
5998
5999 {
6000 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006001 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006002 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006003 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006004 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006005 .total_size = 128,
6006 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006007 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006008 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006010 .block_erasers =
6011 {
6012 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006013 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006014 {112 * 1024, 1},
6015 {4 * 1024, 2},
6016 {8 * 1024, 1},
6017 },
Sean Nelson28accc22010-03-19 18:47:06 +00006018 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006019 },
6020 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006021 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006023 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006024 },
6025
6026 {
6027 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006028 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006030 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006031 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006032 .total_size = 256,
6033 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006034 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006035 .probe = probe_82802ab,
6036 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6037 .block_erasers =
6038 {
6039 {
6040 .eraseblocks = {
6041 {128 * 1024, 1},
6042 {96 * 1024, 1},
6043 {8 * 1024, 2},
6044 {16 * 1024, 1},
6045 },
6046 .block_erase = erase_block_82802ab,
6047 },
6048 },
6049 .write = write_82802ab,
6050 .read = read_memmapped,
6051 },
6052
6053 {
6054 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006055 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006056 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006057 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006058 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006059 .total_size = 512,
6060 .page_size = 256,
6061 .tested = TEST_UNTESTED,
6062 .probe = probe_82802ab,
6063 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006064 .block_erasers =
6065 {
6066 {
6067 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006068 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006069 },
6070 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006071 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006072 .write = write_82802ab,
6073 .read = read_memmapped,
6074 },
6075
6076 {
6077 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006078 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006079 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006080 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006081 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006082 .total_size = 512,
6083 .page_size = 128 * 1024, /* maximal block size */
6084 .tested = TEST_UNTESTED,
6085 .probe = probe_82802ab,
6086 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6087 .block_erasers =
6088 {
6089 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006090 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006091 {16 * 1024, 1},
6092 {8 * 1024, 2},
6093 {96 * 1024, 1},
6094 {128 * 1024, 3},
6095 },
6096 .block_erase = erase_block_82802ab,
6097 },
6098 },
6099 .write = write_82802ab,
6100 .read = read_memmapped,
6101 },
6102
6103 {
6104 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006105 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006106 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006107 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006108 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006109 .total_size = 512,
6110 .page_size = 128 * 1024, /* maximal block size */
6111 .tested = TEST_UNTESTED,
6112 .probe = probe_82802ab,
6113 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6114 .block_erasers =
6115 {
6116 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006117 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006118 {128 * 1024, 3},
6119 {96 * 1024, 1},
6120 {8 * 1024, 2},
6121 {16 * 1024, 1},
6122 },
6123 .block_erase = erase_block_82802ab,
6124 },
6125 },
6126 .write = write_82802ab,
6127 .read = read_memmapped,
6128 },
6129
6130 {
6131 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006132 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006133 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006134 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006135 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006136 .total_size = 512,
6137 .page_size = 128 * 1024, /* maximal block size */
6138 .feature_bits = FEATURE_ADDR_SHIFTED,
6139 .tested = TEST_UNTESTED,
6140 .probe = probe_82802ab,
6141 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6142 .block_erasers =
6143 {
6144 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006145 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006146 {16 * 1024, 1},
6147 {8 * 1024, 2},
6148 {96 * 1024, 1},
6149 {128 * 1024, 3},
6150 },
6151 .block_erase = erase_block_82802ab,
6152 },
6153 },
6154 .write = write_82802ab,
6155 .read = read_memmapped,
6156 },
6157
6158 {
6159 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006160 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006161 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006162 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006163 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006164 .total_size = 512,
6165 .page_size = 128 * 1024, /* maximal block size */
6166 .feature_bits = FEATURE_ADDR_SHIFTED,
6167 .tested = TEST_UNTESTED,
6168 .probe = probe_82802ab,
6169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6170 .block_erasers =
6171 {
6172 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006173 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006174 {128 * 1024, 3},
6175 {96 * 1024, 1},
6176 {8 * 1024, 2},
6177 {16 * 1024, 1},
6178 },
6179 .block_erase = erase_block_82802ab,
6180 },
6181 },
6182 .write = write_82802ab,
6183 .read = read_memmapped,
6184 },
6185
6186 {
6187 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006189 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006191 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .total_size = 512,
6193 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006194 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006195 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006197 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006198 .block_erasers =
6199 {
6200 {
6201 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006202 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006203 },
6204 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006205 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006206 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006208 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006209 },
6210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006211 {
6212 .vendor = "Intel",
6213 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006214 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006215 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006216 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006217 .total_size = 1024,
6218 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006219 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006220 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006221 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006222 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006223 .block_erasers =
6224 {
6225 {
6226 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006227 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006228 },
6229 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006230 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006231 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006233 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006234 },
6235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006236 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006237 .vendor = "ISSI",
6238 .name = "IS29GL064B",
6239 .bustype = BUS_PARALLEL,
6240 .manufacture_id = ISSI_ID,
6241 .model_id = ISSI_PMC_IS29GL064B,
6242 .total_size = 8192,
6243 .page_size = 128 * 1024, /* actual page size is 16 */
6244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6245 .tested = TEST_UNTESTED,
6246 .probe = probe_jedec_29gl,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = {
6252 {8 * 1024, 8},
6253 {64 * 1024, 127},
6254 },
6255 .block_erase = erase_sector_jedec,
6256 }, {
6257 .eraseblocks = { {8 * 1024 * 1024, 1} },
6258 .block_erase = erase_chip_block_jedec,
6259 },
6260 },
6261 .write = write_jedec_1,
6262 .read = read_memmapped,
6263 .voltage = {2700, 3600},
6264 },
6265
6266 {
6267 .vendor = "ISSI",
6268 .name = "IS29GL064T",
6269 .bustype = BUS_PARALLEL,
6270 .manufacture_id = ISSI_ID,
6271 .model_id = ISSI_PMC_IS29GL064T,
6272 .total_size = 8192,
6273 .page_size = 128 * 1024, /* actual page size is 16 */
6274 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6275 .tested = TEST_UNTESTED,
6276 .probe = probe_jedec_29gl,
6277 .probe_timing = TIMING_ZERO,
6278 .block_erasers =
6279 {
6280 {
6281 .eraseblocks = {
6282 {64 * 1024, 127},
6283 {8 * 1024, 8},
6284 },
6285 .block_erase = erase_sector_jedec,
6286 }, {
6287 .eraseblocks = { {8 * 1024 * 1024, 1} },
6288 .block_erase = erase_chip_block_jedec,
6289 },
6290 },
6291 .write = write_jedec_1,
6292 .read = read_memmapped,
6293 .voltage = {2700, 3600},
6294 },
6295
6296 {
6297 .vendor = "ISSI",
6298 .name = "IS29GL064H/L",
6299 .bustype = BUS_PARALLEL,
6300 .manufacture_id = ISSI_ID,
6301 .model_id = ISSI_PMC_IS29GL064HL,
6302 .total_size = 8192,
6303 .page_size = 128 * 1024, /* actual page size is 16 */
6304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6305 .tested = TEST_UNTESTED,
6306 .probe = probe_jedec_29gl,
6307 .probe_timing = TIMING_ZERO,
6308 .block_erasers =
6309 {
6310 {
6311 .eraseblocks = { {64 * 1024, 128} },
6312 .block_erase = erase_sector_jedec,
6313 }, {
6314 .eraseblocks = { {8 * 1024 * 1024, 1} },
6315 .block_erase = erase_chip_block_jedec,
6316 },
6317 },
6318 .write = write_jedec_1,
6319 .read = read_memmapped,
6320 .voltage = {2700, 3600},
6321 },
6322
6323 {
6324 .vendor = "ISSI",
6325 .name = "IS29GL128H/L",
6326 .bustype = BUS_PARALLEL,
6327 .manufacture_id = ISSI_ID,
6328 .model_id = ISSI_PMC_IS29GL128HL,
6329 .total_size = 16384,
6330 .page_size = 128 * 1024, /* actual page size is 16 */
6331 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6332 .tested = TEST_UNTESTED,
6333 .probe = probe_jedec_29gl,
6334 .probe_timing = TIMING_ZERO,
6335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {128 * 1024, 128} },
6339 .block_erase = erase_sector_jedec,
6340 }, {
6341 .eraseblocks = { {16 * 1024 * 1024, 1} },
6342 .block_erase = erase_chip_block_jedec,
6343 },
6344 },
6345 .write = write_jedec_1,
6346 .read = read_memmapped,
6347 .voltage = {2700, 3600},
6348 },
6349
6350 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006351 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006352 .name = "MX23L1654",
6353 .bustype = BUS_SPI,
6354 .manufacture_id = MACRONIX_ID,
6355 .model_id = MACRONIX_MX23L1654,
6356 .total_size = 2048,
6357 .page_size = 256,
6358 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6359 .probe = probe_spi_rdid,
6360 .probe_timing = TIMING_ZERO,
6361 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
6362 .read = spi_chip_read, /* Fast read (0x0B) supported */
6363 .voltage = {3000, 3600},
6364 },
6365
6366 {
6367 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006368 .name = "MX23L3254",
6369 .bustype = BUS_SPI,
6370 .manufacture_id = MACRONIX_ID,
6371 .model_id = MACRONIX_MX23L3254,
6372 .total_size = 4096,
6373 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006374 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006375 .probe = probe_spi_rdid,
6376 .probe_timing = TIMING_ZERO,
6377 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6378 .read = spi_chip_read, /* Fast read (0x0B) supported */
6379 .voltage = {3000, 3600},
6380 },
6381
6382 {
6383 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006384 .name = "MX23L6454",
6385 .bustype = BUS_SPI,
6386 .manufacture_id = MACRONIX_ID,
6387 .model_id = MACRONIX_MX23L6454,
6388 .total_size = 8192,
6389 .page_size = 256,
6390 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6391 .probe = probe_spi_rdid,
6392 .probe_timing = TIMING_ZERO,
6393 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
6394 .read = spi_chip_read, /* Fast read (0x0B) supported */
6395 .voltage = {3000, 3600},
6396 },
6397
6398 {
6399 .vendor = "Macronix",
6400 .name = "MX23L12854",
6401 .bustype = BUS_SPI,
6402 .manufacture_id = MACRONIX_ID,
6403 .model_id = MACRONIX_MX23L12854,
6404 .total_size = 16384,
6405 .page_size = 256,
6406 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6407 .probe = probe_spi_rdid,
6408 .probe_timing = TIMING_ZERO,
6409 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
6410 .read = spi_chip_read, /* Fast read (0x0B) supported */
6411 .voltage = {3000, 3600},
6412 },
6413
6414 {
6415 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006416 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006417 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006418 .manufacture_id = MACRONIX_ID,
6419 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .total_size = 64,
6421 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006422 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006423 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006424 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006426 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006427 .block_erasers =
6428 {
6429 {
6430 .eraseblocks = { {4 * 1024, 16} },
6431 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006432 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006433 .eraseblocks = { {64 * 1024, 1} },
6434 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006435 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006436 .eraseblocks = { {64 * 1024, 1} },
6437 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006438 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006439 .eraseblocks = { {64 * 1024, 1} },
6440 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006441 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006442 .eraseblocks = { {64 * 1024, 1} },
6443 .block_erase = spi_block_erase_c7,
6444 },
6445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006446 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006447 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006448 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006449 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6450 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006451 },
6452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 {
6454 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006455 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006456 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006457 .manufacture_id = MACRONIX_ID,
6458 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006459 .total_size = 128,
6460 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006461 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006462 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006465 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006466 .block_erasers =
6467 {
6468 {
6469 .eraseblocks = { {4 * 1024, 32} },
6470 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006471 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006472 .eraseblocks = { {64 * 1024, 2} },
6473 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006474 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006475 .eraseblocks = { {128 * 1024, 1} },
6476 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006477 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006478 .eraseblocks = { {128 * 1024, 1} },
6479 .block_erase = spi_block_erase_c7,
6480 },
6481 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006482 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006483 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006484 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006485 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006487 },
6488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 {
6490 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006491 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006492 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006493 .manufacture_id = MACRONIX_ID,
6494 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006495 .total_size = 256,
6496 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006497 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006499 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006500 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006501 .block_erasers =
6502 {
6503 {
6504 .eraseblocks = { {4 * 1024, 64} },
6505 .block_erase = spi_block_erase_20,
6506 }, {
6507 .eraseblocks = { {64 * 1024, 4} },
6508 .block_erase = spi_block_erase_52,
6509 }, {
6510 .eraseblocks = { {64 * 1024, 4} },
6511 .block_erase = spi_block_erase_d8,
6512 }, {
6513 .eraseblocks = { {256 * 1024, 1} },
6514 .block_erase = spi_block_erase_60,
6515 }, {
6516 .eraseblocks = { {256 * 1024, 1} },
6517 .block_erase = spi_block_erase_c7,
6518 },
6519 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006520 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006521 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006522 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006523 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006525 },
6526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 {
6528 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006529 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006530 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006531 .manufacture_id = MACRONIX_ID,
6532 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006533 .total_size = 512,
6534 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006535 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006538 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006539 .block_erasers =
6540 {
6541 {
6542 .eraseblocks = { {4 * 1024, 128} },
6543 .block_erase = spi_block_erase_20,
6544 }, {
6545 .eraseblocks = { {64 * 1024, 8} },
6546 .block_erase = spi_block_erase_52,
6547 }, {
6548 .eraseblocks = { {64 * 1024, 8} },
6549 .block_erase = spi_block_erase_d8,
6550 }, {
6551 .eraseblocks = { {512 * 1024, 1} },
6552 .block_erase = spi_block_erase_60,
6553 }, {
6554 .eraseblocks = { {512 * 1024, 1} },
6555 .block_erase = spi_block_erase_c7,
6556 },
6557 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006558 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006559 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006560 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006561 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006563 },
6564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006565 {
6566 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006567 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006568 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006569 .manufacture_id = MACRONIX_ID,
6570 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006571 .total_size = 1024,
6572 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006573 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006576 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006577 .block_erasers =
6578 {
6579 {
6580 .eraseblocks = { {4 * 1024, 256} },
6581 .block_erase = spi_block_erase_20,
6582 }, {
6583 .eraseblocks = { {64 * 1024, 16} },
6584 .block_erase = spi_block_erase_52,
6585 }, {
6586 .eraseblocks = { {64 * 1024, 16} },
6587 .block_erase = spi_block_erase_d8,
6588 }, {
6589 .eraseblocks = { {1024 * 1024, 1} },
6590 .block_erase = spi_block_erase_60,
6591 }, {
6592 .eraseblocks = { {1024 * 1024, 1} },
6593 .block_erase = spi_block_erase_c7,
6594 },
6595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006596 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006597 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006598 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006599 .read = spi_chip_read, /* Fast read (0x0B) supported */
6600 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006601 },
6602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006603 {
6604 .vendor = "Macronix",
6605 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006606 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006607 .manufacture_id = MACRONIX_ID,
6608 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .total_size = 2048,
6610 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006611 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006614 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006615 .block_erasers =
6616 {
6617 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006618 .eraseblocks = { {64 * 1024, 32} },
6619 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006620 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006621 .eraseblocks = { {64 * 1024, 32} },
6622 .block_erase = spi_block_erase_d8,
6623 }, {
6624 .eraseblocks = { {2 * 1024 * 1024, 1} },
6625 .block_erase = spi_block_erase_60,
6626 }, {
6627 .eraseblocks = { {2 * 1024 * 1024, 1} },
6628 .block_erase = spi_block_erase_c7,
6629 },
6630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006631 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006632 .unlock = spi_disable_blockprotect,
6633 .write = spi_chip_write_256,
6634 .read = spi_chip_read, /* Fast read (0x0B) supported */
6635 .voltage = {2700, 3600},
6636 },
6637
6638 {
6639 .vendor = "Macronix",
6640 .name = "MX25L1605A/MX25L1606E",
6641 .bustype = BUS_SPI,
6642 .manufacture_id = MACRONIX_ID,
6643 .model_id = MACRONIX_MX25L1605,
6644 .total_size = 2048,
6645 .page_size = 256,
6646 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6648 .tested = TEST_OK_PREW,
6649 .probe = probe_spi_rdid,
6650 .probe_timing = TIMING_ZERO,
6651 .block_erasers =
6652 {
6653 {
6654 .eraseblocks = { {4 * 1024, 512} },
6655 .block_erase = spi_block_erase_20,
6656 }, {
6657 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006658 .block_erase = spi_block_erase_52,
6659 }, {
6660 .eraseblocks = { {64 * 1024, 32} },
6661 .block_erase = spi_block_erase_d8,
6662 }, {
6663 .eraseblocks = { {2 * 1024 * 1024, 1} },
6664 .block_erase = spi_block_erase_60,
6665 }, {
6666 .eraseblocks = { {2 * 1024 * 1024, 1} },
6667 .block_erase = spi_block_erase_c7,
6668 },
6669 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006670 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006671 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006672 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006673 .read = spi_chip_read, /* Fast read (0x0B) supported */
6674 .voltage = {2700, 3600},
6675 },
6676
6677 {
6678 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006679 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006680 .bustype = BUS_SPI,
6681 .manufacture_id = MACRONIX_ID,
6682 .model_id = MACRONIX_MX25L1605,
6683 .total_size = 2048,
6684 .page_size = 256,
6685 .feature_bits = FEATURE_WRSR_WREN,
6686 .tested = TEST_OK_PREW,
6687 .probe = probe_spi_rdid,
6688 .probe_timing = TIMING_ZERO,
6689 .block_erasers =
6690 {
6691 {
6692 .eraseblocks = { {4 * 1024, 512} },
6693 .block_erase = spi_block_erase_20,
6694 }, {
6695 .eraseblocks = { {64 * 1024, 32} },
6696 .block_erase = spi_block_erase_d8,
6697 }, {
6698 .eraseblocks = { {2 * 1024 * 1024, 1} },
6699 .block_erase = spi_block_erase_60,
6700 }, {
6701 .eraseblocks = { {2 * 1024 * 1024, 1} },
6702 .block_erase = spi_block_erase_c7,
6703 },
6704 },
Stefan Tauner6697f712014-08-06 15:09:15 +00006705 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006706 .unlock = spi_disable_blockprotect,
6707 .write = spi_chip_write_256,
6708 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006709 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006710 },
6711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006712 {
6713 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006714 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006715 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006716 .manufacture_id = MACRONIX_ID,
6717 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006718 .total_size = 2048,
6719 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006720 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006722 .tested = TEST_UNTESTED,
6723 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006724 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006725 .block_erasers =
6726 {
6727 {
6728 .eraseblocks = { {4 * 1024, 512} },
6729 .block_erase = spi_block_erase_20,
6730 }, {
6731 .eraseblocks = { {64 * 1024, 32} },
6732 .block_erase = spi_block_erase_d8,
6733 }, {
6734 .eraseblocks = { {2 * 1024 * 1024, 1} },
6735 .block_erase = spi_block_erase_60,
6736 }, {
6737 .eraseblocks = { {2 * 1024 * 1024, 1} },
6738 .block_erase = spi_block_erase_c7,
6739 }
6740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006742 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006743 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006744 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006745 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006746 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006747
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006748 {
6749 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006750 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006751 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006752 .manufacture_id = MACRONIX_ID,
6753 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006754 .total_size = 2048,
6755 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006756 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006758 .tested = TEST_UNTESTED,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { {4 * 1024, 512} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {64 * 1024, 32} },
6768 .block_erase = spi_block_erase_d8,
6769 }, {
6770 .eraseblocks = { {2 * 1024 * 1024, 1} },
6771 .block_erase = spi_block_erase_60,
6772 }, {
6773 .eraseblocks = { {2 * 1024 * 1024, 1} },
6774 .block_erase = spi_block_erase_c7,
6775 }
6776 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006777 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006778 .unlock = spi_disable_blockprotect,
6779 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006780 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006781 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006782 },
6783
6784 {
6785 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006786 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006787 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006788 .manufacture_id = MACRONIX_ID,
6789 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006790 .total_size = 4096,
6791 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006792 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006793 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006795 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006796 .block_erasers =
6797 {
6798 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006799 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006800 .block_erase = spi_block_erase_20,
6801 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006802 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006803 .block_erase = spi_block_erase_d8,
6804 }, {
6805 .eraseblocks = { {4 * 1024 * 1024, 1} },
6806 .block_erase = spi_block_erase_60,
6807 }, {
6808 .eraseblocks = { {4 * 1024 * 1024, 1} },
6809 .block_erase = spi_block_erase_c7,
6810 },
6811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006812 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006813 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006814 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006815 .read = spi_chip_read, /* Fast read (0x0B) supported */
6816 .voltage = {2700, 3600},
6817 },
6818
6819 {
6820 .vendor = "Macronix",
6821 .name = "MX25L3205D/MX25L3208D",
6822 .bustype = BUS_SPI,
6823 .manufacture_id = MACRONIX_ID,
6824 .model_id = MACRONIX_MX25L3205,
6825 .total_size = 4096,
6826 .page_size = 256,
6827 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6829 .tested = TEST_OK_PREW,
6830 .probe = probe_spi_rdid,
6831 .probe_timing = TIMING_ZERO,
6832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = { {4 * 1024, 1024} },
6836 .block_erase = spi_block_erase_20,
6837 }, {
6838 .eraseblocks = { {64 * 1024, 64} },
6839 .block_erase = spi_block_erase_d8,
6840 }, {
6841 .eraseblocks = { {4 * 1024 * 1024, 1} },
6842 .block_erase = spi_block_erase_60,
6843 }, {
6844 .eraseblocks = { {4 * 1024 * 1024, 1} },
6845 .block_erase = spi_block_erase_c7,
6846 },
6847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006848 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006849 .unlock = spi_disable_blockprotect,
6850 .write = spi_chip_write_256,
6851 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6852 .voltage = {2700, 3600},
6853 },
6854
6855 {
6856 .vendor = "Macronix",
6857 .name = "MX25L3206E",
6858 .bustype = BUS_SPI,
6859 .manufacture_id = MACRONIX_ID,
6860 .model_id = MACRONIX_MX25L3205,
6861 .total_size = 4096,
6862 .page_size = 256,
6863 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6865 .tested = TEST_OK_PREW,
6866 .probe = probe_spi_rdid,
6867 .probe_timing = TIMING_ZERO,
6868 .block_erasers =
6869 {
6870 {
6871 .eraseblocks = { {4 * 1024, 1024} },
6872 .block_erase = spi_block_erase_20,
6873 }, {
6874 .eraseblocks = { {64 * 1024, 64} },
6875 .block_erase = spi_block_erase_d8,
6876 }, {
6877 .eraseblocks = { {64 * 1024, 64} },
6878 .block_erase = spi_block_erase_52,
6879 }, {
6880 .eraseblocks = { {4 * 1024 * 1024, 1} },
6881 .block_erase = spi_block_erase_60,
6882 }, {
6883 .eraseblocks = { {4 * 1024 * 1024, 1} },
6884 .block_erase = spi_block_erase_c7,
6885 },
6886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006887 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006888 .unlock = spi_disable_blockprotect,
6889 .write = spi_chip_write_256,
6890 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006891 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006892 },
6893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006894 {
6895 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006896 .name = "MX25L3273E",
6897 .bustype = BUS_SPI,
6898 .manufacture_id = MACRONIX_ID,
6899 .model_id = MACRONIX_MX25L3205,
6900 .total_size = 4096,
6901 .page_size = 256,
6902 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6904 .tested = TEST_UNTESTED,
6905 .probe = probe_spi_rdid,
6906 .probe_timing = TIMING_ZERO,
6907 .block_erasers =
6908 {
6909 {
6910 .eraseblocks = { {4 * 1024, 1024} },
6911 .block_erase = spi_block_erase_20,
6912 }, {
6913 .eraseblocks = { {32 * 1024, 128} },
6914 .block_erase = spi_block_erase_52,
6915 }, {
6916 .eraseblocks = { {64 * 1024, 64} },
6917 .block_erase = spi_block_erase_d8,
6918 }, {
6919 .eraseblocks = { {4 * 1024 * 1024, 1} },
6920 .block_erase = spi_block_erase_60,
6921 }, {
6922 .eraseblocks = { {4 * 1024 * 1024, 1} },
6923 .block_erase = spi_block_erase_c7,
6924 },
6925 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006926 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006927 .unlock = spi_disable_blockprotect,
6928 .write = spi_chip_write_256,
6929 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6930 .voltage = {2700, 3600},
6931 },
6932
6933 {
6934 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006935 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006936 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006937 .manufacture_id = MACRONIX_ID,
6938 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006939 .total_size = 4096,
6940 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006941 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006943 .tested = TEST_UNTESTED,
6944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006945 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006946 .block_erasers =
6947 {
6948 {
6949 .eraseblocks = { {4 * 1024, 1024} },
6950 .block_erase = spi_block_erase_20,
6951 }, {
6952 .eraseblocks = { {64 * 1024, 64} },
6953 .block_erase = spi_block_erase_d8,
6954 }, {
6955 .eraseblocks = { {4 * 1024 * 1024, 1} },
6956 .block_erase = spi_block_erase_60,
6957 }, {
6958 .eraseblocks = { {4 * 1024 * 1024, 1} },
6959 .block_erase = spi_block_erase_c7,
6960 }
6961 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006962 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006963 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006964 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006966 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006967 },
6968
6969 {
6970 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006971 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006972 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006973 .manufacture_id = MACRONIX_ID,
6974 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006975 .total_size = 8192,
6976 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006977 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006981 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006982 .block_erasers =
6983 {
6984 {
6985 .eraseblocks = { {64 * 1024, 128} },
6986 .block_erase = spi_block_erase_20,
6987 }, {
6988 .eraseblocks = { {64 * 1024, 128} },
6989 .block_erase = spi_block_erase_d8,
6990 }, {
6991 .eraseblocks = { {8 * 1024 * 1024, 1} },
6992 .block_erase = spi_block_erase_60,
6993 }, {
6994 .eraseblocks = { {8 * 1024 * 1024, 1} },
6995 .block_erase = spi_block_erase_c7,
6996 }
6997 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006998 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006999 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007000 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007002 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007003 },
7004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 {
7006 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007007 .name = "MX25L6406E/MX25L6436E",
7008 .bustype = BUS_SPI,
7009 .manufacture_id = MACRONIX_ID,
7010 .model_id = MACRONIX_MX25L6405,
7011 .total_size = 8192,
7012 .page_size = 256,
7013 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
7014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7015 .tested = TEST_OK_PREW,
7016 .probe = probe_spi_rdid,
7017 .probe_timing = TIMING_ZERO,
7018 .block_erasers =
7019 {
7020 {
7021 .eraseblocks = { {4 * 1024, 2048} },
7022 .block_erase = spi_block_erase_20,
7023 }, {
7024 .eraseblocks = { {64 * 1024, 128} },
7025 .block_erase = spi_block_erase_d8,
7026 }, {
7027 .eraseblocks = { {8 * 1024 * 1024, 1} },
7028 .block_erase = spi_block_erase_60,
7029 }, {
7030 .eraseblocks = { {8 * 1024 * 1024, 1} },
7031 .block_erase = spi_block_erase_c7,
7032 }
7033 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007034 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007035 .unlock = spi_disable_blockprotect,
7036 .write = spi_chip_write_256,
7037 .read = spi_chip_read,
7038 .voltage = {2700, 3600},
7039 },
7040
7041 {
7042 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007043 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007044 .bustype = BUS_SPI,
7045 .manufacture_id = MACRONIX_ID,
7046 .model_id = MACRONIX_MX25L6405,
7047 .total_size = 8192,
7048 .page_size = 256,
7049 /* supports SFDP */
7050 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7052 .tested = TEST_OK_PREW,
7053 .probe = probe_spi_rdid,
7054 .probe_timing = TIMING_ZERO,
7055 .block_erasers =
7056 {
7057 {
7058 .eraseblocks = { {4 * 1024, 2048} },
7059 .block_erase = spi_block_erase_20,
7060 }, {
7061 .eraseblocks = { {32 * 1024, 256} },
7062 .block_erase = spi_block_erase_52,
7063 }, {
7064 .eraseblocks = { {64 * 1024, 128} },
7065 .block_erase = spi_block_erase_d8,
7066 }, {
7067 .eraseblocks = { {8 * 1024 * 1024, 1} },
7068 .block_erase = spi_block_erase_60,
7069 }, {
7070 .eraseblocks = { {8 * 1024 * 1024, 1} },
7071 .block_erase = spi_block_erase_c7,
7072 }
7073 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007074 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007075 .unlock = spi_disable_blockprotect,
7076 .write = spi_chip_write_256,
7077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7078 .voltage = {2700, 3600},
7079 },
7080
7081 {
7082 .vendor = "Macronix",
7083 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007084 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007085 .manufacture_id = MACRONIX_ID,
7086 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007087 .total_size = 16384,
7088 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007089 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
7090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007091 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007093 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007094 .block_erasers =
7095 {
7096 {
7097 .eraseblocks = { {4 * 1024, 4096} },
7098 .block_erase = spi_block_erase_20,
7099 }, {
7100 .eraseblocks = { {64 * 1024, 256} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {16 * 1024 * 1024, 1} },
7104 .block_erase = spi_block_erase_60,
7105 }, {
7106 .eraseblocks = { {16 * 1024 * 1024, 1} },
7107 .block_erase = spi_block_erase_c7,
7108 }
7109 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007110 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007111 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007112 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007113 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007114 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007115 },
7116
7117 {
7118 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007119 .name = "MX25U1635E",
7120 .bustype = BUS_SPI,
7121 .manufacture_id = MACRONIX_ID,
7122 .model_id = MACRONIX_MX25U1635E,
7123 .total_size = 2048,
7124 .page_size = 256,
7125 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7126 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7128 .tested = TEST_UNTESTED,
7129 .probe = probe_spi_rdid,
7130 .probe_timing = TIMING_ZERO,
7131 .block_erasers =
7132 {
7133 {
7134 .eraseblocks = { {4 * 1024, 512} },
7135 .block_erase = spi_block_erase_20,
7136 }, {
7137 .eraseblocks = { {32 * 1024, 64} },
7138 .block_erase = spi_block_erase_52,
7139 }, {
7140 .eraseblocks = { {64 * 1024, 32} },
7141 .block_erase = spi_block_erase_d8,
7142 }, {
7143 .eraseblocks = { {2 * 1024 * 1024, 1} },
7144 .block_erase = spi_block_erase_60,
7145 }, {
7146 .eraseblocks = { {2 * 1024 * 1024, 1} },
7147 .block_erase = spi_block_erase_c7,
7148 }
7149 },
7150 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007151 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007152 .unlock = spi_disable_blockprotect,
7153 .write = spi_chip_write_256,
7154 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7155 .voltage = {1650, 2000},
7156 },
7157
7158 {
7159 .vendor = "Macronix",
7160 .name = "MX25U3235E/F",
7161 .bustype = BUS_SPI,
7162 .manufacture_id = MACRONIX_ID,
7163 .model_id = MACRONIX_MX25U3235E,
7164 .total_size = 4096,
7165 .page_size = 256,
7166 /* F model supports SFDP */
7167 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7168 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7170 .tested = TEST_OK_PREW,
7171 .probe = probe_spi_rdid,
7172 .probe_timing = TIMING_ZERO,
7173 .block_erasers =
7174 {
7175 {
7176 .eraseblocks = { {4 * 1024, 1024} },
7177 .block_erase = spi_block_erase_20,
7178 }, {
7179 .eraseblocks = { {32 * 1024, 128} },
7180 .block_erase = spi_block_erase_52,
7181 }, {
7182 .eraseblocks = { {64 * 1024, 64} },
7183 .block_erase = spi_block_erase_d8,
7184 }, {
7185 .eraseblocks = { {4 * 1024 * 1024, 1} },
7186 .block_erase = spi_block_erase_60,
7187 }, {
7188 .eraseblocks = { {4 * 1024 * 1024, 1} },
7189 .block_erase = spi_block_erase_c7,
7190 }
7191 },
7192 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007193 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007194 .unlock = spi_disable_blockprotect,
7195 .write = spi_chip_write_256,
7196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7197 .voltage = {1650, 2000},
7198 },
7199
7200 {
7201 .vendor = "Macronix",
7202 .name = "MX25U6435E/F",
7203 .bustype = BUS_SPI,
7204 .manufacture_id = MACRONIX_ID,
7205 .model_id = MACRONIX_MX25U6435E,
7206 .total_size = 8192,
7207 .page_size = 256,
7208 /* F model supports SFDP */
7209 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7210 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7211 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7212 .tested = TEST_UNTESTED,
7213 .probe = probe_spi_rdid,
7214 .probe_timing = TIMING_ZERO,
7215 .block_erasers =
7216 {
7217 {
7218 .eraseblocks = { {4 * 1024, 2048} },
7219 .block_erase = spi_block_erase_20,
7220 }, {
7221 .eraseblocks = { {32 * 1024, 256} },
7222 .block_erase = spi_block_erase_52,
7223 }, {
7224 .eraseblocks = { {64 * 1024, 128} },
7225 .block_erase = spi_block_erase_d8,
7226 }, {
7227 .eraseblocks = { {8 * 1024 * 1024, 1} },
7228 .block_erase = spi_block_erase_60,
7229 }, {
7230 .eraseblocks = { {8 * 1024 * 1024, 1} },
7231 .block_erase = spi_block_erase_c7,
7232 }
7233 },
7234 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007235 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007236 .unlock = spi_disable_blockprotect,
7237 .write = spi_chip_write_256,
7238 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7239 .voltage = {1650, 2000},
7240 },
7241
7242 {
7243 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007244 .name = "MX25U12835F",
7245 .bustype = BUS_SPI,
7246 .manufacture_id = MACRONIX_ID,
7247 .model_id = MACRONIX_MX25U12835E,
7248 .total_size = 16384,
7249 .page_size = 256,
7250 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7251 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7252 .tested = TEST_UNTESTED,
7253 .probe = probe_spi_rdid,
7254 .probe_timing = TIMING_ZERO,
7255 .block_erasers =
7256 {
7257 {
7258 .eraseblocks = { {4 * 1024, 4096} },
7259 .block_erase = spi_block_erase_20,
7260 }, {
7261 .eraseblocks = { {32 * 1024, 512} },
7262 .block_erase = spi_block_erase_52,
7263 }, {
7264 .eraseblocks = { {64 * 1024, 256} },
7265 .block_erase = spi_block_erase_d8,
7266 }, {
7267 .eraseblocks = { {16 * 1024 * 1024, 1} },
7268 .block_erase = spi_block_erase_60,
7269 }, {
7270 .eraseblocks = { {16 * 1024 * 1024, 1} },
7271 .block_erase = spi_block_erase_c7,
7272 }
7273 },
7274 /* TODO: security register */
7275 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7276 .unlock = spi_disable_blockprotect_bp3_srwd,
7277 .write = spi_chip_write_256, /* Multi I/O supported */
7278 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7279 .voltage = {1650, 2000},
7280 },
7281
7282 {
Stefan Taunera4617f72015-01-10 15:59:54 +00007283 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00007284 .name = "MX25L6495F",
7285 .bustype = BUS_SPI,
7286 .manufacture_id = MACRONIX_ID,
7287 .model_id = MACRONIX_MX25L6495F,
7288 .total_size = 8192,
7289 .page_size = 256,
7290 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
7291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7292 .tested = TEST_OK_PREW,
7293 .probe = probe_spi_rdid,
7294 .probe_timing = TIMING_ZERO,
7295 .block_erasers =
7296 {
7297 {
7298 .eraseblocks = { {4 * 1024, 2048} },
7299 .block_erase = spi_block_erase_20,
7300 }, {
7301 .eraseblocks = { {64 * 1024, 128} },
7302 .block_erase = spi_block_erase_d8,
7303 }, {
7304 .eraseblocks = { {32 * 1024, 256} },
7305 .block_erase = spi_block_erase_52,
7306 }, {
7307 .eraseblocks = { {8 * 1024 * 1024, 1} },
7308 .block_erase = spi_block_erase_60,
7309 }, {
7310 .eraseblocks = { {8 * 1024 * 1024, 1} },
7311 .block_erase = spi_block_erase_c7,
7312 }
7313 },
7314 .unlock = spi_disable_blockprotect,
7315 .write = spi_chip_write_256,
7316 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7317 .voltage = {2700, 3600},
7318 },
7319
7320 {
Martin Roth440057a2014-07-13 00:05:07 +00007321 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007322 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007323 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007324 .manufacture_id = MACRONIX_ID,
7325 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007326 .total_size = 128,
7327 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007328 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7329 .tested = TEST_UNTESTED,
7330 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007331 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007332 .block_erasers =
7333 {
7334 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007335 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007336 {8 * 1024, 1},
7337 {4 * 1024, 2},
7338 {8 * 1024, 2},
7339 {32 * 1024, 1},
7340 {64 * 1024, 1},
7341 },
Sean Nelson35727f72010-01-28 23:55:12 +00007342 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007343 }, {
7344 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007345 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007346 }
7347 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007348 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007350 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007351 },
7352
7353 {
7354 .vendor = "Macronix",
7355 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007356 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007357 .manufacture_id = MACRONIX_ID,
7358 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007359 .total_size = 128,
7360 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007361 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007362 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007363 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007364 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007365 .block_erasers =
7366 {
7367 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007368 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007369 {64 * 1024, 1},
7370 {32 * 1024, 1},
7371 {8 * 1024, 2},
7372 {4 * 1024, 2},
7373 {8 * 1024, 1},
7374 },
Sean Nelson35727f72010-01-28 23:55:12 +00007375 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007376 }, {
7377 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007378 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007379 }
7380 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007381 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007382 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007383 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007384 },
7385
7386 {
7387 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007388 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007389 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007390 .manufacture_id = MACRONIX_ID,
7391 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007392 .total_size = 256,
7393 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007394 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007395 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007396 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007397 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007398 .block_erasers =
7399 {
7400 {
7401 .eraseblocks = {
7402 {16 * 1024, 1},
7403 {8 * 1024, 2},
7404 {32 * 1024, 1},
7405 {64 * 1024, 3},
7406 },
Sean Nelson35727f72010-01-28 23:55:12 +00007407 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007408 }, {
7409 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007410 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007411 },
7412 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007413 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007415 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007416 },
7417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 {
7419 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007420 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007421 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007422 .manufacture_id = MACRONIX_ID,
7423 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007424 .total_size = 256,
7425 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007426 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007427 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007428 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007429 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007430 .block_erasers =
7431 {
7432 {
7433 .eraseblocks = {
7434 {64 * 1024, 3},
7435 {32 * 1024, 1},
7436 {8 * 1024, 2},
7437 {16 * 1024, 1},
7438 },
Sean Nelson35727f72010-01-28 23:55:12 +00007439 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007440 }, {
7441 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007442 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007443 },
7444 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007445 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007447 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007448 },
7449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007450 {
7451 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007452 .name = "MX29F022(N)B",
7453 .bustype = BUS_PARALLEL,
7454 .manufacture_id = MACRONIX_ID,
7455 .model_id = MACRONIX_MX29F022B,
7456 .total_size = 256,
7457 .page_size = 0, /* unused */
7458 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7459 .tested = TEST_UNTESTED,
7460 .probe = probe_jedec,
7461 .probe_timing = TIMING_ZERO,
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = {
7466 {16 * 1024, 1},
7467 {8 * 1024, 2},
7468 {32 * 1024, 1},
7469 {64 * 1024, 3},
7470 },
7471 .block_erase = erase_sector_jedec,
7472 }, {
7473 .eraseblocks = { {256 * 1024, 1} },
7474 .block_erase = erase_chip_block_jedec,
7475 }
7476 },
7477 .write = write_jedec_1,
7478 .read = read_memmapped,
7479 .voltage = {4500, 5500},
7480 },
7481
7482 {
7483 .vendor = "Macronix",
7484 .name = "MX29F022(N)T",
7485 .bustype = BUS_PARALLEL,
7486 .manufacture_id = MACRONIX_ID,
7487 .model_id = MACRONIX_MX29F022T,
7488 .total_size = 256,
7489 .page_size = 0, /* unused */
7490 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7491 .tested = TEST_OK_PREW,
7492 .probe = probe_jedec,
7493 .probe_timing = TIMING_ZERO,
7494 .block_erasers =
7495 {
7496 {
7497 .eraseblocks = {
7498 {64 * 1024, 3},
7499 {32 * 1024, 1},
7500 {8 * 1024, 2},
7501 {16 * 1024, 1},
7502 },
7503 .block_erase = erase_sector_jedec,
7504 }, {
7505 .eraseblocks = { {256 * 1024, 1} },
7506 .block_erase = erase_chip_block_jedec,
7507 }
7508 },
7509 .write = write_jedec_1,
7510 .read = read_memmapped,
7511 .voltage = {4500, 5500},
7512 },
7513
7514 {
7515 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007516 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007517 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007518 .manufacture_id = MACRONIX_ID,
7519 .model_id = MACRONIX_MX29F040,
7520 .total_size = 512,
7521 .page_size = 64 * 1024,
7522 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7523 .tested = TEST_UNTESTED,
7524 .probe = probe_jedec,
7525 .probe_timing = TIMING_ZERO,
7526 .block_erasers =
7527 {
7528 {
7529 .eraseblocks = { {64 * 1024, 8} },
7530 .block_erase = erase_sector_jedec,
7531 }, {
7532 .eraseblocks = { {512 * 1024, 1} },
7533 .block_erase = erase_chip_block_jedec,
7534 },
7535 },
7536 .write = write_jedec_1,
7537 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007538 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007539 },
7540
7541 {
7542 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007543 .name = "MX29GL320EB",
7544 .bustype = BUS_PARALLEL,
7545 .manufacture_id = MACRONIX_ID,
7546 .model_id = MACRONIX_MX29GL320EB,
7547 .total_size = 4096,
7548 .page_size = 128 * 1024, /* actual page size is 16 */
7549 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7550 .tested = TEST_UNTESTED,
7551 .probe = probe_jedec_29gl,
7552 .probe_timing = TIMING_ZERO,
7553 .block_erasers =
7554 {
7555 {
7556 .eraseblocks = {
7557 {8 * 1024, 8},
7558 {64 * 1024, 63},
7559 },
7560 .block_erase = erase_sector_jedec,
7561 }, {
7562 .eraseblocks = { {4 * 1024 * 1024, 1} },
7563 .block_erase = erase_chip_block_jedec,
7564 },
7565 },
7566 .write = write_jedec_1,
7567 .read = read_memmapped,
7568 .voltage = {2700, 3600},
7569 },
7570
7571 {
7572 .vendor = "Macronix",
7573 .name = "MX29GL320ET",
7574 .bustype = BUS_PARALLEL,
7575 .manufacture_id = MACRONIX_ID,
7576 .model_id = MACRONIX_MX29GL320ET,
7577 .total_size = 4096,
7578 .page_size = 128 * 1024, /* actual page size is 16 */
7579 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7580 .tested = TEST_UNTESTED,
7581 .probe = probe_jedec_29gl,
7582 .probe_timing = TIMING_ZERO,
7583 .block_erasers =
7584 {
7585 {
7586 .eraseblocks = {
7587 {64 * 1024, 63},
7588 {8 * 1024, 8},
7589 },
7590 .block_erase = erase_sector_jedec,
7591 }, {
7592 .eraseblocks = { {4 * 1024 * 1024, 1} },
7593 .block_erase = erase_chip_block_jedec,
7594 },
7595 },
7596 .write = write_jedec_1,
7597 .read = read_memmapped,
7598 .voltage = {2700, 3600},
7599 },
7600
7601 {
7602 .vendor = "Macronix",
7603 .name = "MX29GL320EH/L",
7604 .bustype = BUS_PARALLEL,
7605 .manufacture_id = MACRONIX_ID,
7606 .model_id = MACRONIX_MX29GL320EHL,
7607 .total_size = 4096,
7608 .page_size = 128 * 1024, /* actual page size is 16 */
7609 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7610 .tested = TEST_UNTESTED,
7611 .probe = probe_jedec_29gl,
7612 .probe_timing = TIMING_ZERO,
7613 .block_erasers =
7614 {
7615 {
7616 .eraseblocks = { {64 * 1024, 64} },
7617 .block_erase = erase_sector_jedec,
7618 }, {
7619 .eraseblocks = { {4 * 1024 * 1024, 1} },
7620 .block_erase = erase_chip_block_jedec,
7621 },
7622 },
7623 .write = write_jedec_1,
7624 .read = read_memmapped,
7625 .voltage = {2700, 3600},
7626 },
7627
7628 {
7629 .vendor = "Macronix",
7630 .name = "MX29GL640EB",
7631 .bustype = BUS_PARALLEL,
7632 .manufacture_id = MACRONIX_ID,
7633 .model_id = MACRONIX_MX29GL640EB,
7634 .total_size = 8192,
7635 .page_size = 128 * 1024, /* actual page size is 16 */
7636 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7637 .tested = TEST_UNTESTED,
7638 .probe = probe_jedec_29gl,
7639 .probe_timing = TIMING_ZERO,
7640 .block_erasers =
7641 {
7642 {
7643 .eraseblocks = {
7644 {8 * 1024, 8},
7645 {64 * 1024, 127},
7646 },
7647 .block_erase = erase_sector_jedec,
7648 }, {
7649 .eraseblocks = { {8 * 1024 * 1024, 1} },
7650 .block_erase = erase_chip_block_jedec,
7651 },
7652 },
7653 .write = write_jedec_1,
7654 .read = read_memmapped,
7655 .voltage = {2700, 3600},
7656 },
7657
7658 {
7659 .vendor = "Macronix",
7660 .name = "MX29GL640ET",
7661 .bustype = BUS_PARALLEL,
7662 .manufacture_id = MACRONIX_ID,
7663 .model_id = MACRONIX_MX29GL640ET,
7664 .total_size = 8192,
7665 .page_size = 128 * 1024, /* actual page size is 16 */
7666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7667 .tested = TEST_UNTESTED,
7668 .probe = probe_jedec_29gl,
7669 .probe_timing = TIMING_ZERO,
7670 .block_erasers =
7671 {
7672 {
7673 .eraseblocks = {
7674 {64 * 1024, 127},
7675 {8 * 1024, 8},
7676 },
7677 .block_erase = erase_sector_jedec,
7678 }, {
7679 .eraseblocks = { {8 * 1024 * 1024, 1} },
7680 .block_erase = erase_chip_block_jedec,
7681 },
7682 },
7683 .write = write_jedec_1,
7684 .read = read_memmapped,
7685 .voltage = {2700, 3600},
7686 },
7687
7688 {
7689 .vendor = "Macronix",
7690 .name = "MX29GL640EH/L",
7691 .bustype = BUS_PARALLEL,
7692 .manufacture_id = MACRONIX_ID,
7693 .model_id = MACRONIX_MX29GL640EHL,
7694 .total_size = 8192,
7695 .page_size = 128 * 1024, /* actual page size is 16 */
7696 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7697 .tested = TEST_UNTESTED,
7698 .probe = probe_jedec_29gl,
7699 .probe_timing = TIMING_ZERO,
7700 .block_erasers =
7701 {
7702 {
7703 .eraseblocks = { {64 * 1024, 128} },
7704 .block_erase = erase_sector_jedec,
7705 }, {
7706 .eraseblocks = { {8 * 1024 * 1024, 1} },
7707 .block_erase = erase_chip_block_jedec,
7708 },
7709 },
7710 .write = write_jedec_1,
7711 .read = read_memmapped,
7712 .voltage = {2700, 3600},
7713 },
7714
7715 {
7716 .vendor = "Macronix",
7717 .name = "MX29GL128F",
7718 .bustype = BUS_PARALLEL,
7719 .manufacture_id = MACRONIX_ID,
7720 .model_id = MACRONIX_MX29GL128F,
7721 .total_size = 16384,
7722 .page_size = 128 * 1024, /* actual page size is 16 */
7723 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7724 .tested = TEST_UNTESTED,
7725 .probe = probe_jedec_29gl,
7726 .probe_timing = TIMING_ZERO,
7727 .block_erasers =
7728 {
7729 {
7730 .eraseblocks = { {128 * 1024, 128} },
7731 .block_erase = erase_sector_jedec,
7732 }, {
7733 .eraseblocks = { {16 * 1024 * 1024, 1} },
7734 .block_erase = erase_chip_block_jedec,
7735 },
7736 },
7737 .write = write_jedec_1,
7738 .read = read_memmapped,
7739 .voltage = {2700, 3600},
7740 },
7741
7742 {
7743 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007744 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007745 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007746 .manufacture_id = MACRONIX_ID,
7747 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007748 .total_size = 512,
7749 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007750 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7751 .tested = TEST_UNTESTED,
7752 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007753 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007754 .block_erasers =
7755 {
7756 {
Stefan Tauner6697f712014-08-06 15:09:15 +00007757 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00007758 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007759 }, {
7760 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007761 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007762 },
7763 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007764 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007765 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007766 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007767 },
7768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007769 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007770 .vendor = "Micron/Numonyx/ST",
7771 .name = "M25P05-A",
7772 .bustype = BUS_SPI,
7773 .manufacture_id = ST_ID,
7774 .model_id = ST_M25P05A,
7775 .total_size = 64,
7776 .page_size = 256,
7777 .feature_bits = FEATURE_WRSR_WREN,
7778 .tested = TEST_OK_PREW,
7779 .probe = probe_spi_rdid,
7780 .probe_timing = TIMING_ZERO,
7781 .block_erasers =
7782 {
7783 {
7784 .eraseblocks = { {32 * 1024, 2} },
7785 .block_erase = spi_block_erase_d8,
7786 }, {
7787 .eraseblocks = { {64 * 1024, 1} },
7788 .block_erase = spi_block_erase_c7,
7789 }
7790 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007791 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007792 .unlock = spi_disable_blockprotect,
7793 .write = spi_chip_write_256,
7794 .read = spi_chip_read,
7795 .voltage = {2700, 3600},
7796 },
7797
7798 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7799 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7800 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7801 * only is successful if RDID does not work.
7802 */
7803 {
7804 .vendor = "Micron/Numonyx/ST",
7805 .name = "M25P05",
7806 .bustype = BUS_SPI,
7807 .manufacture_id = 0, /* Not used. */
7808 .model_id = ST_M25P05_RES,
7809 .total_size = 64,
7810 .page_size = 256,
7811 .feature_bits = FEATURE_WRSR_WREN,
7812 .tested = TEST_UNTESTED,
7813 .probe = probe_spi_res1,
7814 .probe_timing = TIMING_ZERO,
7815 .block_erasers =
7816 {
7817 {
7818 .eraseblocks = { {32 * 1024, 2} },
7819 .block_erase = spi_block_erase_d8,
7820 }, {
7821 .eraseblocks = { {64 * 1024, 1} },
7822 .block_erase = spi_block_erase_c7,
7823 }
7824 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007825 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007826 .unlock = spi_disable_blockprotect,
7827 .write = spi_chip_write_1, /* 128 */
7828 .read = spi_chip_read,
7829 .voltage = {2700, 3600},
7830 },
7831
7832 {
7833 .vendor = "Micron/Numonyx/ST",
7834 .name = "M25P10-A",
7835 .bustype = BUS_SPI,
7836 .manufacture_id = ST_ID,
7837 .model_id = ST_M25P10A,
7838 .total_size = 128,
7839 .page_size = 256,
7840 .feature_bits = FEATURE_WRSR_WREN,
7841 .tested = TEST_OK_PRE,
7842 .probe = probe_spi_rdid,
7843 .probe_timing = TIMING_ZERO,
7844 .block_erasers =
7845 {
7846 {
7847 .eraseblocks = { {32 * 1024, 4} },
7848 .block_erase = spi_block_erase_d8,
7849 }, {
7850 .eraseblocks = { {128 * 1024, 1} },
7851 .block_erase = spi_block_erase_c7,
7852 }
7853 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007854 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007855 .unlock = spi_disable_blockprotect,
7856 .write = spi_chip_write_256,
7857 .read = spi_chip_read,
7858 .voltage = {2700, 3600},
7859 },
7860
7861 /* The ST M25P10 has the same problem as the M25P05. */
7862 {
7863 .vendor = "Micron/Numonyx/ST",
7864 .name = "M25P10",
7865 .bustype = BUS_SPI,
7866 .manufacture_id = 0, /* Not used. */
7867 .model_id = ST_M25P10_RES,
7868 .total_size = 128,
7869 .page_size = 256,
7870 .feature_bits = FEATURE_WRSR_WREN,
7871 .tested = TEST_UNTESTED,
7872 .probe = probe_spi_res1,
7873 .probe_timing = TIMING_ZERO,
7874 .block_erasers =
7875 {
7876 {
7877 .eraseblocks = { {32 * 1024, 4} },
7878 .block_erase = spi_block_erase_d8,
7879 }, {
7880 .eraseblocks = { {128 * 1024, 1} },
7881 .block_erase = spi_block_erase_c7,
7882 }
7883 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007884 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007885 .unlock = spi_disable_blockprotect,
7886 .write = spi_chip_write_1, /* 128 */
7887 .read = spi_chip_read,
7888 .voltage = {2700, 3600},
7889 },
7890
7891 {
7892 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7893 .name = "M25P20",
7894 .bustype = BUS_SPI,
7895 .manufacture_id = ST_ID,
7896 .model_id = ST_M25P20,
7897 .total_size = 256,
7898 .page_size = 256,
7899 .feature_bits = FEATURE_WRSR_WREN,
7900 .tested = TEST_UNTESTED,
7901 .probe = probe_spi_rdid,
7902 .probe_timing = TIMING_ZERO,
7903 .block_erasers =
7904 {
7905 {
7906 .eraseblocks = { {64 * 1024, 4} },
7907 .block_erase = spi_block_erase_d8,
7908 }, {
7909 .eraseblocks = { {256 * 1024, 1} },
7910 .block_erase = spi_block_erase_c7,
7911 }
7912 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007913 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007914 .unlock = spi_disable_blockprotect,
7915 .write = spi_chip_write_256,
7916 .read = spi_chip_read, /* Fast read (0x0B) supported */
7917 .voltage = {2700, 3600},
7918 },
7919
7920 {
7921 .vendor = "Micron/Numonyx/ST",
7922 .name = "M25P20-old",
7923 .bustype = BUS_SPI,
7924 .manufacture_id = 0, /* Not used. */
7925 .model_id = ST_M25P20_RES,
7926 .total_size = 256,
7927 .page_size = 256,
7928 .feature_bits = FEATURE_WRSR_WREN,
7929 .tested = TEST_OK_PREW,
7930 .probe = probe_spi_res1,
7931 .probe_timing = TIMING_ZERO,
7932 .block_erasers =
7933 {
7934 {
7935 .eraseblocks = { {64 * 1024, 4} },
7936 .block_erase = spi_block_erase_d8,
7937 }, {
7938 .eraseblocks = { {256 * 1024, 1} },
7939 .block_erase = spi_block_erase_c7,
7940 }
7941 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007942 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007943 .unlock = spi_disable_blockprotect,
7944 .write = spi_chip_write_256,
7945 .read = spi_chip_read, /* Fast read (0x0B) supported */
7946 .voltage = {2700, 3600},
7947 },
7948
7949 {
7950 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7951 .name = "M25P40",
7952 .bustype = BUS_SPI,
7953 .manufacture_id = ST_ID,
7954 .model_id = ST_M25P40,
7955 .total_size = 512,
7956 .page_size = 256,
7957 .feature_bits = FEATURE_WRSR_WREN,
7958 .tested = TEST_OK_PREW,
7959 .probe = probe_spi_rdid,
7960 .probe_timing = TIMING_ZERO,
7961 .block_erasers =
7962 {
7963 {
7964 .eraseblocks = { {64 * 1024, 8} },
7965 .block_erase = spi_block_erase_d8,
7966 }, {
7967 .eraseblocks = { {512 * 1024, 1} },
7968 .block_erase = spi_block_erase_c7,
7969 }
7970 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007971 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007972 .unlock = spi_disable_blockprotect,
7973 .write = spi_chip_write_256,
7974 .read = spi_chip_read,
7975 .voltage = {2700, 3600},
7976 },
7977
7978 {
7979 .vendor = "Micron/Numonyx/ST",
7980 .name = "M25P40-old",
7981 .bustype = BUS_SPI,
7982 .manufacture_id = 0, /* Not used. */
7983 .model_id = ST_M25P40_RES,
7984 .total_size = 512,
7985 .page_size = 256,
7986 .feature_bits = FEATURE_WRSR_WREN,
7987 .tested = TEST_UNTESTED,
7988 .probe = probe_spi_res1,
7989 .probe_timing = TIMING_ZERO,
7990 .block_erasers =
7991 {
7992 {
7993 .eraseblocks = { {64 * 1024, 8} },
7994 .block_erase = spi_block_erase_d8,
7995 }, {
7996 .eraseblocks = { {512 * 1024, 1} },
7997 .block_erase = spi_block_erase_c7,
7998 }
7999 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008000 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008001 .unlock = spi_disable_blockprotect,
8002 .write = spi_chip_write_256,
8003 .read = spi_chip_read,
8004 },
8005
8006 {
8007 .vendor = "Micron/Numonyx/ST",
8008 .name = "M25P80",
8009 .bustype = BUS_SPI,
8010 .manufacture_id = ST_ID,
8011 .model_id = ST_M25P80,
8012 .total_size = 1024,
8013 .page_size = 256,
8014 .feature_bits = FEATURE_WRSR_WREN,
8015 .tested = TEST_OK_PREW,
8016 .probe = probe_spi_rdid,
8017 .probe_timing = TIMING_ZERO,
8018 .block_erasers =
8019 {
8020 {
8021 .eraseblocks = { {64 * 1024, 16} },
8022 .block_erase = spi_block_erase_d8,
8023 }, {
8024 .eraseblocks = { {1024 * 1024, 1} },
8025 .block_erase = spi_block_erase_c7,
8026 }
8027 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008028 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008029 .unlock = spi_disable_blockprotect,
8030 .write = spi_chip_write_256,
8031 .read = spi_chip_read,
8032 .voltage = {2700, 3600},
8033 },
8034
8035 {
8036 .vendor = "Micron/Numonyx/ST",
8037 .name = "M25P16",
8038 .bustype = BUS_SPI,
8039 .manufacture_id = ST_ID,
8040 .model_id = ST_M25P16,
8041 .total_size = 2048,
8042 .page_size = 256,
8043 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008044 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008045 .probe = probe_spi_rdid,
8046 .probe_timing = TIMING_ZERO,
8047 .block_erasers =
8048 {
8049 {
8050 .eraseblocks = { {64 * 1024, 32} },
8051 .block_erase = spi_block_erase_d8,
8052 }, {
8053 .eraseblocks = { {2 * 1024 * 1024, 1} },
8054 .block_erase = spi_block_erase_c7,
8055 }
8056 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008057 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008058 .unlock = spi_disable_blockprotect,
8059 .write = spi_chip_write_256,
8060 .read = spi_chip_read,
8061 .voltage = {2700, 3600},
8062 },
8063
8064 {
8065 .vendor = "Micron/Numonyx/ST",
8066 .name = "M25P32",
8067 .bustype = BUS_SPI,
8068 .manufacture_id = ST_ID,
8069 .model_id = ST_M25P32,
8070 .total_size = 4096,
8071 .page_size = 256,
8072 .feature_bits = FEATURE_WRSR_WREN,
8073 .tested = TEST_OK_PREW,
8074 .probe = probe_spi_rdid,
8075 .probe_timing = TIMING_ZERO,
8076 .block_erasers =
8077 {
8078 {
8079 .eraseblocks = { {64 * 1024, 64} },
8080 .block_erase = spi_block_erase_d8,
8081 }, {
8082 .eraseblocks = { {4 * 1024 * 1024, 1} },
8083 .block_erase = spi_block_erase_c7,
8084 }
8085 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008086 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008087 .unlock = spi_disable_blockprotect,
8088 .write = spi_chip_write_256,
8089 .read = spi_chip_read,
8090 .voltage = {2700, 3600},
8091 },
8092
8093 {
8094 .vendor = "Micron/Numonyx/ST",
8095 .name = "M25P64",
8096 .bustype = BUS_SPI,
8097 .manufacture_id = ST_ID,
8098 .model_id = ST_M25P64,
8099 .total_size = 8192,
8100 .page_size = 256,
8101 .feature_bits = FEATURE_WRSR_WREN,
8102 .tested = TEST_OK_PREW,
8103 .probe = probe_spi_rdid,
8104 .probe_timing = TIMING_ZERO,
8105 .block_erasers =
8106 {
8107 {
8108 .eraseblocks = { {64 * 1024, 128} },
8109 .block_erase = spi_block_erase_d8,
8110 }, {
8111 .eraseblocks = { {8 * 1024 * 1024, 1} },
8112 .block_erase = spi_block_erase_c7,
8113 }
8114 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008115 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008116 .unlock = spi_disable_blockprotect,
8117 .write = spi_chip_write_256,
8118 .read = spi_chip_read,
8119 .voltage = {2700, 3600},
8120 },
8121
8122 {
8123 .vendor = "Micron/Numonyx/ST",
8124 .name = "M25P128",
8125 .bustype = BUS_SPI,
8126 .manufacture_id = ST_ID,
8127 .model_id = ST_M25P128,
8128 .total_size = 16384,
8129 .page_size = 256,
8130 .feature_bits = FEATURE_WRSR_WREN,
8131 .tested = TEST_OK_PREW,
8132 .probe = probe_spi_rdid,
8133 .probe_timing = TIMING_ZERO,
8134 .block_erasers =
8135 {
8136 {
8137 .eraseblocks = { {256 * 1024, 64} },
8138 .block_erase = spi_block_erase_d8,
8139 }, {
8140 .eraseblocks = { {16 * 1024 * 1024, 1} },
8141 .block_erase = spi_block_erase_c7,
8142 }
8143 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008144 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008145 .unlock = spi_disable_blockprotect,
8146 .write = spi_chip_write_256,
8147 .read = spi_chip_read,
8148 .voltage = {2700, 3600},
8149 },
8150
8151 {
8152 .vendor = "Micron/Numonyx/ST",
8153 .name = "M25PE10",
8154 .bustype = BUS_SPI,
8155 .manufacture_id = ST_ID,
8156 .model_id = ST_M25PE10,
8157 .total_size = 128,
8158 .page_size = 256,
8159 .feature_bits = FEATURE_WRSR_WREN,
8160 .tested = TEST_UNTESTED,
8161 .probe = probe_spi_rdid,
8162 .probe_timing = TIMING_ZERO,
8163 .block_erasers =
8164 {
8165 {
8166 .eraseblocks = { {4 * 1024, 32} },
8167 .block_erase = spi_block_erase_20,
8168 }, {
8169 .eraseblocks = { {64 * 1024, 2} },
8170 .block_erase = spi_block_erase_d8,
8171 }, {
8172 .eraseblocks = { {128 * 1024, 1} },
8173 .block_erase = spi_block_erase_c7,
8174 }
8175 },
8176 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8177 .unlock = spi_disable_blockprotect,
8178 .write = spi_chip_write_256,
8179 .read = spi_chip_read,
8180 .voltage = {2700, 3600},
8181 },
8182
8183 {
8184 .vendor = "Micron/Numonyx/ST",
8185 .name = "M25PE20",
8186 .bustype = BUS_SPI,
8187 .manufacture_id = ST_ID,
8188 .model_id = ST_M25PE20,
8189 .total_size = 256,
8190 .page_size = 256,
8191 .feature_bits = FEATURE_WRSR_WREN,
8192 .tested = TEST_UNTESTED,
8193 .probe = probe_spi_rdid,
8194 .probe_timing = TIMING_ZERO,
8195 .block_erasers =
8196 {
8197 {
8198 .eraseblocks = { {4 * 1024, 64} },
8199 .block_erase = spi_block_erase_20,
8200 }, {
8201 .eraseblocks = { {64 * 1024, 4} },
8202 .block_erase = spi_block_erase_d8,
8203 }, {
8204 .eraseblocks = { {256 * 1024, 1} },
8205 .block_erase = spi_block_erase_c7,
8206 }
8207 },
8208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8209 .unlock = spi_disable_blockprotect,
8210 .write = spi_chip_write_256,
8211 .read = spi_chip_read,
8212 .voltage = {2700, 3600},
8213 },
8214
8215 {
8216 .vendor = "Micron/Numonyx/ST",
8217 .name = "M25PE40",
8218 .bustype = BUS_SPI,
8219 .manufacture_id = ST_ID,
8220 .model_id = ST_M25PE40,
8221 .total_size = 512,
8222 .page_size = 256,
8223 .feature_bits = FEATURE_WRSR_WREN,
8224 .tested = TEST_UNTESTED,
8225 .probe = probe_spi_rdid,
8226 .probe_timing = TIMING_ZERO,
8227 .block_erasers =
8228 {
8229 {
8230 .eraseblocks = { {4 * 1024, 128} },
8231 .block_erase = spi_block_erase_20,
8232 }, {
8233 .eraseblocks = { {64 * 1024, 8} },
8234 .block_erase = spi_block_erase_d8,
8235 }, {
8236 .eraseblocks = { {512 * 1024, 1} },
8237 .block_erase = spi_block_erase_c7,
8238 }
8239 },
8240 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8241 .unlock = spi_disable_blockprotect,
8242 .write = spi_chip_write_256,
8243 .read = spi_chip_read,
8244 .voltage = {2700, 3600},
8245 },
8246
8247 {
8248 .vendor = "Micron/Numonyx/ST",
8249 .name = "M25PE80",
8250 .bustype = BUS_SPI,
8251 .manufacture_id = ST_ID,
8252 .model_id = ST_M25PE80,
8253 .total_size = 1024,
8254 .page_size = 256,
8255 .feature_bits = FEATURE_WRSR_WREN,
8256 .tested = TEST_OK_PREW,
8257 .probe = probe_spi_rdid,
8258 .probe_timing = TIMING_ZERO,
8259 .block_erasers =
8260 {
8261 {
8262 .eraseblocks = { {4 * 1024, 256} },
8263 .block_erase = spi_block_erase_20,
8264 }, {
8265 .eraseblocks = { {64 * 1024, 16} },
8266 .block_erase = spi_block_erase_d8,
8267 }, {
8268 .eraseblocks = { {1024 * 1024, 1} },
8269 .block_erase = spi_block_erase_c7,
8270 }
8271 },
8272 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8273 .unlock = spi_disable_blockprotect,
8274 .write = spi_chip_write_256,
8275 .read = spi_chip_read,
8276 .voltage = {2700, 3600},
8277 },
8278
8279 {
8280 .vendor = "Micron/Numonyx/ST",
8281 .name = "M25PE16",
8282 .bustype = BUS_SPI,
8283 .manufacture_id = ST_ID,
8284 .model_id = ST_M25PE16,
8285 .total_size = 2048,
8286 .page_size = 256,
8287 .feature_bits = FEATURE_WRSR_WREN,
8288 .tested = TEST_UNTESTED,
8289 .probe = probe_spi_rdid,
8290 .probe_timing = TIMING_ZERO,
8291 .block_erasers =
8292 {
8293 {
8294 .eraseblocks = { {4 * 1024, 512} },
8295 .block_erase = spi_block_erase_20,
8296 }, {
8297 .eraseblocks = { {64 * 1024, 32} },
8298 .block_erase = spi_block_erase_d8,
8299 }, {
8300 .eraseblocks = { {2 * 1024 * 1024, 1} },
8301 .block_erase = spi_block_erase_c7,
8302 }
8303 },
8304 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8305 .unlock = spi_disable_blockprotect,
8306 .write = spi_chip_write_256,
8307 .read = spi_chip_read,
8308 .voltage = {2700, 3600},
8309 },
8310
8311 {
8312 .vendor = "Micron/Numonyx/ST",
8313 .name = "M25PX80",
8314 .bustype = BUS_SPI,
8315 .manufacture_id = ST_ID,
8316 .model_id = ST_M25PX80,
8317 .total_size = 1024,
8318 .page_size = 256,
8319 /* OTP: 64B total; read 0x4B, write 0x42 */
8320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8321 .tested = TEST_OK_PREW,
8322 .probe = probe_spi_rdid,
8323 .probe_timing = TIMING_ZERO,
8324 .block_erasers = {
8325 {
8326 .eraseblocks = { { 4 * 1024, 256 } },
8327 .block_erase = spi_block_erase_20,
8328 }, {
8329 .eraseblocks = { {64 * 1024, 16} },
8330 .block_erase = spi_block_erase_d8,
8331 }, {
8332 .eraseblocks = { {1024 * 1024, 1} },
8333 .block_erase = spi_block_erase_c7,
8334 }
8335 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008336 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008337 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8338 .write = spi_chip_write_256,
8339 .read = spi_chip_read,
8340 .voltage = {2700, 3600},
8341 },
8342
8343 {
8344 .vendor = "Micron/Numonyx/ST",
8345 .name = "M25PX16",
8346 .bustype = BUS_SPI,
8347 .manufacture_id = ST_ID,
8348 .model_id = ST_M25PX16,
8349 .total_size = 2048,
8350 .page_size = 256,
8351 /* OTP: 64B total; read 0x4B; write 0x42 */
8352 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8353 .tested = TEST_OK_PREW,
8354 .probe = probe_spi_rdid,
8355 .probe_timing = TIMING_ZERO,
8356 .block_erasers =
8357 {
8358 {
8359 .eraseblocks = { { 4 * 1024, 512 } },
8360 .block_erase = spi_block_erase_20,
8361 }, {
8362 .eraseblocks = { {64 * 1024, 32} },
8363 .block_erase = spi_block_erase_d8,
8364 }, {
8365 .eraseblocks = { {2 * 1024 * 1024, 1} },
8366 .block_erase = spi_block_erase_c7,
8367 }
8368 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008369 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008370 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8371 .write = spi_chip_write_256,
8372 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008373 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008374 },
8375
8376 {
8377 .vendor = "Micron/Numonyx/ST",
8378 .name = "M25PX32",
8379 .bustype = BUS_SPI,
8380 .manufacture_id = ST_ID,
8381 .model_id = ST_M25PX32,
8382 .total_size = 4096,
8383 .page_size = 256,
8384 /* OTP: 64B total; read 0x4B; write 0x42 */
8385 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8386 .tested = TEST_OK_PRE,
8387 .probe = probe_spi_rdid,
8388 .probe_timing = TIMING_ZERO,
8389 .block_erasers =
8390 {
8391 {
8392 .eraseblocks = { { 4 * 1024, 1024 } },
8393 .block_erase = spi_block_erase_20,
8394 }, {
8395 .eraseblocks = { {64 * 1024, 64} },
8396 .block_erase = spi_block_erase_d8,
8397 }, {
8398 .eraseblocks = { {4 * 1024 * 1024, 1} },
8399 .block_erase = spi_block_erase_c7,
8400 }
8401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008402 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008403 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8404 .write = spi_chip_write_256,
8405 .read = spi_chip_read,
8406 .voltage = {2700, 3600},
8407 },
8408
8409 {
8410 .vendor = "Micron/Numonyx/ST",
8411 .name = "M25PX64",
8412 .bustype = BUS_SPI,
8413 .manufacture_id = ST_ID,
8414 .model_id = ST_M25PX64,
8415 .total_size = 8192,
8416 .page_size = 256,
8417 /* OTP: 64B total; read 0x4B; write 0x42 */
8418 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008419 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008420 .probe = probe_spi_rdid,
8421 .probe_timing = TIMING_ZERO,
8422 .block_erasers =
8423 {
8424 {
8425 .eraseblocks = { { 4 * 1024, 2048 } },
8426 .block_erase = spi_block_erase_20,
8427 }, {
8428 .eraseblocks = { {64 * 1024, 128} },
8429 .block_erase = spi_block_erase_d8,
8430 }, {
8431 .eraseblocks = { {8 * 1024 * 1024, 1} },
8432 .block_erase = spi_block_erase_c7,
8433 }
8434 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008435 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008436 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8437 .write = spi_chip_write_256,
8438 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008439 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008440 },
8441
8442 {
8443 .vendor = "Micron/Numonyx/ST",
8444 .name = "M45PE10",
8445 .bustype = BUS_SPI,
8446 .manufacture_id = ST_ID,
8447 .model_id = ST_M45PE10,
8448 .total_size = 128,
8449 .page_size = 256,
8450 .tested = TEST_UNTESTED,
8451 .probe = probe_spi_rdid,
8452 .probe_timing = TIMING_ZERO,
8453 .block_erasers = {
8454 {
8455 .eraseblocks = { {256, 512} },
8456 .block_erase = spi_block_erase_db,
8457 }, {
8458 .eraseblocks = { {64 * 1024, 2} },
8459 .block_erase = spi_block_erase_d8,
8460 }
8461 },
8462 .printlock = spi_prettyprint_status_register_default_welwip,
8463 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8464 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8465 .read = spi_chip_read, /* Fast read (0x0B) supported */
8466 .voltage = {2700, 3600},
8467 },
8468
8469 {
8470 .vendor = "Micron/Numonyx/ST",
8471 .name = "M45PE20",
8472 .bustype = BUS_SPI,
8473 .manufacture_id = ST_ID,
8474 .model_id = ST_M45PE20,
8475 .total_size = 256,
8476 .page_size = 256,
8477 .tested = TEST_UNTESTED,
8478 .probe = probe_spi_rdid,
8479 .probe_timing = TIMING_ZERO,
8480 .block_erasers = {
8481 {
8482 .eraseblocks = { {256, 1024} },
8483 .block_erase = spi_block_erase_db,
8484 }, {
8485 .eraseblocks = { {64 * 1024, 4} },
8486 .block_erase = spi_block_erase_d8,
8487 }
8488 },
8489 .printlock = spi_prettyprint_status_register_default_welwip,
8490 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8491 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8492 .read = spi_chip_read, /* Fast read (0x0B) supported */
8493 .voltage = {2700, 3600},
8494 },
8495
8496 {
8497 .vendor = "Micron/Numonyx/ST",
8498 .name = "M45PE40",
8499 .bustype = BUS_SPI,
8500 .manufacture_id = ST_ID,
8501 .model_id = ST_M45PE40,
8502 .total_size = 512,
8503 .page_size = 256,
8504 .tested = TEST_UNTESTED,
8505 .probe = probe_spi_rdid,
8506 .probe_timing = TIMING_ZERO,
8507 .block_erasers = {
8508 {
8509 .eraseblocks = { {256, 2048} },
8510 .block_erase = spi_block_erase_db,
8511 }, {
8512 .eraseblocks = { {64 * 1024, 8} },
8513 .block_erase = spi_block_erase_d8,
8514 }
8515 },
8516 .printlock = spi_prettyprint_status_register_default_welwip,
8517 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8518 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8519 .read = spi_chip_read, /* Fast read (0x0B) supported */
8520 .voltage = {2700, 3600},
8521 },
8522
8523 {
8524 .vendor = "Micron/Numonyx/ST",
8525 .name = "M45PE80",
8526 .bustype = BUS_SPI,
8527 .manufacture_id = ST_ID,
8528 .model_id = ST_M45PE80,
8529 .total_size = 1024,
8530 .page_size = 256,
8531 .tested = TEST_UNTESTED,
8532 .probe = probe_spi_rdid,
8533 .probe_timing = TIMING_ZERO,
8534 .block_erasers = {
8535 {
8536 .eraseblocks = { {256, 4096} },
8537 .block_erase = spi_block_erase_db,
8538 }, {
8539 .eraseblocks = { {64 * 1024, 16} },
8540 .block_erase = spi_block_erase_d8,
8541 }
8542 },
8543 .printlock = spi_prettyprint_status_register_default_welwip,
8544 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8545 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8546 .read = spi_chip_read, /* Fast read (0x0B) supported */
8547 .voltage = {2700, 3600},
8548 },
8549
8550 {
8551 .vendor = "Micron/Numonyx/ST",
8552 .name = "M45PE16",
8553 .bustype = BUS_SPI,
8554 .manufacture_id = ST_ID,
8555 .model_id = ST_M45PE16,
8556 .total_size = 2048,
8557 .page_size = 256,
8558 .tested = TEST_UNTESTED,
8559 .probe = probe_spi_rdid,
8560 .probe_timing = TIMING_ZERO,
8561 .block_erasers = {
8562 {
8563 .eraseblocks = { {256, 8192} },
8564 .block_erase = spi_block_erase_db,
8565 }, {
8566 .eraseblocks = { {64 * 1024, 32} },
8567 .block_erase = spi_block_erase_d8,
8568 }
8569 },
8570 .printlock = spi_prettyprint_status_register_default_welwip,
8571 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8572 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8573 .read = spi_chip_read, /* Fast read (0x0B) supported */
8574 .voltage = {2700, 3600},
8575 },
8576
8577 {
8578 .vendor = "Micron/Numonyx/ST",
8579 .name = "N25Q016",
8580 .bustype = BUS_SPI,
8581 .manufacture_id = ST_ID,
8582 .model_id = ST_N25Q016__1E,
8583 .total_size = 2048,
8584 .page_size = 256,
8585 /* supports SFDP */
8586 /* OTP: 64B total; read 0x4B, write 0x42 */
8587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8588 .tested = TEST_UNTESTED,
8589 .probe = probe_spi_rdid,
8590 .probe_timing = TIMING_ZERO,
8591 .block_erasers =
8592 {
8593 {
8594 .eraseblocks = { {4 * 1024, 512} },
8595 .block_erase = spi_block_erase_20,
8596 }, {
8597 .eraseblocks = { {32 * 1024, 64} },
8598 .block_erase = spi_block_erase_52,
8599 }, {
8600 .eraseblocks = { {64 * 1024, 32} },
8601 .block_erase = spi_block_erase_d8,
8602 }, {
8603 .eraseblocks = { {2 * 1024 * 1024, 1} },
8604 .block_erase = spi_block_erase_c7,
8605 }
8606 },
8607 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8608 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8609 .write = spi_chip_write_256, /* Multi I/O supported */
8610 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8611 .voltage = {1700, 2000},
8612 },
8613
8614 {
8615 .vendor = "Micron/Numonyx/ST",
8616 .name = "N25Q032..1E",
8617 .bustype = BUS_SPI,
8618 .manufacture_id = ST_ID,
8619 .model_id = ST_N25Q032__1E,
8620 .total_size = 4096,
8621 .page_size = 256,
8622 /* supports SFDP */
8623 /* OTP: 64B total; read 0x4B, write 0x42 */
8624 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8625 .tested = TEST_UNTESTED,
8626 .probe = probe_spi_rdid,
8627 .probe_timing = TIMING_ZERO,
8628 .block_erasers =
8629 {
8630 {
8631 .eraseblocks = { {4 * 1024, 1024} },
8632 .block_erase = spi_block_erase_20,
8633 }, {
8634 .eraseblocks = { {64 * 1024, 64} },
8635 .block_erase = spi_block_erase_d8,
8636 }, {
8637 .eraseblocks = { {4 * 1024 * 1024, 1} },
8638 .block_erase = spi_block_erase_c7,
8639 }
8640 },
8641 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8642 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8643 .write = spi_chip_write_256, /* Multi I/O supported */
8644 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8645 .voltage = {1700, 2000},
8646 },
8647
8648 {
8649 .vendor = "Micron/Numonyx/ST",
8650 .name = "N25Q032..3E",
8651 .bustype = BUS_SPI,
8652 .manufacture_id = ST_ID,
8653 .model_id = ST_N25Q032__3E,
8654 .total_size = 4096,
8655 .page_size = 256,
8656 /* supports SFDP */
8657 /* OTP: 64B total; read 0x4B, write 0x42 */
8658 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8659 .tested = TEST_OK_PREW,
8660 .probe = probe_spi_rdid,
8661 .probe_timing = TIMING_ZERO,
8662 .block_erasers =
8663 {
8664 {
8665 .eraseblocks = { {4 * 1024, 1024} },
8666 .block_erase = spi_block_erase_20,
8667 }, {
8668 .eraseblocks = { {64 * 1024, 64} },
8669 .block_erase = spi_block_erase_d8,
8670 }, {
8671 .eraseblocks = { {4 * 1024 * 1024, 1} },
8672 .block_erase = spi_block_erase_c7,
8673 }
8674 },
8675 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8676 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8677 .write = spi_chip_write_256, /* Multi I/O supported */
8678 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8679 .voltage = {2700, 3600},
8680 },
8681
8682 {
8683 .vendor = "Micron/Numonyx/ST",
8684 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8685 .bustype = BUS_SPI,
8686 .manufacture_id = ST_ID,
8687 .model_id = ST_N25Q064__1E,
8688 .total_size = 8192,
8689 .page_size = 256,
8690 /* supports SFDP */
8691 /* OTP: 64B total; read 0x4B, write 0x42 */
8692 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008693 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008694 .probe = probe_spi_rdid,
8695 .probe_timing = TIMING_ZERO,
8696 .block_erasers =
8697 {
8698 {
8699 .eraseblocks = { {4 * 1024, 2048 } },
8700 .block_erase = spi_block_erase_20,
8701 }, {
8702 .eraseblocks = { {64 * 1024, 128} },
8703 .block_erase = spi_block_erase_d8,
8704 }, {
8705 .eraseblocks = { {8 * 1024 * 1024, 1} },
8706 .block_erase = spi_block_erase_c7,
8707 }
8708 },
8709 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8710 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8711 .write = spi_chip_write_256, /* Multi I/O supported */
8712 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8713 .voltage = {1700, 2000},
8714 },
8715
8716 {
8717 .vendor = "Micron/Numonyx/ST",
8718 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8719 .bustype = BUS_SPI,
8720 .manufacture_id = ST_ID,
8721 .model_id = ST_N25Q064__3E,
8722 .total_size = 8192,
8723 .page_size = 256,
8724 /* supports SFDP */
8725 /* OTP: 64B total; read 0x4B, write 0x42 */
8726 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8727 .tested = TEST_OK_PREW,
8728 .probe = probe_spi_rdid,
8729 .probe_timing = TIMING_ZERO,
8730 .block_erasers =
8731 {
8732 {
8733 .eraseblocks = { {4 * 1024, 2048 } },
8734 .block_erase = spi_block_erase_20,
8735 }, {
8736 .eraseblocks = { {64 * 1024, 128} },
8737 .block_erase = spi_block_erase_d8,
8738 }, {
8739 .eraseblocks = { {8 * 1024 * 1024, 1} },
8740 .block_erase = spi_block_erase_c7,
8741 }
8742 },
8743 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8744 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8745 .write = spi_chip_write_256, /* Multi I/O supported */
8746 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8747 .voltage = {2700, 3600},
8748 },
8749
8750 {
8751 .vendor = "Micron/Numonyx/ST",
8752 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8753 .bustype = BUS_SPI,
8754 .manufacture_id = ST_ID,
8755 .model_id = ST_N25Q128__1E,
8756 .total_size = 16384,
8757 .page_size = 256,
8758 /* supports SFDP */
8759 /* OTP: 64B total; read 0x4B, write 0x42 */
8760 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8761 .tested = TEST_UNTESTED,
8762 .probe = probe_spi_rdid,
8763 .probe_timing = TIMING_ZERO,
8764 .block_erasers = {
8765 {
8766 .eraseblocks = { {4 * 1024, 4096 } },
8767 .block_erase = spi_block_erase_20,
8768 }, {
8769 .eraseblocks = { {64 * 1024, 256} },
8770 .block_erase = spi_block_erase_d8,
8771 }, {
8772 .eraseblocks = { {16384 * 1024, 1} },
8773 .block_erase = spi_block_erase_c7,
8774 }
8775 },
8776 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8777 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8778 .write = spi_chip_write_256, /* Multi I/O supported */
8779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8780 .voltage = {1700, 2000},
8781 },
8782
8783 {
8784 .vendor = "Micron/Numonyx/ST",
8785 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8786 .bustype = BUS_SPI,
8787 .manufacture_id = ST_ID,
8788 .model_id = ST_N25Q128__3E,
8789 .total_size = 16384,
8790 .page_size = 256,
8791 /* supports SFDP */
8792 /* OTP: 64B total; read 0x4B, write 0x42 */
8793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8794 .tested = TEST_OK_PREW,
8795 .probe = probe_spi_rdid,
8796 .probe_timing = TIMING_ZERO,
8797 .block_erasers = {
8798 {
8799 .eraseblocks = { {4 * 1024, 4096 } },
8800 .block_erase = spi_block_erase_20,
8801 }, {
8802 .eraseblocks = { {64 * 1024, 256} },
8803 .block_erase = spi_block_erase_d8,
8804 }, {
8805 .eraseblocks = { {16384 * 1024, 1} },
8806 .block_erase = spi_block_erase_c7,
8807 }
8808 },
8809 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8810 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8811 .write = spi_chip_write_256, /* Multi I/O supported */
8812 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8813 .voltage = {2700, 3600},
8814 },
8815
8816 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008817 .vendor = "MoselVitelic",
8818 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008819 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008820 .manufacture_id = SYNCMOS_MVC_ID,
8821 .model_id = MVC_V29C51000B,
8822 .total_size = 64,
8823 .page_size = 512,
8824 .feature_bits = FEATURE_EITHER_RESET,
8825 .tested = TEST_UNTESTED,
8826 .probe = probe_jedec,
8827 .probe_timing = TIMING_ZERO,
8828 .block_erasers =
8829 {
8830 {
8831 .eraseblocks = { {512, 128} },
8832 .block_erase = erase_sector_jedec,
8833 }, {
8834 .eraseblocks = { {64 * 1024, 1} },
8835 .block_erase = erase_chip_block_jedec,
8836 },
8837 },
8838 .write = write_jedec_1,
8839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008840 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008841 },
8842
8843 {
8844 .vendor = "MoselVitelic",
8845 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008846 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008847 .manufacture_id = SYNCMOS_MVC_ID,
8848 .model_id = MVC_V29C51000T,
8849 .total_size = 64,
8850 .page_size = 512,
8851 .feature_bits = FEATURE_EITHER_RESET,
8852 .tested = TEST_UNTESTED,
8853 .probe = probe_jedec,
8854 .probe_timing = TIMING_ZERO,
8855 .block_erasers =
8856 {
8857 {
8858 .eraseblocks = { {512, 128} },
8859 .block_erase = erase_sector_jedec,
8860 }, {
8861 .eraseblocks = { {64 * 1024, 1} },
8862 .block_erase = erase_chip_block_jedec,
8863 },
8864 },
8865 .write = write_jedec_1,
8866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008867 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008868 },
8869
8870 {
8871 .vendor = "MoselVitelic",
8872 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008873 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008874 .manufacture_id = SYNCMOS_MVC_ID,
8875 .model_id = MVC_V29C51400B,
8876 .total_size = 512,
8877 .page_size = 1024,
8878 .feature_bits = FEATURE_EITHER_RESET,
8879 .tested = TEST_UNTESTED,
8880 .probe = probe_jedec,
8881 .probe_timing = TIMING_ZERO,
8882 .block_erasers =
8883 {
8884 {
8885 .eraseblocks = { {1024, 512} },
8886 .block_erase = erase_sector_jedec,
8887 }, {
8888 .eraseblocks = { {512 * 1024, 1} },
8889 .block_erase = erase_chip_block_jedec,
8890 },
8891 },
8892 .write = write_jedec_1,
8893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008894 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008895 },
8896
8897 {
8898 .vendor = "MoselVitelic",
8899 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008900 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008901 .manufacture_id = SYNCMOS_MVC_ID,
8902 .model_id = MVC_V29C51400T,
8903 .total_size = 512,
8904 .page_size = 1024,
8905 .feature_bits = FEATURE_EITHER_RESET,
8906 .tested = TEST_UNTESTED,
8907 .probe = probe_jedec,
8908 .probe_timing = TIMING_ZERO,
8909 .block_erasers =
8910 {
8911 {
8912 .eraseblocks = { {1024, 512} },
8913 .block_erase = erase_sector_jedec,
8914 }, {
8915 .eraseblocks = { {512 * 1024, 1} },
8916 .block_erase = erase_chip_block_jedec,
8917 },
8918 },
8919 .write = write_jedec_1,
8920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008921 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008922 },
8923
8924 {
8925 .vendor = "MoselVitelic",
8926 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008927 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008928 .manufacture_id = SYNCMOS_MVC_ID,
8929 .model_id = MVC_V29LC51000,
8930 .total_size = 64,
8931 .page_size = 512,
8932 .feature_bits = FEATURE_EITHER_RESET,
8933 .tested = TEST_UNTESTED,
8934 .probe = probe_jedec,
8935 .probe_timing = TIMING_ZERO,
8936 .block_erasers =
8937 {
8938 {
8939 .eraseblocks = { {512, 128} },
8940 .block_erase = erase_sector_jedec,
8941 }, {
8942 .eraseblocks = { {64 * 1024, 1} },
8943 .block_erase = erase_chip_block_jedec,
8944 },
8945 },
8946 .write = write_jedec_1,
8947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008948 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008949 },
8950
8951 {
8952 .vendor = "MoselVitelic",
8953 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008954 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008955 .manufacture_id = SYNCMOS_MVC_ID,
8956 .model_id = MVC_V29LC51001,
8957 .total_size = 128,
8958 .page_size = 512,
8959 .feature_bits = FEATURE_EITHER_RESET,
8960 .tested = TEST_UNTESTED,
8961 .probe = probe_jedec,
8962 .probe_timing = TIMING_ZERO,
8963 .block_erasers =
8964 {
8965 {
8966 .eraseblocks = { {512, 256} },
8967 .block_erase = erase_sector_jedec,
8968 }, {
8969 .eraseblocks = { {128 * 1024, 1} },
8970 .block_erase = erase_chip_block_jedec,
8971 },
8972 },
8973 .write = write_jedec_1,
8974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008975 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008976 },
8977
8978 {
8979 .vendor = "MoselVitelic",
8980 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008981 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008982 .manufacture_id = SYNCMOS_MVC_ID,
8983 .model_id = MVC_V29LC51002,
8984 .total_size = 256,
8985 .page_size = 512,
8986 .feature_bits = FEATURE_EITHER_RESET,
8987 .tested = TEST_UNTESTED,
8988 .probe = probe_jedec,
8989 .probe_timing = TIMING_ZERO,
8990 .block_erasers =
8991 {
8992 {
8993 .eraseblocks = { {512, 512} },
8994 .block_erase = erase_sector_jedec,
8995 }, {
8996 .eraseblocks = { {256 * 1024, 1} },
8997 .block_erase = erase_chip_block_jedec,
8998 },
8999 },
9000 .write = write_jedec_1,
9001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009002 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009003 },
9004
9005 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009006 .vendor = "Nantronics",
9007 .name = "N25S10",
9008 .bustype = BUS_SPI,
9009 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9010 .model_id = NANTRONICS_N25S10,
9011 .total_size = 128,
9012 .page_size = 256,
9013 .feature_bits = FEATURE_WRSR_WREN,
9014 .tested = TEST_UNTESTED,
9015 .probe = probe_spi_rdid,
9016 .probe_timing = TIMING_ZERO,
9017 .block_erasers =
9018 {
9019 {
9020 .eraseblocks = { {4 * 1024, 32} },
9021 .block_erase = spi_block_erase_20,
9022 }, {
9023 .eraseblocks = { {4 * 1024, 32} },
9024 .block_erase = spi_block_erase_d7,
9025 }, {
9026 .eraseblocks = { {32 * 1024, 4} },
9027 .block_erase = spi_block_erase_52,
9028 }, {
9029 .eraseblocks = { {64 * 1024, 2} },
9030 .block_erase = spi_block_erase_d8,
9031 }, {
9032 .eraseblocks = { {128 * 1024, 1} },
9033 .block_erase = spi_block_erase_60,
9034 }, {
9035 .eraseblocks = { {128 * 1024, 1} },
9036 .block_erase = spi_block_erase_c7,
9037 }
9038 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009039 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009040 .unlock = spi_disable_blockprotect_bp3_srwd,
9041 .write = spi_chip_write_256,
9042 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9043 .voltage = {2700, 3600},
9044 },
9045
9046 {
9047 .vendor = "Nantronics",
9048 .name = "N25S20",
9049 .bustype = BUS_SPI,
9050 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9051 .model_id = NANTRONICS_N25S20,
9052 .total_size = 256,
9053 .page_size = 256,
9054 .feature_bits = FEATURE_WRSR_WREN,
9055 .tested = TEST_UNTESTED,
9056 .probe = probe_spi_rdid,
9057 .probe_timing = TIMING_ZERO,
9058 .block_erasers =
9059 {
9060 {
9061 .eraseblocks = { {4 * 1024, 64} },
9062 .block_erase = spi_block_erase_20,
9063 }, {
9064 .eraseblocks = { {4 * 1024, 64} },
9065 .block_erase = spi_block_erase_d7,
9066 }, {
9067 .eraseblocks = { {32 * 1024, 8} },
9068 .block_erase = spi_block_erase_52,
9069 }, {
9070 .eraseblocks = { {64 * 1024, 4} },
9071 .block_erase = spi_block_erase_d8,
9072 }, {
9073 .eraseblocks = { {256 * 1024, 1} },
9074 .block_erase = spi_block_erase_60,
9075 }, {
9076 .eraseblocks = { {256 * 1024, 1} },
9077 .block_erase = spi_block_erase_c7,
9078 }
9079 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009080 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009081 .unlock = spi_disable_blockprotect_bp3_srwd,
9082 .write = spi_chip_write_256,
9083 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9084 .voltage = {2700, 3600},
9085 },
9086
9087 {
9088 .vendor = "Nantronics",
9089 .name = "N25S40",
9090 .bustype = BUS_SPI,
9091 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9092 .model_id = NANTRONICS_N25S40,
9093 .total_size = 512,
9094 .page_size = 256,
9095 .feature_bits = FEATURE_WRSR_WREN,
9096 .tested = TEST_UNTESTED,
9097 .probe = probe_spi_rdid,
9098 .probe_timing = TIMING_ZERO,
9099 .block_erasers =
9100 {
9101 {
9102 .eraseblocks = { {4 * 1024, 128} },
9103 .block_erase = spi_block_erase_20,
9104 }, {
9105 .eraseblocks = { {4 * 1024, 128} },
9106 .block_erase = spi_block_erase_d7,
9107 }, {
9108 .eraseblocks = { {32 * 1024, 16} },
9109 .block_erase = spi_block_erase_52,
9110 }, {
9111 .eraseblocks = { {64 * 1024, 8} },
9112 .block_erase = spi_block_erase_d8,
9113 }, {
9114 .eraseblocks = { {512 * 1024, 1} },
9115 .block_erase = spi_block_erase_60,
9116 }, {
9117 .eraseblocks = { {512 * 1024, 1} },
9118 .block_erase = spi_block_erase_c7,
9119 }
9120 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009121 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009122 .unlock = spi_disable_blockprotect_bp3_srwd,
9123 .write = spi_chip_write_256,
9124 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9125 .voltage = {2700, 3600},
9126 },
9127
9128 {
9129 .vendor = "Nantronics",
9130 .name = "N25S80",
9131 .bustype = BUS_SPI,
9132 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9133 .model_id = NANTRONICS_N25S80,
9134 .total_size = 1024,
9135 .page_size = 256,
9136 .feature_bits = FEATURE_WRSR_WREN,
9137 .tested = TEST_UNTESTED,
9138 .probe = probe_spi_rdid,
9139 .probe_timing = TIMING_ZERO,
9140 .block_erasers =
9141 {
9142 {
9143 .eraseblocks = { {4 * 1024, 256} },
9144 .block_erase = spi_block_erase_20,
9145 }, {
9146 .eraseblocks = { {32 * 1024, 32} },
9147 .block_erase = spi_block_erase_52,
9148 }, {
9149 .eraseblocks = { {64 * 1024, 16} },
9150 .block_erase = spi_block_erase_d8,
9151 }, {
9152 .eraseblocks = { {1024 * 1024, 1} },
9153 .block_erase = spi_block_erase_60,
9154 }, {
9155 .eraseblocks = { {1024 * 1024, 1} },
9156 .block_erase = spi_block_erase_c7,
9157 }
9158 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009159 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009160 .unlock = spi_disable_blockprotect_bp3_srwd,
9161 .write = spi_chip_write_256,
9162 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9163 .voltage = {2700, 3600},
9164 },
9165
9166 {
9167 .vendor = "Nantronics",
9168 .name = "N25S16",
9169 .bustype = BUS_SPI,
9170 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9171 .model_id = NANTRONICS_N25S16,
9172 .total_size = 2048,
9173 .page_size = 256,
9174 .feature_bits = FEATURE_WRSR_WREN,
9175 .tested = TEST_UNTESTED,
9176 .probe = probe_spi_rdid,
9177 .probe_timing = TIMING_ZERO,
9178 .block_erasers =
9179 {
9180 {
9181 .eraseblocks = { {4 * 1024, 512} },
9182 .block_erase = spi_block_erase_20,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 32} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {2048 * 1024, 1} },
9188 .block_erase = spi_block_erase_60,
9189 }, {
9190 .eraseblocks = { {2048 * 1024, 1} },
9191 .block_erase = spi_block_erase_c7,
9192 }
9193 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009194 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009195 .unlock = spi_disable_blockprotect_bp3_srwd,
9196 .write = spi_chip_write_256,
9197 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9198 .voltage = {2700, 3600},
9199 },
9200
9201 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009202 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009203 .name = "Pm25LD256C",
9204 .bustype = BUS_SPI,
9205 .manufacture_id = PMC_ID,
9206 .model_id = PMC_PM25LD256C,
9207 .total_size = 32,
9208 .page_size = 256,
9209 .feature_bits = FEATURE_WRSR_WREN,
9210 .tested = TEST_UNTESTED,
9211 .probe = probe_spi_rdid,
9212 .probe_timing = TIMING_ZERO,
9213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {4 * 1024, 8} },
9217 .block_erase = spi_block_erase_20,
9218 }, {
9219 .eraseblocks = { {4 * 1024, 8} },
9220 .block_erase = spi_block_erase_d7,
9221 }, {
9222 .eraseblocks = { {32 * 1024, 1} },
9223 .block_erase = spi_block_erase_d8,
9224 }, {
9225 .eraseblocks = { {32 * 1024, 1} },
9226 .block_erase = spi_block_erase_60,
9227 }, {
9228 .eraseblocks = { {32 * 1024, 1} },
9229 .block_erase = spi_block_erase_c7,
9230 }
9231 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009232 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009233 .unlock = spi_disable_blockprotect,
9234 .write = spi_chip_write_256,
9235 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9236 .voltage = {2700, 3600},
9237 },
9238 {
9239 .vendor = "PMC",
9240 .name = "Pm25LD512(C)",
9241 .bustype = BUS_SPI,
9242 .manufacture_id = PMC_ID,
9243 .model_id = PMC_PM25LD512,
9244 .total_size = 64,
9245 .page_size = 256,
9246 .feature_bits = FEATURE_WRSR_WREN,
9247 .tested = TEST_OK_PREW,
9248 .probe = probe_spi_rdid,
9249 .probe_timing = TIMING_ZERO,
9250 .block_erasers =
9251 {
9252 {
9253 .eraseblocks = { {4 * 1024, 16} },
9254 .block_erase = spi_block_erase_20,
9255 }, {
9256 .eraseblocks = { {4 * 1024, 16} },
9257 .block_erase = spi_block_erase_d7,
9258 }, {
9259 .eraseblocks = { {32 * 1024, 2} },
9260 .block_erase = spi_block_erase_d8,
9261 }, {
9262 .eraseblocks = { {64 * 1024, 1} },
9263 .block_erase = spi_block_erase_60,
9264 }, {
9265 .eraseblocks = { {64 * 1024, 1} },
9266 .block_erase = spi_block_erase_c7,
9267 }
9268 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009269 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009270 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9271 .write = spi_chip_write_256,
9272 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9273 .voltage = {2300, 3600},
9274 },
9275
9276 {
9277 .vendor = "PMC",
9278 .name = "Pm25LD010(C)",
9279 .bustype = BUS_SPI,
9280 .manufacture_id = PMC_ID,
9281 .model_id = PMC_PM25LD010,
9282 .total_size = 128,
9283 .page_size = 256,
9284 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009285 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009286 .probe = probe_spi_rdid,
9287 .probe_timing = TIMING_ZERO,
9288 .block_erasers =
9289 {
9290 {
9291 .eraseblocks = { {4 * 1024, 32} },
9292 .block_erase = spi_block_erase_20,
9293 }, {
9294 .eraseblocks = { {4 * 1024, 32} },
9295 .block_erase = spi_block_erase_d7,
9296 }, {
9297 .eraseblocks = { {32 * 1024, 4} },
9298 .block_erase = spi_block_erase_d8,
9299 }, {
9300 .eraseblocks = { {128 * 1024, 1} },
9301 .block_erase = spi_block_erase_60,
9302 }, {
9303 .eraseblocks = { {128 * 1024, 1} },
9304 .block_erase = spi_block_erase_c7,
9305 }
9306 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009307 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009308 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9309 .write = spi_chip_write_256,
9310 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9311 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9312 },
9313
9314 {
9315 .vendor = "PMC",
9316 .name = "Pm25LD020(C)",
9317 .bustype = BUS_SPI,
9318 .manufacture_id = PMC_ID,
9319 .model_id = PMC_PM25LD020,
9320 .total_size = 256,
9321 .page_size = 256,
9322 .feature_bits = FEATURE_WRSR_WREN,
9323 .tested = TEST_UNTESTED,
9324 .probe = probe_spi_rdid,
9325 .probe_timing = TIMING_ZERO,
9326 .block_erasers =
9327 {
9328 {
9329 .eraseblocks = { {4 * 1024, 64} },
9330 .block_erase = spi_block_erase_20,
9331 }, {
9332 .eraseblocks = { {4 * 1024, 64} },
9333 .block_erase = spi_block_erase_d7,
9334 }, {
9335 .eraseblocks = { {64 * 1024, 4} },
9336 .block_erase = spi_block_erase_d8,
9337 }, {
9338 .eraseblocks = { {256 * 1024, 1} },
9339 .block_erase = spi_block_erase_60,
9340 }, {
9341 .eraseblocks = { {256 * 1024, 1} },
9342 .block_erase = spi_block_erase_c7,
9343 }
9344 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009345 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009346 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9347 .write = spi_chip_write_256,
9348 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9349 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9350 },
9351
9352 {
9353 .vendor = "PMC",
9354 .name = "Pm25LD040(C)",
9355 .bustype = BUS_SPI,
9356 .manufacture_id = PMC_ID,
9357 .model_id = PMC_PM25LV040,
9358 .total_size = 512,
9359 .page_size = 256,
9360 .feature_bits = FEATURE_WRSR_WREN,
9361 .tested = TEST_UNTESTED,
9362 .probe = probe_spi_rdid,
9363 .probe_timing = TIMING_ZERO,
9364 .block_erasers =
9365 {
9366 {
9367 .eraseblocks = { {4 * 1024, 128} },
9368 .block_erase = spi_block_erase_20,
9369 }, {
9370 .eraseblocks = { {4 * 1024, 128} },
9371 .block_erase = spi_block_erase_d7,
9372 }, {
9373 .eraseblocks = { {64 * 1024, 8} },
9374 .block_erase = spi_block_erase_d8,
9375 }, {
9376 .eraseblocks = { {512 * 1024, 1} },
9377 .block_erase = spi_block_erase_60,
9378 }, {
9379 .eraseblocks = { {512 * 1024, 1} },
9380 .block_erase = spi_block_erase_c7,
9381 }
9382 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009383 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009384 .unlock = spi_disable_blockprotect,
9385 .write = spi_chip_write_256,
9386 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9387 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9388 },
9389
9390{
9391 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009392 .name = "Pm25LV512(A)",
9393 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009394 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009395 .model_id = PMC_PM25LV512,
9396 .total_size = 64,
9397 .page_size = 256,
9398 .feature_bits = FEATURE_WRSR_WREN,
9399 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00009400 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009401 .probe_timing = TIMING_ZERO,
9402 .block_erasers =
9403 {
9404 {
9405 .eraseblocks = { {4 * 1024, 16} },
9406 .block_erase = spi_block_erase_d7,
9407 }, {
9408 .eraseblocks = { {32 * 1024, 2} },
9409 .block_erase = spi_block_erase_d8,
9410 }, {
9411 .eraseblocks = { {64 * 1024, 1} },
9412 .block_erase = spi_block_erase_c7,
9413 }
9414 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009415 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009416 .unlock = spi_disable_blockprotect,
9417 .write = spi_chip_write_256,
9418 .read = spi_chip_read, /* Fast read (0x0B) supported */
9419 .voltage = {2700, 3600},
9420 },
9421
9422 {
9423 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009424 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009425 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009426 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009427 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009428 .total_size = 128,
9429 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009430 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00009431 .tested = TEST_OK_PREW,
9432 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009433 .probe_timing = TIMING_ZERO,
9434 .block_erasers =
9435 {
9436 {
9437 .eraseblocks = { {4 * 1024, 32} },
9438 .block_erase = spi_block_erase_d7,
9439 }, {
9440 .eraseblocks = { {32 * 1024, 4} },
9441 .block_erase = spi_block_erase_d8,
9442 }, {
9443 .eraseblocks = { {128 * 1024, 1} },
9444 .block_erase = spi_block_erase_c7,
9445 }
9446 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009447 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009448 .unlock = spi_disable_blockprotect,
9449 .write = spi_chip_write_256,
9450 .read = spi_chip_read, /* Fast read (0x0B) supported */
9451 .voltage = {2700, 3600},
9452 },
9453
9454 {
9455 .vendor = "PMC",
9456 .name = "Pm25LV010A",
9457 .bustype = BUS_SPI,
9458 .manufacture_id = PMC_ID,
9459 .model_id = PMC_PM25LV010,
9460 .total_size = 128,
9461 .page_size = 256,
9462 .feature_bits = FEATURE_WRSR_WREN,
9463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009465 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009466 .block_erasers =
9467 {
9468 {
9469 .eraseblocks = { {4 * 1024, 32} },
9470 .block_erase = spi_block_erase_d7,
9471 }, {
9472 .eraseblocks = { {32 * 1024, 4} },
9473 .block_erase = spi_block_erase_d8,
9474 }, {
9475 .eraseblocks = { {128 * 1024, 1} },
9476 .block_erase = spi_block_erase_c7,
9477 }
9478 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009479 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009480 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009481 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009482 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009483 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009484 },
9485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009486 {
9487 .vendor = "PMC",
9488 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009489 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009490 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009491 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009492 .total_size = 256,
9493 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009494 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009495 .tested = TEST_UNTESTED,
9496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009497 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009498 .block_erasers =
9499 {
9500 {
9501 .eraseblocks = { {4 * 1024, 64} },
9502 .block_erase = spi_block_erase_d7,
9503 }, {
9504 .eraseblocks = { {64 * 1024, 4} },
9505 .block_erase = spi_block_erase_d8,
9506 }, {
9507 .eraseblocks = { {256 * 1024, 1} },
9508 .block_erase = spi_block_erase_c7,
9509 }
9510 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009511 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009512 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009513 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009514 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009515 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009516 },
9517
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009518 {
9519 .vendor = "PMC",
9520 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009521 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009522 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009523 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009524 .total_size = 512,
9525 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009526 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00009527 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009528 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009529 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009530 .block_erasers =
9531 {
9532 {
9533 .eraseblocks = { {4 * 1024, 128} },
9534 .block_erase = spi_block_erase_d7,
9535 }, {
9536 .eraseblocks = { {64 * 1024, 8} },
9537 .block_erase = spi_block_erase_d8,
9538 }, {
9539 .eraseblocks = { {512 * 1024, 1} },
9540 .block_erase = spi_block_erase_c7,
9541 }
9542 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009543 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009544 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009545 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009546 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009547 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009548 },
9549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009550 {
9551 .vendor = "PMC",
9552 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009553 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009554 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009555 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009556 .total_size = 1024,
9557 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009558 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009559 .tested = TEST_UNTESTED,
9560 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009561 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009562 .block_erasers =
9563 {
9564 {
9565 .eraseblocks = { {4 * 1024, 256} },
9566 .block_erase = spi_block_erase_d7,
9567 }, {
9568 .eraseblocks = { {4 * 1024, 256} },
9569 .block_erase = spi_block_erase_20,
9570 }, {
9571 .eraseblocks = { {64 * 1024, 16} },
9572 .block_erase = spi_block_erase_d8,
9573 }, {
9574 .eraseblocks = { {1024 * 1024, 1} },
9575 .block_erase = spi_block_erase_60,
9576 }, {
9577 .eraseblocks = { {1024 * 1024, 1} },
9578 .block_erase = spi_block_erase_c7,
9579 }
9580 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009581 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009583 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009584 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009585 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009586 },
9587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009588 {
9589 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009590 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009591 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009592 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009593 .model_id = PMC_PM25LV016B,
9594 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009595 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009596 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009597 .tested = TEST_UNTESTED,
9598 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009599 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009600 .block_erasers =
9601 {
9602 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009603 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00009604 .block_erase = spi_block_erase_d7,
9605 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009606 .eraseblocks = { {4 * 1024, 512} },
9607 .block_erase = spi_block_erase_20,
9608 }, {
9609 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00009610 .block_erase = spi_block_erase_d8,
9611 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009612 .eraseblocks = { {2 * 1024 * 1024, 1} },
9613 .block_erase = spi_block_erase_60,
9614 }, {
9615 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009616 .block_erase = spi_block_erase_c7,
9617 }
9618 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009619 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009620 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009621 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009622 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009623 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009624 },
9625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009626 {
9627 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009628 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009629 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009630 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009631 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009632 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009633 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009634 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009635 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009636 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009637 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009638 .block_erasers =
9639 {
9640 {
9641 .eraseblocks = {
9642 {128 * 1024, 1},
9643 {96 * 1024, 1},
9644 {8 * 1024, 2},
9645 {16 * 1024, 1},
9646 },
Sean Nelson35727f72010-01-28 23:55:12 +00009647 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009648 }, {
9649 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009650 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009651 },
9652 },
Sean Nelson35727f72010-01-28 23:55:12 +00009653 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009654 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009655 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009656 },
9657
9658 {
9659 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009660 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009661 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009662 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009663 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009664 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009665 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009667 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009668 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009669 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009670 .block_erasers =
9671 {
9672 {
9673 .eraseblocks = {
9674 {16 * 1024, 1},
9675 {8 * 1024, 2},
9676 {96 * 1024, 1},
9677 {128 * 1024, 1},
9678 },
Sean Nelson35727f72010-01-28 23:55:12 +00009679 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009680 }, {
9681 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009682 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009683 },
9684 },
Sean Nelson35727f72010-01-28 23:55:12 +00009685 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009686 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009687 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009688 },
9689
9690 {
9691 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009692 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009693 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009694 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009695 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009696 .total_size = 128,
9697 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009698 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009699 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009700 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009701 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009702 .block_erasers =
9703 {
9704 {
9705 .eraseblocks = { {4 * 1024, 32} },
9706 .block_erase = erase_sector_jedec,
9707 }, {
9708 .eraseblocks = { {64 * 1024, 2} },
9709 .block_erase = erase_block_jedec,
9710 }, {
9711 .eraseblocks = { {128 * 1024, 1} },
9712 .block_erase = erase_chip_block_jedec,
9713 }
9714 },
Sean Nelson35727f72010-01-28 23:55:12 +00009715 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009716 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009717 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009718 },
9719
9720 {
9721 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009722 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009723 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009724 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009725 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009726 .total_size = 256,
9727 .page_size = 4096,
9728 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9729 .tested = TEST_UNTESTED,
9730 .probe = probe_jedec,
9731 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9732 .block_erasers =
9733 {
9734 {
9735 .eraseblocks = { {4 * 1024, 64} },
9736 .block_erase = erase_sector_jedec,
9737 }, {
9738 .eraseblocks = { {64 * 1024, 4} },
9739 .block_erase = erase_block_jedec,
9740 }, {
9741 .eraseblocks = { {256 * 1024, 1} },
9742 .block_erase = erase_chip_block_jedec,
9743 }
9744 },
9745 .write = write_jedec_1,
9746 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009747 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009748 },
9749
9750 {
9751 .vendor = "PMC",
9752 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009753 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009754 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009755 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009756 .total_size = 512,
9757 .page_size = 4096,
9758 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009759 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009760 .probe = probe_jedec,
9761 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9762 .block_erasers =
9763 {
9764 {
9765 .eraseblocks = { {4 * 1024, 128} },
9766 .block_erase = erase_sector_jedec,
9767 }, {
9768 .eraseblocks = { {64 * 1024, 8} },
9769 .block_erase = erase_block_jedec,
9770 }, {
9771 .eraseblocks = { {512 * 1024, 1} },
9772 .block_erase = erase_chip_block_jedec,
9773 }
9774 },
9775 .write = write_jedec_1,
9776 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009777 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009778 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009779
9780 {
9781 .vendor = "PMC",
9782 .name = "Pm39LV512",
9783 .bustype = BUS_PARALLEL,
9784 .manufacture_id = PMC_ID_NOPREFIX,
9785 .model_id = PMC_PM39LV512,
9786 .total_size = 64,
9787 .page_size = 4096,
9788 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9789 .tested = TEST_OK_PREW,
9790 .probe = probe_jedec,
9791 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9792 .block_erasers =
9793 {
9794 {
9795 .eraseblocks = { {4 * 1024, 16} },
9796 .block_erase = erase_sector_jedec,
9797 }, {
9798 .eraseblocks = { {64 * 1024, 1} },
9799 .block_erase = erase_block_jedec,
9800 }, {
9801 .eraseblocks = { {64 * 1024, 1} },
9802 .block_erase = erase_chip_block_jedec,
9803 }
9804 },
9805 .write = write_jedec_1,
9806 .read = read_memmapped,
9807 .voltage = {2700, 3600},
9808 },
9809
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009810 {
9811 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009812 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009813 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009814 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009815 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009816 .total_size = 256,
9817 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009818 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009819 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009820 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009821 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009822 .block_erasers =
9823 {
9824 {
9825 .eraseblocks = { {4 * 1024, 64} },
9826 .block_erase = erase_sector_jedec,
9827 }, {
9828 .eraseblocks = { {16 * 1024, 16} },
9829 .block_erase = erase_block_jedec,
9830 }, {
9831 .eraseblocks = { {256 * 1024, 1} },
9832 .block_erase = erase_chip_block_jedec,
9833 }
9834 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009835 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +00009836 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009837 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009838 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009839 },
9840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009841 {
9842 .vendor = "PMC",
9843 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009844 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009845 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009846 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009847 .total_size = 512,
9848 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009849 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009850 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009851 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009852 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009853 .block_erasers =
9854 {
9855 {
9856 .eraseblocks = { {4 * 1024, 128} },
9857 .block_erase = erase_sector_jedec,
9858 }, {
9859 .eraseblocks = { {64 * 1024, 8} },
9860 .block_erase = erase_block_jedec,
9861 }, {
9862 .eraseblocks = { {512 * 1024, 1} },
9863 .block_erase = erase_chip_block_jedec,
9864 }
9865 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009866 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +00009867 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009869 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009870 },
9871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009872 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009873 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009874 .name = "LE25FW106",
9875 .bustype = BUS_SPI,
9876 .manufacture_id = SANYO_ID,
9877 .model_id = SANYO_LE25FW106,
9878 .total_size = 128,
9879 .page_size = 256,
9880 .feature_bits = FEATURE_WRSR_WREN,
9881 .tested = TEST_OK_PREW,
9882 .probe = probe_spi_res2,
9883 .probe_timing = TIMING_ZERO,
9884 .block_erasers = {
9885 {
9886 .eraseblocks = { {2 * 1024, 64} },
9887 .block_erase = spi_block_erase_d7,
9888 }, {
9889 .eraseblocks = { {32 * 1024, 4} },
9890 .block_erase = spi_block_erase_d8,
9891 }, {
9892 .eraseblocks = { {128 * 1024, 1} },
9893 .block_erase = spi_block_erase_c7,
9894 }
9895 },
9896 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9897 .unlock = spi_disable_blockprotect_bp1_srwd,
9898 .write = spi_chip_write_256,
9899 .read = spi_chip_read,
9900 .voltage = {2700, 3600},
9901 },
9902
9903 {
9904 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009905 .name = "LE25FW406A",
9906 .bustype = BUS_SPI,
9907 .manufacture_id = SANYO_ID,
9908 .model_id = SANYO_LE25FW406A,
9909 .total_size = 512,
9910 .page_size = 256,
9911 .feature_bits = FEATURE_WRSR_WREN,
9912 .tested = TEST_OK_PREW,
9913 .probe = probe_spi_res2,
9914 .probe_timing = TIMING_ZERO,
9915 .block_erasers = {
9916 {
9917 .eraseblocks = { {4 * 1024, 128} },
9918 .block_erase = spi_block_erase_d7,
9919 }, {
9920 .eraseblocks = { {64 * 1024, 8} },
9921 .block_erase = spi_block_erase_d8,
9922 }, {
9923 .eraseblocks = { {512 * 1024, 1} },
9924 .block_erase = spi_block_erase_c7,
9925 }
9926 },
9927 .printlock = spi_prettyprint_status_register_plain,
9928 .unlock = spi_disable_blockprotect,
9929 .write = spi_chip_write_256,
9930 .read = spi_chip_read,
9931 .voltage = {2700, 3600},
9932 },
9933
9934 {
9935 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009936 .name = "LE25FU406B",
9937 .bustype = BUS_SPI,
9938 .manufacture_id = SANYO_ID,
9939 .model_id = SANYO_LE25FU406B,
9940 .total_size = 512,
9941 .page_size = 256,
9942 .feature_bits = FEATURE_WRSR_WREN,
9943 .tested = TEST_OK_PREW,
9944 .probe = probe_spi_res2,
9945 .probe_timing = TIMING_ZERO,
9946 .block_erasers = {
9947 {
9948 .eraseblocks = { {4 * 1024, 128} },
9949 .block_erase = spi_block_erase_d7,
9950 }, {
9951 .eraseblocks = { {64 * 1024, 8} },
9952 .block_erase = spi_block_erase_d8,
9953 }, {
9954 .eraseblocks = { {512 * 1024, 1} },
9955 .block_erase = spi_block_erase_c7,
9956 }
9957 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009958 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009959 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9960 .write = spi_chip_write_256,
9961 .read = spi_chip_read,
9962 .voltage = {2300, 3600},
9963 },
9964
9965 {
9966 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009967 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009968 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009969 .manufacture_id = SANYO_ID,
9970 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009971 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009972 .page_size = 256,
9973 .tested = TEST_UNTESTED,
9974 .probe = probe_spi_rdid,
9975 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009976 .block_erasers =
9977 {
9978 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009979 .eraseblocks = { {256, 1024} },
9980 .block_erase = spi_block_erase_db,
9981 }, {
9982 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009983 .block_erase = spi_block_erase_d8,
9984 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009985 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009986 .block_erase = spi_block_erase_c7,
9987 }
9988 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009989 .printlock = spi_prettyprint_status_register_default_welwip,
9990 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009991 .write = spi_chip_write_256,
9992 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009993 .voltage = {2700, 3600},
9994 },
9995
9996 {
9997 .vendor = "Sanyo",
9998 .name = "LE25FW403A",
9999 .bustype = BUS_SPI,
10000 .manufacture_id = SANYO_ID,
10001 .model_id = SANYO_LE25FW403A,
10002 .total_size = 512,
10003 .page_size = 256,
10004 .tested = TEST_UNTESTED,
10005 .probe = probe_spi_rdid,
10006 .probe_timing = TIMING_ZERO,
10007 .block_erasers = {
10008 {
10009 .eraseblocks = { {256, 2 * 1024} },
10010 .block_erase = spi_block_erase_db,
10011 }, {
10012 .eraseblocks = { {64 * 1024, 8} },
10013 .block_erase = spi_block_erase_d8,
10014 }, {
10015 .eraseblocks = { {512 * 1024, 1} },
10016 .block_erase = spi_block_erase_c7,
10017 }
10018 },
10019 .printlock = spi_prettyprint_status_register_default_welwip,
10020 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10021 .write = spi_chip_write_256,
10022 .read = spi_chip_read,
10023 .voltage = {2700, 3600},
10024 },
10025
10026 {
10027 .vendor = "Sanyo",
10028 .name = "LE25FW418A",
10029 .bustype = BUS_SPI,
10030 .manufacture_id = SANYO_ID,
10031 .model_id = SANYO_LE25FW418A,
10032 .total_size = 512,
10033 .page_size = 256,
10034 .feature_bits = FEATURE_WRSR_WREN,
10035 .tested = TEST_UNTESTED,
10036 .probe = probe_spi_res2,
10037 .probe_timing = TIMING_ZERO,
10038 .block_erasers = {
10039 {
10040 .eraseblocks = { {4 * 1024, 128} },
10041 .block_erase = spi_block_erase_d7,
10042 }, {
10043 .eraseblocks = { {64 * 1024, 8} },
10044 .block_erase = spi_block_erase_d8,
10045 }, {
10046 .eraseblocks = { {512 * 1024, 1} },
10047 .block_erase = spi_block_erase_c7,
10048 }
10049 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010050 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010051 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10052 .write = spi_chip_write_256,
10053 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10054 .voltage = {2700, 3600},
10055 },
10056
10057 {
10058 .vendor = "Sanyo",
10059 .name = "LE25FW806",
10060 .bustype = BUS_SPI,
10061 .manufacture_id = SANYO_ID,
10062 .model_id = SANYO_LE25FW806,
10063 .total_size = 1024,
10064 .page_size = 256,
10065 .feature_bits = FEATURE_WRSR_WREN,
10066 .tested = TEST_UNTESTED,
10067 .probe = probe_spi_res2,
10068 .probe_timing = TIMING_ZERO,
10069 .block_erasers = {
10070 {
10071 .eraseblocks = { {4 * 1024, 256} },
10072 .block_erase = spi_block_erase_20,
10073 }, {
10074 .eraseblocks = { {4 * 1024, 256} },
10075 .block_erase = spi_block_erase_d7,
10076 }, {
10077 .eraseblocks = { {64 * 1024, 16} },
10078 .block_erase = spi_block_erase_d8,
10079 }, {
10080 .eraseblocks = { {1024 * 1024, 1} },
10081 .block_erase = spi_block_erase_c7,
10082 }
10083 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010084 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010085 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10086 .write = spi_chip_write_256,
10087 .read = spi_chip_read,
10088 .voltage = {2700, 3600},
10089 },
10090
10091 {
10092 .vendor = "Sanyo",
10093 .name = "LE25FW808",
10094 .bustype = BUS_SPI,
10095 .manufacture_id = SANYO_ID,
10096 .model_id = SANYO_LE25FW808,
10097 .total_size = 1024,
10098 .page_size = 256,
10099 .feature_bits = FEATURE_WRSR_WREN,
10100 .tested = TEST_UNTESTED,
10101 .probe = probe_spi_res2,
10102 .probe_timing = TIMING_ZERO,
10103 .block_erasers = {
10104 {
10105 .eraseblocks = { {8 * 1024, 128} },
10106 .block_erase = spi_block_erase_d7,
10107 }, {
10108 .eraseblocks = { {64 * 1024, 16} },
10109 .block_erase = spi_block_erase_d8,
10110 }, {
10111 .eraseblocks = { {1024 * 1024, 1} },
10112 .block_erase = spi_block_erase_c7,
10113 }
10114 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010115 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010116 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10117 .write = spi_chip_write_256,
10118 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10119 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010120 },
10121
10122 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010123 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010124 .name = "LH28F008BJT-BTLZ1",
10125 .bustype = BUS_PARALLEL,
10126 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010127 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010128 .total_size = 1024,
10129 .page_size = 64 * 1024,
10130 .tested = TEST_OK_PREW,
10131 .probe = probe_82802ab,
10132 .probe_timing = TIMING_ZERO,
10133 .block_erasers =
10134 {
10135 {
10136 .eraseblocks = {
10137 {8 * 1024, 8},
10138 {64 * 1024, 15}
10139 },
10140 .block_erase = erase_block_82802ab,
10141 }, {
10142 .eraseblocks = { {1024 * 1024, 1} },
10143 .block_erase = erase_sector_49lfxxxc,
10144 }
10145 },
10146 .unlock = unlock_lh28f008bjt,
10147 .write = write_82802ab,
10148 .read = read_memmapped,
10149 .voltage = {2700, 3600},
10150 },
10151
10152 {
10153 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010154 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010155 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010156 .manufacture_id = SHARP_ID,
10157 .model_id = SHARP_LHF00L04,
10158 .total_size = 1024,
10159 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010160 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010161 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010162 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010163 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010164 .block_erasers =
10165 {
10166 {
10167 .eraseblocks = {
10168 {64 * 1024, 15},
10169 {8 * 1024, 8}
10170 },
Sean Nelson28accc22010-03-19 18:47:06 +000010171 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010172 }, {
10173 .eraseblocks = {
10174 {1024 * 1024, 1}
10175 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010176 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010177 },
10178 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010179 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000010180 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010181 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010182 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010183 },
10184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010185 {
10186 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000010187 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010188 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010189 .manufacture_id = SPANSION_ID,
10190 .model_id = SPANSION_S25FL004A,
10191 .total_size = 512,
10192 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010193 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010194 .tested = TEST_UNTESTED,
10195 .probe = probe_spi_rdid,
10196 .probe_timing = TIMING_ZERO,
10197 .block_erasers =
10198 {
10199 {
10200 .eraseblocks = { {64 * 1024, 8} },
10201 .block_erase = spi_block_erase_d8,
10202 }, {
10203 .eraseblocks = { {512 * 1024, 1} },
10204 .block_erase = spi_block_erase_c7,
10205 }
10206 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010207 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010208 .unlock = spi_disable_blockprotect,
10209 .write = spi_chip_write_256,
10210 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010211 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010212 },
10213
10214 {
10215 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000010216 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010217 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000010218 .manufacture_id = SPANSION_ID,
10219 .model_id = SPANSION_S25FL008A,
10220 .total_size = 1024,
10221 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010222 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010223 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000010224 .probe = probe_spi_rdid,
10225 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000010226 .block_erasers =
10227 {
10228 {
10229 .eraseblocks = { {64 * 1024, 16} },
10230 .block_erase = spi_block_erase_d8,
10231 }, {
10232 .eraseblocks = { {1024 * 1024, 1} },
10233 .block_erase = spi_block_erase_c7,
10234 }
10235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010236 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010237 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000010238 .write = spi_chip_write_256,
10239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010240 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000010241 },
10242
10243 {
10244 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010245 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010246 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010247 .manufacture_id = SPANSION_ID,
10248 .model_id = SPANSION_S25FL016A,
10249 .total_size = 2048,
10250 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010251 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010252 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010253 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010254 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010255 .block_erasers =
10256 {
10257 {
10258 .eraseblocks = { {64 * 1024, 32} },
10259 .block_erase = spi_block_erase_d8,
10260 }, {
10261 .eraseblocks = { {2 * 1024 * 1024, 1} },
10262 .block_erase = spi_block_erase_c7,
10263 }
10264 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010265 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010266 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010267 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010268 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010269 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010270 },
10271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010272 {
Rudy Hostf4e57772010-11-29 00:37:49 +000010273 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010274 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010275 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010276 .manufacture_id = SPANSION_ID,
10277 .model_id = SPANSION_S25FL032A,
10278 .total_size = 4096,
10279 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010280 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010281 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000010282 .probe = probe_spi_rdid,
10283 .probe_timing = TIMING_ZERO,
10284 .block_erasers =
10285 {
10286 {
10287 .eraseblocks = { {64 * 1024, 64} },
10288 .block_erase = spi_block_erase_d8,
10289 }, {
10290 .eraseblocks = { {4 * 1024 * 1024, 1} },
10291 .block_erase = spi_block_erase_c7,
10292 }
10293 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010294 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010295 .unlock = spi_disable_blockprotect,
10296 .write = spi_chip_write_256,
10297 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010298 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010299 },
10300
10301 {
10302 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010303 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010304 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010305 .manufacture_id = SPANSION_ID,
10306 .model_id = SPANSION_S25FL064A,
10307 .total_size = 8192,
10308 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010309 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010310 .tested = TEST_OK_PREW,
10311 .probe = probe_spi_rdid,
10312 .probe_timing = TIMING_ZERO,
10313 .block_erasers =
10314 {
10315 {
10316 .eraseblocks = { {64 * 1024, 128} },
10317 .block_erase = spi_block_erase_d8,
10318 }, {
10319 .eraseblocks = { {8 * 1024 * 1024, 1} },
10320 .block_erase = spi_block_erase_c7,
10321 }
10322 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010323 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010324 .unlock = spi_disable_blockprotect,
10325 .write = spi_chip_write_256,
10326 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010327 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010328 },
10329
10330 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010331 .vendor = "Spansion",
10332 .name = "S25FL204K",
10333 .bustype = BUS_SPI,
10334 .manufacture_id = SPANSION_ID,
10335 .model_id = SPANSION_S25FL204,
10336 .total_size = 512,
10337 .page_size = 256,
10338 .feature_bits = FEATURE_WRSR_WREN,
10339 .tested = TEST_UNTESTED,
10340 .probe = probe_spi_rdid,
10341 .probe_timing = TIMING_ZERO,
10342 .block_erasers = {
10343 {
10344 .eraseblocks = { {4 * 1024, 128} },
10345 .block_erase = spi_block_erase_20,
10346 }, {
10347 .eraseblocks = { {64 * 1024, 8} },
10348 .block_erase = spi_block_erase_d8,
10349 }, {
10350 .eraseblocks = { { 512 * 1024, 1} },
10351 .block_erase = spi_block_erase_60,
10352 }, {
10353 .eraseblocks = { { 512 * 1024, 1} },
10354 .block_erase = spi_block_erase_c7,
10355 }
10356 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010357 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010358 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010359 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010360 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010361 .voltage = {2700, 3600},
10362 },
10363
10364 {
10365 .vendor = "Spansion",
10366 .name = "S25FL208K",
10367 .bustype = BUS_SPI,
10368 .manufacture_id = SPANSION_ID,
10369 .model_id = SPANSION_S25FL208,
10370 .total_size = 1024,
10371 .page_size = 256,
10372 .feature_bits = FEATURE_WRSR_WREN,
10373 .tested = TEST_UNTESTED,
10374 .probe = probe_spi_rdid,
10375 .probe_timing = TIMING_ZERO,
10376 .block_erasers = {
10377 {
10378 .eraseblocks = { {4 * 1024, 256} },
10379 .block_erase = spi_block_erase_20,
10380 }, {
10381 .eraseblocks = { {64 * 1024, 16} },
10382 .block_erase = spi_block_erase_d8,
10383 }, {
10384 .eraseblocks = { { 1024 * 1024, 1} },
10385 .block_erase = spi_block_erase_60,
10386 }, {
10387 .eraseblocks = { { 1024 * 1024, 1} },
10388 .block_erase = spi_block_erase_c7,
10389 }
10390 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010391 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010392 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010393 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010394 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010395 .voltage = {2700, 3600},
10396 },
10397
10398 {
10399 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000010400 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010401 .bustype = BUS_SPI,
10402 .manufacture_id = SPANSION_ID,
10403 .model_id = SPANSION_S25FL216,
10404 .total_size = 2048,
10405 .page_size = 256,
10406 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
10407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10408 .tested = TEST_UNTESTED,
10409 .probe = probe_spi_rdid,
10410 .probe_timing = TIMING_ZERO,
10411 .block_erasers = {
10412 {
10413 .eraseblocks = { {4 * 1024, 512} },
10414 .block_erase = spi_block_erase_20,
10415 }, {
10416 .eraseblocks = { {64 * 1024, 32} },
10417 .block_erase = spi_block_erase_d8,
10418 }, {
10419 .eraseblocks = { { 2048 * 1024, 1} },
10420 .block_erase = spi_block_erase_60,
10421 }, {
10422 .eraseblocks = { { 2048 * 1024, 1} },
10423 .block_erase = spi_block_erase_c7,
10424 }
10425 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010426 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010427 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010428 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010429 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010430 .voltage = {2700, 3600},
10431 },
10432
10433 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010434 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000010435 .name = "S25FL132K",
10436 .bustype = BUS_SPI,
10437 .manufacture_id = SPANSION_ID,
10438 .model_id = SPANSION_S25FL132K,
10439 .total_size = 4096,
10440 .page_size = 256,
10441 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10442 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10443 .tested = TEST_UNTESTED,
10444 .probe = probe_spi_rdid,
10445 .probe_timing = TIMING_ZERO,
10446 .block_erasers = {
10447 {
10448 .eraseblocks = { {4 * 1024, 1024} },
10449 .block_erase = spi_block_erase_20,
10450 }, {
10451 .eraseblocks = { {64 * 1024, 64} },
10452 .block_erase = spi_block_erase_d8,
10453 }, {
10454 .eraseblocks = { { 4096 * 1024, 1} },
10455 .block_erase = spi_block_erase_60,
10456 }, {
10457 .eraseblocks = { { 4096 * 1024, 1} },
10458 .block_erase = spi_block_erase_c7,
10459 }
10460 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010461 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010462 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10463 .write = spi_chip_write_256,
10464 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10465 .voltage = {2700, 3600},
10466 },
10467
10468 {
10469 .vendor = "Spansion",
10470 .name = "S25FL164K",
10471 .bustype = BUS_SPI,
10472 .manufacture_id = SPANSION_ID,
10473 .model_id = SPANSION_S25FL164K,
10474 .total_size = 8192,
10475 .page_size = 256,
10476 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10477 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10478 .tested = TEST_OK_PREW,
10479 .probe = probe_spi_rdid,
10480 .probe_timing = TIMING_ZERO,
10481 .block_erasers = {
10482 {
10483 .eraseblocks = { {4 * 1024, 2048} },
10484 .block_erase = spi_block_erase_20,
10485 }, {
10486 .eraseblocks = { {64 * 1024, 128} },
10487 .block_erase = spi_block_erase_d8,
10488 }, {
10489 .eraseblocks = { { 8192 * 1024, 1} },
10490 .block_erase = spi_block_erase_60,
10491 }, {
10492 .eraseblocks = { { 8192 * 1024, 1} },
10493 .block_erase = spi_block_erase_c7,
10494 }
10495 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010496 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010497 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10498 .write = spi_chip_write_256,
10499 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10500 .voltage = {2700, 3600},
10501 },
10502
10503 {
10504 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000010505 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10506 .bustype = BUS_SPI,
10507 .manufacture_id = SPANSION_ID,
10508 .model_id = SPANSION_S25FL128,
10509 .total_size = 16384,
10510 .page_size = 256,
10511 /* supports 4B addressing */
10512 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10513 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10514 .tested = TEST_OK_PREW,
10515 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
10516 .probe = probe_spi_rdid,
10517 .probe_timing = TIMING_ZERO,
10518 .block_erasers = {
10519 {
10520 /* This chip supports erasing of 32 so-called "parameter sectors" with
10521 * opcode 0x20 which may be configured to be on top or bottom of the address
10522 * space. Trying to access an address outside these 4kB blocks does have no
10523 * effect on the memory contents, e.g.
10524 .eraseblocks = {
10525 {4 * 1024, 32},
10526 {64 * 1024, 254} // inaccessible
10527 },
10528 .block_erase = spi_block_erase_20,
10529 }, { */
10530 .eraseblocks = { { 64 * 1024, 256} },
10531 .block_erase = spi_block_erase_d8,
10532 }, {
10533 .eraseblocks = { { 16384 * 1024, 1} },
10534 .block_erase = spi_block_erase_60,
10535 }, {
10536 .eraseblocks = { { 16384 * 1024, 1} },
10537 .block_erase = spi_block_erase_c7,
10538 }
10539 },
10540 .printlock = spi_prettyprint_status_register_bp2_srwd,
10541 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10542 .write = spi_chip_write_256, /* Multi I/O supported */
10543 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10544 .voltage = {2700, 3600},
10545 },
10546
10547 {
10548 .vendor = "Spansion",
10549 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
10550 .bustype = BUS_SPI,
10551 .manufacture_id = SPANSION_ID,
10552 .model_id = SPANSION_S25FL128,
10553 .total_size = 16384,
10554 .page_size = 512,
10555 /* supports 4B addressing */
10556 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10558 .tested = TEST_UNTESTED,
10559 .probe = probe_spi_rdid,
10560 .probe_timing = TIMING_ZERO,
10561 .block_erasers = {
10562 {
10563 .eraseblocks = { {256 * 1024, 64} },
10564 .block_erase = spi_block_erase_d8,
10565 }, {
10566 .eraseblocks = { { 16384 * 1024, 1} },
10567 .block_erase = spi_block_erase_60,
10568 }, {
10569 .eraseblocks = { { 16384 * 1024, 1} },
10570 .block_erase = spi_block_erase_c7,
10571 }
10572 },
10573 .printlock = spi_prettyprint_status_register_bp2_srwd,
10574 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10575 .write = spi_chip_write_256, /* Multi I/O supported */
10576 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10577 .voltage = {2700, 3600},
10578 },
10579
10580 {
10581 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000010582 .name = "S25FL128P......0", /* uniform 64 kB sectors */
10583 .bustype = BUS_SPI,
10584 .manufacture_id = SPANSION_ID,
10585 .model_id = SPANSION_S25FL128,
10586 .total_size = 16384,
10587 .page_size = 256,
10588 .feature_bits = FEATURE_WRSR_WREN,
10589 .tested = TEST_UNTESTED,
10590 .probe = probe_spi_rdid,
10591 .probe_timing = TIMING_ZERO,
10592 .block_erasers = {
10593 {
10594 .eraseblocks = { {64 * 1024, 256} },
10595 .block_erase = spi_block_erase_20,
10596 }, {
10597 .eraseblocks = { {64 * 1024, 256} },
10598 .block_erase = spi_block_erase_d8,
10599 }, {
10600 .eraseblocks = { { 16384 * 1024, 1} },
10601 .block_erase = spi_block_erase_60,
10602 }, {
10603 .eraseblocks = { { 16384 * 1024, 1} },
10604 .block_erase = spi_block_erase_c7,
10605 }
10606 },
10607 .printlock = spi_prettyprint_status_register_bp3_srwd,
10608 .unlock = spi_disable_blockprotect_bp3_srwd,
10609 .write = spi_chip_write_256,
10610 .read = spi_chip_read, /* Fast read (0x0B) supported */
10611 .voltage = {2700, 3600},
10612 },
10613
10614 {
10615 .vendor = "Spansion",
10616 .name = "S25FL128P......1", /* uniform 256kB sectors */
10617 .bustype = BUS_SPI,
10618 .manufacture_id = SPANSION_ID,
10619 .model_id = SPANSION_S25FL128,
10620 .total_size = 16384,
10621 .page_size = 256,
10622 .feature_bits = FEATURE_WRSR_WREN,
10623 .tested = TEST_UNTESTED,
10624 .probe = probe_spi_rdid,
10625 .probe_timing = TIMING_ZERO,
10626 .block_erasers = {
10627 {
10628 .eraseblocks = { {256 * 1024, 64} },
10629 .block_erase = spi_block_erase_d8,
10630 }, {
10631 .eraseblocks = { { 16384 * 1024, 1} },
10632 .block_erase = spi_block_erase_c7,
10633 }
10634 },
10635 .printlock = spi_prettyprint_status_register_bp2_srwd,
10636 .unlock = spi_disable_blockprotect_bp2_srwd,
10637 .write = spi_chip_write_256,
10638 .read = spi_chip_read, /* Fast read (0x0B) supported */
10639 .voltage = {2700, 3600},
10640 },
10641
10642 {
10643 .vendor = "Spansion",
10644 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010645 .bustype = BUS_SPI,
10646 .manufacture_id = SPANSION_ID,
10647 .model_id = SPANSION_S25FL128,
10648 .total_size = 16384,
10649 .page_size = 256,
10650 /* supports 4B addressing */
10651 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10653 .tested = TEST_UNTESTED,
10654 .probe = probe_spi_rdid,
10655 .probe_timing = TIMING_ZERO,
10656 .block_erasers = {
10657 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010658 /* This chip supports erasing of the 32 so-called "parameter sectors" with
10659 * opcode 0x20. Trying to access an address outside these 4kB blocks does
10660 * have no effect on the memory contents, but sets a flag in the SR.
10661 .eraseblocks = {
10662 {4 * 1024, 32},
10663 {64 * 1024, 254} // inaccessible
10664 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010665 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000010666 }, { */
10667 .eraseblocks = { { 64 * 1024, 256} },
10668 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010669 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000010670 .eraseblocks = { { 16384 * 1024, 1} },
10671 .block_erase = spi_block_erase_60,
10672 }, {
10673 .eraseblocks = { { 16384 * 1024, 1} },
10674 .block_erase = spi_block_erase_c7,
10675 }
10676 },
10677 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10678 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10679 .write = spi_chip_write_256, /* Multi I/O supported */
10680 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10681 .voltage = {2700, 3600},
10682 },
10683
10684 {
10685 .vendor = "Spansion",
10686 .name = "S25FL128S......1", /* uniform 256 kB sectors */
10687 .bustype = BUS_SPI,
10688 .manufacture_id = SPANSION_ID,
10689 .model_id = SPANSION_S25FL128,
10690 .total_size = 16384,
10691 .page_size = 512,
10692 /* supports 4B addressing */
10693 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10694 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10695 .tested = TEST_UNTESTED,
10696 .probe = probe_spi_rdid,
10697 .probe_timing = TIMING_ZERO,
10698 .block_erasers = {
10699 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010700 .eraseblocks = { {256 * 1024, 64} },
10701 .block_erase = spi_block_erase_d8,
10702 }, {
10703 .eraseblocks = { { 16384 * 1024, 1} },
10704 .block_erase = spi_block_erase_60,
10705 }, {
10706 .eraseblocks = { { 16384 * 1024, 1} },
10707 .block_erase = spi_block_erase_c7,
10708 }
10709 },
10710 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10711 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10712 .write = spi_chip_write_256, /* Multi I/O supported */
10713 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10714 .voltage = {2700, 3600},
10715 },
10716
10717 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010718 .vendor = "Spansion",
10719 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10720 .bustype = BUS_SPI,
10721 .manufacture_id = SPANSION_ID,
10722 .model_id = SPANSION_S25FL128,
10723 .total_size = 16384,
10724 .page_size = 256,
10725 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10726 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10727 .tested = TEST_OK_PREW,
10728 .probe = probe_spi_rdid,
10729 .probe_timing = TIMING_ZERO,
10730 .block_erasers = {
10731 {
10732 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
10733 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
10734 * effect on the memory contents, but sets a flag in the SR.
10735 .eraseblocks = {
10736 {4 * 1024, 32},
10737 {64 * 1024, 254} // inaccessible
10738 },
10739 .block_erase = spi_block_erase_20,
10740 }, { */
10741 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
10742 .eraseblocks = {
10743 {8 * 1024, 16},
10744 {64 * 1024, 254} // inaccessible
10745 },
10746 .block_erase = spi_block_erase_40,
10747 }, { */
10748 .eraseblocks = { { 64 * 1024, 256} },
10749 .block_erase = spi_block_erase_d8,
10750 }, {
10751 .eraseblocks = { { 16384 * 1024, 1} },
10752 .block_erase = spi_block_erase_60,
10753 }, {
10754 .eraseblocks = { { 16384 * 1024, 1} },
10755 .block_erase = spi_block_erase_c7,
10756 }
10757 },
10758 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10759 .unlock = spi_disable_blockprotect_bp2_srwd,
10760 .write = spi_chip_write_256, /* Multi I/O supported */
10761 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10762 .voltage = {2700, 3600},
10763 },
10764
10765 {
10766 .vendor = "Spansion",
10767 .name = "S25FL129P......1", /* uniform 256 kB sectors */
10768 .bustype = BUS_SPI,
10769 .manufacture_id = SPANSION_ID,
10770 .model_id = SPANSION_S25FL128,
10771 .total_size = 16384,
10772 .page_size = 512,
10773 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10774 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10775 .tested = TEST_UNTESTED,
10776 .probe = probe_spi_rdid,
10777 .probe_timing = TIMING_ZERO,
10778 .block_erasers = {
10779 {
10780 .eraseblocks = { {256 * 1024, 64} },
10781 .block_erase = spi_block_erase_d8,
10782 }, {
10783 .eraseblocks = { { 16384 * 1024, 1} },
10784 .block_erase = spi_block_erase_60,
10785 }, {
10786 .eraseblocks = { { 16384 * 1024, 1} },
10787 .block_erase = spi_block_erase_c7,
10788 }
10789 },
10790 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10791 .unlock = spi_disable_blockprotect_bp2_srwd,
10792 .write = spi_chip_write_256, /* Multi I/O supported */
10793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10794 .voltage = {2700, 3600},
10795 },
10796
10797 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010798 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000010799 .name = "SST25LF020A",
10800 .bustype = BUS_SPI,
10801 .manufacture_id = SST_ID,
10802 .model_id = SST_SST25VF020_REMS,
10803 .total_size = 256,
10804 .page_size = 256,
10805 .feature_bits = FEATURE_WRSR_EWSR,
10806 .tested = TEST_OK_PREW,
10807 .probe = probe_spi_rems,
10808 .probe_timing = TIMING_ZERO,
10809 .block_erasers =
10810 {
10811 {
10812 .eraseblocks = { {4 * 1024, 64} },
10813 .block_erase = spi_block_erase_20,
10814 }, {
10815 .eraseblocks = { {32 * 1024, 8} },
10816 .block_erase = spi_block_erase_52,
10817 }, {
10818 .eraseblocks = { {256 * 1024, 1} },
10819 .block_erase = spi_block_erase_60,
10820 },
10821 },
10822 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10823 .unlock = spi_disable_blockprotect,
10824 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10825 .read = spi_chip_read, /* Fast read (0x0B) supported */
10826 .voltage = {2700, 3600},
10827 },
10828
10829 {
10830 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000010831 .name = "SST25LF040A",
10832 .bustype = BUS_SPI,
10833 .manufacture_id = SST_ID,
10834 .model_id = SST_SST25VF040_REMS,
10835 .total_size = 512,
10836 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010837 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000010838 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000010839 .probe = probe_spi_res2,
10840 .probe_timing = TIMING_ZERO,
10841 .block_erasers =
10842 {
10843 {
10844 .eraseblocks = { {4 * 1024, 128} },
10845 .block_erase = spi_block_erase_20,
10846 }, {
10847 .eraseblocks = { {32 * 1024, 16} },
10848 .block_erase = spi_block_erase_52,
10849 }, {
10850 .eraseblocks = { {512 * 1024, 1} },
10851 .block_erase = spi_block_erase_60,
10852 },
10853 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010854 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010855 .unlock = spi_disable_blockprotect,
10856 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10857 .read = spi_chip_read,
10858 .voltage = {3000, 3600},
10859 },
10860
10861 {
10862 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010863 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000010864 .bustype = BUS_SPI,
10865 .manufacture_id = SST_ID,
10866 .model_id = SST_SST25VF080_REMS,
10867 .total_size = 1024,
10868 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010869 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000010870 .tested = TEST_UNTESTED,
10871 .probe = probe_spi_res2,
10872 .probe_timing = TIMING_ZERO,
10873 .block_erasers =
10874 {
10875 {
10876 .eraseblocks = { {4 * 1024, 256} },
10877 .block_erase = spi_block_erase_20,
10878 }, {
10879 .eraseblocks = { {32 * 1024, 32} },
10880 .block_erase = spi_block_erase_52,
10881 }, {
10882 .eraseblocks = { {1024 * 1024, 1} },
10883 .block_erase = spi_block_erase_60,
10884 },
10885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010886 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010887 .unlock = spi_disable_blockprotect,
10888 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10889 .read = spi_chip_read,
10890 .voltage = {3000, 3600},
10891 },
10892
10893 {
10894 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010895 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000010896 .bustype = BUS_SPI,
10897 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000010898 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000010899 .total_size = 64,
10900 .page_size = 256,
10901 .feature_bits = FEATURE_WRSR_EWSR,
10902 .tested = TEST_OK_PREW,
10903 .probe = probe_spi_rems,
10904 .probe_timing = TIMING_ZERO,
10905 .block_erasers =
10906 {
10907 {
10908 .eraseblocks = { {4 * 1024, 16} },
10909 .block_erase = spi_block_erase_20,
10910 }, {
10911 .eraseblocks = { {32 * 1024, 2} },
10912 .block_erase = spi_block_erase_52,
10913 }, {
10914 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010915 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010916 }, {
10917 .eraseblocks = { {64 * 1024, 1} },
10918 .block_erase = spi_block_erase_60,
10919 }, {
10920 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010921 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010922 },
10923 },
10924 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10925 .unlock = spi_disable_blockprotect,
10926 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010927 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010928 .voltage = {2700, 3600},
10929 },
10930
10931 {
10932 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010933 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010934 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010935 .manufacture_id = SST_ID,
10936 .model_id = SST_SST25VF010_REMS,
10937 .total_size = 128,
10938 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010939 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010940 .tested = TEST_OK_PREW,
10941 .probe = probe_spi_rems,
10942 .probe_timing = TIMING_ZERO,
10943 .block_erasers =
10944 {
10945 {
10946 .eraseblocks = { {4 * 1024, 32} },
10947 .block_erase = spi_block_erase_20,
10948 }, {
10949 .eraseblocks = { {32 * 1024, 4} },
10950 .block_erase = spi_block_erase_52,
10951 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010952 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010953 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010954 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010955 .eraseblocks = { {128 * 1024, 1} },
10956 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010957 }, {
10958 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010959 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010960 },
10961 },
10962 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10963 .unlock = spi_disable_blockprotect,
10964 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010965 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010966 .voltage = {2700, 3600},
10967 },
10968
10969 {
10970 .vendor = "SST",
10971 .name = "SST25VF020",
10972 .bustype = BUS_SPI,
10973 .manufacture_id = SST_ID,
10974 .model_id = SST_SST25VF020_REMS,
10975 .total_size = 256,
10976 .page_size = 256,
10977 .feature_bits = FEATURE_WRSR_EWSR,
10978 .tested = TEST_UNTESTED,
10979 .probe = probe_spi_rems,
10980 .probe_timing = TIMING_ZERO,
10981 .block_erasers =
10982 {
10983 {
10984 .eraseblocks = { {4 * 1024, 64} },
10985 .block_erase = spi_block_erase_20,
10986 }, {
10987 .eraseblocks = { {32 * 1024, 8} },
10988 .block_erase = spi_block_erase_52,
10989 }, {
10990 .eraseblocks = { {256 * 1024, 1} },
10991 .block_erase = spi_block_erase_60,
10992 },
10993 },
10994 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10995 .unlock = spi_disable_blockprotect,
10996 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10997 .read = spi_chip_read, /* only */
10998 .voltage = {2700, 3600},
10999 },
11000
11001 {
11002 .vendor = "SST",
11003 .name = "SST25VF020B",
11004 .bustype = BUS_SPI,
11005 .manufacture_id = SST_ID,
11006 .model_id = SST_SST25VF020B,
11007 .total_size = 256,
11008 .page_size = 256,
11009 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011010 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000011011 .probe = probe_spi_rdid,
11012 .probe_timing = TIMING_ZERO,
11013 .block_erasers =
11014 {
11015 {
11016 .eraseblocks = { {4 * 1024, 64} },
11017 .block_erase = spi_block_erase_20,
11018 }, {
11019 .eraseblocks = { {32 * 1024, 8} },
11020 .block_erase = spi_block_erase_52,
11021 }, {
11022 .eraseblocks = { {64 * 1024, 4} },
11023 .block_erase = spi_block_erase_d8,
11024 }, {
11025 .eraseblocks = { {256 * 1024, 1} },
11026 .block_erase = spi_block_erase_60,
11027 }, {
11028 .eraseblocks = { {256 * 1024, 1} },
11029 .block_erase = spi_block_erase_c7,
11030 },
11031 },
11032 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
11033 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
11034 .write = spi_aai_write, /* AAI supported (0xAD) */
11035 .read = spi_chip_read, /* Fast read (0x0B) supported */
11036 .voltage = {2700, 3600},
11037 },
11038
11039 {
11040 .vendor = "SST",
11041 .name = "SST25VF040",
11042 .bustype = BUS_SPI,
11043 .manufacture_id = SST_ID,
11044 .model_id = SST_SST25VF040_REMS,
11045 .total_size = 512,
11046 .page_size = 256,
11047 .feature_bits = FEATURE_WRSR_EWSR,
11048 .tested = TEST_OK_PR,
11049 .probe = probe_spi_rems,
11050 .probe_timing = TIMING_ZERO,
11051 .block_erasers =
11052 {
11053 {
11054 .eraseblocks = { {4 * 1024, 128} },
11055 .block_erase = spi_block_erase_20,
11056 }, {
11057 .eraseblocks = { {32 * 1024, 16} },
11058 .block_erase = spi_block_erase_52,
11059 }, {
11060 .eraseblocks = { {512 * 1024, 1} },
11061 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000011062 },
11063 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011064 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000011065 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000011066 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11067 .read = spi_chip_read,
11068 .voltage = {2700, 3600},
11069 },
11070
11071 {
11072 .vendor = "SST",
11073 .name = "SST25VF040B",
11074 .bustype = BUS_SPI,
11075 .manufacture_id = SST_ID,
11076 .model_id = SST_SST25VF040B,
11077 .total_size = 512,
11078 .page_size = 256,
11079 .feature_bits = FEATURE_WRSR_EWSR,
11080 .tested = TEST_OK_PREW,
11081 .probe = probe_spi_rdid,
11082 .probe_timing = TIMING_ZERO,
11083 .block_erasers =
11084 {
11085 {
11086 .eraseblocks = { {4 * 1024, 128} },
11087 .block_erase = spi_block_erase_20,
11088 }, {
11089 .eraseblocks = { {32 * 1024, 16} },
11090 .block_erase = spi_block_erase_52,
11091 }, {
11092 .eraseblocks = { {64 * 1024, 8} },
11093 .block_erase = spi_block_erase_d8,
11094 }, {
11095 .eraseblocks = { {512 * 1024, 1} },
11096 .block_erase = spi_block_erase_60,
11097 }, {
11098 .eraseblocks = { {512 * 1024, 1} },
11099 .block_erase = spi_block_erase_c7,
11100 },
11101 },
11102 .printlock = spi_prettyprint_status_register_sst25vf040b,
11103 .unlock = spi_disable_blockprotect,
11104 .write = spi_aai_write, /* AAI supported (0xAD) */
11105 .read = spi_chip_read, /* Fast read (0x0B) supported */
11106 .voltage = {2700, 3600},
11107 },
11108
11109 {
11110 .vendor = "SST",
11111 .name = "SST25VF040B.REMS",
11112 .bustype = BUS_SPI,
11113 .manufacture_id = SST_ID,
11114 .model_id = SST_SST25VF040B_REMS,
11115 .total_size = 512,
11116 .page_size = 256,
11117 .feature_bits = FEATURE_WRSR_EWSR,
11118 .tested = TEST_OK_PREW,
11119 .probe = probe_spi_rems,
11120 .probe_timing = TIMING_ZERO,
11121 .block_erasers =
11122 {
11123 {
11124 .eraseblocks = { {4 * 1024, 128} },
11125 .block_erase = spi_block_erase_20,
11126 }, {
11127 .eraseblocks = { {32 * 1024, 16} },
11128 .block_erase = spi_block_erase_52,
11129 }, {
11130 .eraseblocks = { {64 * 1024, 8} },
11131 .block_erase = spi_block_erase_d8,
11132 }, {
11133 .eraseblocks = { {512 * 1024, 1} },
11134 .block_erase = spi_block_erase_60,
11135 }, {
11136 .eraseblocks = { {512 * 1024, 1} },
11137 .block_erase = spi_block_erase_c7,
11138 },
11139 },
11140 .printlock = spi_prettyprint_status_register_sst25vf040b,
11141 .unlock = spi_disable_blockprotect,
11142 .write = spi_aai_write,
11143 .read = spi_chip_read,
11144 .voltage = {2700, 3600},
11145 },
11146
11147 {
11148 .vendor = "SST",
11149 .name = "SST25VF080B",
11150 .bustype = BUS_SPI,
11151 .manufacture_id = SST_ID,
11152 .model_id = SST_SST25VF080B,
11153 .total_size = 1024,
11154 .page_size = 256,
11155 .feature_bits = FEATURE_WRSR_EWSR,
11156 .tested = TEST_OK_PREW,
11157 .probe = probe_spi_rdid,
11158 .probe_timing = TIMING_ZERO,
11159 .block_erasers =
11160 {
11161 {
11162 .eraseblocks = { {4 * 1024, 256} },
11163 .block_erase = spi_block_erase_20,
11164 }, {
11165 .eraseblocks = { {32 * 1024, 32} },
11166 .block_erase = spi_block_erase_52,
11167 }, {
11168 .eraseblocks = { {64 * 1024, 16} },
11169 .block_erase = spi_block_erase_d8,
11170 }, {
11171 .eraseblocks = { {1024 * 1024, 1} },
11172 .block_erase = spi_block_erase_60,
11173 }, {
11174 .eraseblocks = { {1024 * 1024, 1} },
11175 .block_erase = spi_block_erase_c7,
11176 },
11177 },
11178 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
11179 .unlock = spi_disable_blockprotect,
11180 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000011181 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011182 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000011183 },
11184
11185 {
11186 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011187 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011188 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011189 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011190 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011191 .total_size = 2048,
11192 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011193 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000011194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011195 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011196 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011197 .block_erasers =
11198 {
11199 {
11200 .eraseblocks = { {4 * 1024, 512} },
11201 .block_erase = spi_block_erase_20,
11202 }, {
11203 .eraseblocks = { {32 * 1024, 64} },
11204 .block_erase = spi_block_erase_52,
11205 }, {
11206 .eraseblocks = { {64 * 1024, 32} },
11207 .block_erase = spi_block_erase_d8,
11208 }, {
11209 .eraseblocks = { {2 * 1024 * 1024, 1} },
11210 .block_erase = spi_block_erase_60,
11211 }, {
11212 .eraseblocks = { {2 * 1024 * 1024, 1} },
11213 .block_erase = spi_block_erase_c7,
11214 },
11215 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011216 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011217 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000011218 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011219 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011220 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011221 },
11222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011223 {
11224 .vendor = "SST",
11225 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011226 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011227 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011228 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011229 .total_size = 4096,
11230 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011231 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000011232 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011233 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011234 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011235 .block_erasers =
11236 {
11237 {
11238 .eraseblocks = { {4 * 1024, 1024} },
11239 .block_erase = spi_block_erase_20,
11240 }, {
11241 .eraseblocks = { {32 * 1024, 128} },
11242 .block_erase = spi_block_erase_52,
11243 }, {
11244 .eraseblocks = { {64 * 1024, 64} },
11245 .block_erase = spi_block_erase_d8,
11246 }, {
11247 .eraseblocks = { {4 * 1024 * 1024, 1} },
11248 .block_erase = spi_block_erase_60,
11249 }, {
11250 .eraseblocks = { {4 * 1024 * 1024, 1} },
11251 .block_erase = spi_block_erase_c7,
11252 },
11253 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011254 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011255 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011256 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011257 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011258 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011259 },
11260
11261 {
11262 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011263 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011264 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011265 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011266 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011267 .total_size = 8192,
11268 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011269 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000011270 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011271 .probe = probe_spi_rdid,
11272 .probe_timing = TIMING_ZERO,
11273 .block_erasers =
11274 {
11275 {
11276 .eraseblocks = { {4 * 1024, 2048} },
11277 .block_erase = spi_block_erase_20,
11278 }, {
11279 .eraseblocks = { {32 * 1024, 256} },
11280 .block_erase = spi_block_erase_52,
11281 }, {
11282 .eraseblocks = { {64 * 1024, 128} },
11283 .block_erase = spi_block_erase_d8,
11284 }, {
11285 .eraseblocks = { {8 * 1024 * 1024, 1} },
11286 .block_erase = spi_block_erase_60,
11287 }, {
11288 .eraseblocks = { {8 * 1024 * 1024, 1} },
11289 .block_erase = spi_block_erase_c7,
11290 },
11291 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011292 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011293 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011294 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011296 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011297 },
11298
11299 {
11300 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000011301 .name = "SST25WF512",
11302 .bustype = BUS_SPI,
11303 .manufacture_id = SST_ID,
11304 .model_id = SST_SST25WF512,
11305 .total_size = 64,
11306 .page_size = 256,
11307 .feature_bits = FEATURE_WRSR_EITHER,
11308 .tested = TEST_UNTESTED,
11309 .probe = probe_spi_rdid,
11310 .probe_timing = TIMING_ZERO,
11311 .block_erasers =
11312 {
11313 {
11314 .eraseblocks = { {4 * 1024, 16} },
11315 .block_erase = spi_block_erase_20,
11316 }, {
11317 .eraseblocks = { {32 * 1024, 2} },
11318 .block_erase = spi_block_erase_52,
11319 }, {
11320 .eraseblocks = { {1024 * 64, 1} },
11321 .block_erase = spi_block_erase_60,
11322 }, {
11323 .eraseblocks = { {1024 * 64, 1} },
11324 .block_erase = spi_block_erase_c7,
11325 },
11326 },
Jason Harper43ddef02014-05-04 00:55:24 +000011327 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11328 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011329 .write = spi_aai_write,
11330 .read = spi_chip_read, /* Fast read (0x0B) supported */
11331 .voltage = {1650, 1950},
11332 },
11333
11334 {
11335 .vendor = "SST",
11336 .name = "SST25WF010",
11337 .bustype = BUS_SPI,
11338 .manufacture_id = SST_ID,
11339 .model_id = SST_SST25WF010,
11340 .total_size = 128,
11341 .page_size = 256,
11342 .feature_bits = FEATURE_WRSR_EITHER,
11343 .tested = TEST_UNTESTED,
11344 .probe = probe_spi_rdid,
11345 .probe_timing = TIMING_ZERO,
11346 .block_erasers =
11347 {
11348 {
11349 .eraseblocks = { {4 * 1024, 32} },
11350 .block_erase = spi_block_erase_20,
11351 }, {
11352 .eraseblocks = { {32 * 1024, 4} },
11353 .block_erase = spi_block_erase_52,
11354 }, {
11355 .eraseblocks = { {1024 * 128, 1} },
11356 .block_erase = spi_block_erase_60,
11357 }, {
11358 .eraseblocks = { {1024 * 128, 1} },
11359 .block_erase = spi_block_erase_c7,
11360 },
11361 },
Jason Harper43ddef02014-05-04 00:55:24 +000011362 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11363 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011364 .write = spi_aai_write,
11365 .read = spi_chip_read, /* Fast read (0x0B) supported */
11366 .voltage = {1650, 1950},
11367 },
11368
11369 {
11370 .vendor = "SST",
11371 .name = "SST25WF020",
11372 .bustype = BUS_SPI,
11373 .manufacture_id = SST_ID,
11374 .model_id = SST_SST25WF020,
11375 .total_size = 256,
11376 .page_size = 256,
11377 .feature_bits = FEATURE_WRSR_EITHER,
11378 .tested = TEST_UNTESTED,
11379 .probe = probe_spi_rdid,
11380 .probe_timing = TIMING_ZERO,
11381 .block_erasers =
11382 {
11383 {
11384 .eraseblocks = { {4 * 1024, 64} },
11385 .block_erase = spi_block_erase_20,
11386 }, {
11387 .eraseblocks = { {32 * 1024, 8} },
11388 .block_erase = spi_block_erase_52,
11389 }, {
11390 .eraseblocks = { {64 * 1024, 4} },
11391 .block_erase = spi_block_erase_d8,
11392 }, {
11393 .eraseblocks = { {1024 * 256, 1} },
11394 .block_erase = spi_block_erase_60,
11395 }, {
11396 .eraseblocks = { {1024 * 256, 1} },
11397 .block_erase = spi_block_erase_c7,
11398 },
11399 },
Jason Harper43ddef02014-05-04 00:55:24 +000011400 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11401 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011402 .write = spi_aai_write,
11403 .read = spi_chip_read, /* Fast read (0x0B) supported */
11404 .voltage = {1650, 1950},
11405 },
11406
11407 {
11408 .vendor = "SST",
11409 .name = "SST25WF040",
11410 .bustype = BUS_SPI,
11411 .manufacture_id = SST_ID,
11412 .model_id = SST_SST25WF040,
11413 .total_size = 512,
11414 .page_size = 256,
11415 .feature_bits = FEATURE_WRSR_EITHER,
11416 .tested = TEST_UNTESTED,
11417 .probe = probe_spi_rdid,
11418 .probe_timing = TIMING_ZERO,
11419 .block_erasers =
11420 {
11421 {
11422 .eraseblocks = { {4 * 1024, 128} },
11423 .block_erase = spi_block_erase_20,
11424 }, {
11425 .eraseblocks = { {32 * 1024, 16} },
11426 .block_erase = spi_block_erase_52,
11427 }, {
11428 .eraseblocks = { {64 * 1024, 8} },
11429 .block_erase = spi_block_erase_d8,
11430 }, {
11431 .eraseblocks = { {1024 * 512, 1} },
11432 .block_erase = spi_block_erase_60,
11433 }, {
11434 .eraseblocks = { {1024 * 512, 1} },
11435 .block_erase = spi_block_erase_c7,
11436 },
11437 },
Jason Harper43ddef02014-05-04 00:55:24 +000011438 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11439 .unlock = spi_disable_blockprotect_bp2_srwd,
11440 .write = spi_aai_write,
11441 .read = spi_chip_read, /* Fast read (0x0B) supported */
11442 .voltage = {1650, 1950},
11443 },
11444
11445 {
11446 .vendor = "SST",
11447 .name = "SST25WF080",
11448 .bustype = BUS_SPI,
11449 .manufacture_id = SST_ID,
11450 .model_id = SST_SST25WF080,
11451 .total_size = 1024,
11452 .page_size = 256,
11453 .feature_bits = FEATURE_WRSR_EITHER,
11454 .tested = TEST_OK_PREW,
11455 .probe = probe_spi_rdid,
11456 .probe_timing = TIMING_ZERO,
11457 .block_erasers =
11458 {
11459 {
11460 .eraseblocks = { {4 * 1024, 256} },
11461 .block_erase = spi_block_erase_20,
11462 }, {
11463 .eraseblocks = { {32 * 1024, 32} },
11464 .block_erase = spi_block_erase_52,
11465 }, {
11466 .eraseblocks = { {64 * 1024, 16} },
11467 .block_erase = spi_block_erase_d8,
11468 }, {
11469 .eraseblocks = { {1024 * 1024, 1} },
11470 .block_erase = spi_block_erase_60,
11471 }, {
11472 .eraseblocks = { {1024 * 1024, 1} },
11473 .block_erase = spi_block_erase_c7,
11474 },
11475 },
11476 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
11477 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011478 .write = spi_aai_write,
11479 .read = spi_chip_read, /* Fast read (0x0B) supported */
11480 .voltage = {1650, 1950},
11481 },
11482
11483 {
11484 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011485 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011486 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011487 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011488 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011489 .total_size = 512,
11490 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011491 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011492 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011493 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011494 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011495 .block_erasers =
11496 {
11497 {
11498 .eraseblocks = { {128, 4096} },
11499 .block_erase = erase_sector_28sf040,
11500 }, {
11501 .eraseblocks = { {512 * 1024, 1} },
11502 .block_erase = erase_chip_28sf040,
11503 }
11504 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011505 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011506 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011507 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011508 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011509 },
11510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011511 {
11512 .vendor = "SST",
11513 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011514 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011515 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011516 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011517 .total_size = 128,
11518 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011519 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011520 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011521 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011522 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011523 .block_erasers =
11524 {
11525 {
11526 .eraseblocks = { {128 * 1024, 1} },
11527 .block_erase = erase_chip_block_jedec,
11528 }
11529 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011530 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011531 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011532 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011533 },
11534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011535 {
11536 .vendor = "SST",
11537 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011538 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011539 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011540 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011541 .total_size = 128,
11542 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011543 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011544 .tested = TEST_UNTESTED,
11545 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011546 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011547 .block_erasers =
11548 {
11549 {
11550 .eraseblocks = { {128 * 1024, 1} },
11551 .block_erase = erase_chip_block_jedec,
11552 }
11553 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011554 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011555 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011556 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011557 },
11558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011559 {
11560 .vendor = "SST",
11561 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011562 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011563 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011564 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011565 .total_size = 256,
11566 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011567 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011568 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011569 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011570 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011571 .block_erasers =
11572 {
11573 {
11574 .eraseblocks = { {256 * 1024, 1} },
11575 .block_erase = erase_chip_block_jedec,
11576 }
11577 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011578 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011580 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011581 },
11582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011583 {
11584 .vendor = "SST",
11585 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011586 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011587 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011588 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011589 .total_size = 256,
11590 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011591 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011592 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011593 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011594 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011595 .block_erasers =
11596 {
11597 {
11598 .eraseblocks = { {256 * 1024, 1} },
11599 .block_erase = erase_chip_block_jedec,
11600 }
11601 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011602 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011604 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011605 },
11606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011607 {
11608 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000011609 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011610 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011611 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011612 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011613 .total_size = 64,
11614 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011615 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000011616 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011617 .probe = probe_jedec,
11618 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000011619 .block_erasers =
11620 {
11621 {
11622 .eraseblocks = { {4 * 1024, 16} },
11623 .block_erase = erase_sector_jedec,
11624 }, {
11625 .eraseblocks = { {64 * 1024, 1} },
11626 .block_erase = erase_chip_block_jedec,
11627 }
11628 },
Sean Nelson35727f72010-01-28 23:55:12 +000011629 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011631 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000011632 },
11633
11634 {
11635 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011636 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011637 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011638 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011639 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011640 .total_size = 128,
11641 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011642 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011644 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011645 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011646 .block_erasers =
11647 {
11648 {
11649 .eraseblocks = { {4 * 1024, 32} },
11650 .block_erase = erase_sector_jedec,
11651 }, {
11652 .eraseblocks = { {128 * 1024, 1} },
11653 .block_erase = erase_chip_block_jedec,
11654 }
11655 },
Sean Nelson35727f72010-01-28 23:55:12 +000011656 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011657 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011658 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011659 },
11660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011661 {
11662 .vendor = "SST",
11663 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011664 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011665 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011666 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011667 .total_size = 256,
11668 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011669 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000011670 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011671 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011672 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011673 .block_erasers =
11674 {
11675 {
11676 .eraseblocks = { {4 * 1024, 64} },
11677 .block_erase = erase_sector_jedec,
11678 }, {
11679 .eraseblocks = { {256 * 1024, 1} },
11680 .block_erase = erase_chip_block_jedec,
11681 }
11682 },
Sean Nelson35727f72010-01-28 23:55:12 +000011683 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011685 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011686 },
11687
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011688 {
11689 .vendor = "SST",
11690 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011691 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011692 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011693 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011694 .total_size = 512,
11695 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011696 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011697 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011698 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011699 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011700 .block_erasers =
11701 {
11702 {
11703 .eraseblocks = { {4 * 1024, 128} },
11704 .block_erase = erase_sector_jedec,
11705 }, {
11706 .eraseblocks = { {512 * 1024, 1} },
11707 .block_erase = erase_chip_block_jedec,
11708 }
11709 },
Sean Nelson35727f72010-01-28 23:55:12 +000011710 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011712 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011713 },
11714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011715 {
11716 .vendor = "SST",
11717 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011718 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011719 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011720 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011721 .total_size = 64,
11722 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011723 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000011724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011725 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011726 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011727 .block_erasers =
11728 {
11729 {
11730 .eraseblocks = { {4 * 1024, 16} },
11731 .block_erase = erase_sector_jedec,
11732 }, {
11733 .eraseblocks = { {64 * 1024, 1} },
11734 .block_erase = erase_chip_block_jedec,
11735 }
11736 },
Sean Nelson35727f72010-01-28 23:55:12 +000011737 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011738 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011739 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011740 },
11741
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011742 {
11743 .vendor = "SST",
11744 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011745 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011746 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011747 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011748 .total_size = 128,
11749 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011750 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000011751 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011752 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011753 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011754 .block_erasers =
11755 {
11756 {
11757 .eraseblocks = { {4 * 1024, 32} },
11758 .block_erase = erase_sector_jedec,
11759 }, {
11760 .eraseblocks = { {128 * 1024, 1} },
11761 .block_erase = erase_chip_block_jedec,
11762 }
11763 },
Sean Nelson35727f72010-01-28 23:55:12 +000011764 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011765 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011767 },
11768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011769 {
11770 .vendor = "SST",
11771 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011772 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011773 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011774 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011775 .total_size = 256,
11776 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011777 .feature_bits = FEATURE_EITHER_RESET,
11778 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011779 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011780 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011781 .block_erasers =
11782 {
11783 {
11784 .eraseblocks = { {4 * 1024, 64} },
11785 .block_erase = erase_sector_jedec,
11786 }, {
11787 .eraseblocks = { {256 * 1024, 1} },
11788 .block_erase = erase_chip_block_jedec,
11789 }
11790 },
Sean Nelson35727f72010-01-28 23:55:12 +000011791 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011793 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011794 },
11795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011796 {
11797 .vendor = "SST",
11798 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011799 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011800 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011801 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011802 .total_size = 512,
11803 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011804 .feature_bits = FEATURE_EITHER_RESET,
11805 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011806 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011807 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011808 .block_erasers =
11809 {
11810 {
11811 .eraseblocks = { {4 * 1024, 128} },
11812 .block_erase = erase_sector_jedec,
11813 }, {
11814 .eraseblocks = { {512 * 1024, 1} },
11815 .block_erase = erase_chip_block_jedec,
11816 }
11817 },
Sean Nelson35727f72010-01-28 23:55:12 +000011818 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011819 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011820 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000011821 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011822
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011823 {
11824 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000011825 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011826 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011827 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011828 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000011829 .total_size = 1024,
11830 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011831 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000011832 .tested = TEST_UNTESTED,
11833 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011834 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011835 .block_erasers =
11836 {
11837 {
11838 .eraseblocks = { {4 * 1024, 256} },
11839 .block_erase = erase_sector_jedec,
11840 }, {
11841 .eraseblocks = { {64 * 1024, 16} },
11842 .block_erase = erase_block_jedec,
11843 }, {
11844 .eraseblocks = { {1024 * 1024, 1} },
11845 .block_erase = erase_chip_block_jedec,
11846 }
11847 },
Sean Nelson35727f72010-01-28 23:55:12 +000011848 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011850 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000011851 },
11852
11853 {
11854 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011855 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011856 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011857 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011858 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011859 .total_size = 256,
11860 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011861 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011862 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011863 .probe = probe_jedec,
11864 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011865 .block_erasers =
11866 {
11867 {
11868 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011869 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011870 }, {
11871 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011872 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011873 }, {
11874 .eraseblocks = { {256 * 1024, 1} },
11875 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11876 }
11877 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011878 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011879 .unlock = unlock_sst_fwhub,
11880 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011882 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011883 },
11884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011885 {
11886 .vendor = "SST",
11887 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011888 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011889 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011890 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011891 .total_size = 384,
11892 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011893 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011894 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011895 .probe = probe_jedec,
11896 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011897 .block_erasers =
11898 {
11899 {
11900 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011901 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011902 }, {
11903 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011904 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011905 }, {
11906 .eraseblocks = { {384 * 1024, 1} },
11907 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11908 }
11909 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011910 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011911 .unlock = unlock_sst_fwhub,
11912 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011913 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011914 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011915 },
11916
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011917 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011918 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11919 * and is only honored for 64k block erase, but not 4k sector erase.
11920 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011921 .vendor = "SST",
11922 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011923 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011924 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011925 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011926 .total_size = 512,
11927 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011928 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011929 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011930 .probe = probe_jedec,
11931 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011932 .block_erasers =
11933 {
11934 {
11935 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011936 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011937 }, {
11938 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011939 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011940 }, {
11941 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011942 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011943 },
11944 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011945 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011946 .unlock = unlock_sst_fwhub,
11947 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011949 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011950 },
11951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011952 {
11953 .vendor = "SST",
11954 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011955 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011956 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011957 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011958 .total_size = 512,
11959 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011960 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011961 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011962 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011963 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011964 .block_erasers =
11965 {
11966 {
11967 .eraseblocks = { {4 * 1024, 128} },
11968 .block_erase = erase_sector_49lfxxxc,
11969 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011970 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011971 {64 * 1024, 7},
11972 {32 * 1024, 1},
11973 {8 * 1024, 2},
11974 {16 * 1024, 1},
11975 },
Sean Nelson69e58112010-03-23 17:10:28 +000011976 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011977 }
11978 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011979 .printlock = printlock_regspace2_block_eraser_1,
11980 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011981 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011982 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011983 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011984 },
11985
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011986 {
11987 .vendor = "SST",
11988 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011989 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011990 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011991 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011992 .total_size = 1024,
11993 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011994 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011995 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011996 .probe = probe_jedec,
11997 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011998 .block_erasers =
11999 {
12000 {
12001 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012002 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012003 }, {
12004 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012005 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012006 }, {
12007 .eraseblocks = { {1024 * 1024, 1} },
12008 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12009 }
12010 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012011 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012012 .unlock = unlock_sst_fwhub,
12013 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012014 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012015 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012016 },
12017
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012018 {
12019 .vendor = "SST",
12020 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012021 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012022 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012023 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012024 .total_size = 1024,
12025 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012026 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012027 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012028 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012029 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012030 .block_erasers =
12031 {
12032 {
12033 .eraseblocks = { {4 * 1024, 256} },
12034 .block_erase = erase_sector_49lfxxxc,
12035 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012036 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012037 {64 * 1024, 15},
12038 {32 * 1024, 1},
12039 {8 * 1024, 2},
12040 {16 * 1024, 1},
12041 },
Sean Nelson69e58112010-03-23 17:10:28 +000012042 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012043 }
12044 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012045 .printlock = printlock_regspace2_block_eraser_1,
12046 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012047 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012049 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012050 },
12051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012052 {
12053 .vendor = "SST",
12054 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012055 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012056 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012057 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012058 .total_size = 2048,
12059 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012060 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012061 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012062 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012063 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012064 .block_erasers =
12065 {
12066 {
12067 .eraseblocks = { {4 * 1024, 512} },
12068 .block_erase = erase_sector_49lfxxxc,
12069 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012070 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012071 {64 * 1024, 31},
12072 {32 * 1024, 1},
12073 {8 * 1024, 2},
12074 {16 * 1024, 1},
12075 },
Sean Nelson69e58112010-03-23 17:10:28 +000012076 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012077 }
12078 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012079 .printlock = printlock_regspace2_block_eraser_1,
12080 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012081 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012082 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012083 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012084 },
12085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012086 {
12087 .vendor = "SST",
12088 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012089 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012090 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012091 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012092 .total_size = 256,
12093 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012094 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000012095 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012096 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012097 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012098 .block_erasers =
12099 {
12100 {
12101 .eraseblocks = { {4 * 1024, 64} },
12102 .block_erase = erase_sector_jedec,
12103 }, {
12104 .eraseblocks = { {16 * 1024, 16} },
12105 .block_erase = erase_block_jedec,
12106 }, {
12107 .eraseblocks = { {256 * 1024, 1} },
12108 .block_erase = NULL,
12109 }
12110 },
Sean Nelson35727f72010-01-28 23:55:12 +000012111 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012112 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012113 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000012114 },
12115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012116 {
12117 .vendor = "SST",
12118 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012119 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012120 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012121 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012122 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000012123 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012124 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012125 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012126 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012127 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012128 .block_erasers =
12129 {
12130 {
12131 .eraseblocks = { {4 * 1024, 64} },
12132 .block_erase = erase_sector_jedec,
12133 }, {
12134 .eraseblocks = { {16 * 1024, 16} },
12135 .block_erase = erase_block_jedec,
12136 }, {
12137 .eraseblocks = { {256 * 1024, 1} },
12138 .block_erase = NULL,
12139 }
12140 },
Sean Nelson35727f72010-01-28 23:55:12 +000012141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012142 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012143 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012144 },
12145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012146 {
12147 .vendor = "SST",
12148 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012149 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012150 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012151 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012152 .total_size = 512,
12153 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012154 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012155 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012156 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012157 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012158 .block_erasers =
12159 {
12160 {
12161 .eraseblocks = { {4 * 1024, 128} },
12162 .block_erase = erase_sector_jedec,
12163 }, {
12164 .eraseblocks = { {64 * 1024, 8} },
12165 .block_erase = erase_block_jedec,
12166 }, {
12167 .eraseblocks = { {512 * 1024, 1} },
12168 .block_erase = NULL,
12169 }
12170 },
Sean Nelson35727f72010-01-28 23:55:12 +000012171 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012172 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012173 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012174 },
12175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012176 {
12177 .vendor = "SST",
12178 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012179 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012180 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012181 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012182 .total_size = 512,
12183 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000012184 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012185 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012186 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012187 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012188 .block_erasers =
12189 {
12190 {
12191 .eraseblocks = { {4 * 1024, 128} },
12192 .block_erase = erase_sector_jedec,
12193 }, {
12194 .eraseblocks = { {64 * 1024, 8} },
12195 .block_erase = erase_block_jedec,
12196 }, {
12197 .eraseblocks = { {512 * 1024, 1} },
12198 .block_erase = NULL,
12199 }
12200 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012201 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000012202 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012204 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012205 },
12206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012207 {
12208 .vendor = "SST",
12209 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012210 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012211 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012212 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012213 .total_size = 1024,
12214 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012215 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000012216 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012217 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012218 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012219 .block_erasers =
12220 {
12221 {
12222 .eraseblocks = { {4 * 1024, 256} },
12223 .block_erase = erase_sector_jedec,
12224 }, {
12225 .eraseblocks = { {64 * 1024, 16} },
12226 .block_erase = erase_block_jedec,
12227 }, {
12228 .eraseblocks = { {1024 * 1024, 1} },
12229 .block_erase = NULL,
12230 }
12231 },
Sean Nelson35727f72010-01-28 23:55:12 +000012232 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012233 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012234 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012235 },
12236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012237 {
12238 .vendor = "SST",
12239 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012240 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012241 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012242 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012243 .total_size = 2048,
12244 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012245 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012246 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012247 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012248 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012249 .block_erasers =
12250 {
12251 {
12252 .eraseblocks = { {4 * 1024, 512} },
12253 .block_erase = erase_sector_49lfxxxc,
12254 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012255 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012256 {64 * 1024, 31},
12257 {32 * 1024, 1},
12258 {8 * 1024, 2},
12259 {16 * 1024, 1},
12260 },
Sean Nelson69e58112010-03-23 17:10:28 +000012261 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012262 }
12263 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012264 .printlock = printlock_regspace2_block_eraser_1,
12265 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012266 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012268 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012269 },
12270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012271 {
12272 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012273 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012274 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012275 .manufacture_id = ST_ID,
12276 .model_id = ST_M29F002B,
12277 .total_size = 256,
12278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012279 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012280 .tested = TEST_UNTESTED,
12281 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012282 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012283 .block_erasers =
12284 {
12285 {
12286 .eraseblocks = {
12287 {16 * 1024, 1},
12288 {8 * 1024, 2},
12289 {32 * 1024, 1},
12290 {64 * 1024, 3},
12291 },
12292 .block_erase = erase_sector_jedec,
12293 }, {
12294 .eraseblocks = { {256 * 1024, 1} },
12295 .block_erase = erase_chip_block_jedec,
12296 }
12297 },
Sean Nelson35727f72010-01-28 23:55:12 +000012298 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012299 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012300 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012301 },
12302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012303 {
12304 .vendor = "ST",
12305 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012306 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012307 .manufacture_id = ST_ID,
12308 .model_id = ST_M29F002T,
12309 .total_size = 256,
12310 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012311 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012312 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012313 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012314 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012315 .block_erasers =
12316 {
12317 {
12318 .eraseblocks = {
12319 {64 * 1024, 3},
12320 {32 * 1024, 1},
12321 {8 * 1024, 2},
12322 {16 * 1024, 1},
12323 },
12324 .block_erase = erase_sector_jedec,
12325 }, {
12326 .eraseblocks = { {256 * 1024, 1} },
12327 .block_erase = erase_chip_block_jedec,
12328 }
12329 },
Sean Nelson35727f72010-01-28 23:55:12 +000012330 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012331 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012332 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012333 },
12334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012335 {
12336 .vendor = "ST",
12337 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012338 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012339 .manufacture_id = ST_ID,
12340 .model_id = ST_M29F040B,
12341 .total_size = 512,
12342 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012343 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12344 .tested = TEST_UNTESTED,
12345 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000012346 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000012347 .block_erasers =
12348 {
12349 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012350 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000012351 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012352 }, {
12353 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012354 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012355 }
12356 },
Sean Nelson35727f72010-01-28 23:55:12 +000012357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012358 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012359 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012360 },
12361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012362 {
Sean Nelson35727f72010-01-28 23:55:12 +000012363 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012364 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012365 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012366 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012367 .manufacture_id = ST_ID,
12368 .model_id = ST_M29F400BB,
12369 .total_size = 512,
12370 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012371 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012372 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012373 .probe = probe_jedec,
12374 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012375 .block_erasers =
12376 {
12377 {
12378 .eraseblocks = {
12379 {16 * 1024, 1},
12380 {8 * 1024, 2},
12381 {32 * 1024, 1},
12382 {64 * 1024, 7},
12383 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012384 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012385 }, {
12386 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012387 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012388 }
12389 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012390 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012392 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012393 },
12394 {
12395 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
12396 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012397 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012399 .manufacture_id = ST_ID,
12400 .model_id = ST_M29F400BT,
12401 .total_size = 512,
12402 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012403 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012404 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012405 .probe = probe_jedec,
12406 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000012407 .block_erasers =
12408 {
12409 {
12410 .eraseblocks = {
12411 {64 * 1024, 7},
12412 {32 * 1024, 1},
12413 {8 * 1024, 2},
12414 {16 * 1024, 1},
12415 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012416 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012417 }, {
12418 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012419 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012420 }
12421 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012422 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012423 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012424 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012425 },
12426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012427 {
12428 .vendor = "ST",
12429 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012430 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012431 .manufacture_id = ST_ID,
12432 .model_id = ST_M29W010B,
12433 .total_size = 128,
12434 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012435 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012436 .tested = TEST_UNTESTED,
12437 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012438 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012439 .block_erasers =
12440 {
12441 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012442 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012443 .block_erase = erase_sector_jedec,
12444 }, {
12445 .eraseblocks = { {128 * 1024, 1} },
12446 .block_erase = erase_chip_block_jedec,
12447 }
12448 },
Sean Nelson35727f72010-01-28 23:55:12 +000012449 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012450 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012451 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012452 },
12453
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012454 {
12455 .vendor = "ST",
12456 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012457 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012458 .manufacture_id = ST_ID,
12459 .model_id = ST_M29W040B,
12460 .total_size = 512,
12461 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012463 .tested = TEST_UNTESTED,
12464 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012465 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012466 .block_erasers =
12467 {
12468 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012469 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012470 .block_erase = erase_sector_jedec,
12471 }, {
12472 .eraseblocks = { {512 * 1024, 1} },
12473 .block_erase = erase_chip_block_jedec,
12474 }
12475 },
Sean Nelson35727f72010-01-28 23:55:12 +000012476 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012478 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012479 },
12480
Stefan Taunereb582572012-09-21 12:52:50 +000012481 {
12482 .vendor = "ST",
12483 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012484 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000012485 .manufacture_id = ST_ID,
12486 .model_id = ST_M29W512B,
12487 .total_size = 64,
12488 .page_size = 64 * 1024,
12489 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012490 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000012491 .probe = probe_jedec,
12492 .probe_timing = TIMING_ZERO,
12493 .block_erasers =
12494 {
12495 {
12496 .eraseblocks = { {64 * 1024, 1} },
12497 .block_erase = erase_chip_block_jedec,
12498 }
12499 },
12500 .write = write_jedec_1,
12501 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012502 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000012503 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000012504
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012505 {
12506 .vendor = "ST",
12507 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012508 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012509 .manufacture_id = ST_ID,
12510 .model_id = ST_M50FLW040A,
12511 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012512 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012513 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012514 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012515 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012516 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012517 .block_erasers =
12518 {
12519 {
Sean Nelson329bde72010-01-19 16:39:19 +000012520 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012521 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012522 {64 * 1024, 5}, /* block */
12523 {4 * 1024, 16}, /* sector */
12524 {4 * 1024, 16}, /* sector */
12525 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012526 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012527 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012528 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012529 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012530 }
12531 },
Sean Nelson28accc22010-03-19 18:47:06 +000012532 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012533 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012535 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012536 },
12537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012538 {
12539 .vendor = "ST",
12540 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012541 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012542 .manufacture_id = ST_ID,
12543 .model_id = ST_M50FLW040B,
12544 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012545 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012546 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012547 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012548 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012549 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012550 .block_erasers =
12551 {
12552 {
Sean Nelson329bde72010-01-19 16:39:19 +000012553 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012554 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012555 {4 * 1024, 16}, /* sector */
12556 {64 * 1024, 5}, /* block */
12557 {4 * 1024, 16}, /* sector */
12558 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012559 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012560 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012561 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012562 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012563 }
12564 },
Sean Nelson28accc22010-03-19 18:47:06 +000012565 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012566 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012567 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012568 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012569 },
12570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012571 {
12572 .vendor = "ST",
12573 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012574 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012575 .manufacture_id = ST_ID,
12576 .model_id = ST_M50FLW080A,
12577 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012578 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012579 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012580 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012581 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012582 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012583 .block_erasers =
12584 {
12585 {
Sean Nelson329bde72010-01-19 16:39:19 +000012586 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012587 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012588 {64 * 1024, 13}, /* block */
12589 {4 * 1024, 16}, /* sector */
12590 {4 * 1024, 16}, /* sector */
12591 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012592 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012593 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012594 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012595 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012596 }
12597 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012598 .printlock = printlock_regspace2_block_eraser_0,
12599 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012600 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012602 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012603 },
12604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012605 {
12606 .vendor = "ST",
12607 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012608 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012609 .manufacture_id = ST_ID,
12610 .model_id = ST_M50FLW080B,
12611 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012612 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012613 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012614 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012615 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012616 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012617 .block_erasers =
12618 {
12619 {
Sean Nelson329bde72010-01-19 16:39:19 +000012620 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012621 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012622 {4 * 1024, 16}, /* sector */
12623 {64 * 1024, 13}, /* block */
12624 {4 * 1024, 16}, /* sector */
12625 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012626 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012627 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012628 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012629 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012630 }
12631 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012632 .printlock = printlock_regspace2_block_eraser_0,
12633 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012634 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012636 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012637 },
12638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012639 {
12640 .vendor = "ST",
12641 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012642 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012643 .manufacture_id = ST_ID,
12644 .model_id = ST_M50FW002,
12645 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000012646 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012647 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012648 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012649 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012650 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012651 .block_erasers =
12652 {
12653 {
12654 .eraseblocks = {
12655 {64 * 1024, 3},
12656 {32 * 1024, 1},
12657 {8 * 1024, 2},
12658 {16 * 1024, 1},
12659 },
Sean Nelson28accc22010-03-19 18:47:06 +000012660 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012661 }, {
12662 .eraseblocks = { {256 * 1024, 1}, },
12663 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000012664 }
12665 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012666 .printlock = printlock_regspace2_block_eraser_0,
12667 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012668 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012670 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012671 },
12672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012673 {
12674 .vendor = "ST",
12675 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012676 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012677 .manufacture_id = ST_ID,
12678 .model_id = ST_M50FW016,
12679 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012680 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012681 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012682 .tested = TEST_UNTESTED,
12683 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012684 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012685 .block_erasers =
12686 {
12687 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012688 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000012689 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012690 }
12691 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012692 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012693 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012695 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012696 },
12697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012698 {
12699 .vendor = "ST",
12700 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012701 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012702 .manufacture_id = ST_ID,
12703 .model_id = ST_M50FW040,
12704 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012705 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012706 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000012707 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012708 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012709 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012710 .block_erasers =
12711 {
12712 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012713 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012714 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012715 }
12716 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012717 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012718 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012719 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012720 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012721 },
12722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012723 {
12724 .vendor = "ST",
12725 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012726 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012727 .manufacture_id = ST_ID,
12728 .model_id = ST_M50FW080,
12729 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012730 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012731 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012732 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012733 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012734 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012735 .block_erasers =
12736 {
12737 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012738 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012739 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012740 }
12741 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012742 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012743 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012745 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012746 },
12747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012748 {
12749 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012750 .name = "M50LPW080",
12751 .bustype = BUS_LPC, /* A/A Mux */
12752 .manufacture_id = ST_ID,
12753 .model_id = ST_M50LPW080,
12754 .total_size = 1024,
12755 .page_size = 0,
12756 .feature_bits = FEATURE_REGISTERMAP,
12757 .tested = TEST_UNTESTED,
12758 .probe = probe_82802ab,
12759 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12760 .block_erasers =
12761 {
12762 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012763 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012764 .block_erase = erase_block_82802ab,
12765 }
12766 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012767 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012768 .write = write_82802ab,
12769 .read = read_memmapped,
12770 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
12771 },
12772
12773 {
12774 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012775 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012776 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012777 .manufacture_id = ST_ID,
12778 .model_id = ST_M50LPW116,
12779 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012780 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012781 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012782 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012783 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000012784 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012785 .block_erasers =
12786 {
12787 {
12788 .eraseblocks = {
12789 {4 * 1024, 16},
12790 {64 * 1024, 30},
12791 {32 * 1024, 1},
12792 {8 * 1024, 2},
12793 {16 * 1024, 1},
12794 },
Sean Nelson28accc22010-03-19 18:47:06 +000012795 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012796 }
12797 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012798 .printlock = printlock_regspace2_block_eraser_0,
12799 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012800 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012802 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012803 },
12804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012805 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012806 .vendor = "SyncMOS/MoselVitelic",
12807 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012808 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012809 .manufacture_id = SYNCMOS_MVC_ID,
12810 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012811 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012812 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012813 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012814 .tested = TEST_UNTESTED,
12815 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012816 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012817 .block_erasers =
12818 {
12819 {
12820 .eraseblocks = { {512, 256} },
12821 .block_erase = erase_sector_jedec,
12822 }, {
12823 .eraseblocks = { {128 * 1024, 1} },
12824 .block_erase = erase_chip_block_jedec,
12825 },
12826 },
Sean Nelson35727f72010-01-28 23:55:12 +000012827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012829 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012830 },
12831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012832 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012833 .vendor = "SyncMOS/MoselVitelic",
12834 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012835 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012836 .manufacture_id = SYNCMOS_MVC_ID,
12837 .model_id = SM_MVC_29C51001T,
12838 .total_size = 128,
12839 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012840 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012841 .tested = TEST_UNTESTED,
12842 .probe = probe_jedec,
12843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12844 .block_erasers =
12845 {
12846 {
12847 .eraseblocks = { {512, 256} },
12848 .block_erase = erase_sector_jedec,
12849 }, {
12850 .eraseblocks = { {128 * 1024, 1} },
12851 .block_erase = erase_chip_block_jedec,
12852 },
12853 },
12854 .write = write_jedec_1,
12855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012856 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012857 },
12858
12859 {
12860 .vendor = "SyncMOS/MoselVitelic",
12861 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012862 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012863 .manufacture_id = SYNCMOS_MVC_ID,
12864 .model_id = SM_MVC_29C51002B,
12865 .total_size = 256,
12866 .page_size = 512,
12867 .feature_bits = FEATURE_EITHER_RESET,
12868 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012869 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012870 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012871 .block_erasers =
12872 {
12873 {
12874 .eraseblocks = { {512, 512} },
12875 .block_erase = erase_sector_jedec,
12876 }, {
12877 .eraseblocks = { {256 * 1024, 1} },
12878 .block_erase = erase_chip_block_jedec,
12879 },
12880 },
Sean Nelson35727f72010-01-28 23:55:12 +000012881 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012882 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012883 },
12884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012885 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012886 .vendor = "SyncMOS/MoselVitelic",
12887 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012888 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012889 .manufacture_id = SYNCMOS_MVC_ID,
12890 .model_id = SM_MVC_29C51002T,
12891 .total_size = 256,
12892 .page_size = 512,
12893 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012894 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012895 .probe = probe_jedec,
12896 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12897 .block_erasers =
12898 {
12899 {
12900 .eraseblocks = { {512, 512} },
12901 .block_erase = erase_sector_jedec,
12902 }, {
12903 .eraseblocks = { {256 * 1024, 1} },
12904 .block_erase = erase_chip_block_jedec,
12905 },
12906 },
12907 .write = write_jedec_1,
12908 .read = read_memmapped,
12909 },
12910
12911 {
12912 .vendor = "SyncMOS/MoselVitelic",
12913 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012914 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012915 .manufacture_id = SYNCMOS_MVC_ID,
12916 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012917 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012918 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012919 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012920 .tested = TEST_UNTESTED,
12921 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012922 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012923 .block_erasers =
12924 {
12925 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012926 .eraseblocks = { {1024, 512} },
12927 .block_erase = erase_sector_jedec,
12928 }, {
12929 .eraseblocks = { {512 * 1024, 1} },
12930 .block_erase = erase_chip_block_jedec,
12931 },
12932 },
12933 .write = write_jedec_1,
12934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012935 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012936 },
12937
12938 {
12939 .vendor = "SyncMOS/MoselVitelic",
12940 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012941 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012942 .manufacture_id = SYNCMOS_MVC_ID,
12943 .model_id = SM_MVC_29C51004T,
12944 .total_size = 512,
12945 .page_size = 1024,
12946 .feature_bits = FEATURE_EITHER_RESET,
12947 .tested = TEST_UNTESTED,
12948 .probe = probe_jedec,
12949 .probe_timing = TIMING_ZERO,
12950 .block_erasers =
12951 {
12952 {
12953 .eraseblocks = { {1024, 512} },
12954 .block_erase = erase_sector_jedec,
12955 }, {
12956 .eraseblocks = { {512 * 1024, 1} },
12957 .block_erase = erase_chip_block_jedec,
12958 },
12959 },
12960 .write = write_jedec_1,
12961 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012962 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012963 },
12964
12965 {
12966 .vendor = "SyncMOS/MoselVitelic",
12967 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012968 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012969 .manufacture_id = SYNCMOS_MVC_ID,
12970 .model_id = SM_MVC_29C31004B,
12971 .total_size = 512,
12972 .page_size = 1024,
12973 .feature_bits = FEATURE_EITHER_RESET,
12974 .tested = TEST_UNTESTED,
12975 .probe = probe_jedec,
12976 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12977 .block_erasers =
12978 {
12979 {
12980 .eraseblocks = { {1024, 512} },
12981 .block_erase = erase_sector_jedec,
12982 }, {
12983 .eraseblocks = { {512 * 1024, 1} },
12984 .block_erase = erase_chip_block_jedec,
12985 },
12986 },
12987 .write = write_jedec_1,
12988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012989 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012990 },
12991
12992 {
12993 .vendor = "SyncMOS/MoselVitelic",
12994 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012995 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012996 .manufacture_id = SYNCMOS_MVC_ID,
12997 .model_id = SM_MVC_29C31004T,
12998 .total_size = 512,
12999 .page_size = 1024,
13000 .feature_bits = FEATURE_EITHER_RESET,
13001 .tested = TEST_UNTESTED,
13002 .probe = probe_jedec,
13003 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13004 .block_erasers =
13005 {
13006 {
13007 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013008 .block_erase = erase_sector_jedec,
13009 }, {
13010 .eraseblocks = { {512 * 1024, 1} },
13011 .block_erase = erase_chip_block_jedec,
13012 },
13013 },
Sean Nelson35727f72010-01-28 23:55:12 +000013014 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013016 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013017 },
13018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013019 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013020 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013021 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013022 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013023 .manufacture_id = TI_OLD_ID,
13024 .model_id = TI_TMS29F002RB,
13025 .total_size = 256,
13026 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013027 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013028 .tested = TEST_UNTESTED,
13029 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013030 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013031 .block_erasers =
13032 {
13033 {
13034 .eraseblocks = {
13035 {16 * 1024, 1},
13036 {8 * 1024, 2},
13037 {32 * 1024, 1},
13038 {64 * 1024, 3},
13039 },
13040 .block_erase = erase_sector_jedec,
13041 }, {
13042 .eraseblocks = { {256 * 1024, 1} },
13043 .block_erase = erase_chip_block_jedec,
13044 },
13045 },
Sean Nelson35727f72010-01-28 23:55:12 +000013046 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013048 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013049 },
13050
13051 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013052 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013053 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013054 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013055 .manufacture_id = TI_OLD_ID,
13056 .model_id = TI_TMS29F002RT,
13057 .total_size = 256,
13058 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013059 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013060 .tested = TEST_UNTESTED,
13061 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013062 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013063 .block_erasers =
13064 {
13065 {
13066 .eraseblocks = {
13067 {64 * 1024, 3},
13068 {32 * 1024, 1},
13069 {8 * 1024, 2},
13070 {16 * 1024, 1},
13071 },
13072 .block_erase = erase_sector_jedec,
13073 }, {
13074 .eraseblocks = { {256 * 1024, 1} },
13075 .block_erase = erase_chip_block_jedec,
13076 },
13077 },
Sean Nelson35727f72010-01-28 23:55:12 +000013078 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013080 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013081 },
13082
13083 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013084 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000013085 .name = "W25Q40.V",
13086 .bustype = BUS_SPI,
13087 .manufacture_id = WINBOND_NEX_ID,
13088 .model_id = WINBOND_NEX_W25Q40_V,
13089 .total_size = 512,
13090 .page_size = 256,
13091 /* supports SFDP */
13092 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13093 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13094 .tested = TEST_OK_PR,
13095 .probe = probe_spi_rdid,
13096 .probe_timing = TIMING_ZERO,
13097 .block_erasers =
13098 {
13099 {
13100 .eraseblocks = { {4 * 1024, 128} },
13101 .block_erase = spi_block_erase_20,
13102 }, {
13103 .eraseblocks = { {32 * 1024, 16} },
13104 .block_erase = spi_block_erase_52,
13105 }, {
13106 .eraseblocks = { {64 * 1024, 8} },
13107 .block_erase = spi_block_erase_d8,
13108 }, {
13109 .eraseblocks = { {512 * 1024, 1} },
13110 .block_erase = spi_block_erase_60,
13111 }, {
13112 .eraseblocks = { {512 * 1024, 1} },
13113 .block_erase = spi_block_erase_c7,
13114 }
13115 },
13116 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13117 .unlock = spi_disable_blockprotect,
13118 .write = spi_chip_write_256, /* Multi I/O supported */
13119 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13120 .voltage = {2700, 3600},
13121 },
13122
13123 {
13124 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013125 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013126 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013127 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013128 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013129 .total_size = 1024,
13130 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013131 /* supports SFDP */
13132 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013134 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013135 .probe = probe_spi_rdid,
13136 .probe_timing = TIMING_ZERO,
13137 .block_erasers =
13138 {
13139 {
13140 .eraseblocks = { {4 * 1024, 256} },
13141 .block_erase = spi_block_erase_20,
13142 }, {
13143 .eraseblocks = { {32 * 1024, 32} },
13144 .block_erase = spi_block_erase_52,
13145 }, {
13146 .eraseblocks = { {64 * 1024, 16} },
13147 .block_erase = spi_block_erase_d8,
13148 }, {
13149 .eraseblocks = { {1024 * 1024, 1} },
13150 .block_erase = spi_block_erase_60,
13151 }, {
13152 .eraseblocks = { {1024 * 1024, 1} },
13153 .block_erase = spi_block_erase_c7,
13154 }
13155 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013156 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013157 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013158 .write = spi_chip_write_256,
13159 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013160 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013161 },
13162
13163 {
13164 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013165 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013166 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013167 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013168 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013169 .total_size = 2048,
13170 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013171 /* supports SFDP */
13172 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013173 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000013174 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013175 .probe = probe_spi_rdid,
13176 .probe_timing = TIMING_ZERO,
13177 .block_erasers =
13178 {
13179 {
13180 .eraseblocks = { {4 * 1024, 512} },
13181 .block_erase = spi_block_erase_20,
13182 }, {
13183 .eraseblocks = { {32 * 1024, 64} },
13184 .block_erase = spi_block_erase_52,
13185 }, {
13186 .eraseblocks = { {64 * 1024, 32} },
13187 .block_erase = spi_block_erase_d8,
13188 }, {
13189 .eraseblocks = { {2 * 1024 * 1024, 1} },
13190 .block_erase = spi_block_erase_60,
13191 }, {
13192 .eraseblocks = { {2 * 1024 * 1024, 1} },
13193 .block_erase = spi_block_erase_c7,
13194 }
13195 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013196 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013197 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013198 .write = spi_chip_write_256,
13199 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013200 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013201 },
13202
13203 {
13204 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013205 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013206 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013207 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013208 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013209 .total_size = 4096,
13210 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013211 /* supports SFDP */
13212 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013213 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013214 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013215 .probe = probe_spi_rdid,
13216 .probe_timing = TIMING_ZERO,
13217 .block_erasers =
13218 {
13219 {
13220 .eraseblocks = { {4 * 1024, 1024} },
13221 .block_erase = spi_block_erase_20,
13222 }, {
13223 .eraseblocks = { {32 * 1024, 128} },
13224 .block_erase = spi_block_erase_52,
13225 }, {
13226 .eraseblocks = { {64 * 1024, 64} },
13227 .block_erase = spi_block_erase_d8,
13228 }, {
13229 .eraseblocks = { {4 * 1024 * 1024, 1} },
13230 .block_erase = spi_block_erase_60,
13231 }, {
13232 .eraseblocks = { {4 * 1024 * 1024, 1} },
13233 .block_erase = spi_block_erase_c7,
13234 }
13235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013236 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013237 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013238 .write = spi_chip_write_256,
13239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013240 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013241 },
13242
13243 {
13244 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013245 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013246 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000013247 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013248 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000013249 .total_size = 8192,
13250 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013251 /* supports SFDP */
13252 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013254 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000013255 .probe = probe_spi_rdid,
13256 .probe_timing = TIMING_ZERO,
13257 .block_erasers =
13258 {
13259 {
13260 .eraseblocks = { {4 * 1024, 2048} },
13261 .block_erase = spi_block_erase_20,
13262 }, {
13263 .eraseblocks = { {32 * 1024, 256} },
13264 .block_erase = spi_block_erase_52,
13265 }, {
13266 .eraseblocks = { {64 * 1024, 128} },
13267 .block_erase = spi_block_erase_d8,
13268 }, {
13269 .eraseblocks = { {8 * 1024 * 1024, 1} },
13270 .block_erase = spi_block_erase_60,
13271 }, {
13272 .eraseblocks = { {8 * 1024 * 1024, 1} },
13273 .block_erase = spi_block_erase_c7,
13274 }
13275 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013276 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013277 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000013278 .write = spi_chip_write_256,
13279 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013280 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000013281 },
13282
13283 {
13284 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013285 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013286 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013287 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013288 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013289 .total_size = 16384,
13290 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013291 /* supports SFDP */
13292 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013294 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013295 .probe = probe_spi_rdid,
13296 .probe_timing = TIMING_ZERO,
13297 .block_erasers =
13298 {
13299 {
13300 .eraseblocks = { {4 * 1024, 4096} },
13301 .block_erase = spi_block_erase_20,
13302 }, {
13303 .eraseblocks = { {32 * 1024, 512} },
13304 .block_erase = spi_block_erase_52,
13305 }, {
13306 .eraseblocks = { {64 * 1024, 256} },
13307 .block_erase = spi_block_erase_d8,
13308 }, {
13309 .eraseblocks = { {16 * 1024 * 1024, 1} },
13310 .block_erase = spi_block_erase_60,
13311 }, {
13312 .eraseblocks = { {16 * 1024 * 1024, 1} },
13313 .block_erase = spi_block_erase_c7,
13314 }
13315 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013316 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013317 .unlock = spi_disable_blockprotect,
13318 .write = spi_chip_write_256,
13319 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013320 .voltage = {2700, 3600},
13321 },
13322
13323 {
13324 .vendor = "Winbond",
13325 .name = "W25Q20.W",
13326 .bustype = BUS_SPI,
13327 .manufacture_id = WINBOND_NEX_ID,
13328 .model_id = WINBOND_NEX_W25Q20_W,
13329 .total_size = 256,
13330 .page_size = 256,
13331 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13333 .tested = TEST_UNTESTED,
13334 .probe = probe_spi_rdid,
13335 .probe_timing = TIMING_ZERO,
13336 .block_erasers =
13337 {
13338 {
13339 .eraseblocks = { {4 * 1024, 64} },
13340 .block_erase = spi_block_erase_20,
13341 }, {
13342 .eraseblocks = { {32 * 1024, 8} },
13343 .block_erase = spi_block_erase_52,
13344 }, {
13345 .eraseblocks = { {64 * 1024, 4} },
13346 .block_erase = spi_block_erase_d8,
13347 }, {
13348 .eraseblocks = { {256 * 1024, 1} },
13349 .block_erase = spi_block_erase_60,
13350 }, {
13351 .eraseblocks = { {256 * 1024, 1} },
13352 .block_erase = spi_block_erase_c7,
13353 }
13354 },
13355 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13356 .unlock = spi_disable_blockprotect,
13357 .write = spi_chip_write_256,
13358 .read = spi_chip_read,
13359 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13360 },
13361
13362 {
13363 .vendor = "Winbond",
13364 .name = "W25Q40.W",
13365 .bustype = BUS_SPI,
13366 .manufacture_id = WINBOND_NEX_ID,
13367 .model_id = WINBOND_NEX_W25Q40_W,
13368 .total_size = 512,
13369 .page_size = 256,
13370 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13372 .tested = TEST_UNTESTED,
13373 .probe = probe_spi_rdid,
13374 .probe_timing = TIMING_ZERO,
13375 .block_erasers =
13376 {
13377 {
13378 .eraseblocks = { {4 * 1024, 128} },
13379 .block_erase = spi_block_erase_20,
13380 }, {
13381 .eraseblocks = { {32 * 1024, 16} },
13382 .block_erase = spi_block_erase_52,
13383 }, {
13384 .eraseblocks = { {64 * 1024, 8} },
13385 .block_erase = spi_block_erase_d8,
13386 }, {
13387 .eraseblocks = { {512 * 1024, 1} },
13388 .block_erase = spi_block_erase_60,
13389 }, {
13390 .eraseblocks = { {512 * 1024, 1} },
13391 .block_erase = spi_block_erase_c7,
13392 }
13393 },
13394 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13395 .unlock = spi_disable_blockprotect,
13396 .write = spi_chip_write_256,
13397 .read = spi_chip_read,
13398 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13399 },
13400
13401 {
13402 .vendor = "Winbond",
13403 .name = "W25Q80.W",
13404 .bustype = BUS_SPI,
13405 .manufacture_id = WINBOND_NEX_ID,
13406 .model_id = WINBOND_NEX_W25Q80_W,
13407 .total_size = 1024,
13408 .page_size = 256,
13409 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13410 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13411 .tested = TEST_UNTESTED,
13412 .probe = probe_spi_rdid,
13413 .probe_timing = TIMING_ZERO,
13414 .block_erasers =
13415 {
13416 {
13417 .eraseblocks = { {4 * 1024, 256} },
13418 .block_erase = spi_block_erase_20,
13419 }, {
13420 .eraseblocks = { {32 * 1024, 32} },
13421 .block_erase = spi_block_erase_52,
13422 }, {
13423 .eraseblocks = { {64 * 1024, 16} },
13424 .block_erase = spi_block_erase_d8,
13425 }, {
13426 .eraseblocks = { {1 * 1024 * 1024, 1} },
13427 .block_erase = spi_block_erase_60,
13428 }, {
13429 .eraseblocks = { {1 * 1024 * 1024, 1} },
13430 .block_erase = spi_block_erase_c7,
13431 }
13432 },
13433 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13434 .unlock = spi_disable_blockprotect,
13435 .write = spi_chip_write_256,
13436 .read = spi_chip_read,
13437 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13438 },
13439
13440 {
13441 .vendor = "Winbond",
13442 .name = "W25Q16.W",
13443 .bustype = BUS_SPI,
13444 .manufacture_id = WINBOND_NEX_ID,
13445 .model_id = WINBOND_NEX_W25Q16_W,
13446 .total_size = 2048,
13447 .page_size = 256,
13448 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13449 /* QPI enable 0x38, disable 0xFF */
13450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13451 .tested = TEST_UNTESTED,
13452 .probe = probe_spi_rdid,
13453 .probe_timing = TIMING_ZERO,
13454 .block_erasers =
13455 {
13456 {
13457 .eraseblocks = { {4 * 1024, 512} },
13458 .block_erase = spi_block_erase_20,
13459 }, {
13460 .eraseblocks = { {32 * 1024, 64} },
13461 .block_erase = spi_block_erase_52,
13462 }, {
13463 .eraseblocks = { {64 * 1024, 32} },
13464 .block_erase = spi_block_erase_d8,
13465 }, {
13466 .eraseblocks = { {2 * 1024 * 1024, 1} },
13467 .block_erase = spi_block_erase_60,
13468 }, {
13469 .eraseblocks = { {2 * 1024 * 1024, 1} },
13470 .block_erase = spi_block_erase_c7,
13471 }
13472 },
13473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13474 .unlock = spi_disable_blockprotect,
13475 .write = spi_chip_write_256,
13476 .read = spi_chip_read,
13477 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13478 },
13479
13480 {
13481 .vendor = "Winbond",
13482 .name = "W25Q32.W",
13483 .bustype = BUS_SPI,
13484 .manufacture_id = WINBOND_NEX_ID,
13485 .model_id = WINBOND_NEX_W25Q32_W,
13486 .total_size = 4096,
13487 .page_size = 256,
13488 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13489 /* QPI enable 0x38, disable 0xFF */
13490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13491 .tested = TEST_OK_PREW,
13492 .probe = probe_spi_rdid,
13493 .probe_timing = TIMING_ZERO,
13494 .block_erasers =
13495 {
13496 {
13497 .eraseblocks = { {4 * 1024, 1024} },
13498 .block_erase = spi_block_erase_20,
13499 }, {
13500 .eraseblocks = { {32 * 1024, 128} },
13501 .block_erase = spi_block_erase_52,
13502 }, {
13503 .eraseblocks = { {64 * 1024, 64} },
13504 .block_erase = spi_block_erase_d8,
13505 }, {
13506 .eraseblocks = { {4 * 1024 * 1024, 1} },
13507 .block_erase = spi_block_erase_60,
13508 }, {
13509 .eraseblocks = { {4 * 1024 * 1024, 1} },
13510 .block_erase = spi_block_erase_c7,
13511 }
13512 },
13513 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13514 .unlock = spi_disable_blockprotect,
13515 .write = spi_chip_write_256,
13516 .read = spi_chip_read,
13517 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13518 },
13519
13520 {
13521 .vendor = "Winbond",
13522 .name = "W25Q64.W",
13523 .bustype = BUS_SPI,
13524 .manufacture_id = WINBOND_NEX_ID,
13525 .model_id = WINBOND_NEX_W25Q64_W,
13526 .total_size = 8192,
13527 .page_size = 256,
13528 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13529 /* QPI enable 0x38, disable 0xFF */
13530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013531 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013532 .probe = probe_spi_rdid,
13533 .probe_timing = TIMING_ZERO,
13534 .block_erasers =
13535 {
13536 {
13537 .eraseblocks = { {4 * 1024, 2048} },
13538 .block_erase = spi_block_erase_20,
13539 }, {
13540 .eraseblocks = { {32 * 1024, 256} },
13541 .block_erase = spi_block_erase_52,
13542 }, {
13543 .eraseblocks = { {64 * 1024, 128} },
13544 .block_erase = spi_block_erase_d8,
13545 }, {
13546 .eraseblocks = { {8 * 1024 * 1024, 1} },
13547 .block_erase = spi_block_erase_60,
13548 }, {
13549 .eraseblocks = { {8 * 1024 * 1024, 1} },
13550 .block_erase = spi_block_erase_c7,
13551 }
13552 },
13553 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13554 .unlock = spi_disable_blockprotect,
13555 .write = spi_chip_write_256,
13556 .read = spi_chip_read,
13557 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013558 },
13559
13560 {
13561 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013562 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013563 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013564 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013565 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013566 .total_size = 128,
13567 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013568 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013569 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013570 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013571 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013572 .block_erasers =
13573 {
13574 {
13575 .eraseblocks = { {4 * 1024, 32} },
13576 .block_erase = spi_block_erase_20,
13577 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013578 .eraseblocks = { {64 * 1024, 2} },
13579 .block_erase = spi_block_erase_d8,
13580 }, {
13581 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013582 .block_erase = spi_block_erase_c7,
13583 }
13584 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013586 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013587 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013590 },
13591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013592 {
13593 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013594 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013595 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013596 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013597 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013598 .total_size = 256,
13599 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013600 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013601 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013602 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013603 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013604 .block_erasers =
13605 {
13606 {
13607 .eraseblocks = { {4 * 1024, 64} },
13608 .block_erase = spi_block_erase_20,
13609 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013610 .eraseblocks = { {64 * 1024, 4} },
13611 .block_erase = spi_block_erase_d8,
13612 }, {
13613 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013614 .block_erase = spi_block_erase_c7,
13615 }
13616 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013617 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013618 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013619 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013620 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013621 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013622 },
13623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013624 {
13625 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013626 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013627 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013628 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013629 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013630 .total_size = 512,
13631 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013632 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000013633 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013634 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013635 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013636 .block_erasers =
13637 {
13638 {
13639 .eraseblocks = { {4 * 1024, 128} },
13640 .block_erase = spi_block_erase_20,
13641 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013642 .eraseblocks = { {64 * 1024, 8} },
13643 .block_erase = spi_block_erase_d8,
13644 }, {
13645 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013646 .block_erase = spi_block_erase_c7,
13647 }
13648 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013650 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013651 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013652 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013653 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013654 },
13655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013656 {
13657 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013658 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013659 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013660 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013661 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013662 .total_size = 1024,
13663 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013664 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000013665 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013667 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013668 .block_erasers =
13669 {
13670 {
13671 .eraseblocks = { {4 * 1024, 256} },
13672 .block_erase = spi_block_erase_20,
13673 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013674 .eraseblocks = { {64 * 1024, 16} },
13675 .block_erase = spi_block_erase_d8,
13676 }, {
13677 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013678 .block_erase = spi_block_erase_c7,
13679 }
13680 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013681 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013682 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013683 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013684 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013685 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013686 },
13687
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013688 {
13689 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013690 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013691 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000013692 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013693 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000013694 .total_size = 2048,
13695 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013696 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000013697 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000013698 .probe = probe_spi_rdid,
13699 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013700 .block_erasers =
13701 {
13702 {
13703 .eraseblocks = { {4 * 1024, 512} },
13704 .block_erase = spi_block_erase_20,
13705 }, {
13706 .eraseblocks = { {32 * 1024, 64} },
13707 .block_erase = spi_block_erase_52,
13708 }, {
13709 .eraseblocks = { {64 * 1024, 32} },
13710 .block_erase = spi_block_erase_d8,
13711 }, {
13712 .eraseblocks = { {2 * 1024 * 1024, 1} },
13713 .block_erase = spi_block_erase_60,
13714 }, {
13715 .eraseblocks = { {2 * 1024 * 1024, 1} },
13716 .block_erase = spi_block_erase_c7,
13717 }
13718 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013719 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013720 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000013721 .write = spi_chip_write_256,
13722 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013723 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000013724 },
13725
13726 {
13727 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013728 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013729 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013730 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013731 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000013732 .total_size = 4096,
13733 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013734 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013735 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000013736 .probe = probe_spi_rdid,
13737 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013738 .block_erasers =
13739 {
13740 {
13741 .eraseblocks = { {4 * 1024, 1024} },
13742 .block_erase = spi_block_erase_20,
13743 }, {
13744 .eraseblocks = { {32 * 1024, 128} },
13745 .block_erase = spi_block_erase_52,
13746 }, {
13747 .eraseblocks = { {64 * 1024, 64} },
13748 .block_erase = spi_block_erase_d8,
13749 }, {
13750 .eraseblocks = { {4 * 1024 * 1024, 1} },
13751 .block_erase = spi_block_erase_60,
13752 }, {
13753 .eraseblocks = { {4 * 1024 * 1024, 1} },
13754 .block_erase = spi_block_erase_c7,
13755 }
13756 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013757 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013758 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013759 .write = spi_chip_write_256,
13760 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013761 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013762 },
13763
13764 {
13765 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013766 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013767 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013768 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013769 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000013770 .total_size = 8192,
13771 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013772 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013773 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000013774 .probe = probe_spi_rdid,
13775 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013776 .block_erasers =
13777 {
13778 {
13779 .eraseblocks = { {4 * 1024, 2048} },
13780 .block_erase = spi_block_erase_20,
13781 }, {
13782 .eraseblocks = { {32 * 1024, 256} },
13783 .block_erase = spi_block_erase_52,
13784 }, {
13785 .eraseblocks = { {64 * 1024, 128} },
13786 .block_erase = spi_block_erase_d8,
13787 }, {
13788 .eraseblocks = { {8 * 1024 * 1024, 1} },
13789 .block_erase = spi_block_erase_60,
13790 }, {
13791 .eraseblocks = { {8 * 1024 * 1024, 1} },
13792 .block_erase = spi_block_erase_c7,
13793 }
13794 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013796 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013797 .write = spi_chip_write_256,
13798 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013799 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013800 },
13801
13802 {
13803 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013804 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013805 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013806 .manufacture_id = WINBOND_ID,
13807 .model_id = WINBOND_W29C010,
13808 .total_size = 128,
13809 .page_size = 128,
13810 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013811 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013812 .probe = probe_w29ee011,
13813 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
13814 .block_erasers =
13815 {
13816 {
13817 .eraseblocks = { {128 * 1024, 1} },
13818 .block_erase = erase_chip_block_jedec,
13819 }
13820 },
13821 .write = write_jedec,
13822 .read = read_memmapped,
13823 },
13824
13825 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
13826 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013827 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013828 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013829 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013830 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013831 .total_size = 128,
13832 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013833 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000013834 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013835 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013836 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013837 .block_erasers =
13838 {
13839 {
13840 .eraseblocks = { {128 * 1024, 1} },
13841 .block_erase = erase_chip_block_jedec,
13842 }
13843 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013844 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013845 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013846 },
13847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013848 {
13849 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013850 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013851 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013852 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013853 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013854 .total_size = 256,
13855 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013856 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013857 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013858 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013859 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013860 .block_erasers =
13861 {
13862 {
13863 .eraseblocks = { {256 * 1024, 1} },
13864 .block_erase = erase_chip_block_jedec,
13865 }
13866 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013867 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013868 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013869 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013870 },
13871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013872 {
13873 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013874 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013875 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013876 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013877 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013878 .total_size = 512,
13879 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013880 .feature_bits = FEATURE_LONG_RESET,
13881 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013882 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013883 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013884 .block_erasers =
13885 {
13886 {
13887 .eraseblocks = { {512 * 1024, 1} },
13888 .block_erase = erase_chip_block_jedec,
13889 }
13890 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013891 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013893 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013894 },
13895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013896 {
13897 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000013898 .name = "W29GL032CB",
13899 .bustype = BUS_PARALLEL,
13900 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13901 .model_id = WINBOND_W29GL032CB,
13902 .total_size = 4096,
13903 .page_size = 128 * 1024, /* actual page size is 16 */
13904 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13905 .tested = TEST_UNTESTED,
13906 .probe = probe_jedec_29gl,
13907 .probe_timing = TIMING_ZERO,
13908 .block_erasers =
13909 {
13910 {
13911 .eraseblocks = {
13912 {8 * 1024, 8},
13913 {64 * 1024, 63},
13914 },
13915 .block_erase = erase_sector_jedec,
13916 }, {
13917 .eraseblocks = { {4 * 1024 * 1024, 1} },
13918 .block_erase = erase_chip_block_jedec,
13919 },
13920 },
13921 .write = write_jedec_1,
13922 .read = read_memmapped,
13923 .voltage = {2700, 3600},
13924 },
13925
13926 {
13927 .vendor = "Winbond",
13928 .name = "W29GL032CT",
13929 .bustype = BUS_PARALLEL,
13930 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13931 .model_id = WINBOND_W29GL032CT,
13932 .total_size = 4096,
13933 .page_size = 128 * 1024, /* actual page size is 16 */
13934 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13935 .tested = TEST_UNTESTED,
13936 .probe = probe_jedec_29gl,
13937 .probe_timing = TIMING_ZERO,
13938 .block_erasers =
13939 {
13940 {
13941 .eraseblocks = {
13942 {64 * 1024, 63},
13943 {8 * 1024, 8},
13944 },
13945 .block_erase = erase_sector_jedec,
13946 }, {
13947 .eraseblocks = { {4 * 1024 * 1024, 1} },
13948 .block_erase = erase_chip_block_jedec,
13949 },
13950 },
13951 .write = write_jedec_1,
13952 .read = read_memmapped,
13953 .voltage = {2700, 3600},
13954 },
13955
13956 {
13957 .vendor = "Winbond",
13958 .name = "W29GL032CH/L",
13959 .bustype = BUS_PARALLEL,
13960 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13961 .model_id = WINBOND_W29GL032CHL,
13962 .total_size = 4096,
13963 .page_size = 128 * 1024, /* actual page size is 16 */
13964 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13965 .tested = TEST_UNTESTED,
13966 .probe = probe_jedec_29gl,
13967 .probe_timing = TIMING_ZERO,
13968 .block_erasers =
13969 {
13970 {
13971 .eraseblocks = { {64 * 1024, 64} },
13972 .block_erase = erase_sector_jedec,
13973 }, {
13974 .eraseblocks = { {4 * 1024 * 1024, 1} },
13975 .block_erase = erase_chip_block_jedec,
13976 },
13977 },
13978 .write = write_jedec_1,
13979 .read = read_memmapped,
13980 .voltage = {2700, 3600},
13981 },
13982
13983 {
13984 .vendor = "Winbond",
13985 .name = "W29GL064CB",
13986 .bustype = BUS_PARALLEL,
13987 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13988 .model_id = WINBOND_W29GL064CB,
13989 .total_size = 8192,
13990 .page_size = 128 * 1024, /* actual page size is 16 */
13991 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13992 .tested = TEST_UNTESTED,
13993 .probe = probe_jedec_29gl,
13994 .probe_timing = TIMING_ZERO,
13995 .block_erasers =
13996 {
13997 {
13998 .eraseblocks = {
13999 {8 * 1024, 8},
14000 {64 * 1024, 127},
14001 },
14002 .block_erase = erase_sector_jedec,
14003 }, {
14004 .eraseblocks = { {8 * 1024 * 1024, 1} },
14005 .block_erase = erase_chip_block_jedec,
14006 },
14007 },
14008 .write = write_jedec_1,
14009 .read = read_memmapped,
14010 .voltage = {2700, 3600},
14011 },
14012
14013 {
14014 .vendor = "Winbond",
14015 .name = "W29GL064CT",
14016 .bustype = BUS_PARALLEL,
14017 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14018 .model_id = WINBOND_W29GL064CT,
14019 .total_size = 8192,
14020 .page_size = 128 * 1024, /* actual page size is 16 */
14021 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14022 .tested = TEST_UNTESTED,
14023 .probe = probe_jedec_29gl,
14024 .probe_timing = TIMING_ZERO,
14025 .block_erasers =
14026 {
14027 {
14028 .eraseblocks = {
14029 {64 * 1024, 127},
14030 {8 * 1024, 8},
14031 },
14032 .block_erase = erase_sector_jedec,
14033 }, {
14034 .eraseblocks = { {8 * 1024 * 1024, 1} },
14035 .block_erase = erase_chip_block_jedec,
14036 },
14037 },
14038 .write = write_jedec_1,
14039 .read = read_memmapped,
14040 .voltage = {2700, 3600},
14041 },
14042
14043 {
14044 .vendor = "Winbond",
14045 .name = "W29GL064CH/L",
14046 .bustype = BUS_PARALLEL,
14047 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14048 .model_id = WINBOND_W29GL064CHL,
14049 .total_size = 8192,
14050 .page_size = 128 * 1024, /* actual page size is 16 */
14051 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14052 .tested = TEST_UNTESTED,
14053 .probe = probe_jedec_29gl,
14054 .probe_timing = TIMING_ZERO,
14055 .block_erasers =
14056 {
14057 {
14058 .eraseblocks = { {64 * 1024, 128} },
14059 .block_erase = erase_sector_jedec,
14060 }, {
14061 .eraseblocks = { {8 * 1024 * 1024, 1} },
14062 .block_erase = erase_chip_block_jedec,
14063 },
14064 },
14065 .write = write_jedec_1,
14066 .read = read_memmapped,
14067 .voltage = {2700, 3600},
14068 },
14069
14070 {
14071 .vendor = "Winbond",
14072 .name = "W29GL128C",
14073 .bustype = BUS_PARALLEL,
14074 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14075 .model_id = WINBOND_W29GL128CHL,
14076 .total_size = 16384,
14077 .page_size = 128 * 1024, /* actual page size is 16 */
14078 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14079 .tested = TEST_UNTESTED,
14080 .probe = probe_jedec_29gl,
14081 .probe_timing = TIMING_ZERO,
14082 .block_erasers =
14083 {
14084 {
14085 .eraseblocks = { {128 * 1024, 128} },
14086 .block_erase = erase_sector_jedec,
14087 }, {
14088 .eraseblocks = { {16 * 1024 * 1024, 1} },
14089 .block_erase = erase_chip_block_jedec,
14090 },
14091 },
14092 .write = write_jedec_1,
14093 .read = read_memmapped,
14094 .voltage = {2700, 3600},
14095 },
14096
14097 {
14098 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000014099 .name = "W39F010",
14100 .bustype = BUS_PARALLEL,
14101 .manufacture_id = WINBOND_ID,
14102 .model_id = WINBOND_W39F010,
14103 .total_size = 128,
14104 .page_size = 4 * 1024,
14105 .feature_bits = FEATURE_EITHER_RESET,
14106 .tested = TEST_OK_PREW,
14107 .probe = probe_jedec,
14108 .probe_timing = 10,
14109 .block_erasers =
14110 {
14111 {
14112 .eraseblocks = { {4 * 1024, 32} },
14113 .block_erase = erase_block_jedec,
14114 }, {
14115 .eraseblocks = { {128 * 1024, 1} },
14116 .block_erase = erase_chip_block_jedec,
14117 }
14118 },
14119 .printlock = printlock_w39f010,
14120 .write = write_jedec_1,
14121 .read = read_memmapped,
14122 .voltage = {4500, 5500},
14123 },
14124
14125 {
14126 .vendor = "Winbond",
14127 .name = "W39L010",
14128 .bustype = BUS_PARALLEL,
14129 .manufacture_id = WINBOND_ID,
14130 .model_id = WINBOND_W39L010,
14131 .total_size = 128,
14132 .page_size = 4 * 1024,
14133 .feature_bits = FEATURE_EITHER_RESET,
14134 .tested = TEST_UNTESTED,
14135 .probe = probe_jedec,
14136 .probe_timing = 10,
14137 .block_erasers =
14138 {
14139 {
14140 .eraseblocks = { {4 * 1024, 32} },
14141 .block_erase = erase_block_jedec,
14142 }, {
14143 .eraseblocks = { {128 * 1024, 1} },
14144 .block_erase = erase_chip_block_jedec,
14145 }
14146 },
14147 .printlock = printlock_w39l010,
14148 .write = write_jedec_1,
14149 .read = read_memmapped,
14150 .voltage = {3000, 3600},
14151 },
14152
14153 {
14154 .vendor = "Winbond",
14155 .name = "W39L020",
14156 .bustype = BUS_PARALLEL,
14157 .manufacture_id = WINBOND_ID,
14158 .model_id = WINBOND_W39L020,
14159 .total_size = 256,
14160 .page_size = 4 * 1024,
14161 .feature_bits = FEATURE_EITHER_RESET,
14162 .tested = TEST_UNTESTED,
14163 .probe = probe_jedec,
14164 .probe_timing = 10,
14165 .block_erasers =
14166 {
14167 {
14168 .eraseblocks = { {4 * 1024, 64} },
14169 .block_erase = erase_block_jedec,
14170 }, {
14171 .eraseblocks = { {64 * 1024, 4} },
14172 .block_erase = erase_sector_jedec,
14173 }, {
14174 .eraseblocks = { {256 * 1024, 1} },
14175 .block_erase = erase_chip_block_jedec,
14176 }
14177 },
14178 .printlock = printlock_w39l020,
14179 .write = write_jedec_1,
14180 .read = read_memmapped,
14181 .voltage = {3000, 3600},
14182 },
14183
14184 {
14185 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000014186 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014187 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000014188 .manufacture_id = WINBOND_ID,
14189 .model_id = WINBOND_W39L040,
14190 .total_size = 512,
14191 .page_size = 64 * 1024,
14192 .feature_bits = FEATURE_EITHER_RESET,
14193 .tested = TEST_OK_PR,
14194 .probe = probe_jedec,
14195 .probe_timing = 10,
14196 .block_erasers =
14197 {
14198 {
14199 .eraseblocks = { {4 * 1024, 128} },
14200 .block_erase = erase_block_jedec,
14201 }, {
14202 .eraseblocks = { {64 * 1024, 8} },
14203 .block_erase = erase_sector_jedec,
14204 }, {
14205 .eraseblocks = { {512 * 1024, 1} },
14206 .block_erase = erase_chip_block_jedec,
14207 }
14208 },
14209 .printlock = printlock_w39l040,
14210 .write = write_jedec_1,
14211 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014212 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000014213 },
14214
14215 {
14216 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014217 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014218 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014219 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014220 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014221 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014222 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014223 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014224 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014225 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000014226 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014227 .block_erasers =
14228 {
14229 {
14230 .eraseblocks = { {64 * 1024, 8} },
14231 .block_erase = erase_sector_jedec,
14232 }, {
14233 .eraseblocks = { {512 * 1024, 1} },
14234 .block_erase = erase_chip_block_jedec,
14235 }
14236 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014237 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000014238 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014240 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014241 },
14242
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014243 {
14244 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014245 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014246 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014247 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014248 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014249 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014250 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014251 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014252 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014253 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000014254 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014255 .block_erasers =
14256 {
14257 {
14258 .eraseblocks = { {64 * 1024, 8} },
14259 .block_erase = erase_sector_jedec,
14260 }, {
14261 .eraseblocks = { {512 * 1024, 1} },
14262 .block_erase = erase_chip_block_jedec,
14263 }
14264 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014265 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000014266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014268 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014269 },
14270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014271 {
14272 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014273 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014274 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014275 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014276 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014277 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014279 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014280 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000014281 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014282 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014283 .block_erasers =
14284 {
14285 {
14286 .eraseblocks = { {64 * 1024, 8} },
14287 .block_erase = erase_sector_jedec,
14288 }, {
14289 .eraseblocks = { {512 * 1024, 1} },
14290 .block_erase = erase_chip_block_jedec,
14291 }
14292 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000014293 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000014294 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014296 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014297 },
14298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014299 {
14300 .vendor = "Winbond",
14301 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014302 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014303 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014304 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014305 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014306 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000014307 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014308 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014309 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014310 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014311 .block_erasers =
14312 {
14313 {
14314 .eraseblocks = { {4 * 1024, 128} },
14315 .block_erase = erase_block_jedec,
14316 }, {
14317 .eraseblocks = { {64 * 1024, 8} },
14318 .block_erase = erase_sector_jedec,
14319 }, {
14320 .eraseblocks = { {512 * 1024, 1} },
14321 .block_erase = erase_chip_block_jedec,
14322 }
14323 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014324 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014325 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014326 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014328 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014329 },
14330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014331 {
14332 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014333 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014334 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014335 .manufacture_id = WINBOND_ID,
14336 .model_id = WINBOND_W39V040B,
14337 .total_size = 512,
14338 .page_size = 64 * 1024,
14339 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014340 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014341 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014342 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014343 .block_erasers =
14344 {
14345 {
14346 .eraseblocks = { {64 * 1024, 8} },
14347 .block_erase = erase_sector_jedec,
14348 }, {
14349 .eraseblocks = { {512 * 1024, 1} },
14350 .block_erase = erase_chip_block_jedec,
14351 }
14352 },
14353 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014354 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014355 .write = write_jedec_1,
14356 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014357 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014358 },
14359
14360 {
14361 .vendor = "Winbond",
14362 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014363 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014364 .manufacture_id = WINBOND_ID,
14365 .model_id = WINBOND_W39V040C,
14366 .total_size = 512,
14367 .page_size = 64 * 1024,
14368 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000014369 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014370 .probe = probe_jedec,
14371 .probe_timing = 10,
14372 .block_erasers =
14373 {
14374 {
14375 .eraseblocks = { {64 * 1024, 8} },
14376 .block_erase = erase_sector_jedec,
14377 }, {
14378 .eraseblocks = { {512 * 1024, 1} },
14379 .block_erase = erase_chip_block_jedec,
14380 }
14381 },
14382 .printlock = printlock_w39v040fc,
14383 .write = write_jedec_1,
14384 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014385 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014386 },
14387
14388 {
14389 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014390 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014391 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014392 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014393 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014394 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014395 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014396 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000014397 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014398 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000014399 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014400 .block_erasers =
14401 {
14402 {
14403 .eraseblocks = { {64 * 1024, 16} },
14404 .block_erase = erase_sector_jedec,
14405 }, {
14406 .eraseblocks = { {1024 * 1024, 1} },
14407 .block_erase = erase_chip_block_jedec,
14408 }
14409 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014410 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000014411 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014413 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014414 },
14415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014416 {
14417 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014418 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014419 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014420 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014421 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014422 .total_size = 256,
14423 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014424 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014425 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014426 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014427 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014428 .block_erasers =
14429 {
14430 {
14431 .eraseblocks = {
14432 {128 * 1024, 1},
14433 {96 * 1024, 1},
14434 {8 * 1024, 2},
14435 {16 * 1024, 1},
14436 },
14437 .block_erase = erase_sector_jedec,
14438 }, {
14439 .eraseblocks = { {256 * 1024, 1} },
14440 .block_erase = erase_chip_block_jedec,
14441 }
14442 },
Sean Nelson35727f72010-01-28 23:55:12 +000014443 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014444 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014445 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014446 },
14447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014448 {
14449 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014450 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014451 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014452 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014453 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014454 .total_size = 256,
14455 .page_size = 128,
14456 .feature_bits = FEATURE_EITHER_RESET,
14457 .tested = TEST_OK_PROBE,
14458 .probe = probe_jedec,
14459 .probe_timing = 10,
14460 .block_erasers =
14461 {
14462 {
14463 .eraseblocks = { {256 * 1024, 1} },
14464 .block_erase = erase_chip_block_jedec,
14465 }
14466 },
14467 .write = write_jedec_1,
14468 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014469 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014470 },
14471
14472 {
14473 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014474 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014475 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014476 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014477 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014478 .total_size = 256,
14479 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014480 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014481 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014483 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014484 .block_erasers =
14485 {
14486 {
14487 .eraseblocks = {
14488 {64 * 1024, 3},
14489 {32 * 1024, 1},
14490 {8 * 1024, 2},
14491 {16 * 1024, 1},
14492 },
14493 .block_erase = erase_sector_jedec,
14494 }, {
14495 .eraseblocks = { {256 * 1024, 1} },
14496 .block_erase = erase_chip_block_jedec,
14497 }
14498 },
Sean Nelson35727f72010-01-28 23:55:12 +000014499 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014500 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014501 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014502 },
14503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 {
14505 .vendor = "Winbond",
14506 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014507 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014508 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014509 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014510 .total_size = 256,
14511 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014512 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014513 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014514 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014515 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014516 .block_erasers =
14517 {
14518 {
14519 .eraseblocks = {
14520 {64 * 1024, 3},
14521 {32 * 1024, 1},
14522 {8 * 1024, 2},
14523 {16 * 1024, 1},
14524 },
14525 .block_erase = erase_sector_jedec,
14526 }, {
14527 .eraseblocks = { {256 * 1024, 1} },
14528 .block_erase = erase_chip_block_jedec,
14529 }
14530 },
Sean Nelson35727f72010-01-28 23:55:12 +000014531 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014533 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014534 },
14535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 {
14537 .vendor = "Winbond",
14538 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014539 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014540 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014541 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014542 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014543 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014544 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014545 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014546 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014547 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014548 .block_erasers =
14549 {
14550 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014551 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014552 .block_erase = erase_sector_jedec,
14553 }, {
14554 .eraseblocks = { {1024 * 1024, 1} },
14555 .block_erase = erase_chip_block_jedec,
14556 }
14557 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014558 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014559 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014560 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014561 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014562 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014563 },
14564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014565 {
14566 .vendor = "Winbond",
14567 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014568 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014569 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014570 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014571 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014572 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014573 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014574 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014575 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014576 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014577 .block_erasers =
14578 {
14579 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014580 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014581 .block_erase = erase_sector_jedec,
14582 }, {
14583 .eraseblocks = { {512 * 1024, 1} },
14584 .block_erase = erase_chip_block_jedec,
14585 }
14586 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014587 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000014588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014590 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014591 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014592
14593 {
14594 .vendor = "Unknown",
14595 .name = "SFDP-capable chip",
14596 .bustype = BUS_SPI,
14597 .manufacture_id = GENERIC_MANUF_ID,
14598 .model_id = SFDP_DEVICE_ID,
14599 /* We present our own "report this" text hence we do not
14600 * want the default "This flash part has status UNTESTED..."
14601 * text to be printed. */
14602 .tested = TEST_OK_PREW,
14603 .probe = probe_spi_sfdp,
14604 .unlock = spi_disable_blockprotect, /* is this safe? */
14605 .read = spi_chip_read,
14606 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000014607 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014608 /* Everything below will be set by the probing function. */
14609 .write = NULL,
14610 .total_size = 0,
14611 .page_size = 0,
14612 .feature_bits = 0,
14613 .block_erasers = {},
14614 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014615
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014616 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000014617 .vendor = "Programmer",
14618 .name = "Opaque flash chip",
14619 .bustype = BUS_PROG,
14620 .manufacture_id = PROGMANUF_ID,
14621 .model_id = PROGDEV_ID,
14622 .total_size = 0,
14623 .page_size = 256,
14624 /* probe is assumed to work, rest will be filled in by probe */
14625 .tested = TEST_OK_PROBE,
14626 .probe = probe_opaque,
14627 /* eraseblock sizes will be set by the probing function */
14628 .block_erasers =
14629 {
14630 {
14631 .block_erase = erase_opaque,
14632 }
14633 },
14634 .write = write_opaque,
14635 .read = read_opaque,
14636 },
14637
14638 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014639 .vendor = "AMIC",
14640 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014641 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014642 .manufacture_id = AMIC_ID,
14643 .model_id = GENERIC_DEVICE_ID,
14644 .total_size = 0,
14645 .page_size = 256,
14646 .tested = TEST_BAD_PREW,
14647 .probe = probe_spi_rdid4,
14648 .probe_timing = TIMING_ZERO,
14649 .write = NULL,
14650 .read = NULL,
14651 },
14652
14653 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014654 .vendor = "Atmel",
14655 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014656 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014657 .manufacture_id = ATMEL_ID,
14658 .model_id = GENERIC_DEVICE_ID,
14659 .total_size = 0,
14660 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014661 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014663 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014664 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014665 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014666 },
14667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014668 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000014669 .vendor = "Eon",
14670 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014672 .manufacture_id = EON_ID_NOPREFIX,
14673 .model_id = GENERIC_DEVICE_ID,
14674 .total_size = 0,
14675 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014676 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014677 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014678 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014679 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014680 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014681 },
14682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014683 {
14684 .vendor = "Macronix",
14685 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014686 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014687 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014688 .model_id = GENERIC_DEVICE_ID,
14689 .total_size = 0,
14690 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014691 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014693 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014694 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014695 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014696 },
14697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014698 {
14699 .vendor = "PMC",
14700 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014701 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014702 .manufacture_id = PMC_ID,
14703 .model_id = GENERIC_DEVICE_ID,
14704 .total_size = 0,
14705 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014706 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014707 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014708 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014709 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014710 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014711 },
14712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014713 {
14714 .vendor = "SST",
14715 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014716 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014717 .manufacture_id = SST_ID,
14718 .model_id = GENERIC_DEVICE_ID,
14719 .total_size = 0,
14720 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014721 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014722 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014723 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014724 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014725 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014726 },
14727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014728 {
14729 .vendor = "ST",
14730 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014731 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014732 .manufacture_id = ST_ID,
14733 .model_id = GENERIC_DEVICE_ID,
14734 .total_size = 0,
14735 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014736 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014737 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014738 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014739 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014740 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014741 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000014742
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014743 {
Sean Nelson118e1d62009-11-24 02:08:11 +000014744 .vendor = "Sanyo",
14745 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014746 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000014747 .manufacture_id = SANYO_ID,
14748 .model_id = GENERIC_DEVICE_ID,
14749 .total_size = 0,
14750 .page_size = 256,
14751 .tested = TEST_BAD_PREW,
14752 .probe = probe_spi_rdid,
14753 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000014754 .write = NULL,
14755 .read = NULL,
14756 },
14757
14758 {
Stefan Taunereb582572012-09-21 12:52:50 +000014759 .vendor = "Winbond",
14760 .name = "unknown Winbond (ex Nexcom) SPI chip",
14761 .bustype = BUS_SPI,
14762 .manufacture_id = WINBOND_NEX_ID,
14763 .model_id = GENERIC_DEVICE_ID,
14764 .total_size = 0,
14765 .page_size = 256,
14766 .tested = TEST_BAD_PREW,
14767 .probe = probe_spi_rdid,
14768 .probe_timing = TIMING_ZERO,
14769 .write = NULL,
14770 .read = NULL,
14771 },
14772
14773 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014774 .vendor = "Generic",
14775 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014776 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014777 .manufacture_id = GENERIC_MANUF_ID,
14778 .model_id = GENERIC_DEVICE_ID,
14779 .total_size = 0,
14780 .page_size = 256,
14781 .tested = TEST_BAD_PREW,
14782 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014783 .write = NULL,
14784 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000014785
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014786 {
14787 .vendor = "Generic",
14788 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014789 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014790 .manufacture_id = GENERIC_MANUF_ID,
14791 .model_id = GENERIC_DEVICE_ID,
14792 .total_size = 0,
14793 .page_size = 256,
14794 .tested = TEST_BAD_PREW,
14795 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014796 .write = NULL,
14797 },
14798
Stefan Tauner96658be2014-05-26 22:05:31 +000014799 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000014800};
Stefan Tauner96658be2014-05-26 22:05:31 +000014801
14802const unsigned int flashchips_size = ARRAY_SIZE(flashchips);