blob: 541ba7a74b21b335550663f1e7e5b2089a284090 [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 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
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 Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
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 Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
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 Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
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 Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
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 Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
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 Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
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 Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
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 Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
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 },
1278 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */
1279 .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 {
1300 .eraseblocks = {
1301 {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 {
1332 .eraseblocks = {
1333 {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,
1358 .tested = TEST_UNTESTED,
1359 .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,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
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 },
1398 .unlock = unlock_49fl00x,
1399 .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,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .tested = TEST_UNTESTED,
1682 .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",
1712 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001716 .total_size = 2048,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 512} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 64} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 32} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {2 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {2 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001751 .name = "AT25F512",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25F512,
1755 .total_size = 64,
1756 .page_size = 256,
1757 .feature_bits = FEATURE_WRSR_WREN,
1758 .tested = TEST_UNTESTED,
1759 .probe = probe_spi_at25f,
1760 .probe_timing = TIMING_ZERO,
1761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {32 * 1024, 2} },
1765 .block_erase = spi_block_erase_52,
1766 }, {
1767 .eraseblocks = { {64 * 1024, 1} },
1768 .block_erase = spi_block_erase_62,
1769 }
1770 },
1771 .printlock = spi_prettyprint_status_register_at25f,
1772 .unlock = spi_disable_blockprotect_at25f,
1773 .write = spi_chip_write_256,
1774 .read = spi_chip_read,
1775 .voltage = {2700, 3600},
1776 },
1777
1778 {
1779 .vendor = "Atmel",
1780 .name = "AT25F512A",
1781 .bustype = BUS_SPI,
1782 .manufacture_id = ATMEL_ID,
1783 .model_id = ATMEL_AT25F512A,
1784 .total_size = 64,
1785 .page_size = 128,
1786 .feature_bits = FEATURE_WRSR_WREN,
1787 .tested = TEST_UNTESTED,
1788 .probe = probe_spi_at25f,
1789 .probe_timing = TIMING_ZERO,
1790 .block_erasers =
1791 {
1792 {
1793 .eraseblocks = { {32 * 1024, 2} },
1794 .block_erase = spi_block_erase_52,
1795 }, {
1796 .eraseblocks = { {64 * 1024, 1} },
1797 .block_erase = spi_block_erase_62,
1798 }
1799 },
1800 .printlock = spi_prettyprint_status_register_at25f512a,
1801 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1802 .unlock = spi_disable_blockprotect_at25f512a,
1803 .write = spi_chip_write_256,
1804 .read = spi_chip_read,
1805 .voltage = {2700, 3600},
1806 },
1807
1808 {
1809 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 64,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001818 .tested = TEST_UNTESTED,
1819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 16} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 2} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {32 * 1024, 2} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {64 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {64 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001838 }, {
1839 .eraseblocks = { {64 * 1024, 1} },
1840 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001841 }
1842 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001843 .printlock = spi_prettyprint_status_register_at25f512b,
1844 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001848 },
1849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 {
1851 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001852 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1853 * All other properties seem to be the same.*/
1854 .name = "AT25F1024(A)",
1855 .bustype = BUS_SPI,
1856 .manufacture_id = ATMEL_ID,
1857 .model_id = ATMEL_AT25F1024,
1858 .total_size = 128,
1859 .page_size = 256,
1860 .feature_bits = FEATURE_WRSR_WREN,
1861 .tested = TEST_OK_PREW,
1862 .probe = probe_spi_at25f,
1863 .probe_timing = TIMING_ZERO,
1864 .block_erasers =
1865 {
1866 {
1867 .eraseblocks = { {32 * 1024, 4} },
1868 .block_erase = spi_block_erase_52,
1869 }, {
1870 .eraseblocks = { {128 * 1024, 1} },
1871 .block_erase = spi_block_erase_62,
1872 }
1873 },
1874 .printlock = spi_prettyprint_status_register_at25f,
1875 .unlock = spi_disable_blockprotect_at25f,
1876 .write = spi_chip_write_256,
1877 .read = spi_chip_read,
1878 .voltage = {2700, 3600},
1879 },
1880
1881 {
1882 .vendor = "Atmel",
1883 .name = "AT25F2048",
1884 .bustype = BUS_SPI,
1885 .manufacture_id = ATMEL_ID,
1886 .model_id = ATMEL_AT25F2048,
1887 .total_size = 256,
1888 .page_size = 256,
1889 .feature_bits = FEATURE_WRSR_WREN,
1890 .tested = TEST_UNTESTED,
1891 .probe = probe_spi_at25f,
1892 .probe_timing = TIMING_ZERO,
1893 .block_erasers =
1894 {
1895 {
1896 .eraseblocks = { {64 * 1024, 4} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {256 * 1024, 1} },
1900 .block_erase = spi_block_erase_62,
1901 }
1902 },
1903 .printlock = spi_prettyprint_status_register_at25f,
1904 .unlock = spi_disable_blockprotect_at25f,
1905 .write = spi_chip_write_256,
1906 .read = spi_chip_read,
1907 .voltage = {2700, 3600},
1908 },
1909
1910 {
1911 .vendor = "Atmel",
1912 .name = "AT25F4096",
1913 .bustype = BUS_SPI,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = ATMEL_AT25F4096,
1916 .total_size = 512,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_WRSR_WREN,
1919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_at25f,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {64 * 1024, 8} },
1926 .block_erase = spi_block_erase_52,
1927 }, {
1928 .eraseblocks = { {512 * 1024, 1} },
1929 .block_erase = spi_block_erase_62,
1930 }
1931 },
1932 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001933 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1934 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001935 .write = spi_chip_write_256,
1936 .read = spi_chip_read,
1937 .voltage = {2700, 3600},
1938 },
1939
1940 {
1941 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001945 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 .total_size = 128,
1947 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001948 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001951 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001952 .block_erasers =
1953 {
1954 {
1955 .eraseblocks = { {4 * 1024, 32} },
1956 .block_erase = spi_block_erase_20,
1957 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001958 .eraseblocks = { {4 * 1024, 32} },
1959 .block_erase = spi_block_erase_d7,
1960 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001961 .eraseblocks = { {32 * 1024, 4} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 4} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {128 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {128 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001974 .printlock = spi_prettyprint_status_register_at25fs010,
1975 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001976 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001979 },
1980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001981 {
1982 .vendor = "Atmel",
1983 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001985 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001986 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .total_size = 512,
1988 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001989 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .tested = TEST_UNTESTED,
1991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001992 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001993 .block_erasers =
1994 {
1995 {
1996 .eraseblocks = { {4 * 1024, 128} },
1997 .block_erase = spi_block_erase_20,
1998 }, {
1999 .eraseblocks = { {64 * 1024, 8} },
2000 .block_erase = spi_block_erase_52,
2001 }, {
2002 .eraseblocks = { {64 * 1024, 8} },
2003 .block_erase = spi_block_erase_d8,
2004 }, {
2005 .eraseblocks = { {512 * 1024, 1} },
2006 .block_erase = spi_block_erase_60,
2007 }, {
2008 .eraseblocks = { {512 * 1024, 1} },
2009 .block_erase = spi_block_erase_c7,
2010 }
2011 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002012 .printlock = spi_prettyprint_status_register_at25fs040,
2013 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002017 },
2018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 {
2020 .vendor = "Atmel",
2021 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002024 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002025 .total_size = 512,
2026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002030 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002031 .block_erasers =
2032 {
2033 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002034 .eraseblocks = { {256, 2048} },
2035 .block_erase = spi_block_erase_81,
2036 }, {
2037 .eraseblocks = { {2 * 1024, 256} },
2038 .block_erase = spi_block_erase_50,
2039 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002040 .eraseblocks = { {4 * 1024, 128} },
2041 .block_erase = spi_block_erase_20,
2042 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002043 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002044 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002045 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002046 .write = spi_chip_write_1,
2047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002048 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 1024,
2058 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002059 .feature_bits = FEATURE_WRSR_WREN,
2060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002062 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {4 * 1024, 256} },
2067 .block_erase = spi_block_erase_20,
2068 }, {
2069 .eraseblocks = { {32 * 1024, 32} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {64 * 1024, 16} },
2073 .block_erase = spi_block_erase_d8,
2074 }, {
2075 .eraseblocks = { {1024 * 1024, 1} },
2076 .block_erase = spi_block_erase_60,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_c7,
2080 }
2081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002082 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002083 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002087 },
2088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 .total_size = 2048,
2096 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002097 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002098 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002100 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002101 .block_erasers =
2102 {
2103 {
2104 .eraseblocks = { {4 * 1024, 512} },
2105 .block_erase = spi_block_erase_20,
2106 }, {
2107 .eraseblocks = { {32 * 1024, 64} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 32} },
2111 .block_erase = spi_block_erase_d8,
2112 }, {
2113 .eraseblocks = { {2 * 1024 * 1024, 1} },
2114 .block_erase = spi_block_erase_60,
2115 }, {
2116 .eraseblocks = { {2 * 1024 * 1024, 1} },
2117 .block_erase = spi_block_erase_c7,
2118 }
2119 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002120 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002121 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002125 },
2126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 {
2128 .vendor = "Atmel",
2129 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002130 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002132 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .total_size = 2048,
2134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002138 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002139 .block_erasers =
2140 {
2141 {
2142 .eraseblocks = { {4 * 1024, 512} },
2143 .block_erase = spi_block_erase_20,
2144 }, {
2145 .eraseblocks = { {32 * 1024, 64} },
2146 .block_erase = spi_block_erase_52,
2147 }, {
2148 .eraseblocks = { {64 * 1024, 32} },
2149 .block_erase = spi_block_erase_d8,
2150 }, {
2151 .eraseblocks = { {2 * 1024 * 1024, 1} },
2152 .block_erase = spi_block_erase_60,
2153 }, {
2154 .eraseblocks = { {2 * 1024 * 1024, 1} },
2155 .block_erase = spi_block_erase_c7,
2156 }
2157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002158 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002159 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002160 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002163 },
2164
2165 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002166 /*{
2167 .vendor = "Atmel",
2168 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002171 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .total_size = 4096,
2173 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002174 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .tested = TEST_UNTESTED,
2176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002177 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002178 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
2182 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 {
2185 .vendor = "Atmel",
2186 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002189 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .total_size = 512,
2191 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002192 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002196 .block_erasers =
2197 {
2198 {
2199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }, {
2202 .eraseblocks = { {32 * 1024, 16} },
2203 .block_erase = spi_block_erase_52,
2204 }, {
2205 .eraseblocks = { {64 * 1024, 8} },
2206 .block_erase = spi_block_erase_d8,
2207 }, {
2208 .eraseblocks = { {512 * 1024, 1} },
2209 .block_erase = spi_block_erase_60,
2210 }, {
2211 .eraseblocks = { {512 * 1024, 1} },
2212 .block_erase = spi_block_erase_c7,
2213 }
2214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .write = NULL /* Incompatible Page write */,
2217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002218 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002219 },
2220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 {
2222 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002223 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002224 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002225 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002226 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002227 .total_size = 64,
2228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002229 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002231 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002232 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002233 .block_erasers =
2234 {
2235 {
2236 .eraseblocks = { {64 * 1024, 1} },
2237 .block_erase = erase_chip_block_jedec,
2238 }
2239 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002240 .write = write_jedec,
2241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002242 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002243 },
2244
2245 {
2246 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002247 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002248 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002249 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002250 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002251 .total_size = 128,
2252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002254 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002255 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002256 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = { {128 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002264 .write = write_jedec, /* FIXME */
2265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002267 },
2268
2269 {
2270 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .total_size = 256,
2276 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002277 .feature_bits = FEATURE_LONG_RESET,
2278 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002280 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002281 .block_erasers =
2282 {
2283 {
2284 .eraseblocks = { {256 * 1024, 1} },
2285 .block_erase = erase_chip_block_jedec,
2286 }
2287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002291 },
2292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 {
2294 .vendor = "Atmel",
2295 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002298 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .total_size = 512,
2300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .tested = TEST_UNTESTED,
2303 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002304 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002305 .block_erasers =
2306 {
2307 {
2308 .eraseblocks = { {512 * 1024, 1} },
2309 .block_erase = erase_chip_block_jedec,
2310 }
2311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002315 },
2316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002317 {
2318 .vendor = "Atmel",
2319 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002322 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002323 .total_size = 16896 /* No power of two sizes */,
2324 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002325 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002326 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002327 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002328 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .write = NULL /* Incompatible Page write */,
2330 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002331 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002332 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 {
2335 .vendor = "Atmel",
2336 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002337 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002339 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002340 .total_size = 128 /* Size can only be determined from status register */,
2341 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002342 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002343 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002344 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002345 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002346 .write = NULL,
2347 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002348 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002349 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 {
2352 .vendor = "Atmel",
2353 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002355 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002356 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002357 .total_size = 256 /* Size can only be determined from status register */,
2358 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002359 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002360 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002362 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002363 .write = NULL,
2364 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002365 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002366 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002367
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 {
2369 .vendor = "Atmel",
2370 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002371 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002372 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002373 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002374 .total_size = 512 /* Size can only be determined from status register */,
2375 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002376 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002377 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002378 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002379 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .write = NULL,
2381 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002382 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002383 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002385 {
2386 .vendor = "Atmel",
2387 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002388 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002389 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002390 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002391 .total_size = 1024 /* Size can only be determined from status register */,
2392 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002393 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002394 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002396 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002397 .write = NULL,
2398 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002399 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002400 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002402 {
2403 .vendor = "Atmel",
2404 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002405 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002407 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002408 .total_size = 2048 /* Size can only be determined from status register */,
2409 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002410 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002411 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002412 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002413 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002414 .write = NULL,
2415 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002416 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002417 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 {
2420 .vendor = "Atmel",
2421 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002424 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 .total_size = 4224 /* No power of two sizes */,
2426 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002427 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002428 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002430 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .write = NULL,
2432 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002433 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002434 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002436 {
2437 .vendor = "Atmel",
2438 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002439 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002440 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002441 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002442 .total_size = 4096 /* Size can only be determined from status register */,
2443 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002444 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002445 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002446 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002447 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002448 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002449 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002450 .write = NULL,
2451 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002452 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002453 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002455 {
2456 .vendor = "Atmel",
2457 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002458 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002459 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002460 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002461 .total_size = 8192 /* Size can only be determined from status register */,
2462 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002463 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002464 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002465 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002466 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002467 .write = NULL,
2468 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002469 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002470 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002472 {
2473 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002474 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002475 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002476 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002477 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002478 .total_size = 64,
2479 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002480 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002481 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002482 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002483 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002484 .block_erasers =
2485 {
2486 {
2487 .eraseblocks = { {64 * 1024, 1} },
2488 .block_erase = erase_chip_block_jedec,
2489 }
2490 },
Sean Nelson35727f72010-01-28 23:55:12 +00002491 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002493 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002494 },
2495
2496 {
2497 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002498 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002499 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002500 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002501 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002502 .total_size = 256,
2503 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002504 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002505 .tested = TEST_UNTESTED,
2506 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002507 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002508 .block_erasers =
2509 {
2510 {
2511 .eraseblocks = {
2512 {16 * 1024, 1},
2513 {8 * 1024, 2},
2514 {96 * 1024, 1},
2515 {128 * 1024, 1},
2516 },
2517 .block_erase = erase_sector_jedec,
2518 }, {
2519 .eraseblocks = { {256 * 1024, 1} },
2520 .block_erase = erase_chip_block_jedec,
2521 }
2522 },
Sean Nelson35727f72010-01-28 23:55:12 +00002523 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002524 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002525 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002526 },
2527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002528 {
2529 .vendor = "Atmel",
2530 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002531 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002532 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002533 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002534 .total_size = 256,
2535 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002536 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002537 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002538 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002539 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002540 .block_erasers =
2541 {
2542 {
2543 .eraseblocks = {
2544 {128 * 1024, 1},
2545 {96 * 1024, 1},
2546 {8 * 1024, 2},
2547 {16 * 1024, 1},
2548 },
2549 .block_erase = erase_sector_jedec,
2550 }, {
2551 .eraseblocks = { {256 * 1024, 1} },
2552 .block_erase = erase_chip_block_jedec,
2553 }
2554 },
Sean Nelson35727f72010-01-28 23:55:12 +00002555 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002556 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002557 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002558 },
2559
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002560 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002561 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002562 .name = "AT49(H)F010",
2563 .bustype = BUS_PARALLEL,
2564 .manufacture_id = ATMEL_ID,
2565 .model_id = ATMEL_AT49F010,
2566 .total_size = 128,
2567 .page_size = 0, /* unused */
2568 .feature_bits = FEATURE_EITHER_RESET,
2569 .tested = TEST_OK_PREW,
2570 .probe = probe_jedec,
2571 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2572 .block_erasers =
2573 {
2574 {
2575 .eraseblocks = { {128 * 1024, 1} },
2576 .block_erase = erase_chip_block_jedec,
2577 }
2578 },
2579 .printlock = printlock_at49f,
2580 .write = write_jedec_1,
2581 .read = read_memmapped,
2582 .voltage = {4500, 5500},
2583 },
2584
2585 {
2586 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002587 .name = "AT49F020",
2588 .bustype = BUS_PARALLEL,
2589 .manufacture_id = ATMEL_ID,
2590 .model_id = ATMEL_AT49F020,
2591 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002592 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002593 .feature_bits = FEATURE_EITHER_RESET,
2594 .tested = TEST_OK_PRE,
2595 .probe = probe_jedec,
2596 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2597 .block_erasers =
2598 {
2599 {
2600 .eraseblocks = { {256 * 1024, 1} },
2601 .block_erase = erase_chip_block_jedec,
2602 }
2603 /* Chip features an optional permanent write protection
2604 * of the first 8 kB. The erase function is the same as
2605 * above, but 00000H to 01FFFH will not be erased.
2606 * FIXME: add another eraser when partial erasers are
2607 * supported.
2608 */
2609 },
2610 .printlock = printlock_at49f,
2611 .write = write_jedec_1,
2612 .read = read_memmapped,
2613 .voltage = {4500, 5500},
2614 },
2615
2616 {
2617 .vendor = "Atmel",
2618 .name = "AT49F040",
2619 .bustype = BUS_PARALLEL,
2620 .manufacture_id = ATMEL_ID,
2621 .model_id = ATMEL_AT49F040,
2622 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002623 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002624 .feature_bits = FEATURE_EITHER_RESET,
2625 .tested = TEST_UNTESTED,
2626 .probe = probe_jedec,
2627 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {512 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 /* Chip features an optional permanent write protection
2635 * of the first 16 kB. The erase function is the same as
2636 * above, but 00000H to 03FFFH will not be erased.
2637 * FIXME: add another eraser when partial erasers are
2638 * supported.
2639 */
2640 },
2641 .printlock = printlock_at49f,
2642 .write = write_jedec_1,
2643 .read = read_memmapped,
2644 .voltage = {4500, 5500},
2645 },
2646
2647 {
2648 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002649 .name = "AT49F080",
2650 .bustype = BUS_PARALLEL,
2651 .manufacture_id = ATMEL_ID,
2652 .model_id = ATMEL_AT49F080,
2653 .total_size = 1024,
2654 .page_size = 0, /* unused */
2655 .feature_bits = FEATURE_EITHER_RESET,
2656 .tested = TEST_UNTESTED,
2657 .probe = probe_jedec,
2658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2659 .block_erasers =
2660 {
2661 {
2662 .eraseblocks = { {1024 * 1024, 1} },
2663 .block_erase = erase_chip_block_jedec,
2664 }
2665 /* Chip features an optional permanent write protection
2666 * of the first 16 kB. The erase function is the same as
2667 * above, but 00000H to 03FFFH will not be erased.
2668 * FIXME: add another eraser when partial erasers are
2669 * supported.
2670 */
2671 },
2672 .printlock = printlock_at49f,
2673 .write = write_jedec_1,
2674 .read = read_memmapped,
2675 .voltage = {4500, 5500},
2676 },
2677
2678 {
2679 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2680 .vendor = "Atmel",
2681 .name = "AT49F080T",
2682 .bustype = BUS_PARALLEL,
2683 .manufacture_id = ATMEL_ID,
2684 .model_id = ATMEL_AT49F080T,
2685 .total_size = 1024,
2686 .page_size = 0, /* unused */
2687 .feature_bits = FEATURE_EITHER_RESET,
2688 .tested = TEST_UNTESTED,
2689 .probe = probe_jedec,
2690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2691 .block_erasers =
2692 {
2693 {
2694 .eraseblocks = { {1024 * 1024, 1} },
2695 .block_erase = erase_chip_block_jedec,
2696 }
2697 /* Chip features an optional permanent write protection
2698 * of the first 16 kB. The erase function is the same as
2699 * above, but FC000H to FFFFFH will not be erased.
2700 * FIXME: add another eraser when partial erasers are
2701 * supported.
2702 */
2703 },
2704 .printlock = printlock_at49f,
2705 .write = write_jedec_1,
2706 .read = read_memmapped,
2707 .voltage = {4500, 5500},
2708 },
2709
2710 {
2711 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002712 .name = "AT49LH002",
2713 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2714 .manufacture_id = ATMEL_ID,
2715 .model_id = ATMEL_AT49LH002,
2716 .total_size = 256,
2717 .page_size = 0, /* unused */
2718 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2719 .tested = TEST_UNTESTED,
2720 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2721 .probe_timing = TIMING_FIXME,
2722 .block_erasers =
2723 {
2724 {
2725 .eraseblocks = {
2726 {64 * 1024, 3},
2727 {32 * 1024, 1},
2728 {8 * 1024, 2},
2729 {16 * 1024, 1},
2730 },
2731 .block_erase = erase_block_82802ab,
2732 }, {
2733 .eraseblocks = {
2734 {64 * 1024, 4},
2735 },
2736 .block_erase = NULL, /* TODO: Implement. */
2737 },
2738 },
2739 .printlock = NULL, /* TODO */
2740 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2741 .write = write_82802ab,
2742 .read = read_memmapped,
2743 .voltage = {3000, 3600},
2744 },
2745
2746 {
Andrew Morganca081462011-09-13 22:05:44 +00002747 .vendor = "Catalyst",
2748 .name = "CAT28F512",
2749 .bustype = BUS_PARALLEL,
2750 .manufacture_id = CATALYST_ID,
2751 .model_id = CATALYST_CAT28F512,
2752 .total_size = 64,
2753 .page_size = 0, /* unused */
2754 .feature_bits = 0,
2755 .tested = TEST_OK_PR,
2756 .probe = probe_jedec, /* FIXME! */
2757 .probe_timing = TIMING_ZERO,
2758 .block_erasers =
2759 {
2760 {
2761 .eraseblocks = { {64 * 1024, 1} },
2762 .block_erase = NULL, /* TODO */
2763 },
2764 },
2765 .write = NULL, /* TODO */
2766 .read = read_memmapped,
2767 .voltage = {4500, 5500},
2768 },
2769
2770 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002771 .vendor = "Bright",
2772 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002773 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002774 .manufacture_id = BRIGHT_ID,
2775 .model_id = BRIGHT_BM29F040,
2776 .total_size = 512,
2777 .page_size = 64 * 1024,
2778 .feature_bits = FEATURE_EITHER_RESET,
2779 .tested = TEST_OK_PR,
2780 .probe = probe_jedec,
2781 .probe_timing = TIMING_ZERO,
2782 .block_erasers =
2783 {
2784 {
2785 .eraseblocks = { {64 * 1024, 8} },
2786 .block_erase = erase_sector_jedec,
2787 }, {
2788 .eraseblocks = { {512 * 1024, 1} },
2789 .block_erase = erase_chip_block_jedec,
2790 },
2791 },
2792 .write = write_jedec_1,
2793 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002794 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002795 },
2796
2797 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002798 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002799 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002800 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002801 .manufacture_id = ESMT_ID,
2802 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002803 .total_size = 256,
2804 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002805 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 .tested = TEST_UNTESTED,
2807 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002808 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002809 .block_erasers =
2810 {
2811 {
2812 .eraseblocks = {
2813 {128 * 1024, 1},
2814 {96 * 1024, 1},
2815 {8 * 1024, 2},
2816 {16 * 1024, 1},
2817 },
2818 .block_erase = erase_sector_jedec,
2819 }, {
2820 .eraseblocks = { {256 * 1024, 1} },
2821 .block_erase = erase_chip_block_jedec,
2822 }
2823 },
Sean Nelson35727f72010-01-28 23:55:12 +00002824 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002826 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002827 },
2828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002829 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002830 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00002831 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002832 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002833 .manufacture_id = ESMT_ID,
2834 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002835 .total_size = 1024,
2836 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002837 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002838 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002839 .probe = probe_spi_rdid,
2840 .probe_timing = TIMING_ZERO,
2841 .block_erasers =
2842 {
2843 {
2844 .eraseblocks = { {4 * 1024, 256} },
2845 .block_erase = spi_block_erase_20,
2846 }, {
2847 .eraseblocks = { {64 * 1024, 16} },
2848 .block_erase = spi_block_erase_d8,
2849 }, {
2850 .eraseblocks = { {1024 * 1024, 1} },
2851 .block_erase = spi_block_erase_60,
2852 }, {
2853 .eraseblocks = { {1024 * 1024, 1} },
2854 .block_erase = spi_block_erase_c7,
2855 }
2856 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002857 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002858 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002859 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002860 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002861 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002862 },
2863
2864 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002865 .vendor = "Eon",
2866 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002867 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002868 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002869 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002870 .total_size = 64,
2871 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002872 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002873 .tested = TEST_UNTESTED,
2874 .probe = probe_spi_rdid,
2875 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002876 .block_erasers =
2877 {
2878 {
2879 .eraseblocks = {
2880 {4 * 1024, 2},
2881 {8 * 1024, 1},
2882 {16 * 1024, 1},
2883 {32 * 1024, 1},
2884 },
2885 .block_erase = spi_block_erase_d8,
2886 }, {
2887 .eraseblocks = { {64 * 1024, 1} },
2888 .block_erase = spi_block_erase_c7,
2889 }
2890 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002891 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002892 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002893 .write = spi_chip_write_256,
2894 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002895 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002896 },
2897
2898 {
2899 .vendor = "Eon",
2900 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002901 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002902 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002903 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002904 .total_size = 64,
2905 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002906 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002907 .tested = TEST_UNTESTED,
2908 .probe = probe_spi_rdid,
2909 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002910 .block_erasers =
2911 {
2912 {
2913 .eraseblocks = {
2914 {32 * 1024, 1},
2915 {16 * 1024, 1},
2916 {8 * 1024, 1},
2917 {4 * 1024, 2},
2918 },
2919 .block_erase = spi_block_erase_d8,
2920 }, {
2921 .eraseblocks = { {64 * 1024, 1} },
2922 .block_erase = spi_block_erase_c7,
2923 }
2924 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002925 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002926 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002927 .write = spi_chip_write_256,
2928 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002929 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002930 },
2931
2932 {
2933 .vendor = "Eon",
2934 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002935 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002936 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002937 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002938 .total_size = 128,
2939 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002940 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002941 .tested = TEST_UNTESTED,
2942 .probe = probe_spi_rdid,
2943 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = {
2948 {4 * 1024, 2},
2949 {8 * 1024, 1},
2950 {16 * 1024, 1},
2951 {32 * 1024, 3},
2952 },
2953 .block_erase = spi_block_erase_d8,
2954 }, {
2955 .eraseblocks = { {128 * 1024, 1} },
2956 .block_erase = spi_block_erase_c7,
2957 }
2958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002959 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002960 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002961 .write = spi_chip_write_256,
2962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002963 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002964 },
2965
2966 {
2967 .vendor = "Eon",
2968 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002969 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002970 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002971 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002972 .total_size = 128,
2973 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002974 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002975 .tested = TEST_UNTESTED,
2976 .probe = probe_spi_rdid,
2977 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {32 * 1024, 3},
2983 {16 * 1024, 1},
2984 {8 * 1024, 1},
2985 {4 * 1024, 2},
2986 },
2987 .block_erase = spi_block_erase_d8,
2988 }, {
2989 .eraseblocks = { {128 * 1024, 1} },
2990 .block_erase = spi_block_erase_c7,
2991 }
2992 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002993 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002994 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002995 .write = spi_chip_write_256,
2996 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002997 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002998 },
2999
3000 {
3001 .vendor = "Eon",
3002 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003003 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003004 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003005 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003006 .total_size = 256,
3007 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003008 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003009 .tested = TEST_UNTESTED,
3010 .probe = probe_spi_rdid,
3011 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003012 .block_erasers =
3013 {
3014 {
3015 .eraseblocks = {
3016 {4 * 1024, 2},
3017 {8 * 1024, 1},
3018 {16 * 1024, 1},
3019 {32 * 1024, 1},
3020 {64 * 1024, 3}
3021 },
3022 .block_erase = spi_block_erase_d8,
3023 }, {
3024 .eraseblocks = { {256 * 1024, 1} },
3025 .block_erase = spi_block_erase_c7,
3026 }
3027 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003028 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003029 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003030 .write = spi_chip_write_256,
3031 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003032 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003033 },
3034
3035 {
3036 .vendor = "Eon",
3037 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003038 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003039 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003040 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003041 .total_size = 256,
3042 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003043 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003044 .tested = TEST_UNTESTED,
3045 .probe = probe_spi_rdid,
3046 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003047 .block_erasers =
3048 {
3049 {
3050 .eraseblocks = {
3051 {64 * 1024, 3},
3052 {32 * 1024, 1},
3053 {16 * 1024, 1},
3054 {8 * 1024, 1},
3055 {4 * 1024, 2},
3056 },
3057 .block_erase = spi_block_erase_d8,
3058 }, {
3059 .eraseblocks = { {256 * 1024, 1} },
3060 .block_erase = spi_block_erase_c7,
3061 }
3062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003064 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003065 .write = spi_chip_write_256,
3066 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003067 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003068 },
3069
3070 {
3071 .vendor = "Eon",
3072 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003073 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003074 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003075 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003076 .total_size = 512,
3077 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003078 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003079 .tested = TEST_UNTESTED,
3080 .probe = probe_spi_rdid,
3081 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003082 .block_erasers =
3083 {
3084 {
3085 .eraseblocks = {
3086 {4 * 1024, 2},
3087 {8 * 1024, 1},
3088 {16 * 1024, 1},
3089 {32 * 1024, 1},
3090 {64 * 1024, 7}
3091 },
3092 .block_erase = spi_block_erase_d8,
3093 }, {
3094 .eraseblocks = { {512 * 1024, 1} },
3095 .block_erase = spi_block_erase_c7,
3096 }
3097 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003099 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003100 .write = spi_chip_write_256,
3101 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003102 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003103 },
3104
3105 {
3106 .vendor = "Eon",
3107 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003108 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003109 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003110 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003111 .total_size = 512,
3112 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003113 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003114 .tested = TEST_UNTESTED,
3115 .probe = probe_spi_rdid,
3116 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003117 .block_erasers =
3118 {
3119 {
3120 .eraseblocks = {
3121 {64 * 1024, 7},
3122 {32 * 1024, 1},
3123 {16 * 1024, 1},
3124 {8 * 1024, 1},
3125 {4 * 1024, 2},
3126 },
3127 .block_erase = spi_block_erase_d8,
3128 }, {
3129 .eraseblocks = { {512 * 1024, 1} },
3130 .block_erase = spi_block_erase_c7,
3131 }
3132 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003134 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 .write = spi_chip_write_256,
3136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003137 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003138 },
3139
3140 {
3141 .vendor = "Eon",
3142 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003143 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003144 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003145 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003146 .total_size = 1024,
3147 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003148 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003149 .tested = TEST_UNTESTED,
3150 .probe = probe_spi_rdid,
3151 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003152 .block_erasers =
3153 {
3154 {
3155 .eraseblocks = {
3156 {4 * 1024, 2},
3157 {8 * 1024, 1},
3158 {16 * 1024, 1},
3159 {32 * 1024, 1},
3160 {64 * 1024, 15}
3161 },
3162 .block_erase = spi_block_erase_d8,
3163 }, {
3164 .eraseblocks = { {1024 * 1024, 1} },
3165 .block_erase = spi_block_erase_c7,
3166 }
3167 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003168 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003169 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003170 .write = spi_chip_write_256,
3171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003172 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003173 },
3174
3175 {
3176 .vendor = "Eon",
3177 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003178 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003179 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003180 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003181 .total_size = 1024,
3182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003183 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003184 .tested = TEST_UNTESTED,
3185 .probe = probe_spi_rdid,
3186 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003187 .block_erasers =
3188 {
3189 {
3190 .eraseblocks = {
3191 {64 * 1024, 15},
3192 {32 * 1024, 1},
3193 {16 * 1024, 1},
3194 {8 * 1024, 1},
3195 {4 * 1024, 2},
3196 },
3197 .block_erase = spi_block_erase_d8,
3198 }, {
3199 .eraseblocks = { {1024 * 1024, 1} },
3200 .block_erase = spi_block_erase_c7,
3201 }
3202 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003203 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003204 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003205 .write = spi_chip_write_256,
3206 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003207 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003208 },
3209
3210 {
3211 .vendor = "Eon",
3212 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003213 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003214 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003215 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003216 .total_size = 2048,
3217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003219 .tested = TEST_UNTESTED,
3220 .probe = probe_spi_rdid,
3221 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003222 .block_erasers =
3223 {
3224 {
3225 .eraseblocks = {
3226 {4 * 1024, 2},
3227 {8 * 1024, 1},
3228 {16 * 1024, 1},
3229 {32 * 1024, 1},
3230 {64 * 1024, 31},
3231 },
3232 .block_erase = spi_block_erase_d8,
3233 }, {
3234 .eraseblocks = { {2 * 1024 * 1024, 1} },
3235 .block_erase = spi_block_erase_c7,
3236 }
3237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003239 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003240 .write = spi_chip_write_256,
3241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003242 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003243 },
3244
3245 {
3246 .vendor = "Eon",
3247 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003248 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003249 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003250 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003251 .total_size = 2048,
3252 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003253 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003254 .tested = TEST_UNTESTED,
3255 .probe = probe_spi_rdid,
3256 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003257 .block_erasers =
3258 {
3259 {
3260 .eraseblocks = {
3261 {64 * 1024, 31},
3262 {32 * 1024, 1},
3263 {16 * 1024, 1},
3264 {8 * 1024, 1},
3265 {4 * 1024, 2},
3266 },
3267 .block_erase = spi_block_erase_d8,
3268 }, {
3269 .eraseblocks = { {2 * 1024 * 1024, 1} },
3270 .block_erase = spi_block_erase_c7,
3271 }
3272 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003273 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003274 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003275 .write = spi_chip_write_256,
3276 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003277 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003278 },
3279
3280 {
3281 .vendor = "Eon",
3282 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003283 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003284 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003285 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003286 .total_size = 4096,
3287 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003288 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003289 .tested = TEST_UNTESTED,
3290 .probe = probe_spi_rdid,
3291 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003292 .block_erasers =
3293 {
3294 {
3295 .eraseblocks = {
3296 {4 * 1024, 2},
3297 {8 * 1024, 1},
3298 {16 * 1024, 1},
3299 {32 * 1024, 1},
3300 {64 * 1024, 63},
3301 },
3302 .block_erase = spi_block_erase_d8,
3303 }, {
3304 .eraseblocks = { {4 * 1024 * 1024, 1} },
3305 .block_erase = spi_block_erase_c7,
3306 }
3307 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003308 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003309 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003310 .write = spi_chip_write_256,
3311 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003312 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003313 },
3314
3315 {
3316 .vendor = "Eon",
3317 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003318 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003319 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003320 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003321 .total_size = 4096,
3322 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003323 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003324 .tested = TEST_UNTESTED,
3325 .probe = probe_spi_rdid,
3326 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003327 .block_erasers =
3328 {
3329 {
3330 .eraseblocks = {
3331 {64 * 1024, 63},
3332 {32 * 1024, 1},
3333 {16 * 1024, 1},
3334 {8 * 1024, 1},
3335 {4 * 1024, 2},
3336 },
3337 .block_erase = spi_block_erase_d8,
3338 }, {
3339 .eraseblocks = { {4 * 1024 * 1024, 1} },
3340 .block_erase = spi_block_erase_c7,
3341 }
3342 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003343 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003344 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003345 .write = spi_chip_write_256,
3346 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003347 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003348 },
3349
3350 {
3351 .vendor = "Eon",
3352 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003353 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003354 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003355 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003356 .total_size = 8192,
3357 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003358 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003359 .tested = TEST_UNTESTED,
3360 .probe = probe_spi_rdid,
3361 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003362 .block_erasers =
3363 {
3364 {
3365 .eraseblocks = {
3366 {4 * 1024, 2},
3367 {8 * 1024, 1},
3368 {16 * 1024, 1},
3369 {32 * 1024, 1},
3370 {64 * 1024, 127},
3371 },
3372 .block_erase = spi_block_erase_d8,
3373 }, {
3374 .eraseblocks = { {8 * 1024 * 1024, 1} },
3375 .block_erase = spi_block_erase_c7,
3376 }
3377 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003378 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003379 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003380 .write = spi_chip_write_256,
3381 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003382 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003383 },
3384
3385 {
3386 .vendor = "Eon",
3387 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003388 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003389 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003390 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003391 .total_size = 8192,
3392 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003393 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003394 .tested = TEST_UNTESTED,
3395 .probe = probe_spi_rdid,
3396 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003397 .block_erasers =
3398 {
3399 {
3400 .eraseblocks = {
3401 {64 * 1024, 127},
3402 {32 * 1024, 1},
3403 {16 * 1024, 1},
3404 {8 * 1024, 1},
3405 {4 * 1024, 2},
3406 },
3407 .block_erase = spi_block_erase_d8,
3408 }, {
3409 .eraseblocks = { {8 * 1024 * 1024, 1} },
3410 .block_erase = spi_block_erase_c7,
3411 }
3412 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003414 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003415 .write = spi_chip_write_256,
3416 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003417 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003418 },
3419
3420 {
3421 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003422 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003424 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003425 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003426 .total_size = 64,
3427 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003428 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003429 .tested = TEST_UNTESTED,
3430 .probe = probe_spi_rdid,
3431 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003432 .block_erasers =
3433 {
3434 {
3435 .eraseblocks = { {4 * 1024, 16} },
3436 .block_erase = spi_block_erase_20,
3437 }, {
3438 .eraseblocks = { {32 * 1024, 2} },
3439 .block_erase = spi_block_erase_d8,
3440 }, {
3441 .eraseblocks = { {32 * 1024, 2} },
3442 .block_erase = spi_block_erase_52,
3443 }, {
3444 .eraseblocks = { {64 * 1024, 1} },
3445 .block_erase = spi_block_erase_60,
3446 }, {
3447 .eraseblocks = { {64 * 1024, 1} },
3448 .block_erase = spi_block_erase_c7,
3449 }
3450 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003452 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003453 .write = spi_chip_write_256,
3454 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003455 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003456 },
3457
3458 {
3459 .vendor = "Eon",
3460 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003461 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003462 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003463 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003464 .total_size = 128,
3465 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003466 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003467 .tested = TEST_UNTESTED,
3468 .probe = probe_spi_rdid,
3469 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003470 .block_erasers =
3471 {
3472 {
3473 .eraseblocks = { {4 * 1024, 32} },
3474 .block_erase = spi_block_erase_20,
3475 }, {
3476 .eraseblocks = { {32 * 1024, 4} },
3477 .block_erase = spi_block_erase_d8,
3478 }, {
3479 .eraseblocks = { {32 * 1024, 4} },
3480 .block_erase = spi_block_erase_52,
3481 }, {
3482 .eraseblocks = { {128 * 1024, 1} },
3483 .block_erase = spi_block_erase_60,
3484 }, {
3485 .eraseblocks = { {128 * 1024, 1} },
3486 .block_erase = spi_block_erase_c7,
3487 }
3488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003490 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003491 .write = spi_chip_write_256,
3492 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003493 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003494 },
3495
3496 {
3497 .vendor = "Eon",
3498 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003499 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003500 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003501 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003502 .total_size = 256,
3503 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003504 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003505 .tested = TEST_UNTESTED,
3506 .probe = probe_spi_rdid,
3507 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003508 .block_erasers =
3509 {
3510 {
3511 .eraseblocks = { {4 * 1024, 64} },
3512 .block_erase = spi_block_erase_20,
3513 }, {
3514 .eraseblocks = { {64 * 1024, 4} },
3515 .block_erase = spi_block_erase_d8,
3516 }, {
3517 .eraseblocks = { {64 * 1024, 4} },
3518 .block_erase = spi_block_erase_52,
3519 }, {
3520 .eraseblocks = { {256 * 1024, 1} },
3521 .block_erase = spi_block_erase_60,
3522 }, {
3523 .eraseblocks = { {256 * 1024, 1} },
3524 .block_erase = spi_block_erase_c7,
3525 }
3526 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003527 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003528 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003529 .write = spi_chip_write_256,
3530 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003531 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003532 },
3533
3534 {
3535 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003536 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003537 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003538 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003539 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003540 .total_size = 512,
3541 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003542 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003543 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003544 .probe = probe_spi_rdid,
3545 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003546 .block_erasers =
3547 {
3548 {
Sean Nelson54596372010-01-09 05:30:14 +00003549 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003550 .block_erase = spi_block_erase_20,
3551 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003552 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003553 .block_erase = spi_block_erase_d8,
3554 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003555 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003556 .block_erase = spi_block_erase_60,
3557 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003558 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003559 .block_erase = spi_block_erase_c7,
3560 },
3561 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003563 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003564 .write = spi_chip_write_256,
3565 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003566 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003567 },
3568
3569 {
3570 .vendor = "Eon",
3571 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003572 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003573 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003574 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003575 .total_size = 1024,
3576 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003577 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003578 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 .probe = probe_spi_rdid,
3580 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003581 .block_erasers =
3582 {
3583 {
3584 .eraseblocks = { {4 * 1024, 256} },
3585 .block_erase = spi_block_erase_20,
3586 }, {
3587 .eraseblocks = { {64 * 1024, 16} },
3588 .block_erase = spi_block_erase_d8,
3589 }, {
3590 .eraseblocks = { {1024 * 1024, 1} },
3591 .block_erase = spi_block_erase_60,
3592 }, {
3593 .eraseblocks = { {1024 * 1024, 1} },
3594 .block_erase = spi_block_erase_c7,
3595 }
3596 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003598 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003599 .write = spi_chip_write_256,
3600 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003601 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003602 },
3603
3604 {
3605 .vendor = "Eon",
3606 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003607 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003608 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003609 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003610 .total_size = 2048,
3611 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003612 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003613 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003614 .probe = probe_spi_rdid,
3615 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003616 .block_erasers =
3617 {
3618 {
3619 .eraseblocks = { {4 * 1024, 512} },
3620 .block_erase = spi_block_erase_20,
3621 }, {
3622 .eraseblocks = { {64 * 1024, 32} },
3623 .block_erase = spi_block_erase_d8,
3624 }, {
3625 .eraseblocks = { {2 * 1024 * 1024, 1} },
3626 .block_erase = spi_block_erase_60,
3627 }, {
3628 .eraseblocks = { {2 * 1024 * 1024, 1} },
3629 .block_erase = spi_block_erase_c7,
3630 }
3631 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003632 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003633 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003634 .write = spi_chip_write_256,
3635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003636 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003637 },
3638
3639 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003640 .vendor = "Eon",
3641 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003642 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003643 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003644 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003645 .total_size = 4096,
3646 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003647 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003648 .tested = TEST_UNTESTED,
3649 .probe = probe_spi_rdid,
3650 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003651 .block_erasers =
3652 {
3653 {
3654 .eraseblocks = { {4 * 1024, 1024} },
3655 .block_erase = spi_block_erase_20,
3656 }, {
3657 .eraseblocks = { {64 * 1024, 64} },
3658 .block_erase = spi_block_erase_d8,
3659 }, {
3660 .eraseblocks = { {4 * 1024 * 1024, 1} },
3661 .block_erase = spi_block_erase_60,
3662 }, {
3663 .eraseblocks = { {4 * 1024 * 1024, 1} },
3664 .block_erase = spi_block_erase_c7,
3665 }
3666 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003667 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003668 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003669 .write = spi_chip_write_256,
3670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003671 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003672 },
3673
3674 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003675 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003676 .name = "EN25F64",
3677 .bustype = BUS_SPI,
3678 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003679 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003680 .total_size = 8192,
3681 .page_size = 256,
3682 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003683 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003684 .probe = probe_spi_rdid,
3685 .probe_timing = TIMING_ZERO,
3686 .block_erasers =
3687 {
3688 {
3689 .eraseblocks = { {4 * 1024, 2048} },
3690 .block_erase = spi_block_erase_20,
3691 }, {
3692 .eraseblocks = { {64 * 1024, 128} },
3693 .block_erase = spi_block_erase_d8,
3694 }, {
3695 .eraseblocks = { {8 * 1024 * 1024, 1} },
3696 .block_erase = spi_block_erase_60,
3697 }, {
3698 .eraseblocks = { {8 * 1024 * 1024, 1} },
3699 .block_erase = spi_block_erase_c7,
3700 }
3701 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003703 .unlock = spi_disable_blockprotect,
3704 .write = spi_chip_write_256,
3705 .read = spi_chip_read,
3706 .voltage = {2700, 3600},
3707 },
3708
3709 {
3710 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003711 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003712 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003713 .manufacture_id = EON_ID_NOPREFIX,
3714 .model_id = EON_EN25Q40,
3715 .total_size = 512,
3716 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003717 /* OTP: 256B total; enter 0x3A */
3718 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003719 .tested = TEST_UNTESTED,
3720 .probe = probe_spi_rdid,
3721 .probe_timing = TIMING_ZERO,
3722 .block_erasers =
3723 {
3724 {
3725 .eraseblocks = { {4 * 1024, 128} },
3726 .block_erase = spi_block_erase_20,
3727 }, {
3728 .eraseblocks = { {64 * 1024, 8} },
3729 .block_erase = spi_block_erase_d8,
3730 }, {
3731 .eraseblocks = { {512 * 1024, 1} },
3732 .block_erase = spi_block_erase_60,
3733 }, {
3734 .eraseblocks = { {512 * 1024, 1} },
3735 .block_erase = spi_block_erase_c7,
3736 }
3737 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003738 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003739 .unlock = spi_disable_blockprotect,
3740 .write = spi_chip_write_256,
3741 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003742 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003743 },
3744
3745 {
3746 .vendor = "Eon",
3747 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003748 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003749 .manufacture_id = EON_ID_NOPREFIX,
3750 .model_id = EON_EN25Q80,
3751 .total_size = 1024,
3752 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003753 /* OTP: 256B total; enter 0x3A */
3754 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003755 .tested = TEST_UNTESTED,
3756 .probe = probe_spi_rdid,
3757 .probe_timing = TIMING_ZERO,
3758 .block_erasers =
3759 {
3760 {
3761 .eraseblocks = { {4 * 1024, 256} },
3762 .block_erase = spi_block_erase_20,
3763 }, {
3764 .eraseblocks = { {64 * 1024, 16} },
3765 .block_erase = spi_block_erase_d8,
3766 }, {
3767 .eraseblocks = { {1024 * 1024, 1} },
3768 .block_erase = spi_block_erase_60,
3769 }, {
3770 .eraseblocks = { {1024 * 1024, 1} },
3771 .block_erase = spi_block_erase_c7,
3772 }
3773 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003774 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003775 .unlock = spi_disable_blockprotect,
3776 .write = spi_chip_write_256,
3777 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003778 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003779 },
3780
3781 {
3782 /* Note: EN25D16 is an evil twin which shares the model ID
3783 but has different write protection capabilities */
3784 .vendor = "Eon",
3785 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003786 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003787 .manufacture_id = EON_ID_NOPREFIX,
3788 .model_id = EON_EN25Q16,
3789 .total_size = 2048,
3790 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003791 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3792 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003793 .tested = TEST_UNTESTED,
3794 .probe = probe_spi_rdid,
3795 .probe_timing = TIMING_ZERO,
3796 .block_erasers =
3797 {
3798 {
3799 .eraseblocks = { {4 * 1024, 512} },
3800 .block_erase = spi_block_erase_20,
3801 }, {
3802 .eraseblocks = { {64 * 1024, 32} },
3803 .block_erase = spi_block_erase_d8,
3804 }, {
3805 /* not supported by Q16 version */
3806 .eraseblocks = { {64 * 1024, 32} },
3807 .block_erase = spi_block_erase_52,
3808 }, {
3809 .eraseblocks = { {2 * 1024 * 1024, 1} },
3810 .block_erase = spi_block_erase_60,
3811 }, {
3812 .eraseblocks = { {2 * 1024 * 1024, 1} },
3813 .block_erase = spi_block_erase_c7,
3814 }
3815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003817 .unlock = spi_disable_blockprotect,
3818 .write = spi_chip_write_256,
3819 .read = spi_chip_read,
3820 .voltage = {2700, 3600},
3821 },
3822
3823 {
3824 .vendor = "Eon",
3825 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003826 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003827 .manufacture_id = EON_ID_NOPREFIX,
3828 .model_id = EON_EN25Q32,
3829 .total_size = 4096,
3830 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003831 /* OTP: 512B total; enter 0x3A */
3832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003833 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003834 .probe = probe_spi_rdid,
3835 .probe_timing = TIMING_ZERO,
3836 .block_erasers =
3837 {
3838 {
3839 .eraseblocks = { {4 * 1024, 1024} },
3840 .block_erase = spi_block_erase_20,
3841 }, {
3842 .eraseblocks = { {64 * 1024, 64} },
3843 .block_erase = spi_block_erase_d8,
3844 }, {
3845 .eraseblocks = { {4 * 1024 * 1024, 1} },
3846 .block_erase = spi_block_erase_60,
3847 }, {
3848 .eraseblocks = { {4 * 1024 * 1024, 1} },
3849 .block_erase = spi_block_erase_c7,
3850 }
3851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003853 .unlock = spi_disable_blockprotect,
3854 .write = spi_chip_write_256,
3855 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003856 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003857 },
3858
3859 {
3860 .vendor = "Eon",
3861 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003862 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003863 .manufacture_id = EON_ID_NOPREFIX,
3864 .model_id = EON_EN25Q64,
3865 .total_size = 8192,
3866 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003867 /* OTP: 512B total; enter 0x3A */
3868 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003869 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003870 .probe = probe_spi_rdid,
3871 .probe_timing = TIMING_ZERO,
3872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = { {4 * 1024, 2048} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 128} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {8 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {8 * 1024 * 1024, 1} },
3885 .block_erase = spi_block_erase_c7,
3886 }
3887 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003889 .unlock = spi_disable_blockprotect,
3890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003892 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003893 },
3894
3895 {
3896 .vendor = "Eon",
3897 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003898 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003899 .manufacture_id = EON_ID_NOPREFIX,
3900 .model_id = EON_EN25Q128,
3901 .total_size = 16384,
3902 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003903 /* OTP: 512B total; enter 0x3A */
3904 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003905 .tested = TEST_UNTESTED,
3906 .probe = probe_spi_rdid,
3907 .probe_timing = TIMING_ZERO,
3908 .block_erasers =
3909 {
3910 {
3911 .eraseblocks = { {4 * 1024, 4096} },
3912 .block_erase = spi_block_erase_20,
3913 }, {
3914 .eraseblocks = { {64 * 1024, 256} },
3915 .block_erase = spi_block_erase_d8,
3916 }, {
3917 .eraseblocks = { {16 * 1024 * 1024, 1} },
3918 .block_erase = spi_block_erase_60,
3919 }, {
3920 .eraseblocks = { {16 * 1024 * 1024, 1} },
3921 .block_erase = spi_block_erase_c7,
3922 }
3923 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003924 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003925 .unlock = spi_disable_blockprotect,
3926 .write = spi_chip_write_256,
3927 .read = spi_chip_read,
3928 },
3929
3930 {
3931 .vendor = "Eon",
3932 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003933 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003934 .manufacture_id = EON_ID_NOPREFIX,
3935 .model_id = EON_EN25QH16,
3936 .total_size = 2048,
3937 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003938 /* supports SFDP */
3939 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003940 /* QPI enable 0x38, disable 0xFF */
3941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003942 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003943 .probe = probe_spi_rdid,
3944 .probe_timing = TIMING_ZERO,
3945 .block_erasers =
3946 {
3947 {
3948 .eraseblocks = { {4 * 1024, 512} },
3949 .block_erase = spi_block_erase_20,
3950 }, {
3951 .eraseblocks = { {64 * 1024, 32} },
3952 .block_erase = spi_block_erase_d8,
3953 }, {
3954 .eraseblocks = { {1024 * 2048, 1} },
3955 .block_erase = spi_block_erase_60,
3956 }, {
3957 .eraseblocks = { {1024 * 2048, 1} },
3958 .block_erase = spi_block_erase_c7,
3959 }
3960 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003961 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
3962 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00003963 .write = spi_chip_write_256,
3964 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003965 .voltage = {2700, 3600},
3966 },
3967
3968 {
3969 .vendor = "Eon",
3970 .name = "EN25QH32",
3971 .bustype = BUS_SPI,
3972 .manufacture_id = EON_ID_NOPREFIX,
3973 .model_id = EON_EN25QH32,
3974 .total_size = 4096,
3975 .page_size = 256,
3976 /* supports SFDP */
3977 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003978 /* QPI enable 0x38, disable 0xFF */
3979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003980 .tested = TEST_UNTESTED,
3981 .probe = probe_spi_rdid,
3982 .probe_timing = TIMING_ZERO,
3983 .block_erasers =
3984 {
3985 {
3986 .eraseblocks = { {4 * 1024, 1024} },
3987 .block_erase = spi_block_erase_20,
3988 }, {
3989 .eraseblocks = { {64 * 1024, 64} },
3990 .block_erase = spi_block_erase_d8,
3991 }, {
3992 .eraseblocks = { {1024 * 4096, 1} },
3993 .block_erase = spi_block_erase_60,
3994 }, {
3995 .eraseblocks = { {1024 * 4096, 1} },
3996 .block_erase = spi_block_erase_c7,
3997 }
3998 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003999 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4000 .unlock = spi_disable_blockprotect_bp3_srwd,
4001 .write = spi_chip_write_256,
4002 .read = spi_chip_read,
4003 .voltage = {2700, 3600},
4004 },
4005
4006 {
4007 .vendor = "Eon",
4008 .name = "EN25QH64",
4009 .bustype = BUS_SPI,
4010 .manufacture_id = EON_ID_NOPREFIX,
4011 .model_id = EON_EN25QH64,
4012 .total_size = 8192,
4013 .page_size = 256,
4014 /* supports SFDP */
4015 /* OTP: 512B total; enter 0x3A */
4016 /* QPI enable 0x38, disable 0xFF */
4017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4018 .tested = TEST_UNTESTED,
4019 .probe = probe_spi_rdid,
4020 .probe_timing = TIMING_ZERO,
4021 .block_erasers = {
4022 {
4023 .eraseblocks = { {4 * 1024, 2048} },
4024 .block_erase = spi_block_erase_20,
4025 }, {
4026 .eraseblocks = { {64 * 1024, 128} },
4027 .block_erase = spi_block_erase_d8,
4028 }, {
4029 .eraseblocks = { { 8192 * 1024, 1} },
4030 .block_erase = spi_block_erase_60,
4031 }, {
4032 .eraseblocks = { { 8192 * 1024, 1} },
4033 .block_erase = spi_block_erase_c7,
4034 }
4035 },
4036 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4037 .unlock = spi_disable_blockprotect_bp3_srwd,
4038 .write = spi_chip_write_256,
4039 .read = spi_chip_read,
4040 .voltage = {2700, 3600},
4041 },
4042
4043 {
4044 .vendor = "Eon",
4045 .name = "EN25QH128",
4046 .bustype = BUS_SPI,
4047 .manufacture_id = EON_ID_NOPREFIX,
4048 .model_id = EON_EN25QH128,
4049 .total_size = 16384,
4050 .page_size = 256,
4051 /* supports SFDP */
4052 /* OTP: 512B total; enter 0x3A */
4053 /* QPI enable 0x38, disable 0xFF */
4054 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4055 .tested = TEST_UNTESTED,
4056 .probe = probe_spi_rdid,
4057 .probe_timing = TIMING_ZERO,
4058 .block_erasers = {
4059 {
4060 .eraseblocks = { {4 * 1024, 4096} },
4061 .block_erase = spi_block_erase_20,
4062 }, {
4063 .eraseblocks = { {64 * 1024, 256} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { { 16384 * 1024, 1} },
4067 .block_erase = spi_block_erase_60,
4068 }, {
4069 .eraseblocks = { { 16384 * 1024, 1} },
4070 .block_erase = spi_block_erase_c7,
4071 }
4072 },
4073 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4074 .unlock = spi_disable_blockprotect_bp3_srwd,
4075 .write = spi_chip_write_256,
4076 .read = spi_chip_read,
4077 .voltage = {2700, 3600},
4078 },
4079
4080 {
4081 .vendor = "Eon",
4082 .name = "EN25QH256",
4083 .bustype = BUS_SPI,
4084 .manufacture_id = EON_ID_NOPREFIX,
4085 .model_id = EON_EN25QH256,
4086 .total_size = 32768,
4087 .page_size = 256,
4088 /* supports SFDP */
4089 /* OTP: 512B total; enter 0x3A */
4090 /* QPI enable 0x38, disable 0xFF */
4091 /* EN4B: 0xB7, EX4B: 0xE9 */
4092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4093 .tested = TEST_BAD_REW,
4094 .probe = probe_spi_rdid,
4095 .probe_timing = TIMING_ZERO,
4096 .block_erasers = {
4097 {
4098 .eraseblocks = { {4 * 1024, 8192} },
4099 .block_erase = spi_block_erase_20,
4100 }, {
4101 .eraseblocks = { {64 * 1024, 512} },
4102 .block_erase = spi_block_erase_d8,
4103 }, {
4104 .eraseblocks = { { 32768 * 1024, 1} },
4105 .block_erase = spi_block_erase_60,
4106 }, {
4107 .eraseblocks = { { 32768 * 1024, 1} },
4108 .block_erase = spi_block_erase_c7,
4109 }
4110 },
4111 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4112 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004113 .write = spi_chip_write_256,
4114 .read = spi_chip_read,
4115 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004116 },
4117
4118 {
4119 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004120 .name = "EN25S10",
4121 .bustype = BUS_SPI,
4122 .manufacture_id = EON_ID_NOPREFIX,
4123 .model_id = EON_EN25S10,
4124 .total_size = 128,
4125 .page_size = 256,
4126 /* OTP: 256B total; enter 0x3A */
4127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4128 .tested = TEST_UNTESTED,
4129 .probe = probe_spi_rdid,
4130 .probe_timing = TIMING_ZERO,
4131 .block_erasers = {
4132 {
4133 .eraseblocks = { {4 * 1024, 32} },
4134 .block_erase = spi_block_erase_20,
4135 }, {
4136 .eraseblocks = { {32 * 1024, 4} },
4137 .block_erase = spi_block_erase_52,
4138 }, {
4139 .eraseblocks = { {128 * 1024, 1} },
4140 .block_erase = spi_block_erase_60,
4141 }, {
4142 .eraseblocks = { {128 * 1024, 1} },
4143 .block_erase = spi_block_erase_c7,
4144 }
4145 },
4146 .printlock = spi_prettyprint_status_register_default_bp2,
4147 .unlock = spi_disable_blockprotect,
4148 .write = spi_chip_write_256,
4149 .read = spi_chip_read,
4150 .voltage = {1650, 1950},
4151 },
4152
4153 {
4154 .vendor = "Eon",
4155 .name = "EN25S20",
4156 .bustype = BUS_SPI,
4157 .manufacture_id = EON_ID_NOPREFIX,
4158 .model_id = EON_EN25S20,
4159 .total_size = 256,
4160 .page_size = 256,
4161 /* OTP: 256B total; enter 0x3A */
4162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4163 .tested = TEST_UNTESTED,
4164 .probe = probe_spi_rdid,
4165 .probe_timing = TIMING_ZERO,
4166 .block_erasers = {
4167 {
4168 .eraseblocks = { {4 * 1024, 64} },
4169 .block_erase = spi_block_erase_20,
4170 }, {
4171 .eraseblocks = { {64 * 1024, 4} },
4172 .block_erase = spi_block_erase_d8,
4173 }, {
4174 .eraseblocks = { {256 * 1024, 1} },
4175 .block_erase = spi_block_erase_60,
4176 }, {
4177 .eraseblocks = { {256 * 1024, 1} },
4178 .block_erase = spi_block_erase_c7,
4179 }
4180 },
4181 .printlock = spi_prettyprint_status_register_default_bp2,
4182 .unlock = spi_disable_blockprotect,
4183 .write = spi_chip_write_256,
4184 .read = spi_chip_read,
4185 .voltage = {1650, 1950},
4186 },
4187
4188 {
4189 .vendor = "Eon",
4190 .name = "EN25S40",
4191 .bustype = BUS_SPI,
4192 .manufacture_id = EON_ID_NOPREFIX,
4193 .model_id = EON_EN25S40,
4194 .total_size = 512,
4195 .page_size = 256,
4196 /* OTP: 256B total; enter 0x3A */
4197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4198 .tested = TEST_UNTESTED,
4199 .probe = probe_spi_rdid,
4200 .probe_timing = TIMING_ZERO,
4201 .block_erasers = {
4202 {
4203 .eraseblocks = { {4 * 1024, 128} },
4204 .block_erase = spi_block_erase_20,
4205 }, {
4206 .eraseblocks = { {64 * 1024, 8} },
4207 .block_erase = spi_block_erase_d8,
4208 }, {
4209 .eraseblocks = { {512 * 1024, 1} },
4210 .block_erase = spi_block_erase_60,
4211 }, {
4212 .eraseblocks = { {512 * 1024, 1} },
4213 .block_erase = spi_block_erase_c7,
4214 }
4215 },
4216 .printlock = spi_prettyprint_status_register_default_bp2,
4217 .unlock = spi_disable_blockprotect,
4218 .write = spi_chip_write_256,
4219 .read = spi_chip_read,
4220 .voltage = {1650, 1950},
4221 },
4222
4223 {
4224 .vendor = "Eon",
4225 .name = "EN25S80",
4226 .bustype = BUS_SPI,
4227 .manufacture_id = EON_ID_NOPREFIX,
4228 .model_id = EON_EN25S80,
4229 .total_size = 1024,
4230 .page_size = 256,
4231 /* OTP: 256B total; enter 0x3A */
4232 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4233 .tested = TEST_UNTESTED,
4234 .probe = probe_spi_rdid,
4235 .probe_timing = TIMING_ZERO,
4236 .block_erasers = {
4237 {
4238 .eraseblocks = { {4 * 1024, 256} },
4239 .block_erase = spi_block_erase_20,
4240 }, {
4241 .eraseblocks = { {64 * 1024, 16} },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { {1024 * 1024, 1} },
4245 .block_erase = spi_block_erase_60,
4246 }, {
4247 .eraseblocks = { {1024 * 1024, 1} },
4248 .block_erase = spi_block_erase_c7,
4249 }
4250 },
4251 .printlock = spi_prettyprint_status_register_default_bp2,
4252 .unlock = spi_disable_blockprotect,
4253 .write = spi_chip_write_256,
4254 .read = spi_chip_read,
4255 .voltage = {1650, 1950},
4256 },
4257
4258 {
4259 .vendor = "Eon",
4260 .name = "EN25S16",
4261 .bustype = BUS_SPI,
4262 .manufacture_id = EON_ID_NOPREFIX,
4263 .model_id = EON_EN25S16,
4264 .total_size = 2048,
4265 .page_size = 256,
4266 /* OTP: 512B total; enter 0x3A */
4267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4268 .tested = TEST_UNTESTED,
4269 .probe = probe_spi_rdid,
4270 .probe_timing = TIMING_ZERO,
4271 .block_erasers = {
4272 {
4273 .eraseblocks = { {4 * 1024, 512} },
4274 .block_erase = spi_block_erase_20,
4275 }, {
4276 .eraseblocks = { {64 * 1024, 32} },
4277 .block_erase = spi_block_erase_52,
4278 }, {
4279 .eraseblocks = { {32 * 1024, 64} },
4280 .block_erase = spi_block_erase_d8,
4281 }, {
4282 .eraseblocks = { {2048 * 1024, 1} },
4283 .block_erase = spi_block_erase_60,
4284 }, {
4285 .eraseblocks = { {2048 * 1024, 1} },
4286 .block_erase = spi_block_erase_c7,
4287 }
4288 },
4289 .printlock = spi_prettyprint_status_register_en25s_wp,
4290 .unlock = spi_disable_blockprotect_bp3_srwd,
4291 .write = spi_chip_write_256,
4292 .read = spi_chip_read,
4293 .voltage = {1650, 1950},
4294 },
4295
4296 {
4297 .vendor = "Eon",
4298 .name = "EN25S32",
4299 .bustype = BUS_SPI,
4300 .manufacture_id = EON_ID_NOPREFIX,
4301 .model_id = EON_EN25S32,
4302 .total_size = 4096,
4303 .page_size = 256,
4304 /* OTP: 512B total; enter 0x3A */
4305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4306 .tested = TEST_UNTESTED,
4307 .probe = probe_spi_rdid,
4308 .probe_timing = TIMING_ZERO,
4309 .block_erasers = {
4310 {
4311 .eraseblocks = { {4 * 1024, 1024} },
4312 .block_erase = spi_block_erase_20,
4313 }, {
4314 .eraseblocks = { {32 * 1024, 128} },
4315 .block_erase = spi_block_erase_52,
4316 }, {
4317 .eraseblocks = { {64 * 1024, 64} },
4318 .block_erase = spi_block_erase_d8,
4319 }, {
4320 .eraseblocks = { {4096 * 1024, 1} },
4321 .block_erase = spi_block_erase_60,
4322 }, {
4323 .eraseblocks = { {4096 * 1024, 1} },
4324 .block_erase = spi_block_erase_c7,
4325 }
4326 },
4327 .printlock = spi_prettyprint_status_register_en25s_wp,
4328 .unlock = spi_disable_blockprotect_bp3_srwd,
4329 .write = spi_chip_write_256,
4330 .read = spi_chip_read,
4331 .voltage = {1650, 1950},
4332 },
4333
4334 {
4335 .vendor = "Eon",
4336 .name = "EN25S64",
4337 .bustype = BUS_SPI,
4338 .manufacture_id = EON_ID_NOPREFIX,
4339 .model_id = EON_EN25S64,
4340 .total_size = 8192,
4341 .page_size = 256,
4342 /* OTP: 512B total; enter 0x3A */
4343 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4344 .tested = TEST_UNTESTED,
4345 .probe = probe_spi_rdid,
4346 .probe_timing = TIMING_ZERO,
4347 .block_erasers = {
4348 {
4349 .eraseblocks = { {4 * 1024, 2048} },
4350 .block_erase = spi_block_erase_20,
4351 }, {
4352 .eraseblocks = { {64 * 1024, 128} },
4353 .block_erase = spi_block_erase_d8,
4354 }, {
4355 .eraseblocks = { {8192 * 1024, 1} },
4356 .block_erase = spi_block_erase_60,
4357 }, {
4358 .eraseblocks = { {8192 * 1024, 1} },
4359 .block_erase = spi_block_erase_c7,
4360 }
4361 },
4362 .printlock = spi_prettyprint_status_register_en25s_wp,
4363 .unlock = spi_disable_blockprotect_bp3_srwd,
4364 .write = spi_chip_write_256,
4365 .read = spi_chip_read,
4366 .voltage = {1650, 1950},
4367 },
4368
4369 {
4370 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004371 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004372 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004373 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004374 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004375 .total_size = 128,
4376 .page_size = 128,
4377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004378 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004379 .probe = probe_jedec,
4380 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4381 .block_erasers =
4382 {
4383 {
4384 .eraseblocks = { {16 * 1024, 8} },
4385 .block_erase = erase_sector_jedec,
4386 },
4387 {
4388 .eraseblocks = { {128 * 1024, 1} },
4389 .block_erase = erase_chip_block_jedec,
4390 },
4391 },
4392 .write = write_jedec_1,
4393 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004394 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004395 },
4396
4397 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004398 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004399 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004400 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004401 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004402 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004403 .total_size = 256,
4404 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004405 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004406 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004407 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004408 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004409 .block_erasers =
4410 {
4411 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004412 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004413 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004414 {8 * 1024, 2},
4415 {32 * 1024, 1},
4416 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004417 },
4418 .block_erase = erase_sector_jedec,
4419 }, {
4420 .eraseblocks = { {256 * 1024, 1} },
4421 .block_erase = erase_chip_block_jedec,
4422 },
4423 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004424 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004425 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004426 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004427 },
4428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004429 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004430 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004431 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004432 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004433 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004434 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004435 .total_size = 256,
4436 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004437 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004438 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004439 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004440 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004441 .block_erasers =
4442 {
4443 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004444 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004445 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004446 {32 * 1024, 1},
4447 {8 * 1024, 2},
4448 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004449 },
4450 .block_erase = erase_sector_jedec,
4451 }, {
4452 .eraseblocks = { {256 * 1024, 1} },
4453 .block_erase = erase_chip_block_jedec,
4454 },
4455 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004456 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004458 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004459 },
4460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004461 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004462 .vendor = "Eon",
4463 .name = "EN29LV640B",
4464 .bustype = BUS_PARALLEL,
4465 .manufacture_id = EON_ID,
4466 .model_id = EON_EN29LV640B,
4467 .total_size = 8192,
4468 .page_size = 8192,
4469 .feature_bits = 0,
4470 .tested = TEST_OK_PREW,
4471 .probe = probe_en29lv640b,
4472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4473 .block_erasers =
4474 {
4475 {
4476 .eraseblocks = {
4477 {8 * 1024, 8},
4478 {64 * 1024, 127},
4479 },
4480 .block_erase = block_erase_en29lv640b,
4481 }, {
4482 .eraseblocks = { {8 * 1024 * 1024, 1} },
4483 .block_erase = block_erase_chip_en29lv640b,
4484 },
4485 },
4486 .write = write_en29lv640b,
4487 .read = read_memmapped,
4488 .voltage = {2700, 3600},
4489 },
4490
4491 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004492 .vendor = "Fujitsu",
4493 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004494 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004495 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004496 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004497 .total_size = 512,
4498 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004499 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004500 .tested = TEST_UNTESTED,
4501 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004502 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004503 .block_erasers =
4504 {
4505 {
4506 .eraseblocks = {
4507 {16 * 1024, 1},
4508 {8 * 1024, 2},
4509 {32 * 1024, 1},
4510 {64 * 1024, 7},
4511 },
Sean Nelson35727f72010-01-28 23:55:12 +00004512 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004513 }, {
4514 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004515 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004516 },
4517 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004518 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004520 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004521 },
4522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004523 {
4524 .vendor = "Fujitsu",
4525 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004526 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004527 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004528 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004529 .total_size = 512,
4530 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004531 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004532 .tested = TEST_UNTESTED,
4533 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004534 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004535 .block_erasers =
4536 {
4537 {
4538 .eraseblocks = {
4539 {64 * 1024, 7},
4540 {32 * 1024, 1},
4541 {8 * 1024, 2},
4542 {16 * 1024, 1},
4543 },
Sean Nelson35727f72010-01-28 23:55:12 +00004544 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004545 }, {
4546 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004547 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004548 },
4549 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004550 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004551 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004552 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004553 },
4554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004555 {
Sean Nelson35727f72010-01-28 23:55:12 +00004556 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004557 .vendor = "Fujitsu",
4558 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004559 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004560 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004561 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004562 .total_size = 512,
4563 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004564 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004565 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004566 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004567 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004568 .block_erasers =
4569 {
4570 {
4571 .eraseblocks = {
4572 {16 * 1024, 1},
4573 {8 * 1024, 2},
4574 {32 * 1024, 1},
4575 {64 * 1024, 7},
4576 },
4577 .block_erase = block_erase_m29f400bt,
4578 }, {
4579 .eraseblocks = { {512 * 1024, 1} },
4580 .block_erase = block_erase_chip_m29f400bt,
4581 },
4582 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004583 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004584 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004585 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004586 },
4587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004588 {
4589 .vendor = "Fujitsu",
4590 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004591 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004592 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004593 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004594 .total_size = 512,
4595 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004596 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004597 .tested = TEST_UNTESTED,
4598 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004599 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004600 .block_erasers =
4601 {
4602 {
4603 .eraseblocks = {
4604 {64 * 1024, 7},
4605 {32 * 1024, 1},
4606 {8 * 1024, 2},
4607 {16 * 1024, 1},
4608 },
4609 .block_erase = block_erase_m29f400bt,
4610 }, {
4611 .eraseblocks = { {512 * 1024, 1} },
4612 .block_erase = block_erase_chip_m29f400bt,
4613 },
4614 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004615 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004617 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004618 },
4619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004620 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004621 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004622 .name = "GD25LQ32",
4623 .bustype = BUS_SPI,
4624 .manufacture_id = GIGADEVICE_ID,
4625 .model_id = GIGADEVICE_GD25LQ32,
4626 .total_size = 4096,
4627 .page_size = 256,
4628 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4630 .tested = TEST_OK_PREW,
4631 .probe = probe_spi_rdid,
4632 .probe_timing = TIMING_ZERO,
4633 .block_erasers =
4634 {
4635 {
4636 .eraseblocks = { {4 * 1024, 1024} },
4637 .block_erase = spi_block_erase_20,
4638 }, {
4639 .eraseblocks = { {32 * 1024, 128} },
4640 .block_erase = spi_block_erase_52,
4641 }, {
4642 .eraseblocks = { {64 * 1024, 64} },
4643 .block_erase = spi_block_erase_d8,
4644 }, {
4645 .eraseblocks = { {4 * 1024 * 1024, 1} },
4646 .block_erase = spi_block_erase_60,
4647 }, {
4648 .eraseblocks = { {4 * 1024 * 1024, 1} },
4649 .block_erase = spi_block_erase_c7,
4650 }
4651 },
4652 .printlock = spi_prettyprint_status_register_default_bp4,
4653 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4654 .write = spi_chip_write_256,
4655 .read = spi_chip_read,
4656 .voltage = {1700, 1950},
4657 },
4658
4659 {
4660 .vendor = "GigaDevice",
4661 .name = "GD25Q512",
4662 .bustype = BUS_SPI,
4663 .manufacture_id = GIGADEVICE_ID,
4664 .model_id = GIGADEVICE_GD25Q512,
4665 .total_size = 64,
4666 .page_size = 256,
4667 .feature_bits = FEATURE_WRSR_WREN,
4668 .tested = TEST_UNTESTED,
4669 .probe = probe_spi_rdid,
4670 .probe_timing = TIMING_ZERO,
4671 .block_erasers = {
4672 {
4673 .eraseblocks = { {4 * 1024, 16} },
4674 .block_erase = spi_block_erase_20,
4675 }, {
4676 .eraseblocks = { {32 * 1024, 2} },
4677 .block_erase = spi_block_erase_52,
4678 }, {
4679 .eraseblocks = { {64 * 1024, 1} },
4680 .block_erase = spi_block_erase_60,
4681 }, {
4682 .eraseblocks = { {64 * 1024, 1} },
4683 .block_erase = spi_block_erase_c7,
4684 }
4685 },
4686 .printlock = spi_prettyprint_status_register_default_bp4,
4687 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4688 .write = spi_chip_write_256,
4689 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4690 .voltage = {2700, 3600},
4691 },
4692
4693 {
4694 .vendor = "GigaDevice",
4695 .name = "GD25Q10",
4696 .bustype = BUS_SPI,
4697 .manufacture_id = GIGADEVICE_ID,
4698 .model_id = GIGADEVICE_GD25Q10,
4699 .total_size = 128,
4700 .page_size = 256,
4701 .feature_bits = FEATURE_WRSR_WREN,
4702 .tested = TEST_UNTESTED,
4703 .probe = probe_spi_rdid,
4704 .probe_timing = TIMING_ZERO,
4705 .block_erasers = {
4706 {
4707 .eraseblocks = { {4 * 1024, 32} },
4708 .block_erase = spi_block_erase_20,
4709 }, {
4710 .eraseblocks = { {32 * 1024, 4} },
4711 .block_erase = spi_block_erase_52,
4712 }, {
4713 .eraseblocks = { {64 * 1024, 2} },
4714 .block_erase = spi_block_erase_d8,
4715 }, {
4716 .eraseblocks = { {128 * 1024, 1} },
4717 .block_erase = spi_block_erase_60,
4718 }, {
4719 .eraseblocks = { {128 * 1024, 1} },
4720 .block_erase = spi_block_erase_c7,
4721 }
4722 },
4723 .printlock = spi_prettyprint_status_register_default_bp4,
4724 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4725 .write = spi_chip_write_256,
4726 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4727 .voltage = {2700, 3600},
4728 },
4729
4730 {
4731 .vendor = "GigaDevice",
4732 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004733 .bustype = BUS_SPI,
4734 .manufacture_id = GIGADEVICE_ID,
4735 .model_id = GIGADEVICE_GD25Q20,
4736 .total_size = 256,
4737 .page_size = 256,
4738 .feature_bits = FEATURE_WRSR_WREN,
4739 .tested = TEST_UNTESTED,
4740 .probe = probe_spi_rdid,
4741 .probe_timing = TIMING_ZERO,
4742 .block_erasers =
4743 {
4744 {
4745 .eraseblocks = { {4 * 1024, 64} },
4746 .block_erase = spi_block_erase_20,
4747 }, {
4748 .eraseblocks = { {32 * 1024, 8} },
4749 .block_erase = spi_block_erase_52,
4750 }, {
4751 .eraseblocks = { {64 * 1024, 4} },
4752 .block_erase = spi_block_erase_d8,
4753 }, {
4754 .eraseblocks = { {256 * 1024, 1} },
4755 .block_erase = spi_block_erase_60,
4756 }, {
4757 .eraseblocks = { {256 * 1024, 1} },
4758 .block_erase = spi_block_erase_c7,
4759 }
4760 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004761 .printlock = spi_prettyprint_status_register_default_bp4,
4762 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004763 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004764 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004765 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004766 },
4767
4768 {
4769 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004770 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004771 .bustype = BUS_SPI,
4772 .manufacture_id = GIGADEVICE_ID,
4773 .model_id = GIGADEVICE_GD25Q40,
4774 .total_size = 512,
4775 .page_size = 256,
4776 .feature_bits = FEATURE_WRSR_WREN,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {4 * 1024, 128} },
4784 .block_erase = spi_block_erase_20,
4785 }, {
4786 .eraseblocks = { {32 * 1024, 16} },
4787 .block_erase = spi_block_erase_52,
4788 }, {
4789 .eraseblocks = { {64 * 1024, 8} },
4790 .block_erase = spi_block_erase_d8,
4791 }, {
4792 .eraseblocks = { {512 * 1024, 1} },
4793 .block_erase = spi_block_erase_60,
4794 }, {
4795 .eraseblocks = { {512 * 1024, 1} },
4796 .block_erase = spi_block_erase_c7,
4797 }
4798 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004799 .printlock = spi_prettyprint_status_register_default_bp4,
4800 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004801 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004802 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004803 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004804 },
4805
4806 {
4807 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004808 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004809 .bustype = BUS_SPI,
4810 .manufacture_id = GIGADEVICE_ID,
4811 .model_id = GIGADEVICE_GD25Q80,
4812 .total_size = 1024,
4813 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004814 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4816 .tested = TEST_OK_PREW,
4817 .probe = probe_spi_rdid,
4818 .probe_timing = TIMING_ZERO,
4819 .block_erasers =
4820 {
4821 {
4822 .eraseblocks = { {4 * 1024, 256} },
4823 .block_erase = spi_block_erase_20,
4824 }, {
4825 .eraseblocks = { {32 * 1024, 32} },
4826 .block_erase = spi_block_erase_52,
4827 }, {
4828 .eraseblocks = { {64 * 1024, 16} },
4829 .block_erase = spi_block_erase_d8,
4830 }, {
4831 .eraseblocks = { {1024 * 1024, 1} },
4832 .block_erase = spi_block_erase_60,
4833 }, {
4834 .eraseblocks = { {1024 * 1024, 1} },
4835 .block_erase = spi_block_erase_c7,
4836 }
4837 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004838 .printlock = spi_prettyprint_status_register_default_bp4,
4839 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004840 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004841 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004842 .voltage = {2700, 3600},
4843 },
4844
4845 {
4846 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004847 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004848 .bustype = BUS_SPI,
4849 .manufacture_id = GIGADEVICE_ID,
4850 .model_id = GIGADEVICE_GD25Q16,
4851 .total_size = 2048,
4852 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004853 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {4 * 1024, 512} },
4862 .block_erase = spi_block_erase_20,
4863 }, {
4864 .eraseblocks = { {32 * 1024, 64} },
4865 .block_erase = spi_block_erase_52,
4866 }, {
4867 .eraseblocks = { {64 * 1024, 32} },
4868 .block_erase = spi_block_erase_d8,
4869 }, {
4870 .eraseblocks = { {2 * 1024 * 1024, 1} },
4871 .block_erase = spi_block_erase_60,
4872 }, {
4873 .eraseblocks = { {2 * 1024 * 1024, 1} },
4874 .block_erase = spi_block_erase_c7,
4875 }
4876 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004877 .printlock = spi_prettyprint_status_register_default_bp4,
4878 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004879 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004880 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004881 .voltage = {2700, 3600},
4882 },
4883
4884 {
4885 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004886 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004887 .bustype = BUS_SPI,
4888 .manufacture_id = GIGADEVICE_ID,
4889 .model_id = GIGADEVICE_GD25Q32,
4890 .total_size = 4096,
4891 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004892 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4894 .tested = TEST_UNTESTED,
4895 .probe = probe_spi_rdid,
4896 .probe_timing = TIMING_ZERO,
4897 .block_erasers =
4898 {
4899 {
4900 .eraseblocks = { {4 * 1024, 1024} },
4901 .block_erase = spi_block_erase_20,
4902 }, {
4903 .eraseblocks = { {32 * 1024, 128} },
4904 .block_erase = spi_block_erase_52,
4905 }, {
4906 .eraseblocks = { {64 * 1024, 64} },
4907 .block_erase = spi_block_erase_d8,
4908 }, {
4909 .eraseblocks = { {4 * 1024 * 1024, 1} },
4910 .block_erase = spi_block_erase_60,
4911 }, {
4912 .eraseblocks = { {4 * 1024 * 1024, 1} },
4913 .block_erase = spi_block_erase_c7,
4914 }
4915 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004916 .printlock = spi_prettyprint_status_register_default_bp4,
4917 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004918 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004919 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004920 .voltage = {2700, 3600},
4921 },
4922
4923 {
4924 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004925 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004926 .bustype = BUS_SPI,
4927 .manufacture_id = GIGADEVICE_ID,
4928 .model_id = GIGADEVICE_GD25Q64,
4929 .total_size = 8192,
4930 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004931 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004933 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004934 .probe = probe_spi_rdid,
4935 .probe_timing = TIMING_ZERO,
4936 .block_erasers =
4937 {
4938 {
4939 .eraseblocks = { {4 * 1024, 2048} },
4940 .block_erase = spi_block_erase_20,
4941 }, {
4942 .eraseblocks = { {32 * 1024, 256} },
4943 .block_erase = spi_block_erase_52,
4944 }, {
4945 .eraseblocks = { {64 * 1024, 128} },
4946 .block_erase = spi_block_erase_d8,
4947 }, {
4948 .eraseblocks = { {8 * 1024 * 1024, 1} },
4949 .block_erase = spi_block_erase_60,
4950 }, {
4951 .eraseblocks = { {8 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_c7,
4953 }
4954 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004955 .printlock = spi_prettyprint_status_register_default_bp4,
4956 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004957 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004958 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00004959 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004960 },
4961
4962 {
4963 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004964 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004965 .bustype = BUS_SPI,
4966 .manufacture_id = GIGADEVICE_ID,
4967 .model_id = GIGADEVICE_GD25Q128,
4968 .total_size = 16384,
4969 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004970 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4972 .tested = TEST_UNTESTED,
4973 .probe = probe_spi_rdid,
4974 .probe_timing = TIMING_ZERO,
4975 .block_erasers =
4976 {
4977 {
4978 .eraseblocks = { {4 * 1024, 4096} },
4979 .block_erase = spi_block_erase_20,
4980 }, {
4981 .eraseblocks = { {32 * 1024, 512} },
4982 .block_erase = spi_block_erase_52,
4983 }, {
4984 .eraseblocks = { {64 * 1024, 256} },
4985 .block_erase = spi_block_erase_d8,
4986 }, {
4987 .eraseblocks = { {16 * 1024 * 1024, 1} },
4988 .block_erase = spi_block_erase_60,
4989 }, {
4990 .eraseblocks = { {16 * 1024 * 1024, 1} },
4991 .block_erase = spi_block_erase_c7,
4992 }
4993 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004994 .printlock = spi_prettyprint_status_register_default_bp4,
4995 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4996 .write = spi_chip_write_256,
4997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4998 .voltage = {2700, 3600},
4999 },
5000
5001 {
5002 .vendor = "GigaDevice",
5003 .name = "GD25T80",
5004 .bustype = BUS_SPI,
5005 .manufacture_id = GIGADEVICE_ID,
5006 .model_id = GIGADEVICE_GD25T80,
5007 .total_size = 1024,
5008 .page_size = 256,
5009 /* OTP: 256B total; enter 0x3A */
5010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5011 .tested = TEST_UNTESTED,
5012 .probe = probe_spi_rdid,
5013 .probe_timing = TIMING_ZERO,
5014 .block_erasers = {
5015 {
5016 .eraseblocks = { {4 * 1024, 256} },
5017 .block_erase = spi_block_erase_20,
5018 }, {
5019 .eraseblocks = { {64 * 1024, 16} },
5020 .block_erase = spi_block_erase_52,
5021 }, {
5022 .eraseblocks = { {64 * 1024, 16} },
5023 .block_erase = spi_block_erase_d8,
5024 }, {
5025 .eraseblocks = { {1024 * 1024, 1} },
5026 .block_erase = spi_block_erase_60,
5027 }, {
5028 .eraseblocks = { {1024 * 1024, 1} },
5029 .block_erase = spi_block_erase_c7,
5030 }
5031 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005032 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005033 .unlock = spi_disable_blockprotect,
5034 .write = spi_chip_write_256,
5035 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005036 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005037 },
5038
5039 {
David Borgc96a8bd2010-06-21 16:12:22 +00005040 .vendor = "Hyundai",
5041 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005042 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005043 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005044 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005045 .total_size = 256,
5046 .page_size = 256 * 1024,
5047 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005048 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005049 .probe = probe_jedec,
5050 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5051 .block_erasers =
5052 {
5053 {
5054 .eraseblocks = {
5055 {64 * 1024, 3},
5056 {32 * 1024, 1},
5057 {8 * 1024, 2},
5058 {16 * 1024, 1},
5059 },
5060 .block_erase = erase_sector_jedec,
5061 }, {
5062 .eraseblocks = { {256 * 1024, 1} },
5063 .block_erase = erase_chip_block_jedec,
5064 },
5065 },
5066 .write = write_jedec_1,
5067 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005068 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005069 },
5070
5071 {
5072 .vendor = "Hyundai",
5073 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005074 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005075 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005076 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005077 .total_size = 256,
5078 .page_size = 256 * 1024,
5079 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_jedec,
5082 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = {
5087 {16 * 1024, 1},
5088 {8 * 1024, 2},
5089 {32 * 1024, 1},
5090 {64 * 1024, 3},
5091 },
5092 .block_erase = erase_sector_jedec,
5093 }, {
5094 .eraseblocks = { {256 * 1024, 1} },
5095 .block_erase = erase_chip_block_jedec,
5096 },
5097 },
5098 .write = write_jedec_1,
5099 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005100 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005101 },
5102
5103 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005104 .vendor = "Hyundai",
5105 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005106 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005107 .manufacture_id = HYUNDAI_ID,
5108 .model_id = HYUNDAI_HY29F040A,
5109 .total_size = 512,
5110 .page_size = 64 * 1024,
5111 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5112 .tested = TEST_UNTESTED,
5113 .probe = probe_jedec,
5114 .probe_timing = TIMING_ZERO,
5115 .block_erasers =
5116 {
5117 {
5118 .eraseblocks = { {64 * 1024, 8} },
5119 .block_erase = erase_sector_jedec,
5120 }, {
5121 .eraseblocks = { {512 * 1024, 1} },
5122 .block_erase = erase_chip_block_jedec,
5123 },
5124 },
5125 .write = write_jedec_1,
5126 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005127 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005128 },
5129
5130 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005131 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005132 .name = "25F160S33B8",
5133 .bustype = BUS_SPI,
5134 .manufacture_id = INTEL_ID,
5135 .model_id = INTEL_25F160S33B8,
5136 .total_size = 2048,
5137 .page_size = 256,
5138 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5140 .tested = TEST_UNTESTED,
5141 .probe = probe_spi_rdid,
5142 .probe_timing = TIMING_ZERO,
5143 .block_erasers =
5144 {
5145 {
5146 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5147 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5148 * have no effect on the memory contents, but sets a flag in the SR.
5149 .eraseblocks = {
5150 {8 * 1024, 8},
5151 {64 * 1024, 31} // inaccessible
5152 },
5153 .block_erase = spi_block_erase_40,
5154 }, { */
5155 .eraseblocks = { {64 * 1024, 32} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {2 * 1024 * 1024, 1} },
5159 .block_erase = spi_block_erase_c7,
5160 }
5161 },
5162 .printlock = spi_prettyprint_status_register_s33,
5163 .unlock = spi_disable_blockprotect_s33,
5164 .write = spi_chip_write_256,
5165 .read = spi_chip_read, /* also fast read 0x0B */
5166 .voltage = {2700, 3600},
5167 },
5168
5169 {
5170 .vendor = "Intel",
5171 .name = "25F160S33T8",
5172 .bustype = BUS_SPI,
5173 .manufacture_id = INTEL_ID,
5174 .model_id = INTEL_25F160S33T8,
5175 .total_size = 2048,
5176 .page_size = 256,
5177 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5179 .tested = TEST_UNTESTED,
5180 .probe = probe_spi_rdid,
5181 .probe_timing = TIMING_ZERO,
5182 .block_erasers =
5183 {
5184 {
5185 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5186 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5187 * have no effect on the memory contents, but sets a flag in the SR.
5188 .eraseblocks = {
5189 {64 * 1024, 31}, // inaccessible
5190 {8 * 1024, 8}
5191 },
5192 .block_erase = spi_block_erase_40,
5193 }, { */
5194 .eraseblocks = { {64 * 1024, 32} },
5195 .block_erase = spi_block_erase_d8,
5196 }, {
5197 .eraseblocks = { {2 * 1024 * 1024, 1} },
5198 .block_erase = spi_block_erase_c7,
5199 }
5200 },
5201 .printlock = spi_prettyprint_status_register_s33,
5202 .unlock = spi_disable_blockprotect_s33,
5203 .write = spi_chip_write_256,
5204 .read = spi_chip_read, /* also fast read 0x0B */
5205 .voltage = {2700, 3600},
5206 },
5207
5208 {
5209 .vendor = "Intel",
5210 .name = "25F320S33B8",
5211 .bustype = BUS_SPI,
5212 .manufacture_id = INTEL_ID,
5213 .model_id = INTEL_25F320S33B8,
5214 .total_size = 4096,
5215 .page_size = 256,
5216 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5218 .tested = TEST_UNTESTED,
5219 .probe = probe_spi_rdid,
5220 .probe_timing = TIMING_ZERO,
5221 .block_erasers =
5222 {
5223 {
5224 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5225 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5226 * have no effect on the memory contents, but sets a flag in the SR.
5227 .eraseblocks = {
5228 {8 * 1024, 8},
5229 {64 * 1024, 63} // inaccessible
5230 },
5231 .block_erase = spi_block_erase_40,
5232 }, { */
5233 .eraseblocks = { {64 * 1024, 64} },
5234 .block_erase = spi_block_erase_d8,
5235 }, {
5236 .eraseblocks = { {4 * 1024 * 1024, 1} },
5237 .block_erase = spi_block_erase_c7,
5238 }
5239 },
5240 .printlock = spi_prettyprint_status_register_s33,
5241 .unlock = spi_disable_blockprotect_s33,
5242 .write = spi_chip_write_256,
5243 .read = spi_chip_read, /* also fast read 0x0B */
5244 .voltage = {2700, 3600},
5245 },
5246
5247 {
5248 .vendor = "Intel",
5249 .name = "25F320S33T8",
5250 .bustype = BUS_SPI,
5251 .manufacture_id = INTEL_ID,
5252 .model_id = INTEL_25F320S33T8,
5253 .total_size = 4096,
5254 .page_size = 256,
5255 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5257 .tested = TEST_UNTESTED,
5258 .probe = probe_spi_rdid,
5259 .probe_timing = TIMING_ZERO,
5260 .block_erasers =
5261 {
5262 {
5263 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5264 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5265 * have no effect on the memory contents, but sets a flag in the SR.
5266 .eraseblocks = {
5267 {64 * 1024, 63}, // inaccessible
5268 {8 * 1024, 8}
5269 },
5270 .block_erase = spi_block_erase_40,
5271 }, { */
5272 .eraseblocks = { {64 * 1024, 64} },
5273 .block_erase = spi_block_erase_d8,
5274 }, {
5275 .eraseblocks = { {4 * 1024 * 1024, 1} },
5276 .block_erase = spi_block_erase_c7,
5277 }
5278 },
5279 .printlock = spi_prettyprint_status_register_s33,
5280 .unlock = spi_disable_blockprotect_s33,
5281 .write = spi_chip_write_256,
5282 .read = spi_chip_read, /* also fast read 0x0B */
5283 .voltage = {2700, 3600},
5284 },
5285
5286 {
5287 .vendor = "Intel",
5288 .name = "25F640S33B8",
5289 .bustype = BUS_SPI,
5290 .manufacture_id = INTEL_ID,
5291 .model_id = INTEL_25F640S33B8,
5292 .total_size = 8192,
5293 .page_size = 256,
5294 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5296 .tested = TEST_UNTESTED,
5297 .probe = probe_spi_rdid,
5298 .probe_timing = TIMING_ZERO,
5299 .block_erasers =
5300 {
5301 {
5302 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5303 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5304 * have no effect on the memory contents, but sets a flag in the SR.
5305 .eraseblocks = {
5306 {8 * 1024, 8},
5307 {64 * 1024, 127} // inaccessible
5308 },
5309 .block_erase = spi_block_erase_40,
5310 }, { */
5311 .eraseblocks = { {64 * 1024, 128} },
5312 .block_erase = spi_block_erase_d8,
5313 }, {
5314 .eraseblocks = { {8 * 1024 * 1024, 1} },
5315 .block_erase = spi_block_erase_c7,
5316 }
5317 },
5318 .printlock = spi_prettyprint_status_register_s33,
5319 .unlock = spi_disable_blockprotect_s33,
5320 .write = spi_chip_write_256,
5321 .read = spi_chip_read, /* also fast read 0x0B */
5322 .voltage = {2700, 3600},
5323 },
5324
5325 {
5326 .vendor = "Intel",
5327 .name = "25F640S33T8",
5328 .bustype = BUS_SPI,
5329 .manufacture_id = INTEL_ID,
5330 .model_id = INTEL_25F640S33T8,
5331 .total_size = 8192,
5332 .page_size = 256,
5333 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5334 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5335 .tested = TEST_UNTESTED,
5336 .probe = probe_spi_rdid,
5337 .probe_timing = TIMING_ZERO,
5338 .block_erasers =
5339 {
5340 {
5341 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5342 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5343 * have no effect on the memory contents, but sets a flag in the SR.
5344 .eraseblocks = {
5345 {64 * 1024, 127}, // inaccessible
5346 {8 * 1024, 8}
5347 },
5348 .block_erase = spi_block_erase_40,
5349 }, { */
5350 .eraseblocks = { {64 * 1024, 128} },
5351 .block_erase = spi_block_erase_d8,
5352 }, {
5353 .eraseblocks = { {8 * 1024 * 1024, 1} },
5354 .block_erase = spi_block_erase_c7,
5355 }
5356 },
5357 .printlock = spi_prettyprint_status_register_s33,
5358 .unlock = spi_disable_blockprotect_s33,
5359 .write = spi_chip_write_256,
5360 .read = spi_chip_read, /* also fast read 0x0B */
5361 .voltage = {2700, 3600},
5362 },
5363
5364 {
5365 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005366 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005367 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005368 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005369 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005370 .total_size = 128,
5371 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005372 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005373 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005374 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005375 .block_erasers =
5376 {
5377 {
5378 .eraseblocks = {
5379 {8 * 1024, 1},
5380 {4 * 1024, 2},
5381 {112 * 1024, 1},
5382 },
Sean Nelson28accc22010-03-19 18:47:06 +00005383 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005384 },
5385 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005386 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005388 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005389 },
5390
5391 {
5392 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005393 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005394 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005395 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005396 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005397 .total_size = 128,
5398 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005399 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005400 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005401 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005402 .block_erasers =
5403 {
5404 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005405 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005406 {112 * 1024, 1},
5407 {4 * 1024, 2},
5408 {8 * 1024, 1},
5409 },
Sean Nelson28accc22010-03-19 18:47:06 +00005410 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005411 },
5412 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005413 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005415 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005416 },
5417
5418 {
5419 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005420 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005421 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005422 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005423 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005424 .total_size = 256,
5425 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005426 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005427 .probe = probe_82802ab,
5428 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5429 .block_erasers =
5430 {
5431 {
5432 .eraseblocks = {
5433 {128 * 1024, 1},
5434 {96 * 1024, 1},
5435 {8 * 1024, 2},
5436 {16 * 1024, 1},
5437 },
5438 .block_erase = erase_block_82802ab,
5439 },
5440 },
5441 .write = write_82802ab,
5442 .read = read_memmapped,
5443 },
5444
5445 {
5446 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005447 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005448 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005449 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005450 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005451 .total_size = 512,
5452 .page_size = 256,
5453 .tested = TEST_UNTESTED,
5454 .probe = probe_82802ab,
5455 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005456 .block_erasers =
5457 {
5458 {
5459 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005460 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005461 },
5462 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005463 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005464 .write = write_82802ab,
5465 .read = read_memmapped,
5466 },
5467
5468 {
5469 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005470 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005471 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005472 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005473 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005474 .total_size = 512,
5475 .page_size = 128 * 1024, /* maximal block size */
5476 .tested = TEST_UNTESTED,
5477 .probe = probe_82802ab,
5478 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5479 .block_erasers =
5480 {
5481 {
5482 .eraseblocks = {
5483 {16 * 1024, 1},
5484 {8 * 1024, 2},
5485 {96 * 1024, 1},
5486 {128 * 1024, 3},
5487 },
5488 .block_erase = erase_block_82802ab,
5489 },
5490 },
5491 .write = write_82802ab,
5492 .read = read_memmapped,
5493 },
5494
5495 {
5496 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005497 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005498 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005499 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005500 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005501 .total_size = 512,
5502 .page_size = 128 * 1024, /* maximal block size */
5503 .tested = TEST_UNTESTED,
5504 .probe = probe_82802ab,
5505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5506 .block_erasers =
5507 {
5508 {
5509 .eraseblocks = {
5510 {128 * 1024, 3},
5511 {96 * 1024, 1},
5512 {8 * 1024, 2},
5513 {16 * 1024, 1},
5514 },
5515 .block_erase = erase_block_82802ab,
5516 },
5517 },
5518 .write = write_82802ab,
5519 .read = read_memmapped,
5520 },
5521
5522 {
5523 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005524 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005525 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005526 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005527 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005528 .total_size = 512,
5529 .page_size = 128 * 1024, /* maximal block size */
5530 .feature_bits = FEATURE_ADDR_SHIFTED,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_82802ab,
5533 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = {
5538 {16 * 1024, 1},
5539 {8 * 1024, 2},
5540 {96 * 1024, 1},
5541 {128 * 1024, 3},
5542 },
5543 .block_erase = erase_block_82802ab,
5544 },
5545 },
5546 .write = write_82802ab,
5547 .read = read_memmapped,
5548 },
5549
5550 {
5551 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005552 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005553 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005554 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005555 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005556 .total_size = 512,
5557 .page_size = 128 * 1024, /* maximal block size */
5558 .feature_bits = FEATURE_ADDR_SHIFTED,
5559 .tested = TEST_UNTESTED,
5560 .probe = probe_82802ab,
5561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5562 .block_erasers =
5563 {
5564 {
5565 .eraseblocks = {
5566 {128 * 1024, 3},
5567 {96 * 1024, 1},
5568 {8 * 1024, 2},
5569 {16 * 1024, 1},
5570 },
5571 .block_erase = erase_block_82802ab,
5572 },
5573 },
5574 .write = write_82802ab,
5575 .read = read_memmapped,
5576 },
5577
5578 {
5579 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005581 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005582 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005583 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 .total_size = 512,
5585 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005586 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005587 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005588 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005589 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005590 .block_erasers =
5591 {
5592 {
5593 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005594 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005595 },
5596 },
Sean Nelson28accc22010-03-19 18:47:06 +00005597 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005598 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005600 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005601 },
5602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005603 {
5604 .vendor = "Intel",
5605 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005606 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005607 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005608 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005609 .total_size = 1024,
5610 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005611 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005612 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005613 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005614 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005615 .block_erasers =
5616 {
5617 {
5618 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005619 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005620 },
5621 },
Sean Nelson28accc22010-03-19 18:47:06 +00005622 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005625 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005626 },
5627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005628 {
5629 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005630 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005631 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005632 .manufacture_id = MACRONIX_ID,
5633 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005634 .total_size = 64,
5635 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005636 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005637 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005638 .tested = TEST_UNTESTED,
5639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005640 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005641 .block_erasers =
5642 {
5643 {
5644 .eraseblocks = { {4 * 1024, 16} },
5645 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005646 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005647 .eraseblocks = { {64 * 1024, 1} },
5648 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005649 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005650 .eraseblocks = { {64 * 1024, 1} },
5651 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005652 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005653 .eraseblocks = { {64 * 1024, 1} },
5654 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005655 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005656 .eraseblocks = { {64 * 1024, 1} },
5657 .block_erase = spi_block_erase_c7,
5658 },
5659 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005660 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005661 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005662 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005663 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5664 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005665 },
5666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005667 {
5668 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005669 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005670 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005671 .manufacture_id = MACRONIX_ID,
5672 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005673 .total_size = 128,
5674 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005675 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005676 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005677 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005679 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005680 .block_erasers =
5681 {
5682 {
5683 .eraseblocks = { {4 * 1024, 32} },
5684 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005685 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005686 .eraseblocks = { {64 * 1024, 2} },
5687 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005688 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005689 .eraseblocks = { {128 * 1024, 1} },
5690 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005691 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005692 .eraseblocks = { {128 * 1024, 1} },
5693 .block_erase = spi_block_erase_c7,
5694 },
5695 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005696 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005697 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005698 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005699 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005700 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005701 },
5702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005703 {
5704 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005705 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005706 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005707 .manufacture_id = MACRONIX_ID,
5708 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005709 .total_size = 256,
5710 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005711 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005712 .tested = TEST_UNTESTED,
5713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005714 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005715 .block_erasers =
5716 {
5717 {
5718 .eraseblocks = { {4 * 1024, 64} },
5719 .block_erase = spi_block_erase_20,
5720 }, {
5721 .eraseblocks = { {64 * 1024, 4} },
5722 .block_erase = spi_block_erase_52,
5723 }, {
5724 .eraseblocks = { {64 * 1024, 4} },
5725 .block_erase = spi_block_erase_d8,
5726 }, {
5727 .eraseblocks = { {256 * 1024, 1} },
5728 .block_erase = spi_block_erase_60,
5729 }, {
5730 .eraseblocks = { {256 * 1024, 1} },
5731 .block_erase = spi_block_erase_c7,
5732 },
5733 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005734 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005735 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005736 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005737 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005738 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005739 },
5740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005741 {
5742 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005743 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005744 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005745 .manufacture_id = MACRONIX_ID,
5746 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005747 .total_size = 512,
5748 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005749 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005750 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005751 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005752 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = { {4 * 1024, 128} },
5757 .block_erase = spi_block_erase_20,
5758 }, {
5759 .eraseblocks = { {64 * 1024, 8} },
5760 .block_erase = spi_block_erase_52,
5761 }, {
5762 .eraseblocks = { {64 * 1024, 8} },
5763 .block_erase = spi_block_erase_d8,
5764 }, {
5765 .eraseblocks = { {512 * 1024, 1} },
5766 .block_erase = spi_block_erase_60,
5767 }, {
5768 .eraseblocks = { {512 * 1024, 1} },
5769 .block_erase = spi_block_erase_c7,
5770 },
5771 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005772 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005774 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005777 },
5778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005779 {
5780 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005781 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005782 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005783 .manufacture_id = MACRONIX_ID,
5784 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005785 .total_size = 1024,
5786 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005787 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005788 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005790 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005791 .block_erasers =
5792 {
5793 {
5794 .eraseblocks = { {4 * 1024, 256} },
5795 .block_erase = spi_block_erase_20,
5796 }, {
5797 .eraseblocks = { {64 * 1024, 16} },
5798 .block_erase = spi_block_erase_52,
5799 }, {
5800 .eraseblocks = { {64 * 1024, 16} },
5801 .block_erase = spi_block_erase_d8,
5802 }, {
5803 .eraseblocks = { {1024 * 1024, 1} },
5804 .block_erase = spi_block_erase_60,
5805 }, {
5806 .eraseblocks = { {1024 * 1024, 1} },
5807 .block_erase = spi_block_erase_c7,
5808 },
5809 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005810 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005811 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005812 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005813 .read = spi_chip_read, /* Fast read (0x0B) supported */
5814 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005815 },
5816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005817 {
5818 .vendor = "Macronix",
5819 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005820 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005821 .manufacture_id = MACRONIX_ID,
5822 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005823 .total_size = 2048,
5824 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005825 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005826 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005827 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005828 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005829 .block_erasers =
5830 {
5831 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005832 .eraseblocks = { {64 * 1024, 32} },
5833 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005834 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005835 .eraseblocks = { {64 * 1024, 32} },
5836 .block_erase = spi_block_erase_d8,
5837 }, {
5838 .eraseblocks = { {2 * 1024 * 1024, 1} },
5839 .block_erase = spi_block_erase_60,
5840 }, {
5841 .eraseblocks = { {2 * 1024 * 1024, 1} },
5842 .block_erase = spi_block_erase_c7,
5843 },
5844 },
5845 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5846 .unlock = spi_disable_blockprotect,
5847 .write = spi_chip_write_256,
5848 .read = spi_chip_read, /* Fast read (0x0B) supported */
5849 .voltage = {2700, 3600},
5850 },
5851
5852 {
5853 .vendor = "Macronix",
5854 .name = "MX25L1605A/MX25L1606E",
5855 .bustype = BUS_SPI,
5856 .manufacture_id = MACRONIX_ID,
5857 .model_id = MACRONIX_MX25L1605,
5858 .total_size = 2048,
5859 .page_size = 256,
5860 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5862 .tested = TEST_OK_PREW,
5863 .probe = probe_spi_rdid,
5864 .probe_timing = TIMING_ZERO,
5865 .block_erasers =
5866 {
5867 {
5868 .eraseblocks = { {4 * 1024, 512} },
5869 .block_erase = spi_block_erase_20,
5870 }, {
5871 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005872 .block_erase = spi_block_erase_52,
5873 }, {
5874 .eraseblocks = { {64 * 1024, 32} },
5875 .block_erase = spi_block_erase_d8,
5876 }, {
5877 .eraseblocks = { {2 * 1024 * 1024, 1} },
5878 .block_erase = spi_block_erase_60,
5879 }, {
5880 .eraseblocks = { {2 * 1024 * 1024, 1} },
5881 .block_erase = spi_block_erase_c7,
5882 },
5883 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005884 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005885 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005886 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005887 .read = spi_chip_read, /* Fast read (0x0B) supported */
5888 .voltage = {2700, 3600},
5889 },
5890
5891 {
5892 .vendor = "Macronix",
5893 .name = "MX25L1605D/MX25L1608D",
5894 .bustype = BUS_SPI,
5895 .manufacture_id = MACRONIX_ID,
5896 .model_id = MACRONIX_MX25L1605,
5897 .total_size = 2048,
5898 .page_size = 256,
5899 .feature_bits = FEATURE_WRSR_WREN,
5900 .tested = TEST_OK_PREW,
5901 .probe = probe_spi_rdid,
5902 .probe_timing = TIMING_ZERO,
5903 .block_erasers =
5904 {
5905 {
5906 .eraseblocks = { {4 * 1024, 512} },
5907 .block_erase = spi_block_erase_20,
5908 }, {
5909 .eraseblocks = { {64 * 1024, 32} },
5910 .block_erase = spi_block_erase_d8,
5911 }, {
5912 .eraseblocks = { {2 * 1024 * 1024, 1} },
5913 .block_erase = spi_block_erase_60,
5914 }, {
5915 .eraseblocks = { {2 * 1024 * 1024, 1} },
5916 .block_erase = spi_block_erase_c7,
5917 },
5918 },
5919 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5920 .unlock = spi_disable_blockprotect,
5921 .write = spi_chip_write_256,
5922 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005923 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005924 },
5925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005926 {
5927 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005928 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005929 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005930 .manufacture_id = MACRONIX_ID,
5931 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005932 .total_size = 2048,
5933 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005934 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005936 .tested = TEST_UNTESTED,
5937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 512} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {64 * 1024, 32} },
5946 .block_erase = spi_block_erase_d8,
5947 }, {
5948 .eraseblocks = { {2 * 1024 * 1024, 1} },
5949 .block_erase = spi_block_erase_60,
5950 }, {
5951 .eraseblocks = { {2 * 1024 * 1024, 1} },
5952 .block_erase = spi_block_erase_c7,
5953 }
5954 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005955 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005956 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005957 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005958 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005959 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005960 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005961
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005962 {
5963 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005964 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005965 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005966 .manufacture_id = MACRONIX_ID,
5967 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005968 .total_size = 2048,
5969 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005970 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005972 .tested = TEST_UNTESTED,
5973 .probe = probe_spi_rdid,
5974 .probe_timing = TIMING_ZERO,
5975 .block_erasers =
5976 {
5977 {
5978 .eraseblocks = { {4 * 1024, 512} },
5979 .block_erase = spi_block_erase_20,
5980 }, {
5981 .eraseblocks = { {64 * 1024, 32} },
5982 .block_erase = spi_block_erase_d8,
5983 }, {
5984 .eraseblocks = { {2 * 1024 * 1024, 1} },
5985 .block_erase = spi_block_erase_60,
5986 }, {
5987 .eraseblocks = { {2 * 1024 * 1024, 1} },
5988 .block_erase = spi_block_erase_c7,
5989 }
5990 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005991 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005992 .unlock = spi_disable_blockprotect,
5993 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005994 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005995 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005996 },
5997
5998 {
5999 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006000 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006001 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006002 .manufacture_id = MACRONIX_ID,
6003 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006004 .total_size = 4096,
6005 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006006 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006007 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006009 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006010 .block_erasers =
6011 {
6012 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006013 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006014 .block_erase = spi_block_erase_20,
6015 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006016 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006017 .block_erase = spi_block_erase_d8,
6018 }, {
6019 .eraseblocks = { {4 * 1024 * 1024, 1} },
6020 .block_erase = spi_block_erase_60,
6021 }, {
6022 .eraseblocks = { {4 * 1024 * 1024, 1} },
6023 .block_erase = spi_block_erase_c7,
6024 },
6025 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006026 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006027 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006028 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006029 .read = spi_chip_read, /* Fast read (0x0B) supported */
6030 .voltage = {2700, 3600},
6031 },
6032
6033 {
6034 .vendor = "Macronix",
6035 .name = "MX25L3205D/MX25L3208D",
6036 .bustype = BUS_SPI,
6037 .manufacture_id = MACRONIX_ID,
6038 .model_id = MACRONIX_MX25L3205,
6039 .total_size = 4096,
6040 .page_size = 256,
6041 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6043 .tested = TEST_OK_PREW,
6044 .probe = probe_spi_rdid,
6045 .probe_timing = TIMING_ZERO,
6046 .block_erasers =
6047 {
6048 {
6049 .eraseblocks = { {4 * 1024, 1024} },
6050 .block_erase = spi_block_erase_20,
6051 }, {
6052 .eraseblocks = { {64 * 1024, 64} },
6053 .block_erase = spi_block_erase_d8,
6054 }, {
6055 .eraseblocks = { {4 * 1024 * 1024, 1} },
6056 .block_erase = spi_block_erase_60,
6057 }, {
6058 .eraseblocks = { {4 * 1024 * 1024, 1} },
6059 .block_erase = spi_block_erase_c7,
6060 },
6061 },
6062 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6063 .unlock = spi_disable_blockprotect,
6064 .write = spi_chip_write_256,
6065 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6066 .voltage = {2700, 3600},
6067 },
6068
6069 {
6070 .vendor = "Macronix",
6071 .name = "MX25L3206E",
6072 .bustype = BUS_SPI,
6073 .manufacture_id = MACRONIX_ID,
6074 .model_id = MACRONIX_MX25L3205,
6075 .total_size = 4096,
6076 .page_size = 256,
6077 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6079 .tested = TEST_OK_PREW,
6080 .probe = probe_spi_rdid,
6081 .probe_timing = TIMING_ZERO,
6082 .block_erasers =
6083 {
6084 {
6085 .eraseblocks = { {4 * 1024, 1024} },
6086 .block_erase = spi_block_erase_20,
6087 }, {
6088 .eraseblocks = { {64 * 1024, 64} },
6089 .block_erase = spi_block_erase_d8,
6090 }, {
6091 .eraseblocks = { {64 * 1024, 64} },
6092 .block_erase = spi_block_erase_52,
6093 }, {
6094 .eraseblocks = { {4 * 1024 * 1024, 1} },
6095 .block_erase = spi_block_erase_60,
6096 }, {
6097 .eraseblocks = { {4 * 1024 * 1024, 1} },
6098 .block_erase = spi_block_erase_c7,
6099 },
6100 },
6101 .printlock = spi_prettyprint_status_register_default_bp3,
6102 .unlock = spi_disable_blockprotect,
6103 .write = spi_chip_write_256,
6104 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006106 },
6107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006108 {
6109 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006110 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006112 .manufacture_id = MACRONIX_ID,
6113 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006114 .total_size = 4096,
6115 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006116 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006118 .tested = TEST_UNTESTED,
6119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006120 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006121 .block_erasers =
6122 {
6123 {
6124 .eraseblocks = { {4 * 1024, 1024} },
6125 .block_erase = spi_block_erase_20,
6126 }, {
6127 .eraseblocks = { {64 * 1024, 64} },
6128 .block_erase = spi_block_erase_d8,
6129 }, {
6130 .eraseblocks = { {4 * 1024 * 1024, 1} },
6131 .block_erase = spi_block_erase_60,
6132 }, {
6133 .eraseblocks = { {4 * 1024 * 1024, 1} },
6134 .block_erase = spi_block_erase_c7,
6135 }
6136 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006137 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006139 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006141 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006142 },
6143
6144 {
6145 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006146 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006147 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006148 .manufacture_id = MACRONIX_ID,
6149 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .total_size = 8192,
6151 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006152 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006154 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006156 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006157 .block_erasers =
6158 {
6159 {
6160 .eraseblocks = { {64 * 1024, 128} },
6161 .block_erase = spi_block_erase_20,
6162 }, {
6163 .eraseblocks = { {64 * 1024, 128} },
6164 .block_erase = spi_block_erase_d8,
6165 }, {
6166 .eraseblocks = { {8 * 1024 * 1024, 1} },
6167 .block_erase = spi_block_erase_60,
6168 }, {
6169 .eraseblocks = { {8 * 1024 * 1024, 1} },
6170 .block_erase = spi_block_erase_c7,
6171 }
6172 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006173 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006174 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006178 },
6179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006180 {
6181 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006182 .name = "MX25L6406E/MX25L6436E",
6183 .bustype = BUS_SPI,
6184 .manufacture_id = MACRONIX_ID,
6185 .model_id = MACRONIX_MX25L6405,
6186 .total_size = 8192,
6187 .page_size = 256,
6188 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6189 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6190 .tested = TEST_OK_PREW,
6191 .probe = probe_spi_rdid,
6192 .probe_timing = TIMING_ZERO,
6193 .block_erasers =
6194 {
6195 {
6196 .eraseblocks = { {4 * 1024, 2048} },
6197 .block_erase = spi_block_erase_20,
6198 }, {
6199 .eraseblocks = { {64 * 1024, 128} },
6200 .block_erase = spi_block_erase_d8,
6201 }, {
6202 .eraseblocks = { {8 * 1024 * 1024, 1} },
6203 .block_erase = spi_block_erase_60,
6204 }, {
6205 .eraseblocks = { {8 * 1024 * 1024, 1} },
6206 .block_erase = spi_block_erase_c7,
6207 }
6208 },
6209 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6210 .unlock = spi_disable_blockprotect,
6211 .write = spi_chip_write_256,
6212 .read = spi_chip_read,
6213 .voltage = {2700, 3600},
6214 },
6215
6216 {
6217 .vendor = "Macronix",
6218 .name = "MX25L6445E",
6219 .bustype = BUS_SPI,
6220 .manufacture_id = MACRONIX_ID,
6221 .model_id = MACRONIX_MX25L6405,
6222 .total_size = 8192,
6223 .page_size = 256,
6224 /* supports SFDP */
6225 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6227 .tested = TEST_OK_PREW,
6228 .probe = probe_spi_rdid,
6229 .probe_timing = TIMING_ZERO,
6230 .block_erasers =
6231 {
6232 {
6233 .eraseblocks = { {4 * 1024, 2048} },
6234 .block_erase = spi_block_erase_20,
6235 }, {
6236 .eraseblocks = { {32 * 1024, 256} },
6237 .block_erase = spi_block_erase_52,
6238 }, {
6239 .eraseblocks = { {64 * 1024, 128} },
6240 .block_erase = spi_block_erase_d8,
6241 }, {
6242 .eraseblocks = { {8 * 1024 * 1024, 1} },
6243 .block_erase = spi_block_erase_60,
6244 }, {
6245 .eraseblocks = { {8 * 1024 * 1024, 1} },
6246 .block_erase = spi_block_erase_c7,
6247 }
6248 },
6249 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6250 .unlock = spi_disable_blockprotect,
6251 .write = spi_chip_write_256,
6252 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6253 .voltage = {2700, 3600},
6254 },
6255
6256 {
6257 .vendor = "Macronix",
6258 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006259 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006260 .manufacture_id = MACRONIX_ID,
6261 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006262 .total_size = 16384,
6263 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006264 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006266 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006267 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006268 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006269 .block_erasers =
6270 {
6271 {
6272 .eraseblocks = { {4 * 1024, 4096} },
6273 .block_erase = spi_block_erase_20,
6274 }, {
6275 .eraseblocks = { {64 * 1024, 256} },
6276 .block_erase = spi_block_erase_d8,
6277 }, {
6278 .eraseblocks = { {16 * 1024 * 1024, 1} },
6279 .block_erase = spi_block_erase_60,
6280 }, {
6281 .eraseblocks = { {16 * 1024 * 1024, 1} },
6282 .block_erase = spi_block_erase_c7,
6283 }
6284 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006285 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006286 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006287 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006288 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006289 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006290 },
6291
6292 {
6293 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006294 .name = "MX25U1635E",
6295 .bustype = BUS_SPI,
6296 .manufacture_id = MACRONIX_ID,
6297 .model_id = MACRONIX_MX25U1635E,
6298 .total_size = 2048,
6299 .page_size = 256,
6300 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6301 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6303 .tested = TEST_UNTESTED,
6304 .probe = probe_spi_rdid,
6305 .probe_timing = TIMING_ZERO,
6306 .block_erasers =
6307 {
6308 {
6309 .eraseblocks = { {4 * 1024, 512} },
6310 .block_erase = spi_block_erase_20,
6311 }, {
6312 .eraseblocks = { {32 * 1024, 64} },
6313 .block_erase = spi_block_erase_52,
6314 }, {
6315 .eraseblocks = { {64 * 1024, 32} },
6316 .block_erase = spi_block_erase_d8,
6317 }, {
6318 .eraseblocks = { {2 * 1024 * 1024, 1} },
6319 .block_erase = spi_block_erase_60,
6320 }, {
6321 .eraseblocks = { {2 * 1024 * 1024, 1} },
6322 .block_erase = spi_block_erase_c7,
6323 }
6324 },
6325 /* TODO: security register */
6326 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6327 .unlock = spi_disable_blockprotect,
6328 .write = spi_chip_write_256,
6329 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6330 .voltage = {1650, 2000},
6331 },
6332
6333 {
6334 .vendor = "Macronix",
6335 .name = "MX25U3235E/F",
6336 .bustype = BUS_SPI,
6337 .manufacture_id = MACRONIX_ID,
6338 .model_id = MACRONIX_MX25U3235E,
6339 .total_size = 4096,
6340 .page_size = 256,
6341 /* F model supports SFDP */
6342 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6343 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6345 .tested = TEST_OK_PREW,
6346 .probe = probe_spi_rdid,
6347 .probe_timing = TIMING_ZERO,
6348 .block_erasers =
6349 {
6350 {
6351 .eraseblocks = { {4 * 1024, 1024} },
6352 .block_erase = spi_block_erase_20,
6353 }, {
6354 .eraseblocks = { {32 * 1024, 128} },
6355 .block_erase = spi_block_erase_52,
6356 }, {
6357 .eraseblocks = { {64 * 1024, 64} },
6358 .block_erase = spi_block_erase_d8,
6359 }, {
6360 .eraseblocks = { {4 * 1024 * 1024, 1} },
6361 .block_erase = spi_block_erase_60,
6362 }, {
6363 .eraseblocks = { {4 * 1024 * 1024, 1} },
6364 .block_erase = spi_block_erase_c7,
6365 }
6366 },
6367 /* TODO: security register */
6368 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6369 .unlock = spi_disable_blockprotect,
6370 .write = spi_chip_write_256,
6371 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6372 .voltage = {1650, 2000},
6373 },
6374
6375 {
6376 .vendor = "Macronix",
6377 .name = "MX25U6435E/F",
6378 .bustype = BUS_SPI,
6379 .manufacture_id = MACRONIX_ID,
6380 .model_id = MACRONIX_MX25U6435E,
6381 .total_size = 8192,
6382 .page_size = 256,
6383 /* F model supports SFDP */
6384 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6385 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6387 .tested = TEST_UNTESTED,
6388 .probe = probe_spi_rdid,
6389 .probe_timing = TIMING_ZERO,
6390 .block_erasers =
6391 {
6392 {
6393 .eraseblocks = { {4 * 1024, 2048} },
6394 .block_erase = spi_block_erase_20,
6395 }, {
6396 .eraseblocks = { {32 * 1024, 256} },
6397 .block_erase = spi_block_erase_52,
6398 }, {
6399 .eraseblocks = { {64 * 1024, 128} },
6400 .block_erase = spi_block_erase_d8,
6401 }, {
6402 .eraseblocks = { {8 * 1024 * 1024, 1} },
6403 .block_erase = spi_block_erase_60,
6404 }, {
6405 .eraseblocks = { {8 * 1024 * 1024, 1} },
6406 .block_erase = spi_block_erase_c7,
6407 }
6408 },
6409 /* TODO: security register */
6410 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6411 .unlock = spi_disable_blockprotect,
6412 .write = spi_chip_write_256,
6413 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6414 .voltage = {1650, 2000},
6415 },
6416
6417 {
6418 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006419 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006420 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006421 .manufacture_id = MACRONIX_ID,
6422 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006423 .total_size = 128,
6424 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006425 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6426 .tested = TEST_UNTESTED,
6427 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006428 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006429 .block_erasers =
6430 {
6431 {
6432 .eraseblocks = {
6433 {8 * 1024, 1},
6434 {4 * 1024, 2},
6435 {8 * 1024, 2},
6436 {32 * 1024, 1},
6437 {64 * 1024, 1},
6438 },
Sean Nelson35727f72010-01-28 23:55:12 +00006439 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006440 }, {
6441 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006442 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006443 }
6444 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006445 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006447 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006448 },
6449
6450 {
6451 .vendor = "Macronix",
6452 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006453 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006454 .manufacture_id = MACRONIX_ID,
6455 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006456 .total_size = 128,
6457 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006458 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006459 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006460 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006461 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006462 .block_erasers =
6463 {
6464 {
6465 .eraseblocks = {
6466 {64 * 1024, 1},
6467 {32 * 1024, 1},
6468 {8 * 1024, 2},
6469 {4 * 1024, 2},
6470 {8 * 1024, 1},
6471 },
Sean Nelson35727f72010-01-28 23:55:12 +00006472 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006473 }, {
6474 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006475 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006476 }
6477 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006478 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006479 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006480 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006481 },
6482
6483 {
6484 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006485 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006486 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006487 .manufacture_id = MACRONIX_ID,
6488 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 .total_size = 256,
6490 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006491 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006492 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006493 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006494 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006495 .block_erasers =
6496 {
6497 {
6498 .eraseblocks = {
6499 {16 * 1024, 1},
6500 {8 * 1024, 2},
6501 {32 * 1024, 1},
6502 {64 * 1024, 3},
6503 },
Sean Nelson35727f72010-01-28 23:55:12 +00006504 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006505 }, {
6506 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006507 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006508 },
6509 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006512 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006513 },
6514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006515 {
6516 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006517 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006518 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006519 .manufacture_id = MACRONIX_ID,
6520 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006521 .total_size = 256,
6522 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006524 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006525 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006526 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006527 .block_erasers =
6528 {
6529 {
6530 .eraseblocks = {
6531 {64 * 1024, 3},
6532 {32 * 1024, 1},
6533 {8 * 1024, 2},
6534 {16 * 1024, 1},
6535 },
Sean Nelson35727f72010-01-28 23:55:12 +00006536 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006537 }, {
6538 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006539 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006540 },
6541 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006542 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006544 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006545 },
6546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006547 {
6548 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006549 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006550 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006551 .manufacture_id = MACRONIX_ID,
6552 .model_id = MACRONIX_MX29F040,
6553 .total_size = 512,
6554 .page_size = 64 * 1024,
6555 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6556 .tested = TEST_UNTESTED,
6557 .probe = probe_jedec,
6558 .probe_timing = TIMING_ZERO,
6559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { {64 * 1024, 8} },
6563 .block_erase = erase_sector_jedec,
6564 }, {
6565 .eraseblocks = { {512 * 1024, 1} },
6566 .block_erase = erase_chip_block_jedec,
6567 },
6568 },
6569 .write = write_jedec_1,
6570 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006571 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006572 },
6573
6574 {
6575 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006576 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006577 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006578 .manufacture_id = MACRONIX_ID,
6579 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006580 .total_size = 512,
6581 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006582 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6583 .tested = TEST_UNTESTED,
6584 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006585 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006586 .block_erasers =
6587 {
6588 {
6589 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006590 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006591 }, {
6592 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006593 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006594 },
6595 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006596 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006598 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006599 },
6600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006601 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006602 .vendor = "MoselVitelic",
6603 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006604 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006605 .manufacture_id = SYNCMOS_MVC_ID,
6606 .model_id = MVC_V29C51000B,
6607 .total_size = 64,
6608 .page_size = 512,
6609 .feature_bits = FEATURE_EITHER_RESET,
6610 .tested = TEST_UNTESTED,
6611 .probe = probe_jedec,
6612 .probe_timing = TIMING_ZERO,
6613 .block_erasers =
6614 {
6615 {
6616 .eraseblocks = { {512, 128} },
6617 .block_erase = erase_sector_jedec,
6618 }, {
6619 .eraseblocks = { {64 * 1024, 1} },
6620 .block_erase = erase_chip_block_jedec,
6621 },
6622 },
6623 .write = write_jedec_1,
6624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006625 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006626 },
6627
6628 {
6629 .vendor = "MoselVitelic",
6630 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006631 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006632 .manufacture_id = SYNCMOS_MVC_ID,
6633 .model_id = MVC_V29C51000T,
6634 .total_size = 64,
6635 .page_size = 512,
6636 .feature_bits = FEATURE_EITHER_RESET,
6637 .tested = TEST_UNTESTED,
6638 .probe = probe_jedec,
6639 .probe_timing = TIMING_ZERO,
6640 .block_erasers =
6641 {
6642 {
6643 .eraseblocks = { {512, 128} },
6644 .block_erase = erase_sector_jedec,
6645 }, {
6646 .eraseblocks = { {64 * 1024, 1} },
6647 .block_erase = erase_chip_block_jedec,
6648 },
6649 },
6650 .write = write_jedec_1,
6651 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006652 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006653 },
6654
6655 {
6656 .vendor = "MoselVitelic",
6657 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006658 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006659 .manufacture_id = SYNCMOS_MVC_ID,
6660 .model_id = MVC_V29C51400B,
6661 .total_size = 512,
6662 .page_size = 1024,
6663 .feature_bits = FEATURE_EITHER_RESET,
6664 .tested = TEST_UNTESTED,
6665 .probe = probe_jedec,
6666 .probe_timing = TIMING_ZERO,
6667 .block_erasers =
6668 {
6669 {
6670 .eraseblocks = { {1024, 512} },
6671 .block_erase = erase_sector_jedec,
6672 }, {
6673 .eraseblocks = { {512 * 1024, 1} },
6674 .block_erase = erase_chip_block_jedec,
6675 },
6676 },
6677 .write = write_jedec_1,
6678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006679 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006680 },
6681
6682 {
6683 .vendor = "MoselVitelic",
6684 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006685 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006686 .manufacture_id = SYNCMOS_MVC_ID,
6687 .model_id = MVC_V29C51400T,
6688 .total_size = 512,
6689 .page_size = 1024,
6690 .feature_bits = FEATURE_EITHER_RESET,
6691 .tested = TEST_UNTESTED,
6692 .probe = probe_jedec,
6693 .probe_timing = TIMING_ZERO,
6694 .block_erasers =
6695 {
6696 {
6697 .eraseblocks = { {1024, 512} },
6698 .block_erase = erase_sector_jedec,
6699 }, {
6700 .eraseblocks = { {512 * 1024, 1} },
6701 .block_erase = erase_chip_block_jedec,
6702 },
6703 },
6704 .write = write_jedec_1,
6705 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006706 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006707 },
6708
6709 {
6710 .vendor = "MoselVitelic",
6711 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006712 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006713 .manufacture_id = SYNCMOS_MVC_ID,
6714 .model_id = MVC_V29LC51000,
6715 .total_size = 64,
6716 .page_size = 512,
6717 .feature_bits = FEATURE_EITHER_RESET,
6718 .tested = TEST_UNTESTED,
6719 .probe = probe_jedec,
6720 .probe_timing = TIMING_ZERO,
6721 .block_erasers =
6722 {
6723 {
6724 .eraseblocks = { {512, 128} },
6725 .block_erase = erase_sector_jedec,
6726 }, {
6727 .eraseblocks = { {64 * 1024, 1} },
6728 .block_erase = erase_chip_block_jedec,
6729 },
6730 },
6731 .write = write_jedec_1,
6732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006733 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006734 },
6735
6736 {
6737 .vendor = "MoselVitelic",
6738 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006739 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006740 .manufacture_id = SYNCMOS_MVC_ID,
6741 .model_id = MVC_V29LC51001,
6742 .total_size = 128,
6743 .page_size = 512,
6744 .feature_bits = FEATURE_EITHER_RESET,
6745 .tested = TEST_UNTESTED,
6746 .probe = probe_jedec,
6747 .probe_timing = TIMING_ZERO,
6748 .block_erasers =
6749 {
6750 {
6751 .eraseblocks = { {512, 256} },
6752 .block_erase = erase_sector_jedec,
6753 }, {
6754 .eraseblocks = { {128 * 1024, 1} },
6755 .block_erase = erase_chip_block_jedec,
6756 },
6757 },
6758 .write = write_jedec_1,
6759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006760 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006761 },
6762
6763 {
6764 .vendor = "MoselVitelic",
6765 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006766 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006767 .manufacture_id = SYNCMOS_MVC_ID,
6768 .model_id = MVC_V29LC51002,
6769 .total_size = 256,
6770 .page_size = 512,
6771 .feature_bits = FEATURE_EITHER_RESET,
6772 .tested = TEST_UNTESTED,
6773 .probe = probe_jedec,
6774 .probe_timing = TIMING_ZERO,
6775 .block_erasers =
6776 {
6777 {
6778 .eraseblocks = { {512, 512} },
6779 .block_erase = erase_sector_jedec,
6780 }, {
6781 .eraseblocks = { {256 * 1024, 1} },
6782 .block_erase = erase_chip_block_jedec,
6783 },
6784 },
6785 .write = write_jedec_1,
6786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006787 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006788 },
6789
6790 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00006791 .vendor = "Nantronics",
6792 .name = "N25S10",
6793 .bustype = BUS_SPI,
6794 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6795 .model_id = NANTRONICS_N25S10,
6796 .total_size = 128,
6797 .page_size = 256,
6798 .feature_bits = FEATURE_WRSR_WREN,
6799 .tested = TEST_UNTESTED,
6800 .probe = probe_spi_rdid,
6801 .probe_timing = TIMING_ZERO,
6802 .block_erasers =
6803 {
6804 {
6805 .eraseblocks = { {4 * 1024, 32} },
6806 .block_erase = spi_block_erase_20,
6807 }, {
6808 .eraseblocks = { {4 * 1024, 32} },
6809 .block_erase = spi_block_erase_d7,
6810 }, {
6811 .eraseblocks = { {32 * 1024, 4} },
6812 .block_erase = spi_block_erase_52,
6813 }, {
6814 .eraseblocks = { {64 * 1024, 2} },
6815 .block_erase = spi_block_erase_d8,
6816 }, {
6817 .eraseblocks = { {128 * 1024, 1} },
6818 .block_erase = spi_block_erase_60,
6819 }, {
6820 .eraseblocks = { {128 * 1024, 1} },
6821 .block_erase = spi_block_erase_c7,
6822 }
6823 },
6824 .printlock = spi_prettyprint_status_register_default_bp3,
6825 .unlock = spi_disable_blockprotect_bp3_srwd,
6826 .write = spi_chip_write_256,
6827 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6828 .voltage = {2700, 3600},
6829 },
6830
6831 {
6832 .vendor = "Nantronics",
6833 .name = "N25S20",
6834 .bustype = BUS_SPI,
6835 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6836 .model_id = NANTRONICS_N25S20,
6837 .total_size = 256,
6838 .page_size = 256,
6839 .feature_bits = FEATURE_WRSR_WREN,
6840 .tested = TEST_UNTESTED,
6841 .probe = probe_spi_rdid,
6842 .probe_timing = TIMING_ZERO,
6843 .block_erasers =
6844 {
6845 {
6846 .eraseblocks = { {4 * 1024, 64} },
6847 .block_erase = spi_block_erase_20,
6848 }, {
6849 .eraseblocks = { {4 * 1024, 64} },
6850 .block_erase = spi_block_erase_d7,
6851 }, {
6852 .eraseblocks = { {32 * 1024, 8} },
6853 .block_erase = spi_block_erase_52,
6854 }, {
6855 .eraseblocks = { {64 * 1024, 4} },
6856 .block_erase = spi_block_erase_d8,
6857 }, {
6858 .eraseblocks = { {256 * 1024, 1} },
6859 .block_erase = spi_block_erase_60,
6860 }, {
6861 .eraseblocks = { {256 * 1024, 1} },
6862 .block_erase = spi_block_erase_c7,
6863 }
6864 },
6865 .printlock = spi_prettyprint_status_register_default_bp3,
6866 .unlock = spi_disable_blockprotect_bp3_srwd,
6867 .write = spi_chip_write_256,
6868 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6869 .voltage = {2700, 3600},
6870 },
6871
6872 {
6873 .vendor = "Nantronics",
6874 .name = "N25S40",
6875 .bustype = BUS_SPI,
6876 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6877 .model_id = NANTRONICS_N25S40,
6878 .total_size = 512,
6879 .page_size = 256,
6880 .feature_bits = FEATURE_WRSR_WREN,
6881 .tested = TEST_UNTESTED,
6882 .probe = probe_spi_rdid,
6883 .probe_timing = TIMING_ZERO,
6884 .block_erasers =
6885 {
6886 {
6887 .eraseblocks = { {4 * 1024, 128} },
6888 .block_erase = spi_block_erase_20,
6889 }, {
6890 .eraseblocks = { {4 * 1024, 128} },
6891 .block_erase = spi_block_erase_d7,
6892 }, {
6893 .eraseblocks = { {32 * 1024, 16} },
6894 .block_erase = spi_block_erase_52,
6895 }, {
6896 .eraseblocks = { {64 * 1024, 8} },
6897 .block_erase = spi_block_erase_d8,
6898 }, {
6899 .eraseblocks = { {512 * 1024, 1} },
6900 .block_erase = spi_block_erase_60,
6901 }, {
6902 .eraseblocks = { {512 * 1024, 1} },
6903 .block_erase = spi_block_erase_c7,
6904 }
6905 },
6906 .printlock = spi_prettyprint_status_register_default_bp3,
6907 .unlock = spi_disable_blockprotect_bp3_srwd,
6908 .write = spi_chip_write_256,
6909 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6910 .voltage = {2700, 3600},
6911 },
6912
6913 {
6914 .vendor = "Nantronics",
6915 .name = "N25S80",
6916 .bustype = BUS_SPI,
6917 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6918 .model_id = NANTRONICS_N25S80,
6919 .total_size = 1024,
6920 .page_size = 256,
6921 .feature_bits = FEATURE_WRSR_WREN,
6922 .tested = TEST_UNTESTED,
6923 .probe = probe_spi_rdid,
6924 .probe_timing = TIMING_ZERO,
6925 .block_erasers =
6926 {
6927 {
6928 .eraseblocks = { {4 * 1024, 256} },
6929 .block_erase = spi_block_erase_20,
6930 }, {
6931 .eraseblocks = { {32 * 1024, 32} },
6932 .block_erase = spi_block_erase_52,
6933 }, {
6934 .eraseblocks = { {64 * 1024, 16} },
6935 .block_erase = spi_block_erase_d8,
6936 }, {
6937 .eraseblocks = { {1024 * 1024, 1} },
6938 .block_erase = spi_block_erase_60,
6939 }, {
6940 .eraseblocks = { {1024 * 1024, 1} },
6941 .block_erase = spi_block_erase_c7,
6942 }
6943 },
6944 .printlock = spi_prettyprint_status_register_default_bp3,
6945 .unlock = spi_disable_blockprotect_bp3_srwd,
6946 .write = spi_chip_write_256,
6947 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6948 .voltage = {2700, 3600},
6949 },
6950
6951 {
6952 .vendor = "Nantronics",
6953 .name = "N25S16",
6954 .bustype = BUS_SPI,
6955 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6956 .model_id = NANTRONICS_N25S16,
6957 .total_size = 2048,
6958 .page_size = 256,
6959 .feature_bits = FEATURE_WRSR_WREN,
6960 .tested = TEST_UNTESTED,
6961 .probe = probe_spi_rdid,
6962 .probe_timing = TIMING_ZERO,
6963 .block_erasers =
6964 {
6965 {
6966 .eraseblocks = { {4 * 1024, 512} },
6967 .block_erase = spi_block_erase_20,
6968 }, {
6969 .eraseblocks = { {64 * 1024, 32} },
6970 .block_erase = spi_block_erase_d8,
6971 }, {
6972 .eraseblocks = { {2048 * 1024, 1} },
6973 .block_erase = spi_block_erase_60,
6974 }, {
6975 .eraseblocks = { {2048 * 1024, 1} },
6976 .block_erase = spi_block_erase_c7,
6977 }
6978 },
6979 .printlock = spi_prettyprint_status_register_default_bp3,
6980 .unlock = spi_disable_blockprotect_bp3_srwd,
6981 .write = spi_chip_write_256,
6982 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6983 .voltage = {2700, 3600},
6984 },
6985
6986 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006987 .vendor = "Numonyx",
6988 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006989 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006990 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006991 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006992 .total_size = 128,
6993 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006994 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006995 .tested = TEST_UNTESTED,
6996 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006997 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006998 .block_erasers =
6999 {
7000 {
7001 .eraseblocks = { {4 * 1024, 32} },
7002 .block_erase = spi_block_erase_20,
7003 }, {
7004 .eraseblocks = { {64 * 1024, 2} },
7005 .block_erase = spi_block_erase_d8,
7006 }, {
7007 .eraseblocks = { {128 * 1024, 1} },
7008 .block_erase = spi_block_erase_c7,
7009 }
7010 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007012 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007013 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007014 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007015 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007016 },
7017
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007018 {
7019 .vendor = "Numonyx",
7020 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007022 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007023 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007024 .total_size = 256,
7025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007026 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007027 .tested = TEST_UNTESTED,
7028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007029 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007030 .block_erasers =
7031 {
7032 {
7033 .eraseblocks = { {4 * 1024, 64} },
7034 .block_erase = spi_block_erase_20,
7035 }, {
7036 .eraseblocks = { {64 * 1024, 4} },
7037 .block_erase = spi_block_erase_d8,
7038 }, {
7039 .eraseblocks = { {256 * 1024, 1} },
7040 .block_erase = spi_block_erase_c7,
7041 }
7042 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007044 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007045 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007046 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007047 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007048 },
7049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007050 {
7051 .vendor = "Numonyx",
7052 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007053 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007054 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007055 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00007056 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007057 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007058 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007059 .tested = TEST_UNTESTED,
7060 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007061 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007062 .block_erasers =
7063 {
7064 {
7065 .eraseblocks = { {4 * 1024, 128} },
7066 .block_erase = spi_block_erase_20,
7067 }, {
7068 .eraseblocks = { {64 * 1024, 8} },
7069 .block_erase = spi_block_erase_d8,
7070 }, {
7071 .eraseblocks = { {512 * 1024, 1} },
7072 .block_erase = spi_block_erase_c7,
7073 }
7074 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007075 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007076 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007077 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007079 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007080 },
7081
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007082 {
7083 .vendor = "Numonyx",
7084 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007085 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007086 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007087 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007088 .total_size = 1024,
7089 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007090 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007091 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007093 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007094 .block_erasers =
7095 {
7096 {
7097 .eraseblocks = { {4 * 1024, 256} },
7098 .block_erase = spi_block_erase_20,
7099 }, {
7100 .eraseblocks = { {64 * 1024, 16} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {1024 * 1024, 1} },
7104 .block_erase = spi_block_erase_c7,
7105 }
7106 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007107 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007108 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007109 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007110 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007111 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007112 },
7113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 {
7115 .vendor = "Numonyx",
7116 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007117 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007118 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007119 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007120 .total_size = 2048,
7121 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007122 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007123 .tested = TEST_UNTESTED,
7124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007125 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007126 .block_erasers =
7127 {
7128 {
7129 .eraseblocks = { {4 * 1024, 512} },
7130 .block_erase = spi_block_erase_20,
7131 }, {
7132 .eraseblocks = { {64 * 1024, 32} },
7133 .block_erase = spi_block_erase_d8,
7134 }, {
7135 .eraseblocks = { {2 * 1024 * 1024, 1} },
7136 .block_erase = spi_block_erase_c7,
7137 }
7138 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007139 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007140 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007141 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007142 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007143 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007144 },
7145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007146 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007147 .vendor = "Numonyx",
Nikolay Nikolaev01dac172013-06-28 21:29:03 +00007148 .name = "M45PE10",
7149 .bustype = BUS_SPI,
7150 .manufacture_id = ST_ID,
7151 .model_id = ST_M45PE10,
7152 .total_size = 128,
7153 .page_size = 256,
7154 .tested = TEST_UNTESTED,
7155 .probe = probe_spi_rdid,
7156 .probe_timing = TIMING_ZERO,
7157 .block_erasers = {
7158 {
7159 .eraseblocks = { {256, 512} },
7160 .block_erase = spi_block_erase_db,
7161 }, {
7162 .eraseblocks = { {64 * 1024, 2} },
7163 .block_erase = spi_block_erase_d8,
7164 }
7165 },
7166 .printlock = spi_prettyprint_status_register_default_welwip,
7167 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7168 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7169 .read = spi_chip_read, /* Fast read (0x0B) supported */
7170 .voltage = {2700, 3600},
7171 },
7172
7173 {
7174 .vendor = "Numonyx",
7175 .name = "M45PE20",
7176 .bustype = BUS_SPI,
7177 .manufacture_id = ST_ID,
7178 .model_id = ST_M45PE20,
7179 .total_size = 256,
7180 .page_size = 256,
7181 .tested = TEST_UNTESTED,
7182 .probe = probe_spi_rdid,
7183 .probe_timing = TIMING_ZERO,
7184 .block_erasers = {
7185 {
7186 .eraseblocks = { {256, 1024} },
7187 .block_erase = spi_block_erase_db,
7188 }, {
7189 .eraseblocks = { {64 * 1024, 4} },
7190 .block_erase = spi_block_erase_d8,
7191 }
7192 },
7193 .printlock = spi_prettyprint_status_register_default_welwip,
7194 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7195 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7196 .read = spi_chip_read, /* Fast read (0x0B) supported */
7197 .voltage = {2700, 3600},
7198 },
7199
7200 {
7201 .vendor = "Numonyx",
7202 .name = "M45PE40",
7203 .bustype = BUS_SPI,
7204 .manufacture_id = ST_ID,
7205 .model_id = ST_M45PE40,
7206 .total_size = 512,
7207 .page_size = 256,
7208 .tested = TEST_UNTESTED,
7209 .probe = probe_spi_rdid,
7210 .probe_timing = TIMING_ZERO,
7211 .block_erasers = {
7212 {
7213 .eraseblocks = { {256, 2048} },
7214 .block_erase = spi_block_erase_db,
7215 }, {
7216 .eraseblocks = { {64 * 1024, 8} },
7217 .block_erase = spi_block_erase_d8,
7218 }
7219 },
7220 .printlock = spi_prettyprint_status_register_default_welwip,
7221 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7222 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7223 .read = spi_chip_read, /* Fast read (0x0B) supported */
7224 .voltage = {2700, 3600},
7225 },
7226
7227 {
7228 .vendor = "Numonyx",
7229 .name = "M45PE80",
7230 .bustype = BUS_SPI,
7231 .manufacture_id = ST_ID,
7232 .model_id = ST_M45PE80,
7233 .total_size = 1024,
7234 .page_size = 256,
7235 .tested = TEST_UNTESTED,
7236 .probe = probe_spi_rdid,
7237 .probe_timing = TIMING_ZERO,
7238 .block_erasers = {
7239 {
7240 .eraseblocks = { {256, 4096} },
7241 .block_erase = spi_block_erase_db,
7242 }, {
7243 .eraseblocks = { {64 * 1024, 16} },
7244 .block_erase = spi_block_erase_d8,
7245 }
7246 },
7247 .printlock = spi_prettyprint_status_register_default_welwip,
7248 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7249 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7250 .read = spi_chip_read, /* Fast read (0x0B) supported */
7251 .voltage = {2700, 3600},
7252 },
7253
7254 {
7255 .vendor = "Numonyx",
7256 .name = "M45PE16",
7257 .bustype = BUS_SPI,
7258 .manufacture_id = ST_ID,
7259 .model_id = ST_M45PE16,
7260 .total_size = 2048,
7261 .page_size = 256,
7262 .tested = TEST_UNTESTED,
7263 .probe = probe_spi_rdid,
7264 .probe_timing = TIMING_ZERO,
7265 .block_erasers = {
7266 {
7267 .eraseblocks = { {256, 8192} },
7268 .block_erase = spi_block_erase_db,
7269 }, {
7270 .eraseblocks = { {64 * 1024, 32} },
7271 .block_erase = spi_block_erase_d8,
7272 }
7273 },
7274 .printlock = spi_prettyprint_status_register_default_welwip,
7275 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7276 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7277 .read = spi_chip_read, /* Fast read (0x0B) supported */
7278 .voltage = {2700, 3600},
7279 },
7280
7281 {
7282 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00007283 .name = "N25Q016",
7284 .bustype = BUS_SPI,
7285 .manufacture_id = ST_ID,
7286 .model_id = ST_N25Q016__1E,
7287 .total_size = 2048,
7288 .page_size = 256,
7289 /* supports SFDP */
7290 /* OTP: 64B total; read 0x4B, write 0x42 */
7291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7292 .tested = TEST_UNTESTED,
7293 .probe = probe_spi_rdid,
7294 .probe_timing = TIMING_ZERO,
7295 .block_erasers =
7296 {
7297 {
7298 .eraseblocks = { {4 * 1024, 512} },
7299 .block_erase = spi_block_erase_20,
7300 }, {
7301 .eraseblocks = { {32 * 1024, 64} },
7302 .block_erase = spi_block_erase_52,
7303 }, {
7304 .eraseblocks = { {64 * 1024, 32} },
7305 .block_erase = spi_block_erase_d8,
7306 }, {
7307 .eraseblocks = { {2 * 1024 * 1024, 1} },
7308 .block_erase = spi_block_erase_c7,
7309 }
7310 },
7311 .unlock = spi_disable_blockprotect,
7312 .write = spi_chip_write_256,
7313 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7314 .voltage = {1700, 2000},
7315 },
7316
7317 {
7318 .vendor = "Numonyx",
7319 .name = "N25Q032..1E",
7320 .bustype = BUS_SPI,
7321 .manufacture_id = ST_ID,
7322 .model_id = ST_N25Q032__1E,
7323 .total_size = 4096,
7324 .page_size = 256,
7325 /* supports SFDP */
7326 /* OTP: 64B total; read 0x4B, write 0x42 */
7327 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7328 .tested = TEST_UNTESTED,
7329 .probe = probe_spi_rdid,
7330 .probe_timing = TIMING_ZERO,
7331 .block_erasers =
7332 {
7333 {
7334 .eraseblocks = { {4 * 1024, 1024} },
7335 .block_erase = spi_block_erase_20,
7336 }, {
7337 .eraseblocks = { {64 * 1024, 64} },
7338 .block_erase = spi_block_erase_d8,
7339 }, {
7340 .eraseblocks = { {4 * 1024 * 1024, 1} },
7341 .block_erase = spi_block_erase_c7,
7342 }
7343 },
7344 .unlock = spi_disable_blockprotect,
7345 .write = spi_chip_write_256,
7346 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7347 .voltage = {1700, 2000},
7348 },
7349
7350 {
7351 .vendor = "Numonyx",
7352 .name = "N25Q032..3E",
7353 .bustype = BUS_SPI,
7354 .manufacture_id = ST_ID,
7355 .model_id = ST_N25Q032__3E,
7356 .total_size = 4096,
7357 .page_size = 256,
7358 /* supports SFDP */
7359 /* OTP: 64B total; read 0x4B, write 0x42 */
7360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7361 .tested = TEST_UNTESTED,
7362 .probe = probe_spi_rdid,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {4 * 1024, 1024} },
7368 .block_erase = spi_block_erase_20,
7369 }, {
7370 .eraseblocks = { {64 * 1024, 64} },
7371 .block_erase = spi_block_erase_d8,
7372 }, {
7373 .eraseblocks = { {4 * 1024 * 1024, 1} },
7374 .block_erase = spi_block_erase_c7,
7375 }
7376 },
7377 .unlock = spi_disable_blockprotect,
7378 .write = spi_chip_write_256,
7379 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7380 .voltage = {2700, 3600},
7381 },
7382
7383 {
7384 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00007385 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007386 .bustype = BUS_SPI,
7387 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00007388 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007389 .total_size = 8192,
7390 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00007391 /* supports SFDP */
7392 /* OTP: 64B total; read 0x4B, write 0x42 */
7393 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7394 .tested = TEST_UNTESTED,
7395 .probe = probe_spi_rdid,
7396 .probe_timing = TIMING_ZERO,
7397 .block_erasers =
7398 {
7399 {
7400 .eraseblocks = { {4 * 1024, 2048 } },
7401 .block_erase = spi_block_erase_20,
7402 }, {
7403 .eraseblocks = { {64 * 1024, 128} },
7404 .block_erase = spi_block_erase_d8,
7405 }, {
7406 .eraseblocks = { {8 * 1024 * 1024, 1} },
7407 .block_erase = spi_block_erase_c7,
7408 }
7409 },
7410 .unlock = spi_disable_blockprotect,
7411 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007412 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007413 .voltage = {1700, 2000},
7414 },
7415
7416 {
7417 .vendor = "Numonyx",
7418 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7419 .bustype = BUS_SPI,
7420 .manufacture_id = ST_ID,
7421 .model_id = ST_N25Q064__3E,
7422 .total_size = 8192,
7423 .page_size = 256,
7424 /* supports SFDP */
7425 /* OTP: 64B total; read 0x4B, write 0x42 */
7426 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007427 .tested = TEST_OK_PREW,
7428 .probe = probe_spi_rdid,
7429 .probe_timing = TIMING_ZERO,
7430 .block_erasers =
7431 {
7432 {
7433 .eraseblocks = { {4 * 1024, 2048 } },
7434 .block_erase = spi_block_erase_20,
7435 }, {
7436 .eraseblocks = { {64 * 1024, 128} },
7437 .block_erase = spi_block_erase_d8,
7438 }, {
7439 .eraseblocks = { {8 * 1024 * 1024, 1} },
7440 .block_erase = spi_block_erase_c7,
7441 }
7442 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007443 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007444 .unlock = spi_disable_blockprotect,
7445 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007446 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007447 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007448 },
7449
7450 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007451 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00007452 .name = "Pm25LD256C",
7453 .bustype = BUS_SPI,
7454 .manufacture_id = PMC_ID,
7455 .model_id = PMC_PM25LD256C,
7456 .total_size = 32,
7457 .page_size = 256,
7458 .feature_bits = FEATURE_WRSR_WREN,
7459 .tested = TEST_UNTESTED,
7460 .probe = probe_spi_rdid,
7461 .probe_timing = TIMING_ZERO,
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = { {4 * 1024, 8} },
7466 .block_erase = spi_block_erase_20,
7467 }, {
7468 .eraseblocks = { {4 * 1024, 8} },
7469 .block_erase = spi_block_erase_d7,
7470 }, {
7471 .eraseblocks = { {32 * 1024, 1} },
7472 .block_erase = spi_block_erase_d8,
7473 }, {
7474 .eraseblocks = { {32 * 1024, 1} },
7475 .block_erase = spi_block_erase_60,
7476 }, {
7477 .eraseblocks = { {32 * 1024, 1} },
7478 .block_erase = spi_block_erase_c7,
7479 }
7480 },
7481 .printlock = spi_prettyprint_status_register_default_bp2,
7482 .unlock = spi_disable_blockprotect,
7483 .write = spi_chip_write_256,
7484 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7485 .voltage = {2700, 3600},
7486 },
7487 {
7488 .vendor = "PMC",
7489 .name = "Pm25LD512(C)",
7490 .bustype = BUS_SPI,
7491 .manufacture_id = PMC_ID,
7492 .model_id = PMC_PM25LD512,
7493 .total_size = 64,
7494 .page_size = 256,
7495 .feature_bits = FEATURE_WRSR_WREN,
7496 .tested = TEST_OK_PREW,
7497 .probe = probe_spi_rdid,
7498 .probe_timing = TIMING_ZERO,
7499 .block_erasers =
7500 {
7501 {
7502 .eraseblocks = { {4 * 1024, 16} },
7503 .block_erase = spi_block_erase_20,
7504 }, {
7505 .eraseblocks = { {4 * 1024, 16} },
7506 .block_erase = spi_block_erase_d7,
7507 }, {
7508 .eraseblocks = { {32 * 1024, 2} },
7509 .block_erase = spi_block_erase_d8,
7510 }, {
7511 .eraseblocks = { {64 * 1024, 1} },
7512 .block_erase = spi_block_erase_60,
7513 }, {
7514 .eraseblocks = { {64 * 1024, 1} },
7515 .block_erase = spi_block_erase_c7,
7516 }
7517 },
7518 .printlock = spi_prettyprint_status_register_default_bp2,
7519 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7520 .write = spi_chip_write_256,
7521 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7522 .voltage = {2300, 3600},
7523 },
7524
7525 {
7526 .vendor = "PMC",
7527 .name = "Pm25LD010(C)",
7528 .bustype = BUS_SPI,
7529 .manufacture_id = PMC_ID,
7530 .model_id = PMC_PM25LD010,
7531 .total_size = 128,
7532 .page_size = 256,
7533 .feature_bits = FEATURE_WRSR_WREN,
7534 .tested = TEST_UNTESTED,
7535 .probe = probe_spi_rdid,
7536 .probe_timing = TIMING_ZERO,
7537 .block_erasers =
7538 {
7539 {
7540 .eraseblocks = { {4 * 1024, 32} },
7541 .block_erase = spi_block_erase_20,
7542 }, {
7543 .eraseblocks = { {4 * 1024, 32} },
7544 .block_erase = spi_block_erase_d7,
7545 }, {
7546 .eraseblocks = { {32 * 1024, 4} },
7547 .block_erase = spi_block_erase_d8,
7548 }, {
7549 .eraseblocks = { {128 * 1024, 1} },
7550 .block_erase = spi_block_erase_60,
7551 }, {
7552 .eraseblocks = { {128 * 1024, 1} },
7553 .block_erase = spi_block_erase_c7,
7554 }
7555 },
7556 .printlock = spi_prettyprint_status_register_default_bp2,
7557 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7558 .write = spi_chip_write_256,
7559 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7560 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
7561 },
7562
7563 {
7564 .vendor = "PMC",
7565 .name = "Pm25LD020(C)",
7566 .bustype = BUS_SPI,
7567 .manufacture_id = PMC_ID,
7568 .model_id = PMC_PM25LD020,
7569 .total_size = 256,
7570 .page_size = 256,
7571 .feature_bits = FEATURE_WRSR_WREN,
7572 .tested = TEST_UNTESTED,
7573 .probe = probe_spi_rdid,
7574 .probe_timing = TIMING_ZERO,
7575 .block_erasers =
7576 {
7577 {
7578 .eraseblocks = { {4 * 1024, 64} },
7579 .block_erase = spi_block_erase_20,
7580 }, {
7581 .eraseblocks = { {4 * 1024, 64} },
7582 .block_erase = spi_block_erase_d7,
7583 }, {
7584 .eraseblocks = { {64 * 1024, 4} },
7585 .block_erase = spi_block_erase_d8,
7586 }, {
7587 .eraseblocks = { {256 * 1024, 1} },
7588 .block_erase = spi_block_erase_60,
7589 }, {
7590 .eraseblocks = { {256 * 1024, 1} },
7591 .block_erase = spi_block_erase_c7,
7592 }
7593 },
7594 .printlock = spi_prettyprint_status_register_default_bp2,
7595 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7596 .write = spi_chip_write_256,
7597 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7598 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
7599 },
7600
7601 {
7602 .vendor = "PMC",
7603 .name = "Pm25LD040(C)",
7604 .bustype = BUS_SPI,
7605 .manufacture_id = PMC_ID,
7606 .model_id = PMC_PM25LV040,
7607 .total_size = 512,
7608 .page_size = 256,
7609 .feature_bits = FEATURE_WRSR_WREN,
7610 .tested = TEST_UNTESTED,
7611 .probe = probe_spi_rdid,
7612 .probe_timing = TIMING_ZERO,
7613 .block_erasers =
7614 {
7615 {
7616 .eraseblocks = { {4 * 1024, 128} },
7617 .block_erase = spi_block_erase_20,
7618 }, {
7619 .eraseblocks = { {4 * 1024, 128} },
7620 .block_erase = spi_block_erase_d7,
7621 }, {
7622 .eraseblocks = { {64 * 1024, 8} },
7623 .block_erase = spi_block_erase_d8,
7624 }, {
7625 .eraseblocks = { {512 * 1024, 1} },
7626 .block_erase = spi_block_erase_60,
7627 }, {
7628 .eraseblocks = { {512 * 1024, 1} },
7629 .block_erase = spi_block_erase_c7,
7630 }
7631 },
7632 .printlock = spi_prettyprint_status_register_default_bp2,
7633 .unlock = spi_disable_blockprotect,
7634 .write = spi_chip_write_256,
7635 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7636 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
7637 },
7638
7639{
7640 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007641 .name = "Pm25LV512(A)",
7642 .bustype = BUS_SPI,
7643 .manufacture_id = PMC_ID,
7644 .model_id = PMC_PM25LV512,
7645 .total_size = 64,
7646 .page_size = 256,
7647 .feature_bits = FEATURE_WRSR_WREN,
7648 .tested = TEST_UNTESTED,
7649 .probe = probe_spi_res3,
7650 .probe_timing = TIMING_ZERO,
7651 .block_erasers =
7652 {
7653 {
7654 .eraseblocks = { {4 * 1024, 16} },
7655 .block_erase = spi_block_erase_d7,
7656 }, {
7657 .eraseblocks = { {32 * 1024, 2} },
7658 .block_erase = spi_block_erase_d8,
7659 }, {
7660 .eraseblocks = { {64 * 1024, 1} },
7661 .block_erase = spi_block_erase_c7,
7662 }
7663 },
7664 .printlock = spi_prettyprint_status_register_default_bp1,
7665 .unlock = spi_disable_blockprotect,
7666 .write = spi_chip_write_256,
7667 .read = spi_chip_read, /* Fast read (0x0B) supported */
7668 .voltage = {2700, 3600},
7669 },
7670
7671 {
7672 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007673 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007674 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007675 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007676 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007677 .total_size = 128,
7678 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007679 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007680 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007681 .probe = probe_spi_res3,
7682 .probe_timing = TIMING_ZERO,
7683 .block_erasers =
7684 {
7685 {
7686 .eraseblocks = { {4 * 1024, 32} },
7687 .block_erase = spi_block_erase_d7,
7688 }, {
7689 .eraseblocks = { {32 * 1024, 4} },
7690 .block_erase = spi_block_erase_d8,
7691 }, {
7692 .eraseblocks = { {128 * 1024, 1} },
7693 .block_erase = spi_block_erase_c7,
7694 }
7695 },
7696 .printlock = spi_prettyprint_status_register_default_bp1,
7697 .unlock = spi_disable_blockprotect,
7698 .write = spi_chip_write_256,
7699 .read = spi_chip_read, /* Fast read (0x0B) supported */
7700 .voltage = {2700, 3600},
7701 },
7702
7703 {
7704 .vendor = "PMC",
7705 .name = "Pm25LV010A",
7706 .bustype = BUS_SPI,
7707 .manufacture_id = PMC_ID,
7708 .model_id = PMC_PM25LV010,
7709 .total_size = 128,
7710 .page_size = 256,
7711 .feature_bits = FEATURE_WRSR_WREN,
7712 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007714 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007715 .block_erasers =
7716 {
7717 {
7718 .eraseblocks = { {4 * 1024, 32} },
7719 .block_erase = spi_block_erase_d7,
7720 }, {
7721 .eraseblocks = { {32 * 1024, 4} },
7722 .block_erase = spi_block_erase_d8,
7723 }, {
7724 .eraseblocks = { {128 * 1024, 1} },
7725 .block_erase = spi_block_erase_c7,
7726 }
7727 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007728 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007729 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007730 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007731 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007732 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007733 },
7734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007735 {
7736 .vendor = "PMC",
7737 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007738 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007739 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007740 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007741 .total_size = 256,
7742 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007743 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007744 .tested = TEST_UNTESTED,
7745 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007746 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007747 .block_erasers =
7748 {
7749 {
7750 .eraseblocks = { {4 * 1024, 64} },
7751 .block_erase = spi_block_erase_d7,
7752 }, {
7753 .eraseblocks = { {64 * 1024, 4} },
7754 .block_erase = spi_block_erase_d8,
7755 }, {
7756 .eraseblocks = { {256 * 1024, 1} },
7757 .block_erase = spi_block_erase_c7,
7758 }
7759 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007760 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007761 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007762 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007763 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007764 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007765 },
7766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007767 {
7768 .vendor = "PMC",
7769 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007770 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007771 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007772 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007773 .total_size = 512,
7774 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007775 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007776 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007777 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007778 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007779 .block_erasers =
7780 {
7781 {
7782 .eraseblocks = { {4 * 1024, 128} },
7783 .block_erase = spi_block_erase_d7,
7784 }, {
7785 .eraseblocks = { {64 * 1024, 8} },
7786 .block_erase = spi_block_erase_d8,
7787 }, {
7788 .eraseblocks = { {512 * 1024, 1} },
7789 .block_erase = spi_block_erase_c7,
7790 }
7791 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007792 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007793 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007794 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007795 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007796 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007797 },
7798
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007799 {
7800 .vendor = "PMC",
7801 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007802 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007803 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007804 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007805 .total_size = 1024,
7806 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007807 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007808 .tested = TEST_UNTESTED,
7809 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007810 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007811 .block_erasers =
7812 {
7813 {
7814 .eraseblocks = { {4 * 1024, 256} },
7815 .block_erase = spi_block_erase_d7,
7816 }, {
7817 .eraseblocks = { {4 * 1024, 256} },
7818 .block_erase = spi_block_erase_20,
7819 }, {
7820 .eraseblocks = { {64 * 1024, 16} },
7821 .block_erase = spi_block_erase_d8,
7822 }, {
7823 .eraseblocks = { {1024 * 1024, 1} },
7824 .block_erase = spi_block_erase_60,
7825 }, {
7826 .eraseblocks = { {1024 * 1024, 1} },
7827 .block_erase = spi_block_erase_c7,
7828 }
7829 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007830 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007831 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007832 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007833 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007834 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007835 },
7836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007837 {
7838 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007839 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007840 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007841 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007842 .model_id = PMC_PM25LV016B,
7843 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007844 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007845 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007846 .tested = TEST_UNTESTED,
7847 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007848 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007849 .block_erasers =
7850 {
7851 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007852 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00007853 .block_erase = spi_block_erase_d7,
7854 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007855 .eraseblocks = { {4 * 1024, 512} },
7856 .block_erase = spi_block_erase_20,
7857 }, {
7858 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00007859 .block_erase = spi_block_erase_d8,
7860 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007861 .eraseblocks = { {2 * 1024 * 1024, 1} },
7862 .block_erase = spi_block_erase_60,
7863 }, {
7864 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007865 .block_erase = spi_block_erase_c7,
7866 }
7867 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007868 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007869 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007870 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007871 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007872 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007873 },
7874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007875 {
7876 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007877 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007878 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007879 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007880 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007881 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007882 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007883 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007884 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007885 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007886 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007887 .block_erasers =
7888 {
7889 {
7890 .eraseblocks = {
7891 {128 * 1024, 1},
7892 {96 * 1024, 1},
7893 {8 * 1024, 2},
7894 {16 * 1024, 1},
7895 },
Sean Nelson35727f72010-01-28 23:55:12 +00007896 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007897 }, {
7898 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007899 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007900 },
7901 },
Sean Nelson35727f72010-01-28 23:55:12 +00007902 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007903 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007904 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007905 },
7906
7907 {
7908 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007909 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007910 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007911 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007912 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007913 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007914 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007916 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007917 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007918 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007919 .block_erasers =
7920 {
7921 {
7922 .eraseblocks = {
7923 {16 * 1024, 1},
7924 {8 * 1024, 2},
7925 {96 * 1024, 1},
7926 {128 * 1024, 1},
7927 },
Sean Nelson35727f72010-01-28 23:55:12 +00007928 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007929 }, {
7930 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007931 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007932 },
7933 },
Sean Nelson35727f72010-01-28 23:55:12 +00007934 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007936 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007937 },
7938
7939 {
7940 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007941 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007942 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007943 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007944 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007945 .total_size = 128,
7946 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007947 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007948 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007949 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007950 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00007951 .block_erasers =
7952 {
7953 {
7954 .eraseblocks = { {4 * 1024, 32} },
7955 .block_erase = erase_sector_jedec,
7956 }, {
7957 .eraseblocks = { {64 * 1024, 2} },
7958 .block_erase = erase_block_jedec,
7959 }, {
7960 .eraseblocks = { {128 * 1024, 1} },
7961 .block_erase = erase_chip_block_jedec,
7962 }
7963 },
Sean Nelson35727f72010-01-28 23:55:12 +00007964 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007965 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007966 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007967 },
7968
7969 {
7970 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007971 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007972 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007973 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007974 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007975 .total_size = 256,
7976 .page_size = 4096,
7977 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7978 .tested = TEST_UNTESTED,
7979 .probe = probe_jedec,
7980 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7981 .block_erasers =
7982 {
7983 {
7984 .eraseblocks = { {4 * 1024, 64} },
7985 .block_erase = erase_sector_jedec,
7986 }, {
7987 .eraseblocks = { {64 * 1024, 4} },
7988 .block_erase = erase_block_jedec,
7989 }, {
7990 .eraseblocks = { {256 * 1024, 1} },
7991 .block_erase = erase_chip_block_jedec,
7992 }
7993 },
7994 .write = write_jedec_1,
7995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007996 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007997 },
7998
7999 {
8000 .vendor = "PMC",
8001 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008002 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008003 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008004 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008005 .total_size = 512,
8006 .page_size = 4096,
8007 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008008 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008009 .probe = probe_jedec,
8010 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8011 .block_erasers =
8012 {
8013 {
8014 .eraseblocks = { {4 * 1024, 128} },
8015 .block_erase = erase_sector_jedec,
8016 }, {
8017 .eraseblocks = { {64 * 1024, 8} },
8018 .block_erase = erase_block_jedec,
8019 }, {
8020 .eraseblocks = { {512 * 1024, 1} },
8021 .block_erase = erase_chip_block_jedec,
8022 }
8023 },
8024 .write = write_jedec_1,
8025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008026 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008027 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008028
8029 {
8030 .vendor = "PMC",
8031 .name = "Pm39LV512",
8032 .bustype = BUS_PARALLEL,
8033 .manufacture_id = PMC_ID_NOPREFIX,
8034 .model_id = PMC_PM39LV512,
8035 .total_size = 64,
8036 .page_size = 4096,
8037 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8038 .tested = TEST_OK_PREW,
8039 .probe = probe_jedec,
8040 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8041 .block_erasers =
8042 {
8043 {
8044 .eraseblocks = { {4 * 1024, 16} },
8045 .block_erase = erase_sector_jedec,
8046 }, {
8047 .eraseblocks = { {64 * 1024, 1} },
8048 .block_erase = erase_block_jedec,
8049 }, {
8050 .eraseblocks = { {64 * 1024, 1} },
8051 .block_erase = erase_chip_block_jedec,
8052 }
8053 },
8054 .write = write_jedec_1,
8055 .read = read_memmapped,
8056 .voltage = {2700, 3600},
8057 },
8058
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008059 {
8060 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008061 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008062 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008063 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008064 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008065 .total_size = 256,
8066 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008067 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008068 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008069 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008070 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008071 .block_erasers =
8072 {
8073 {
8074 .eraseblocks = { {4 * 1024, 64} },
8075 .block_erase = erase_sector_jedec,
8076 }, {
8077 .eraseblocks = { {16 * 1024, 16} },
8078 .block_erase = erase_block_jedec,
8079 }, {
8080 .eraseblocks = { {256 * 1024, 1} },
8081 .block_erase = erase_chip_block_jedec,
8082 }
8083 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008084 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008085 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008086 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008087 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008088 },
8089
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008090 {
8091 .vendor = "PMC",
8092 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008093 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008094 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008095 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008096 .total_size = 512,
8097 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008098 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008099 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008100 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008101 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008102 .block_erasers =
8103 {
8104 {
8105 .eraseblocks = { {4 * 1024, 128} },
8106 .block_erase = erase_sector_jedec,
8107 }, {
8108 .eraseblocks = { {64 * 1024, 8} },
8109 .block_erase = erase_block_jedec,
8110 }, {
8111 .eraseblocks = { {512 * 1024, 1} },
8112 .block_erase = erase_chip_block_jedec,
8113 }
8114 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008115 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008116 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008118 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008119 },
8120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00008122 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008123 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008124 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008125 .manufacture_id = SANYO_ID,
8126 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008127 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008128 .page_size = 256,
8129 .tested = TEST_UNTESTED,
8130 .probe = probe_spi_rdid,
8131 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008132 .block_erasers =
8133 {
8134 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008135 .eraseblocks = { {256, 1024} },
8136 .block_erase = spi_block_erase_db,
8137 }, {
8138 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00008139 .block_erase = spi_block_erase_d8,
8140 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008141 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008142 .block_erase = spi_block_erase_c7,
8143 }
8144 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008145 .printlock = spi_prettyprint_status_register_default_welwip,
8146 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00008147 .write = spi_chip_write_256,
8148 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008149 .voltage = {2700, 3600},
8150 },
8151
8152 {
8153 .vendor = "Sanyo",
8154 .name = "LE25FW403A",
8155 .bustype = BUS_SPI,
8156 .manufacture_id = SANYO_ID,
8157 .model_id = SANYO_LE25FW403A,
8158 .total_size = 512,
8159 .page_size = 256,
8160 .tested = TEST_UNTESTED,
8161 .probe = probe_spi_rdid,
8162 .probe_timing = TIMING_ZERO,
8163 .block_erasers = {
8164 {
8165 .eraseblocks = { {256, 2 * 1024} },
8166 .block_erase = spi_block_erase_db,
8167 }, {
8168 .eraseblocks = { {64 * 1024, 8} },
8169 .block_erase = spi_block_erase_d8,
8170 }, {
8171 .eraseblocks = { {512 * 1024, 1} },
8172 .block_erase = spi_block_erase_c7,
8173 }
8174 },
8175 .printlock = spi_prettyprint_status_register_default_welwip,
8176 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8177 .write = spi_chip_write_256,
8178 .read = spi_chip_read,
8179 .voltage = {2700, 3600},
8180 },
8181
8182 {
8183 .vendor = "Sanyo",
8184 .name = "LE25FW418A",
8185 .bustype = BUS_SPI,
8186 .manufacture_id = SANYO_ID,
8187 .model_id = SANYO_LE25FW418A,
8188 .total_size = 512,
8189 .page_size = 256,
8190 .feature_bits = FEATURE_WRSR_WREN,
8191 .tested = TEST_UNTESTED,
8192 .probe = probe_spi_res2,
8193 .probe_timing = TIMING_ZERO,
8194 .block_erasers = {
8195 {
8196 .eraseblocks = { {4 * 1024, 128} },
8197 .block_erase = spi_block_erase_d7,
8198 }, {
8199 .eraseblocks = { {64 * 1024, 8} },
8200 .block_erase = spi_block_erase_d8,
8201 }, {
8202 .eraseblocks = { {512 * 1024, 1} },
8203 .block_erase = spi_block_erase_c7,
8204 }
8205 },
8206 .printlock = spi_prettyprint_status_register_default_bp2,
8207 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8208 .write = spi_chip_write_256,
8209 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8210 .voltage = {2700, 3600},
8211 },
8212
8213 {
8214 .vendor = "Sanyo",
8215 .name = "LE25FW806",
8216 .bustype = BUS_SPI,
8217 .manufacture_id = SANYO_ID,
8218 .model_id = SANYO_LE25FW806,
8219 .total_size = 1024,
8220 .page_size = 256,
8221 .feature_bits = FEATURE_WRSR_WREN,
8222 .tested = TEST_UNTESTED,
8223 .probe = probe_spi_res2,
8224 .probe_timing = TIMING_ZERO,
8225 .block_erasers = {
8226 {
8227 .eraseblocks = { {4 * 1024, 256} },
8228 .block_erase = spi_block_erase_20,
8229 }, {
8230 .eraseblocks = { {4 * 1024, 256} },
8231 .block_erase = spi_block_erase_d7,
8232 }, {
8233 .eraseblocks = { {64 * 1024, 16} },
8234 .block_erase = spi_block_erase_d8,
8235 }, {
8236 .eraseblocks = { {1024 * 1024, 1} },
8237 .block_erase = spi_block_erase_c7,
8238 }
8239 },
8240 .printlock = spi_prettyprint_status_register_default_bp2,
8241 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8242 .write = spi_chip_write_256,
8243 .read = spi_chip_read,
8244 .voltage = {2700, 3600},
8245 },
8246
8247 {
8248 .vendor = "Sanyo",
8249 .name = "LE25FW808",
8250 .bustype = BUS_SPI,
8251 .manufacture_id = SANYO_ID,
8252 .model_id = SANYO_LE25FW808,
8253 .total_size = 1024,
8254 .page_size = 256,
8255 .feature_bits = FEATURE_WRSR_WREN,
8256 .tested = TEST_UNTESTED,
8257 .probe = probe_spi_res2,
8258 .probe_timing = TIMING_ZERO,
8259 .block_erasers = {
8260 {
8261 .eraseblocks = { {8 * 1024, 128} },
8262 .block_erase = spi_block_erase_d7,
8263 }, {
8264 .eraseblocks = { {64 * 1024, 16} },
8265 .block_erase = spi_block_erase_d8,
8266 }, {
8267 .eraseblocks = { {1024 * 1024, 1} },
8268 .block_erase = spi_block_erase_c7,
8269 }
8270 },
8271 .printlock = spi_prettyprint_status_register_default_bp2,
8272 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8273 .write = spi_chip_write_256,
8274 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8275 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00008276 },
8277
8278 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008279 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008280 .name = "LH28F008BJT-BTLZ1",
8281 .bustype = BUS_PARALLEL,
8282 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00008283 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008284 .total_size = 1024,
8285 .page_size = 64 * 1024,
8286 .tested = TEST_OK_PREW,
8287 .probe = probe_82802ab,
8288 .probe_timing = TIMING_ZERO,
8289 .block_erasers =
8290 {
8291 {
8292 .eraseblocks = {
8293 {8 * 1024, 8},
8294 {64 * 1024, 15}
8295 },
8296 .block_erase = erase_block_82802ab,
8297 }, {
8298 .eraseblocks = { {1024 * 1024, 1} },
8299 .block_erase = erase_sector_49lfxxxc,
8300 }
8301 },
8302 .unlock = unlock_lh28f008bjt,
8303 .write = write_82802ab,
8304 .read = read_memmapped,
8305 .voltage = {2700, 3600},
8306 },
8307
8308 {
8309 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008310 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008311 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008312 .manufacture_id = SHARP_ID,
8313 .model_id = SHARP_LHF00L04,
8314 .total_size = 1024,
8315 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008316 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008317 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008318 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008319 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008320 .block_erasers =
8321 {
8322 {
8323 .eraseblocks = {
8324 {64 * 1024, 15},
8325 {8 * 1024, 8}
8326 },
Sean Nelson28accc22010-03-19 18:47:06 +00008327 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008328 }, {
8329 .eraseblocks = {
8330 {1024 * 1024, 1}
8331 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008332 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008333 },
8334 },
Sean Nelson28accc22010-03-19 18:47:06 +00008335 .unlock = unlock_82802ab,
8336 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008338 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008339 },
8340
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008341 {
8342 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00008343 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008344 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008345 .manufacture_id = SPANSION_ID,
8346 .model_id = SPANSION_S25FL004A,
8347 .total_size = 512,
8348 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008349 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008350 .tested = TEST_UNTESTED,
8351 .probe = probe_spi_rdid,
8352 .probe_timing = TIMING_ZERO,
8353 .block_erasers =
8354 {
8355 {
8356 .eraseblocks = { {64 * 1024, 8} },
8357 .block_erase = spi_block_erase_d8,
8358 }, {
8359 .eraseblocks = { {512 * 1024, 1} },
8360 .block_erase = spi_block_erase_c7,
8361 }
8362 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008363 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008364 .unlock = spi_disable_blockprotect,
8365 .write = spi_chip_write_256,
8366 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008367 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008368 },
8369
8370 {
8371 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00008372 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008373 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00008374 .manufacture_id = SPANSION_ID,
8375 .model_id = SPANSION_S25FL008A,
8376 .total_size = 1024,
8377 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008378 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008379 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00008380 .probe = probe_spi_rdid,
8381 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00008382 .block_erasers =
8383 {
8384 {
8385 .eraseblocks = { {64 * 1024, 16} },
8386 .block_erase = spi_block_erase_d8,
8387 }, {
8388 .eraseblocks = { {1024 * 1024, 1} },
8389 .block_erase = spi_block_erase_c7,
8390 }
8391 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008392 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008393 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00008394 .write = spi_chip_write_256,
8395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008396 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00008397 },
8398
8399 {
8400 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008401 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008402 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008403 .manufacture_id = SPANSION_ID,
8404 .model_id = SPANSION_S25FL016A,
8405 .total_size = 2048,
8406 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008407 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008408 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008409 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008410 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008411 .block_erasers =
8412 {
8413 {
8414 .eraseblocks = { {64 * 1024, 32} },
8415 .block_erase = spi_block_erase_d8,
8416 }, {
8417 .eraseblocks = { {2 * 1024 * 1024, 1} },
8418 .block_erase = spi_block_erase_c7,
8419 }
8420 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008421 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008422 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008423 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008424 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008425 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008426 },
8427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008428 {
Rudy Hostf4e57772010-11-29 00:37:49 +00008429 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008430 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008431 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008432 .manufacture_id = SPANSION_ID,
8433 .model_id = SPANSION_S25FL032A,
8434 .total_size = 4096,
8435 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008436 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008437 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00008438 .probe = probe_spi_rdid,
8439 .probe_timing = TIMING_ZERO,
8440 .block_erasers =
8441 {
8442 {
8443 .eraseblocks = { {64 * 1024, 64} },
8444 .block_erase = spi_block_erase_d8,
8445 }, {
8446 .eraseblocks = { {4 * 1024 * 1024, 1} },
8447 .block_erase = spi_block_erase_c7,
8448 }
8449 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008450 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008451 .unlock = spi_disable_blockprotect,
8452 .write = spi_chip_write_256,
8453 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008454 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008455 },
8456
8457 {
8458 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008459 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008460 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008461 .manufacture_id = SPANSION_ID,
8462 .model_id = SPANSION_S25FL064A,
8463 .total_size = 8192,
8464 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008465 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008466 .tested = TEST_OK_PREW,
8467 .probe = probe_spi_rdid,
8468 .probe_timing = TIMING_ZERO,
8469 .block_erasers =
8470 {
8471 {
8472 .eraseblocks = { {64 * 1024, 128} },
8473 .block_erase = spi_block_erase_d8,
8474 }, {
8475 .eraseblocks = { {8 * 1024 * 1024, 1} },
8476 .block_erase = spi_block_erase_c7,
8477 }
8478 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008479 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008480 .unlock = spi_disable_blockprotect,
8481 .write = spi_chip_write_256,
8482 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008483 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008484 },
8485
8486 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008487 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00008488 .name = "SST25LF040A",
8489 .bustype = BUS_SPI,
8490 .manufacture_id = SST_ID,
8491 .model_id = SST_SST25VF040_REMS,
8492 .total_size = 512,
8493 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008494 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00008495 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00008496 .probe = probe_spi_res2,
8497 .probe_timing = TIMING_ZERO,
8498 .block_erasers =
8499 {
8500 {
8501 .eraseblocks = { {4 * 1024, 128} },
8502 .block_erase = spi_block_erase_20,
8503 }, {
8504 .eraseblocks = { {32 * 1024, 16} },
8505 .block_erase = spi_block_erase_52,
8506 }, {
8507 .eraseblocks = { {512 * 1024, 1} },
8508 .block_erase = spi_block_erase_60,
8509 },
8510 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008511 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008512 .unlock = spi_disable_blockprotect,
8513 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8514 .read = spi_chip_read,
8515 .voltage = {3000, 3600},
8516 },
8517
8518 {
8519 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008520 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00008521 .bustype = BUS_SPI,
8522 .manufacture_id = SST_ID,
8523 .model_id = SST_SST25VF080_REMS,
8524 .total_size = 1024,
8525 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008526 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00008527 .tested = TEST_UNTESTED,
8528 .probe = probe_spi_res2,
8529 .probe_timing = TIMING_ZERO,
8530 .block_erasers =
8531 {
8532 {
8533 .eraseblocks = { {4 * 1024, 256} },
8534 .block_erase = spi_block_erase_20,
8535 }, {
8536 .eraseblocks = { {32 * 1024, 32} },
8537 .block_erase = spi_block_erase_52,
8538 }, {
8539 .eraseblocks = { {1024 * 1024, 1} },
8540 .block_erase = spi_block_erase_60,
8541 },
8542 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008543 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008544 .unlock = spi_disable_blockprotect,
8545 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8546 .read = spi_chip_read,
8547 .voltage = {3000, 3600},
8548 },
8549
8550 {
8551 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008552 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008553 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00008554 .manufacture_id = SST_ID,
8555 .model_id = SST_SST25VF010_REMS,
8556 .total_size = 128,
8557 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008558 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00008559 .tested = TEST_OK_PREW,
8560 .probe = probe_spi_rems,
8561 .probe_timing = TIMING_ZERO,
8562 .block_erasers =
8563 {
8564 {
8565 .eraseblocks = { {4 * 1024, 32} },
8566 .block_erase = spi_block_erase_20,
8567 }, {
8568 .eraseblocks = { {32 * 1024, 4} },
8569 .block_erase = spi_block_erase_52,
8570 }, {
8571 .eraseblocks = { {128 * 1024, 1} },
8572 .block_erase = spi_block_erase_60,
8573 },
8574 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008575 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00008576 .unlock = spi_disable_blockprotect,
8577 .write = spi_chip_write_1,
8578 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008579 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00008580 },
8581
8582 {
8583 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008584 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008585 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008586 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008587 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008588 .total_size = 2048,
8589 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008590 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00008591 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008592 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008593 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008594 .block_erasers =
8595 {
8596 {
8597 .eraseblocks = { {4 * 1024, 512} },
8598 .block_erase = spi_block_erase_20,
8599 }, {
8600 .eraseblocks = { {32 * 1024, 64} },
8601 .block_erase = spi_block_erase_52,
8602 }, {
8603 .eraseblocks = { {64 * 1024, 32} },
8604 .block_erase = spi_block_erase_d8,
8605 }, {
8606 .eraseblocks = { {2 * 1024 * 1024, 1} },
8607 .block_erase = spi_block_erase_60,
8608 }, {
8609 .eraseblocks = { {2 * 1024 * 1024, 1} },
8610 .block_erase = spi_block_erase_c7,
8611 },
8612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008613 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008614 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008615 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008616 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008617 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008618 },
8619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008620 {
8621 .vendor = "SST",
8622 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008623 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008624 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008625 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008626 .total_size = 4096,
8627 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008628 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00008629 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008630 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008631 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008632 .block_erasers =
8633 {
8634 {
8635 .eraseblocks = { {4 * 1024, 1024} },
8636 .block_erase = spi_block_erase_20,
8637 }, {
8638 .eraseblocks = { {32 * 1024, 128} },
8639 .block_erase = spi_block_erase_52,
8640 }, {
8641 .eraseblocks = { {64 * 1024, 64} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {4 * 1024 * 1024, 1} },
8645 .block_erase = spi_block_erase_60,
8646 }, {
8647 .eraseblocks = { {4 * 1024 * 1024, 1} },
8648 .block_erase = spi_block_erase_c7,
8649 },
8650 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008651 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008652 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008653 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008654 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008655 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008656 },
8657
8658 {
8659 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008660 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008661 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008662 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008663 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008664 .total_size = 8192,
8665 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008666 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00008667 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008668 .probe = probe_spi_rdid,
8669 .probe_timing = TIMING_ZERO,
8670 .block_erasers =
8671 {
8672 {
8673 .eraseblocks = { {4 * 1024, 2048} },
8674 .block_erase = spi_block_erase_20,
8675 }, {
8676 .eraseblocks = { {32 * 1024, 256} },
8677 .block_erase = spi_block_erase_52,
8678 }, {
8679 .eraseblocks = { {64 * 1024, 128} },
8680 .block_erase = spi_block_erase_d8,
8681 }, {
8682 .eraseblocks = { {8 * 1024 * 1024, 1} },
8683 .block_erase = spi_block_erase_60,
8684 }, {
8685 .eraseblocks = { {8 * 1024 * 1024, 1} },
8686 .block_erase = spi_block_erase_c7,
8687 },
8688 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008689 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008690 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008691 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008692 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008693 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008694 },
8695
8696 {
8697 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008698 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008699 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008700 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008701 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008702 .total_size = 512,
8703 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008704 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008705 .tested = TEST_OK_PR,
8706 .probe = probe_spi_rems,
8707 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008708 .block_erasers =
8709 {
8710 {
8711 .eraseblocks = { {4 * 1024, 128} },
8712 .block_erase = spi_block_erase_20,
8713 }, {
8714 .eraseblocks = { {32 * 1024, 16} },
8715 .block_erase = spi_block_erase_52,
8716 }, {
8717 .eraseblocks = { {512 * 1024, 1} },
8718 .block_erase = spi_block_erase_60,
8719 },
8720 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008721 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008722 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008723 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008724 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008725 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008726 },
8727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 {
8729 .vendor = "SST",
8730 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008731 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008732 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008733 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008734 .total_size = 512,
8735 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008736 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008737 .tested = TEST_UNTESTED,
8738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008739 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008740 .block_erasers =
8741 {
8742 {
8743 .eraseblocks = { {4 * 1024, 128} },
8744 .block_erase = spi_block_erase_20,
8745 }, {
8746 .eraseblocks = { {32 * 1024, 16} },
8747 .block_erase = spi_block_erase_52,
8748 }, {
8749 .eraseblocks = { {64 * 1024, 8} },
8750 .block_erase = spi_block_erase_d8,
8751 }, {
8752 .eraseblocks = { {512 * 1024, 1} },
8753 .block_erase = spi_block_erase_60,
8754 }, {
8755 .eraseblocks = { {512 * 1024, 1} },
8756 .block_erase = spi_block_erase_c7,
8757 },
8758 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008759 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008760 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008761 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00008762 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008763 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00008764 },
8765
8766 {
8767 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00008768 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008769 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008770 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008771 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00008772 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008773 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008774 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00008775 .tested = TEST_OK_PR,
8776 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008777 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008778 .block_erasers =
8779 {
8780 {
8781 .eraseblocks = { {4 * 1024, 128} },
8782 .block_erase = spi_block_erase_20,
8783 }, {
8784 .eraseblocks = { {32 * 1024, 16} },
8785 .block_erase = spi_block_erase_52,
8786 }, {
8787 .eraseblocks = { {64 * 1024, 8} },
8788 .block_erase = spi_block_erase_d8,
8789 }, {
8790 .eraseblocks = { {512 * 1024, 1} },
8791 .block_erase = spi_block_erase_60,
8792 }, {
8793 .eraseblocks = { {512 * 1024, 1} },
8794 .block_erase = spi_block_erase_c7,
8795 },
8796 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008797 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008798 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008799 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00008800 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008801 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00008802 },
8803
8804 {
8805 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008808 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008809 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .total_size = 1024,
8811 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008812 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00008813 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008814 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008815 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008816 .block_erasers =
8817 {
8818 {
8819 .eraseblocks = { {4 * 1024, 256} },
8820 .block_erase = spi_block_erase_20,
8821 }, {
8822 .eraseblocks = { {32 * 1024, 32} },
8823 .block_erase = spi_block_erase_52,
8824 }, {
8825 .eraseblocks = { {64 * 1024, 16} },
8826 .block_erase = spi_block_erase_d8,
8827 }, {
8828 .eraseblocks = { {1024 * 1024, 1} },
8829 .block_erase = spi_block_erase_60,
8830 }, {
8831 .eraseblocks = { {1024 * 1024, 1} },
8832 .block_erase = spi_block_erase_c7,
8833 },
8834 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008835 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008836 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008837 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008838 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008839 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008840 },
8841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008842 {
8843 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00008844 .name = "SST25WF512",
8845 .bustype = BUS_SPI,
8846 .manufacture_id = SST_ID,
8847 .model_id = SST_SST25WF512,
8848 .total_size = 64,
8849 .page_size = 256,
8850 .feature_bits = FEATURE_WRSR_EITHER,
8851 .tested = TEST_UNTESTED,
8852 .probe = probe_spi_rdid,
8853 .probe_timing = TIMING_ZERO,
8854 .block_erasers =
8855 {
8856 {
8857 .eraseblocks = { {4 * 1024, 16} },
8858 .block_erase = spi_block_erase_20,
8859 }, {
8860 .eraseblocks = { {32 * 1024, 2} },
8861 .block_erase = spi_block_erase_52,
8862 }, {
8863 .eraseblocks = { {1024 * 64, 1} },
8864 .block_erase = spi_block_erase_60,
8865 }, {
8866 .eraseblocks = { {1024 * 64, 1} },
8867 .block_erase = spi_block_erase_c7,
8868 },
8869 },
8870 .unlock = spi_disable_blockprotect,
8871 .write = spi_aai_write,
8872 .read = spi_chip_read, /* Fast read (0x0B) supported */
8873 .voltage = {1650, 1950},
8874 },
8875
8876 {
8877 .vendor = "SST",
8878 .name = "SST25WF010",
8879 .bustype = BUS_SPI,
8880 .manufacture_id = SST_ID,
8881 .model_id = SST_SST25WF010,
8882 .total_size = 128,
8883 .page_size = 256,
8884 .feature_bits = FEATURE_WRSR_EITHER,
8885 .tested = TEST_UNTESTED,
8886 .probe = probe_spi_rdid,
8887 .probe_timing = TIMING_ZERO,
8888 .block_erasers =
8889 {
8890 {
8891 .eraseblocks = { {4 * 1024, 32} },
8892 .block_erase = spi_block_erase_20,
8893 }, {
8894 .eraseblocks = { {32 * 1024, 4} },
8895 .block_erase = spi_block_erase_52,
8896 }, {
8897 .eraseblocks = { {1024 * 128, 1} },
8898 .block_erase = spi_block_erase_60,
8899 }, {
8900 .eraseblocks = { {1024 * 128, 1} },
8901 .block_erase = spi_block_erase_c7,
8902 },
8903 },
8904 .unlock = spi_disable_blockprotect,
8905 .write = spi_aai_write,
8906 .read = spi_chip_read, /* Fast read (0x0B) supported */
8907 .voltage = {1650, 1950},
8908 },
8909
8910 {
8911 .vendor = "SST",
8912 .name = "SST25WF020",
8913 .bustype = BUS_SPI,
8914 .manufacture_id = SST_ID,
8915 .model_id = SST_SST25WF020,
8916 .total_size = 256,
8917 .page_size = 256,
8918 .feature_bits = FEATURE_WRSR_EITHER,
8919 .tested = TEST_UNTESTED,
8920 .probe = probe_spi_rdid,
8921 .probe_timing = TIMING_ZERO,
8922 .block_erasers =
8923 {
8924 {
8925 .eraseblocks = { {4 * 1024, 64} },
8926 .block_erase = spi_block_erase_20,
8927 }, {
8928 .eraseblocks = { {32 * 1024, 8} },
8929 .block_erase = spi_block_erase_52,
8930 }, {
8931 .eraseblocks = { {64 * 1024, 4} },
8932 .block_erase = spi_block_erase_d8,
8933 }, {
8934 .eraseblocks = { {1024 * 256, 1} },
8935 .block_erase = spi_block_erase_60,
8936 }, {
8937 .eraseblocks = { {1024 * 256, 1} },
8938 .block_erase = spi_block_erase_c7,
8939 },
8940 },
8941 .unlock = spi_disable_blockprotect,
8942 .write = spi_aai_write,
8943 .read = spi_chip_read, /* Fast read (0x0B) supported */
8944 .voltage = {1650, 1950},
8945 },
8946
8947 {
8948 .vendor = "SST",
8949 .name = "SST25WF040",
8950 .bustype = BUS_SPI,
8951 .manufacture_id = SST_ID,
8952 .model_id = SST_SST25WF040,
8953 .total_size = 512,
8954 .page_size = 256,
8955 .feature_bits = FEATURE_WRSR_EITHER,
8956 .tested = TEST_UNTESTED,
8957 .probe = probe_spi_rdid,
8958 .probe_timing = TIMING_ZERO,
8959 .block_erasers =
8960 {
8961 {
8962 .eraseblocks = { {4 * 1024, 128} },
8963 .block_erase = spi_block_erase_20,
8964 }, {
8965 .eraseblocks = { {32 * 1024, 16} },
8966 .block_erase = spi_block_erase_52,
8967 }, {
8968 .eraseblocks = { {64 * 1024, 8} },
8969 .block_erase = spi_block_erase_d8,
8970 }, {
8971 .eraseblocks = { {1024 * 512, 1} },
8972 .block_erase = spi_block_erase_60,
8973 }, {
8974 .eraseblocks = { {1024 * 512, 1} },
8975 .block_erase = spi_block_erase_c7,
8976 },
8977 },
8978 .unlock = spi_disable_blockprotect,
8979 .write = spi_aai_write,
8980 .read = spi_chip_read, /* Fast read (0x0B) supported */
8981 .voltage = {1650, 1950},
8982 },
8983
8984 {
8985 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008986 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008987 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008988 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008989 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008990 .total_size = 512,
8991 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008992 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008993 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008994 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008995 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008996 .block_erasers =
8997 {
8998 {
8999 .eraseblocks = { {128, 4096} },
9000 .block_erase = erase_sector_28sf040,
9001 }, {
9002 .eraseblocks = { {512 * 1024, 1} },
9003 .block_erase = erase_chip_28sf040,
9004 }
9005 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009006 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009007 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009009 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009010 },
9011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009012 {
9013 .vendor = "SST",
9014 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009015 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009017 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009018 .total_size = 128,
9019 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009020 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009021 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009022 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009023 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009024 .block_erasers =
9025 {
9026 {
9027 .eraseblocks = { {128 * 1024, 1} },
9028 .block_erase = erase_chip_block_jedec,
9029 }
9030 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009031 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009033 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009034 },
9035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009036 {
9037 .vendor = "SST",
9038 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009039 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009040 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009041 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009042 .total_size = 128,
9043 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009044 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009045 .tested = TEST_UNTESTED,
9046 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009047 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009048 .block_erasers =
9049 {
9050 {
9051 .eraseblocks = { {128 * 1024, 1} },
9052 .block_erase = erase_chip_block_jedec,
9053 }
9054 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009055 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009057 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009058 },
9059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009060 {
9061 .vendor = "SST",
9062 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009063 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009064 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009065 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009066 .total_size = 256,
9067 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009068 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009069 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009071 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009072 .block_erasers =
9073 {
9074 {
9075 .eraseblocks = { {256 * 1024, 1} },
9076 .block_erase = erase_chip_block_jedec,
9077 }
9078 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009079 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009081 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009082 },
9083
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009084 {
9085 .vendor = "SST",
9086 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009087 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009088 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009089 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009090 .total_size = 256,
9091 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009092 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009093 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009094 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009095 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009096 .block_erasers =
9097 {
9098 {
9099 .eraseblocks = { {256 * 1024, 1} },
9100 .block_erase = erase_chip_block_jedec,
9101 }
9102 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009103 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009105 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009106 },
9107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009108 {
9109 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00009110 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009112 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009113 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009114 .total_size = 64,
9115 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009116 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00009117 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009118 .probe = probe_jedec,
9119 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00009120 .block_erasers =
9121 {
9122 {
9123 .eraseblocks = { {4 * 1024, 16} },
9124 .block_erase = erase_sector_jedec,
9125 }, {
9126 .eraseblocks = { {64 * 1024, 1} },
9127 .block_erase = erase_chip_block_jedec,
9128 }
9129 },
Sean Nelson35727f72010-01-28 23:55:12 +00009130 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009132 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00009133 },
9134
9135 {
9136 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009137 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009138 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009139 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009140 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009141 .total_size = 128,
9142 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009143 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009144 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009145 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009146 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009147 .block_erasers =
9148 {
9149 {
9150 .eraseblocks = { {4 * 1024, 32} },
9151 .block_erase = erase_sector_jedec,
9152 }, {
9153 .eraseblocks = { {128 * 1024, 1} },
9154 .block_erase = erase_chip_block_jedec,
9155 }
9156 },
Sean Nelson35727f72010-01-28 23:55:12 +00009157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009159 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009160 },
9161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009162 {
9163 .vendor = "SST",
9164 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009165 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009166 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009167 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009168 .total_size = 256,
9169 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009170 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009171 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009172 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009173 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009174 .block_erasers =
9175 {
9176 {
9177 .eraseblocks = { {4 * 1024, 64} },
9178 .block_erase = erase_sector_jedec,
9179 }, {
9180 .eraseblocks = { {256 * 1024, 1} },
9181 .block_erase = erase_chip_block_jedec,
9182 }
9183 },
Sean Nelson35727f72010-01-28 23:55:12 +00009184 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009185 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009186 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009187 },
9188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009189 {
9190 .vendor = "SST",
9191 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009192 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009193 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009194 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 .total_size = 512,
9196 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009197 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009198 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009199 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009200 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009201 .block_erasers =
9202 {
9203 {
9204 .eraseblocks = { {4 * 1024, 128} },
9205 .block_erase = erase_sector_jedec,
9206 }, {
9207 .eraseblocks = { {512 * 1024, 1} },
9208 .block_erase = erase_chip_block_jedec,
9209 }
9210 },
Sean Nelson35727f72010-01-28 23:55:12 +00009211 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009213 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009214 },
9215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009216 {
9217 .vendor = "SST",
9218 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009219 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009220 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009221 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009222 .total_size = 64,
9223 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009224 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00009225 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009226 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009227 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009228 .block_erasers =
9229 {
9230 {
9231 .eraseblocks = { {4 * 1024, 16} },
9232 .block_erase = erase_sector_jedec,
9233 }, {
9234 .eraseblocks = { {64 * 1024, 1} },
9235 .block_erase = erase_chip_block_jedec,
9236 }
9237 },
Sean Nelson35727f72010-01-28 23:55:12 +00009238 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009241 },
9242
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009243 {
9244 .vendor = "SST",
9245 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009246 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009247 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009248 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009249 .total_size = 128,
9250 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009251 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009252 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009253 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009254 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009255 .block_erasers =
9256 {
9257 {
9258 .eraseblocks = { {4 * 1024, 32} },
9259 .block_erase = erase_sector_jedec,
9260 }, {
9261 .eraseblocks = { {128 * 1024, 1} },
9262 .block_erase = erase_chip_block_jedec,
9263 }
9264 },
Sean Nelson35727f72010-01-28 23:55:12 +00009265 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009267 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009268 },
9269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009270 {
9271 .vendor = "SST",
9272 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009273 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009274 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009275 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009276 .total_size = 256,
9277 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009278 .feature_bits = FEATURE_EITHER_RESET,
9279 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009280 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009281 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009282 .block_erasers =
9283 {
9284 {
9285 .eraseblocks = { {4 * 1024, 64} },
9286 .block_erase = erase_sector_jedec,
9287 }, {
9288 .eraseblocks = { {256 * 1024, 1} },
9289 .block_erase = erase_chip_block_jedec,
9290 }
9291 },
Sean Nelson35727f72010-01-28 23:55:12 +00009292 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009293 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009294 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009295 },
9296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009297 {
9298 .vendor = "SST",
9299 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009300 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009301 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009302 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009303 .total_size = 512,
9304 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009305 .feature_bits = FEATURE_EITHER_RESET,
9306 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009307 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009308 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009309 .block_erasers =
9310 {
9311 {
9312 .eraseblocks = { {4 * 1024, 128} },
9313 .block_erase = erase_sector_jedec,
9314 }, {
9315 .eraseblocks = { {512 * 1024, 1} },
9316 .block_erase = erase_chip_block_jedec,
9317 }
9318 },
Sean Nelson35727f72010-01-28 23:55:12 +00009319 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009321 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00009322 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009324 {
9325 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00009326 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009327 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009328 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009329 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00009330 .total_size = 1024,
9331 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009332 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00009333 .tested = TEST_UNTESTED,
9334 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009335 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009336 .block_erasers =
9337 {
9338 {
9339 .eraseblocks = { {4 * 1024, 256} },
9340 .block_erase = erase_sector_jedec,
9341 }, {
9342 .eraseblocks = { {64 * 1024, 16} },
9343 .block_erase = erase_block_jedec,
9344 }, {
9345 .eraseblocks = { {1024 * 1024, 1} },
9346 .block_erase = erase_chip_block_jedec,
9347 }
9348 },
Sean Nelson35727f72010-01-28 23:55:12 +00009349 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009350 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009351 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00009352 },
9353
9354 {
9355 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009356 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009357 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009358 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009359 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009360 .total_size = 256,
9361 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009362 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009363 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009364 .probe = probe_jedec,
9365 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009366 .block_erasers =
9367 {
9368 {
9369 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009370 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009371 }, {
9372 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009373 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009374 }, {
9375 .eraseblocks = { {256 * 1024, 1} },
9376 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9377 }
9378 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009379 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009380 .unlock = unlock_sst_fwhub,
9381 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009382 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009383 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009384 },
9385
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009386 {
9387 .vendor = "SST",
9388 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009389 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009390 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009391 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009392 .total_size = 384,
9393 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009394 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009395 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009396 .probe = probe_jedec,
9397 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009398 .block_erasers =
9399 {
9400 {
9401 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009402 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009403 }, {
9404 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009405 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009406 }, {
9407 .eraseblocks = { {384 * 1024, 1} },
9408 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9409 }
9410 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009411 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009412 .unlock = unlock_sst_fwhub,
9413 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009415 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009416 },
9417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009418 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009419 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
9420 * and is only honored for 64k block erase, but not 4k sector erase.
9421 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009422 .vendor = "SST",
9423 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009424 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009425 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009426 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009427 .total_size = 512,
9428 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009429 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009430 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009431 .probe = probe_jedec,
9432 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009433 .block_erasers =
9434 {
9435 {
9436 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009437 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009438 }, {
9439 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009440 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009441 }, {
9442 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009443 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009444 },
9445 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009446 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009447 .unlock = unlock_sst_fwhub,
9448 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009449 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009450 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009451 },
9452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009453 {
9454 .vendor = "SST",
9455 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009456 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009457 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009458 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009459 .total_size = 512,
9460 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009461 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009462 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009463 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009464 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009465 .block_erasers =
9466 {
9467 {
9468 .eraseblocks = { {4 * 1024, 128} },
9469 .block_erase = erase_sector_49lfxxxc,
9470 }, {
9471 .eraseblocks = {
9472 {64 * 1024, 7},
9473 {32 * 1024, 1},
9474 {8 * 1024, 2},
9475 {16 * 1024, 1},
9476 },
Sean Nelson69e58112010-03-23 17:10:28 +00009477 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009478 }
9479 },
Sean Nelson69e58112010-03-23 17:10:28 +00009480 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009481 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009482 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009483 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009484 },
9485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009486 {
9487 .vendor = "SST",
9488 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009489 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009490 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009491 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009492 .total_size = 1024,
9493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009494 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009495 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009496 .probe = probe_jedec,
9497 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009498 .block_erasers =
9499 {
9500 {
9501 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009502 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009503 }, {
9504 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009505 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009506 }, {
9507 .eraseblocks = { {1024 * 1024, 1} },
9508 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9509 }
9510 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009511 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009512 .unlock = unlock_sst_fwhub,
9513 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009514 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009515 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009516 },
9517
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009518 {
9519 .vendor = "SST",
9520 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009521 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009522 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009523 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009524 .total_size = 1024,
9525 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009526 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009527 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009528 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009529 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009530 .block_erasers =
9531 {
9532 {
9533 .eraseblocks = { {4 * 1024, 256} },
9534 .block_erase = erase_sector_49lfxxxc,
9535 }, {
9536 .eraseblocks = {
9537 {64 * 1024, 15},
9538 {32 * 1024, 1},
9539 {8 * 1024, 2},
9540 {16 * 1024, 1},
9541 },
Sean Nelson69e58112010-03-23 17:10:28 +00009542 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009543 }
9544 },
Sean Nelson69e58112010-03-23 17:10:28 +00009545 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009546 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009547 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009548 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009549 },
9550
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009551 {
9552 .vendor = "SST",
9553 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009554 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009555 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009556 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009557 .total_size = 2048,
9558 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009559 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00009560 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009561 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009562 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009563 .block_erasers =
9564 {
9565 {
9566 .eraseblocks = { {4 * 1024, 512} },
9567 .block_erase = erase_sector_49lfxxxc,
9568 }, {
9569 .eraseblocks = {
9570 {64 * 1024, 31},
9571 {32 * 1024, 1},
9572 {8 * 1024, 2},
9573 {16 * 1024, 1},
9574 },
Sean Nelson69e58112010-03-23 17:10:28 +00009575 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009576 }
9577 },
Sean Nelson69e58112010-03-23 17:10:28 +00009578 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009579 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009581 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009582 },
9583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009584 {
9585 .vendor = "SST",
9586 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009587 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009588 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009589 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009590 .total_size = 256,
9591 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009592 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00009593 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009594 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009595 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009596 .block_erasers =
9597 {
9598 {
9599 .eraseblocks = { {4 * 1024, 64} },
9600 .block_erase = erase_sector_jedec,
9601 }, {
9602 .eraseblocks = { {16 * 1024, 16} },
9603 .block_erase = erase_block_jedec,
9604 }, {
9605 .eraseblocks = { {256 * 1024, 1} },
9606 .block_erase = NULL,
9607 }
9608 },
Sean Nelson35727f72010-01-28 23:55:12 +00009609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009611 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00009612 },
9613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009614 {
9615 .vendor = "SST",
9616 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009617 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009619 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009620 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00009621 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009622 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009623 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009624 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009625 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009626 .block_erasers =
9627 {
9628 {
9629 .eraseblocks = { {4 * 1024, 64} },
9630 .block_erase = erase_sector_jedec,
9631 }, {
9632 .eraseblocks = { {16 * 1024, 16} },
9633 .block_erase = erase_block_jedec,
9634 }, {
9635 .eraseblocks = { {256 * 1024, 1} },
9636 .block_erase = NULL,
9637 }
9638 },
Sean Nelson35727f72010-01-28 23:55:12 +00009639 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009641 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009642 },
9643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009644 {
9645 .vendor = "SST",
9646 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009647 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009648 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009649 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009650 .total_size = 512,
9651 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009652 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009653 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009654 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009655 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009656 .block_erasers =
9657 {
9658 {
9659 .eraseblocks = { {4 * 1024, 128} },
9660 .block_erase = erase_sector_jedec,
9661 }, {
9662 .eraseblocks = { {64 * 1024, 8} },
9663 .block_erase = erase_block_jedec,
9664 }, {
9665 .eraseblocks = { {512 * 1024, 1} },
9666 .block_erase = NULL,
9667 }
9668 },
Sean Nelson35727f72010-01-28 23:55:12 +00009669 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009671 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009672 },
9673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009674 {
9675 .vendor = "SST",
9676 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009677 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009678 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009679 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009680 .total_size = 512,
9681 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009682 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009683 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009684 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009685 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009686 .block_erasers =
9687 {
9688 {
9689 .eraseblocks = { {4 * 1024, 128} },
9690 .block_erase = erase_sector_jedec,
9691 }, {
9692 .eraseblocks = { {64 * 1024, 8} },
9693 .block_erase = erase_block_jedec,
9694 }, {
9695 .eraseblocks = { {512 * 1024, 1} },
9696 .block_erase = NULL,
9697 }
9698 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009699 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00009700 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009701 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009702 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009703 },
9704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009705 {
9706 .vendor = "SST",
9707 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009708 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009709 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009710 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009711 .total_size = 1024,
9712 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009713 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00009714 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009715 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00009716 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009717 .block_erasers =
9718 {
9719 {
9720 .eraseblocks = { {4 * 1024, 256} },
9721 .block_erase = erase_sector_jedec,
9722 }, {
9723 .eraseblocks = { {64 * 1024, 16} },
9724 .block_erase = erase_block_jedec,
9725 }, {
9726 .eraseblocks = { {1024 * 1024, 1} },
9727 .block_erase = NULL,
9728 }
9729 },
Sean Nelson35727f72010-01-28 23:55:12 +00009730 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009732 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009733 },
9734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009735 {
9736 .vendor = "SST",
9737 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009738 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009739 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009740 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009741 .total_size = 2048,
9742 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009743 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009744 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009745 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009746 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009747 .block_erasers =
9748 {
9749 {
9750 .eraseblocks = { {4 * 1024, 512} },
9751 .block_erase = erase_sector_49lfxxxc,
9752 }, {
9753 .eraseblocks = {
9754 {64 * 1024, 31},
9755 {32 * 1024, 1},
9756 {8 * 1024, 2},
9757 {16 * 1024, 1},
9758 },
Sean Nelson69e58112010-03-23 17:10:28 +00009759 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009760 }
9761 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009762 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009763 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009765 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009766 },
9767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009768 {
9769 .vendor = "ST",
9770 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009771 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009772 .manufacture_id = ST_ID,
9773 .model_id = ST_M25P05A,
9774 .total_size = 64,
9775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009776 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009777 .tested = TEST_UNTESTED,
9778 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009779 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009780 .block_erasers =
9781 {
9782 {
9783 .eraseblocks = { {32 * 1024, 2} },
9784 .block_erase = spi_block_erase_d8,
9785 }, {
9786 .eraseblocks = { {64 * 1024, 1} },
9787 .block_erase = spi_block_erase_c7,
9788 }
9789 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009790 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009791 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009792 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009793 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009794 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009795 },
9796
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009797 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9798 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009799 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009800 * only is successful if RDID does not work.
9801 */
9802 {
9803 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009804 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009805 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009806 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009807 .model_id = ST_M25P05_RES,
9808 .total_size = 64,
9809 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009810 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009811 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009812 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009813 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009814 .block_erasers =
9815 {
9816 {
9817 .eraseblocks = { {32 * 1024, 2} },
9818 .block_erase = spi_block_erase_d8,
9819 }, {
9820 .eraseblocks = { {64 * 1024, 1} },
9821 .block_erase = spi_block_erase_c7,
9822 }
9823 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009824 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009825 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009826 .write = spi_chip_write_1, /* 128 */
9827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009828 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009829 },
9830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009831 {
9832 .vendor = "ST",
9833 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009834 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009835 .manufacture_id = ST_ID,
9836 .model_id = ST_M25P10A,
9837 .total_size = 128,
9838 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009839 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009840 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009841 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009842 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009843 .block_erasers =
9844 {
9845 {
9846 .eraseblocks = { {32 * 1024, 4} },
9847 .block_erase = spi_block_erase_d8,
9848 }, {
9849 .eraseblocks = { {128 * 1024, 1} },
9850 .block_erase = spi_block_erase_c7,
9851 }
9852 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009853 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009854 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009855 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009857 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009858 },
9859
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009860 /* The ST M25P10 has the same problem as the M25P05. */
9861 {
9862 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009863 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009864 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009865 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009866 .model_id = ST_M25P10_RES,
9867 .total_size = 128,
9868 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009869 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009870 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009871 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009872 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009873 .block_erasers =
9874 {
9875 {
9876 .eraseblocks = { {32 * 1024, 4} },
9877 .block_erase = spi_block_erase_d8,
9878 }, {
9879 .eraseblocks = { {128 * 1024, 1} },
9880 .block_erase = spi_block_erase_c7,
9881 }
9882 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009883 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009884 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009885 .write = spi_chip_write_1, /* 128 */
9886 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009887 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009888 },
9889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009890 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009891 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009892 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009893 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009894 .manufacture_id = ST_ID,
9895 .model_id = ST_M25P20,
9896 .total_size = 256,
9897 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009898 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009899 .tested = TEST_UNTESTED,
9900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009901 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009902 .block_erasers =
9903 {
9904 {
9905 .eraseblocks = { {64 * 1024, 4} },
9906 .block_erase = spi_block_erase_d8,
9907 }, {
9908 .eraseblocks = { {256 * 1024, 1} },
9909 .block_erase = spi_block_erase_c7,
9910 }
9911 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009912 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009913 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009914 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009915 .read = spi_chip_read, /* Fast read (0x0B) supported */
9916 .voltage = {2700, 3600},
9917 },
9918
9919 {
9920 .vendor = "ST",
9921 .name = "M25P20-old",
9922 .bustype = BUS_SPI,
9923 .manufacture_id = 0, /* Not used. */
9924 .model_id = ST_M25P20_RES,
9925 .total_size = 256,
9926 .page_size = 256,
9927 .feature_bits = FEATURE_WRSR_WREN,
9928 .tested = TEST_OK_PREW,
9929 .probe = probe_spi_res1,
9930 .probe_timing = TIMING_ZERO,
9931 .block_erasers =
9932 {
9933 {
9934 .eraseblocks = { {64 * 1024, 4} },
9935 .block_erase = spi_block_erase_d8,
9936 }, {
9937 .eraseblocks = { {256 * 1024, 1} },
9938 .block_erase = spi_block_erase_c7,
9939 }
9940 },
9941 .printlock = spi_prettyprint_status_register_default_bp1,
9942 .unlock = spi_disable_blockprotect,
9943 .write = spi_chip_write_256,
9944 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009946 },
9947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009948 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009949 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009950 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009951 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009952 .manufacture_id = ST_ID,
9953 .model_id = ST_M25P40,
9954 .total_size = 512,
9955 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009956 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009957 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009958 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009959 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009960 .block_erasers =
9961 {
9962 {
9963 .eraseblocks = { {64 * 1024, 8} },
9964 .block_erase = spi_block_erase_d8,
9965 }, {
9966 .eraseblocks = { {512 * 1024, 1} },
9967 .block_erase = spi_block_erase_c7,
9968 }
9969 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009970 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009971 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009972 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009973 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009974 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009975 },
9976
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009977 {
9978 .vendor = "ST",
9979 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009980 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009981 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009982 .model_id = ST_M25P40_RES,
9983 .total_size = 512,
9984 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009985 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009986 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009987 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009988 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009989 .block_erasers =
9990 {
9991 {
9992 .eraseblocks = { {64 * 1024, 8} },
9993 .block_erase = spi_block_erase_d8,
9994 }, {
9995 .eraseblocks = { {512 * 1024, 1} },
9996 .block_erase = spi_block_erase_c7,
9997 }
9998 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009999 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010000 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010001 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010002 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +000010003 },
10004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010005 {
10006 .vendor = "ST",
10007 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010008 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010009 .manufacture_id = ST_ID,
10010 .model_id = ST_M25P80,
10011 .total_size = 1024,
10012 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010013 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010015 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010016 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010017 .block_erasers =
10018 {
10019 {
10020 .eraseblocks = { {64 * 1024, 16} },
10021 .block_erase = spi_block_erase_d8,
10022 }, {
10023 .eraseblocks = { {1024 * 1024, 1} },
10024 .block_erase = spi_block_erase_c7,
10025 }
10026 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010027 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010028 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010029 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010031 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010032 },
10033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010034 {
10035 .vendor = "ST",
10036 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010037 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010038 .manufacture_id = ST_ID,
10039 .model_id = ST_M25P16,
10040 .total_size = 2048,
10041 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010042 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010043 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010044 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010045 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010046 .block_erasers =
10047 {
10048 {
10049 .eraseblocks = { {64 * 1024, 32} },
10050 .block_erase = spi_block_erase_d8,
10051 }, {
10052 .eraseblocks = { {2 * 1024 * 1024, 1} },
10053 .block_erase = spi_block_erase_c7,
10054 }
10055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010056 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010058 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010059 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010060 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010061 },
10062
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010063 {
10064 .vendor = "ST",
10065 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010066 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010067 .manufacture_id = ST_ID,
10068 .model_id = ST_M25P32,
10069 .total_size = 4096,
10070 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010071 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010072 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010073 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010074 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010075 .block_erasers =
10076 {
10077 {
10078 .eraseblocks = { {64 * 1024, 64} },
10079 .block_erase = spi_block_erase_d8,
10080 }, {
10081 .eraseblocks = { {4 * 1024 * 1024, 1} },
10082 .block_erase = spi_block_erase_c7,
10083 }
10084 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010085 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010086 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010087 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010088 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010089 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010090 },
10091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010092 {
10093 .vendor = "ST",
10094 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010095 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010096 .manufacture_id = ST_ID,
10097 .model_id = ST_M25P64,
10098 .total_size = 8192,
10099 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010100 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010101 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010102 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010103 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010104 .block_erasers =
10105 {
10106 {
10107 .eraseblocks = { {64 * 1024, 128} },
10108 .block_erase = spi_block_erase_d8,
10109 }, {
10110 .eraseblocks = { {8 * 1024 * 1024, 1} },
10111 .block_erase = spi_block_erase_c7,
10112 }
10113 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010114 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010115 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010116 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010117 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010118 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010119 },
10120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010121 {
10122 .vendor = "ST",
10123 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010125 .manufacture_id = ST_ID,
10126 .model_id = ST_M25P128,
10127 .total_size = 16384,
10128 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010129 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010130 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010131 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010132 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010133 .block_erasers =
10134 {
10135 {
10136 .eraseblocks = { {256 * 1024, 64} },
10137 .block_erase = spi_block_erase_d8,
10138 }, {
10139 .eraseblocks = { {16 * 1024 * 1024, 1} },
10140 .block_erase = spi_block_erase_c7,
10141 }
10142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010143 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010144 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010145 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010146 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010147 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010148 },
10149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010150 {
10151 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +000010152 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010153 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +000010154 .manufacture_id = ST_ID,
10155 .model_id = ST_M25PX16,
10156 .total_size = 2048,
10157 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +000010158 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +000010159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +000010160 .tested = TEST_OK_PREW,
10161 .probe = probe_spi_rdid,
10162 .probe_timing = TIMING_ZERO,
10163 .block_erasers =
10164 {
10165 {
10166 .eraseblocks = { { 4 * 1024, 512 } },
10167 .block_erase = spi_block_erase_20,
10168 }, {
10169 .eraseblocks = { {64 * 1024, 32} },
10170 .block_erase = spi_block_erase_d8,
10171 }, {
10172 .eraseblocks = { {2 * 1024 * 1024, 1} },
10173 .block_erase = spi_block_erase_c7,
10174 }
10175 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010176 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +000010177 .unlock = spi_disable_blockprotect,
10178 .write = spi_chip_write_256,
10179 .read = spi_chip_read,
10180 },
10181
10182 {
10183 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +000010184 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010185 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010186 .manufacture_id = ST_ID,
10187 .model_id = ST_M25PX32,
10188 .total_size = 4096,
10189 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010190 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010191 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010192 .probe = probe_spi_rdid,
10193 .probe_timing = TIMING_ZERO,
10194 .block_erasers =
10195 {
10196 {
10197 .eraseblocks = { { 4 * 1024, 1024 } },
10198 .block_erase = spi_block_erase_20,
10199 }, {
10200 .eraseblocks = { {64 * 1024, 64} },
10201 .block_erase = spi_block_erase_d8,
10202 }, {
10203 .eraseblocks = { {4 * 1024 * 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 */
Jason Shriver4119e9b2010-09-14 13:16:01 +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},
Jason Shriver4119e9b2010-09-14 13:16:01 +000010212 },
10213
10214 {
10215 .vendor = "ST",
10216 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010217 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010218 .manufacture_id = ST_ID,
10219 .model_id = ST_M25PX64,
10220 .total_size = 8192,
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,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010224 .probe = probe_spi_rdid,
10225 .probe_timing = TIMING_ZERO,
10226 .block_erasers =
10227 {
10228 {
10229 .eraseblocks = { { 4 * 1024, 2048 } },
10230 .block_erase = spi_block_erase_20,
10231 }, {
10232 .eraseblocks = { {64 * 1024, 128} },
10233 .block_erase = spi_block_erase_d8,
10234 }, {
10235 .eraseblocks = { {8 * 1024 * 1024, 1} },
10236 .block_erase = spi_block_erase_c7,
10237 }
10238 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010239 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010240 .unlock = spi_disable_blockprotect,
10241 .write = spi_chip_write_256,
10242 .read = spi_chip_read,
10243 },
10244
10245 {
10246 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010247 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010248 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010249 .manufacture_id = ST_ID,
10250 .model_id = ST_M29F002B,
10251 .total_size = 256,
10252 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010253 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010254 .tested = TEST_UNTESTED,
10255 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010256 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010257 .block_erasers =
10258 {
10259 {
10260 .eraseblocks = {
10261 {16 * 1024, 1},
10262 {8 * 1024, 2},
10263 {32 * 1024, 1},
10264 {64 * 1024, 3},
10265 },
10266 .block_erase = erase_sector_jedec,
10267 }, {
10268 .eraseblocks = { {256 * 1024, 1} },
10269 .block_erase = erase_chip_block_jedec,
10270 }
10271 },
Sean Nelson35727f72010-01-28 23:55:12 +000010272 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010273 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010274 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010275 },
10276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010277 {
10278 .vendor = "ST",
10279 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010280 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010281 .manufacture_id = ST_ID,
10282 .model_id = ST_M29F002T,
10283 .total_size = 256,
10284 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010285 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010286 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010287 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010288 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010289 .block_erasers =
10290 {
10291 {
10292 .eraseblocks = {
10293 {64 * 1024, 3},
10294 {32 * 1024, 1},
10295 {8 * 1024, 2},
10296 {16 * 1024, 1},
10297 },
10298 .block_erase = erase_sector_jedec,
10299 }, {
10300 .eraseblocks = { {256 * 1024, 1} },
10301 .block_erase = erase_chip_block_jedec,
10302 }
10303 },
Sean Nelson35727f72010-01-28 23:55:12 +000010304 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010305 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010306 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010307 },
10308
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010309 {
10310 .vendor = "ST",
10311 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010312 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010313 .manufacture_id = ST_ID,
10314 .model_id = ST_M29F040B,
10315 .total_size = 512,
10316 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010317 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10318 .tested = TEST_UNTESTED,
10319 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010320 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000010321 .block_erasers =
10322 {
10323 {
10324 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000010325 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010326 }, {
10327 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010328 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010329 }
10330 },
Sean Nelson35727f72010-01-28 23:55:12 +000010331 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010332 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010333 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010334 },
10335
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010336 {
Sean Nelson35727f72010-01-28 23:55:12 +000010337 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010338 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010339 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010340 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010341 .manufacture_id = ST_ID,
10342 .model_id = ST_M29F400BB,
10343 .total_size = 512,
10344 .page_size = 64 * 1024,
10345 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010346 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010347 .probe = probe_m29f400bt,
10348 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
10349 .block_erasers =
10350 {
10351 {
10352 .eraseblocks = {
10353 {16 * 1024, 1},
10354 {8 * 1024, 2},
10355 {32 * 1024, 1},
10356 {64 * 1024, 7},
10357 },
10358 .block_erase = block_erase_m29f400bt,
10359 }, {
10360 .eraseblocks = { {512 * 1024, 1} },
10361 .block_erase = block_erase_chip_m29f400bt,
10362 }
10363 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010364 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010365 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010366 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010367 },
10368 {
10369 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
10370 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010371 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010372 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010373 .manufacture_id = ST_ID,
10374 .model_id = ST_M29F400BT,
10375 .total_size = 512,
10376 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010377 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010378 .tested = TEST_UNTESTED,
10379 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010380 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010381 .block_erasers =
10382 {
10383 {
10384 .eraseblocks = {
10385 {64 * 1024, 7},
10386 {32 * 1024, 1},
10387 {8 * 1024, 2},
10388 {16 * 1024, 1},
10389 },
10390 .block_erase = block_erase_m29f400bt,
10391 }, {
10392 .eraseblocks = { {512 * 1024, 1} },
10393 .block_erase = block_erase_chip_m29f400bt,
10394 }
10395 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010396 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010398 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010399 },
10400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010401 {
10402 .vendor = "ST",
10403 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010404 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010405 .manufacture_id = ST_ID,
10406 .model_id = ST_M29W010B,
10407 .total_size = 128,
10408 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010410 .tested = TEST_UNTESTED,
10411 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010412 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010413 .block_erasers =
10414 {
10415 {
10416 .eraseblocks = { {16 * 1024, 8}, },
10417 .block_erase = erase_sector_jedec,
10418 }, {
10419 .eraseblocks = { {128 * 1024, 1} },
10420 .block_erase = erase_chip_block_jedec,
10421 }
10422 },
Sean Nelson35727f72010-01-28 23:55:12 +000010423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010425 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010426 },
10427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010428 {
10429 .vendor = "ST",
10430 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010432 .manufacture_id = ST_ID,
10433 .model_id = ST_M29W040B,
10434 .total_size = 512,
10435 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010436 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010437 .tested = TEST_UNTESTED,
10438 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010439 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010440 .block_erasers =
10441 {
10442 {
10443 .eraseblocks = { {64 * 1024, 8}, },
10444 .block_erase = erase_sector_jedec,
10445 }, {
10446 .eraseblocks = { {512 * 1024, 1} },
10447 .block_erase = erase_chip_block_jedec,
10448 }
10449 },
Sean Nelson35727f72010-01-28 23:55:12 +000010450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010452 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010453 },
10454
Stefan Taunereb582572012-09-21 12:52:50 +000010455 {
10456 .vendor = "ST",
10457 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010458 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010459 .manufacture_id = ST_ID,
10460 .model_id = ST_M29W512B,
10461 .total_size = 64,
10462 .page_size = 64 * 1024,
10463 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010464 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +000010465 .probe = probe_jedec,
10466 .probe_timing = TIMING_ZERO,
10467 .block_erasers =
10468 {
10469 {
10470 .eraseblocks = { {64 * 1024, 1} },
10471 .block_erase = erase_chip_block_jedec,
10472 }
10473 },
10474 .write = write_jedec_1,
10475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010476 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000010477 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000010478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010479 {
10480 .vendor = "ST",
10481 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010482 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010483 .manufacture_id = ST_ID,
10484 .model_id = ST_M50FLW040A,
10485 .total_size = 512,
10486 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010487 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010488 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010489 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010490 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010491 .block_erasers =
10492 {
10493 {
Sean Nelson329bde72010-01-19 16:39:19 +000010494 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010495 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010496 {64 * 1024, 5}, /* block */
10497 {4 * 1024, 16}, /* sector */
10498 {4 * 1024, 16}, /* sector */
10499 },
10500 .block_erase = NULL,
10501 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010502 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010503 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010504 }
10505 },
Sean Nelson28accc22010-03-19 18:47:06 +000010506 .unlock = unlock_stm50flw0x0x,
10507 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010509 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010510 },
10511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010512 {
10513 .vendor = "ST",
10514 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010515 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 .manufacture_id = ST_ID,
10517 .model_id = ST_M50FLW040B,
10518 .total_size = 512,
10519 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010520 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010521 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010522 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010523 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010524 .block_erasers =
10525 {
10526 {
Sean Nelson329bde72010-01-19 16:39:19 +000010527 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010528 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010529 {4 * 1024, 16}, /* sector */
10530 {64 * 1024, 5}, /* block */
10531 {4 * 1024, 16}, /* sector */
10532 },
10533 .block_erase = NULL,
10534 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010535 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010536 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010537 }
10538 },
Sean Nelson28accc22010-03-19 18:47:06 +000010539 .unlock = unlock_stm50flw0x0x,
10540 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010541 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010542 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010543 },
10544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010545 {
10546 .vendor = "ST",
10547 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010548 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010549 .manufacture_id = ST_ID,
10550 .model_id = ST_M50FLW080A,
10551 .total_size = 1024,
10552 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010553 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010554 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000010555 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010556 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010557 .block_erasers =
10558 {
10559 {
Sean Nelson329bde72010-01-19 16:39:19 +000010560 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010561 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010562 {64 * 1024, 13}, /* block */
10563 {4 * 1024, 16}, /* sector */
10564 {4 * 1024, 16}, /* sector */
10565 },
10566 .block_erase = NULL,
10567 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010568 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010569 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010570 }
10571 },
Sean Nelson28accc22010-03-19 18:47:06 +000010572 .unlock = unlock_stm50flw0x0x,
10573 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010574 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010575 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010576 },
10577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010578 {
10579 .vendor = "ST",
10580 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010581 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010582 .manufacture_id = ST_ID,
10583 .model_id = ST_M50FLW080B,
10584 .total_size = 1024,
10585 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010586 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010587 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010588 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010589 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010590 .block_erasers =
10591 {
10592 {
Sean Nelson329bde72010-01-19 16:39:19 +000010593 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010594 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010595 {4 * 1024, 16}, /* sector */
10596 {64 * 1024, 13}, /* block */
10597 {4 * 1024, 16}, /* sector */
10598 },
10599 .block_erase = NULL,
10600 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010601 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010602 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010603 }
10604 },
Sean Nelson28accc22010-03-19 18:47:06 +000010605 .unlock = unlock_stm50flw0x0x,
10606 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010608 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010609 },
10610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010611 {
10612 .vendor = "ST",
10613 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010614 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010615 .manufacture_id = ST_ID,
10616 .model_id = ST_M50FW002,
10617 .total_size = 256,
10618 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010619 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010620 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010621 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010622 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010623 .block_erasers =
10624 {
10625 {
10626 .eraseblocks = {
10627 {64 * 1024, 3},
10628 {32 * 1024, 1},
10629 {8 * 1024, 2},
10630 {16 * 1024, 1},
10631 },
Sean Nelson28accc22010-03-19 18:47:06 +000010632 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010633 }
10634 },
Sean Nelson28accc22010-03-19 18:47:06 +000010635 .unlock = unlock_stm50flw0x0x,
10636 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010638 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010639 },
10640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010641 {
10642 .vendor = "ST",
10643 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010644 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010645 .manufacture_id = ST_ID,
10646 .model_id = ST_M50FW016,
10647 .total_size = 2048,
10648 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010649 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010650 .tested = TEST_UNTESTED,
10651 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010652 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010653 .block_erasers =
10654 {
10655 {
10656 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010657 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010658 }
10659 },
Sean Nelson28accc22010-03-19 18:47:06 +000010660 .unlock = unlock_stm50flw0x0x,
10661 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010663 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010664 },
10665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010666 {
10667 .vendor = "ST",
10668 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010669 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010670 .manufacture_id = ST_ID,
10671 .model_id = ST_M50FW040,
10672 .total_size = 512,
10673 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010674 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000010675 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010676 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010677 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010678 .block_erasers =
10679 {
10680 {
10681 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010682 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010683 }
10684 },
Sean Nelson28accc22010-03-19 18:47:06 +000010685 .unlock = unlock_stm50flw0x0x,
10686 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010687 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010688 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010689 },
10690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010691 {
10692 .vendor = "ST",
10693 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010694 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010695 .manufacture_id = ST_ID,
10696 .model_id = ST_M50FW080,
10697 .total_size = 1024,
10698 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010699 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010700 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010701 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010702 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010703 .block_erasers =
10704 {
10705 {
10706 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010707 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010708 }
10709 },
Sean Nelson28accc22010-03-19 18:47:06 +000010710 .unlock = unlock_stm50flw0x0x,
10711 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010713 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010714 },
10715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010716 {
10717 .vendor = "ST",
10718 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010719 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010720 .manufacture_id = ST_ID,
10721 .model_id = ST_M50LPW116,
10722 .total_size = 2048,
10723 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010724 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010725 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010726 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000010727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010728 .block_erasers =
10729 {
10730 {
10731 .eraseblocks = {
10732 {4 * 1024, 16},
10733 {64 * 1024, 30},
10734 {32 * 1024, 1},
10735 {8 * 1024, 2},
10736 {16 * 1024, 1},
10737 },
Sean Nelson28accc22010-03-19 18:47:06 +000010738 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010739 }
10740 },
Sean Nelson28accc22010-03-19 18:47:06 +000010741 .unlock = unlock_stm50flw0x0x,
10742 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010744 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010745 },
10746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010747 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010748 .vendor = "SyncMOS/MoselVitelic",
10749 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010750 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010751 .manufacture_id = SYNCMOS_MVC_ID,
10752 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010753 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010754 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010755 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010756 .tested = TEST_UNTESTED,
10757 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010758 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010759 .block_erasers =
10760 {
10761 {
10762 .eraseblocks = { {512, 256} },
10763 .block_erase = erase_sector_jedec,
10764 }, {
10765 .eraseblocks = { {128 * 1024, 1} },
10766 .block_erase = erase_chip_block_jedec,
10767 },
10768 },
Sean Nelson35727f72010-01-28 23:55:12 +000010769 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010771 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010772 },
10773
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010774 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010775 .vendor = "SyncMOS/MoselVitelic",
10776 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010777 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010778 .manufacture_id = SYNCMOS_MVC_ID,
10779 .model_id = SM_MVC_29C51001T,
10780 .total_size = 128,
10781 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010782 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010783 .tested = TEST_UNTESTED,
10784 .probe = probe_jedec,
10785 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10786 .block_erasers =
10787 {
10788 {
10789 .eraseblocks = { {512, 256} },
10790 .block_erase = erase_sector_jedec,
10791 }, {
10792 .eraseblocks = { {128 * 1024, 1} },
10793 .block_erase = erase_chip_block_jedec,
10794 },
10795 },
10796 .write = write_jedec_1,
10797 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010798 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010799 },
10800
10801 {
10802 .vendor = "SyncMOS/MoselVitelic",
10803 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010804 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010805 .manufacture_id = SYNCMOS_MVC_ID,
10806 .model_id = SM_MVC_29C51002B,
10807 .total_size = 256,
10808 .page_size = 512,
10809 .feature_bits = FEATURE_EITHER_RESET,
10810 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010811 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010812 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010813 .block_erasers =
10814 {
10815 {
10816 .eraseblocks = { {512, 512} },
10817 .block_erase = erase_sector_jedec,
10818 }, {
10819 .eraseblocks = { {256 * 1024, 1} },
10820 .block_erase = erase_chip_block_jedec,
10821 },
10822 },
Sean Nelson35727f72010-01-28 23:55:12 +000010823 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010824 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000010825 },
10826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010827 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010828 .vendor = "SyncMOS/MoselVitelic",
10829 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010830 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010831 .manufacture_id = SYNCMOS_MVC_ID,
10832 .model_id = SM_MVC_29C51002T,
10833 .total_size = 256,
10834 .page_size = 512,
10835 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010836 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010837 .probe = probe_jedec,
10838 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10839 .block_erasers =
10840 {
10841 {
10842 .eraseblocks = { {512, 512} },
10843 .block_erase = erase_sector_jedec,
10844 }, {
10845 .eraseblocks = { {256 * 1024, 1} },
10846 .block_erase = erase_chip_block_jedec,
10847 },
10848 },
10849 .write = write_jedec_1,
10850 .read = read_memmapped,
10851 },
10852
10853 {
10854 .vendor = "SyncMOS/MoselVitelic",
10855 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010856 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010857 .manufacture_id = SYNCMOS_MVC_ID,
10858 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010859 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010860 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010861 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010862 .tested = TEST_UNTESTED,
10863 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010864 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010865 .block_erasers =
10866 {
10867 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010868 .eraseblocks = { {1024, 512} },
10869 .block_erase = erase_sector_jedec,
10870 }, {
10871 .eraseblocks = { {512 * 1024, 1} },
10872 .block_erase = erase_chip_block_jedec,
10873 },
10874 },
10875 .write = write_jedec_1,
10876 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010877 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010878 },
10879
10880 {
10881 .vendor = "SyncMOS/MoselVitelic",
10882 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010883 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010884 .manufacture_id = SYNCMOS_MVC_ID,
10885 .model_id = SM_MVC_29C51004T,
10886 .total_size = 512,
10887 .page_size = 1024,
10888 .feature_bits = FEATURE_EITHER_RESET,
10889 .tested = TEST_UNTESTED,
10890 .probe = probe_jedec,
10891 .probe_timing = TIMING_ZERO,
10892 .block_erasers =
10893 {
10894 {
10895 .eraseblocks = { {1024, 512} },
10896 .block_erase = erase_sector_jedec,
10897 }, {
10898 .eraseblocks = { {512 * 1024, 1} },
10899 .block_erase = erase_chip_block_jedec,
10900 },
10901 },
10902 .write = write_jedec_1,
10903 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010904 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010905 },
10906
10907 {
10908 .vendor = "SyncMOS/MoselVitelic",
10909 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010910 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010911 .manufacture_id = SYNCMOS_MVC_ID,
10912 .model_id = SM_MVC_29C31004B,
10913 .total_size = 512,
10914 .page_size = 1024,
10915 .feature_bits = FEATURE_EITHER_RESET,
10916 .tested = TEST_UNTESTED,
10917 .probe = probe_jedec,
10918 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10919 .block_erasers =
10920 {
10921 {
10922 .eraseblocks = { {1024, 512} },
10923 .block_erase = erase_sector_jedec,
10924 }, {
10925 .eraseblocks = { {512 * 1024, 1} },
10926 .block_erase = erase_chip_block_jedec,
10927 },
10928 },
10929 .write = write_jedec_1,
10930 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010931 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010932 },
10933
10934 {
10935 .vendor = "SyncMOS/MoselVitelic",
10936 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010937 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010938 .manufacture_id = SYNCMOS_MVC_ID,
10939 .model_id = SM_MVC_29C31004T,
10940 .total_size = 512,
10941 .page_size = 1024,
10942 .feature_bits = FEATURE_EITHER_RESET,
10943 .tested = TEST_UNTESTED,
10944 .probe = probe_jedec,
10945 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10946 .block_erasers =
10947 {
10948 {
10949 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000010950 .block_erase = erase_sector_jedec,
10951 }, {
10952 .eraseblocks = { {512 * 1024, 1} },
10953 .block_erase = erase_chip_block_jedec,
10954 },
10955 },
Sean Nelson35727f72010-01-28 23:55:12 +000010956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010958 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010959 },
10960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010961 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010962 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010963 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010964 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010965 .manufacture_id = TI_OLD_ID,
10966 .model_id = TI_TMS29F002RB,
10967 .total_size = 256,
10968 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010969 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010970 .tested = TEST_UNTESTED,
10971 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010972 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010973 .block_erasers =
10974 {
10975 {
10976 .eraseblocks = {
10977 {16 * 1024, 1},
10978 {8 * 1024, 2},
10979 {32 * 1024, 1},
10980 {64 * 1024, 3},
10981 },
10982 .block_erase = erase_sector_jedec,
10983 }, {
10984 .eraseblocks = { {256 * 1024, 1} },
10985 .block_erase = erase_chip_block_jedec,
10986 },
10987 },
Sean Nelson35727f72010-01-28 23:55:12 +000010988 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010989 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010990 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010991 },
10992
10993 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010994 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010995 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010996 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010997 .manufacture_id = TI_OLD_ID,
10998 .model_id = TI_TMS29F002RT,
10999 .total_size = 256,
11000 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011001 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011002 .tested = TEST_UNTESTED,
11003 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011004 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011005 .block_erasers =
11006 {
11007 {
11008 .eraseblocks = {
11009 {64 * 1024, 3},
11010 {32 * 1024, 1},
11011 {8 * 1024, 2},
11012 {16 * 1024, 1},
11013 },
11014 .block_erase = erase_sector_jedec,
11015 }, {
11016 .eraseblocks = { {256 * 1024, 1} },
11017 .block_erase = erase_chip_block_jedec,
11018 },
11019 },
Sean Nelson35727f72010-01-28 23:55:12 +000011020 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011022 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011023 },
11024
11025 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011026 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011027 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011028 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011029 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011030 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011031 .total_size = 1024,
11032 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011033 /* supports SFDP */
11034 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011035 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011036 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011037 .probe = probe_spi_rdid,
11038 .probe_timing = TIMING_ZERO,
11039 .block_erasers =
11040 {
11041 {
11042 .eraseblocks = { {4 * 1024, 256} },
11043 .block_erase = spi_block_erase_20,
11044 }, {
11045 .eraseblocks = { {32 * 1024, 32} },
11046 .block_erase = spi_block_erase_52,
11047 }, {
11048 .eraseblocks = { {64 * 1024, 16} },
11049 .block_erase = spi_block_erase_d8,
11050 }, {
11051 .eraseblocks = { {1024 * 1024, 1} },
11052 .block_erase = spi_block_erase_60,
11053 }, {
11054 .eraseblocks = { {1024 * 1024, 1} },
11055 .block_erase = spi_block_erase_c7,
11056 }
11057 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011058 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011059 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011060 .write = spi_chip_write_256,
11061 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011062 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011063 },
11064
11065 {
11066 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011067 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011068 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011069 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011070 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011071 .total_size = 2048,
11072 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011073 /* supports SFDP */
11074 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011075 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011076 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011077 .probe = probe_spi_rdid,
11078 .probe_timing = TIMING_ZERO,
11079 .block_erasers =
11080 {
11081 {
11082 .eraseblocks = { {4 * 1024, 512} },
11083 .block_erase = spi_block_erase_20,
11084 }, {
11085 .eraseblocks = { {32 * 1024, 64} },
11086 .block_erase = spi_block_erase_52,
11087 }, {
11088 .eraseblocks = { {64 * 1024, 32} },
11089 .block_erase = spi_block_erase_d8,
11090 }, {
11091 .eraseblocks = { {2 * 1024 * 1024, 1} },
11092 .block_erase = spi_block_erase_60,
11093 }, {
11094 .eraseblocks = { {2 * 1024 * 1024, 1} },
11095 .block_erase = spi_block_erase_c7,
11096 }
11097 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011099 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011100 .write = spi_chip_write_256,
11101 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011102 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011103 },
11104
11105 {
11106 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011107 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011108 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011109 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011110 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011111 .total_size = 4096,
11112 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011113 /* supports SFDP */
11114 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011115 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011116 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011117 .probe = probe_spi_rdid,
11118 .probe_timing = TIMING_ZERO,
11119 .block_erasers =
11120 {
11121 {
11122 .eraseblocks = { {4 * 1024, 1024} },
11123 .block_erase = spi_block_erase_20,
11124 }, {
11125 .eraseblocks = { {32 * 1024, 128} },
11126 .block_erase = spi_block_erase_52,
11127 }, {
11128 .eraseblocks = { {64 * 1024, 64} },
11129 .block_erase = spi_block_erase_d8,
11130 }, {
11131 .eraseblocks = { {4 * 1024 * 1024, 1} },
11132 .block_erase = spi_block_erase_60,
11133 }, {
11134 .eraseblocks = { {4 * 1024 * 1024, 1} },
11135 .block_erase = spi_block_erase_c7,
11136 }
11137 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011138 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011139 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011140 .write = spi_chip_write_256,
11141 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011142 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011143 },
11144
11145 {
11146 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011147 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011148 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000011149 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011150 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000011151 .total_size = 8192,
11152 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011153 /* supports SFDP */
11154 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011155 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011156 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000011157 .probe = probe_spi_rdid,
11158 .probe_timing = TIMING_ZERO,
11159 .block_erasers =
11160 {
11161 {
11162 .eraseblocks = { {4 * 1024, 2048} },
11163 .block_erase = spi_block_erase_20,
11164 }, {
11165 .eraseblocks = { {32 * 1024, 256} },
11166 .block_erase = spi_block_erase_52,
11167 }, {
11168 .eraseblocks = { {64 * 1024, 128} },
11169 .block_erase = spi_block_erase_d8,
11170 }, {
11171 .eraseblocks = { {8 * 1024 * 1024, 1} },
11172 .block_erase = spi_block_erase_60,
11173 }, {
11174 .eraseblocks = { {8 * 1024 * 1024, 1} },
11175 .block_erase = spi_block_erase_c7,
11176 }
11177 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011178 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011179 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000011180 .write = spi_chip_write_256,
11181 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011182 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000011183 },
11184
11185 {
11186 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011187 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011188 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011189 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011190 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011191 .total_size = 16384,
11192 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011193 /* supports SFDP */
11194 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011196 .tested = TEST_OK_PROBE,
11197 .probe = probe_spi_rdid,
11198 .probe_timing = TIMING_ZERO,
11199 .block_erasers =
11200 {
11201 {
11202 .eraseblocks = { {4 * 1024, 4096} },
11203 .block_erase = spi_block_erase_20,
11204 }, {
11205 .eraseblocks = { {32 * 1024, 512} },
11206 .block_erase = spi_block_erase_52,
11207 }, {
11208 .eraseblocks = { {64 * 1024, 256} },
11209 .block_erase = spi_block_erase_d8,
11210 }, {
11211 .eraseblocks = { {16 * 1024 * 1024, 1} },
11212 .block_erase = spi_block_erase_60,
11213 }, {
11214 .eraseblocks = { {16 * 1024 * 1024, 1} },
11215 .block_erase = spi_block_erase_c7,
11216 }
11217 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011218 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011219 .unlock = spi_disable_blockprotect,
11220 .write = spi_chip_write_256,
11221 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011222 .voltage = {2700, 3600},
11223 },
11224
11225 {
11226 .vendor = "Winbond",
11227 .name = "W25Q20.W",
11228 .bustype = BUS_SPI,
11229 .manufacture_id = WINBOND_NEX_ID,
11230 .model_id = WINBOND_NEX_W25Q20_W,
11231 .total_size = 256,
11232 .page_size = 256,
11233 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11235 .tested = TEST_UNTESTED,
11236 .probe = probe_spi_rdid,
11237 .probe_timing = TIMING_ZERO,
11238 .block_erasers =
11239 {
11240 {
11241 .eraseblocks = { {4 * 1024, 64} },
11242 .block_erase = spi_block_erase_20,
11243 }, {
11244 .eraseblocks = { {32 * 1024, 8} },
11245 .block_erase = spi_block_erase_52,
11246 }, {
11247 .eraseblocks = { {64 * 1024, 4} },
11248 .block_erase = spi_block_erase_d8,
11249 }, {
11250 .eraseblocks = { {256 * 1024, 1} },
11251 .block_erase = spi_block_erase_60,
11252 }, {
11253 .eraseblocks = { {256 * 1024, 1} },
11254 .block_erase = spi_block_erase_c7,
11255 }
11256 },
11257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11258 .unlock = spi_disable_blockprotect,
11259 .write = spi_chip_write_256,
11260 .read = spi_chip_read,
11261 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11262 },
11263
11264 {
11265 .vendor = "Winbond",
11266 .name = "W25Q40.W",
11267 .bustype = BUS_SPI,
11268 .manufacture_id = WINBOND_NEX_ID,
11269 .model_id = WINBOND_NEX_W25Q40_W,
11270 .total_size = 512,
11271 .page_size = 256,
11272 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11274 .tested = TEST_UNTESTED,
11275 .probe = probe_spi_rdid,
11276 .probe_timing = TIMING_ZERO,
11277 .block_erasers =
11278 {
11279 {
11280 .eraseblocks = { {4 * 1024, 128} },
11281 .block_erase = spi_block_erase_20,
11282 }, {
11283 .eraseblocks = { {32 * 1024, 16} },
11284 .block_erase = spi_block_erase_52,
11285 }, {
11286 .eraseblocks = { {64 * 1024, 8} },
11287 .block_erase = spi_block_erase_d8,
11288 }, {
11289 .eraseblocks = { {512 * 1024, 1} },
11290 .block_erase = spi_block_erase_60,
11291 }, {
11292 .eraseblocks = { {512 * 1024, 1} },
11293 .block_erase = spi_block_erase_c7,
11294 }
11295 },
11296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11297 .unlock = spi_disable_blockprotect,
11298 .write = spi_chip_write_256,
11299 .read = spi_chip_read,
11300 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11301 },
11302
11303 {
11304 .vendor = "Winbond",
11305 .name = "W25Q80.W",
11306 .bustype = BUS_SPI,
11307 .manufacture_id = WINBOND_NEX_ID,
11308 .model_id = WINBOND_NEX_W25Q80_W,
11309 .total_size = 1024,
11310 .page_size = 256,
11311 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11312 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11313 .tested = TEST_UNTESTED,
11314 .probe = probe_spi_rdid,
11315 .probe_timing = TIMING_ZERO,
11316 .block_erasers =
11317 {
11318 {
11319 .eraseblocks = { {4 * 1024, 256} },
11320 .block_erase = spi_block_erase_20,
11321 }, {
11322 .eraseblocks = { {32 * 1024, 32} },
11323 .block_erase = spi_block_erase_52,
11324 }, {
11325 .eraseblocks = { {64 * 1024, 16} },
11326 .block_erase = spi_block_erase_d8,
11327 }, {
11328 .eraseblocks = { {1 * 1024 * 1024, 1} },
11329 .block_erase = spi_block_erase_60,
11330 }, {
11331 .eraseblocks = { {1 * 1024 * 1024, 1} },
11332 .block_erase = spi_block_erase_c7,
11333 }
11334 },
11335 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11336 .unlock = spi_disable_blockprotect,
11337 .write = spi_chip_write_256,
11338 .read = spi_chip_read,
11339 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11340 },
11341
11342 {
11343 .vendor = "Winbond",
11344 .name = "W25Q16.W",
11345 .bustype = BUS_SPI,
11346 .manufacture_id = WINBOND_NEX_ID,
11347 .model_id = WINBOND_NEX_W25Q16_W,
11348 .total_size = 2048,
11349 .page_size = 256,
11350 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11351 /* QPI enable 0x38, disable 0xFF */
11352 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11353 .tested = TEST_UNTESTED,
11354 .probe = probe_spi_rdid,
11355 .probe_timing = TIMING_ZERO,
11356 .block_erasers =
11357 {
11358 {
11359 .eraseblocks = { {4 * 1024, 512} },
11360 .block_erase = spi_block_erase_20,
11361 }, {
11362 .eraseblocks = { {32 * 1024, 64} },
11363 .block_erase = spi_block_erase_52,
11364 }, {
11365 .eraseblocks = { {64 * 1024, 32} },
11366 .block_erase = spi_block_erase_d8,
11367 }, {
11368 .eraseblocks = { {2 * 1024 * 1024, 1} },
11369 .block_erase = spi_block_erase_60,
11370 }, {
11371 .eraseblocks = { {2 * 1024 * 1024, 1} },
11372 .block_erase = spi_block_erase_c7,
11373 }
11374 },
11375 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11376 .unlock = spi_disable_blockprotect,
11377 .write = spi_chip_write_256,
11378 .read = spi_chip_read,
11379 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11380 },
11381
11382 {
11383 .vendor = "Winbond",
11384 .name = "W25Q32.W",
11385 .bustype = BUS_SPI,
11386 .manufacture_id = WINBOND_NEX_ID,
11387 .model_id = WINBOND_NEX_W25Q32_W,
11388 .total_size = 4096,
11389 .page_size = 256,
11390 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11391 /* QPI enable 0x38, disable 0xFF */
11392 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11393 .tested = TEST_OK_PREW,
11394 .probe = probe_spi_rdid,
11395 .probe_timing = TIMING_ZERO,
11396 .block_erasers =
11397 {
11398 {
11399 .eraseblocks = { {4 * 1024, 1024} },
11400 .block_erase = spi_block_erase_20,
11401 }, {
11402 .eraseblocks = { {32 * 1024, 128} },
11403 .block_erase = spi_block_erase_52,
11404 }, {
11405 .eraseblocks = { {64 * 1024, 64} },
11406 .block_erase = spi_block_erase_d8,
11407 }, {
11408 .eraseblocks = { {4 * 1024 * 1024, 1} },
11409 .block_erase = spi_block_erase_60,
11410 }, {
11411 .eraseblocks = { {4 * 1024 * 1024, 1} },
11412 .block_erase = spi_block_erase_c7,
11413 }
11414 },
11415 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11416 .unlock = spi_disable_blockprotect,
11417 .write = spi_chip_write_256,
11418 .read = spi_chip_read,
11419 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11420 },
11421
11422 {
11423 .vendor = "Winbond",
11424 .name = "W25Q64.W",
11425 .bustype = BUS_SPI,
11426 .manufacture_id = WINBOND_NEX_ID,
11427 .model_id = WINBOND_NEX_W25Q64_W,
11428 .total_size = 8192,
11429 .page_size = 256,
11430 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11431 /* QPI enable 0x38, disable 0xFF */
11432 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11433 .tested = TEST_UNTESTED,
11434 .probe = probe_spi_rdid,
11435 .probe_timing = TIMING_ZERO,
11436 .block_erasers =
11437 {
11438 {
11439 .eraseblocks = { {4 * 1024, 2048} },
11440 .block_erase = spi_block_erase_20,
11441 }, {
11442 .eraseblocks = { {32 * 1024, 256} },
11443 .block_erase = spi_block_erase_52,
11444 }, {
11445 .eraseblocks = { {64 * 1024, 128} },
11446 .block_erase = spi_block_erase_d8,
11447 }, {
11448 .eraseblocks = { {8 * 1024 * 1024, 1} },
11449 .block_erase = spi_block_erase_60,
11450 }, {
11451 .eraseblocks = { {8 * 1024 * 1024, 1} },
11452 .block_erase = spi_block_erase_c7,
11453 }
11454 },
11455 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11456 .unlock = spi_disable_blockprotect,
11457 .write = spi_chip_write_256,
11458 .read = spi_chip_read,
11459 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011460 },
11461
11462 {
11463 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011464 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011465 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011466 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011467 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011468 .total_size = 128,
11469 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011470 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011472 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011473 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011474 .block_erasers =
11475 {
11476 {
11477 .eraseblocks = { {4 * 1024, 32} },
11478 .block_erase = spi_block_erase_20,
11479 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011480 .eraseblocks = { {64 * 1024, 2} },
11481 .block_erase = spi_block_erase_d8,
11482 }, {
11483 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011484 .block_erase = spi_block_erase_c7,
11485 }
11486 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011488 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011489 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011490 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011491 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011492 },
11493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011494 {
11495 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011496 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011497 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011498 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011499 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011500 .total_size = 256,
11501 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011502 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011503 .tested = TEST_UNTESTED,
11504 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011505 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011506 .block_erasers =
11507 {
11508 {
11509 .eraseblocks = { {4 * 1024, 64} },
11510 .block_erase = spi_block_erase_20,
11511 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011512 .eraseblocks = { {64 * 1024, 4} },
11513 .block_erase = spi_block_erase_d8,
11514 }, {
11515 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011516 .block_erase = spi_block_erase_c7,
11517 }
11518 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011519 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011520 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011521 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011522 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011523 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011524 },
11525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011526 {
11527 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011528 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011529 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011530 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011531 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011532 .total_size = 512,
11533 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011534 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000011535 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011536 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011537 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011538 .block_erasers =
11539 {
11540 {
11541 .eraseblocks = { {4 * 1024, 128} },
11542 .block_erase = spi_block_erase_20,
11543 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011544 .eraseblocks = { {64 * 1024, 8} },
11545 .block_erase = spi_block_erase_d8,
11546 }, {
11547 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011548 .block_erase = spi_block_erase_c7,
11549 }
11550 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011552 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011553 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011554 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011555 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011556 },
11557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011558 {
11559 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011560 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011561 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011562 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011563 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011564 .total_size = 1024,
11565 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011566 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000011567 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011568 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011569 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011570 .block_erasers =
11571 {
11572 {
11573 .eraseblocks = { {4 * 1024, 256} },
11574 .block_erase = spi_block_erase_20,
11575 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011576 .eraseblocks = { {64 * 1024, 16} },
11577 .block_erase = spi_block_erase_d8,
11578 }, {
11579 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011580 .block_erase = spi_block_erase_c7,
11581 }
11582 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011583 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011585 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011587 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011588 },
11589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011590 {
11591 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011592 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011593 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000011594 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011595 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000011596 .total_size = 2048,
11597 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011598 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000011599 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000011600 .probe = probe_spi_rdid,
11601 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011602 .block_erasers =
11603 {
11604 {
11605 .eraseblocks = { {4 * 1024, 512} },
11606 .block_erase = spi_block_erase_20,
11607 }, {
11608 .eraseblocks = { {32 * 1024, 64} },
11609 .block_erase = spi_block_erase_52,
11610 }, {
11611 .eraseblocks = { {64 * 1024, 32} },
11612 .block_erase = spi_block_erase_d8,
11613 }, {
11614 .eraseblocks = { {2 * 1024 * 1024, 1} },
11615 .block_erase = spi_block_erase_60,
11616 }, {
11617 .eraseblocks = { {2 * 1024 * 1024, 1} },
11618 .block_erase = spi_block_erase_c7,
11619 }
11620 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011621 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011622 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000011623 .write = spi_chip_write_256,
11624 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011625 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000011626 },
11627
11628 {
11629 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011630 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011631 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011632 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011633 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000011634 .total_size = 4096,
11635 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011636 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000011637 .tested = TEST_OK_PROBE,
11638 .probe = probe_spi_rdid,
11639 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011640 .block_erasers =
11641 {
11642 {
11643 .eraseblocks = { {4 * 1024, 1024} },
11644 .block_erase = spi_block_erase_20,
11645 }, {
11646 .eraseblocks = { {32 * 1024, 128} },
11647 .block_erase = spi_block_erase_52,
11648 }, {
11649 .eraseblocks = { {64 * 1024, 64} },
11650 .block_erase = spi_block_erase_d8,
11651 }, {
11652 .eraseblocks = { {4 * 1024 * 1024, 1} },
11653 .block_erase = spi_block_erase_60,
11654 }, {
11655 .eraseblocks = { {4 * 1024 * 1024, 1} },
11656 .block_erase = spi_block_erase_c7,
11657 }
11658 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011659 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011660 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011661 .write = spi_chip_write_256,
11662 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011663 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011664 },
11665
11666 {
11667 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011668 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011669 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011670 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011671 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000011672 .total_size = 8192,
11673 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011674 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011675 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000011676 .probe = probe_spi_rdid,
11677 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011678 .block_erasers =
11679 {
11680 {
11681 .eraseblocks = { {4 * 1024, 2048} },
11682 .block_erase = spi_block_erase_20,
11683 }, {
11684 .eraseblocks = { {32 * 1024, 256} },
11685 .block_erase = spi_block_erase_52,
11686 }, {
11687 .eraseblocks = { {64 * 1024, 128} },
11688 .block_erase = spi_block_erase_d8,
11689 }, {
11690 .eraseblocks = { {8 * 1024 * 1024, 1} },
11691 .block_erase = spi_block_erase_60,
11692 }, {
11693 .eraseblocks = { {8 * 1024 * 1024, 1} },
11694 .block_erase = spi_block_erase_c7,
11695 }
11696 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011697 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011698 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011699 .write = spi_chip_write_256,
11700 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011701 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011702 },
11703
11704 {
11705 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011706 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011707 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011708 .manufacture_id = WINBOND_ID,
11709 .model_id = WINBOND_W29C010,
11710 .total_size = 128,
11711 .page_size = 128,
11712 .feature_bits = FEATURE_LONG_RESET,
11713 .tested = TEST_OK_PRE,
11714 .probe = probe_w29ee011,
11715 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
11716 .block_erasers =
11717 {
11718 {
11719 .eraseblocks = { {128 * 1024, 1} },
11720 .block_erase = erase_chip_block_jedec,
11721 }
11722 },
11723 .write = write_jedec,
11724 .read = read_memmapped,
11725 },
11726
11727 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
11728 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011729 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011730 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011732 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011733 .total_size = 128,
11734 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011735 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000011736 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011737 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011738 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011739 .block_erasers =
11740 {
11741 {
11742 .eraseblocks = { {128 * 1024, 1} },
11743 .block_erase = erase_chip_block_jedec,
11744 }
11745 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011746 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011747 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011748 },
11749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011750 {
11751 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011752 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011753 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011754 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011755 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011756 .total_size = 256,
11757 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011758 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011759 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011760 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011761 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011762 .block_erasers =
11763 {
11764 {
11765 .eraseblocks = { {256 * 1024, 1} },
11766 .block_erase = erase_chip_block_jedec,
11767 }
11768 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011769 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011771 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011772 },
11773
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011774 {
11775 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011776 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011777 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011778 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011779 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011780 .total_size = 512,
11781 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011782 .feature_bits = FEATURE_LONG_RESET,
11783 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011784 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000011785 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011786 .block_erasers =
11787 {
11788 {
11789 .eraseblocks = { {512 * 1024, 1} },
11790 .block_erase = erase_chip_block_jedec,
11791 }
11792 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011793 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011795 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011796 },
11797
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011798 {
11799 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000011800 .name = "W39F010",
11801 .bustype = BUS_PARALLEL,
11802 .manufacture_id = WINBOND_ID,
11803 .model_id = WINBOND_W39F010,
11804 .total_size = 128,
11805 .page_size = 4 * 1024,
11806 .feature_bits = FEATURE_EITHER_RESET,
11807 .tested = TEST_OK_PREW,
11808 .probe = probe_jedec,
11809 .probe_timing = 10,
11810 .block_erasers =
11811 {
11812 {
11813 .eraseblocks = { {4 * 1024, 32} },
11814 .block_erase = erase_block_jedec,
11815 }, {
11816 .eraseblocks = { {128 * 1024, 1} },
11817 .block_erase = erase_chip_block_jedec,
11818 }
11819 },
11820 .printlock = printlock_w39f010,
11821 .write = write_jedec_1,
11822 .read = read_memmapped,
11823 .voltage = {4500, 5500},
11824 },
11825
11826 {
11827 .vendor = "Winbond",
11828 .name = "W39L010",
11829 .bustype = BUS_PARALLEL,
11830 .manufacture_id = WINBOND_ID,
11831 .model_id = WINBOND_W39L010,
11832 .total_size = 128,
11833 .page_size = 4 * 1024,
11834 .feature_bits = FEATURE_EITHER_RESET,
11835 .tested = TEST_UNTESTED,
11836 .probe = probe_jedec,
11837 .probe_timing = 10,
11838 .block_erasers =
11839 {
11840 {
11841 .eraseblocks = { {4 * 1024, 32} },
11842 .block_erase = erase_block_jedec,
11843 }, {
11844 .eraseblocks = { {128 * 1024, 1} },
11845 .block_erase = erase_chip_block_jedec,
11846 }
11847 },
11848 .printlock = printlock_w39l010,
11849 .write = write_jedec_1,
11850 .read = read_memmapped,
11851 .voltage = {3000, 3600},
11852 },
11853
11854 {
11855 .vendor = "Winbond",
11856 .name = "W39L020",
11857 .bustype = BUS_PARALLEL,
11858 .manufacture_id = WINBOND_ID,
11859 .model_id = WINBOND_W39L020,
11860 .total_size = 256,
11861 .page_size = 4 * 1024,
11862 .feature_bits = FEATURE_EITHER_RESET,
11863 .tested = TEST_UNTESTED,
11864 .probe = probe_jedec,
11865 .probe_timing = 10,
11866 .block_erasers =
11867 {
11868 {
11869 .eraseblocks = { {4 * 1024, 64} },
11870 .block_erase = erase_block_jedec,
11871 }, {
11872 .eraseblocks = { {64 * 1024, 4} },
11873 .block_erase = erase_sector_jedec,
11874 }, {
11875 .eraseblocks = { {256 * 1024, 1} },
11876 .block_erase = erase_chip_block_jedec,
11877 }
11878 },
11879 .printlock = printlock_w39l020,
11880 .write = write_jedec_1,
11881 .read = read_memmapped,
11882 .voltage = {3000, 3600},
11883 },
11884
11885 {
11886 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000011887 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011888 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000011889 .manufacture_id = WINBOND_ID,
11890 .model_id = WINBOND_W39L040,
11891 .total_size = 512,
11892 .page_size = 64 * 1024,
11893 .feature_bits = FEATURE_EITHER_RESET,
11894 .tested = TEST_OK_PR,
11895 .probe = probe_jedec,
11896 .probe_timing = 10,
11897 .block_erasers =
11898 {
11899 {
11900 .eraseblocks = { {4 * 1024, 128} },
11901 .block_erase = erase_block_jedec,
11902 }, {
11903 .eraseblocks = { {64 * 1024, 8} },
11904 .block_erase = erase_sector_jedec,
11905 }, {
11906 .eraseblocks = { {512 * 1024, 1} },
11907 .block_erase = erase_chip_block_jedec,
11908 }
11909 },
11910 .printlock = printlock_w39l040,
11911 .write = write_jedec_1,
11912 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011913 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000011914 },
11915
11916 {
11917 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011918 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011919 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011920 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011921 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011922 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011923 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011924 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011925 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011926 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000011927 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011928 .block_erasers =
11929 {
11930 {
11931 .eraseblocks = { {64 * 1024, 8} },
11932 .block_erase = erase_sector_jedec,
11933 }, {
11934 .eraseblocks = { {512 * 1024, 1} },
11935 .block_erase = erase_chip_block_jedec,
11936 }
11937 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011938 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000011939 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011940 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011941 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011942 },
11943
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011944 {
11945 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011946 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011947 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011948 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011949 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011950 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011951 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011952 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011953 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011954 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000011955 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011956 .block_erasers =
11957 {
11958 {
11959 .eraseblocks = { {64 * 1024, 8} },
11960 .block_erase = erase_sector_jedec,
11961 }, {
11962 .eraseblocks = { {512 * 1024, 1} },
11963 .block_erase = erase_chip_block_jedec,
11964 }
11965 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011966 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000011967 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011969 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011970 },
11971
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011972 {
11973 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011974 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011975 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011976 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011977 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011978 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011979 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011980 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011981 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011982 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011983 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011984 .block_erasers =
11985 {
11986 {
11987 .eraseblocks = { {64 * 1024, 8} },
11988 .block_erase = erase_sector_jedec,
11989 }, {
11990 .eraseblocks = { {512 * 1024, 1} },
11991 .block_erase = erase_chip_block_jedec,
11992 }
11993 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011994 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000011995 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011996 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011997 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011998 },
11999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012000 {
12001 .vendor = "Winbond",
12002 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012003 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012004 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012005 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012006 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012007 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012008 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012009 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012010 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012011 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012012 .block_erasers =
12013 {
12014 {
12015 .eraseblocks = { {4 * 1024, 128} },
12016 .block_erase = erase_block_jedec,
12017 }, {
12018 .eraseblocks = { {64 * 1024, 8} },
12019 .block_erase = erase_sector_jedec,
12020 }, {
12021 .eraseblocks = { {512 * 1024, 1} },
12022 .block_erase = erase_chip_block_jedec,
12023 }
12024 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012025 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012026 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012027 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012029 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012030 },
12031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012032 {
12033 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012034 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012035 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012036 .manufacture_id = WINBOND_ID,
12037 .model_id = WINBOND_W39V040B,
12038 .total_size = 512,
12039 .page_size = 64 * 1024,
12040 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012041 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012042 .probe = probe_jedec,
12043 .probe_timing = 10,
12044 .block_erasers =
12045 {
12046 {
12047 .eraseblocks = { {64 * 1024, 8} },
12048 .block_erase = erase_sector_jedec,
12049 }, {
12050 .eraseblocks = { {512 * 1024, 1} },
12051 .block_erase = erase_chip_block_jedec,
12052 }
12053 },
12054 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012055 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012056 .write = write_jedec_1,
12057 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012058 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012059 },
12060
12061 {
12062 .vendor = "Winbond",
12063 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012064 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012065 .manufacture_id = WINBOND_ID,
12066 .model_id = WINBOND_W39V040C,
12067 .total_size = 512,
12068 .page_size = 64 * 1024,
12069 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012070 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012071 .probe = probe_jedec,
12072 .probe_timing = 10,
12073 .block_erasers =
12074 {
12075 {
12076 .eraseblocks = { {64 * 1024, 8} },
12077 .block_erase = erase_sector_jedec,
12078 }, {
12079 .eraseblocks = { {512 * 1024, 1} },
12080 .block_erase = erase_chip_block_jedec,
12081 }
12082 },
12083 .printlock = printlock_w39v040fc,
12084 .write = write_jedec_1,
12085 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012086 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012087 },
12088
12089 {
12090 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012091 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012092 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012093 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012094 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012095 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012096 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012097 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012098 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012099 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012100 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012101 .block_erasers =
12102 {
12103 {
12104 .eraseblocks = { {64 * 1024, 16} },
12105 .block_erase = erase_sector_jedec,
12106 }, {
12107 .eraseblocks = { {1024 * 1024, 1} },
12108 .block_erase = erase_chip_block_jedec,
12109 }
12110 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012111 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012112 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012113 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012114 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012115 },
12116
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012117 {
12118 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012119 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012120 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012121 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012122 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012123 .total_size = 256,
12124 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012125 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012126 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012127 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012128 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012129 .block_erasers =
12130 {
12131 {
12132 .eraseblocks = {
12133 {128 * 1024, 1},
12134 {96 * 1024, 1},
12135 {8 * 1024, 2},
12136 {16 * 1024, 1},
12137 },
12138 .block_erase = erase_sector_jedec,
12139 }, {
12140 .eraseblocks = { {256 * 1024, 1} },
12141 .block_erase = erase_chip_block_jedec,
12142 }
12143 },
Sean Nelson35727f72010-01-28 23:55:12 +000012144 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012145 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012146 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012147 },
12148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012149 {
12150 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012151 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012152 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012153 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012154 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012155 .total_size = 256,
12156 .page_size = 128,
12157 .feature_bits = FEATURE_EITHER_RESET,
12158 .tested = TEST_OK_PROBE,
12159 .probe = probe_jedec,
12160 .probe_timing = 10,
12161 .block_erasers =
12162 {
12163 {
12164 .eraseblocks = { {256 * 1024, 1} },
12165 .block_erase = erase_chip_block_jedec,
12166 }
12167 },
12168 .write = write_jedec_1,
12169 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012170 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012171 },
12172
12173 {
12174 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012175 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012176 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012177 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012178 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012179 .total_size = 256,
12180 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012181 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012182 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012183 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012184 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012185 .block_erasers =
12186 {
12187 {
12188 .eraseblocks = {
12189 {64 * 1024, 3},
12190 {32 * 1024, 1},
12191 {8 * 1024, 2},
12192 {16 * 1024, 1},
12193 },
12194 .block_erase = erase_sector_jedec,
12195 }, {
12196 .eraseblocks = { {256 * 1024, 1} },
12197 .block_erase = erase_chip_block_jedec,
12198 }
12199 },
Sean Nelson35727f72010-01-28 23:55:12 +000012200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012202 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012203 },
12204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012205 {
12206 .vendor = "Winbond",
12207 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012208 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012209 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012210 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012211 .total_size = 256,
12212 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012213 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012216 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012217 .block_erasers =
12218 {
12219 {
12220 .eraseblocks = {
12221 {64 * 1024, 3},
12222 {32 * 1024, 1},
12223 {8 * 1024, 2},
12224 {16 * 1024, 1},
12225 },
12226 .block_erase = erase_sector_jedec,
12227 }, {
12228 .eraseblocks = { {256 * 1024, 1} },
12229 .block_erase = erase_chip_block_jedec,
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 = "Winbond",
12239 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012240 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012241 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012242 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012243 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012244 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012245 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012246 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012247 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012248 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012249 .block_erasers =
12250 {
12251 {
12252 .eraseblocks = { {64 * 1024, 16}, },
12253 .block_erase = erase_sector_jedec,
12254 }, {
12255 .eraseblocks = { {1024 * 1024, 1} },
12256 .block_erase = erase_chip_block_jedec,
12257 }
12258 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012259 .printlock = printlock_w39v080fa,
12260 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012262 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012263 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012264 },
12265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012266 {
12267 .vendor = "Winbond",
12268 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012269 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012270 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012271 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012272 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012273 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012274 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012275 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012276 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012277 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012278 .block_erasers =
12279 {
12280 {
12281 .eraseblocks = { {64 * 1024, 8}, },
12282 .block_erase = erase_sector_jedec,
12283 }, {
12284 .eraseblocks = { {512 * 1024, 1} },
12285 .block_erase = erase_chip_block_jedec,
12286 }
12287 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012288 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012289 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012291 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012292 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012293
12294 {
12295 .vendor = "Unknown",
12296 .name = "SFDP-capable chip",
12297 .bustype = BUS_SPI,
12298 .manufacture_id = GENERIC_MANUF_ID,
12299 .model_id = SFDP_DEVICE_ID,
12300 /* We present our own "report this" text hence we do not
12301 * want the default "This flash part has status UNTESTED..."
12302 * text to be printed. */
12303 .tested = TEST_OK_PREW,
12304 .probe = probe_spi_sfdp,
12305 .unlock = spi_disable_blockprotect, /* is this safe? */
12306 .read = spi_chip_read,
12307 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000012308 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012309 /* Everything below will be set by the probing function. */
12310 .write = NULL,
12311 .total_size = 0,
12312 .page_size = 0,
12313 .feature_bits = 0,
12314 .block_erasers = {},
12315 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012317 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000012318 .vendor = "Programmer",
12319 .name = "Opaque flash chip",
12320 .bustype = BUS_PROG,
12321 .manufacture_id = PROGMANUF_ID,
12322 .model_id = PROGDEV_ID,
12323 .total_size = 0,
12324 .page_size = 256,
12325 /* probe is assumed to work, rest will be filled in by probe */
12326 .tested = TEST_OK_PROBE,
12327 .probe = probe_opaque,
12328 /* eraseblock sizes will be set by the probing function */
12329 .block_erasers =
12330 {
12331 {
12332 .block_erase = erase_opaque,
12333 }
12334 },
12335 .write = write_opaque,
12336 .read = read_opaque,
12337 },
12338
12339 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012340 .vendor = "AMIC",
12341 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012342 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012343 .manufacture_id = AMIC_ID,
12344 .model_id = GENERIC_DEVICE_ID,
12345 .total_size = 0,
12346 .page_size = 256,
12347 .tested = TEST_BAD_PREW,
12348 .probe = probe_spi_rdid4,
12349 .probe_timing = TIMING_ZERO,
12350 .write = NULL,
12351 .read = NULL,
12352 },
12353
12354 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012355 .vendor = "Atmel",
12356 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012357 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012358 .manufacture_id = ATMEL_ID,
12359 .model_id = GENERIC_DEVICE_ID,
12360 .total_size = 0,
12361 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012362 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012363 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012364 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012365 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012366 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012367 },
12368
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012369 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000012370 .vendor = "Eon",
12371 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012372 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012373 .manufacture_id = EON_ID_NOPREFIX,
12374 .model_id = GENERIC_DEVICE_ID,
12375 .total_size = 0,
12376 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012377 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012378 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012379 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012380 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012381 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012382 },
12383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012384 {
12385 .vendor = "Macronix",
12386 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012387 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012388 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012389 .model_id = GENERIC_DEVICE_ID,
12390 .total_size = 0,
12391 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012392 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012393 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012394 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012395 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012396 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012397 },
12398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012399 {
12400 .vendor = "PMC",
12401 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012402 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012403 .manufacture_id = PMC_ID,
12404 .model_id = GENERIC_DEVICE_ID,
12405 .total_size = 0,
12406 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012407 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012409 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012410 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012411 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012412 },
12413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012414 {
12415 .vendor = "SST",
12416 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012417 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012418 .manufacture_id = SST_ID,
12419 .model_id = GENERIC_DEVICE_ID,
12420 .total_size = 0,
12421 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012422 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012423 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012424 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012425 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012426 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012427 },
12428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012429 {
12430 .vendor = "ST",
12431 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012432 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012433 .manufacture_id = ST_ID,
12434 .model_id = GENERIC_DEVICE_ID,
12435 .total_size = 0,
12436 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012437 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012438 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012439 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012440 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012441 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012442 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000012443
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012444 {
Sean Nelson118e1d62009-11-24 02:08:11 +000012445 .vendor = "Sanyo",
12446 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012447 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012448 .manufacture_id = SANYO_ID,
12449 .model_id = GENERIC_DEVICE_ID,
12450 .total_size = 0,
12451 .page_size = 256,
12452 .tested = TEST_BAD_PREW,
12453 .probe = probe_spi_rdid,
12454 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012455 .write = NULL,
12456 .read = NULL,
12457 },
12458
12459 {
Stefan Taunereb582572012-09-21 12:52:50 +000012460 .vendor = "Winbond",
12461 .name = "unknown Winbond (ex Nexcom) SPI chip",
12462 .bustype = BUS_SPI,
12463 .manufacture_id = WINBOND_NEX_ID,
12464 .model_id = GENERIC_DEVICE_ID,
12465 .total_size = 0,
12466 .page_size = 256,
12467 .tested = TEST_BAD_PREW,
12468 .probe = probe_spi_rdid,
12469 .probe_timing = TIMING_ZERO,
12470 .write = NULL,
12471 .read = NULL,
12472 },
12473
12474 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012475 .vendor = "Generic",
12476 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012477 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012478 .manufacture_id = GENERIC_MANUF_ID,
12479 .model_id = GENERIC_DEVICE_ID,
12480 .total_size = 0,
12481 .page_size = 256,
12482 .tested = TEST_BAD_PREW,
12483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012484 .write = NULL,
12485 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000012486
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012487 {
12488 .vendor = "Generic",
12489 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012490 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012491 .manufacture_id = GENERIC_MANUF_ID,
12492 .model_id = GENERIC_DEVICE_ID,
12493 .total_size = 0,
12494 .page_size = 256,
12495 .tested = TEST_BAD_PREW,
12496 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012497 .write = NULL,
12498 },
12499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012500 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000012501};