blob: b976ee6a3c95252cc77519598433ade82b7c8724 [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 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001159 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1160 .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",
1167 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001168 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ032,
1171 .total_size = 4096,
1172 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001173 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .tested = TEST_UNTESTED,
1176 .probe = probe_spi_rdid,
1177 .probe_timing = TIMING_ZERO,
1178 .block_erasers =
1179 {
1180 {
1181 .eraseblocks = { { 4 * 1024, 1024 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 64 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 64 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 4096 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 4096 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001195 }
Dan Lenski11617122010-07-29 15:00:40 +00001196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001197 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001198 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001201 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001202 },
1203
1204 {
1205 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001206 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A29002B,
1210 .total_size = 256,
1211 .page_size = 64 * 1024,
1212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1213 .tested = TEST_UNTESTED,
1214 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001215 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = {
1220 {16 * 1024, 1},
1221 {8 * 1024, 2},
1222 {32 * 1024, 1},
1223 {64 * 1024, 3},
1224 },
1225 .block_erase = erase_sector_jedec,
1226 }, {
1227 .eraseblocks = { {256 * 1024, 1} },
1228 .block_erase = erase_chip_block_jedec,
1229 },
1230 },
1231 .write = write_jedec_1,
1232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001233 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001234 },
1235
1236 {
1237 .vendor = "AMIC",
1238 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001239 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001240 .manufacture_id = AMIC_ID_NOPREFIX,
1241 .model_id = AMIC_A29002T,
1242 .total_size = 256,
1243 .page_size = 64 * 1024,
1244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001246 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001247 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001248 .block_erasers =
1249 {
1250 {
1251 .eraseblocks = {
1252 {64 * 1024, 3},
1253 {32 * 1024, 1},
1254 {8 * 1024, 2},
1255 {16 * 1024, 1},
1256 },
1257 .block_erase = erase_sector_jedec,
1258 }, {
1259 .eraseblocks = { {256 * 1024, 1} },
1260 .block_erase = erase_chip_block_jedec,
1261 },
1262 },
1263 .write = write_jedec_1,
1264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001265 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001266 },
1267
1268 {
1269 .vendor = "AMIC",
1270 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001271 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001272 .manufacture_id = AMIC_ID_NOPREFIX,
1273 .model_id = AMIC_A29040B,
1274 .total_size = 512,
1275 .page_size = 64 * 1024,
1276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1277 .tested = TEST_UNTESTED,
1278 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001279 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 .block_erasers =
1281 {
1282 {
1283 .eraseblocks = { {64 * 1024, 8} },
1284 .block_erase = erase_sector_jedec,
1285 }, {
1286 .eraseblocks = { {512 * 1024, 1} },
1287 .block_erase = erase_chip_block_jedec,
1288 },
1289 },
1290 .write = write_jedec_1,
1291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001292 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001293 },
1294
1295 {
1296 .vendor = "AMIC",
1297 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001298 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001299 .manufacture_id = AMIC_ID_NOPREFIX,
1300 .model_id = AMIC_A49LF040A,
1301 .total_size = 512,
1302 .page_size = 64 * 1024,
1303 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001305 .probe = probe_jedec,
1306 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1307 .block_erasers =
1308 {
1309 {
1310 .eraseblocks = { {64 * 1024, 8} },
1311 .block_erase = erase_block_jedec,
1312 }, {
1313 .eraseblocks = { {512 * 1024, 1} },
1314 .block_erase = erase_chip_block_jedec,
1315 }
1316 },
1317 .unlock = unlock_49fl00x,
1318 .write = write_jedec_1,
1319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001320 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 },
1322
1323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001324 .vendor = "Atmel",
1325 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001326 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001328 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001329 .total_size = 256,
1330 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001331 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001335 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { {4 * 1024, 64} },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { {32 * 1024, 8} },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { {64 * 1024, 4} },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { {256 * 1024, 1} },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { {256 * 1024, 1} },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001355 .printlock = spi_prettyprint_status_register_at25df,
1356 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001358 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001359 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001360 },
1361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001362 {
1363 .vendor = "Atmel",
1364 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001367 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001368 .total_size = 512,
1369 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001370 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001371 .tested = TEST_UNTESTED,
1372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001373 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001374 .block_erasers =
1375 {
1376 {
1377 .eraseblocks = { {4 * 1024, 128} },
1378 .block_erase = spi_block_erase_20,
1379 }, {
1380 .eraseblocks = { {32 * 1024, 16} },
1381 .block_erase = spi_block_erase_52,
1382 }, {
1383 .eraseblocks = { {64 * 1024, 8} },
1384 .block_erase = spi_block_erase_d8,
1385 }, {
1386 .eraseblocks = { {512 * 1024, 1} },
1387 .block_erase = spi_block_erase_60,
1388 }, {
1389 .eraseblocks = { {512 * 1024, 1} },
1390 .block_erase = spi_block_erase_c7,
1391 }
1392 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001393 .printlock = spi_prettyprint_status_register_at25df,
1394 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001396 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001397 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001398 },
1399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001400 {
1401 .vendor = "Atmel",
1402 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001403 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001404 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001405 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001406 .total_size = 1024,
1407 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001408 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001409 .tested = TEST_UNTESTED,
1410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001411 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001412 .block_erasers =
1413 {
1414 {
1415 .eraseblocks = { {4 * 1024, 256} },
1416 .block_erase = spi_block_erase_20,
1417 }, {
1418 .eraseblocks = { {32 * 1024, 32} },
1419 .block_erase = spi_block_erase_52,
1420 }, {
1421 .eraseblocks = { {64 * 1024, 16} },
1422 .block_erase = spi_block_erase_d8,
1423 }, {
1424 .eraseblocks = { {1024 * 1024, 1} },
1425 .block_erase = spi_block_erase_60,
1426 }, {
1427 .eraseblocks = { {1024 * 1024, 1} },
1428 .block_erase = spi_block_erase_c7,
1429 }
1430 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .printlock = spi_prettyprint_status_register_at25df,
1432 .unlock = spi_disable_blockprotect_at25df,
1433 .write = spi_chip_write_256,
1434 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001435 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 },
1437
1438 {
1439 .vendor = "Atmel",
1440 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001441 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001442 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001443 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .total_size = 1024,
1445 .page_size = 256,
1446 .feature_bits = FEATURE_WRSR_WREN,
1447 .tested = TEST_UNTESTED,
1448 .probe = probe_spi_rdid,
1449 .probe_timing = TIMING_ZERO,
1450 .block_erasers =
1451 {
1452 {
1453 .eraseblocks = { {4 * 1024, 256} },
1454 .block_erase = spi_block_erase_20,
1455 }, {
1456 .eraseblocks = { {32 * 1024, 32} },
1457 .block_erase = spi_block_erase_52,
1458 }, {
1459 .eraseblocks = { {64 * 1024, 16} },
1460 .block_erase = spi_block_erase_d8,
1461 }, {
1462 .eraseblocks = { {1024 * 1024, 1} },
1463 .block_erase = spi_block_erase_60,
1464 }, {
1465 .eraseblocks = { {1024 * 1024, 1} },
1466 .block_erase = spi_block_erase_c7,
1467 }
1468 },
1469 .printlock = spi_prettyprint_status_register_at25df_sec,
1470 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001472 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001474 },
1475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001476 {
1477 .vendor = "Atmel",
1478 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001481 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .total_size = 2048,
1483 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001484 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001485 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001487 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001488 .block_erasers =
1489 {
1490 {
1491 .eraseblocks = { {4 * 1024, 512} },
1492 .block_erase = spi_block_erase_20,
1493 }, {
1494 .eraseblocks = { {32 * 1024, 64} },
1495 .block_erase = spi_block_erase_52,
1496 }, {
1497 .eraseblocks = { {64 * 1024, 32} },
1498 .block_erase = spi_block_erase_d8,
1499 }, {
1500 .eraseblocks = { {2 * 1024 * 1024, 1} },
1501 .block_erase = spi_block_erase_60,
1502 }, {
1503 .eraseblocks = { {2 * 1024 * 1024, 1} },
1504 .block_erase = spi_block_erase_c7,
1505 }
1506 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001507 .printlock = spi_prettyprint_status_register_at25df_sec,
1508 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001512 },
1513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 {
1515 .vendor = "Atmel",
1516 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001517 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001518 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001519 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .total_size = 4096,
1521 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001525 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001526 .block_erasers =
1527 {
1528 {
1529 .eraseblocks = { {4 * 1024, 1024} },
1530 .block_erase = spi_block_erase_20,
1531 }, {
1532 .eraseblocks = { {32 * 1024, 128} },
1533 .block_erase = spi_block_erase_52,
1534 }, {
1535 .eraseblocks = { {64 * 1024, 64} },
1536 .block_erase = spi_block_erase_d8,
1537 }, {
1538 .eraseblocks = { {4 * 1024 * 1024, 1} },
1539 .block_erase = spi_block_erase_60,
1540 }, {
1541 .eraseblocks = { {4 * 1024 * 1024, 1} },
1542 .block_erase = spi_block_erase_c7,
1543 }
1544 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001545 .printlock = spi_prettyprint_status_register_at25df,
1546 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001550 },
1551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 {
1553 .vendor = "Atmel",
1554 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001555 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001556 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001557 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .total_size = 4096,
1559 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001560 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001562 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001564 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001565 .block_erasers =
1566 {
1567 {
1568 .eraseblocks = { {4 * 1024, 1024} },
1569 .block_erase = spi_block_erase_20,
1570 }, {
1571 .eraseblocks = { {32 * 1024, 128} },
1572 .block_erase = spi_block_erase_52,
1573 }, {
1574 .eraseblocks = { {64 * 1024, 64} },
1575 .block_erase = spi_block_erase_d8,
1576 }, {
1577 .eraseblocks = { {4 * 1024 * 1024, 1} },
1578 .block_erase = spi_block_erase_60,
1579 }, {
1580 .eraseblocks = { {4 * 1024 * 1024, 1} },
1581 .block_erase = spi_block_erase_c7,
1582 }
1583 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .printlock = spi_prettyprint_status_register_at25df_sec,
1585 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001589 },
1590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 {
1592 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001593 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001596 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .total_size = 8192,
1598 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001600 .tested = TEST_UNTESTED,
1601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001602 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001603 .block_erasers =
1604 {
1605 {
1606 .eraseblocks = { {4 * 1024, 2048} },
1607 .block_erase = spi_block_erase_20,
1608 }, {
1609 .eraseblocks = { {32 * 1024, 256} },
1610 .block_erase = spi_block_erase_52,
1611 }, {
1612 .eraseblocks = { {64 * 1024, 128} },
1613 .block_erase = spi_block_erase_d8,
1614 }, {
1615 .eraseblocks = { {8 * 1024 * 1024, 1} },
1616 .block_erase = spi_block_erase_60,
1617 }, {
1618 .eraseblocks = { {8 * 1024 * 1024, 1} },
1619 .block_erase = spi_block_erase_c7,
1620 }
1621 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .printlock = spi_prettyprint_status_register_at25df_sec,
1623 .unlock = spi_disable_blockprotect_at25df_sec,
1624 .write = spi_chip_write_256,
1625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001626 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001627 },
1628
1629 {
1630 .vendor = "Atmel",
1631 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001632 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001634 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001635 .total_size = 2048,
1636 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001637 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .tested = TEST_UNTESTED,
1640 .probe = probe_spi_rdid,
1641 .probe_timing = TIMING_ZERO,
1642 .block_erasers =
1643 {
1644 {
1645 .eraseblocks = { {4 * 1024, 512} },
1646 .block_erase = spi_block_erase_20,
1647 }, {
1648 .eraseblocks = { {32 * 1024, 64} },
1649 .block_erase = spi_block_erase_52,
1650 }, {
1651 .eraseblocks = { {64 * 1024, 32} },
1652 .block_erase = spi_block_erase_d8,
1653 }, {
1654 .eraseblocks = { {2 * 1024 * 1024, 1} },
1655 .block_erase = spi_block_erase_60,
1656 }, {
1657 .eraseblocks = { {2 * 1024 * 1024, 1} },
1658 .block_erase = spi_block_erase_c7,
1659 }
1660 },
1661 .printlock = spi_prettyprint_status_register_at25df_sec,
1662 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001663 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001665 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001666 },
1667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 {
1669 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001670 .name = "AT25F512",
1671 .bustype = BUS_SPI,
1672 .manufacture_id = ATMEL_ID,
1673 .model_id = ATMEL_AT25F512,
1674 .total_size = 64,
1675 .page_size = 256,
1676 .feature_bits = FEATURE_WRSR_WREN,
1677 .tested = TEST_UNTESTED,
1678 .probe = probe_spi_at25f,
1679 .probe_timing = TIMING_ZERO,
1680 .block_erasers =
1681 {
1682 {
1683 .eraseblocks = { {32 * 1024, 2} },
1684 .block_erase = spi_block_erase_52,
1685 }, {
1686 .eraseblocks = { {64 * 1024, 1} },
1687 .block_erase = spi_block_erase_62,
1688 }
1689 },
1690 .printlock = spi_prettyprint_status_register_at25f,
1691 .unlock = spi_disable_blockprotect_at25f,
1692 .write = spi_chip_write_256,
1693 .read = spi_chip_read,
1694 .voltage = {2700, 3600},
1695 },
1696
1697 {
1698 .vendor = "Atmel",
1699 .name = "AT25F512A",
1700 .bustype = BUS_SPI,
1701 .manufacture_id = ATMEL_ID,
1702 .model_id = ATMEL_AT25F512A,
1703 .total_size = 64,
1704 .page_size = 128,
1705 .feature_bits = FEATURE_WRSR_WREN,
1706 .tested = TEST_UNTESTED,
1707 .probe = probe_spi_at25f,
1708 .probe_timing = TIMING_ZERO,
1709 .block_erasers =
1710 {
1711 {
1712 .eraseblocks = { {32 * 1024, 2} },
1713 .block_erase = spi_block_erase_52,
1714 }, {
1715 .eraseblocks = { {64 * 1024, 1} },
1716 .block_erase = spi_block_erase_62,
1717 }
1718 },
1719 .printlock = spi_prettyprint_status_register_at25f512a,
1720 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1721 .unlock = spi_disable_blockprotect_at25f512a,
1722 .write = spi_chip_write_256,
1723 .read = spi_chip_read,
1724 .voltage = {2700, 3600},
1725 },
1726
1727 {
1728 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001729 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001730 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001731 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001732 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .total_size = 64,
1734 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001735 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 .tested = TEST_UNTESTED,
1738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001739 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001740 .block_erasers =
1741 {
1742 {
1743 .eraseblocks = { {4 * 1024, 16} },
1744 .block_erase = spi_block_erase_20,
1745 }, {
1746 .eraseblocks = { {32 * 1024, 2} },
1747 .block_erase = spi_block_erase_52,
1748 }, {
1749 .eraseblocks = { {32 * 1024, 2} },
1750 .block_erase = spi_block_erase_d8,
1751 }, {
1752 .eraseblocks = { {64 * 1024, 1} },
1753 .block_erase = spi_block_erase_60,
1754 }, {
1755 .eraseblocks = { {64 * 1024, 1} },
1756 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001757 }, {
1758 .eraseblocks = { {64 * 1024, 1} },
1759 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001760 }
1761 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001762 .printlock = spi_prettyprint_status_register_at25f512b,
1763 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001764 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001767 },
1768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001769 {
1770 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001771 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1772 * All other properties seem to be the same.*/
1773 .name = "AT25F1024(A)",
1774 .bustype = BUS_SPI,
1775 .manufacture_id = ATMEL_ID,
1776 .model_id = ATMEL_AT25F1024,
1777 .total_size = 128,
1778 .page_size = 256,
1779 .feature_bits = FEATURE_WRSR_WREN,
1780 .tested = TEST_OK_PREW,
1781 .probe = probe_spi_at25f,
1782 .probe_timing = TIMING_ZERO,
1783 .block_erasers =
1784 {
1785 {
1786 .eraseblocks = { {32 * 1024, 4} },
1787 .block_erase = spi_block_erase_52,
1788 }, {
1789 .eraseblocks = { {128 * 1024, 1} },
1790 .block_erase = spi_block_erase_62,
1791 }
1792 },
1793 .printlock = spi_prettyprint_status_register_at25f,
1794 .unlock = spi_disable_blockprotect_at25f,
1795 .write = spi_chip_write_256,
1796 .read = spi_chip_read,
1797 .voltage = {2700, 3600},
1798 },
1799
1800 {
1801 .vendor = "Atmel",
1802 .name = "AT25F2048",
1803 .bustype = BUS_SPI,
1804 .manufacture_id = ATMEL_ID,
1805 .model_id = ATMEL_AT25F2048,
1806 .total_size = 256,
1807 .page_size = 256,
1808 .feature_bits = FEATURE_WRSR_WREN,
1809 .tested = TEST_UNTESTED,
1810 .probe = probe_spi_at25f,
1811 .probe_timing = TIMING_ZERO,
1812 .block_erasers =
1813 {
1814 {
1815 .eraseblocks = { {64 * 1024, 4} },
1816 .block_erase = spi_block_erase_52,
1817 }, {
1818 .eraseblocks = { {256 * 1024, 1} },
1819 .block_erase = spi_block_erase_62,
1820 }
1821 },
1822 .printlock = spi_prettyprint_status_register_at25f,
1823 .unlock = spi_disable_blockprotect_at25f,
1824 .write = spi_chip_write_256,
1825 .read = spi_chip_read,
1826 .voltage = {2700, 3600},
1827 },
1828
1829 {
1830 .vendor = "Atmel",
1831 .name = "AT25F4096",
1832 .bustype = BUS_SPI,
1833 .manufacture_id = ATMEL_ID,
1834 .model_id = ATMEL_AT25F4096,
1835 .total_size = 512,
1836 .page_size = 256,
1837 .feature_bits = FEATURE_WRSR_WREN,
1838 .tested = TEST_UNTESTED,
1839 .probe = probe_spi_at25f,
1840 .probe_timing = TIMING_ZERO,
1841 .block_erasers =
1842 {
1843 {
1844 .eraseblocks = { {64 * 1024, 8} },
1845 .block_erase = spi_block_erase_52,
1846 }, {
1847 .eraseblocks = { {512 * 1024, 1} },
1848 .block_erase = spi_block_erase_62,
1849 }
1850 },
1851 .printlock = spi_prettyprint_status_register_at25f4096,
1852 .unlock = spi_disable_blockprotect_at25f4096,
1853 .write = spi_chip_write_256,
1854 .read = spi_chip_read,
1855 .voltage = {2700, 3600},
1856 },
1857
1858 {
1859 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001860 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001861 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001862 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001863 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001864 .total_size = 128,
1865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001866 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001867 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001868 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001869 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001870 .block_erasers =
1871 {
1872 {
1873 .eraseblocks = { {4 * 1024, 32} },
1874 .block_erase = spi_block_erase_20,
1875 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001876 .eraseblocks = { {4 * 1024, 32} },
1877 .block_erase = spi_block_erase_d7,
1878 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001879 .eraseblocks = { {32 * 1024, 4} },
1880 .block_erase = spi_block_erase_52,
1881 }, {
1882 .eraseblocks = { {32 * 1024, 4} },
1883 .block_erase = spi_block_erase_d8,
1884 }, {
1885 .eraseblocks = { {128 * 1024, 1} },
1886 .block_erase = spi_block_erase_60,
1887 }, {
1888 .eraseblocks = { {128 * 1024, 1} },
1889 .block_erase = spi_block_erase_c7,
1890 }
1891 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001892 .printlock = spi_prettyprint_status_register_at25fs010,
1893 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001894 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001896 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001897 },
1898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001899 {
1900 .vendor = "Atmel",
1901 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001902 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001904 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001905 .total_size = 512,
1906 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001907 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001908 .tested = TEST_UNTESTED,
1909 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001910 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001911 .block_erasers =
1912 {
1913 {
1914 .eraseblocks = { {4 * 1024, 128} },
1915 .block_erase = spi_block_erase_20,
1916 }, {
1917 .eraseblocks = { {64 * 1024, 8} },
1918 .block_erase = spi_block_erase_52,
1919 }, {
1920 .eraseblocks = { {64 * 1024, 8} },
1921 .block_erase = spi_block_erase_d8,
1922 }, {
1923 .eraseblocks = { {512 * 1024, 1} },
1924 .block_erase = spi_block_erase_60,
1925 }, {
1926 .eraseblocks = { {512 * 1024, 1} },
1927 .block_erase = spi_block_erase_c7,
1928 }
1929 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001930 .printlock = spi_prettyprint_status_register_at25fs040,
1931 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001932 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001934 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001935 },
1936
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001937 {
1938 .vendor = "Atmel",
1939 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001940 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001941 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001942 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 .total_size = 512,
1944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001945 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001946 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001948 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001949 .block_erasers =
1950 {
1951 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00001952 .eraseblocks = { {256, 2048} },
1953 .block_erase = spi_block_erase_81,
1954 }, {
1955 .eraseblocks = { {2 * 1024, 256} },
1956 .block_erase = spi_block_erase_50,
1957 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001958 .eraseblocks = { {4 * 1024, 128} },
1959 .block_erase = spi_block_erase_20,
1960 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001961 },
1962 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
1963 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001964 .write = spi_chip_write_1,
1965 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00001966 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001967 },
1968
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001969 {
1970 .vendor = "Atmel",
1971 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001972 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001974 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001975 .total_size = 1024,
1976 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001977 .feature_bits = FEATURE_WRSR_WREN,
1978 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001979 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001980 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001981 .block_erasers =
1982 {
1983 {
1984 .eraseblocks = { {4 * 1024, 256} },
1985 .block_erase = spi_block_erase_20,
1986 }, {
1987 .eraseblocks = { {32 * 1024, 32} },
1988 .block_erase = spi_block_erase_52,
1989 }, {
1990 .eraseblocks = { {64 * 1024, 16} },
1991 .block_erase = spi_block_erase_d8,
1992 }, {
1993 .eraseblocks = { {1024 * 1024, 1} },
1994 .block_erase = spi_block_erase_60,
1995 }, {
1996 .eraseblocks = { {1024 * 1024, 1} },
1997 .block_erase = spi_block_erase_c7,
1998 }
1999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002000 .printlock = spi_prettyprint_status_register_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002001 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002002 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002003 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002004 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002005 },
2006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002007 {
2008 .vendor = "Atmel",
2009 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002010 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002011 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002012 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .total_size = 2048,
2014 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002015 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002016 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002018 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002019 .block_erasers =
2020 {
2021 {
2022 .eraseblocks = { {4 * 1024, 512} },
2023 .block_erase = spi_block_erase_20,
2024 }, {
2025 .eraseblocks = { {32 * 1024, 64} },
2026 .block_erase = spi_block_erase_52,
2027 }, {
2028 .eraseblocks = { {64 * 1024, 32} },
2029 .block_erase = spi_block_erase_d8,
2030 }, {
2031 .eraseblocks = { {2 * 1024 * 1024, 1} },
2032 .block_erase = spi_block_erase_60,
2033 }, {
2034 .eraseblocks = { {2 * 1024 * 1024, 1} },
2035 .block_erase = spi_block_erase_c7,
2036 }
2037 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002038 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002039 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002040 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002042 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002043 },
2044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002045 {
2046 .vendor = "Atmel",
2047 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002048 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002049 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002050 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 .total_size = 2048,
2052 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002053 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002054 .tested = TEST_UNTESTED,
2055 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002056 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002057 .block_erasers =
2058 {
2059 {
2060 .eraseblocks = { {4 * 1024, 512} },
2061 .block_erase = spi_block_erase_20,
2062 }, {
2063 .eraseblocks = { {32 * 1024, 64} },
2064 .block_erase = spi_block_erase_52,
2065 }, {
2066 .eraseblocks = { {64 * 1024, 32} },
2067 .block_erase = spi_block_erase_d8,
2068 }, {
2069 .eraseblocks = { {2 * 1024 * 1024, 1} },
2070 .block_erase = spi_block_erase_60,
2071 }, {
2072 .eraseblocks = { {2 * 1024 * 1024, 1} },
2073 .block_erase = spi_block_erase_c7,
2074 }
2075 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002076 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002077 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002078 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002079 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002080 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002081 },
2082
2083 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 /*{
2085 .vendor = "Atmel",
2086 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002087 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002088 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002089 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002090 .total_size = 4096,
2091 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002092 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .tested = TEST_UNTESTED,
2094 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002095 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002096 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002098 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .read = spi_chip_read,
2100 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002102 {
2103 .vendor = "Atmel",
2104 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002105 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002106 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002107 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002108 .total_size = 512,
2109 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002110 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002111 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002112 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002113 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002114 .block_erasers =
2115 {
2116 {
2117 .eraseblocks = { {4 * 1024, 128} },
2118 .block_erase = spi_block_erase_20,
2119 }, {
2120 .eraseblocks = { {32 * 1024, 16} },
2121 .block_erase = spi_block_erase_52,
2122 }, {
2123 .eraseblocks = { {64 * 1024, 8} },
2124 .block_erase = spi_block_erase_d8,
2125 }, {
2126 .eraseblocks = { {512 * 1024, 1} },
2127 .block_erase = spi_block_erase_60,
2128 }, {
2129 .eraseblocks = { {512 * 1024, 1} },
2130 .block_erase = spi_block_erase_c7,
2131 }
2132 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002134 .write = NULL /* Incompatible Page write */,
2135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002141 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002145 .total_size = 64,
2146 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002147 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002148 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002149 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002150 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {64 * 1024, 1} },
2155 .block_erase = erase_chip_block_jedec,
2156 }
2157 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002158 .write = write_jedec,
2159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002160 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002161 },
2162
2163 {
2164 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002165 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002166 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002167 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002168 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002169 .total_size = 128,
2170 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002171 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002172 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002173 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002174 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002175 .block_erasers =
2176 {
2177 {
2178 .eraseblocks = { {128 * 1024, 1} },
2179 .block_erase = erase_chip_block_jedec,
2180 }
2181 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002182 .write = write_jedec, /* FIXME */
2183 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002184 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002185 },
2186
2187 {
2188 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002190 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002191 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002192 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002193 .total_size = 256,
2194 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002195 .feature_bits = FEATURE_LONG_RESET,
2196 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002197 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002198 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002199 .block_erasers =
2200 {
2201 {
2202 .eraseblocks = { {256 * 1024, 1} },
2203 .block_erase = erase_chip_block_jedec,
2204 }
2205 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002206 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002208 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002209 },
2210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 {
2212 .vendor = "Atmel",
2213 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002214 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002216 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002217 .total_size = 512,
2218 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002219 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .tested = TEST_UNTESTED,
2221 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002222 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002223 .block_erasers =
2224 {
2225 {
2226 .eraseblocks = { {512 * 1024, 1} },
2227 .block_erase = erase_chip_block_jedec,
2228 }
2229 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002233 },
2234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002235 {
2236 .vendor = "Atmel",
2237 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002238 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002240 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002241 .total_size = 16896 /* No power of two sizes */,
2242 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002243 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002244 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002245 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002246 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002247 .write = NULL /* Incompatible Page write */,
2248 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002249 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002250 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002251
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 {
2253 .vendor = "Atmel",
2254 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002255 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002257 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002258 .total_size = 128 /* Size can only be determined from status register */,
2259 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002260 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002261 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002263 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002264 .write = NULL,
2265 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002267 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002269 {
2270 .vendor = "Atmel",
2271 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002275 .total_size = 256 /* Size can only be determined from status register */,
2276 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002277 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002278 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002280 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002281 .write = NULL,
2282 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002284 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002292 .total_size = 512 /* Size can only be determined from status register */,
2293 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002294 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002295 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002297 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002298 .write = NULL,
2299 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002300 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002301 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002303 {
2304 .vendor = "Atmel",
2305 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002307 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002308 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002309 .total_size = 1024 /* Size can only be determined from status register */,
2310 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002311 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002312 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002313 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002314 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002315 .write = NULL,
2316 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002317 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002318 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 {
2321 .vendor = "Atmel",
2322 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002323 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002324 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002325 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002326 .total_size = 2048 /* Size can only be determined from status register */,
2327 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002328 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002329 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002330 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002331 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002332 .write = NULL,
2333 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002334 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002335 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002337 {
2338 .vendor = "Atmel",
2339 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002340 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002341 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002342 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002343 .total_size = 4224 /* No power of two sizes */,
2344 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002345 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002346 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002347 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002348 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .write = NULL,
2350 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002351 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002352 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002354 {
2355 .vendor = "Atmel",
2356 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002357 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002358 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002359 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002360 .total_size = 4096 /* Size can only be determined from status register */,
2361 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002362 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002363 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002364 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002365 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002367 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002368 .write = NULL,
2369 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002370 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002371 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002373 {
2374 .vendor = "Atmel",
2375 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002376 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002378 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002379 .total_size = 8192 /* Size can only be determined from status register */,
2380 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002381 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002382 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002384 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002385 .write = NULL,
2386 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002387 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002388 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 {
2391 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002392 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002393 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002394 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002395 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002396 .total_size = 64,
2397 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002398 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002399 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002400 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002401 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002402 .block_erasers =
2403 {
2404 {
2405 .eraseblocks = { {64 * 1024, 1} },
2406 .block_erase = erase_chip_block_jedec,
2407 }
2408 },
Sean Nelson35727f72010-01-28 23:55:12 +00002409 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002411 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002412 },
2413
2414 {
2415 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002416 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002417 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002418 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002419 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002420 .total_size = 256,
2421 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002422 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .tested = TEST_UNTESTED,
2424 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002425 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002426 .block_erasers =
2427 {
2428 {
2429 .eraseblocks = {
2430 {16 * 1024, 1},
2431 {8 * 1024, 2},
2432 {96 * 1024, 1},
2433 {128 * 1024, 1},
2434 },
2435 .block_erase = erase_sector_jedec,
2436 }, {
2437 .eraseblocks = { {256 * 1024, 1} },
2438 .block_erase = erase_chip_block_jedec,
2439 }
2440 },
Sean Nelson35727f72010-01-28 23:55:12 +00002441 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002443 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002444 },
2445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002446 {
2447 .vendor = "Atmel",
2448 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002449 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002450 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002451 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002452 .total_size = 256,
2453 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002454 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002455 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002456 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002457 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002458 .block_erasers =
2459 {
2460 {
2461 .eraseblocks = {
2462 {128 * 1024, 1},
2463 {96 * 1024, 1},
2464 {8 * 1024, 2},
2465 {16 * 1024, 1},
2466 },
2467 .block_erase = erase_sector_jedec,
2468 }, {
2469 .eraseblocks = { {256 * 1024, 1} },
2470 .block_erase = erase_chip_block_jedec,
2471 }
2472 },
Sean Nelson35727f72010-01-28 23:55:12 +00002473 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002475 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002476 },
2477
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002478 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002479 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002480 .name = "AT49(H)F010",
2481 .bustype = BUS_PARALLEL,
2482 .manufacture_id = ATMEL_ID,
2483 .model_id = ATMEL_AT49F010,
2484 .total_size = 128,
2485 .page_size = 0, /* unused */
2486 .feature_bits = FEATURE_EITHER_RESET,
2487 .tested = TEST_OK_PREW,
2488 .probe = probe_jedec,
2489 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2490 .block_erasers =
2491 {
2492 {
2493 .eraseblocks = { {128 * 1024, 1} },
2494 .block_erase = erase_chip_block_jedec,
2495 }
2496 },
2497 .printlock = printlock_at49f,
2498 .write = write_jedec_1,
2499 .read = read_memmapped,
2500 .voltage = {4500, 5500},
2501 },
2502
2503 {
2504 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002505 .name = "AT49F020",
2506 .bustype = BUS_PARALLEL,
2507 .manufacture_id = ATMEL_ID,
2508 .model_id = ATMEL_AT49F020,
2509 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002510 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002511 .feature_bits = FEATURE_EITHER_RESET,
2512 .tested = TEST_OK_PRE,
2513 .probe = probe_jedec,
2514 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2515 .block_erasers =
2516 {
2517 {
2518 .eraseblocks = { {256 * 1024, 1} },
2519 .block_erase = erase_chip_block_jedec,
2520 }
2521 /* Chip features an optional permanent write protection
2522 * of the first 8 kB. The erase function is the same as
2523 * above, but 00000H to 01FFFH will not be erased.
2524 * FIXME: add another eraser when partial erasers are
2525 * supported.
2526 */
2527 },
2528 .printlock = printlock_at49f,
2529 .write = write_jedec_1,
2530 .read = read_memmapped,
2531 .voltage = {4500, 5500},
2532 },
2533
2534 {
2535 .vendor = "Atmel",
2536 .name = "AT49F040",
2537 .bustype = BUS_PARALLEL,
2538 .manufacture_id = ATMEL_ID,
2539 .model_id = ATMEL_AT49F040,
2540 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002541 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002542 .feature_bits = FEATURE_EITHER_RESET,
2543 .tested = TEST_UNTESTED,
2544 .probe = probe_jedec,
2545 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2546 .block_erasers =
2547 {
2548 {
2549 .eraseblocks = { {512 * 1024, 1} },
2550 .block_erase = erase_chip_block_jedec,
2551 }
2552 /* Chip features an optional permanent write protection
2553 * of the first 16 kB. The erase function is the same as
2554 * above, but 00000H to 03FFFH will not be erased.
2555 * FIXME: add another eraser when partial erasers are
2556 * supported.
2557 */
2558 },
2559 .printlock = printlock_at49f,
2560 .write = write_jedec_1,
2561 .read = read_memmapped,
2562 .voltage = {4500, 5500},
2563 },
2564
2565 {
2566 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002567 .name = "AT49F080",
2568 .bustype = BUS_PARALLEL,
2569 .manufacture_id = ATMEL_ID,
2570 .model_id = ATMEL_AT49F080,
2571 .total_size = 1024,
2572 .page_size = 0, /* unused */
2573 .feature_bits = FEATURE_EITHER_RESET,
2574 .tested = TEST_UNTESTED,
2575 .probe = probe_jedec,
2576 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2577 .block_erasers =
2578 {
2579 {
2580 .eraseblocks = { {1024 * 1024, 1} },
2581 .block_erase = erase_chip_block_jedec,
2582 }
2583 /* Chip features an optional permanent write protection
2584 * of the first 16 kB. The erase function is the same as
2585 * above, but 00000H to 03FFFH will not be erased.
2586 * FIXME: add another eraser when partial erasers are
2587 * supported.
2588 */
2589 },
2590 .printlock = printlock_at49f,
2591 .write = write_jedec_1,
2592 .read = read_memmapped,
2593 .voltage = {4500, 5500},
2594 },
2595
2596 {
2597 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2598 .vendor = "Atmel",
2599 .name = "AT49F080T",
2600 .bustype = BUS_PARALLEL,
2601 .manufacture_id = ATMEL_ID,
2602 .model_id = ATMEL_AT49F080T,
2603 .total_size = 1024,
2604 .page_size = 0, /* unused */
2605 .feature_bits = FEATURE_EITHER_RESET,
2606 .tested = TEST_UNTESTED,
2607 .probe = probe_jedec,
2608 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {1024 * 1024, 1} },
2613 .block_erase = erase_chip_block_jedec,
2614 }
2615 /* Chip features an optional permanent write protection
2616 * of the first 16 kB. The erase function is the same as
2617 * above, but FC000H to FFFFFH will not be erased.
2618 * FIXME: add another eraser when partial erasers are
2619 * supported.
2620 */
2621 },
2622 .printlock = printlock_at49f,
2623 .write = write_jedec_1,
2624 .read = read_memmapped,
2625 .voltage = {4500, 5500},
2626 },
2627
2628 {
2629 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002630 .name = "AT49LH002",
2631 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2632 .manufacture_id = ATMEL_ID,
2633 .model_id = ATMEL_AT49LH002,
2634 .total_size = 256,
2635 .page_size = 0, /* unused */
2636 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2637 .tested = TEST_UNTESTED,
2638 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2639 .probe_timing = TIMING_FIXME,
2640 .block_erasers =
2641 {
2642 {
2643 .eraseblocks = {
2644 {64 * 1024, 3},
2645 {32 * 1024, 1},
2646 {8 * 1024, 2},
2647 {16 * 1024, 1},
2648 },
2649 .block_erase = erase_block_82802ab,
2650 }, {
2651 .eraseblocks = {
2652 {64 * 1024, 4},
2653 },
2654 .block_erase = NULL, /* TODO: Implement. */
2655 },
2656 },
2657 .printlock = NULL, /* TODO */
2658 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2659 .write = write_82802ab,
2660 .read = read_memmapped,
2661 .voltage = {3000, 3600},
2662 },
2663
2664 {
Andrew Morganca081462011-09-13 22:05:44 +00002665 .vendor = "Catalyst",
2666 .name = "CAT28F512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = CATALYST_ID,
2669 .model_id = CATALYST_CAT28F512,
2670 .total_size = 64,
2671 .page_size = 0, /* unused */
2672 .feature_bits = 0,
2673 .tested = TEST_OK_PR,
2674 .probe = probe_jedec, /* FIXME! */
2675 .probe_timing = TIMING_ZERO,
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = NULL, /* TODO */
2681 },
2682 },
2683 .write = NULL, /* TODO */
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002689 .vendor = "Bright",
2690 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002692 .manufacture_id = BRIGHT_ID,
2693 .model_id = BRIGHT_BM29F040,
2694 .total_size = 512,
2695 .page_size = 64 * 1024,
2696 .feature_bits = FEATURE_EITHER_RESET,
2697 .tested = TEST_OK_PR,
2698 .probe = probe_jedec,
2699 .probe_timing = TIMING_ZERO,
2700 .block_erasers =
2701 {
2702 {
2703 .eraseblocks = { {64 * 1024, 8} },
2704 .block_erase = erase_sector_jedec,
2705 }, {
2706 .eraseblocks = { {512 * 1024, 1} },
2707 .block_erase = erase_chip_block_jedec,
2708 },
2709 },
2710 .write = write_jedec_1,
2711 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002712 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002713 },
2714
2715 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002716 .vendor = "EMST",
2717 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002718 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002719 .manufacture_id = EMST_ID,
2720 .model_id = EMST_F49B002UA,
2721 .total_size = 256,
2722 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002723 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .tested = TEST_UNTESTED,
2725 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002726 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002727 .block_erasers =
2728 {
2729 {
2730 .eraseblocks = {
2731 {128 * 1024, 1},
2732 {96 * 1024, 1},
2733 {8 * 1024, 2},
2734 {16 * 1024, 1},
2735 },
2736 .block_erase = erase_sector_jedec,
2737 }, {
2738 .eraseblocks = { {256 * 1024, 1} },
2739 .block_erase = erase_chip_block_jedec,
2740 }
2741 },
Sean Nelson35727f72010-01-28 23:55:12 +00002742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002744 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002745 },
2746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002747 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002748 .vendor = "EMST",
2749 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002750 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002751 .manufacture_id = EMST_ID,
2752 .model_id = EMST_F25L008A,
2753 .total_size = 1024,
2754 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002755 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002756 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002757 .probe = probe_spi_rdid,
2758 .probe_timing = TIMING_ZERO,
2759 .block_erasers =
2760 {
2761 {
2762 .eraseblocks = { {4 * 1024, 256} },
2763 .block_erase = spi_block_erase_20,
2764 }, {
2765 .eraseblocks = { {64 * 1024, 16} },
2766 .block_erase = spi_block_erase_d8,
2767 }, {
2768 .eraseblocks = { {1024 * 1024, 1} },
2769 .block_erase = spi_block_erase_60,
2770 }, {
2771 .eraseblocks = { {1024 * 1024, 1} },
2772 .block_erase = spi_block_erase_c7,
2773 }
2774 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002775 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002776 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002777 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002778 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002779 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002780 },
2781
2782 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002783 .vendor = "Eon",
2784 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002785 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002786 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002787 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002788 .total_size = 64,
2789 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002790 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002791 .tested = TEST_UNTESTED,
2792 .probe = probe_spi_rdid,
2793 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002794 .block_erasers =
2795 {
2796 {
2797 .eraseblocks = {
2798 {4 * 1024, 2},
2799 {8 * 1024, 1},
2800 {16 * 1024, 1},
2801 {32 * 1024, 1},
2802 },
2803 .block_erase = spi_block_erase_d8,
2804 }, {
2805 .eraseblocks = { {64 * 1024, 1} },
2806 .block_erase = spi_block_erase_c7,
2807 }
2808 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002810 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002811 .write = spi_chip_write_256,
2812 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002813 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002814 },
2815
2816 {
2817 .vendor = "Eon",
2818 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002819 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002820 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002821 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002822 .total_size = 64,
2823 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002824 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002825 .tested = TEST_UNTESTED,
2826 .probe = probe_spi_rdid,
2827 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = {
2832 {32 * 1024, 1},
2833 {16 * 1024, 1},
2834 {8 * 1024, 1},
2835 {4 * 1024, 2},
2836 },
2837 .block_erase = spi_block_erase_d8,
2838 }, {
2839 .eraseblocks = { {64 * 1024, 1} },
2840 .block_erase = spi_block_erase_c7,
2841 }
2842 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002844 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002845 .write = spi_chip_write_256,
2846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002847 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002848 },
2849
2850 {
2851 .vendor = "Eon",
2852 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002853 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002854 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002855 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002856 .total_size = 128,
2857 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002858 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002859 .tested = TEST_UNTESTED,
2860 .probe = probe_spi_rdid,
2861 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002862 .block_erasers =
2863 {
2864 {
2865 .eraseblocks = {
2866 {4 * 1024, 2},
2867 {8 * 1024, 1},
2868 {16 * 1024, 1},
2869 {32 * 1024, 3},
2870 },
2871 .block_erase = spi_block_erase_d8,
2872 }, {
2873 .eraseblocks = { {128 * 1024, 1} },
2874 .block_erase = spi_block_erase_c7,
2875 }
2876 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002877 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002878 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002879 .write = spi_chip_write_256,
2880 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002881 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002882 },
2883
2884 {
2885 .vendor = "Eon",
2886 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002887 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002888 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002889 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002890 .total_size = 128,
2891 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002892 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002893 .tested = TEST_UNTESTED,
2894 .probe = probe_spi_rdid,
2895 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002896 .block_erasers =
2897 {
2898 {
2899 .eraseblocks = {
2900 {32 * 1024, 3},
2901 {16 * 1024, 1},
2902 {8 * 1024, 1},
2903 {4 * 1024, 2},
2904 },
2905 .block_erase = spi_block_erase_d8,
2906 }, {
2907 .eraseblocks = { {128 * 1024, 1} },
2908 .block_erase = spi_block_erase_c7,
2909 }
2910 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002911 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002912 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002913 .write = spi_chip_write_256,
2914 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002915 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002916 },
2917
2918 {
2919 .vendor = "Eon",
2920 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002921 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002922 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002923 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002924 .total_size = 256,
2925 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002926 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002927 .tested = TEST_UNTESTED,
2928 .probe = probe_spi_rdid,
2929 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002930 .block_erasers =
2931 {
2932 {
2933 .eraseblocks = {
2934 {4 * 1024, 2},
2935 {8 * 1024, 1},
2936 {16 * 1024, 1},
2937 {32 * 1024, 1},
2938 {64 * 1024, 3}
2939 },
2940 .block_erase = spi_block_erase_d8,
2941 }, {
2942 .eraseblocks = { {256 * 1024, 1} },
2943 .block_erase = spi_block_erase_c7,
2944 }
2945 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002947 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002948 .write = spi_chip_write_256,
2949 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002950 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002951 },
2952
2953 {
2954 .vendor = "Eon",
2955 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002956 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002957 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002958 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002959 .total_size = 256,
2960 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002961 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002962 .tested = TEST_UNTESTED,
2963 .probe = probe_spi_rdid,
2964 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002965 .block_erasers =
2966 {
2967 {
2968 .eraseblocks = {
2969 {64 * 1024, 3},
2970 {32 * 1024, 1},
2971 {16 * 1024, 1},
2972 {8 * 1024, 1},
2973 {4 * 1024, 2},
2974 },
2975 .block_erase = spi_block_erase_d8,
2976 }, {
2977 .eraseblocks = { {256 * 1024, 1} },
2978 .block_erase = spi_block_erase_c7,
2979 }
2980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002982 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002983 .write = spi_chip_write_256,
2984 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002985 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002986 },
2987
2988 {
2989 .vendor = "Eon",
2990 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002991 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002992 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002993 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002994 .total_size = 512,
2995 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002996 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002997 .tested = TEST_UNTESTED,
2998 .probe = probe_spi_rdid,
2999 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003000 .block_erasers =
3001 {
3002 {
3003 .eraseblocks = {
3004 {4 * 1024, 2},
3005 {8 * 1024, 1},
3006 {16 * 1024, 1},
3007 {32 * 1024, 1},
3008 {64 * 1024, 7}
3009 },
3010 .block_erase = spi_block_erase_d8,
3011 }, {
3012 .eraseblocks = { {512 * 1024, 1} },
3013 .block_erase = spi_block_erase_c7,
3014 }
3015 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003016 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003017 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003018 .write = spi_chip_write_256,
3019 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003020 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003021 },
3022
3023 {
3024 .vendor = "Eon",
3025 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003026 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003027 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003028 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003029 .total_size = 512,
3030 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003031 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003032 .tested = TEST_UNTESTED,
3033 .probe = probe_spi_rdid,
3034 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003035 .block_erasers =
3036 {
3037 {
3038 .eraseblocks = {
3039 {64 * 1024, 7},
3040 {32 * 1024, 1},
3041 {16 * 1024, 1},
3042 {8 * 1024, 1},
3043 {4 * 1024, 2},
3044 },
3045 .block_erase = spi_block_erase_d8,
3046 }, {
3047 .eraseblocks = { {512 * 1024, 1} },
3048 .block_erase = spi_block_erase_c7,
3049 }
3050 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003051 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003052 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003053 .write = spi_chip_write_256,
3054 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003055 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003056 },
3057
3058 {
3059 .vendor = "Eon",
3060 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003061 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003062 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003063 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003064 .total_size = 1024,
3065 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003066 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003067 .tested = TEST_UNTESTED,
3068 .probe = probe_spi_rdid,
3069 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003070 .block_erasers =
3071 {
3072 {
3073 .eraseblocks = {
3074 {4 * 1024, 2},
3075 {8 * 1024, 1},
3076 {16 * 1024, 1},
3077 {32 * 1024, 1},
3078 {64 * 1024, 15}
3079 },
3080 .block_erase = spi_block_erase_d8,
3081 }, {
3082 .eraseblocks = { {1024 * 1024, 1} },
3083 .block_erase = spi_block_erase_c7,
3084 }
3085 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003086 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003087 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003088 .write = spi_chip_write_256,
3089 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003090 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003091 },
3092
3093 {
3094 .vendor = "Eon",
3095 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003096 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003097 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003098 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003099 .total_size = 1024,
3100 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003101 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003102 .tested = TEST_UNTESTED,
3103 .probe = probe_spi_rdid,
3104 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003105 .block_erasers =
3106 {
3107 {
3108 .eraseblocks = {
3109 {64 * 1024, 15},
3110 {32 * 1024, 1},
3111 {16 * 1024, 1},
3112 {8 * 1024, 1},
3113 {4 * 1024, 2},
3114 },
3115 .block_erase = spi_block_erase_d8,
3116 }, {
3117 .eraseblocks = { {1024 * 1024, 1} },
3118 .block_erase = spi_block_erase_c7,
3119 }
3120 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003122 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003123 .write = spi_chip_write_256,
3124 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003125 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 },
3127
3128 {
3129 .vendor = "Eon",
3130 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003131 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003132 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003133 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003134 .total_size = 2048,
3135 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003136 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003137 .tested = TEST_UNTESTED,
3138 .probe = probe_spi_rdid,
3139 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003140 .block_erasers =
3141 {
3142 {
3143 .eraseblocks = {
3144 {4 * 1024, 2},
3145 {8 * 1024, 1},
3146 {16 * 1024, 1},
3147 {32 * 1024, 1},
3148 {64 * 1024, 31},
3149 },
3150 .block_erase = spi_block_erase_d8,
3151 }, {
3152 .eraseblocks = { {2 * 1024 * 1024, 1} },
3153 .block_erase = spi_block_erase_c7,
3154 }
3155 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003156 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003157 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003158 .write = spi_chip_write_256,
3159 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003161 },
3162
3163 {
3164 .vendor = "Eon",
3165 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003166 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003167 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003168 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003169 .total_size = 2048,
3170 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003171 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003172 .tested = TEST_UNTESTED,
3173 .probe = probe_spi_rdid,
3174 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = {
3179 {64 * 1024, 31},
3180 {32 * 1024, 1},
3181 {16 * 1024, 1},
3182 {8 * 1024, 1},
3183 {4 * 1024, 2},
3184 },
3185 .block_erase = spi_block_erase_d8,
3186 }, {
3187 .eraseblocks = { {2 * 1024 * 1024, 1} },
3188 .block_erase = spi_block_erase_c7,
3189 }
3190 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003192 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003193 .write = spi_chip_write_256,
3194 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003195 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003196 },
3197
3198 {
3199 .vendor = "Eon",
3200 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003201 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003202 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003203 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003204 .total_size = 4096,
3205 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003206 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003207 .tested = TEST_UNTESTED,
3208 .probe = probe_spi_rdid,
3209 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003210 .block_erasers =
3211 {
3212 {
3213 .eraseblocks = {
3214 {4 * 1024, 2},
3215 {8 * 1024, 1},
3216 {16 * 1024, 1},
3217 {32 * 1024, 1},
3218 {64 * 1024, 63},
3219 },
3220 .block_erase = spi_block_erase_d8,
3221 }, {
3222 .eraseblocks = { {4 * 1024 * 1024, 1} },
3223 .block_erase = spi_block_erase_c7,
3224 }
3225 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003226 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003227 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003228 .write = spi_chip_write_256,
3229 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003230 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003231 },
3232
3233 {
3234 .vendor = "Eon",
3235 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003236 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003237 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003238 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003239 .total_size = 4096,
3240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003241 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003242 .tested = TEST_UNTESTED,
3243 .probe = probe_spi_rdid,
3244 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = {
3249 {64 * 1024, 63},
3250 {32 * 1024, 1},
3251 {16 * 1024, 1},
3252 {8 * 1024, 1},
3253 {4 * 1024, 2},
3254 },
3255 .block_erase = spi_block_erase_d8,
3256 }, {
3257 .eraseblocks = { {4 * 1024 * 1024, 1} },
3258 .block_erase = spi_block_erase_c7,
3259 }
3260 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003261 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003262 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003263 .write = spi_chip_write_256,
3264 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003265 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003266 },
3267
3268 {
3269 .vendor = "Eon",
3270 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003271 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003272 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003273 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003274 .total_size = 8192,
3275 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003276 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003277 .tested = TEST_UNTESTED,
3278 .probe = probe_spi_rdid,
3279 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003280 .block_erasers =
3281 {
3282 {
3283 .eraseblocks = {
3284 {4 * 1024, 2},
3285 {8 * 1024, 1},
3286 {16 * 1024, 1},
3287 {32 * 1024, 1},
3288 {64 * 1024, 127},
3289 },
3290 .block_erase = spi_block_erase_d8,
3291 }, {
3292 .eraseblocks = { {8 * 1024 * 1024, 1} },
3293 .block_erase = spi_block_erase_c7,
3294 }
3295 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003297 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003298 .write = spi_chip_write_256,
3299 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003300 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003301 },
3302
3303 {
3304 .vendor = "Eon",
3305 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003306 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003307 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003308 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003309 .total_size = 8192,
3310 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003311 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003312 .tested = TEST_UNTESTED,
3313 .probe = probe_spi_rdid,
3314 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003315 .block_erasers =
3316 {
3317 {
3318 .eraseblocks = {
3319 {64 * 1024, 127},
3320 {32 * 1024, 1},
3321 {16 * 1024, 1},
3322 {8 * 1024, 1},
3323 {4 * 1024, 2},
3324 },
3325 .block_erase = spi_block_erase_d8,
3326 }, {
3327 .eraseblocks = { {8 * 1024 * 1024, 1} },
3328 .block_erase = spi_block_erase_c7,
3329 }
3330 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003331 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003332 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003333 .write = spi_chip_write_256,
3334 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003335 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003336 },
3337
3338 {
3339 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003340 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003341 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003342 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003343 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003344 .total_size = 64,
3345 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003346 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003347 .tested = TEST_UNTESTED,
3348 .probe = probe_spi_rdid,
3349 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003350 .block_erasers =
3351 {
3352 {
3353 .eraseblocks = { {4 * 1024, 16} },
3354 .block_erase = spi_block_erase_20,
3355 }, {
3356 .eraseblocks = { {32 * 1024, 2} },
3357 .block_erase = spi_block_erase_d8,
3358 }, {
3359 .eraseblocks = { {32 * 1024, 2} },
3360 .block_erase = spi_block_erase_52,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_60,
3364 }, {
3365 .eraseblocks = { {64 * 1024, 1} },
3366 .block_erase = spi_block_erase_c7,
3367 }
3368 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003369 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003370 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003371 .write = spi_chip_write_256,
3372 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003373 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003374 },
3375
3376 {
3377 .vendor = "Eon",
3378 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003379 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003380 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003381 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003382 .total_size = 128,
3383 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003384 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003385 .tested = TEST_UNTESTED,
3386 .probe = probe_spi_rdid,
3387 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003388 .block_erasers =
3389 {
3390 {
3391 .eraseblocks = { {4 * 1024, 32} },
3392 .block_erase = spi_block_erase_20,
3393 }, {
3394 .eraseblocks = { {32 * 1024, 4} },
3395 .block_erase = spi_block_erase_d8,
3396 }, {
3397 .eraseblocks = { {32 * 1024, 4} },
3398 .block_erase = spi_block_erase_52,
3399 }, {
3400 .eraseblocks = { {128 * 1024, 1} },
3401 .block_erase = spi_block_erase_60,
3402 }, {
3403 .eraseblocks = { {128 * 1024, 1} },
3404 .block_erase = spi_block_erase_c7,
3405 }
3406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003409 .write = spi_chip_write_256,
3410 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003411 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003412 },
3413
3414 {
3415 .vendor = "Eon",
3416 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003417 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003418 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003419 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003420 .total_size = 256,
3421 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003422 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003423 .tested = TEST_UNTESTED,
3424 .probe = probe_spi_rdid,
3425 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .block_erasers =
3427 {
3428 {
3429 .eraseblocks = { {4 * 1024, 64} },
3430 .block_erase = spi_block_erase_20,
3431 }, {
3432 .eraseblocks = { {64 * 1024, 4} },
3433 .block_erase = spi_block_erase_d8,
3434 }, {
3435 .eraseblocks = { {64 * 1024, 4} },
3436 .block_erase = spi_block_erase_52,
3437 }, {
3438 .eraseblocks = { {256 * 1024, 1} },
3439 .block_erase = spi_block_erase_60,
3440 }, {
3441 .eraseblocks = { {256 * 1024, 1} },
3442 .block_erase = spi_block_erase_c7,
3443 }
3444 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003447 .write = spi_chip_write_256,
3448 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003449 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003450 },
3451
3452 {
3453 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003454 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003455 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003456 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003457 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003458 .total_size = 512,
3459 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003460 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003461 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003462 .probe = probe_spi_rdid,
3463 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003464 .block_erasers =
3465 {
3466 {
Sean Nelson54596372010-01-09 05:30:14 +00003467 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003468 .block_erase = spi_block_erase_20,
3469 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003470 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003471 .block_erase = spi_block_erase_d8,
3472 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003473 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003474 .block_erase = spi_block_erase_60,
3475 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003476 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003477 .block_erase = spi_block_erase_c7,
3478 },
3479 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003480 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003481 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003482 .write = spi_chip_write_256,
3483 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003484 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003485 },
3486
3487 {
3488 .vendor = "Eon",
3489 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003490 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003491 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003492 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003493 .total_size = 1024,
3494 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003495 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003496 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003497 .probe = probe_spi_rdid,
3498 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003499 .block_erasers =
3500 {
3501 {
3502 .eraseblocks = { {4 * 1024, 256} },
3503 .block_erase = spi_block_erase_20,
3504 }, {
3505 .eraseblocks = { {64 * 1024, 16} },
3506 .block_erase = spi_block_erase_d8,
3507 }, {
3508 .eraseblocks = { {1024 * 1024, 1} },
3509 .block_erase = spi_block_erase_60,
3510 }, {
3511 .eraseblocks = { {1024 * 1024, 1} },
3512 .block_erase = spi_block_erase_c7,
3513 }
3514 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003515 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003516 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003517 .write = spi_chip_write_256,
3518 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003519 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003520 },
3521
3522 {
3523 .vendor = "Eon",
3524 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003525 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003526 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003527 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003528 .total_size = 2048,
3529 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003530 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003531 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003532 .probe = probe_spi_rdid,
3533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .block_erasers =
3535 {
3536 {
3537 .eraseblocks = { {4 * 1024, 512} },
3538 .block_erase = spi_block_erase_20,
3539 }, {
3540 .eraseblocks = { {64 * 1024, 32} },
3541 .block_erase = spi_block_erase_d8,
3542 }, {
3543 .eraseblocks = { {2 * 1024 * 1024, 1} },
3544 .block_erase = spi_block_erase_60,
3545 }, {
3546 .eraseblocks = { {2 * 1024 * 1024, 1} },
3547 .block_erase = spi_block_erase_c7,
3548 }
3549 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003550 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003551 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003552 .write = spi_chip_write_256,
3553 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003554 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003555 },
3556
3557 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003558 .vendor = "Eon",
3559 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003560 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003561 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003562 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003563 .total_size = 4096,
3564 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003565 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003566 .tested = TEST_UNTESTED,
3567 .probe = probe_spi_rdid,
3568 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003569 .block_erasers =
3570 {
3571 {
3572 .eraseblocks = { {4 * 1024, 1024} },
3573 .block_erase = spi_block_erase_20,
3574 }, {
3575 .eraseblocks = { {64 * 1024, 64} },
3576 .block_erase = spi_block_erase_d8,
3577 }, {
3578 .eraseblocks = { {4 * 1024 * 1024, 1} },
3579 .block_erase = spi_block_erase_60,
3580 }, {
3581 .eraseblocks = { {4 * 1024 * 1024, 1} },
3582 .block_erase = spi_block_erase_c7,
3583 }
3584 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003586 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003587 .write = spi_chip_write_256,
3588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003589 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003590 },
3591
3592 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003593 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003594 .name = "EN25F64",
3595 .bustype = BUS_SPI,
3596 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003597 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003598 .total_size = 8192,
3599 .page_size = 256,
3600 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003601 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003602 .probe = probe_spi_rdid,
3603 .probe_timing = TIMING_ZERO,
3604 .block_erasers =
3605 {
3606 {
3607 .eraseblocks = { {4 * 1024, 2048} },
3608 .block_erase = spi_block_erase_20,
3609 }, {
3610 .eraseblocks = { {64 * 1024, 128} },
3611 .block_erase = spi_block_erase_d8,
3612 }, {
3613 .eraseblocks = { {8 * 1024 * 1024, 1} },
3614 .block_erase = spi_block_erase_60,
3615 }, {
3616 .eraseblocks = { {8 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
3618 }
3619 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003621 .unlock = spi_disable_blockprotect,
3622 .write = spi_chip_write_256,
3623 .read = spi_chip_read,
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003629 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003630 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003631 .manufacture_id = EON_ID_NOPREFIX,
3632 .model_id = EON_EN25Q40,
3633 .total_size = 512,
3634 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003635 /* OTP: 256B total; enter 0x3A */
3636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003637 .tested = TEST_UNTESTED,
3638 .probe = probe_spi_rdid,
3639 .probe_timing = TIMING_ZERO,
3640 .block_erasers =
3641 {
3642 {
3643 .eraseblocks = { {4 * 1024, 128} },
3644 .block_erase = spi_block_erase_20,
3645 }, {
3646 .eraseblocks = { {64 * 1024, 8} },
3647 .block_erase = spi_block_erase_d8,
3648 }, {
3649 .eraseblocks = { {512 * 1024, 1} },
3650 .block_erase = spi_block_erase_60,
3651 }, {
3652 .eraseblocks = { {512 * 1024, 1} },
3653 .block_erase = spi_block_erase_c7,
3654 }
3655 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003656 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003657 .unlock = spi_disable_blockprotect,
3658 .write = spi_chip_write_256,
3659 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003660 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003661 },
3662
3663 {
3664 .vendor = "Eon",
3665 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003666 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003667 .manufacture_id = EON_ID_NOPREFIX,
3668 .model_id = EON_EN25Q80,
3669 .total_size = 1024,
3670 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003671 /* OTP: 256B total; enter 0x3A */
3672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003673 .tested = TEST_UNTESTED,
3674 .probe = probe_spi_rdid,
3675 .probe_timing = TIMING_ZERO,
3676 .block_erasers =
3677 {
3678 {
3679 .eraseblocks = { {4 * 1024, 256} },
3680 .block_erase = spi_block_erase_20,
3681 }, {
3682 .eraseblocks = { {64 * 1024, 16} },
3683 .block_erase = spi_block_erase_d8,
3684 }, {
3685 .eraseblocks = { {1024 * 1024, 1} },
3686 .block_erase = spi_block_erase_60,
3687 }, {
3688 .eraseblocks = { {1024 * 1024, 1} },
3689 .block_erase = spi_block_erase_c7,
3690 }
3691 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003693 .unlock = spi_disable_blockprotect,
3694 .write = spi_chip_write_256,
3695 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003696 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003697 },
3698
3699 {
3700 /* Note: EN25D16 is an evil twin which shares the model ID
3701 but has different write protection capabilities */
3702 .vendor = "Eon",
3703 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003704 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003705 .manufacture_id = EON_ID_NOPREFIX,
3706 .model_id = EON_EN25Q16,
3707 .total_size = 2048,
3708 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003709 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3710 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003711 .tested = TEST_UNTESTED,
3712 .probe = probe_spi_rdid,
3713 .probe_timing = TIMING_ZERO,
3714 .block_erasers =
3715 {
3716 {
3717 .eraseblocks = { {4 * 1024, 512} },
3718 .block_erase = spi_block_erase_20,
3719 }, {
3720 .eraseblocks = { {64 * 1024, 32} },
3721 .block_erase = spi_block_erase_d8,
3722 }, {
3723 /* not supported by Q16 version */
3724 .eraseblocks = { {64 * 1024, 32} },
3725 .block_erase = spi_block_erase_52,
3726 }, {
3727 .eraseblocks = { {2 * 1024 * 1024, 1} },
3728 .block_erase = spi_block_erase_60,
3729 }, {
3730 .eraseblocks = { {2 * 1024 * 1024, 1} },
3731 .block_erase = spi_block_erase_c7,
3732 }
3733 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003734 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003735 .unlock = spi_disable_blockprotect,
3736 .write = spi_chip_write_256,
3737 .read = spi_chip_read,
3738 .voltage = {2700, 3600},
3739 },
3740
3741 {
3742 .vendor = "Eon",
3743 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003744 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003745 .manufacture_id = EON_ID_NOPREFIX,
3746 .model_id = EON_EN25Q32,
3747 .total_size = 4096,
3748 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003749 /* OTP: 512B total; enter 0x3A */
3750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003751 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003752 .probe = probe_spi_rdid,
3753 .probe_timing = TIMING_ZERO,
3754 .block_erasers =
3755 {
3756 {
3757 .eraseblocks = { {4 * 1024, 1024} },
3758 .block_erase = spi_block_erase_20,
3759 }, {
3760 .eraseblocks = { {64 * 1024, 64} },
3761 .block_erase = spi_block_erase_d8,
3762 }, {
3763 .eraseblocks = { {4 * 1024 * 1024, 1} },
3764 .block_erase = spi_block_erase_60,
3765 }, {
3766 .eraseblocks = { {4 * 1024 * 1024, 1} },
3767 .block_erase = spi_block_erase_c7,
3768 }
3769 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003770 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003771 .unlock = spi_disable_blockprotect,
3772 .write = spi_chip_write_256,
3773 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003774 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003775 },
3776
3777 {
3778 .vendor = "Eon",
3779 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003780 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003781 .manufacture_id = EON_ID_NOPREFIX,
3782 .model_id = EON_EN25Q64,
3783 .total_size = 8192,
3784 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003785 /* OTP: 512B total; enter 0x3A */
3786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003787 .tested = TEST_UNTESTED,
3788 .probe = probe_spi_rdid,
3789 .probe_timing = TIMING_ZERO,
3790 .block_erasers =
3791 {
3792 {
3793 .eraseblocks = { {4 * 1024, 2048} },
3794 .block_erase = spi_block_erase_20,
3795 }, {
3796 .eraseblocks = { {64 * 1024, 128} },
3797 .block_erase = spi_block_erase_d8,
3798 }, {
3799 .eraseblocks = { {8 * 1024 * 1024, 1} },
3800 .block_erase = spi_block_erase_60,
3801 }, {
3802 .eraseblocks = { {8 * 1024 * 1024, 1} },
3803 .block_erase = spi_block_erase_c7,
3804 }
3805 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003806 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003807 .unlock = spi_disable_blockprotect,
3808 .write = spi_chip_write_256,
3809 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003810 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003811 },
3812
3813 {
3814 .vendor = "Eon",
3815 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003816 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003817 .manufacture_id = EON_ID_NOPREFIX,
3818 .model_id = EON_EN25Q128,
3819 .total_size = 16384,
3820 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003821 /* OTP: 512B total; enter 0x3A */
3822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003823 .tested = TEST_UNTESTED,
3824 .probe = probe_spi_rdid,
3825 .probe_timing = TIMING_ZERO,
3826 .block_erasers =
3827 {
3828 {
3829 .eraseblocks = { {4 * 1024, 4096} },
3830 .block_erase = spi_block_erase_20,
3831 }, {
3832 .eraseblocks = { {64 * 1024, 256} },
3833 .block_erase = spi_block_erase_d8,
3834 }, {
3835 .eraseblocks = { {16 * 1024 * 1024, 1} },
3836 .block_erase = spi_block_erase_60,
3837 }, {
3838 .eraseblocks = { {16 * 1024 * 1024, 1} },
3839 .block_erase = spi_block_erase_c7,
3840 }
3841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003843 .unlock = spi_disable_blockprotect,
3844 .write = spi_chip_write_256,
3845 .read = spi_chip_read,
3846 },
3847
3848 {
3849 .vendor = "Eon",
3850 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003851 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003852 .manufacture_id = EON_ID_NOPREFIX,
3853 .model_id = EON_EN25QH16,
3854 .total_size = 2048,
3855 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003856 /* supports SFDP */
3857 /* OTP: 512B total; enter 0x3A */
3858 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003859 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003860 .probe = probe_spi_rdid,
3861 .probe_timing = TIMING_ZERO,
3862 .block_erasers =
3863 {
3864 {
3865 .eraseblocks = { {4 * 1024, 512} },
3866 .block_erase = spi_block_erase_20,
3867 }, {
3868 .eraseblocks = { {64 * 1024, 32} },
3869 .block_erase = spi_block_erase_d8,
3870 }, {
3871 .eraseblocks = { {1024 * 2048, 1} },
3872 .block_erase = spi_block_erase_60,
3873 }, {
3874 .eraseblocks = { {1024 * 2048, 1} },
3875 .block_erase = spi_block_erase_c7,
3876 }
3877 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003879 .unlock = spi_disable_blockprotect,
3880 .write = spi_chip_write_256,
3881 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003882 .voltage = {2700, 3600},
3883 },
3884
3885 {
3886 .vendor = "Eon",
3887 .name = "EN25QH32",
3888 .bustype = BUS_SPI,
3889 .manufacture_id = EON_ID_NOPREFIX,
3890 .model_id = EON_EN25QH32,
3891 .total_size = 4096,
3892 .page_size = 256,
3893 /* supports SFDP */
3894 /* OTP: 512B total; enter 0x3A */
3895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3896 .tested = TEST_UNTESTED,
3897 .probe = probe_spi_rdid,
3898 .probe_timing = TIMING_ZERO,
3899 .block_erasers =
3900 {
3901 {
3902 .eraseblocks = { {4 * 1024, 1024} },
3903 .block_erase = spi_block_erase_20,
3904 }, {
3905 .eraseblocks = { {64 * 1024, 64} },
3906 .block_erase = spi_block_erase_d8,
3907 }, {
3908 .eraseblocks = { {1024 * 4096, 1} },
3909 .block_erase = spi_block_erase_60,
3910 }, {
3911 .eraseblocks = { {1024 * 4096, 1} },
3912 .block_erase = spi_block_erase_c7,
3913 }
3914 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003915 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Tauner2cef9162012-05-14 01:51:46 +00003916 .unlock = spi_disable_blockprotect,
3917 .write = spi_chip_write_256,
3918 .read = spi_chip_read,
3919 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003920 },
3921
3922 {
3923 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003924 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003925 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003926 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003927 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003928 .total_size = 128,
3929 .page_size = 128,
3930 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003931 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003932 .probe = probe_jedec,
3933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3934 .block_erasers =
3935 {
3936 {
3937 .eraseblocks = { {16 * 1024, 8} },
3938 .block_erase = erase_sector_jedec,
3939 },
3940 {
3941 .eraseblocks = { {128 * 1024, 1} },
3942 .block_erase = erase_chip_block_jedec,
3943 },
3944 },
3945 .write = write_jedec_1,
3946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003947 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003948 },
3949
3950 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003951 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003952 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003953 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003954 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003955 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003956 .total_size = 256,
3957 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003958 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003959 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003960 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003962 .block_erasers =
3963 {
3964 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003965 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003966 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003967 {8 * 1024, 2},
3968 {32 * 1024, 1},
3969 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003970 },
3971 .block_erase = erase_sector_jedec,
3972 }, {
3973 .eraseblocks = { {256 * 1024, 1} },
3974 .block_erase = erase_chip_block_jedec,
3975 },
3976 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003977 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003979 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003980 },
3981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003982 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003983 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003984 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003986 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003987 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003988 .total_size = 256,
3989 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003990 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003992 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003993 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003994 .block_erasers =
3995 {
3996 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003997 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003998 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003999 {32 * 1024, 1},
4000 {8 * 1024, 2},
4001 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004002 },
4003 .block_erase = erase_sector_jedec,
4004 }, {
4005 .eraseblocks = { {256 * 1024, 1} },
4006 .block_erase = erase_chip_block_jedec,
4007 },
4008 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004011 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004012 },
4013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004014 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004015 .vendor = "Eon",
4016 .name = "EN29LV640B",
4017 .bustype = BUS_PARALLEL,
4018 .manufacture_id = EON_ID,
4019 .model_id = EON_EN29LV640B,
4020 .total_size = 8192,
4021 .page_size = 8192,
4022 .feature_bits = 0,
4023 .tested = TEST_OK_PREW,
4024 .probe = probe_en29lv640b,
4025 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4026 .block_erasers =
4027 {
4028 {
4029 .eraseblocks = {
4030 {8 * 1024, 8},
4031 {64 * 1024, 127},
4032 },
4033 .block_erase = block_erase_en29lv640b,
4034 }, {
4035 .eraseblocks = { {8 * 1024 * 1024, 1} },
4036 .block_erase = block_erase_chip_en29lv640b,
4037 },
4038 },
4039 .write = write_en29lv640b,
4040 .read = read_memmapped,
4041 .voltage = {2700, 3600},
4042 },
4043
4044 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004045 .vendor = "Fujitsu",
4046 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004047 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004048 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004049 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004050 .total_size = 512,
4051 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004052 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004053 .tested = TEST_UNTESTED,
4054 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004055 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004056 .block_erasers =
4057 {
4058 {
4059 .eraseblocks = {
4060 {16 * 1024, 1},
4061 {8 * 1024, 2},
4062 {32 * 1024, 1},
4063 {64 * 1024, 7},
4064 },
Sean Nelson35727f72010-01-28 23:55:12 +00004065 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004066 }, {
4067 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004068 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004069 },
4070 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004071 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004073 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004074 },
4075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004076 {
4077 .vendor = "Fujitsu",
4078 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004079 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004081 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004082 .total_size = 512,
4083 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004084 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004085 .tested = TEST_UNTESTED,
4086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004087 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004088 .block_erasers =
4089 {
4090 {
4091 .eraseblocks = {
4092 {64 * 1024, 7},
4093 {32 * 1024, 1},
4094 {8 * 1024, 2},
4095 {16 * 1024, 1},
4096 },
Sean Nelson35727f72010-01-28 23:55:12 +00004097 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004098 }, {
4099 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004100 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004101 },
4102 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004103 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004105 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004106 },
4107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004108 {
Sean Nelson35727f72010-01-28 23:55:12 +00004109 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004110 .vendor = "Fujitsu",
4111 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004112 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004113 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004114 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004115 .total_size = 512,
4116 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004117 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004118 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004119 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004120 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004121 .block_erasers =
4122 {
4123 {
4124 .eraseblocks = {
4125 {16 * 1024, 1},
4126 {8 * 1024, 2},
4127 {32 * 1024, 1},
4128 {64 * 1024, 7},
4129 },
4130 .block_erase = block_erase_m29f400bt,
4131 }, {
4132 .eraseblocks = { {512 * 1024, 1} },
4133 .block_erase = block_erase_chip_m29f400bt,
4134 },
4135 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004136 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004137 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004138 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004139 },
4140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004141 {
4142 .vendor = "Fujitsu",
4143 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004144 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004145 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004146 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004147 .total_size = 512,
4148 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004149 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004150 .tested = TEST_UNTESTED,
4151 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004152 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004153 .block_erasers =
4154 {
4155 {
4156 .eraseblocks = {
4157 {64 * 1024, 7},
4158 {32 * 1024, 1},
4159 {8 * 1024, 2},
4160 {16 * 1024, 1},
4161 },
4162 .block_erase = block_erase_m29f400bt,
4163 }, {
4164 .eraseblocks = { {512 * 1024, 1} },
4165 .block_erase = block_erase_chip_m29f400bt,
4166 },
4167 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004168 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004169 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004170 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004171 },
4172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004173 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004174 .vendor = "GigaDevice",
4175 .name = "GD25Q20",
4176 .bustype = BUS_SPI,
4177 .manufacture_id = GIGADEVICE_ID,
4178 .model_id = GIGADEVICE_GD25Q20,
4179 .total_size = 256,
4180 .page_size = 256,
4181 .feature_bits = FEATURE_WRSR_WREN,
4182 .tested = TEST_UNTESTED,
4183 .probe = probe_spi_rdid,
4184 .probe_timing = TIMING_ZERO,
4185 .block_erasers =
4186 {
4187 {
4188 .eraseblocks = { {4 * 1024, 64} },
4189 .block_erase = spi_block_erase_20,
4190 }, {
4191 .eraseblocks = { {32 * 1024, 8} },
4192 .block_erase = spi_block_erase_52,
4193 }, {
4194 .eraseblocks = { {64 * 1024, 4} },
4195 .block_erase = spi_block_erase_d8,
4196 }, {
4197 .eraseblocks = { {256 * 1024, 1} },
4198 .block_erase = spi_block_erase_60,
4199 }, {
4200 .eraseblocks = { {256 * 1024, 1} },
4201 .block_erase = spi_block_erase_c7,
4202 }
4203 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004204 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004205 .unlock = spi_disable_blockprotect,
4206 .write = spi_chip_write_256,
4207 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004208 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004209 },
4210
4211 {
4212 .vendor = "GigaDevice",
4213 .name = "GD25Q40",
4214 .bustype = BUS_SPI,
4215 .manufacture_id = GIGADEVICE_ID,
4216 .model_id = GIGADEVICE_GD25Q40,
4217 .total_size = 512,
4218 .page_size = 256,
4219 .feature_bits = FEATURE_WRSR_WREN,
4220 .tested = TEST_UNTESTED,
4221 .probe = probe_spi_rdid,
4222 .probe_timing = TIMING_ZERO,
4223 .block_erasers =
4224 {
4225 {
4226 .eraseblocks = { {4 * 1024, 128} },
4227 .block_erase = spi_block_erase_20,
4228 }, {
4229 .eraseblocks = { {32 * 1024, 16} },
4230 .block_erase = spi_block_erase_52,
4231 }, {
4232 .eraseblocks = { {64 * 1024, 8} },
4233 .block_erase = spi_block_erase_d8,
4234 }, {
4235 .eraseblocks = { {512 * 1024, 1} },
4236 .block_erase = spi_block_erase_60,
4237 }, {
4238 .eraseblocks = { {512 * 1024, 1} },
4239 .block_erase = spi_block_erase_c7,
4240 }
4241 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004243 .unlock = spi_disable_blockprotect,
4244 .write = spi_chip_write_256,
4245 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004246 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004247 },
4248
4249 {
4250 .vendor = "GigaDevice",
4251 .name = "GD25Q80",
4252 .bustype = BUS_SPI,
4253 .manufacture_id = GIGADEVICE_ID,
4254 .model_id = GIGADEVICE_GD25Q80,
4255 .total_size = 1024,
4256 .page_size = 256,
4257 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4258 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4259 .tested = TEST_OK_PREW,
4260 .probe = probe_spi_rdid,
4261 .probe_timing = TIMING_ZERO,
4262 .block_erasers =
4263 {
4264 {
4265 .eraseblocks = { {4 * 1024, 256} },
4266 .block_erase = spi_block_erase_20,
4267 }, {
4268 .eraseblocks = { {32 * 1024, 32} },
4269 .block_erase = spi_block_erase_52,
4270 }, {
4271 .eraseblocks = { {64 * 1024, 16} },
4272 .block_erase = spi_block_erase_d8,
4273 }, {
4274 .eraseblocks = { {1024 * 1024, 1} },
4275 .block_erase = spi_block_erase_60,
4276 }, {
4277 .eraseblocks = { {1024 * 1024, 1} },
4278 .block_erase = spi_block_erase_c7,
4279 }
4280 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004281 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004282 .unlock = spi_disable_blockprotect,
4283 .write = spi_chip_write_256,
4284 .read = spi_chip_read,
4285 .voltage = {2700, 3600},
4286 },
4287
4288 {
4289 .vendor = "GigaDevice",
4290 .name = "GD25Q16",
4291 .bustype = BUS_SPI,
4292 .manufacture_id = GIGADEVICE_ID,
4293 .model_id = GIGADEVICE_GD25Q16,
4294 .total_size = 2048,
4295 .page_size = 256,
4296 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4298 .tested = TEST_UNTESTED,
4299 .probe = probe_spi_rdid,
4300 .probe_timing = TIMING_ZERO,
4301 .block_erasers =
4302 {
4303 {
4304 .eraseblocks = { {4 * 1024, 512} },
4305 .block_erase = spi_block_erase_20,
4306 }, {
4307 .eraseblocks = { {32 * 1024, 64} },
4308 .block_erase = spi_block_erase_52,
4309 }, {
4310 .eraseblocks = { {64 * 1024, 32} },
4311 .block_erase = spi_block_erase_d8,
4312 }, {
4313 .eraseblocks = { {2 * 1024 * 1024, 1} },
4314 .block_erase = spi_block_erase_60,
4315 }, {
4316 .eraseblocks = { {2 * 1024 * 1024, 1} },
4317 .block_erase = spi_block_erase_c7,
4318 }
4319 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004320 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004321 .unlock = spi_disable_blockprotect,
4322 .write = spi_chip_write_256,
4323 .read = spi_chip_read,
4324 .voltage = {2700, 3600},
4325 },
4326
4327 {
4328 .vendor = "GigaDevice",
4329 .name = "GD25Q32",
4330 .bustype = BUS_SPI,
4331 .manufacture_id = GIGADEVICE_ID,
4332 .model_id = GIGADEVICE_GD25Q32,
4333 .total_size = 4096,
4334 .page_size = 256,
4335 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4337 .tested = TEST_UNTESTED,
4338 .probe = probe_spi_rdid,
4339 .probe_timing = TIMING_ZERO,
4340 .block_erasers =
4341 {
4342 {
4343 .eraseblocks = { {4 * 1024, 1024} },
4344 .block_erase = spi_block_erase_20,
4345 }, {
4346 .eraseblocks = { {32 * 1024, 128} },
4347 .block_erase = spi_block_erase_52,
4348 }, {
4349 .eraseblocks = { {64 * 1024, 64} },
4350 .block_erase = spi_block_erase_d8,
4351 }, {
4352 .eraseblocks = { {4 * 1024 * 1024, 1} },
4353 .block_erase = spi_block_erase_60,
4354 }, {
4355 .eraseblocks = { {4 * 1024 * 1024, 1} },
4356 .block_erase = spi_block_erase_c7,
4357 }
4358 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004359 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004360 .unlock = spi_disable_blockprotect,
4361 .write = spi_chip_write_256,
4362 .read = spi_chip_read,
4363 .voltage = {2700, 3600},
4364 },
4365
4366 {
4367 .vendor = "GigaDevice",
4368 .name = "GD25Q64",
4369 .bustype = BUS_SPI,
4370 .manufacture_id = GIGADEVICE_ID,
4371 .model_id = GIGADEVICE_GD25Q64,
4372 .total_size = 8192,
4373 .page_size = 256,
4374 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4375 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004376 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004377 .probe = probe_spi_rdid,
4378 .probe_timing = TIMING_ZERO,
4379 .block_erasers =
4380 {
4381 {
4382 .eraseblocks = { {4 * 1024, 2048} },
4383 .block_erase = spi_block_erase_20,
4384 }, {
4385 .eraseblocks = { {32 * 1024, 256} },
4386 .block_erase = spi_block_erase_52,
4387 }, {
4388 .eraseblocks = { {64 * 1024, 128} },
4389 .block_erase = spi_block_erase_d8,
4390 }, {
4391 .eraseblocks = { {8 * 1024 * 1024, 1} },
4392 .block_erase = spi_block_erase_60,
4393 }, {
4394 .eraseblocks = { {8 * 1024 * 1024, 1} },
4395 .block_erase = spi_block_erase_c7,
4396 }
4397 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004398 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004399 .unlock = spi_disable_blockprotect,
4400 .write = spi_chip_write_256,
4401 .read = spi_chip_read,
4402 },
4403
4404 {
4405 .vendor = "GigaDevice",
4406 .name = "GD25Q128",
4407 .bustype = BUS_SPI,
4408 .manufacture_id = GIGADEVICE_ID,
4409 .model_id = GIGADEVICE_GD25Q128,
4410 .total_size = 16384,
4411 .page_size = 256,
4412 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4414 .tested = TEST_UNTESTED,
4415 .probe = probe_spi_rdid,
4416 .probe_timing = TIMING_ZERO,
4417 .block_erasers =
4418 {
4419 {
4420 .eraseblocks = { {4 * 1024, 4096} },
4421 .block_erase = spi_block_erase_20,
4422 }, {
4423 .eraseblocks = { {32 * 1024, 512} },
4424 .block_erase = spi_block_erase_52,
4425 }, {
4426 .eraseblocks = { {64 * 1024, 256} },
4427 .block_erase = spi_block_erase_d8,
4428 }, {
4429 .eraseblocks = { {16 * 1024 * 1024, 1} },
4430 .block_erase = spi_block_erase_60,
4431 }, {
4432 .eraseblocks = { {16 * 1024 * 1024, 1} },
4433 .block_erase = spi_block_erase_c7,
4434 }
4435 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004436 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004437 .unlock = spi_disable_blockprotect,
4438 .write = spi_chip_write_256,
4439 .read = spi_chip_read,
4440 },
4441
4442 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004443 .vendor = "GigaDevice",
4444 .name = "GD25LQ32",
4445 .bustype = BUS_SPI,
4446 .manufacture_id = GIGADEVICE_ID,
4447 .model_id = GIGADEVICE_GD25LQ32,
4448 .total_size = 4096,
4449 .page_size = 256,
4450 .feature_bits = FEATURE_WRSR_WREN,
4451 .tested = TEST_OK_PREW,
4452 .probe = probe_spi_rdid,
4453 .probe_timing = TIMING_ZERO,
4454 .block_erasers =
4455 {
4456 {
4457 .eraseblocks = { {4 * 1024, 1024} },
4458 .block_erase = spi_block_erase_20,
4459 }, {
4460 .eraseblocks = { {32 * 1024, 128} },
4461 .block_erase = spi_block_erase_52,
4462 }, {
4463 .eraseblocks = { {64 * 1024, 64} },
4464 .block_erase = spi_block_erase_d8,
4465 }, {
4466 .eraseblocks = { {4 * 1024 * 1024, 1} },
4467 .block_erase = spi_block_erase_60,
4468 }, {
4469 .eraseblocks = { {4 * 1024 * 1024, 1} },
4470 .block_erase = spi_block_erase_c7,
4471 }
4472 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004474 .unlock = spi_disable_blockprotect,
4475 .write = spi_chip_write_256,
4476 .read = spi_chip_read,
4477 .voltage = {1700, 1950},
4478 },
4479
4480 {
David Borgc96a8bd2010-06-21 16:12:22 +00004481 .vendor = "Hyundai",
4482 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004483 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004484 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004485 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004486 .total_size = 256,
4487 .page_size = 256 * 1024,
4488 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004489 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004490 .probe = probe_jedec,
4491 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4492 .block_erasers =
4493 {
4494 {
4495 .eraseblocks = {
4496 {64 * 1024, 3},
4497 {32 * 1024, 1},
4498 {8 * 1024, 2},
4499 {16 * 1024, 1},
4500 },
4501 .block_erase = erase_sector_jedec,
4502 }, {
4503 .eraseblocks = { {256 * 1024, 1} },
4504 .block_erase = erase_chip_block_jedec,
4505 },
4506 },
4507 .write = write_jedec_1,
4508 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004509 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004510 },
4511
4512 {
4513 .vendor = "Hyundai",
4514 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004515 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004516 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004517 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004518 .total_size = 256,
4519 .page_size = 256 * 1024,
4520 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4521 .tested = TEST_UNTESTED,
4522 .probe = probe_jedec,
4523 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4524 .block_erasers =
4525 {
4526 {
4527 .eraseblocks = {
4528 {16 * 1024, 1},
4529 {8 * 1024, 2},
4530 {32 * 1024, 1},
4531 {64 * 1024, 3},
4532 },
4533 .block_erase = erase_sector_jedec,
4534 }, {
4535 .eraseblocks = { {256 * 1024, 1} },
4536 .block_erase = erase_chip_block_jedec,
4537 },
4538 },
4539 .write = write_jedec_1,
4540 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004541 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004542 },
4543
4544 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004545 .vendor = "Hyundai",
4546 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004547 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004548 .manufacture_id = HYUNDAI_ID,
4549 .model_id = HYUNDAI_HY29F040A,
4550 .total_size = 512,
4551 .page_size = 64 * 1024,
4552 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4553 .tested = TEST_UNTESTED,
4554 .probe = probe_jedec,
4555 .probe_timing = TIMING_ZERO,
4556 .block_erasers =
4557 {
4558 {
4559 .eraseblocks = { {64 * 1024, 8} },
4560 .block_erase = erase_sector_jedec,
4561 }, {
4562 .eraseblocks = { {512 * 1024, 1} },
4563 .block_erase = erase_chip_block_jedec,
4564 },
4565 },
4566 .write = write_jedec_1,
4567 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004568 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004569 },
4570
4571 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004572 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00004573 .name = "25F160S33B8",
4574 .bustype = BUS_SPI,
4575 .manufacture_id = INTEL_ID,
4576 .model_id = INTEL_25F160S33B8,
4577 .total_size = 2048,
4578 .page_size = 256,
4579 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4581 .tested = TEST_UNTESTED,
4582 .probe = probe_spi_rdid,
4583 .probe_timing = TIMING_ZERO,
4584 .block_erasers =
4585 {
4586 {
4587 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4588 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4589 * have no effect on the memory contents, but sets a flag in the SR.
4590 .eraseblocks = {
4591 {8 * 1024, 8},
4592 {64 * 1024, 31} // inaccessible
4593 },
4594 .block_erase = spi_block_erase_40,
4595 }, { */
4596 .eraseblocks = { {64 * 1024, 32} },
4597 .block_erase = spi_block_erase_d8,
4598 }, {
4599 .eraseblocks = { {2 * 1024 * 1024, 1} },
4600 .block_erase = spi_block_erase_c7,
4601 }
4602 },
4603 .printlock = spi_prettyprint_status_register_s33,
4604 .unlock = spi_disable_blockprotect_s33,
4605 .write = spi_chip_write_256,
4606 .read = spi_chip_read, /* also fast read 0x0B */
4607 .voltage = {2700, 3600},
4608 },
4609
4610 {
4611 .vendor = "Intel",
4612 .name = "25F160S33T8",
4613 .bustype = BUS_SPI,
4614 .manufacture_id = INTEL_ID,
4615 .model_id = INTEL_25F160S33T8,
4616 .total_size = 2048,
4617 .page_size = 256,
4618 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4619 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4620 .tested = TEST_UNTESTED,
4621 .probe = probe_spi_rdid,
4622 .probe_timing = TIMING_ZERO,
4623 .block_erasers =
4624 {
4625 {
4626 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4627 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4628 * have no effect on the memory contents, but sets a flag in the SR.
4629 .eraseblocks = {
4630 {64 * 1024, 31}, // inaccessible
4631 {8 * 1024, 8}
4632 },
4633 .block_erase = spi_block_erase_40,
4634 }, { */
4635 .eraseblocks = { {64 * 1024, 32} },
4636 .block_erase = spi_block_erase_d8,
4637 }, {
4638 .eraseblocks = { {2 * 1024 * 1024, 1} },
4639 .block_erase = spi_block_erase_c7,
4640 }
4641 },
4642 .printlock = spi_prettyprint_status_register_s33,
4643 .unlock = spi_disable_blockprotect_s33,
4644 .write = spi_chip_write_256,
4645 .read = spi_chip_read, /* also fast read 0x0B */
4646 .voltage = {2700, 3600},
4647 },
4648
4649 {
4650 .vendor = "Intel",
4651 .name = "25F320S33B8",
4652 .bustype = BUS_SPI,
4653 .manufacture_id = INTEL_ID,
4654 .model_id = INTEL_25F320S33B8,
4655 .total_size = 4096,
4656 .page_size = 256,
4657 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4658 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4659 .tested = TEST_UNTESTED,
4660 .probe = probe_spi_rdid,
4661 .probe_timing = TIMING_ZERO,
4662 .block_erasers =
4663 {
4664 {
4665 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4666 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4667 * have no effect on the memory contents, but sets a flag in the SR.
4668 .eraseblocks = {
4669 {8 * 1024, 8},
4670 {64 * 1024, 63} // inaccessible
4671 },
4672 .block_erase = spi_block_erase_40,
4673 }, { */
4674 .eraseblocks = { {64 * 1024, 64} },
4675 .block_erase = spi_block_erase_d8,
4676 }, {
4677 .eraseblocks = { {4 * 1024 * 1024, 1} },
4678 .block_erase = spi_block_erase_c7,
4679 }
4680 },
4681 .printlock = spi_prettyprint_status_register_s33,
4682 .unlock = spi_disable_blockprotect_s33,
4683 .write = spi_chip_write_256,
4684 .read = spi_chip_read, /* also fast read 0x0B */
4685 .voltage = {2700, 3600},
4686 },
4687
4688 {
4689 .vendor = "Intel",
4690 .name = "25F320S33T8",
4691 .bustype = BUS_SPI,
4692 .manufacture_id = INTEL_ID,
4693 .model_id = INTEL_25F320S33T8,
4694 .total_size = 4096,
4695 .page_size = 256,
4696 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4698 .tested = TEST_UNTESTED,
4699 .probe = probe_spi_rdid,
4700 .probe_timing = TIMING_ZERO,
4701 .block_erasers =
4702 {
4703 {
4704 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4705 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4706 * have no effect on the memory contents, but sets a flag in the SR.
4707 .eraseblocks = {
4708 {64 * 1024, 63}, // inaccessible
4709 {8 * 1024, 8}
4710 },
4711 .block_erase = spi_block_erase_40,
4712 }, { */
4713 .eraseblocks = { {64 * 1024, 64} },
4714 .block_erase = spi_block_erase_d8,
4715 }, {
4716 .eraseblocks = { {4 * 1024 * 1024, 1} },
4717 .block_erase = spi_block_erase_c7,
4718 }
4719 },
4720 .printlock = spi_prettyprint_status_register_s33,
4721 .unlock = spi_disable_blockprotect_s33,
4722 .write = spi_chip_write_256,
4723 .read = spi_chip_read, /* also fast read 0x0B */
4724 .voltage = {2700, 3600},
4725 },
4726
4727 {
4728 .vendor = "Intel",
4729 .name = "25F640S33B8",
4730 .bustype = BUS_SPI,
4731 .manufacture_id = INTEL_ID,
4732 .model_id = INTEL_25F640S33B8,
4733 .total_size = 8192,
4734 .page_size = 256,
4735 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
4739 .probe_timing = TIMING_ZERO,
4740 .block_erasers =
4741 {
4742 {
4743 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4744 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4745 * have no effect on the memory contents, but sets a flag in the SR.
4746 .eraseblocks = {
4747 {8 * 1024, 8},
4748 {64 * 1024, 127} // inaccessible
4749 },
4750 .block_erase = spi_block_erase_40,
4751 }, { */
4752 .eraseblocks = { {64 * 1024, 128} },
4753 .block_erase = spi_block_erase_d8,
4754 }, {
4755 .eraseblocks = { {8 * 1024 * 1024, 1} },
4756 .block_erase = spi_block_erase_c7,
4757 }
4758 },
4759 .printlock = spi_prettyprint_status_register_s33,
4760 .unlock = spi_disable_blockprotect_s33,
4761 .write = spi_chip_write_256,
4762 .read = spi_chip_read, /* also fast read 0x0B */
4763 .voltage = {2700, 3600},
4764 },
4765
4766 {
4767 .vendor = "Intel",
4768 .name = "25F640S33T8",
4769 .bustype = BUS_SPI,
4770 .manufacture_id = INTEL_ID,
4771 .model_id = INTEL_25F640S33T8,
4772 .total_size = 8192,
4773 .page_size = 256,
4774 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4775 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4776 .tested = TEST_UNTESTED,
4777 .probe = probe_spi_rdid,
4778 .probe_timing = TIMING_ZERO,
4779 .block_erasers =
4780 {
4781 {
4782 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4783 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4784 * have no effect on the memory contents, but sets a flag in the SR.
4785 .eraseblocks = {
4786 {64 * 1024, 127}, // inaccessible
4787 {8 * 1024, 8}
4788 },
4789 .block_erase = spi_block_erase_40,
4790 }, { */
4791 .eraseblocks = { {64 * 1024, 128} },
4792 .block_erase = spi_block_erase_d8,
4793 }, {
4794 .eraseblocks = { {8 * 1024 * 1024, 1} },
4795 .block_erase = spi_block_erase_c7,
4796 }
4797 },
4798 .printlock = spi_prettyprint_status_register_s33,
4799 .unlock = spi_disable_blockprotect_s33,
4800 .write = spi_chip_write_256,
4801 .read = spi_chip_read, /* also fast read 0x0B */
4802 .voltage = {2700, 3600},
4803 },
4804
4805 {
4806 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004807 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004808 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004809 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004810 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004811 .total_size = 128,
4812 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004813 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004814 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004816 .block_erasers =
4817 {
4818 {
4819 .eraseblocks = {
4820 {8 * 1024, 1},
4821 {4 * 1024, 2},
4822 {112 * 1024, 1},
4823 },
Sean Nelson28accc22010-03-19 18:47:06 +00004824 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004825 },
4826 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004827 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004829 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004830 },
4831
4832 {
4833 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004834 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004836 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004837 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004838 .total_size = 128,
4839 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004840 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004841 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004842 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004843 .block_erasers =
4844 {
4845 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004846 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004847 {112 * 1024, 1},
4848 {4 * 1024, 2},
4849 {8 * 1024, 1},
4850 },
Sean Nelson28accc22010-03-19 18:47:06 +00004851 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004852 },
4853 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004854 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004856 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004857 },
4858
4859 {
4860 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004861 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004862 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004863 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004864 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004865 .total_size = 256,
4866 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004867 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004868 .probe = probe_82802ab,
4869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4870 .block_erasers =
4871 {
4872 {
4873 .eraseblocks = {
4874 {128 * 1024, 1},
4875 {96 * 1024, 1},
4876 {8 * 1024, 2},
4877 {16 * 1024, 1},
4878 },
4879 .block_erase = erase_block_82802ab,
4880 },
4881 },
4882 .write = write_82802ab,
4883 .read = read_memmapped,
4884 },
4885
4886 {
4887 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004888 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004889 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004890 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004891 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004892 .total_size = 512,
4893 .page_size = 256,
4894 .tested = TEST_UNTESTED,
4895 .probe = probe_82802ab,
4896 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004897 .block_erasers =
4898 {
4899 {
4900 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004901 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004902 },
4903 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004904 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004905 .write = write_82802ab,
4906 .read = read_memmapped,
4907 },
4908
4909 {
4910 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004911 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004912 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004913 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004914 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004915 .total_size = 512,
4916 .page_size = 128 * 1024, /* maximal block size */
4917 .tested = TEST_UNTESTED,
4918 .probe = probe_82802ab,
4919 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4920 .block_erasers =
4921 {
4922 {
4923 .eraseblocks = {
4924 {16 * 1024, 1},
4925 {8 * 1024, 2},
4926 {96 * 1024, 1},
4927 {128 * 1024, 3},
4928 },
4929 .block_erase = erase_block_82802ab,
4930 },
4931 },
4932 .write = write_82802ab,
4933 .read = read_memmapped,
4934 },
4935
4936 {
4937 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004938 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004939 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004940 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004941 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004942 .total_size = 512,
4943 .page_size = 128 * 1024, /* maximal block size */
4944 .tested = TEST_UNTESTED,
4945 .probe = probe_82802ab,
4946 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4947 .block_erasers =
4948 {
4949 {
4950 .eraseblocks = {
4951 {128 * 1024, 3},
4952 {96 * 1024, 1},
4953 {8 * 1024, 2},
4954 {16 * 1024, 1},
4955 },
4956 .block_erase = erase_block_82802ab,
4957 },
4958 },
4959 .write = write_82802ab,
4960 .read = read_memmapped,
4961 },
4962
4963 {
4964 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004965 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004966 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004967 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004968 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004969 .total_size = 512,
4970 .page_size = 128 * 1024, /* maximal block size */
4971 .feature_bits = FEATURE_ADDR_SHIFTED,
4972 .tested = TEST_UNTESTED,
4973 .probe = probe_82802ab,
4974 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4975 .block_erasers =
4976 {
4977 {
4978 .eraseblocks = {
4979 {16 * 1024, 1},
4980 {8 * 1024, 2},
4981 {96 * 1024, 1},
4982 {128 * 1024, 3},
4983 },
4984 .block_erase = erase_block_82802ab,
4985 },
4986 },
4987 .write = write_82802ab,
4988 .read = read_memmapped,
4989 },
4990
4991 {
4992 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004993 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004994 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004995 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004996 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004997 .total_size = 512,
4998 .page_size = 128 * 1024, /* maximal block size */
4999 .feature_bits = FEATURE_ADDR_SHIFTED,
5000 .tested = TEST_UNTESTED,
5001 .probe = probe_82802ab,
5002 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5003 .block_erasers =
5004 {
5005 {
5006 .eraseblocks = {
5007 {128 * 1024, 3},
5008 {96 * 1024, 1},
5009 {8 * 1024, 2},
5010 {16 * 1024, 1},
5011 },
5012 .block_erase = erase_block_82802ab,
5013 },
5014 },
5015 .write = write_82802ab,
5016 .read = read_memmapped,
5017 },
5018
5019 {
5020 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005021 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005022 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005023 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005024 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005025 .total_size = 512,
5026 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005027 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005029 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005030 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005031 .block_erasers =
5032 {
5033 {
5034 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005035 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005036 },
5037 },
Sean Nelson28accc22010-03-19 18:47:06 +00005038 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005039 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005041 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005042 },
5043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 {
5045 .vendor = "Intel",
5046 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005047 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005048 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005049 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005050 .total_size = 1024,
5051 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005052 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005053 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005054 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005055 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005056 .block_erasers =
5057 {
5058 {
5059 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005060 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005061 },
5062 },
Sean Nelson28accc22010-03-19 18:47:06 +00005063 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005064 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005066 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005067 },
5068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005069 {
5070 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005071 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005072 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005073 .manufacture_id = MACRONIX_ID,
5074 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005075 .total_size = 64,
5076 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005077 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005078 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005079 .tested = TEST_UNTESTED,
5080 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005081 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005082 .block_erasers =
5083 {
5084 {
5085 .eraseblocks = { {4 * 1024, 16} },
5086 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005087 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005088 .eraseblocks = { {64 * 1024, 1} },
5089 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005090 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005091 .eraseblocks = { {64 * 1024, 1} },
5092 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005093 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005094 .eraseblocks = { {64 * 1024, 1} },
5095 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005096 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005097 .eraseblocks = { {64 * 1024, 1} },
5098 .block_erase = spi_block_erase_c7,
5099 },
5100 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005101 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005103 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005104 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5105 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005106 },
5107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005108 {
5109 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005110 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005112 .manufacture_id = MACRONIX_ID,
5113 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .total_size = 128,
5115 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005116 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005117 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005118 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005120 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005121 .block_erasers =
5122 {
5123 {
5124 .eraseblocks = { {4 * 1024, 32} },
5125 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005126 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005127 .eraseblocks = { {64 * 1024, 2} },
5128 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005129 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005130 .eraseblocks = { {128 * 1024, 1} },
5131 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005132 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005133 .eraseblocks = { {128 * 1024, 1} },
5134 .block_erase = spi_block_erase_c7,
5135 },
5136 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005137 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005139 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005140 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005141 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005142 },
5143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005144 {
5145 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005146 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005147 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005148 .manufacture_id = MACRONIX_ID,
5149 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005150 .total_size = 256,
5151 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005152 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005153 .tested = TEST_UNTESTED,
5154 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005155 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005156 .block_erasers =
5157 {
5158 {
5159 .eraseblocks = { {4 * 1024, 64} },
5160 .block_erase = spi_block_erase_20,
5161 }, {
5162 .eraseblocks = { {64 * 1024, 4} },
5163 .block_erase = spi_block_erase_52,
5164 }, {
5165 .eraseblocks = { {64 * 1024, 4} },
5166 .block_erase = spi_block_erase_d8,
5167 }, {
5168 .eraseblocks = { {256 * 1024, 1} },
5169 .block_erase = spi_block_erase_60,
5170 }, {
5171 .eraseblocks = { {256 * 1024, 1} },
5172 .block_erase = spi_block_erase_c7,
5173 },
5174 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005175 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005176 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005177 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005178 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005179 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005180 },
5181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005182 {
5183 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005184 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005185 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005186 .manufacture_id = MACRONIX_ID,
5187 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005188 .total_size = 512,
5189 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005190 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005191 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005192 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005193 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005194 .block_erasers =
5195 {
5196 {
5197 .eraseblocks = { {4 * 1024, 128} },
5198 .block_erase = spi_block_erase_20,
5199 }, {
5200 .eraseblocks = { {64 * 1024, 8} },
5201 .block_erase = spi_block_erase_52,
5202 }, {
5203 .eraseblocks = { {64 * 1024, 8} },
5204 .block_erase = spi_block_erase_d8,
5205 }, {
5206 .eraseblocks = { {512 * 1024, 1} },
5207 .block_erase = spi_block_erase_60,
5208 }, {
5209 .eraseblocks = { {512 * 1024, 1} },
5210 .block_erase = spi_block_erase_c7,
5211 },
5212 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005213 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005214 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005215 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005216 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005217 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005218 },
5219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005220 {
5221 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005222 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005223 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005224 .manufacture_id = MACRONIX_ID,
5225 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005226 .total_size = 1024,
5227 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005228 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005229 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005230 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005231 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005232 .block_erasers =
5233 {
5234 {
5235 .eraseblocks = { {4 * 1024, 256} },
5236 .block_erase = spi_block_erase_20,
5237 }, {
5238 .eraseblocks = { {64 * 1024, 16} },
5239 .block_erase = spi_block_erase_52,
5240 }, {
5241 .eraseblocks = { {64 * 1024, 16} },
5242 .block_erase = spi_block_erase_d8,
5243 }, {
5244 .eraseblocks = { {1024 * 1024, 1} },
5245 .block_erase = spi_block_erase_60,
5246 }, {
5247 .eraseblocks = { {1024 * 1024, 1} },
5248 .block_erase = spi_block_erase_c7,
5249 },
5250 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005251 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005252 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005253 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005254 .read = spi_chip_read, /* Fast read (0x0B) supported */
5255 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005256 },
5257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005258 {
5259 .vendor = "Macronix",
5260 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005261 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005262 .manufacture_id = MACRONIX_ID,
5263 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005264 .total_size = 2048,
5265 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005266 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005267 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005268 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005269 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005270 .block_erasers =
5271 {
5272 {
5273 .eraseblocks = { {4 * 1024, 512} },
5274 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
5275 }, {
5276 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
5277 .block_erase = spi_block_erase_52,
5278 }, {
5279 .eraseblocks = { {64 * 1024, 32} },
5280 .block_erase = spi_block_erase_d8,
5281 }, {
5282 .eraseblocks = { {2 * 1024 * 1024, 1} },
5283 .block_erase = spi_block_erase_60,
5284 }, {
5285 .eraseblocks = { {2 * 1024 * 1024, 1} },
5286 .block_erase = spi_block_erase_c7,
5287 },
5288 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005289 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005290 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005291 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005292 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005293 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005294 },
5295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005296 {
5297 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005298 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005299 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005300 .manufacture_id = MACRONIX_ID,
5301 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005302 .total_size = 2048,
5303 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005304 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005305 .tested = TEST_UNTESTED,
5306 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005307 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005308 .block_erasers =
5309 {
5310 {
5311 .eraseblocks = { {4 * 1024, 512} },
5312 .block_erase = spi_block_erase_20,
5313 }, {
5314 .eraseblocks = { {64 * 1024, 32} },
5315 .block_erase = spi_block_erase_d8,
5316 }, {
5317 .eraseblocks = { {2 * 1024 * 1024, 1} },
5318 .block_erase = spi_block_erase_60,
5319 }, {
5320 .eraseblocks = { {2 * 1024 * 1024, 1} },
5321 .block_erase = spi_block_erase_c7,
5322 }
5323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005324 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005325 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005326 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005327 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005328 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005329 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005330
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005331 {
5332 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005333 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005334 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005335 .manufacture_id = MACRONIX_ID,
5336 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005337 .total_size = 2048,
5338 .page_size = 256,
5339 .feature_bits = FEATURE_WRSR_WREN,
5340 .tested = TEST_UNTESTED,
5341 .probe = probe_spi_rdid,
5342 .probe_timing = TIMING_ZERO,
5343 .block_erasers =
5344 {
5345 {
5346 .eraseblocks = { {4 * 1024, 512} },
5347 .block_erase = spi_block_erase_20,
5348 }, {
5349 .eraseblocks = { {64 * 1024, 32} },
5350 .block_erase = spi_block_erase_d8,
5351 }, {
5352 .eraseblocks = { {2 * 1024 * 1024, 1} },
5353 .block_erase = spi_block_erase_60,
5354 }, {
5355 .eraseblocks = { {2 * 1024 * 1024, 1} },
5356 .block_erase = spi_block_erase_c7,
5357 }
5358 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005359 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005360 .unlock = spi_disable_blockprotect,
5361 .write = spi_chip_write_256,
5362 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005363 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005364 },
5365
5366 {
5367 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005368 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005369 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005370 .manufacture_id = MACRONIX_ID,
5371 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005372 .total_size = 4096,
5373 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005374 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005375 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005376 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005377 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005378 .block_erasers =
5379 {
5380 {
5381 .eraseblocks = { {4 * 1024, 1024} },
5382 .block_erase = spi_block_erase_20,
5383 }, {
5384 .eraseblocks = { {4 * 1024, 1024} },
5385 .block_erase = spi_block_erase_d8,
5386 }, {
5387 .eraseblocks = { {4 * 1024 * 1024, 1} },
5388 .block_erase = spi_block_erase_60,
5389 }, {
5390 .eraseblocks = { {4 * 1024 * 1024, 1} },
5391 .block_erase = spi_block_erase_c7,
5392 },
5393 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005394 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005395 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005396 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005397 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005398 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005399 },
5400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005401 {
5402 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005403 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005404 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005405 .manufacture_id = MACRONIX_ID,
5406 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005407 .total_size = 4096,
5408 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005409 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005410 .tested = TEST_UNTESTED,
5411 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005412 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005413 .block_erasers =
5414 {
5415 {
5416 .eraseblocks = { {4 * 1024, 1024} },
5417 .block_erase = spi_block_erase_20,
5418 }, {
5419 .eraseblocks = { {64 * 1024, 64} },
5420 .block_erase = spi_block_erase_d8,
5421 }, {
5422 .eraseblocks = { {4 * 1024 * 1024, 1} },
5423 .block_erase = spi_block_erase_60,
5424 }, {
5425 .eraseblocks = { {4 * 1024 * 1024, 1} },
5426 .block_erase = spi_block_erase_c7,
5427 }
5428 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005429 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005430 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005431 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005432 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005433 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005434 },
5435
5436 {
5437 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005438 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005439 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005440 .manufacture_id = MACRONIX_ID,
5441 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005442 .total_size = 8192,
5443 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005444 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005445 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005446 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005447 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005448 .block_erasers =
5449 {
5450 {
5451 .eraseblocks = { {64 * 1024, 128} },
5452 .block_erase = spi_block_erase_20,
5453 }, {
5454 .eraseblocks = { {64 * 1024, 128} },
5455 .block_erase = spi_block_erase_d8,
5456 }, {
5457 .eraseblocks = { {8 * 1024 * 1024, 1} },
5458 .block_erase = spi_block_erase_60,
5459 }, {
5460 .eraseblocks = { {8 * 1024 * 1024, 1} },
5461 .block_erase = spi_block_erase_c7,
5462 }
5463 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005464 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005465 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005466 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005467 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005468 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005469 },
5470
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005471 {
5472 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005473 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005474 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005475 .manufacture_id = MACRONIX_ID,
5476 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005477 .total_size = 16384,
5478 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005479 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunereb582572012-09-21 12:52:50 +00005480 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005481 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005482 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005483 .block_erasers =
5484 {
5485 {
5486 .eraseblocks = { {4 * 1024, 4096} },
5487 .block_erase = spi_block_erase_20,
5488 }, {
5489 .eraseblocks = { {64 * 1024, 256} },
5490 .block_erase = spi_block_erase_d8,
5491 }, {
5492 .eraseblocks = { {16 * 1024 * 1024, 1} },
5493 .block_erase = spi_block_erase_60,
5494 }, {
5495 .eraseblocks = { {16 * 1024 * 1024, 1} },
5496 .block_erase = spi_block_erase_c7,
5497 }
5498 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005499 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005500 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005501 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005502 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005503 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005504 },
5505
5506 {
5507 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005508 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005509 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005510 .manufacture_id = MACRONIX_ID,
5511 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005512 .total_size = 128,
5513 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005514 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5515 .tested = TEST_UNTESTED,
5516 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005517 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005518 .block_erasers =
5519 {
5520 {
5521 .eraseblocks = {
5522 {8 * 1024, 1},
5523 {4 * 1024, 2},
5524 {8 * 1024, 2},
5525 {32 * 1024, 1},
5526 {64 * 1024, 1},
5527 },
Sean Nelson35727f72010-01-28 23:55:12 +00005528 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005529 }, {
5530 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005531 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005532 }
5533 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005534 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005536 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005537 },
5538
5539 {
5540 .vendor = "Macronix",
5541 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005542 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005543 .manufacture_id = MACRONIX_ID,
5544 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005545 .total_size = 128,
5546 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005547 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005548 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005549 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005550 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005551 .block_erasers =
5552 {
5553 {
5554 .eraseblocks = {
5555 {64 * 1024, 1},
5556 {32 * 1024, 1},
5557 {8 * 1024, 2},
5558 {4 * 1024, 2},
5559 {8 * 1024, 1},
5560 },
Sean Nelson35727f72010-01-28 23:55:12 +00005561 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005562 }, {
5563 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005564 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005565 }
5566 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005567 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005568 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005569 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005570 },
5571
5572 {
5573 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005574 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005575 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005576 .manufacture_id = MACRONIX_ID,
5577 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005578 .total_size = 256,
5579 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005580 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005581 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005582 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005583 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005584 .block_erasers =
5585 {
5586 {
5587 .eraseblocks = {
5588 {16 * 1024, 1},
5589 {8 * 1024, 2},
5590 {32 * 1024, 1},
5591 {64 * 1024, 3},
5592 },
Sean Nelson35727f72010-01-28 23:55:12 +00005593 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005594 }, {
5595 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005596 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005597 },
5598 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005599 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005601 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005602 },
5603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005604 {
5605 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005606 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005607 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005608 .manufacture_id = MACRONIX_ID,
5609 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005610 .total_size = 256,
5611 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005612 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005613 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005614 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005615 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005616 .block_erasers =
5617 {
5618 {
5619 .eraseblocks = {
5620 {64 * 1024, 3},
5621 {32 * 1024, 1},
5622 {8 * 1024, 2},
5623 {16 * 1024, 1},
5624 },
Sean Nelson35727f72010-01-28 23:55:12 +00005625 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005626 }, {
5627 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005628 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005629 },
5630 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005631 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005632 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005633 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005634 },
5635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005636 {
5637 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005638 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005639 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005640 .manufacture_id = MACRONIX_ID,
5641 .model_id = MACRONIX_MX29F040,
5642 .total_size = 512,
5643 .page_size = 64 * 1024,
5644 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5645 .tested = TEST_UNTESTED,
5646 .probe = probe_jedec,
5647 .probe_timing = TIMING_ZERO,
5648 .block_erasers =
5649 {
5650 {
5651 .eraseblocks = { {64 * 1024, 8} },
5652 .block_erase = erase_sector_jedec,
5653 }, {
5654 .eraseblocks = { {512 * 1024, 1} },
5655 .block_erase = erase_chip_block_jedec,
5656 },
5657 },
5658 .write = write_jedec_1,
5659 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005660 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005661 },
5662
5663 {
5664 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005665 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005666 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005667 .manufacture_id = MACRONIX_ID,
5668 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005669 .total_size = 512,
5670 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005671 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5672 .tested = TEST_UNTESTED,
5673 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005674 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005675 .block_erasers =
5676 {
5677 {
5678 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005679 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005680 }, {
5681 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005682 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005683 },
5684 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005685 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005686 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005687 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005688 },
5689
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005690 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005691 .vendor = "MoselVitelic",
5692 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005693 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005694 .manufacture_id = SYNCMOS_MVC_ID,
5695 .model_id = MVC_V29C51000B,
5696 .total_size = 64,
5697 .page_size = 512,
5698 .feature_bits = FEATURE_EITHER_RESET,
5699 .tested = TEST_UNTESTED,
5700 .probe = probe_jedec,
5701 .probe_timing = TIMING_ZERO,
5702 .block_erasers =
5703 {
5704 {
5705 .eraseblocks = { {512, 128} },
5706 .block_erase = erase_sector_jedec,
5707 }, {
5708 .eraseblocks = { {64 * 1024, 1} },
5709 .block_erase = erase_chip_block_jedec,
5710 },
5711 },
5712 .write = write_jedec_1,
5713 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005714 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005715 },
5716
5717 {
5718 .vendor = "MoselVitelic",
5719 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005720 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005721 .manufacture_id = SYNCMOS_MVC_ID,
5722 .model_id = MVC_V29C51000T,
5723 .total_size = 64,
5724 .page_size = 512,
5725 .feature_bits = FEATURE_EITHER_RESET,
5726 .tested = TEST_UNTESTED,
5727 .probe = probe_jedec,
5728 .probe_timing = TIMING_ZERO,
5729 .block_erasers =
5730 {
5731 {
5732 .eraseblocks = { {512, 128} },
5733 .block_erase = erase_sector_jedec,
5734 }, {
5735 .eraseblocks = { {64 * 1024, 1} },
5736 .block_erase = erase_chip_block_jedec,
5737 },
5738 },
5739 .write = write_jedec_1,
5740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005741 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005742 },
5743
5744 {
5745 .vendor = "MoselVitelic",
5746 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005747 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005748 .manufacture_id = SYNCMOS_MVC_ID,
5749 .model_id = MVC_V29C51400B,
5750 .total_size = 512,
5751 .page_size = 1024,
5752 .feature_bits = FEATURE_EITHER_RESET,
5753 .tested = TEST_UNTESTED,
5754 .probe = probe_jedec,
5755 .probe_timing = TIMING_ZERO,
5756 .block_erasers =
5757 {
5758 {
5759 .eraseblocks = { {1024, 512} },
5760 .block_erase = erase_sector_jedec,
5761 }, {
5762 .eraseblocks = { {512 * 1024, 1} },
5763 .block_erase = erase_chip_block_jedec,
5764 },
5765 },
5766 .write = write_jedec_1,
5767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005768 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005769 },
5770
5771 {
5772 .vendor = "MoselVitelic",
5773 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005774 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005775 .manufacture_id = SYNCMOS_MVC_ID,
5776 .model_id = MVC_V29C51400T,
5777 .total_size = 512,
5778 .page_size = 1024,
5779 .feature_bits = FEATURE_EITHER_RESET,
5780 .tested = TEST_UNTESTED,
5781 .probe = probe_jedec,
5782 .probe_timing = TIMING_ZERO,
5783 .block_erasers =
5784 {
5785 {
5786 .eraseblocks = { {1024, 512} },
5787 .block_erase = erase_sector_jedec,
5788 }, {
5789 .eraseblocks = { {512 * 1024, 1} },
5790 .block_erase = erase_chip_block_jedec,
5791 },
5792 },
5793 .write = write_jedec_1,
5794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005795 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005796 },
5797
5798 {
5799 .vendor = "MoselVitelic",
5800 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005801 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005802 .manufacture_id = SYNCMOS_MVC_ID,
5803 .model_id = MVC_V29LC51000,
5804 .total_size = 64,
5805 .page_size = 512,
5806 .feature_bits = FEATURE_EITHER_RESET,
5807 .tested = TEST_UNTESTED,
5808 .probe = probe_jedec,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {512, 128} },
5814 .block_erase = erase_sector_jedec,
5815 }, {
5816 .eraseblocks = { {64 * 1024, 1} },
5817 .block_erase = erase_chip_block_jedec,
5818 },
5819 },
5820 .write = write_jedec_1,
5821 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005822 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005823 },
5824
5825 {
5826 .vendor = "MoselVitelic",
5827 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005828 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005829 .manufacture_id = SYNCMOS_MVC_ID,
5830 .model_id = MVC_V29LC51001,
5831 .total_size = 128,
5832 .page_size = 512,
5833 .feature_bits = FEATURE_EITHER_RESET,
5834 .tested = TEST_UNTESTED,
5835 .probe = probe_jedec,
5836 .probe_timing = TIMING_ZERO,
5837 .block_erasers =
5838 {
5839 {
5840 .eraseblocks = { {512, 256} },
5841 .block_erase = erase_sector_jedec,
5842 }, {
5843 .eraseblocks = { {128 * 1024, 1} },
5844 .block_erase = erase_chip_block_jedec,
5845 },
5846 },
5847 .write = write_jedec_1,
5848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005849 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005850 },
5851
5852 {
5853 .vendor = "MoselVitelic",
5854 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005855 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005856 .manufacture_id = SYNCMOS_MVC_ID,
5857 .model_id = MVC_V29LC51002,
5858 .total_size = 256,
5859 .page_size = 512,
5860 .feature_bits = FEATURE_EITHER_RESET,
5861 .tested = TEST_UNTESTED,
5862 .probe = probe_jedec,
5863 .probe_timing = TIMING_ZERO,
5864 .block_erasers =
5865 {
5866 {
5867 .eraseblocks = { {512, 512} },
5868 .block_erase = erase_sector_jedec,
5869 }, {
5870 .eraseblocks = { {256 * 1024, 1} },
5871 .block_erase = erase_chip_block_jedec,
5872 },
5873 },
5874 .write = write_jedec_1,
5875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005876 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005877 },
5878
5879 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005880 .vendor = "Numonyx",
5881 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005882 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005883 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005884 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005885 .total_size = 128,
5886 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005887 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005888 .tested = TEST_UNTESTED,
5889 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005890 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005891 .block_erasers =
5892 {
5893 {
5894 .eraseblocks = { {4 * 1024, 32} },
5895 .block_erase = spi_block_erase_20,
5896 }, {
5897 .eraseblocks = { {64 * 1024, 2} },
5898 .block_erase = spi_block_erase_d8,
5899 }, {
5900 .eraseblocks = { {128 * 1024, 1} },
5901 .block_erase = spi_block_erase_c7,
5902 }
5903 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005905 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005906 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005907 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005908 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005909 },
5910
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005911 {
5912 .vendor = "Numonyx",
5913 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005914 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005915 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005916 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005917 .total_size = 256,
5918 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005919 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005920 .tested = TEST_UNTESTED,
5921 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005922 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005923 .block_erasers =
5924 {
5925 {
5926 .eraseblocks = { {4 * 1024, 64} },
5927 .block_erase = spi_block_erase_20,
5928 }, {
5929 .eraseblocks = { {64 * 1024, 4} },
5930 .block_erase = spi_block_erase_d8,
5931 }, {
5932 .eraseblocks = { {256 * 1024, 1} },
5933 .block_erase = spi_block_erase_c7,
5934 }
5935 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005936 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005937 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005938 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005939 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005940 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005941 },
5942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005943 {
5944 .vendor = "Numonyx",
5945 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005946 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005947 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005948 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005949 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005950 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005951 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005952 .tested = TEST_UNTESTED,
5953 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005954 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005955 .block_erasers =
5956 {
5957 {
5958 .eraseblocks = { {4 * 1024, 128} },
5959 .block_erase = spi_block_erase_20,
5960 }, {
5961 .eraseblocks = { {64 * 1024, 8} },
5962 .block_erase = spi_block_erase_d8,
5963 }, {
5964 .eraseblocks = { {512 * 1024, 1} },
5965 .block_erase = spi_block_erase_c7,
5966 }
5967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005969 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005970 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005971 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005972 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005973 },
5974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005975 {
5976 .vendor = "Numonyx",
5977 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005978 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005979 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005980 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005981 .total_size = 1024,
5982 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005983 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005984 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005985 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005986 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005987 .block_erasers =
5988 {
5989 {
5990 .eraseblocks = { {4 * 1024, 256} },
5991 .block_erase = spi_block_erase_20,
5992 }, {
5993 .eraseblocks = { {64 * 1024, 16} },
5994 .block_erase = spi_block_erase_d8,
5995 }, {
5996 .eraseblocks = { {1024 * 1024, 1} },
5997 .block_erase = spi_block_erase_c7,
5998 }
5999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006000 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006001 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006002 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006003 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006004 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006005 },
6006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006007 {
6008 .vendor = "Numonyx",
6009 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006010 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006012 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006013 .total_size = 2048,
6014 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006015 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006016 .tested = TEST_UNTESTED,
6017 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006018 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006019 .block_erasers =
6020 {
6021 {
6022 .eraseblocks = { {4 * 1024, 512} },
6023 .block_erase = spi_block_erase_20,
6024 }, {
6025 .eraseblocks = { {64 * 1024, 32} },
6026 .block_erase = spi_block_erase_d8,
6027 }, {
6028 .eraseblocks = { {2 * 1024 * 1024, 1} },
6029 .block_erase = spi_block_erase_c7,
6030 }
6031 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006032 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006033 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006034 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006035 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006036 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006037 },
6038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006039 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006040 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00006041 .name = "N25Q016",
6042 .bustype = BUS_SPI,
6043 .manufacture_id = ST_ID,
6044 .model_id = ST_N25Q016__1E,
6045 .total_size = 2048,
6046 .page_size = 256,
6047 /* supports SFDP */
6048 /* OTP: 64B total; read 0x4B, write 0x42 */
6049 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6050 .tested = TEST_UNTESTED,
6051 .probe = probe_spi_rdid,
6052 .probe_timing = TIMING_ZERO,
6053 .block_erasers =
6054 {
6055 {
6056 .eraseblocks = { {4 * 1024, 512} },
6057 .block_erase = spi_block_erase_20,
6058 }, {
6059 .eraseblocks = { {32 * 1024, 64} },
6060 .block_erase = spi_block_erase_52,
6061 }, {
6062 .eraseblocks = { {64 * 1024, 32} },
6063 .block_erase = spi_block_erase_d8,
6064 }, {
6065 .eraseblocks = { {2 * 1024 * 1024, 1} },
6066 .block_erase = spi_block_erase_c7,
6067 }
6068 },
6069 .unlock = spi_disable_blockprotect,
6070 .write = spi_chip_write_256,
6071 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6072 .voltage = {1700, 2000},
6073 },
6074
6075 {
6076 .vendor = "Numonyx",
6077 .name = "N25Q032..1E",
6078 .bustype = BUS_SPI,
6079 .manufacture_id = ST_ID,
6080 .model_id = ST_N25Q032__1E,
6081 .total_size = 4096,
6082 .page_size = 256,
6083 /* supports SFDP */
6084 /* OTP: 64B total; read 0x4B, write 0x42 */
6085 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6086 .tested = TEST_UNTESTED,
6087 .probe = probe_spi_rdid,
6088 .probe_timing = TIMING_ZERO,
6089 .block_erasers =
6090 {
6091 {
6092 .eraseblocks = { {4 * 1024, 1024} },
6093 .block_erase = spi_block_erase_20,
6094 }, {
6095 .eraseblocks = { {64 * 1024, 64} },
6096 .block_erase = spi_block_erase_d8,
6097 }, {
6098 .eraseblocks = { {4 * 1024 * 1024, 1} },
6099 .block_erase = spi_block_erase_c7,
6100 }
6101 },
6102 .unlock = spi_disable_blockprotect,
6103 .write = spi_chip_write_256,
6104 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6105 .voltage = {1700, 2000},
6106 },
6107
6108 {
6109 .vendor = "Numonyx",
6110 .name = "N25Q032..3E",
6111 .bustype = BUS_SPI,
6112 .manufacture_id = ST_ID,
6113 .model_id = ST_N25Q032__3E,
6114 .total_size = 4096,
6115 .page_size = 256,
6116 /* supports SFDP */
6117 /* OTP: 64B total; read 0x4B, write 0x42 */
6118 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6119 .tested = TEST_UNTESTED,
6120 .probe = probe_spi_rdid,
6121 .probe_timing = TIMING_ZERO,
6122 .block_erasers =
6123 {
6124 {
6125 .eraseblocks = { {4 * 1024, 1024} },
6126 .block_erase = spi_block_erase_20,
6127 }, {
6128 .eraseblocks = { {64 * 1024, 64} },
6129 .block_erase = spi_block_erase_d8,
6130 }, {
6131 .eraseblocks = { {4 * 1024 * 1024, 1} },
6132 .block_erase = spi_block_erase_c7,
6133 }
6134 },
6135 .unlock = spi_disable_blockprotect,
6136 .write = spi_chip_write_256,
6137 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6138 .voltage = {2700, 3600},
6139 },
6140
6141 {
6142 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00006143 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006144 .bustype = BUS_SPI,
6145 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00006146 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006147 .total_size = 8192,
6148 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00006149 /* supports SFDP */
6150 /* OTP: 64B total; read 0x4B, write 0x42 */
6151 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6152 .tested = TEST_UNTESTED,
6153 .probe = probe_spi_rdid,
6154 .probe_timing = TIMING_ZERO,
6155 .block_erasers =
6156 {
6157 {
6158 .eraseblocks = { {4 * 1024, 2048 } },
6159 .block_erase = spi_block_erase_20,
6160 }, {
6161 .eraseblocks = { {64 * 1024, 128} },
6162 .block_erase = spi_block_erase_d8,
6163 }, {
6164 .eraseblocks = { {8 * 1024 * 1024, 1} },
6165 .block_erase = spi_block_erase_c7,
6166 }
6167 },
6168 .unlock = spi_disable_blockprotect,
6169 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006170 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006171 .voltage = {1700, 2000},
6172 },
6173
6174 {
6175 .vendor = "Numonyx",
6176 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
6177 .bustype = BUS_SPI,
6178 .manufacture_id = ST_ID,
6179 .model_id = ST_N25Q064__3E,
6180 .total_size = 8192,
6181 .page_size = 256,
6182 /* supports SFDP */
6183 /* OTP: 64B total; read 0x4B, write 0x42 */
6184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006185 .tested = TEST_OK_PREW,
6186 .probe = probe_spi_rdid,
6187 .probe_timing = TIMING_ZERO,
6188 .block_erasers =
6189 {
6190 {
6191 .eraseblocks = { {4 * 1024, 2048 } },
6192 .block_erase = spi_block_erase_20,
6193 }, {
6194 .eraseblocks = { {64 * 1024, 128} },
6195 .block_erase = spi_block_erase_d8,
6196 }, {
6197 .eraseblocks = { {8 * 1024 * 1024, 1} },
6198 .block_erase = spi_block_erase_c7,
6199 }
6200 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006201 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006202 .unlock = spi_disable_blockprotect,
6203 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006204 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006205 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006206 },
6207
6208 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006209 .vendor = "PMC",
6210 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006211 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006212 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006213 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006214 .total_size = 128,
6215 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006216 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006217 .tested = TEST_UNTESTED,
6218 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006219 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006220 .block_erasers =
6221 {
6222 {
6223 .eraseblocks = { {4 * 1024, 32} },
6224 .block_erase = spi_block_erase_d7,
6225 }, {
6226 .eraseblocks = { {32 * 1024, 4} },
6227 .block_erase = spi_block_erase_d8,
6228 }, {
6229 .eraseblocks = { {128 * 1024, 1} },
6230 .block_erase = spi_block_erase_c7,
6231 }
6232 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006234 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006235 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006236 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006237 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006238 },
6239
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006240 {
6241 .vendor = "PMC",
6242 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006243 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006244 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006245 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006246 .total_size = 2048,
6247 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006248 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006249 .tested = TEST_UNTESTED,
6250 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006251 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006252 .block_erasers =
6253 {
6254 {
6255 .eraseblocks = { {4 * 1024, 512} },
6256 .block_erase = spi_block_erase_d7,
6257 }, {
6258 .eraseblocks = { {4 * 1024, 512} },
6259 .block_erase = spi_block_erase_20,
6260 }, {
6261 .eraseblocks = { {64 * 1024, 32} },
6262 .block_erase = spi_block_erase_d8,
6263 }, {
6264 .eraseblocks = { {2 * 1024 * 1024, 1} },
6265 .block_erase = spi_block_erase_60,
6266 }, {
6267 .eraseblocks = { {2 * 1024 * 1024, 1} },
6268 .block_erase = spi_block_erase_c7,
6269 }
6270 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006271 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006272 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006273 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006274 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006275 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006276 },
6277
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006278 {
6279 .vendor = "PMC",
6280 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006281 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006282 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006283 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006284 .total_size = 256,
6285 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006286 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006287 .tested = TEST_UNTESTED,
6288 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006289 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006290 .block_erasers =
6291 {
6292 {
6293 .eraseblocks = { {4 * 1024, 64} },
6294 .block_erase = spi_block_erase_d7,
6295 }, {
6296 .eraseblocks = { {64 * 1024, 4} },
6297 .block_erase = spi_block_erase_d8,
6298 }, {
6299 .eraseblocks = { {256 * 1024, 1} },
6300 .block_erase = spi_block_erase_c7,
6301 }
6302 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006303 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006304 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006305 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006306 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006307 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006308 },
6309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006310 {
6311 .vendor = "PMC",
6312 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006313 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006314 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006315 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006316 .total_size = 512,
6317 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006318 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00006319 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006321 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006322 .block_erasers =
6323 {
6324 {
6325 .eraseblocks = { {4 * 1024, 128} },
6326 .block_erase = spi_block_erase_d7,
6327 }, {
6328 .eraseblocks = { {64 * 1024, 8} },
6329 .block_erase = spi_block_erase_d8,
6330 }, {
6331 .eraseblocks = { {512 * 1024, 1} },
6332 .block_erase = spi_block_erase_c7,
6333 }
6334 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006335 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006336 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006337 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006338 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006339 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006340 },
6341
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006342 {
6343 .vendor = "PMC",
6344 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006345 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006346 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006347 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006348 .total_size = 1024,
6349 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006350 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006351 .tested = TEST_UNTESTED,
6352 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006353 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006354 .block_erasers =
6355 {
6356 {
6357 .eraseblocks = { {4 * 1024, 256} },
6358 .block_erase = spi_block_erase_d7,
6359 }, {
6360 .eraseblocks = { {4 * 1024, 256} },
6361 .block_erase = spi_block_erase_20,
6362 }, {
6363 .eraseblocks = { {64 * 1024, 16} },
6364 .block_erase = spi_block_erase_d8,
6365 }, {
6366 .eraseblocks = { {1024 * 1024, 1} },
6367 .block_erase = spi_block_erase_60,
6368 }, {
6369 .eraseblocks = { {1024 * 1024, 1} },
6370 .block_erase = spi_block_erase_c7,
6371 }
6372 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006373 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006374 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006375 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006376 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006377 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006378 },
6379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006380 {
6381 .vendor = "PMC",
6382 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006383 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006385 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006386 .total_size = 64,
6387 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006388 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006389 .tested = TEST_UNTESTED,
6390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006391 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006392 .block_erasers =
6393 {
6394 {
6395 .eraseblocks = { {4 * 1024, 16} },
6396 .block_erase = spi_block_erase_d7,
6397 }, {
6398 .eraseblocks = { {32 * 1024, 2} },
6399 .block_erase = spi_block_erase_d8,
6400 }, {
6401 .eraseblocks = { {64 * 1024, 1} },
6402 .block_erase = spi_block_erase_c7,
6403 }
6404 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006405 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006406 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006407 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006408 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006409 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006410 },
6411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006412 {
6413 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006414 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006415 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006416 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006417 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006418 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006419 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006421 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006422 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006423 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006424 .block_erasers =
6425 {
6426 {
6427 .eraseblocks = {
6428 {128 * 1024, 1},
6429 {96 * 1024, 1},
6430 {8 * 1024, 2},
6431 {16 * 1024, 1},
6432 },
Sean Nelson35727f72010-01-28 23:55:12 +00006433 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006434 }, {
6435 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006436 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006437 },
6438 },
Sean Nelson35727f72010-01-28 23:55:12 +00006439 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006441 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006442 },
6443
6444 {
6445 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006446 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006447 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006448 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006449 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006450 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006451 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006452 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006453 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006454 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006455 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006456 .block_erasers =
6457 {
6458 {
6459 .eraseblocks = {
6460 {16 * 1024, 1},
6461 {8 * 1024, 2},
6462 {96 * 1024, 1},
6463 {128 * 1024, 1},
6464 },
Sean Nelson35727f72010-01-28 23:55:12 +00006465 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006466 }, {
6467 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006468 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006469 },
6470 },
Sean Nelson35727f72010-01-28 23:55:12 +00006471 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006473 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006474 },
6475
6476 {
6477 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006478 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006479 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006480 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006481 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006482 .total_size = 128,
6483 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006484 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006485 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006486 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006487 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00006488 .block_erasers =
6489 {
6490 {
6491 .eraseblocks = { {4 * 1024, 32} },
6492 .block_erase = erase_sector_jedec,
6493 }, {
6494 .eraseblocks = { {64 * 1024, 2} },
6495 .block_erase = erase_block_jedec,
6496 }, {
6497 .eraseblocks = { {128 * 1024, 1} },
6498 .block_erase = erase_chip_block_jedec,
6499 }
6500 },
Sean Nelson35727f72010-01-28 23:55:12 +00006501 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006503 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006504 },
6505
6506 {
6507 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006508 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006509 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006510 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006511 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006512 .total_size = 256,
6513 .page_size = 4096,
6514 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6515 .tested = TEST_UNTESTED,
6516 .probe = probe_jedec,
6517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6518 .block_erasers =
6519 {
6520 {
6521 .eraseblocks = { {4 * 1024, 64} },
6522 .block_erase = erase_sector_jedec,
6523 }, {
6524 .eraseblocks = { {64 * 1024, 4} },
6525 .block_erase = erase_block_jedec,
6526 }, {
6527 .eraseblocks = { {256 * 1024, 1} },
6528 .block_erase = erase_chip_block_jedec,
6529 }
6530 },
6531 .write = write_jedec_1,
6532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006533 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006534 },
6535
6536 {
6537 .vendor = "PMC",
6538 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006539 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006540 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006541 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006542 .total_size = 512,
6543 .page_size = 4096,
6544 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006545 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006546 .probe = probe_jedec,
6547 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6548 .block_erasers =
6549 {
6550 {
6551 .eraseblocks = { {4 * 1024, 128} },
6552 .block_erase = erase_sector_jedec,
6553 }, {
6554 .eraseblocks = { {64 * 1024, 8} },
6555 .block_erase = erase_block_jedec,
6556 }, {
6557 .eraseblocks = { {512 * 1024, 1} },
6558 .block_erase = erase_chip_block_jedec,
6559 }
6560 },
6561 .write = write_jedec_1,
6562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006563 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006564 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00006565
6566 {
6567 .vendor = "PMC",
6568 .name = "Pm39LV512",
6569 .bustype = BUS_PARALLEL,
6570 .manufacture_id = PMC_ID_NOPREFIX,
6571 .model_id = PMC_PM39LV512,
6572 .total_size = 64,
6573 .page_size = 4096,
6574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6575 .tested = TEST_OK_PREW,
6576 .probe = probe_jedec,
6577 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6578 .block_erasers =
6579 {
6580 {
6581 .eraseblocks = { {4 * 1024, 16} },
6582 .block_erase = erase_sector_jedec,
6583 }, {
6584 .eraseblocks = { {64 * 1024, 1} },
6585 .block_erase = erase_block_jedec,
6586 }, {
6587 .eraseblocks = { {64 * 1024, 1} },
6588 .block_erase = erase_chip_block_jedec,
6589 }
6590 },
6591 .write = write_jedec_1,
6592 .read = read_memmapped,
6593 .voltage = {2700, 3600},
6594 },
6595
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006596 {
6597 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006598 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006599 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006601 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006602 .total_size = 256,
6603 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006604 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006605 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006606 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006607 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006608 .block_erasers =
6609 {
6610 {
6611 .eraseblocks = { {4 * 1024, 64} },
6612 .block_erase = erase_sector_jedec,
6613 }, {
6614 .eraseblocks = { {16 * 1024, 16} },
6615 .block_erase = erase_block_jedec,
6616 }, {
6617 .eraseblocks = { {256 * 1024, 1} },
6618 .block_erase = erase_chip_block_jedec,
6619 }
6620 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006621 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006622 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006623 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006624 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006625 },
6626
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006627 {
6628 .vendor = "PMC",
6629 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006630 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006631 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006632 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006633 .total_size = 512,
6634 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006635 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006636 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006637 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006638 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006639 .block_erasers =
6640 {
6641 {
6642 .eraseblocks = { {4 * 1024, 128} },
6643 .block_erase = erase_sector_jedec,
6644 }, {
6645 .eraseblocks = { {64 * 1024, 8} },
6646 .block_erase = erase_block_jedec,
6647 }, {
6648 .eraseblocks = { {512 * 1024, 1} },
6649 .block_erase = erase_chip_block_jedec,
6650 }
6651 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006652 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006653 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006654 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006655 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006656 },
6657
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006658 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00006659 .vendor = "Sanyo",
6660 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006661 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006662 .manufacture_id = SANYO_ID,
6663 .model_id = SANYO_LE25FW203A,
6664 .total_size = 2048,
6665 .page_size = 256,
6666 .tested = TEST_UNTESTED,
6667 .probe = probe_spi_rdid,
6668 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006669 .block_erasers =
6670 {
6671 {
6672 .eraseblocks = { {64 * 1024, 32} },
6673 .block_erase = spi_block_erase_d8,
6674 }, {
6675 .eraseblocks = { {2 * 1024 * 1024, 1} },
6676 .block_erase = spi_block_erase_c7,
6677 }
6678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006680 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006681 .write = spi_chip_write_256,
6682 .read = spi_chip_read,
6683 },
6684
6685 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006686 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006687 .name = "LH28F008BJT-BTLZ1",
6688 .bustype = BUS_PARALLEL,
6689 .manufacture_id = SHARP_ID,
6690 .model_id = SHARP_LH28F008BJxxPB,
6691 .total_size = 1024,
6692 .page_size = 64 * 1024,
6693 .tested = TEST_OK_PREW,
6694 .probe = probe_82802ab,
6695 .probe_timing = TIMING_ZERO,
6696 .block_erasers =
6697 {
6698 {
6699 .eraseblocks = {
6700 {8 * 1024, 8},
6701 {64 * 1024, 15}
6702 },
6703 .block_erase = erase_block_82802ab,
6704 }, {
6705 .eraseblocks = { {1024 * 1024, 1} },
6706 .block_erase = erase_sector_49lfxxxc,
6707 }
6708 },
6709 .unlock = unlock_lh28f008bjt,
6710 .write = write_82802ab,
6711 .read = read_memmapped,
6712 .voltage = {2700, 3600},
6713 },
6714
6715 {
6716 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006717 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006718 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006719 .manufacture_id = SHARP_ID,
6720 .model_id = SHARP_LHF00L04,
6721 .total_size = 1024,
6722 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006723 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006724 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006725 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006726 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006727 .block_erasers =
6728 {
6729 {
6730 .eraseblocks = {
6731 {64 * 1024, 15},
6732 {8 * 1024, 8}
6733 },
Sean Nelson28accc22010-03-19 18:47:06 +00006734 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006735 }, {
6736 .eraseblocks = {
6737 {1024 * 1024, 1}
6738 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006739 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006740 },
6741 },
Sean Nelson28accc22010-03-19 18:47:06 +00006742 .unlock = unlock_82802ab,
6743 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006745 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006746 },
6747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006748 {
6749 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006750 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006751 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006752 .manufacture_id = SPANSION_ID,
6753 .model_id = SPANSION_S25FL004A,
6754 .total_size = 512,
6755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006756 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006757 .tested = TEST_UNTESTED,
6758 .probe = probe_spi_rdid,
6759 .probe_timing = TIMING_ZERO,
6760 .block_erasers =
6761 {
6762 {
6763 .eraseblocks = { {64 * 1024, 8} },
6764 .block_erase = spi_block_erase_d8,
6765 }, {
6766 .eraseblocks = { {512 * 1024, 1} },
6767 .block_erase = spi_block_erase_c7,
6768 }
6769 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006770 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006771 .unlock = spi_disable_blockprotect,
6772 .write = spi_chip_write_256,
6773 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006774 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006775 },
6776
6777 {
6778 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006779 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006780 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006781 .manufacture_id = SPANSION_ID,
6782 .model_id = SPANSION_S25FL008A,
6783 .total_size = 1024,
6784 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006785 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006786 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006787 .probe = probe_spi_rdid,
6788 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006789 .block_erasers =
6790 {
6791 {
6792 .eraseblocks = { {64 * 1024, 16} },
6793 .block_erase = spi_block_erase_d8,
6794 }, {
6795 .eraseblocks = { {1024 * 1024, 1} },
6796 .block_erase = spi_block_erase_c7,
6797 }
6798 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006799 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006800 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006801 .write = spi_chip_write_256,
6802 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006803 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006804 },
6805
6806 {
6807 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006808 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006809 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006810 .manufacture_id = SPANSION_ID,
6811 .model_id = SPANSION_S25FL016A,
6812 .total_size = 2048,
6813 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006814 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006815 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006816 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006817 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006818 .block_erasers =
6819 {
6820 {
6821 .eraseblocks = { {64 * 1024, 32} },
6822 .block_erase = spi_block_erase_d8,
6823 }, {
6824 .eraseblocks = { {2 * 1024 * 1024, 1} },
6825 .block_erase = spi_block_erase_c7,
6826 }
6827 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006829 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006830 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006831 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006832 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006833 },
6834
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006835 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006836 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00006837 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006838 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006839 .manufacture_id = SPANSION_ID,
6840 .model_id = SPANSION_S25FL032A,
6841 .total_size = 4096,
6842 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006843 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00006844 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00006845 .probe = probe_spi_rdid,
6846 .probe_timing = TIMING_ZERO,
6847 .block_erasers =
6848 {
6849 {
6850 .eraseblocks = { {64 * 1024, 64} },
6851 .block_erase = spi_block_erase_d8,
6852 }, {
6853 .eraseblocks = { {4 * 1024 * 1024, 1} },
6854 .block_erase = spi_block_erase_c7,
6855 }
6856 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006857 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006858 .unlock = spi_disable_blockprotect,
6859 .write = spi_chip_write_256,
6860 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006861 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006862 },
6863
6864 {
6865 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00006866 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006867 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006868 .manufacture_id = SPANSION_ID,
6869 .model_id = SPANSION_S25FL064A,
6870 .total_size = 8192,
6871 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006872 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006873 .tested = TEST_OK_PREW,
6874 .probe = probe_spi_rdid,
6875 .probe_timing = TIMING_ZERO,
6876 .block_erasers =
6877 {
6878 {
6879 .eraseblocks = { {64 * 1024, 128} },
6880 .block_erase = spi_block_erase_d8,
6881 }, {
6882 .eraseblocks = { {8 * 1024 * 1024, 1} },
6883 .block_erase = spi_block_erase_c7,
6884 }
6885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006887 .unlock = spi_disable_blockprotect,
6888 .write = spi_chip_write_256,
6889 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006890 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006891 },
6892
6893 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006894 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006895 .name = "SST25LF040A",
6896 .bustype = BUS_SPI,
6897 .manufacture_id = SST_ID,
6898 .model_id = SST_SST25VF040_REMS,
6899 .total_size = 512,
6900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006901 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006902 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006903 .probe = probe_spi_res2,
6904 .probe_timing = TIMING_ZERO,
6905 .block_erasers =
6906 {
6907 {
6908 .eraseblocks = { {4 * 1024, 128} },
6909 .block_erase = spi_block_erase_20,
6910 }, {
6911 .eraseblocks = { {32 * 1024, 16} },
6912 .block_erase = spi_block_erase_52,
6913 }, {
6914 .eraseblocks = { {512 * 1024, 1} },
6915 .block_erase = spi_block_erase_60,
6916 },
6917 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006918 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00006919 .unlock = spi_disable_blockprotect,
6920 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6921 .read = spi_chip_read,
6922 .voltage = {3000, 3600},
6923 },
6924
6925 {
6926 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00006927 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00006928 .bustype = BUS_SPI,
6929 .manufacture_id = SST_ID,
6930 .model_id = SST_SST25VF080_REMS,
6931 .total_size = 1024,
6932 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00006933 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00006934 .tested = TEST_UNTESTED,
6935 .probe = probe_spi_res2,
6936 .probe_timing = TIMING_ZERO,
6937 .block_erasers =
6938 {
6939 {
6940 .eraseblocks = { {4 * 1024, 256} },
6941 .block_erase = spi_block_erase_20,
6942 }, {
6943 .eraseblocks = { {32 * 1024, 32} },
6944 .block_erase = spi_block_erase_52,
6945 }, {
6946 .eraseblocks = { {1024 * 1024, 1} },
6947 .block_erase = spi_block_erase_60,
6948 },
6949 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006950 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00006951 .unlock = spi_disable_blockprotect,
6952 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6953 .read = spi_chip_read,
6954 .voltage = {3000, 3600},
6955 },
6956
6957 {
6958 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006959 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006960 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006961 .manufacture_id = SST_ID,
6962 .model_id = SST_SST25VF010_REMS,
6963 .total_size = 128,
6964 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006965 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006966 .tested = TEST_OK_PREW,
6967 .probe = probe_spi_rems,
6968 .probe_timing = TIMING_ZERO,
6969 .block_erasers =
6970 {
6971 {
6972 .eraseblocks = { {4 * 1024, 32} },
6973 .block_erase = spi_block_erase_20,
6974 }, {
6975 .eraseblocks = { {32 * 1024, 4} },
6976 .block_erase = spi_block_erase_52,
6977 }, {
6978 .eraseblocks = { {128 * 1024, 1} },
6979 .block_erase = spi_block_erase_60,
6980 },
6981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006982 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00006983 .unlock = spi_disable_blockprotect,
6984 .write = spi_chip_write_1,
6985 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006986 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006987 },
6988
6989 {
6990 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006991 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006992 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006993 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006994 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006995 .total_size = 2048,
6996 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00006997 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00006998 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006999 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007000 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007001 .block_erasers =
7002 {
7003 {
7004 .eraseblocks = { {4 * 1024, 512} },
7005 .block_erase = spi_block_erase_20,
7006 }, {
7007 .eraseblocks = { {32 * 1024, 64} },
7008 .block_erase = spi_block_erase_52,
7009 }, {
7010 .eraseblocks = { {64 * 1024, 32} },
7011 .block_erase = spi_block_erase_d8,
7012 }, {
7013 .eraseblocks = { {2 * 1024 * 1024, 1} },
7014 .block_erase = spi_block_erase_60,
7015 }, {
7016 .eraseblocks = { {2 * 1024 * 1024, 1} },
7017 .block_erase = spi_block_erase_c7,
7018 },
7019 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007020 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007021 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007022 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007023 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007024 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007025 },
7026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007027 {
7028 .vendor = "SST",
7029 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007030 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007031 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007032 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007033 .total_size = 4096,
7034 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007035 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00007036 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007038 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007039 .block_erasers =
7040 {
7041 {
7042 .eraseblocks = { {4 * 1024, 1024} },
7043 .block_erase = spi_block_erase_20,
7044 }, {
7045 .eraseblocks = { {32 * 1024, 128} },
7046 .block_erase = spi_block_erase_52,
7047 }, {
7048 .eraseblocks = { {64 * 1024, 64} },
7049 .block_erase = spi_block_erase_d8,
7050 }, {
7051 .eraseblocks = { {4 * 1024 * 1024, 1} },
7052 .block_erase = spi_block_erase_60,
7053 }, {
7054 .eraseblocks = { {4 * 1024 * 1024, 1} },
7055 .block_erase = spi_block_erase_c7,
7056 },
7057 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007058 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007059 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00007060 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007061 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007062 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007063 },
7064
7065 {
7066 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007067 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007068 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007069 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007070 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007071 .total_size = 8192,
7072 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007073 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00007074 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007075 .probe = probe_spi_rdid,
7076 .probe_timing = TIMING_ZERO,
7077 .block_erasers =
7078 {
7079 {
7080 .eraseblocks = { {4 * 1024, 2048} },
7081 .block_erase = spi_block_erase_20,
7082 }, {
7083 .eraseblocks = { {32 * 1024, 256} },
7084 .block_erase = spi_block_erase_52,
7085 }, {
7086 .eraseblocks = { {64 * 1024, 128} },
7087 .block_erase = spi_block_erase_d8,
7088 }, {
7089 .eraseblocks = { {8 * 1024 * 1024, 1} },
7090 .block_erase = spi_block_erase_60,
7091 }, {
7092 .eraseblocks = { {8 * 1024 * 1024, 1} },
7093 .block_erase = spi_block_erase_c7,
7094 },
7095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007096 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007097 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00007098 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007100 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007101 },
7102
7103 {
7104 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007105 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007106 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007107 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007108 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007109 .total_size = 512,
7110 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007111 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007112 .tested = TEST_OK_PR,
7113 .probe = probe_spi_rems,
7114 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007115 .block_erasers =
7116 {
7117 {
7118 .eraseblocks = { {4 * 1024, 128} },
7119 .block_erase = spi_block_erase_20,
7120 }, {
7121 .eraseblocks = { {32 * 1024, 16} },
7122 .block_erase = spi_block_erase_52,
7123 }, {
7124 .eraseblocks = { {512 * 1024, 1} },
7125 .block_erase = spi_block_erase_60,
7126 },
7127 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007128 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007129 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007130 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007131 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007132 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007133 },
7134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007135 {
7136 .vendor = "SST",
7137 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007138 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007139 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007140 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007141 .total_size = 512,
7142 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007143 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007144 .tested = TEST_UNTESTED,
7145 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007146 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007147 .block_erasers =
7148 {
7149 {
7150 .eraseblocks = { {4 * 1024, 128} },
7151 .block_erase = spi_block_erase_20,
7152 }, {
7153 .eraseblocks = { {32 * 1024, 16} },
7154 .block_erase = spi_block_erase_52,
7155 }, {
7156 .eraseblocks = { {64 * 1024, 8} },
7157 .block_erase = spi_block_erase_d8,
7158 }, {
7159 .eraseblocks = { {512 * 1024, 1} },
7160 .block_erase = spi_block_erase_60,
7161 }, {
7162 .eraseblocks = { {512 * 1024, 1} },
7163 .block_erase = spi_block_erase_c7,
7164 },
7165 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007166 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007167 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007168 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00007169 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007170 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00007171 },
7172
7173 {
7174 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00007175 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007176 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007177 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007178 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00007179 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007180 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007181 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00007182 .tested = TEST_OK_PR,
7183 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007184 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007185 .block_erasers =
7186 {
7187 {
7188 .eraseblocks = { {4 * 1024, 128} },
7189 .block_erase = spi_block_erase_20,
7190 }, {
7191 .eraseblocks = { {32 * 1024, 16} },
7192 .block_erase = spi_block_erase_52,
7193 }, {
7194 .eraseblocks = { {64 * 1024, 8} },
7195 .block_erase = spi_block_erase_d8,
7196 }, {
7197 .eraseblocks = { {512 * 1024, 1} },
7198 .block_erase = spi_block_erase_60,
7199 }, {
7200 .eraseblocks = { {512 * 1024, 1} },
7201 .block_erase = spi_block_erase_c7,
7202 },
7203 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007204 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007205 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007206 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00007207 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007208 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00007209 },
7210
7211 {
7212 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007213 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007214 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007215 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007216 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007217 .total_size = 1024,
7218 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007219 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00007220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007221 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007222 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007223 .block_erasers =
7224 {
7225 {
7226 .eraseblocks = { {4 * 1024, 256} },
7227 .block_erase = spi_block_erase_20,
7228 }, {
7229 .eraseblocks = { {32 * 1024, 32} },
7230 .block_erase = spi_block_erase_52,
7231 }, {
7232 .eraseblocks = { {64 * 1024, 16} },
7233 .block_erase = spi_block_erase_d8,
7234 }, {
7235 .eraseblocks = { {1024 * 1024, 1} },
7236 .block_erase = spi_block_erase_60,
7237 }, {
7238 .eraseblocks = { {1024 * 1024, 1} },
7239 .block_erase = spi_block_erase_c7,
7240 },
7241 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007242 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007243 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007244 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007245 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007246 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007247 },
7248
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007249 {
7250 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00007251 .name = "SST25WF512",
7252 .bustype = BUS_SPI,
7253 .manufacture_id = SST_ID,
7254 .model_id = SST_SST25WF512,
7255 .total_size = 64,
7256 .page_size = 256,
7257 .feature_bits = FEATURE_WRSR_EITHER,
7258 .tested = TEST_UNTESTED,
7259 .probe = probe_spi_rdid,
7260 .probe_timing = TIMING_ZERO,
7261 .block_erasers =
7262 {
7263 {
7264 .eraseblocks = { {4 * 1024, 16} },
7265 .block_erase = spi_block_erase_20,
7266 }, {
7267 .eraseblocks = { {32 * 1024, 2} },
7268 .block_erase = spi_block_erase_52,
7269 }, {
7270 .eraseblocks = { {1024 * 64, 1} },
7271 .block_erase = spi_block_erase_60,
7272 }, {
7273 .eraseblocks = { {1024 * 64, 1} },
7274 .block_erase = spi_block_erase_c7,
7275 },
7276 },
7277 .unlock = spi_disable_blockprotect,
7278 .write = spi_aai_write,
7279 .read = spi_chip_read, /* Fast read (0x0B) supported */
7280 .voltage = {1650, 1950},
7281 },
7282
7283 {
7284 .vendor = "SST",
7285 .name = "SST25WF010",
7286 .bustype = BUS_SPI,
7287 .manufacture_id = SST_ID,
7288 .model_id = SST_SST25WF010,
7289 .total_size = 128,
7290 .page_size = 256,
7291 .feature_bits = FEATURE_WRSR_EITHER,
7292 .tested = TEST_UNTESTED,
7293 .probe = probe_spi_rdid,
7294 .probe_timing = TIMING_ZERO,
7295 .block_erasers =
7296 {
7297 {
7298 .eraseblocks = { {4 * 1024, 32} },
7299 .block_erase = spi_block_erase_20,
7300 }, {
7301 .eraseblocks = { {32 * 1024, 4} },
7302 .block_erase = spi_block_erase_52,
7303 }, {
7304 .eraseblocks = { {1024 * 128, 1} },
7305 .block_erase = spi_block_erase_60,
7306 }, {
7307 .eraseblocks = { {1024 * 128, 1} },
7308 .block_erase = spi_block_erase_c7,
7309 },
7310 },
7311 .unlock = spi_disable_blockprotect,
7312 .write = spi_aai_write,
7313 .read = spi_chip_read, /* Fast read (0x0B) supported */
7314 .voltage = {1650, 1950},
7315 },
7316
7317 {
7318 .vendor = "SST",
7319 .name = "SST25WF020",
7320 .bustype = BUS_SPI,
7321 .manufacture_id = SST_ID,
7322 .model_id = SST_SST25WF020,
7323 .total_size = 256,
7324 .page_size = 256,
7325 .feature_bits = FEATURE_WRSR_EITHER,
7326 .tested = TEST_UNTESTED,
7327 .probe = probe_spi_rdid,
7328 .probe_timing = TIMING_ZERO,
7329 .block_erasers =
7330 {
7331 {
7332 .eraseblocks = { {4 * 1024, 64} },
7333 .block_erase = spi_block_erase_20,
7334 }, {
7335 .eraseblocks = { {32 * 1024, 8} },
7336 .block_erase = spi_block_erase_52,
7337 }, {
7338 .eraseblocks = { {64 * 1024, 4} },
7339 .block_erase = spi_block_erase_d8,
7340 }, {
7341 .eraseblocks = { {1024 * 256, 1} },
7342 .block_erase = spi_block_erase_60,
7343 }, {
7344 .eraseblocks = { {1024 * 256, 1} },
7345 .block_erase = spi_block_erase_c7,
7346 },
7347 },
7348 .unlock = spi_disable_blockprotect,
7349 .write = spi_aai_write,
7350 .read = spi_chip_read, /* Fast read (0x0B) supported */
7351 .voltage = {1650, 1950},
7352 },
7353
7354 {
7355 .vendor = "SST",
7356 .name = "SST25WF040",
7357 .bustype = BUS_SPI,
7358 .manufacture_id = SST_ID,
7359 .model_id = SST_SST25WF040,
7360 .total_size = 512,
7361 .page_size = 256,
7362 .feature_bits = FEATURE_WRSR_EITHER,
7363 .tested = TEST_UNTESTED,
7364 .probe = probe_spi_rdid,
7365 .probe_timing = TIMING_ZERO,
7366 .block_erasers =
7367 {
7368 {
7369 .eraseblocks = { {4 * 1024, 128} },
7370 .block_erase = spi_block_erase_20,
7371 }, {
7372 .eraseblocks = { {32 * 1024, 16} },
7373 .block_erase = spi_block_erase_52,
7374 }, {
7375 .eraseblocks = { {64 * 1024, 8} },
7376 .block_erase = spi_block_erase_d8,
7377 }, {
7378 .eraseblocks = { {1024 * 512, 1} },
7379 .block_erase = spi_block_erase_60,
7380 }, {
7381 .eraseblocks = { {1024 * 512, 1} },
7382 .block_erase = spi_block_erase_c7,
7383 },
7384 },
7385 .unlock = spi_disable_blockprotect,
7386 .write = spi_aai_write,
7387 .read = spi_chip_read, /* Fast read (0x0B) supported */
7388 .voltage = {1650, 1950},
7389 },
7390
7391 {
7392 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007393 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007394 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007395 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007396 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007397 .total_size = 512,
7398 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007399 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007400 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007401 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007402 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007403 .block_erasers =
7404 {
7405 {
7406 .eraseblocks = { {128, 4096} },
7407 .block_erase = erase_sector_28sf040,
7408 }, {
7409 .eraseblocks = { {512 * 1024, 1} },
7410 .block_erase = erase_chip_28sf040,
7411 }
7412 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007413 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007414 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007416 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007417 },
7418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007419 {
7420 .vendor = "SST",
7421 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007422 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007424 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007425 .total_size = 128,
7426 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007427 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007428 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007429 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007430 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007431 .block_erasers =
7432 {
7433 {
7434 .eraseblocks = { {128 * 1024, 1} },
7435 .block_erase = erase_chip_block_jedec,
7436 }
7437 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007438 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007440 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007441 },
7442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007443 {
7444 .vendor = "SST",
7445 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007446 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007447 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007448 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007449 .total_size = 128,
7450 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007451 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007452 .tested = TEST_UNTESTED,
7453 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007454 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007455 .block_erasers =
7456 {
7457 {
7458 .eraseblocks = { {128 * 1024, 1} },
7459 .block_erase = erase_chip_block_jedec,
7460 }
7461 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007462 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007464 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007465 },
7466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007467 {
7468 .vendor = "SST",
7469 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007470 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007471 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007472 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007473 .total_size = 256,
7474 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007475 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007476 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007477 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007478 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007479 .block_erasers =
7480 {
7481 {
7482 .eraseblocks = { {256 * 1024, 1} },
7483 .block_erase = erase_chip_block_jedec,
7484 }
7485 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007486 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007487 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007488 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007489 },
7490
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007491 {
7492 .vendor = "SST",
7493 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007494 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007495 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007496 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007497 .total_size = 256,
7498 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007499 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007500 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007501 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007502 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007503 .block_erasers =
7504 {
7505 {
7506 .eraseblocks = { {256 * 1024, 1} },
7507 .block_erase = erase_chip_block_jedec,
7508 }
7509 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007510 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007512 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007513 },
7514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007515 {
7516 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00007517 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007518 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007519 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007520 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007521 .total_size = 64,
7522 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007523 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00007524 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007525 .probe = probe_jedec,
7526 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00007527 .block_erasers =
7528 {
7529 {
7530 .eraseblocks = { {4 * 1024, 16} },
7531 .block_erase = erase_sector_jedec,
7532 }, {
7533 .eraseblocks = { {64 * 1024, 1} },
7534 .block_erase = erase_chip_block_jedec,
7535 }
7536 },
Sean Nelson35727f72010-01-28 23:55:12 +00007537 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007538 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007539 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00007540 },
7541
7542 {
7543 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007544 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007545 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007546 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007547 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007548 .total_size = 128,
7549 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007550 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007551 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007552 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007553 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007554 .block_erasers =
7555 {
7556 {
7557 .eraseblocks = { {4 * 1024, 32} },
7558 .block_erase = erase_sector_jedec,
7559 }, {
7560 .eraseblocks = { {128 * 1024, 1} },
7561 .block_erase = erase_chip_block_jedec,
7562 }
7563 },
Sean Nelson35727f72010-01-28 23:55:12 +00007564 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007565 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007566 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007567 },
7568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007569 {
7570 .vendor = "SST",
7571 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007572 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007573 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007574 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007575 .total_size = 256,
7576 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007577 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007578 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007579 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007580 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007581 .block_erasers =
7582 {
7583 {
7584 .eraseblocks = { {4 * 1024, 64} },
7585 .block_erase = erase_sector_jedec,
7586 }, {
7587 .eraseblocks = { {256 * 1024, 1} },
7588 .block_erase = erase_chip_block_jedec,
7589 }
7590 },
Sean Nelson35727f72010-01-28 23:55:12 +00007591 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007593 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007594 },
7595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 {
7597 .vendor = "SST",
7598 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007599 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007601 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007602 .total_size = 512,
7603 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007604 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007605 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007606 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007607 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007608 .block_erasers =
7609 {
7610 {
7611 .eraseblocks = { {4 * 1024, 128} },
7612 .block_erase = erase_sector_jedec,
7613 }, {
7614 .eraseblocks = { {512 * 1024, 1} },
7615 .block_erase = erase_chip_block_jedec,
7616 }
7617 },
Sean Nelson35727f72010-01-28 23:55:12 +00007618 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007619 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007620 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007621 },
7622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007623 {
7624 .vendor = "SST",
7625 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007626 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007627 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007628 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007629 .total_size = 64,
7630 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007631 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007633 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007634 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007635 .block_erasers =
7636 {
7637 {
7638 .eraseblocks = { {4 * 1024, 16} },
7639 .block_erase = erase_sector_jedec,
7640 }, {
7641 .eraseblocks = { {64 * 1024, 1} },
7642 .block_erase = erase_chip_block_jedec,
7643 }
7644 },
Sean Nelson35727f72010-01-28 23:55:12 +00007645 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007647 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007648 },
7649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007650 {
7651 .vendor = "SST",
7652 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007653 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007654 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007655 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007656 .total_size = 128,
7657 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007658 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007659 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007660 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007661 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007662 .block_erasers =
7663 {
7664 {
7665 .eraseblocks = { {4 * 1024, 32} },
7666 .block_erase = erase_sector_jedec,
7667 }, {
7668 .eraseblocks = { {128 * 1024, 1} },
7669 .block_erase = erase_chip_block_jedec,
7670 }
7671 },
Sean Nelson35727f72010-01-28 23:55:12 +00007672 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007673 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007675 },
7676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007677 {
7678 .vendor = "SST",
7679 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007680 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007681 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007682 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007683 .total_size = 256,
7684 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007685 .feature_bits = FEATURE_EITHER_RESET,
7686 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007687 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007688 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007689 .block_erasers =
7690 {
7691 {
7692 .eraseblocks = { {4 * 1024, 64} },
7693 .block_erase = erase_sector_jedec,
7694 }, {
7695 .eraseblocks = { {256 * 1024, 1} },
7696 .block_erase = erase_chip_block_jedec,
7697 }
7698 },
Sean Nelson35727f72010-01-28 23:55:12 +00007699 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007700 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007701 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007702 },
7703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007704 {
7705 .vendor = "SST",
7706 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007707 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007708 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007709 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007710 .total_size = 512,
7711 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007712 .feature_bits = FEATURE_EITHER_RESET,
7713 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007714 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007715 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007716 .block_erasers =
7717 {
7718 {
7719 .eraseblocks = { {4 * 1024, 128} },
7720 .block_erase = erase_sector_jedec,
7721 }, {
7722 .eraseblocks = { {512 * 1024, 1} },
7723 .block_erase = erase_chip_block_jedec,
7724 }
7725 },
Sean Nelson35727f72010-01-28 23:55:12 +00007726 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007728 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00007729 },
FENG yu ningff692fb2008-12-08 18:15:10 +00007730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007731 {
7732 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00007733 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007734 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007735 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007736 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00007737 .total_size = 1024,
7738 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007739 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00007740 .tested = TEST_UNTESTED,
7741 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007742 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007743 .block_erasers =
7744 {
7745 {
7746 .eraseblocks = { {4 * 1024, 256} },
7747 .block_erase = erase_sector_jedec,
7748 }, {
7749 .eraseblocks = { {64 * 1024, 16} },
7750 .block_erase = erase_block_jedec,
7751 }, {
7752 .eraseblocks = { {1024 * 1024, 1} },
7753 .block_erase = erase_chip_block_jedec,
7754 }
7755 },
Sean Nelson35727f72010-01-28 23:55:12 +00007756 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007758 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00007759 },
7760
7761 {
7762 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007763 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007764 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007765 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007766 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007767 .total_size = 256,
7768 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007769 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007770 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007771 .probe = probe_jedec,
7772 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007773 .block_erasers =
7774 {
7775 {
7776 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007777 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007778 }, {
7779 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007780 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007781 }, {
7782 .eraseblocks = { {256 * 1024, 1} },
7783 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7784 }
7785 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007786 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007787 .unlock = unlock_sst_fwhub,
7788 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007790 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007791 },
7792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007793 {
7794 .vendor = "SST",
7795 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007796 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007797 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007798 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007799 .total_size = 384,
7800 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007801 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00007802 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007803 .probe = probe_jedec,
7804 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007805 .block_erasers =
7806 {
7807 {
7808 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007809 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007810 }, {
7811 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007812 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007813 }, {
7814 .eraseblocks = { {384 * 1024, 1} },
7815 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7816 }
7817 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007818 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007819 .unlock = unlock_sst_fwhub,
7820 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007821 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007822 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007823 },
7824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007825 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007826 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
7827 * and is only honored for 64k block erase, but not 4k sector erase.
7828 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007829 .vendor = "SST",
7830 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007831 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007832 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007833 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007834 .total_size = 512,
7835 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007836 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007837 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007838 .probe = probe_jedec,
7839 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007840 .block_erasers =
7841 {
7842 {
7843 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007844 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007845 }, {
7846 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007847 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007848 }, {
7849 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007850 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007851 },
7852 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007853 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007854 .unlock = unlock_sst_fwhub,
7855 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007857 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007858 },
7859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007860 {
7861 .vendor = "SST",
7862 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007863 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007864 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007865 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007866 .total_size = 512,
7867 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007868 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007869 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007870 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007871 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007872 .block_erasers =
7873 {
7874 {
7875 .eraseblocks = { {4 * 1024, 128} },
7876 .block_erase = erase_sector_49lfxxxc,
7877 }, {
7878 .eraseblocks = {
7879 {64 * 1024, 7},
7880 {32 * 1024, 1},
7881 {8 * 1024, 2},
7882 {16 * 1024, 1},
7883 },
Sean Nelson69e58112010-03-23 17:10:28 +00007884 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007885 }
7886 },
Sean Nelson69e58112010-03-23 17:10:28 +00007887 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007888 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007889 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007890 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007891 },
7892
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007893 {
7894 .vendor = "SST",
7895 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007896 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007897 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007898 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 .total_size = 1024,
7900 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007901 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007902 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007903 .probe = probe_jedec,
7904 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007905 .block_erasers =
7906 {
7907 {
7908 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007909 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007910 }, {
7911 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007912 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007913 }, {
7914 .eraseblocks = { {1024 * 1024, 1} },
7915 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7916 }
7917 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007918 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007919 .unlock = unlock_sst_fwhub,
7920 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007922 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007923 },
7924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007925 {
7926 .vendor = "SST",
7927 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007928 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007929 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007930 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007931 .total_size = 1024,
7932 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007933 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007934 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007935 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007936 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007937 .block_erasers =
7938 {
7939 {
7940 .eraseblocks = { {4 * 1024, 256} },
7941 .block_erase = erase_sector_49lfxxxc,
7942 }, {
7943 .eraseblocks = {
7944 {64 * 1024, 15},
7945 {32 * 1024, 1},
7946 {8 * 1024, 2},
7947 {16 * 1024, 1},
7948 },
Sean Nelson69e58112010-03-23 17:10:28 +00007949 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007950 }
7951 },
Sean Nelson69e58112010-03-23 17:10:28 +00007952 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007953 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007955 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007956 },
7957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007958 {
7959 .vendor = "SST",
7960 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007961 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007962 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007963 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007964 .total_size = 2048,
7965 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007966 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007967 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007968 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007969 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007970 .block_erasers =
7971 {
7972 {
7973 .eraseblocks = { {4 * 1024, 512} },
7974 .block_erase = erase_sector_49lfxxxc,
7975 }, {
7976 .eraseblocks = {
7977 {64 * 1024, 31},
7978 {32 * 1024, 1},
7979 {8 * 1024, 2},
7980 {16 * 1024, 1},
7981 },
Sean Nelson69e58112010-03-23 17:10:28 +00007982 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007983 }
7984 },
Sean Nelson69e58112010-03-23 17:10:28 +00007985 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007986 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007988 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007989 },
7990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007991 {
7992 .vendor = "SST",
7993 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007994 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007995 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007996 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007997 .total_size = 256,
7998 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007999 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00008000 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008001 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008002 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008003 .block_erasers =
8004 {
8005 {
8006 .eraseblocks = { {4 * 1024, 64} },
8007 .block_erase = erase_sector_jedec,
8008 }, {
8009 .eraseblocks = { {16 * 1024, 16} },
8010 .block_erase = erase_block_jedec,
8011 }, {
8012 .eraseblocks = { {256 * 1024, 1} },
8013 .block_erase = NULL,
8014 }
8015 },
Sean Nelson35727f72010-01-28 23:55:12 +00008016 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008018 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00008019 },
8020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008021 {
8022 .vendor = "SST",
8023 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008024 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008025 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008026 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008027 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00008028 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008029 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008030 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008031 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008032 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008033 .block_erasers =
8034 {
8035 {
8036 .eraseblocks = { {4 * 1024, 64} },
8037 .block_erase = erase_sector_jedec,
8038 }, {
8039 .eraseblocks = { {16 * 1024, 16} },
8040 .block_erase = erase_block_jedec,
8041 }, {
8042 .eraseblocks = { {256 * 1024, 1} },
8043 .block_erase = NULL,
8044 }
8045 },
Sean Nelson35727f72010-01-28 23:55:12 +00008046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008048 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008049 },
8050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008051 {
8052 .vendor = "SST",
8053 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008054 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008055 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008056 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008057 .total_size = 512,
8058 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008059 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008060 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008061 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008062 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008063 .block_erasers =
8064 {
8065 {
8066 .eraseblocks = { {4 * 1024, 128} },
8067 .block_erase = erase_sector_jedec,
8068 }, {
8069 .eraseblocks = { {64 * 1024, 8} },
8070 .block_erase = erase_block_jedec,
8071 }, {
8072 .eraseblocks = { {512 * 1024, 1} },
8073 .block_erase = NULL,
8074 }
8075 },
Sean Nelson35727f72010-01-28 23:55:12 +00008076 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008077 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008078 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008079 },
8080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008081 {
8082 .vendor = "SST",
8083 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008084 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008085 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008086 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008087 .total_size = 512,
8088 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00008089 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008090 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008091 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008092 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008093 .block_erasers =
8094 {
8095 {
8096 .eraseblocks = { {4 * 1024, 128} },
8097 .block_erase = erase_sector_jedec,
8098 }, {
8099 .eraseblocks = { {64 * 1024, 8} },
8100 .block_erase = erase_block_jedec,
8101 }, {
8102 .eraseblocks = { {512 * 1024, 1} },
8103 .block_erase = NULL,
8104 }
8105 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00008106 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00008107 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008108 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008109 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008110 },
8111
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008112 {
8113 .vendor = "SST",
8114 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008115 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008116 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008117 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008118 .total_size = 1024,
8119 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008120 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00008121 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008122 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00008123 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008124 .block_erasers =
8125 {
8126 {
8127 .eraseblocks = { {4 * 1024, 256} },
8128 .block_erase = erase_sector_jedec,
8129 }, {
8130 .eraseblocks = { {64 * 1024, 16} },
8131 .block_erase = erase_block_jedec,
8132 }, {
8133 .eraseblocks = { {1024 * 1024, 1} },
8134 .block_erase = NULL,
8135 }
8136 },
Sean Nelson35727f72010-01-28 23:55:12 +00008137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008139 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008140 },
8141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008142 {
8143 .vendor = "SST",
8144 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008145 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008146 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008147 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008148 .total_size = 2048,
8149 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008150 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008151 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008152 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008153 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008154 .block_erasers =
8155 {
8156 {
8157 .eraseblocks = { {4 * 1024, 512} },
8158 .block_erase = erase_sector_49lfxxxc,
8159 }, {
8160 .eraseblocks = {
8161 {64 * 1024, 31},
8162 {32 * 1024, 1},
8163 {8 * 1024, 2},
8164 {16 * 1024, 1},
8165 },
Sean Nelson69e58112010-03-23 17:10:28 +00008166 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008167 }
8168 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008169 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008170 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008172 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008173 },
8174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008175 {
8176 .vendor = "ST",
8177 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008178 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008179 .manufacture_id = ST_ID,
8180 .model_id = ST_M25P05A,
8181 .total_size = 64,
8182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008183 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008184 .tested = TEST_UNTESTED,
8185 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008186 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008187 .block_erasers =
8188 {
8189 {
8190 .eraseblocks = { {32 * 1024, 2} },
8191 .block_erase = spi_block_erase_d8,
8192 }, {
8193 .eraseblocks = { {64 * 1024, 1} },
8194 .block_erase = spi_block_erase_c7,
8195 }
8196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008197 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008198 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008199 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008201 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008202 },
8203
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008204 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8205 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008206 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008207 * only is successful if RDID does not work.
8208 */
8209 {
8210 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008211 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008212 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008213 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008214 .model_id = ST_M25P05_RES,
8215 .total_size = 64,
8216 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008217 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008218 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008219 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008220 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008221 .block_erasers =
8222 {
8223 {
8224 .eraseblocks = { {32 * 1024, 2} },
8225 .block_erase = spi_block_erase_d8,
8226 }, {
8227 .eraseblocks = { {64 * 1024, 1} },
8228 .block_erase = spi_block_erase_c7,
8229 }
8230 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008231 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008232 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008233 .write = spi_chip_write_1, /* 128 */
8234 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008235 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008236 },
8237
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008238 {
8239 .vendor = "ST",
8240 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008241 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008242 .manufacture_id = ST_ID,
8243 .model_id = ST_M25P10A,
8244 .total_size = 128,
8245 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008246 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008247 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008248 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008249 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008250 .block_erasers =
8251 {
8252 {
8253 .eraseblocks = { {32 * 1024, 4} },
8254 .block_erase = spi_block_erase_d8,
8255 }, {
8256 .eraseblocks = { {128 * 1024, 1} },
8257 .block_erase = spi_block_erase_c7,
8258 }
8259 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008260 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008261 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008262 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008263 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008264 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008265 },
8266
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008267 /* The ST M25P10 has the same problem as the M25P05. */
8268 {
8269 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008270 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008271 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008272 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008273 .model_id = ST_M25P10_RES,
8274 .total_size = 128,
8275 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008276 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008277 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008278 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008279 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008280 .block_erasers =
8281 {
8282 {
8283 .eraseblocks = { {32 * 1024, 4} },
8284 .block_erase = spi_block_erase_d8,
8285 }, {
8286 .eraseblocks = { {128 * 1024, 1} },
8287 .block_erase = spi_block_erase_c7,
8288 }
8289 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008290 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008291 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008292 .write = spi_chip_write_1, /* 128 */
8293 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008294 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008295 },
8296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008297 {
8298 .vendor = "ST",
8299 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008300 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008301 .manufacture_id = ST_ID,
8302 .model_id = ST_M25P20,
8303 .total_size = 256,
8304 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008305 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008306 .tested = TEST_UNTESTED,
8307 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008308 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008309 .block_erasers =
8310 {
8311 {
8312 .eraseblocks = { {64 * 1024, 4} },
8313 .block_erase = spi_block_erase_d8,
8314 }, {
8315 .eraseblocks = { {256 * 1024, 1} },
8316 .block_erase = spi_block_erase_c7,
8317 }
8318 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008319 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008320 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008321 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008322 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008323 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008324 },
8325
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008326 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008327 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008328 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008329 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 .manufacture_id = ST_ID,
8331 .model_id = ST_M25P40,
8332 .total_size = 512,
8333 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008334 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008335 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008336 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008337 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008338 .block_erasers =
8339 {
8340 {
8341 .eraseblocks = { {64 * 1024, 8} },
8342 .block_erase = spi_block_erase_d8,
8343 }, {
8344 .eraseblocks = { {512 * 1024, 1} },
8345 .block_erase = spi_block_erase_c7,
8346 }
8347 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008348 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008349 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008350 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008351 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008352 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008353 },
8354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008355 {
8356 .vendor = "ST",
8357 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008358 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008359 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008360 .model_id = ST_M25P40_RES,
8361 .total_size = 512,
8362 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008363 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008364 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008365 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008366 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008367 .block_erasers =
8368 {
8369 {
8370 .eraseblocks = { {64 * 1024, 8} },
8371 .block_erase = spi_block_erase_d8,
8372 }, {
8373 .eraseblocks = { {512 * 1024, 1} },
8374 .block_erase = spi_block_erase_c7,
8375 }
8376 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008377 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008378 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008379 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008380 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00008381 },
8382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008383 {
8384 .vendor = "ST",
8385 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008386 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008387 .manufacture_id = ST_ID,
8388 .model_id = ST_M25P80,
8389 .total_size = 1024,
8390 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008391 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008392 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008393 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008394 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008395 .block_erasers =
8396 {
8397 {
8398 .eraseblocks = { {64 * 1024, 16} },
8399 .block_erase = spi_block_erase_d8,
8400 }, {
8401 .eraseblocks = { {1024 * 1024, 1} },
8402 .block_erase = spi_block_erase_c7,
8403 }
8404 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008405 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008406 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008407 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008408 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008409 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008410 },
8411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008412 {
8413 .vendor = "ST",
8414 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008415 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008416 .manufacture_id = ST_ID,
8417 .model_id = ST_M25P16,
8418 .total_size = 2048,
8419 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008420 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008421 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008422 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008423 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008424 .block_erasers =
8425 {
8426 {
8427 .eraseblocks = { {64 * 1024, 32} },
8428 .block_erase = spi_block_erase_d8,
8429 }, {
8430 .eraseblocks = { {2 * 1024 * 1024, 1} },
8431 .block_erase = spi_block_erase_c7,
8432 }
8433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008434 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008435 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008436 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008438 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008439 },
8440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008441 {
8442 .vendor = "ST",
8443 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008445 .manufacture_id = ST_ID,
8446 .model_id = ST_M25P32,
8447 .total_size = 4096,
8448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008449 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008452 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008453 .block_erasers =
8454 {
8455 {
8456 .eraseblocks = { {64 * 1024, 64} },
8457 .block_erase = spi_block_erase_d8,
8458 }, {
8459 .eraseblocks = { {4 * 1024 * 1024, 1} },
8460 .block_erase = spi_block_erase_c7,
8461 }
8462 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008463 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008464 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008465 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008466 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008467 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008468 },
8469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008470 {
8471 .vendor = "ST",
8472 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008473 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008474 .manufacture_id = ST_ID,
8475 .model_id = ST_M25P64,
8476 .total_size = 8192,
8477 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008478 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008479 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008480 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008481 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008482 .block_erasers =
8483 {
8484 {
8485 .eraseblocks = { {64 * 1024, 128} },
8486 .block_erase = spi_block_erase_d8,
8487 }, {
8488 .eraseblocks = { {8 * 1024 * 1024, 1} },
8489 .block_erase = spi_block_erase_c7,
8490 }
8491 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008492 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008493 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008494 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008495 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008496 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008497 },
8498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008499 {
8500 .vendor = "ST",
8501 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008502 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008503 .manufacture_id = ST_ID,
8504 .model_id = ST_M25P128,
8505 .total_size = 16384,
8506 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008507 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008508 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008509 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008510 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008511 .block_erasers =
8512 {
8513 {
8514 .eraseblocks = { {256 * 1024, 64} },
8515 .block_erase = spi_block_erase_d8,
8516 }, {
8517 .eraseblocks = { {16 * 1024 * 1024, 1} },
8518 .block_erase = spi_block_erase_c7,
8519 }
8520 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008521 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008522 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008523 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008524 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008525 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008526 },
8527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008528 {
8529 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00008530 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008531 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008532 .manufacture_id = ST_ID,
8533 .model_id = ST_M25PX16,
8534 .total_size = 2048,
8535 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008536 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00008537 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008538 .tested = TEST_OK_PREW,
8539 .probe = probe_spi_rdid,
8540 .probe_timing = TIMING_ZERO,
8541 .block_erasers =
8542 {
8543 {
8544 .eraseblocks = { { 4 * 1024, 512 } },
8545 .block_erase = spi_block_erase_20,
8546 }, {
8547 .eraseblocks = { {64 * 1024, 32} },
8548 .block_erase = spi_block_erase_d8,
8549 }, {
8550 .eraseblocks = { {2 * 1024 * 1024, 1} },
8551 .block_erase = spi_block_erase_c7,
8552 }
8553 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008554 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00008555 .unlock = spi_disable_blockprotect,
8556 .write = spi_chip_write_256,
8557 .read = spi_chip_read,
8558 },
8559
8560 {
8561 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00008562 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008563 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008564 .manufacture_id = ST_ID,
8565 .model_id = ST_M25PX32,
8566 .total_size = 4096,
8567 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008568 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008569 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008570 .probe = probe_spi_rdid,
8571 .probe_timing = TIMING_ZERO,
8572 .block_erasers =
8573 {
8574 {
8575 .eraseblocks = { { 4 * 1024, 1024 } },
8576 .block_erase = spi_block_erase_20,
8577 }, {
8578 .eraseblocks = { {64 * 1024, 64} },
8579 .block_erase = spi_block_erase_d8,
8580 }, {
8581 .eraseblocks = { {4 * 1024 * 1024, 1} },
8582 .block_erase = spi_block_erase_c7,
8583 }
8584 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00008586 .unlock = spi_disable_blockprotect,
8587 .write = spi_chip_write_256,
8588 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008589 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00008590 },
8591
8592 {
8593 .vendor = "ST",
8594 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008595 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008596 .manufacture_id = ST_ID,
8597 .model_id = ST_M25PX64,
8598 .total_size = 8192,
8599 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008600 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008601 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008602 .probe = probe_spi_rdid,
8603 .probe_timing = TIMING_ZERO,
8604 .block_erasers =
8605 {
8606 {
8607 .eraseblocks = { { 4 * 1024, 2048 } },
8608 .block_erase = spi_block_erase_20,
8609 }, {
8610 .eraseblocks = { {64 * 1024, 128} },
8611 .block_erase = spi_block_erase_d8,
8612 }, {
8613 .eraseblocks = { {8 * 1024 * 1024, 1} },
8614 .block_erase = spi_block_erase_c7,
8615 }
8616 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008617 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00008618 .unlock = spi_disable_blockprotect,
8619 .write = spi_chip_write_256,
8620 .read = spi_chip_read,
8621 },
8622
8623 {
8624 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008625 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008626 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008627 .manufacture_id = ST_ID,
8628 .model_id = ST_M29F002B,
8629 .total_size = 256,
8630 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008631 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008632 .tested = TEST_UNTESTED,
8633 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008634 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008635 .block_erasers =
8636 {
8637 {
8638 .eraseblocks = {
8639 {16 * 1024, 1},
8640 {8 * 1024, 2},
8641 {32 * 1024, 1},
8642 {64 * 1024, 3},
8643 },
8644 .block_erase = erase_sector_jedec,
8645 }, {
8646 .eraseblocks = { {256 * 1024, 1} },
8647 .block_erase = erase_chip_block_jedec,
8648 }
8649 },
Sean Nelson35727f72010-01-28 23:55:12 +00008650 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008651 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008652 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008653 },
8654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008655 {
8656 .vendor = "ST",
8657 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008658 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 .manufacture_id = ST_ID,
8660 .model_id = ST_M29F002T,
8661 .total_size = 256,
8662 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008663 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008664 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008665 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008666 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = {
8671 {64 * 1024, 3},
8672 {32 * 1024, 1},
8673 {8 * 1024, 2},
8674 {16 * 1024, 1},
8675 },
8676 .block_erase = erase_sector_jedec,
8677 }, {
8678 .eraseblocks = { {256 * 1024, 1} },
8679 .block_erase = erase_chip_block_jedec,
8680 }
8681 },
Sean Nelson35727f72010-01-28 23:55:12 +00008682 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008683 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008684 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008685 },
8686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008687 {
8688 .vendor = "ST",
8689 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008691 .manufacture_id = ST_ID,
8692 .model_id = ST_M29F040B,
8693 .total_size = 512,
8694 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8696 .tested = TEST_UNTESTED,
8697 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008698 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00008699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00008703 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008704 }, {
8705 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008706 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008707 }
8708 },
Sean Nelson35727f72010-01-28 23:55:12 +00008709 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008711 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008712 },
8713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008714 {
Sean Nelson35727f72010-01-28 23:55:12 +00008715 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008716 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008717 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008718 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008719 .manufacture_id = ST_ID,
8720 .model_id = ST_M29F400BB,
8721 .total_size = 512,
8722 .page_size = 64 * 1024,
8723 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008724 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008725 .probe = probe_m29f400bt,
8726 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
8727 .block_erasers =
8728 {
8729 {
8730 .eraseblocks = {
8731 {16 * 1024, 1},
8732 {8 * 1024, 2},
8733 {32 * 1024, 1},
8734 {64 * 1024, 7},
8735 },
8736 .block_erase = block_erase_m29f400bt,
8737 }, {
8738 .eraseblocks = { {512 * 1024, 1} },
8739 .block_erase = block_erase_chip_m29f400bt,
8740 }
8741 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008742 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008744 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008745 },
8746 {
8747 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
8748 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008749 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008750 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008751 .manufacture_id = ST_ID,
8752 .model_id = ST_M29F400BT,
8753 .total_size = 512,
8754 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008755 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008756 .tested = TEST_UNTESTED,
8757 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008758 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008759 .block_erasers =
8760 {
8761 {
8762 .eraseblocks = {
8763 {64 * 1024, 7},
8764 {32 * 1024, 1},
8765 {8 * 1024, 2},
8766 {16 * 1024, 1},
8767 },
8768 .block_erase = block_erase_m29f400bt,
8769 }, {
8770 .eraseblocks = { {512 * 1024, 1} },
8771 .block_erase = block_erase_chip_m29f400bt,
8772 }
8773 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008774 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008775 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008776 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008777 },
8778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008779 {
8780 .vendor = "ST",
8781 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008782 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008783 .manufacture_id = ST_ID,
8784 .model_id = ST_M29W010B,
8785 .total_size = 128,
8786 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008788 .tested = TEST_UNTESTED,
8789 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008790 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008791 .block_erasers =
8792 {
8793 {
8794 .eraseblocks = { {16 * 1024, 8}, },
8795 .block_erase = erase_sector_jedec,
8796 }, {
8797 .eraseblocks = { {128 * 1024, 1} },
8798 .block_erase = erase_chip_block_jedec,
8799 }
8800 },
Sean Nelson35727f72010-01-28 23:55:12 +00008801 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008803 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008804 },
8805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 {
8807 .vendor = "ST",
8808 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .manufacture_id = ST_ID,
8811 .model_id = ST_M29W040B,
8812 .total_size = 512,
8813 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008814 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008815 .tested = TEST_UNTESTED,
8816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008818 .block_erasers =
8819 {
8820 {
8821 .eraseblocks = { {64 * 1024, 8}, },
8822 .block_erase = erase_sector_jedec,
8823 }, {
8824 .eraseblocks = { {512 * 1024, 1} },
8825 .block_erase = erase_chip_block_jedec,
8826 }
8827 },
Sean Nelson35727f72010-01-28 23:55:12 +00008828 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008829 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008830 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008831 },
8832
Stefan Taunereb582572012-09-21 12:52:50 +00008833 {
8834 .vendor = "ST",
8835 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008836 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00008837 .manufacture_id = ST_ID,
8838 .model_id = ST_M29W512B,
8839 .total_size = 64,
8840 .page_size = 64 * 1024,
8841 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008842 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00008843 .probe = probe_jedec,
8844 .probe_timing = TIMING_ZERO,
8845 .block_erasers =
8846 {
8847 {
8848 .eraseblocks = { {64 * 1024, 1} },
8849 .block_erase = erase_chip_block_jedec,
8850 }
8851 },
8852 .write = write_jedec_1,
8853 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008854 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00008855 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 {
8858 .vendor = "ST",
8859 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008860 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 .manufacture_id = ST_ID,
8862 .model_id = ST_M50FLW040A,
8863 .total_size = 512,
8864 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008865 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008866 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008867 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008868 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008869 .block_erasers =
8870 {
8871 {
Sean Nelson329bde72010-01-19 16:39:19 +00008872 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008873 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008874 {64 * 1024, 5}, /* block */
8875 {4 * 1024, 16}, /* sector */
8876 {4 * 1024, 16}, /* sector */
8877 },
8878 .block_erase = NULL,
8879 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008880 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008881 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008882 }
8883 },
Sean Nelson28accc22010-03-19 18:47:06 +00008884 .unlock = unlock_stm50flw0x0x,
8885 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008886 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008887 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008888 },
8889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008890 {
8891 .vendor = "ST",
8892 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008893 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008894 .manufacture_id = ST_ID,
8895 .model_id = ST_M50FLW040B,
8896 .total_size = 512,
8897 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008898 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008899 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008900 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008901 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008902 .block_erasers =
8903 {
8904 {
Sean Nelson329bde72010-01-19 16:39:19 +00008905 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008906 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008907 {4 * 1024, 16}, /* sector */
8908 {64 * 1024, 5}, /* block */
8909 {4 * 1024, 16}, /* sector */
8910 },
8911 .block_erase = NULL,
8912 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008913 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008914 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008915 }
8916 },
Sean Nelson28accc22010-03-19 18:47:06 +00008917 .unlock = unlock_stm50flw0x0x,
8918 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008920 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008921 },
8922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008923 {
8924 .vendor = "ST",
8925 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008926 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008927 .manufacture_id = ST_ID,
8928 .model_id = ST_M50FLW080A,
8929 .total_size = 1024,
8930 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008931 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008932 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008933 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008934 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008935 .block_erasers =
8936 {
8937 {
Sean Nelson329bde72010-01-19 16:39:19 +00008938 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008939 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008940 {64 * 1024, 13}, /* block */
8941 {4 * 1024, 16}, /* sector */
8942 {4 * 1024, 16}, /* sector */
8943 },
8944 .block_erase = NULL,
8945 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008946 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008947 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008948 }
8949 },
Sean Nelson28accc22010-03-19 18:47:06 +00008950 .unlock = unlock_stm50flw0x0x,
8951 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008953 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008954 },
8955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008956 {
8957 .vendor = "ST",
8958 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008959 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008960 .manufacture_id = ST_ID,
8961 .model_id = ST_M50FLW080B,
8962 .total_size = 1024,
8963 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008964 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008965 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008966 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008967 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008968 .block_erasers =
8969 {
8970 {
Sean Nelson329bde72010-01-19 16:39:19 +00008971 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008972 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008973 {4 * 1024, 16}, /* sector */
8974 {64 * 1024, 13}, /* block */
8975 {4 * 1024, 16}, /* sector */
8976 },
8977 .block_erase = NULL,
8978 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008979 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008980 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008981 }
8982 },
Sean Nelson28accc22010-03-19 18:47:06 +00008983 .unlock = unlock_stm50flw0x0x,
8984 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008985 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008986 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008987 },
8988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008989 {
8990 .vendor = "ST",
8991 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008992 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008993 .manufacture_id = ST_ID,
8994 .model_id = ST_M50FW002,
8995 .total_size = 256,
8996 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008997 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008998 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008999 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009000 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009001 .block_erasers =
9002 {
9003 {
9004 .eraseblocks = {
9005 {64 * 1024, 3},
9006 {32 * 1024, 1},
9007 {8 * 1024, 2},
9008 {16 * 1024, 1},
9009 },
Sean Nelson28accc22010-03-19 18:47:06 +00009010 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009011 }
9012 },
Sean Nelson28accc22010-03-19 18:47:06 +00009013 .unlock = unlock_stm50flw0x0x,
9014 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009016 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009017 },
9018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009019 {
9020 .vendor = "ST",
9021 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009022 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009023 .manufacture_id = ST_ID,
9024 .model_id = ST_M50FW016,
9025 .total_size = 2048,
9026 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009027 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009028 .tested = TEST_UNTESTED,
9029 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009030 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009031 .block_erasers =
9032 {
9033 {
9034 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009035 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009036 }
9037 },
Sean Nelson28accc22010-03-19 18:47:06 +00009038 .unlock = unlock_stm50flw0x0x,
9039 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009041 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009042 },
9043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009044 {
9045 .vendor = "ST",
9046 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009047 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009048 .manufacture_id = ST_ID,
9049 .model_id = ST_M50FW040,
9050 .total_size = 512,
9051 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009052 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00009053 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009054 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009055 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009056 .block_erasers =
9057 {
9058 {
9059 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009060 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009061 }
9062 },
Sean Nelson28accc22010-03-19 18:47:06 +00009063 .unlock = unlock_stm50flw0x0x,
9064 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009066 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009067 },
9068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009069 {
9070 .vendor = "ST",
9071 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009072 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009073 .manufacture_id = ST_ID,
9074 .model_id = ST_M50FW080,
9075 .total_size = 1024,
9076 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009077 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009078 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009079 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009080 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009081 .block_erasers =
9082 {
9083 {
9084 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009085 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009086 }
9087 },
Sean Nelson28accc22010-03-19 18:47:06 +00009088 .unlock = unlock_stm50flw0x0x,
9089 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009090 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009091 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009092 },
9093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009094 {
9095 .vendor = "ST",
9096 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009097 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009098 .manufacture_id = ST_ID,
9099 .model_id = ST_M50LPW116,
9100 .total_size = 2048,
9101 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009102 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009103 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009104 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00009105 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009106 .block_erasers =
9107 {
9108 {
9109 .eraseblocks = {
9110 {4 * 1024, 16},
9111 {64 * 1024, 30},
9112 {32 * 1024, 1},
9113 {8 * 1024, 2},
9114 {16 * 1024, 1},
9115 },
Sean Nelson28accc22010-03-19 18:47:06 +00009116 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009117 }
9118 },
Sean Nelson28accc22010-03-19 18:47:06 +00009119 .unlock = unlock_stm50flw0x0x,
9120 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009122 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009123 },
9124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009125 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009126 .vendor = "SyncMOS/MoselVitelic",
9127 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009128 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009129 .manufacture_id = SYNCMOS_MVC_ID,
9130 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009131 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009132 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00009133 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009134 .tested = TEST_UNTESTED,
9135 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009136 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009137 .block_erasers =
9138 {
9139 {
9140 .eraseblocks = { {512, 256} },
9141 .block_erase = erase_sector_jedec,
9142 }, {
9143 .eraseblocks = { {128 * 1024, 1} },
9144 .block_erase = erase_chip_block_jedec,
9145 },
9146 },
Sean Nelson35727f72010-01-28 23:55:12 +00009147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009149 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009150 },
9151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009152 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009153 .vendor = "SyncMOS/MoselVitelic",
9154 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009155 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009156 .manufacture_id = SYNCMOS_MVC_ID,
9157 .model_id = SM_MVC_29C51001T,
9158 .total_size = 128,
9159 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00009160 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009161 .tested = TEST_UNTESTED,
9162 .probe = probe_jedec,
9163 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9164 .block_erasers =
9165 {
9166 {
9167 .eraseblocks = { {512, 256} },
9168 .block_erase = erase_sector_jedec,
9169 }, {
9170 .eraseblocks = { {128 * 1024, 1} },
9171 .block_erase = erase_chip_block_jedec,
9172 },
9173 },
9174 .write = write_jedec_1,
9175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009176 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009177 },
9178
9179 {
9180 .vendor = "SyncMOS/MoselVitelic",
9181 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009182 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009183 .manufacture_id = SYNCMOS_MVC_ID,
9184 .model_id = SM_MVC_29C51002B,
9185 .total_size = 256,
9186 .page_size = 512,
9187 .feature_bits = FEATURE_EITHER_RESET,
9188 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009189 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009190 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009191 .block_erasers =
9192 {
9193 {
9194 .eraseblocks = { {512, 512} },
9195 .block_erase = erase_sector_jedec,
9196 }, {
9197 .eraseblocks = { {256 * 1024, 1} },
9198 .block_erase = erase_chip_block_jedec,
9199 },
9200 },
Sean Nelson35727f72010-01-28 23:55:12 +00009201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009202 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009203 },
9204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009205 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009206 .vendor = "SyncMOS/MoselVitelic",
9207 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009208 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009209 .manufacture_id = SYNCMOS_MVC_ID,
9210 .model_id = SM_MVC_29C51002T,
9211 .total_size = 256,
9212 .page_size = 512,
9213 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009214 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009215 .probe = probe_jedec,
9216 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9217 .block_erasers =
9218 {
9219 {
9220 .eraseblocks = { {512, 512} },
9221 .block_erase = erase_sector_jedec,
9222 }, {
9223 .eraseblocks = { {256 * 1024, 1} },
9224 .block_erase = erase_chip_block_jedec,
9225 },
9226 },
9227 .write = write_jedec_1,
9228 .read = read_memmapped,
9229 },
9230
9231 {
9232 .vendor = "SyncMOS/MoselVitelic",
9233 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009234 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009235 .manufacture_id = SYNCMOS_MVC_ID,
9236 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009237 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009238 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009239 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009240 .tested = TEST_UNTESTED,
9241 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009242 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009243 .block_erasers =
9244 {
9245 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009246 .eraseblocks = { {1024, 512} },
9247 .block_erase = erase_sector_jedec,
9248 }, {
9249 .eraseblocks = { {512 * 1024, 1} },
9250 .block_erase = erase_chip_block_jedec,
9251 },
9252 },
9253 .write = write_jedec_1,
9254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009255 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009256 },
9257
9258 {
9259 .vendor = "SyncMOS/MoselVitelic",
9260 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009261 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009262 .manufacture_id = SYNCMOS_MVC_ID,
9263 .model_id = SM_MVC_29C51004T,
9264 .total_size = 512,
9265 .page_size = 1024,
9266 .feature_bits = FEATURE_EITHER_RESET,
9267 .tested = TEST_UNTESTED,
9268 .probe = probe_jedec,
9269 .probe_timing = TIMING_ZERO,
9270 .block_erasers =
9271 {
9272 {
9273 .eraseblocks = { {1024, 512} },
9274 .block_erase = erase_sector_jedec,
9275 }, {
9276 .eraseblocks = { {512 * 1024, 1} },
9277 .block_erase = erase_chip_block_jedec,
9278 },
9279 },
9280 .write = write_jedec_1,
9281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009282 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009283 },
9284
9285 {
9286 .vendor = "SyncMOS/MoselVitelic",
9287 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009288 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009289 .manufacture_id = SYNCMOS_MVC_ID,
9290 .model_id = SM_MVC_29C31004B,
9291 .total_size = 512,
9292 .page_size = 1024,
9293 .feature_bits = FEATURE_EITHER_RESET,
9294 .tested = TEST_UNTESTED,
9295 .probe = probe_jedec,
9296 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9297 .block_erasers =
9298 {
9299 {
9300 .eraseblocks = { {1024, 512} },
9301 .block_erase = erase_sector_jedec,
9302 }, {
9303 .eraseblocks = { {512 * 1024, 1} },
9304 .block_erase = erase_chip_block_jedec,
9305 },
9306 },
9307 .write = write_jedec_1,
9308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009309 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009310 },
9311
9312 {
9313 .vendor = "SyncMOS/MoselVitelic",
9314 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009315 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009316 .manufacture_id = SYNCMOS_MVC_ID,
9317 .model_id = SM_MVC_29C31004T,
9318 .total_size = 512,
9319 .page_size = 1024,
9320 .feature_bits = FEATURE_EITHER_RESET,
9321 .tested = TEST_UNTESTED,
9322 .probe = probe_jedec,
9323 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9324 .block_erasers =
9325 {
9326 {
9327 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00009328 .block_erase = erase_sector_jedec,
9329 }, {
9330 .eraseblocks = { {512 * 1024, 1} },
9331 .block_erase = erase_chip_block_jedec,
9332 },
9333 },
Sean Nelson35727f72010-01-28 23:55:12 +00009334 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009336 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009337 },
9338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009339 {
Uwe Hermanna106d152009-05-27 23:17:40 +00009340 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009341 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009342 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009343 .manufacture_id = TI_OLD_ID,
9344 .model_id = TI_TMS29F002RB,
9345 .total_size = 256,
9346 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00009347 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009348 .tested = TEST_UNTESTED,
9349 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009350 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009351 .block_erasers =
9352 {
9353 {
9354 .eraseblocks = {
9355 {16 * 1024, 1},
9356 {8 * 1024, 2},
9357 {32 * 1024, 1},
9358 {64 * 1024, 3},
9359 },
9360 .block_erase = erase_sector_jedec,
9361 }, {
9362 .eraseblocks = { {256 * 1024, 1} },
9363 .block_erase = erase_chip_block_jedec,
9364 },
9365 },
Sean Nelson35727f72010-01-28 23:55:12 +00009366 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009368 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009369 },
9370
9371 {
Uwe Hermanna106d152009-05-27 23:17:40 +00009372 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009373 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009374 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009375 .manufacture_id = TI_OLD_ID,
9376 .model_id = TI_TMS29F002RT,
9377 .total_size = 256,
9378 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00009379 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009380 .tested = TEST_UNTESTED,
9381 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009382 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009383 .block_erasers =
9384 {
9385 {
9386 .eraseblocks = {
9387 {64 * 1024, 3},
9388 {32 * 1024, 1},
9389 {8 * 1024, 2},
9390 {16 * 1024, 1},
9391 },
9392 .block_erase = erase_sector_jedec,
9393 }, {
9394 .eraseblocks = { {256 * 1024, 1} },
9395 .block_erase = erase_chip_block_jedec,
9396 },
9397 },
Sean Nelson35727f72010-01-28 23:55:12 +00009398 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009399 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009400 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009401 },
9402
9403 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009404 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00009405 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009406 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009407 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009408 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009409 .total_size = 1024,
9410 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009411 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9412 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009413 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009414 .probe = probe_spi_rdid,
9415 .probe_timing = TIMING_ZERO,
9416 .block_erasers =
9417 {
9418 {
9419 .eraseblocks = { {4 * 1024, 256} },
9420 .block_erase = spi_block_erase_20,
9421 }, {
9422 .eraseblocks = { {32 * 1024, 32} },
9423 .block_erase = spi_block_erase_52,
9424 }, {
9425 .eraseblocks = { {64 * 1024, 16} },
9426 .block_erase = spi_block_erase_d8,
9427 }, {
9428 .eraseblocks = { {1024 * 1024, 1} },
9429 .block_erase = spi_block_erase_60,
9430 }, {
9431 .eraseblocks = { {1024 * 1024, 1} },
9432 .block_erase = spi_block_erase_c7,
9433 }
9434 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009435 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009436 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009437 .write = spi_chip_write_256,
9438 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009439 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009440 },
9441
9442 {
9443 .vendor = "Winbond",
9444 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009445 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009446 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009447 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009448 .total_size = 2048,
9449 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009450 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00009452 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009453 .probe = probe_spi_rdid,
9454 .probe_timing = TIMING_ZERO,
9455 .block_erasers =
9456 {
9457 {
9458 .eraseblocks = { {4 * 1024, 512} },
9459 .block_erase = spi_block_erase_20,
9460 }, {
9461 .eraseblocks = { {32 * 1024, 64} },
9462 .block_erase = spi_block_erase_52,
9463 }, {
9464 .eraseblocks = { {64 * 1024, 32} },
9465 .block_erase = spi_block_erase_d8,
9466 }, {
9467 .eraseblocks = { {2 * 1024 * 1024, 1} },
9468 .block_erase = spi_block_erase_60,
9469 }, {
9470 .eraseblocks = { {2 * 1024 * 1024, 1} },
9471 .block_erase = spi_block_erase_c7,
9472 }
9473 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009474 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009475 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009476 .write = spi_chip_write_256,
9477 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009478 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009479 },
9480
9481 {
9482 .vendor = "Winbond",
9483 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009484 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009485 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009486 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009487 .total_size = 4096,
9488 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009489 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009491 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009492 .probe = probe_spi_rdid,
9493 .probe_timing = TIMING_ZERO,
9494 .block_erasers =
9495 {
9496 {
9497 .eraseblocks = { {4 * 1024, 1024} },
9498 .block_erase = spi_block_erase_20,
9499 }, {
9500 .eraseblocks = { {32 * 1024, 128} },
9501 .block_erase = spi_block_erase_52,
9502 }, {
9503 .eraseblocks = { {64 * 1024, 64} },
9504 .block_erase = spi_block_erase_d8,
9505 }, {
9506 .eraseblocks = { {4 * 1024 * 1024, 1} },
9507 .block_erase = spi_block_erase_60,
9508 }, {
9509 .eraseblocks = { {4 * 1024 * 1024, 1} },
9510 .block_erase = spi_block_erase_c7,
9511 }
9512 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009513 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009514 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009515 .write = spi_chip_write_256,
9516 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009517 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009518 },
9519
9520 {
9521 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00009522 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009523 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00009524 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009525 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00009526 .total_size = 8192,
9527 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009528 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009530 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00009531 .probe = probe_spi_rdid,
9532 .probe_timing = TIMING_ZERO,
9533 .block_erasers =
9534 {
9535 {
9536 .eraseblocks = { {4 * 1024, 2048} },
9537 .block_erase = spi_block_erase_20,
9538 }, {
9539 .eraseblocks = { {32 * 1024, 256} },
9540 .block_erase = spi_block_erase_52,
9541 }, {
9542 .eraseblocks = { {64 * 1024, 128} },
9543 .block_erase = spi_block_erase_d8,
9544 }, {
9545 .eraseblocks = { {8 * 1024 * 1024, 1} },
9546 .block_erase = spi_block_erase_60,
9547 }, {
9548 .eraseblocks = { {8 * 1024 * 1024, 1} },
9549 .block_erase = spi_block_erase_c7,
9550 }
9551 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009552 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009553 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00009554 .write = spi_chip_write_256,
9555 .read = spi_chip_read,
9556 },
9557
9558 {
9559 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00009560 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009561 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009562 .manufacture_id = WINBOND_NEX_ID,
9563 .model_id = WINBOND_NEX_W25Q128,
9564 .total_size = 16384,
9565 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009566 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009568 .tested = TEST_OK_PROBE,
9569 .probe = probe_spi_rdid,
9570 .probe_timing = TIMING_ZERO,
9571 .block_erasers =
9572 {
9573 {
9574 .eraseblocks = { {4 * 1024, 4096} },
9575 .block_erase = spi_block_erase_20,
9576 }, {
9577 .eraseblocks = { {32 * 1024, 512} },
9578 .block_erase = spi_block_erase_52,
9579 }, {
9580 .eraseblocks = { {64 * 1024, 256} },
9581 .block_erase = spi_block_erase_d8,
9582 }, {
9583 .eraseblocks = { {16 * 1024 * 1024, 1} },
9584 .block_erase = spi_block_erase_60,
9585 }, {
9586 .eraseblocks = { {16 * 1024 * 1024, 1} },
9587 .block_erase = spi_block_erase_c7,
9588 }
9589 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009590 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +00009591 .unlock = spi_disable_blockprotect,
9592 .write = spi_chip_write_256,
9593 .read = spi_chip_read,
9594 },
9595
9596 {
9597 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009598 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009599 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009600 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009601 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009602 .total_size = 128,
9603 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009604 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009605 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009606 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009607 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009608 .block_erasers =
9609 {
9610 {
9611 .eraseblocks = { {4 * 1024, 32} },
9612 .block_erase = spi_block_erase_20,
9613 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009614 .eraseblocks = { {64 * 1024, 2} },
9615 .block_erase = spi_block_erase_d8,
9616 }, {
9617 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009618 .block_erase = spi_block_erase_c7,
9619 }
9620 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009621 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009622 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009623 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009624 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009625 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009626 },
9627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009628 {
9629 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009630 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009631 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009632 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009633 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009634 .total_size = 256,
9635 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009636 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009637 .tested = TEST_UNTESTED,
9638 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009639 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009640 .block_erasers =
9641 {
9642 {
9643 .eraseblocks = { {4 * 1024, 64} },
9644 .block_erase = spi_block_erase_20,
9645 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009646 .eraseblocks = { {64 * 1024, 4} },
9647 .block_erase = spi_block_erase_d8,
9648 }, {
9649 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009650 .block_erase = spi_block_erase_c7,
9651 }
9652 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009653 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009654 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009655 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009657 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009658 },
9659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009660 {
9661 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009662 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009663 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009664 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009665 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009666 .total_size = 512,
9667 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009668 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00009669 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009670 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009671 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009672 .block_erasers =
9673 {
9674 {
9675 .eraseblocks = { {4 * 1024, 128} },
9676 .block_erase = spi_block_erase_20,
9677 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009678 .eraseblocks = { {64 * 1024, 8} },
9679 .block_erase = spi_block_erase_d8,
9680 }, {
9681 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009682 .block_erase = spi_block_erase_c7,
9683 }
9684 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009686 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009687 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009688 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009689 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009690 },
9691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009692 {
9693 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009694 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009695 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009696 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009697 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009698 .total_size = 1024,
9699 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009700 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00009701 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009702 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009703 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009704 .block_erasers =
9705 {
9706 {
9707 .eraseblocks = { {4 * 1024, 256} },
9708 .block_erase = spi_block_erase_20,
9709 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009710 .eraseblocks = { {64 * 1024, 16} },
9711 .block_erase = spi_block_erase_d8,
9712 }, {
9713 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009714 .block_erase = spi_block_erase_c7,
9715 }
9716 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009717 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009719 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009721 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009722 },
9723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009724 {
9725 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009726 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009727 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00009728 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009729 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00009730 .total_size = 2048,
9731 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009732 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00009733 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00009734 .probe = probe_spi_rdid,
9735 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009736 .block_erasers =
9737 {
9738 {
9739 .eraseblocks = { {4 * 1024, 512} },
9740 .block_erase = spi_block_erase_20,
9741 }, {
9742 .eraseblocks = { {32 * 1024, 64} },
9743 .block_erase = spi_block_erase_52,
9744 }, {
9745 .eraseblocks = { {64 * 1024, 32} },
9746 .block_erase = spi_block_erase_d8,
9747 }, {
9748 .eraseblocks = { {2 * 1024 * 1024, 1} },
9749 .block_erase = spi_block_erase_60,
9750 }, {
9751 .eraseblocks = { {2 * 1024 * 1024, 1} },
9752 .block_erase = spi_block_erase_c7,
9753 }
9754 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009755 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009756 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00009757 .write = spi_chip_write_256,
9758 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009759 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00009760 },
9761
9762 {
9763 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009764 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009765 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009766 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009767 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00009768 .total_size = 4096,
9769 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009770 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00009771 .tested = TEST_OK_PROBE,
9772 .probe = probe_spi_rdid,
9773 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009774 .block_erasers =
9775 {
9776 {
9777 .eraseblocks = { {4 * 1024, 1024} },
9778 .block_erase = spi_block_erase_20,
9779 }, {
9780 .eraseblocks = { {32 * 1024, 128} },
9781 .block_erase = spi_block_erase_52,
9782 }, {
9783 .eraseblocks = { {64 * 1024, 64} },
9784 .block_erase = spi_block_erase_d8,
9785 }, {
9786 .eraseblocks = { {4 * 1024 * 1024, 1} },
9787 .block_erase = spi_block_erase_60,
9788 }, {
9789 .eraseblocks = { {4 * 1024 * 1024, 1} },
9790 .block_erase = spi_block_erase_c7,
9791 }
9792 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009793 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009794 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009795 .write = spi_chip_write_256,
9796 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009797 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009798 },
9799
9800 {
9801 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009802 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009803 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009804 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009805 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00009806 .total_size = 8192,
9807 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009808 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009809 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00009810 .probe = probe_spi_rdid,
9811 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009812 .block_erasers =
9813 {
9814 {
9815 .eraseblocks = { {4 * 1024, 2048} },
9816 .block_erase = spi_block_erase_20,
9817 }, {
9818 .eraseblocks = { {32 * 1024, 256} },
9819 .block_erase = spi_block_erase_52,
9820 }, {
9821 .eraseblocks = { {64 * 1024, 128} },
9822 .block_erase = spi_block_erase_d8,
9823 }, {
9824 .eraseblocks = { {8 * 1024 * 1024, 1} },
9825 .block_erase = spi_block_erase_60,
9826 }, {
9827 .eraseblocks = { {8 * 1024 * 1024, 1} },
9828 .block_erase = spi_block_erase_c7,
9829 }
9830 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009831 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009832 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009833 .write = spi_chip_write_256,
9834 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009835 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009836 },
9837
9838 {
9839 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009840 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009841 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009842 .manufacture_id = WINBOND_ID,
9843 .model_id = WINBOND_W29C010,
9844 .total_size = 128,
9845 .page_size = 128,
9846 .feature_bits = FEATURE_LONG_RESET,
9847 .tested = TEST_OK_PRE,
9848 .probe = probe_w29ee011,
9849 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
9850 .block_erasers =
9851 {
9852 {
9853 .eraseblocks = { {128 * 1024, 1} },
9854 .block_erase = erase_chip_block_jedec,
9855 }
9856 },
9857 .write = write_jedec,
9858 .read = read_memmapped,
9859 },
9860
9861 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9862 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009863 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009864 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009865 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009866 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009867 .total_size = 128,
9868 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009869 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009870 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009871 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009872 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009873 .block_erasers =
9874 {
9875 {
9876 .eraseblocks = { {128 * 1024, 1} },
9877 .block_erase = erase_chip_block_jedec,
9878 }
9879 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009880 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009881 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009882 },
9883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009884 {
9885 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009886 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009887 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009888 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009889 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009890 .total_size = 256,
9891 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009892 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009893 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009894 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009895 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009896 .block_erasers =
9897 {
9898 {
9899 .eraseblocks = { {256 * 1024, 1} },
9900 .block_erase = erase_chip_block_jedec,
9901 }
9902 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009903 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009904 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009905 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009906 },
9907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009908 {
9909 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009910 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009911 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009912 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009913 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009914 .total_size = 512,
9915 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009916 .feature_bits = FEATURE_LONG_RESET,
9917 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009918 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009919 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009920 .block_erasers =
9921 {
9922 {
9923 .eraseblocks = { {512 * 1024, 1} },
9924 .block_erase = erase_chip_block_jedec,
9925 }
9926 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009927 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009928 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009929 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009930 },
9931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009932 {
9933 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +00009934 .name = "W39F010",
9935 .bustype = BUS_PARALLEL,
9936 .manufacture_id = WINBOND_ID,
9937 .model_id = WINBOND_W39F010,
9938 .total_size = 128,
9939 .page_size = 4 * 1024,
9940 .feature_bits = FEATURE_EITHER_RESET,
9941 .tested = TEST_OK_PREW,
9942 .probe = probe_jedec,
9943 .probe_timing = 10,
9944 .block_erasers =
9945 {
9946 {
9947 .eraseblocks = { {4 * 1024, 32} },
9948 .block_erase = erase_block_jedec,
9949 }, {
9950 .eraseblocks = { {128 * 1024, 1} },
9951 .block_erase = erase_chip_block_jedec,
9952 }
9953 },
9954 .printlock = printlock_w39f010,
9955 .write = write_jedec_1,
9956 .read = read_memmapped,
9957 .voltage = {4500, 5500},
9958 },
9959
9960 {
9961 .vendor = "Winbond",
9962 .name = "W39L010",
9963 .bustype = BUS_PARALLEL,
9964 .manufacture_id = WINBOND_ID,
9965 .model_id = WINBOND_W39L010,
9966 .total_size = 128,
9967 .page_size = 4 * 1024,
9968 .feature_bits = FEATURE_EITHER_RESET,
9969 .tested = TEST_UNTESTED,
9970 .probe = probe_jedec,
9971 .probe_timing = 10,
9972 .block_erasers =
9973 {
9974 {
9975 .eraseblocks = { {4 * 1024, 32} },
9976 .block_erase = erase_block_jedec,
9977 }, {
9978 .eraseblocks = { {128 * 1024, 1} },
9979 .block_erase = erase_chip_block_jedec,
9980 }
9981 },
9982 .printlock = printlock_w39l010,
9983 .write = write_jedec_1,
9984 .read = read_memmapped,
9985 .voltage = {3000, 3600},
9986 },
9987
9988 {
9989 .vendor = "Winbond",
9990 .name = "W39L020",
9991 .bustype = BUS_PARALLEL,
9992 .manufacture_id = WINBOND_ID,
9993 .model_id = WINBOND_W39L020,
9994 .total_size = 256,
9995 .page_size = 4 * 1024,
9996 .feature_bits = FEATURE_EITHER_RESET,
9997 .tested = TEST_UNTESTED,
9998 .probe = probe_jedec,
9999 .probe_timing = 10,
10000 .block_erasers =
10001 {
10002 {
10003 .eraseblocks = { {4 * 1024, 64} },
10004 .block_erase = erase_block_jedec,
10005 }, {
10006 .eraseblocks = { {64 * 1024, 4} },
10007 .block_erase = erase_sector_jedec,
10008 }, {
10009 .eraseblocks = { {256 * 1024, 1} },
10010 .block_erase = erase_chip_block_jedec,
10011 }
10012 },
10013 .printlock = printlock_w39l020,
10014 .write = write_jedec_1,
10015 .read = read_memmapped,
10016 .voltage = {3000, 3600},
10017 },
10018
10019 {
10020 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000010021 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010022 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000010023 .manufacture_id = WINBOND_ID,
10024 .model_id = WINBOND_W39L040,
10025 .total_size = 512,
10026 .page_size = 64 * 1024,
10027 .feature_bits = FEATURE_EITHER_RESET,
10028 .tested = TEST_OK_PR,
10029 .probe = probe_jedec,
10030 .probe_timing = 10,
10031 .block_erasers =
10032 {
10033 {
10034 .eraseblocks = { {4 * 1024, 128} },
10035 .block_erase = erase_block_jedec,
10036 }, {
10037 .eraseblocks = { {64 * 1024, 8} },
10038 .block_erase = erase_sector_jedec,
10039 }, {
10040 .eraseblocks = { {512 * 1024, 1} },
10041 .block_erase = erase_chip_block_jedec,
10042 }
10043 },
10044 .printlock = printlock_w39l040,
10045 .write = write_jedec_1,
10046 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010047 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000010048 },
10049
10050 {
10051 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010052 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010053 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010054 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010055 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010056 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010057 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010058 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010059 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010060 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000010061 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010062 .block_erasers =
10063 {
10064 {
10065 .eraseblocks = { {64 * 1024, 8} },
10066 .block_erase = erase_sector_jedec,
10067 }, {
10068 .eraseblocks = { {512 * 1024, 1} },
10069 .block_erase = erase_chip_block_jedec,
10070 }
10071 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010072 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000010073 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010074 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010075 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010076 },
10077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010078 {
10079 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010080 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010081 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010082 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010083 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010084 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010085 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010086 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010087 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010088 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000010089 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010090 .block_erasers =
10091 {
10092 {
10093 .eraseblocks = { {64 * 1024, 8} },
10094 .block_erase = erase_sector_jedec,
10095 }, {
10096 .eraseblocks = { {512 * 1024, 1} },
10097 .block_erase = erase_chip_block_jedec,
10098 }
10099 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010100 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000010101 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010103 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010104 },
10105
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010106 {
10107 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010108 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010109 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010110 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010111 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010112 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010113 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010114 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010115 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010116 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010117 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010118 .block_erasers =
10119 {
10120 {
10121 .eraseblocks = { {64 * 1024, 8} },
10122 .block_erase = erase_sector_jedec,
10123 }, {
10124 .eraseblocks = { {512 * 1024, 1} },
10125 .block_erase = erase_chip_block_jedec,
10126 }
10127 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000010128 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000010129 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010131 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010132 },
10133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010134 {
10135 .vendor = "Winbond",
10136 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010137 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010138 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010139 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010140 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010141 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000010142 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010143 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010144 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010145 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010146 .block_erasers =
10147 {
10148 {
10149 .eraseblocks = { {4 * 1024, 128} },
10150 .block_erase = erase_block_jedec,
10151 }, {
10152 .eraseblocks = { {64 * 1024, 8} },
10153 .block_erase = erase_sector_jedec,
10154 }, {
10155 .eraseblocks = { {512 * 1024, 1} },
10156 .block_erase = erase_chip_block_jedec,
10157 }
10158 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010159 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000010160 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000010161 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010163 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010164 },
10165
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010166 {
10167 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010168 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010169 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010170 .manufacture_id = WINBOND_ID,
10171 .model_id = WINBOND_W39V040B,
10172 .total_size = 512,
10173 .page_size = 64 * 1024,
10174 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010175 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010176 .probe = probe_jedec,
10177 .probe_timing = 10,
10178 .block_erasers =
10179 {
10180 {
10181 .eraseblocks = { {64 * 1024, 8} },
10182 .block_erase = erase_sector_jedec,
10183 }, {
10184 .eraseblocks = { {512 * 1024, 1} },
10185 .block_erase = erase_chip_block_jedec,
10186 }
10187 },
10188 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000010189 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010190 .write = write_jedec_1,
10191 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010192 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010193 },
10194
10195 {
10196 .vendor = "Winbond",
10197 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010198 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010199 .manufacture_id = WINBOND_ID,
10200 .model_id = WINBOND_W39V040C,
10201 .total_size = 512,
10202 .page_size = 64 * 1024,
10203 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010204 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010205 .probe = probe_jedec,
10206 .probe_timing = 10,
10207 .block_erasers =
10208 {
10209 {
10210 .eraseblocks = { {64 * 1024, 8} },
10211 .block_erase = erase_sector_jedec,
10212 }, {
10213 .eraseblocks = { {512 * 1024, 1} },
10214 .block_erase = erase_chip_block_jedec,
10215 }
10216 },
10217 .printlock = printlock_w39v040fc,
10218 .write = write_jedec_1,
10219 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010220 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010221 },
10222
10223 {
10224 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010225 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010226 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010227 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010228 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010229 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000010230 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010231 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000010232 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010233 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000010234 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010235 .block_erasers =
10236 {
10237 {
10238 .eraseblocks = { {64 * 1024, 16} },
10239 .block_erase = erase_sector_jedec,
10240 }, {
10241 .eraseblocks = { {1024 * 1024, 1} },
10242 .block_erase = erase_chip_block_jedec,
10243 }
10244 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010245 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000010246 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010248 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010249 },
10250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010251 {
10252 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000010253 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010255 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010256 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010257 .total_size = 256,
10258 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010259 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010260 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010261 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010262 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010263 .block_erasers =
10264 {
10265 {
10266 .eraseblocks = {
10267 {128 * 1024, 1},
10268 {96 * 1024, 1},
10269 {8 * 1024, 2},
10270 {16 * 1024, 1},
10271 },
10272 .block_erase = erase_sector_jedec,
10273 }, {
10274 .eraseblocks = { {256 * 1024, 1} },
10275 .block_erase = erase_chip_block_jedec,
10276 }
10277 },
Sean Nelson35727f72010-01-28 23:55:12 +000010278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010280 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010281 },
10282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010283 {
10284 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010285 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010286 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010287 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010288 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010289 .total_size = 256,
10290 .page_size = 128,
10291 .feature_bits = FEATURE_EITHER_RESET,
10292 .tested = TEST_OK_PROBE,
10293 .probe = probe_jedec,
10294 .probe_timing = 10,
10295 .block_erasers =
10296 {
10297 {
10298 .eraseblocks = { {256 * 1024, 1} },
10299 .block_erase = erase_chip_block_jedec,
10300 }
10301 },
10302 .write = write_jedec_1,
10303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010304 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010305 },
10306
10307 {
10308 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010309 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010310 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010311 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010312 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010313 .total_size = 256,
10314 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010315 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010316 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010317 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010318 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010319 .block_erasers =
10320 {
10321 {
10322 .eraseblocks = {
10323 {64 * 1024, 3},
10324 {32 * 1024, 1},
10325 {8 * 1024, 2},
10326 {16 * 1024, 1},
10327 },
10328 .block_erase = erase_sector_jedec,
10329 }, {
10330 .eraseblocks = { {256 * 1024, 1} },
10331 .block_erase = erase_chip_block_jedec,
10332 }
10333 },
Sean Nelson35727f72010-01-28 23:55:12 +000010334 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010336 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010337 },
10338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010339 {
10340 .vendor = "Winbond",
10341 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010342 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010343 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010344 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010345 .total_size = 256,
10346 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010347 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010348 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010349 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010350 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010351 .block_erasers =
10352 {
10353 {
10354 .eraseblocks = {
10355 {64 * 1024, 3},
10356 {32 * 1024, 1},
10357 {8 * 1024, 2},
10358 {16 * 1024, 1},
10359 },
10360 .block_erase = erase_sector_jedec,
10361 }, {
10362 .eraseblocks = { {256 * 1024, 1} },
10363 .block_erase = erase_chip_block_jedec,
10364 }
10365 },
Sean Nelson35727f72010-01-28 23:55:12 +000010366 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010368 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010369 },
10370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010371 {
10372 .vendor = "Winbond",
10373 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010374 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010375 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010376 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010377 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000010378 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010379 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010380 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010381 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010382 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010383 .block_erasers =
10384 {
10385 {
10386 .eraseblocks = { {64 * 1024, 16}, },
10387 .block_erase = erase_sector_jedec,
10388 }, {
10389 .eraseblocks = { {1024 * 1024, 1} },
10390 .block_erase = erase_chip_block_jedec,
10391 }
10392 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010393 .printlock = printlock_w39v080fa,
10394 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000010395 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010396 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010397 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010398 },
10399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010400 {
10401 .vendor = "Winbond",
10402 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010403 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010404 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010405 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010406 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010407 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010408 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010409 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010410 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010411 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010412 .block_erasers =
10413 {
10414 {
10415 .eraseblocks = { {64 * 1024, 8}, },
10416 .block_erase = erase_sector_jedec,
10417 }, {
10418 .eraseblocks = { {512 * 1024, 1} },
10419 .block_erase = erase_chip_block_jedec,
10420 }
10421 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010422 .printlock = printlock_w39v080fa_dual,
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 Zakulec7d257b42011-07-19 08:50:18 +000010425 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010426 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010427
10428 {
10429 .vendor = "Unknown",
10430 .name = "SFDP-capable chip",
10431 .bustype = BUS_SPI,
10432 .manufacture_id = GENERIC_MANUF_ID,
10433 .model_id = SFDP_DEVICE_ID,
10434 /* We present our own "report this" text hence we do not
10435 * want the default "This flash part has status UNTESTED..."
10436 * text to be printed. */
10437 .tested = TEST_OK_PREW,
10438 .probe = probe_spi_sfdp,
10439 .unlock = spi_disable_blockprotect, /* is this safe? */
10440 .read = spi_chip_read,
10441 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000010442 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010443 /* Everything below will be set by the probing function. */
10444 .write = NULL,
10445 .total_size = 0,
10446 .page_size = 0,
10447 .feature_bits = 0,
10448 .block_erasers = {},
10449 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010451 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000010452 .vendor = "Programmer",
10453 .name = "Opaque flash chip",
10454 .bustype = BUS_PROG,
10455 .manufacture_id = PROGMANUF_ID,
10456 .model_id = PROGDEV_ID,
10457 .total_size = 0,
10458 .page_size = 256,
10459 /* probe is assumed to work, rest will be filled in by probe */
10460 .tested = TEST_OK_PROBE,
10461 .probe = probe_opaque,
10462 /* eraseblock sizes will be set by the probing function */
10463 .block_erasers =
10464 {
10465 {
10466 .block_erase = erase_opaque,
10467 }
10468 },
10469 .write = write_opaque,
10470 .read = read_opaque,
10471 },
10472
10473 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010474 .vendor = "AMIC",
10475 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010476 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010477 .manufacture_id = AMIC_ID,
10478 .model_id = GENERIC_DEVICE_ID,
10479 .total_size = 0,
10480 .page_size = 256,
10481 .tested = TEST_BAD_PREW,
10482 .probe = probe_spi_rdid4,
10483 .probe_timing = TIMING_ZERO,
10484 .write = NULL,
10485 .read = NULL,
10486 },
10487
10488 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010489 .vendor = "Atmel",
10490 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010491 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010492 .manufacture_id = ATMEL_ID,
10493 .model_id = GENERIC_DEVICE_ID,
10494 .total_size = 0,
10495 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010496 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010497 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010498 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010499 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010500 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010501 },
10502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010503 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000010504 .vendor = "Eon",
10505 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010506 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010507 .manufacture_id = EON_ID_NOPREFIX,
10508 .model_id = GENERIC_DEVICE_ID,
10509 .total_size = 0,
10510 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010511 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010512 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010513 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010514 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010515 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010516 },
10517
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010518 {
10519 .vendor = "Macronix",
10520 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010521 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010522 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010523 .model_id = GENERIC_DEVICE_ID,
10524 .total_size = 0,
10525 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010526 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010528 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010529 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010530 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010531 },
10532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010533 {
10534 .vendor = "PMC",
10535 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010536 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010537 .manufacture_id = PMC_ID,
10538 .model_id = GENERIC_DEVICE_ID,
10539 .total_size = 0,
10540 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010541 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010542 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010543 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010544 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010545 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010546 },
10547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010548 {
10549 .vendor = "SST",
10550 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010551 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010552 .manufacture_id = SST_ID,
10553 .model_id = GENERIC_DEVICE_ID,
10554 .total_size = 0,
10555 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010556 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010557 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010558 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010559 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010560 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010561 },
10562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010563 {
10564 .vendor = "ST",
10565 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010567 .manufacture_id = ST_ID,
10568 .model_id = GENERIC_DEVICE_ID,
10569 .total_size = 0,
10570 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010571 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010573 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010574 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010575 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010576 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000010577
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010578 {
Sean Nelson118e1d62009-11-24 02:08:11 +000010579 .vendor = "Sanyo",
10580 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010581 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000010582 .manufacture_id = SANYO_ID,
10583 .model_id = GENERIC_DEVICE_ID,
10584 .total_size = 0,
10585 .page_size = 256,
10586 .tested = TEST_BAD_PREW,
10587 .probe = probe_spi_rdid,
10588 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000010589 .write = NULL,
10590 .read = NULL,
10591 },
10592
10593 {
Stefan Taunereb582572012-09-21 12:52:50 +000010594 .vendor = "Winbond",
10595 .name = "unknown Winbond (ex Nexcom) SPI chip",
10596 .bustype = BUS_SPI,
10597 .manufacture_id = WINBOND_NEX_ID,
10598 .model_id = GENERIC_DEVICE_ID,
10599 .total_size = 0,
10600 .page_size = 256,
10601 .tested = TEST_BAD_PREW,
10602 .probe = probe_spi_rdid,
10603 .probe_timing = TIMING_ZERO,
10604 .write = NULL,
10605 .read = NULL,
10606 },
10607
10608 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010609 .vendor = "Generic",
10610 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010611 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010612 .manufacture_id = GENERIC_MANUF_ID,
10613 .model_id = GENERIC_DEVICE_ID,
10614 .total_size = 0,
10615 .page_size = 256,
10616 .tested = TEST_BAD_PREW,
10617 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010618 .write = NULL,
10619 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000010620
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010621 {
10622 .vendor = "Generic",
10623 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010624 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010625 .manufacture_id = GENERIC_MANUF_ID,
10626 .model_id = GENERIC_DEVICE_ID,
10627 .total_size = 0,
10628 .page_size = 256,
10629 .tested = TEST_BAD_PREW,
10630 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010631 .write = NULL,
10632 },
10633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010634 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000010635};