blob: 9e1f9a595120545fc9d350538c987e0ee1c78a55 [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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001356 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001394 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001432 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001433 .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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001470 .unlock = spi_disable_blockprotect_at2x_global_unprotect_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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001508 .unlock = spi_disable_blockprotect_at2x_global_unprotect_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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001546 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001585 .unlock = spi_disable_blockprotect_at2x_global_unprotect_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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001623 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001624 .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,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001662 .unlock = spi_disable_blockprotect_at2x_global_unprotect_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,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001852 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1853 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001854 .write = spi_chip_write_256,
1855 .read = spi_chip_read,
1856 .voltage = {2700, 3600},
1857 },
1858
1859 {
1860 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001862 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001863 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001864 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 .total_size = 128,
1866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001867 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001868 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001869 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001870 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001871 .block_erasers =
1872 {
1873 {
1874 .eraseblocks = { {4 * 1024, 32} },
1875 .block_erase = spi_block_erase_20,
1876 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001877 .eraseblocks = { {4 * 1024, 32} },
1878 .block_erase = spi_block_erase_d7,
1879 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001880 .eraseblocks = { {32 * 1024, 4} },
1881 .block_erase = spi_block_erase_52,
1882 }, {
1883 .eraseblocks = { {32 * 1024, 4} },
1884 .block_erase = spi_block_erase_d8,
1885 }, {
1886 .eraseblocks = { {128 * 1024, 1} },
1887 .block_erase = spi_block_erase_60,
1888 }, {
1889 .eraseblocks = { {128 * 1024, 1} },
1890 .block_erase = spi_block_erase_c7,
1891 }
1892 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001893 .printlock = spi_prettyprint_status_register_at25fs010,
1894 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001895 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001898 },
1899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001900 {
1901 .vendor = "Atmel",
1902 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001903 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001905 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001906 .total_size = 512,
1907 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001908 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 .tested = TEST_UNTESTED,
1910 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001911 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001912 .block_erasers =
1913 {
1914 {
1915 .eraseblocks = { {4 * 1024, 128} },
1916 .block_erase = spi_block_erase_20,
1917 }, {
1918 .eraseblocks = { {64 * 1024, 8} },
1919 .block_erase = spi_block_erase_52,
1920 }, {
1921 .eraseblocks = { {64 * 1024, 8} },
1922 .block_erase = spi_block_erase_d8,
1923 }, {
1924 .eraseblocks = { {512 * 1024, 1} },
1925 .block_erase = spi_block_erase_60,
1926 }, {
1927 .eraseblocks = { {512 * 1024, 1} },
1928 .block_erase = spi_block_erase_c7,
1929 }
1930 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001931 .printlock = spi_prettyprint_status_register_at25fs040,
1932 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001933 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001935 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001936 },
1937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001938 {
1939 .vendor = "Atmel",
1940 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001941 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001943 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .total_size = 512,
1945 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001946 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001947 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001949 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001950 .block_erasers =
1951 {
1952 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00001953 .eraseblocks = { {256, 2048} },
1954 .block_erase = spi_block_erase_81,
1955 }, {
1956 .eraseblocks = { {2 * 1024, 256} },
1957 .block_erase = spi_block_erase_50,
1958 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001959 .eraseblocks = { {4 * 1024, 128} },
1960 .block_erase = spi_block_erase_20,
1961 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001962 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00001963 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001964 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001965 .write = spi_chip_write_1,
1966 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00001967 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001968 },
1969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001970 {
1971 .vendor = "Atmel",
1972 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001973 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001974 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001975 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001976 .total_size = 1024,
1977 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001978 .feature_bits = FEATURE_WRSR_WREN,
1979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001981 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001982 .block_erasers =
1983 {
1984 {
1985 .eraseblocks = { {4 * 1024, 256} },
1986 .block_erase = spi_block_erase_20,
1987 }, {
1988 .eraseblocks = { {32 * 1024, 32} },
1989 .block_erase = spi_block_erase_52,
1990 }, {
1991 .eraseblocks = { {64 * 1024, 16} },
1992 .block_erase = spi_block_erase_d8,
1993 }, {
1994 .eraseblocks = { {1024 * 1024, 1} },
1995 .block_erase = spi_block_erase_60,
1996 }, {
1997 .eraseblocks = { {1024 * 1024, 1} },
1998 .block_erase = spi_block_erase_c7,
1999 }
2000 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002001 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002002 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002003 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002005 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002006 },
2007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002008 {
2009 .vendor = "Atmel",
2010 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002011 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002012 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002013 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002014 .total_size = 2048,
2015 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002016 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002017 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002018 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002019 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {4 * 1024, 512} },
2024 .block_erase = spi_block_erase_20,
2025 }, {
2026 .eraseblocks = { {32 * 1024, 64} },
2027 .block_erase = spi_block_erase_52,
2028 }, {
2029 .eraseblocks = { {64 * 1024, 32} },
2030 .block_erase = spi_block_erase_d8,
2031 }, {
2032 .eraseblocks = { {2 * 1024 * 1024, 1} },
2033 .block_erase = spi_block_erase_60,
2034 }, {
2035 .eraseblocks = { {2 * 1024 * 1024, 1} },
2036 .block_erase = spi_block_erase_c7,
2037 }
2038 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002039 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002040 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002041 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002042 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002043 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002044 },
2045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 {
2047 .vendor = "Atmel",
2048 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002049 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002050 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002051 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002052 .total_size = 2048,
2053 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002054 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002055 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002056 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002057 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002058 .block_erasers =
2059 {
2060 {
2061 .eraseblocks = { {4 * 1024, 512} },
2062 .block_erase = spi_block_erase_20,
2063 }, {
2064 .eraseblocks = { {32 * 1024, 64} },
2065 .block_erase = spi_block_erase_52,
2066 }, {
2067 .eraseblocks = { {64 * 1024, 32} },
2068 .block_erase = spi_block_erase_d8,
2069 }, {
2070 .eraseblocks = { {2 * 1024 * 1024, 1} },
2071 .block_erase = spi_block_erase_60,
2072 }, {
2073 .eraseblocks = { {2 * 1024 * 1024, 1} },
2074 .block_erase = spi_block_erase_c7,
2075 }
2076 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002077 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002078 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002079 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002080 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002081 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002082 },
2083
2084 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 /*{
2086 .vendor = "Atmel",
2087 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002088 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002090 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002091 .total_size = 4096,
2092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002093 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002094 .tested = TEST_UNTESTED,
2095 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002096 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002097 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002098 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002099 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002100 .read = spi_chip_read,
2101 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 {
2104 .vendor = "Atmel",
2105 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002106 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002108 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .total_size = 512,
2110 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002111 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002112 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002114 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002115 .block_erasers =
2116 {
2117 {
2118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }, {
2121 .eraseblocks = { {32 * 1024, 16} },
2122 .block_erase = spi_block_erase_52,
2123 }, {
2124 .eraseblocks = { {64 * 1024, 8} },
2125 .block_erase = spi_block_erase_d8,
2126 }, {
2127 .eraseblocks = { {512 * 1024, 1} },
2128 .block_erase = spi_block_erase_60,
2129 }, {
2130 .eraseblocks = { {512 * 1024, 1} },
2131 .block_erase = spi_block_erase_c7,
2132 }
2133 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002134 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .write = NULL /* Incompatible Page write */,
2136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002138 },
2139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 {
2141 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002142 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002143 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002144 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002145 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002146 .total_size = 64,
2147 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002148 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002149 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002150 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002151 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002152 .block_erasers =
2153 {
2154 {
2155 .eraseblocks = { {64 * 1024, 1} },
2156 .block_erase = erase_chip_block_jedec,
2157 }
2158 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002159 .write = write_jedec,
2160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002161 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002162 },
2163
2164 {
2165 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002166 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002167 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002168 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002169 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002170 .total_size = 128,
2171 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002172 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002173 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002174 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002175 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002176 .block_erasers =
2177 {
2178 {
2179 .eraseblocks = { {128 * 1024, 1} },
2180 .block_erase = erase_chip_block_jedec,
2181 }
2182 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002183 .write = write_jedec, /* FIXME */
2184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002185 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002186 },
2187
2188 {
2189 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002191 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002192 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002193 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .total_size = 256,
2195 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002196 .feature_bits = FEATURE_LONG_RESET,
2197 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002199 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002200 .block_erasers =
2201 {
2202 {
2203 .eraseblocks = { {256 * 1024, 1} },
2204 .block_erase = erase_chip_block_jedec,
2205 }
2206 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002207 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002210 },
2211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002212 {
2213 .vendor = "Atmel",
2214 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002217 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 .total_size = 512,
2219 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002220 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 .tested = TEST_UNTESTED,
2222 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002223 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002224 .block_erasers =
2225 {
2226 {
2227 .eraseblocks = { {512 * 1024, 1} },
2228 .block_erase = erase_chip_block_jedec,
2229 }
2230 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002231 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002233 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002234 },
2235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002236 {
2237 .vendor = "Atmel",
2238 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002239 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002240 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002241 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002242 .total_size = 16896 /* No power of two sizes */,
2243 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002244 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002245 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002246 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002247 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .write = NULL /* Incompatible Page write */,
2249 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002250 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002251 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 {
2254 .vendor = "Atmel",
2255 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002256 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002257 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002258 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002259 .total_size = 128 /* Size can only be determined from status register */,
2260 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002261 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002262 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002263 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002264 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002265 .write = NULL,
2266 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002267 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002268 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002270 {
2271 .vendor = "Atmel",
2272 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002273 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002274 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002275 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002276 .total_size = 256 /* Size can only be determined from status register */,
2277 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002278 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002279 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002280 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002281 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 .write = NULL,
2283 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002284 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002285 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002287 {
2288 .vendor = "Atmel",
2289 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002290 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002291 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002292 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002293 .total_size = 512 /* Size can only be determined from status register */,
2294 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002295 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002296 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002298 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .write = NULL,
2300 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002301 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002302 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002304 {
2305 .vendor = "Atmel",
2306 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002307 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002308 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002309 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002310 .total_size = 1024 /* Size can only be determined from status register */,
2311 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002312 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002313 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002314 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002315 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002316 .write = NULL,
2317 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002318 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002319 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 {
2322 .vendor = "Atmel",
2323 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002324 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002325 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002326 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002327 .total_size = 2048 /* Size can only be determined from status register */,
2328 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002329 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002330 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002331 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002332 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002333 .write = NULL,
2334 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002335 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002336 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002337
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 {
2339 .vendor = "Atmel",
2340 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002341 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002342 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002343 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002344 .total_size = 4224 /* No power of two sizes */,
2345 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002346 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002347 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002349 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002350 .write = NULL,
2351 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002352 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002353 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002355 {
2356 .vendor = "Atmel",
2357 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002358 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002359 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002360 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002361 .total_size = 4096 /* Size can only be determined from status register */,
2362 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002363 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002364 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002365 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002366 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002367 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002368 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002369 .write = NULL,
2370 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002371 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002372 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002374 {
2375 .vendor = "Atmel",
2376 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002377 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002378 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002379 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002380 .total_size = 8192 /* Size can only be determined from status register */,
2381 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002382 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002383 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002385 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002386 .write = NULL,
2387 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002388 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002389 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002391 {
2392 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002393 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002394 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002395 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002396 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002397 .total_size = 64,
2398 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002399 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002400 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002401 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002402 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002403 .block_erasers =
2404 {
2405 {
2406 .eraseblocks = { {64 * 1024, 1} },
2407 .block_erase = erase_chip_block_jedec,
2408 }
2409 },
Sean Nelson35727f72010-01-28 23:55:12 +00002410 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002412 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002413 },
2414
2415 {
2416 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002417 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002418 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002420 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002421 .total_size = 256,
2422 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002423 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002424 .tested = TEST_UNTESTED,
2425 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002426 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002427 .block_erasers =
2428 {
2429 {
2430 .eraseblocks = {
2431 {16 * 1024, 1},
2432 {8 * 1024, 2},
2433 {96 * 1024, 1},
2434 {128 * 1024, 1},
2435 },
2436 .block_erase = erase_sector_jedec,
2437 }, {
2438 .eraseblocks = { {256 * 1024, 1} },
2439 .block_erase = erase_chip_block_jedec,
2440 }
2441 },
Sean Nelson35727f72010-01-28 23:55:12 +00002442 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002444 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002445 },
2446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 {
2448 .vendor = "Atmel",
2449 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002450 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002452 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002453 .total_size = 256,
2454 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002455 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002456 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002457 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002458 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002459 .block_erasers =
2460 {
2461 {
2462 .eraseblocks = {
2463 {128 * 1024, 1},
2464 {96 * 1024, 1},
2465 {8 * 1024, 2},
2466 {16 * 1024, 1},
2467 },
2468 .block_erase = erase_sector_jedec,
2469 }, {
2470 .eraseblocks = { {256 * 1024, 1} },
2471 .block_erase = erase_chip_block_jedec,
2472 }
2473 },
Sean Nelson35727f72010-01-28 23:55:12 +00002474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002479 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002480 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002481 .name = "AT49(H)F010",
2482 .bustype = BUS_PARALLEL,
2483 .manufacture_id = ATMEL_ID,
2484 .model_id = ATMEL_AT49F010,
2485 .total_size = 128,
2486 .page_size = 0, /* unused */
2487 .feature_bits = FEATURE_EITHER_RESET,
2488 .tested = TEST_OK_PREW,
2489 .probe = probe_jedec,
2490 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {128 * 1024, 1} },
2495 .block_erase = erase_chip_block_jedec,
2496 }
2497 },
2498 .printlock = printlock_at49f,
2499 .write = write_jedec_1,
2500 .read = read_memmapped,
2501 .voltage = {4500, 5500},
2502 },
2503
2504 {
2505 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002506 .name = "AT49F020",
2507 .bustype = BUS_PARALLEL,
2508 .manufacture_id = ATMEL_ID,
2509 .model_id = ATMEL_AT49F020,
2510 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002511 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002512 .feature_bits = FEATURE_EITHER_RESET,
2513 .tested = TEST_OK_PRE,
2514 .probe = probe_jedec,
2515 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2516 .block_erasers =
2517 {
2518 {
2519 .eraseblocks = { {256 * 1024, 1} },
2520 .block_erase = erase_chip_block_jedec,
2521 }
2522 /* Chip features an optional permanent write protection
2523 * of the first 8 kB. The erase function is the same as
2524 * above, but 00000H to 01FFFH will not be erased.
2525 * FIXME: add another eraser when partial erasers are
2526 * supported.
2527 */
2528 },
2529 .printlock = printlock_at49f,
2530 .write = write_jedec_1,
2531 .read = read_memmapped,
2532 .voltage = {4500, 5500},
2533 },
2534
2535 {
2536 .vendor = "Atmel",
2537 .name = "AT49F040",
2538 .bustype = BUS_PARALLEL,
2539 .manufacture_id = ATMEL_ID,
2540 .model_id = ATMEL_AT49F040,
2541 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002542 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002543 .feature_bits = FEATURE_EITHER_RESET,
2544 .tested = TEST_UNTESTED,
2545 .probe = probe_jedec,
2546 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2547 .block_erasers =
2548 {
2549 {
2550 .eraseblocks = { {512 * 1024, 1} },
2551 .block_erase = erase_chip_block_jedec,
2552 }
2553 /* Chip features an optional permanent write protection
2554 * of the first 16 kB. The erase function is the same as
2555 * above, but 00000H to 03FFFH will not be erased.
2556 * FIXME: add another eraser when partial erasers are
2557 * supported.
2558 */
2559 },
2560 .printlock = printlock_at49f,
2561 .write = write_jedec_1,
2562 .read = read_memmapped,
2563 .voltage = {4500, 5500},
2564 },
2565
2566 {
2567 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002568 .name = "AT49F080",
2569 .bustype = BUS_PARALLEL,
2570 .manufacture_id = ATMEL_ID,
2571 .model_id = ATMEL_AT49F080,
2572 .total_size = 1024,
2573 .page_size = 0, /* unused */
2574 .feature_bits = FEATURE_EITHER_RESET,
2575 .tested = TEST_UNTESTED,
2576 .probe = probe_jedec,
2577 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2578 .block_erasers =
2579 {
2580 {
2581 .eraseblocks = { {1024 * 1024, 1} },
2582 .block_erase = erase_chip_block_jedec,
2583 }
2584 /* Chip features an optional permanent write protection
2585 * of the first 16 kB. The erase function is the same as
2586 * above, but 00000H to 03FFFH will not be erased.
2587 * FIXME: add another eraser when partial erasers are
2588 * supported.
2589 */
2590 },
2591 .printlock = printlock_at49f,
2592 .write = write_jedec_1,
2593 .read = read_memmapped,
2594 .voltage = {4500, 5500},
2595 },
2596
2597 {
2598 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2599 .vendor = "Atmel",
2600 .name = "AT49F080T",
2601 .bustype = BUS_PARALLEL,
2602 .manufacture_id = ATMEL_ID,
2603 .model_id = ATMEL_AT49F080T,
2604 .total_size = 1024,
2605 .page_size = 0, /* unused */
2606 .feature_bits = FEATURE_EITHER_RESET,
2607 .tested = TEST_UNTESTED,
2608 .probe = probe_jedec,
2609 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2610 .block_erasers =
2611 {
2612 {
2613 .eraseblocks = { {1024 * 1024, 1} },
2614 .block_erase = erase_chip_block_jedec,
2615 }
2616 /* Chip features an optional permanent write protection
2617 * of the first 16 kB. The erase function is the same as
2618 * above, but FC000H to FFFFFH will not be erased.
2619 * FIXME: add another eraser when partial erasers are
2620 * supported.
2621 */
2622 },
2623 .printlock = printlock_at49f,
2624 .write = write_jedec_1,
2625 .read = read_memmapped,
2626 .voltage = {4500, 5500},
2627 },
2628
2629 {
2630 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002631 .name = "AT49LH002",
2632 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2633 .manufacture_id = ATMEL_ID,
2634 .model_id = ATMEL_AT49LH002,
2635 .total_size = 256,
2636 .page_size = 0, /* unused */
2637 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2638 .tested = TEST_UNTESTED,
2639 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2640 .probe_timing = TIMING_FIXME,
2641 .block_erasers =
2642 {
2643 {
2644 .eraseblocks = {
2645 {64 * 1024, 3},
2646 {32 * 1024, 1},
2647 {8 * 1024, 2},
2648 {16 * 1024, 1},
2649 },
2650 .block_erase = erase_block_82802ab,
2651 }, {
2652 .eraseblocks = {
2653 {64 * 1024, 4},
2654 },
2655 .block_erase = NULL, /* TODO: Implement. */
2656 },
2657 },
2658 .printlock = NULL, /* TODO */
2659 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2660 .write = write_82802ab,
2661 .read = read_memmapped,
2662 .voltage = {3000, 3600},
2663 },
2664
2665 {
Andrew Morganca081462011-09-13 22:05:44 +00002666 .vendor = "Catalyst",
2667 .name = "CAT28F512",
2668 .bustype = BUS_PARALLEL,
2669 .manufacture_id = CATALYST_ID,
2670 .model_id = CATALYST_CAT28F512,
2671 .total_size = 64,
2672 .page_size = 0, /* unused */
2673 .feature_bits = 0,
2674 .tested = TEST_OK_PR,
2675 .probe = probe_jedec, /* FIXME! */
2676 .probe_timing = TIMING_ZERO,
2677 .block_erasers =
2678 {
2679 {
2680 .eraseblocks = { {64 * 1024, 1} },
2681 .block_erase = NULL, /* TODO */
2682 },
2683 },
2684 .write = NULL, /* TODO */
2685 .read = read_memmapped,
2686 .voltage = {4500, 5500},
2687 },
2688
2689 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002690 .vendor = "Bright",
2691 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002692 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002693 .manufacture_id = BRIGHT_ID,
2694 .model_id = BRIGHT_BM29F040,
2695 .total_size = 512,
2696 .page_size = 64 * 1024,
2697 .feature_bits = FEATURE_EITHER_RESET,
2698 .tested = TEST_OK_PR,
2699 .probe = probe_jedec,
2700 .probe_timing = TIMING_ZERO,
2701 .block_erasers =
2702 {
2703 {
2704 .eraseblocks = { {64 * 1024, 8} },
2705 .block_erase = erase_sector_jedec,
2706 }, {
2707 .eraseblocks = { {512 * 1024, 1} },
2708 .block_erase = erase_chip_block_jedec,
2709 },
2710 },
2711 .write = write_jedec_1,
2712 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002713 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002714 },
2715
2716 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002717 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002719 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002720 .manufacture_id = ESMT_ID,
2721 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002722 .total_size = 256,
2723 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002724 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002725 .tested = TEST_UNTESTED,
2726 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002728 .block_erasers =
2729 {
2730 {
2731 .eraseblocks = {
2732 {128 * 1024, 1},
2733 {96 * 1024, 1},
2734 {8 * 1024, 2},
2735 {16 * 1024, 1},
2736 },
2737 .block_erase = erase_sector_jedec,
2738 }, {
2739 .eraseblocks = { {256 * 1024, 1} },
2740 .block_erase = erase_chip_block_jedec,
2741 }
2742 },
Sean Nelson35727f72010-01-28 23:55:12 +00002743 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002745 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002746 },
2747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002748 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002749 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00002750 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002751 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002752 .manufacture_id = ESMT_ID,
2753 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002754 .total_size = 1024,
2755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002756 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002757 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002758 .probe = probe_spi_rdid,
2759 .probe_timing = TIMING_ZERO,
2760 .block_erasers =
2761 {
2762 {
2763 .eraseblocks = { {4 * 1024, 256} },
2764 .block_erase = spi_block_erase_20,
2765 }, {
2766 .eraseblocks = { {64 * 1024, 16} },
2767 .block_erase = spi_block_erase_d8,
2768 }, {
2769 .eraseblocks = { {1024 * 1024, 1} },
2770 .block_erase = spi_block_erase_60,
2771 }, {
2772 .eraseblocks = { {1024 * 1024, 1} },
2773 .block_erase = spi_block_erase_c7,
2774 }
2775 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002777 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002778 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002779 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002780 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002781 },
2782
2783 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002784 .vendor = "Eon",
2785 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002786 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002787 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002788 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002789 .total_size = 64,
2790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002791 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002792 .tested = TEST_UNTESTED,
2793 .probe = probe_spi_rdid,
2794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002795 .block_erasers =
2796 {
2797 {
2798 .eraseblocks = {
2799 {4 * 1024, 2},
2800 {8 * 1024, 1},
2801 {16 * 1024, 1},
2802 {32 * 1024, 1},
2803 },
2804 .block_erase = spi_block_erase_d8,
2805 }, {
2806 .eraseblocks = { {64 * 1024, 1} },
2807 .block_erase = spi_block_erase_c7,
2808 }
2809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002811 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002812 .write = spi_chip_write_256,
2813 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002814 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002815 },
2816
2817 {
2818 .vendor = "Eon",
2819 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002820 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002821 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002822 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002823 .total_size = 64,
2824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002825 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002826 .tested = TEST_UNTESTED,
2827 .probe = probe_spi_rdid,
2828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002829 .block_erasers =
2830 {
2831 {
2832 .eraseblocks = {
2833 {32 * 1024, 1},
2834 {16 * 1024, 1},
2835 {8 * 1024, 1},
2836 {4 * 1024, 2},
2837 },
2838 .block_erase = spi_block_erase_d8,
2839 }, {
2840 .eraseblocks = { {64 * 1024, 1} },
2841 .block_erase = spi_block_erase_c7,
2842 }
2843 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002846 .write = spi_chip_write_256,
2847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002848 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002849 },
2850
2851 {
2852 .vendor = "Eon",
2853 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002856 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002857 .total_size = 128,
2858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002859 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002860 .tested = TEST_UNTESTED,
2861 .probe = probe_spi_rdid,
2862 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002863 .block_erasers =
2864 {
2865 {
2866 .eraseblocks = {
2867 {4 * 1024, 2},
2868 {8 * 1024, 1},
2869 {16 * 1024, 1},
2870 {32 * 1024, 3},
2871 },
2872 .block_erase = spi_block_erase_d8,
2873 }, {
2874 .eraseblocks = { {128 * 1024, 1} },
2875 .block_erase = spi_block_erase_c7,
2876 }
2877 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002879 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002880 .write = spi_chip_write_256,
2881 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002882 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002883 },
2884
2885 {
2886 .vendor = "Eon",
2887 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002888 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002889 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002890 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002891 .total_size = 128,
2892 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002893 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002894 .tested = TEST_UNTESTED,
2895 .probe = probe_spi_rdid,
2896 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002897 .block_erasers =
2898 {
2899 {
2900 .eraseblocks = {
2901 {32 * 1024, 3},
2902 {16 * 1024, 1},
2903 {8 * 1024, 1},
2904 {4 * 1024, 2},
2905 },
2906 .block_erase = spi_block_erase_d8,
2907 }, {
2908 .eraseblocks = { {128 * 1024, 1} },
2909 .block_erase = spi_block_erase_c7,
2910 }
2911 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002912 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002913 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002914 .write = spi_chip_write_256,
2915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002916 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002917 },
2918
2919 {
2920 .vendor = "Eon",
2921 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002922 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002923 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002924 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002925 .total_size = 256,
2926 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002927 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002928 .tested = TEST_UNTESTED,
2929 .probe = probe_spi_rdid,
2930 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = {
2935 {4 * 1024, 2},
2936 {8 * 1024, 1},
2937 {16 * 1024, 1},
2938 {32 * 1024, 1},
2939 {64 * 1024, 3}
2940 },
2941 .block_erase = spi_block_erase_d8,
2942 }, {
2943 .eraseblocks = { {256 * 1024, 1} },
2944 .block_erase = spi_block_erase_c7,
2945 }
2946 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002947 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002948 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002949 .write = spi_chip_write_256,
2950 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002951 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002952 },
2953
2954 {
2955 .vendor = "Eon",
2956 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002957 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002958 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002959 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002960 .total_size = 256,
2961 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002962 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002963 .tested = TEST_UNTESTED,
2964 .probe = probe_spi_rdid,
2965 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002966 .block_erasers =
2967 {
2968 {
2969 .eraseblocks = {
2970 {64 * 1024, 3},
2971 {32 * 1024, 1},
2972 {16 * 1024, 1},
2973 {8 * 1024, 1},
2974 {4 * 1024, 2},
2975 },
2976 .block_erase = spi_block_erase_d8,
2977 }, {
2978 .eraseblocks = { {256 * 1024, 1} },
2979 .block_erase = spi_block_erase_c7,
2980 }
2981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002982 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002983 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002984 .write = spi_chip_write_256,
2985 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002986 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002987 },
2988
2989 {
2990 .vendor = "Eon",
2991 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002992 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002993 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002994 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002995 .total_size = 512,
2996 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002997 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002998 .tested = TEST_UNTESTED,
2999 .probe = probe_spi_rdid,
3000 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003001 .block_erasers =
3002 {
3003 {
3004 .eraseblocks = {
3005 {4 * 1024, 2},
3006 {8 * 1024, 1},
3007 {16 * 1024, 1},
3008 {32 * 1024, 1},
3009 {64 * 1024, 7}
3010 },
3011 .block_erase = spi_block_erase_d8,
3012 }, {
3013 .eraseblocks = { {512 * 1024, 1} },
3014 .block_erase = spi_block_erase_c7,
3015 }
3016 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003018 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003019 .write = spi_chip_write_256,
3020 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003021 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003022 },
3023
3024 {
3025 .vendor = "Eon",
3026 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003027 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003028 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003029 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003030 .total_size = 512,
3031 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003032 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003033 .tested = TEST_UNTESTED,
3034 .probe = probe_spi_rdid,
3035 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003036 .block_erasers =
3037 {
3038 {
3039 .eraseblocks = {
3040 {64 * 1024, 7},
3041 {32 * 1024, 1},
3042 {16 * 1024, 1},
3043 {8 * 1024, 1},
3044 {4 * 1024, 2},
3045 },
3046 .block_erase = spi_block_erase_d8,
3047 }, {
3048 .eraseblocks = { {512 * 1024, 1} },
3049 .block_erase = spi_block_erase_c7,
3050 }
3051 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003052 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003053 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003054 .write = spi_chip_write_256,
3055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003056 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003057 },
3058
3059 {
3060 .vendor = "Eon",
3061 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003062 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003063 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003064 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003065 .total_size = 1024,
3066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003067 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003068 .tested = TEST_UNTESTED,
3069 .probe = probe_spi_rdid,
3070 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = {
3075 {4 * 1024, 2},
3076 {8 * 1024, 1},
3077 {16 * 1024, 1},
3078 {32 * 1024, 1},
3079 {64 * 1024, 15}
3080 },
3081 .block_erase = spi_block_erase_d8,
3082 }, {
3083 .eraseblocks = { {1024 * 1024, 1} },
3084 .block_erase = spi_block_erase_c7,
3085 }
3086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003087 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003088 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003089 .write = spi_chip_write_256,
3090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003091 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003092 },
3093
3094 {
3095 .vendor = "Eon",
3096 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003097 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003098 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003099 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003100 .total_size = 1024,
3101 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003102 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003103 .tested = TEST_UNTESTED,
3104 .probe = probe_spi_rdid,
3105 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003106 .block_erasers =
3107 {
3108 {
3109 .eraseblocks = {
3110 {64 * 1024, 15},
3111 {32 * 1024, 1},
3112 {16 * 1024, 1},
3113 {8 * 1024, 1},
3114 {4 * 1024, 2},
3115 },
3116 .block_erase = spi_block_erase_d8,
3117 }, {
3118 .eraseblocks = { {1024 * 1024, 1} },
3119 .block_erase = spi_block_erase_c7,
3120 }
3121 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003122 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003123 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003124 .write = spi_chip_write_256,
3125 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003126 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003127 },
3128
3129 {
3130 .vendor = "Eon",
3131 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003132 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003133 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003134 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 .total_size = 2048,
3136 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003137 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003138 .tested = TEST_UNTESTED,
3139 .probe = probe_spi_rdid,
3140 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003141 .block_erasers =
3142 {
3143 {
3144 .eraseblocks = {
3145 {4 * 1024, 2},
3146 {8 * 1024, 1},
3147 {16 * 1024, 1},
3148 {32 * 1024, 1},
3149 {64 * 1024, 31},
3150 },
3151 .block_erase = spi_block_erase_d8,
3152 }, {
3153 .eraseblocks = { {2 * 1024 * 1024, 1} },
3154 .block_erase = spi_block_erase_c7,
3155 }
3156 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003157 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003158 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003159 .write = spi_chip_write_256,
3160 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003161 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003162 },
3163
3164 {
3165 .vendor = "Eon",
3166 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003167 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003168 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003169 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003170 .total_size = 2048,
3171 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003172 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003173 .tested = TEST_UNTESTED,
3174 .probe = probe_spi_rdid,
3175 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003176 .block_erasers =
3177 {
3178 {
3179 .eraseblocks = {
3180 {64 * 1024, 31},
3181 {32 * 1024, 1},
3182 {16 * 1024, 1},
3183 {8 * 1024, 1},
3184 {4 * 1024, 2},
3185 },
3186 .block_erase = spi_block_erase_d8,
3187 }, {
3188 .eraseblocks = { {2 * 1024 * 1024, 1} },
3189 .block_erase = spi_block_erase_c7,
3190 }
3191 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003192 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003193 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .write = spi_chip_write_256,
3195 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003196 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003197 },
3198
3199 {
3200 .vendor = "Eon",
3201 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003202 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003203 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003204 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003205 .total_size = 4096,
3206 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003207 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003208 .tested = TEST_UNTESTED,
3209 .probe = probe_spi_rdid,
3210 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003211 .block_erasers =
3212 {
3213 {
3214 .eraseblocks = {
3215 {4 * 1024, 2},
3216 {8 * 1024, 1},
3217 {16 * 1024, 1},
3218 {32 * 1024, 1},
3219 {64 * 1024, 63},
3220 },
3221 .block_erase = spi_block_erase_d8,
3222 }, {
3223 .eraseblocks = { {4 * 1024 * 1024, 1} },
3224 .block_erase = spi_block_erase_c7,
3225 }
3226 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003227 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003228 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003229 .write = spi_chip_write_256,
3230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003231 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003232 },
3233
3234 {
3235 .vendor = "Eon",
3236 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003237 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003238 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003239 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003240 .total_size = 4096,
3241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003242 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003243 .tested = TEST_UNTESTED,
3244 .probe = probe_spi_rdid,
3245 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003246 .block_erasers =
3247 {
3248 {
3249 .eraseblocks = {
3250 {64 * 1024, 63},
3251 {32 * 1024, 1},
3252 {16 * 1024, 1},
3253 {8 * 1024, 1},
3254 {4 * 1024, 2},
3255 },
3256 .block_erase = spi_block_erase_d8,
3257 }, {
3258 .eraseblocks = { {4 * 1024 * 1024, 1} },
3259 .block_erase = spi_block_erase_c7,
3260 }
3261 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003262 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003263 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003264 .write = spi_chip_write_256,
3265 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003266 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003267 },
3268
3269 {
3270 .vendor = "Eon",
3271 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003272 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003273 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003274 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003275 .total_size = 8192,
3276 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003277 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003278 .tested = TEST_UNTESTED,
3279 .probe = probe_spi_rdid,
3280 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003281 .block_erasers =
3282 {
3283 {
3284 .eraseblocks = {
3285 {4 * 1024, 2},
3286 {8 * 1024, 1},
3287 {16 * 1024, 1},
3288 {32 * 1024, 1},
3289 {64 * 1024, 127},
3290 },
3291 .block_erase = spi_block_erase_d8,
3292 }, {
3293 .eraseblocks = { {8 * 1024 * 1024, 1} },
3294 .block_erase = spi_block_erase_c7,
3295 }
3296 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003298 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003299 .write = spi_chip_write_256,
3300 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003301 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003302 },
3303
3304 {
3305 .vendor = "Eon",
3306 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003307 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003308 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003309 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003310 .total_size = 8192,
3311 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003312 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003313 .tested = TEST_UNTESTED,
3314 .probe = probe_spi_rdid,
3315 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003316 .block_erasers =
3317 {
3318 {
3319 .eraseblocks = {
3320 {64 * 1024, 127},
3321 {32 * 1024, 1},
3322 {16 * 1024, 1},
3323 {8 * 1024, 1},
3324 {4 * 1024, 2},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {8 * 1024 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003334 .write = spi_chip_write_256,
3335 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003341 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003345 .total_size = 64,
3346 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = { {4 * 1024, 16} },
3355 .block_erase = spi_block_erase_20,
3356 }, {
3357 .eraseblocks = { {32 * 1024, 2} },
3358 .block_erase = spi_block_erase_d8,
3359 }, {
3360 .eraseblocks = { {32 * 1024, 2} },
3361 .block_erase = spi_block_erase_52,
3362 }, {
3363 .eraseblocks = { {64 * 1024, 1} },
3364 .block_erase = spi_block_erase_60,
3365 }, {
3366 .eraseblocks = { {64 * 1024, 1} },
3367 .block_erase = spi_block_erase_c7,
3368 }
3369 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003370 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003371 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003372 .write = spi_chip_write_256,
3373 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003374 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003375 },
3376
3377 {
3378 .vendor = "Eon",
3379 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003380 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003381 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003382 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003383 .total_size = 128,
3384 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003385 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003386 .tested = TEST_UNTESTED,
3387 .probe = probe_spi_rdid,
3388 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003389 .block_erasers =
3390 {
3391 {
3392 .eraseblocks = { {4 * 1024, 32} },
3393 .block_erase = spi_block_erase_20,
3394 }, {
3395 .eraseblocks = { {32 * 1024, 4} },
3396 .block_erase = spi_block_erase_d8,
3397 }, {
3398 .eraseblocks = { {32 * 1024, 4} },
3399 .block_erase = spi_block_erase_52,
3400 }, {
3401 .eraseblocks = { {128 * 1024, 1} },
3402 .block_erase = spi_block_erase_60,
3403 }, {
3404 .eraseblocks = { {128 * 1024, 1} },
3405 .block_erase = spi_block_erase_c7,
3406 }
3407 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003408 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003409 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003410 .write = spi_chip_write_256,
3411 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003412 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003413 },
3414
3415 {
3416 .vendor = "Eon",
3417 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003418 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003419 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003420 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003421 .total_size = 256,
3422 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003423 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003424 .tested = TEST_UNTESTED,
3425 .probe = probe_spi_rdid,
3426 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003427 .block_erasers =
3428 {
3429 {
3430 .eraseblocks = { {4 * 1024, 64} },
3431 .block_erase = spi_block_erase_20,
3432 }, {
3433 .eraseblocks = { {64 * 1024, 4} },
3434 .block_erase = spi_block_erase_d8,
3435 }, {
3436 .eraseblocks = { {64 * 1024, 4} },
3437 .block_erase = spi_block_erase_52,
3438 }, {
3439 .eraseblocks = { {256 * 1024, 1} },
3440 .block_erase = spi_block_erase_60,
3441 }, {
3442 .eraseblocks = { {256 * 1024, 1} },
3443 .block_erase = spi_block_erase_c7,
3444 }
3445 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003447 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003448 .write = spi_chip_write_256,
3449 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003450 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003451 },
3452
3453 {
3454 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003455 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003456 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003457 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003458 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003459 .total_size = 512,
3460 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003461 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003462 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003463 .probe = probe_spi_rdid,
3464 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003465 .block_erasers =
3466 {
3467 {
Sean Nelson54596372010-01-09 05:30:14 +00003468 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003469 .block_erase = spi_block_erase_20,
3470 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003471 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003472 .block_erase = spi_block_erase_d8,
3473 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003474 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003475 .block_erase = spi_block_erase_60,
3476 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003477 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003478 .block_erase = spi_block_erase_c7,
3479 },
3480 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003481 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003482 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003483 .write = spi_chip_write_256,
3484 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003485 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003486 },
3487
3488 {
3489 .vendor = "Eon",
3490 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003491 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003492 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003493 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003494 .total_size = 1024,
3495 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003496 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003497 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003498 .probe = probe_spi_rdid,
3499 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003500 .block_erasers =
3501 {
3502 {
3503 .eraseblocks = { {4 * 1024, 256} },
3504 .block_erase = spi_block_erase_20,
3505 }, {
3506 .eraseblocks = { {64 * 1024, 16} },
3507 .block_erase = spi_block_erase_d8,
3508 }, {
3509 .eraseblocks = { {1024 * 1024, 1} },
3510 .block_erase = spi_block_erase_60,
3511 }, {
3512 .eraseblocks = { {1024 * 1024, 1} },
3513 .block_erase = spi_block_erase_c7,
3514 }
3515 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003516 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003517 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003518 .write = spi_chip_write_256,
3519 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003520 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003521 },
3522
3523 {
3524 .vendor = "Eon",
3525 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003526 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003527 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003528 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003529 .total_size = 2048,
3530 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003531 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003532 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003533 .probe = probe_spi_rdid,
3534 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003535 .block_erasers =
3536 {
3537 {
3538 .eraseblocks = { {4 * 1024, 512} },
3539 .block_erase = spi_block_erase_20,
3540 }, {
3541 .eraseblocks = { {64 * 1024, 32} },
3542 .block_erase = spi_block_erase_d8,
3543 }, {
3544 .eraseblocks = { {2 * 1024 * 1024, 1} },
3545 .block_erase = spi_block_erase_60,
3546 }, {
3547 .eraseblocks = { {2 * 1024 * 1024, 1} },
3548 .block_erase = spi_block_erase_c7,
3549 }
3550 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003552 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003553 .write = spi_chip_write_256,
3554 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003555 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003556 },
3557
3558 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003559 .vendor = "Eon",
3560 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003561 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003562 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003563 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003564 .total_size = 4096,
3565 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003566 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003567 .tested = TEST_UNTESTED,
3568 .probe = probe_spi_rdid,
3569 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003570 .block_erasers =
3571 {
3572 {
3573 .eraseblocks = { {4 * 1024, 1024} },
3574 .block_erase = spi_block_erase_20,
3575 }, {
3576 .eraseblocks = { {64 * 1024, 64} },
3577 .block_erase = spi_block_erase_d8,
3578 }, {
3579 .eraseblocks = { {4 * 1024 * 1024, 1} },
3580 .block_erase = spi_block_erase_60,
3581 }, {
3582 .eraseblocks = { {4 * 1024 * 1024, 1} },
3583 .block_erase = spi_block_erase_c7,
3584 }
3585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003587 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003588 .write = spi_chip_write_256,
3589 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003590 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003591 },
3592
3593 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003594 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003595 .name = "EN25F64",
3596 .bustype = BUS_SPI,
3597 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003598 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003599 .total_size = 8192,
3600 .page_size = 256,
3601 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003602 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003603 .probe = probe_spi_rdid,
3604 .probe_timing = TIMING_ZERO,
3605 .block_erasers =
3606 {
3607 {
3608 .eraseblocks = { {4 * 1024, 2048} },
3609 .block_erase = spi_block_erase_20,
3610 }, {
3611 .eraseblocks = { {64 * 1024, 128} },
3612 .block_erase = spi_block_erase_d8,
3613 }, {
3614 .eraseblocks = { {8 * 1024 * 1024, 1} },
3615 .block_erase = spi_block_erase_60,
3616 }, {
3617 .eraseblocks = { {8 * 1024 * 1024, 1} },
3618 .block_erase = spi_block_erase_c7,
3619 }
3620 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003621 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003622 .unlock = spi_disable_blockprotect,
3623 .write = spi_chip_write_256,
3624 .read = spi_chip_read,
3625 .voltage = {2700, 3600},
3626 },
3627
3628 {
3629 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003630 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003631 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003632 .manufacture_id = EON_ID_NOPREFIX,
3633 .model_id = EON_EN25Q40,
3634 .total_size = 512,
3635 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003636 /* OTP: 256B total; enter 0x3A */
3637 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003638 .tested = TEST_UNTESTED,
3639 .probe = probe_spi_rdid,
3640 .probe_timing = TIMING_ZERO,
3641 .block_erasers =
3642 {
3643 {
3644 .eraseblocks = { {4 * 1024, 128} },
3645 .block_erase = spi_block_erase_20,
3646 }, {
3647 .eraseblocks = { {64 * 1024, 8} },
3648 .block_erase = spi_block_erase_d8,
3649 }, {
3650 .eraseblocks = { {512 * 1024, 1} },
3651 .block_erase = spi_block_erase_60,
3652 }, {
3653 .eraseblocks = { {512 * 1024, 1} },
3654 .block_erase = spi_block_erase_c7,
3655 }
3656 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003657 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003658 .unlock = spi_disable_blockprotect,
3659 .write = spi_chip_write_256,
3660 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003661 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003662 },
3663
3664 {
3665 .vendor = "Eon",
3666 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003667 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003668 .manufacture_id = EON_ID_NOPREFIX,
3669 .model_id = EON_EN25Q80,
3670 .total_size = 1024,
3671 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003672 /* OTP: 256B total; enter 0x3A */
3673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003674 .tested = TEST_UNTESTED,
3675 .probe = probe_spi_rdid,
3676 .probe_timing = TIMING_ZERO,
3677 .block_erasers =
3678 {
3679 {
3680 .eraseblocks = { {4 * 1024, 256} },
3681 .block_erase = spi_block_erase_20,
3682 }, {
3683 .eraseblocks = { {64 * 1024, 16} },
3684 .block_erase = spi_block_erase_d8,
3685 }, {
3686 .eraseblocks = { {1024 * 1024, 1} },
3687 .block_erase = spi_block_erase_60,
3688 }, {
3689 .eraseblocks = { {1024 * 1024, 1} },
3690 .block_erase = spi_block_erase_c7,
3691 }
3692 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003693 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003694 .unlock = spi_disable_blockprotect,
3695 .write = spi_chip_write_256,
3696 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003697 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003698 },
3699
3700 {
3701 /* Note: EN25D16 is an evil twin which shares the model ID
3702 but has different write protection capabilities */
3703 .vendor = "Eon",
3704 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003705 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003706 .manufacture_id = EON_ID_NOPREFIX,
3707 .model_id = EON_EN25Q16,
3708 .total_size = 2048,
3709 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003710 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003712 .tested = TEST_UNTESTED,
3713 .probe = probe_spi_rdid,
3714 .probe_timing = TIMING_ZERO,
3715 .block_erasers =
3716 {
3717 {
3718 .eraseblocks = { {4 * 1024, 512} },
3719 .block_erase = spi_block_erase_20,
3720 }, {
3721 .eraseblocks = { {64 * 1024, 32} },
3722 .block_erase = spi_block_erase_d8,
3723 }, {
3724 /* not supported by Q16 version */
3725 .eraseblocks = { {64 * 1024, 32} },
3726 .block_erase = spi_block_erase_52,
3727 }, {
3728 .eraseblocks = { {2 * 1024 * 1024, 1} },
3729 .block_erase = spi_block_erase_60,
3730 }, {
3731 .eraseblocks = { {2 * 1024 * 1024, 1} },
3732 .block_erase = spi_block_erase_c7,
3733 }
3734 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003735 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003736 .unlock = spi_disable_blockprotect,
3737 .write = spi_chip_write_256,
3738 .read = spi_chip_read,
3739 .voltage = {2700, 3600},
3740 },
3741
3742 {
3743 .vendor = "Eon",
3744 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003745 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003746 .manufacture_id = EON_ID_NOPREFIX,
3747 .model_id = EON_EN25Q32,
3748 .total_size = 4096,
3749 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003750 /* OTP: 512B total; enter 0x3A */
3751 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003752 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003753 .probe = probe_spi_rdid,
3754 .probe_timing = TIMING_ZERO,
3755 .block_erasers =
3756 {
3757 {
3758 .eraseblocks = { {4 * 1024, 1024} },
3759 .block_erase = spi_block_erase_20,
3760 }, {
3761 .eraseblocks = { {64 * 1024, 64} },
3762 .block_erase = spi_block_erase_d8,
3763 }, {
3764 .eraseblocks = { {4 * 1024 * 1024, 1} },
3765 .block_erase = spi_block_erase_60,
3766 }, {
3767 .eraseblocks = { {4 * 1024 * 1024, 1} },
3768 .block_erase = spi_block_erase_c7,
3769 }
3770 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003771 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003772 .unlock = spi_disable_blockprotect,
3773 .write = spi_chip_write_256,
3774 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003775 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003776 },
3777
3778 {
3779 .vendor = "Eon",
3780 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003781 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003782 .manufacture_id = EON_ID_NOPREFIX,
3783 .model_id = EON_EN25Q64,
3784 .total_size = 8192,
3785 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003786 /* OTP: 512B total; enter 0x3A */
3787 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003788 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
3791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = { {4 * 1024, 2048} },
3795 .block_erase = spi_block_erase_20,
3796 }, {
3797 .eraseblocks = { {64 * 1024, 128} },
3798 .block_erase = spi_block_erase_d8,
3799 }, {
3800 .eraseblocks = { {8 * 1024 * 1024, 1} },
3801 .block_erase = spi_block_erase_60,
3802 }, {
3803 .eraseblocks = { {8 * 1024 * 1024, 1} },
3804 .block_erase = spi_block_erase_c7,
3805 }
3806 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003808 .unlock = spi_disable_blockprotect,
3809 .write = spi_chip_write_256,
3810 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003811 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003812 },
3813
3814 {
3815 .vendor = "Eon",
3816 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003817 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003818 .manufacture_id = EON_ID_NOPREFIX,
3819 .model_id = EON_EN25Q128,
3820 .total_size = 16384,
3821 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003822 /* OTP: 512B total; enter 0x3A */
3823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003824 .tested = TEST_UNTESTED,
3825 .probe = probe_spi_rdid,
3826 .probe_timing = TIMING_ZERO,
3827 .block_erasers =
3828 {
3829 {
3830 .eraseblocks = { {4 * 1024, 4096} },
3831 .block_erase = spi_block_erase_20,
3832 }, {
3833 .eraseblocks = { {64 * 1024, 256} },
3834 .block_erase = spi_block_erase_d8,
3835 }, {
3836 .eraseblocks = { {16 * 1024 * 1024, 1} },
3837 .block_erase = spi_block_erase_60,
3838 }, {
3839 .eraseblocks = { {16 * 1024 * 1024, 1} },
3840 .block_erase = spi_block_erase_c7,
3841 }
3842 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003844 .unlock = spi_disable_blockprotect,
3845 .write = spi_chip_write_256,
3846 .read = spi_chip_read,
3847 },
3848
3849 {
3850 .vendor = "Eon",
3851 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003852 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003853 .manufacture_id = EON_ID_NOPREFIX,
3854 .model_id = EON_EN25QH16,
3855 .total_size = 2048,
3856 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003857 /* supports SFDP */
3858 /* OTP: 512B total; enter 0x3A */
3859 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003860 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003861 .probe = probe_spi_rdid,
3862 .probe_timing = TIMING_ZERO,
3863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = { {4 * 1024, 512} },
3867 .block_erase = spi_block_erase_20,
3868 }, {
3869 .eraseblocks = { {64 * 1024, 32} },
3870 .block_erase = spi_block_erase_d8,
3871 }, {
3872 .eraseblocks = { {1024 * 2048, 1} },
3873 .block_erase = spi_block_erase_60,
3874 }, {
3875 .eraseblocks = { {1024 * 2048, 1} },
3876 .block_erase = spi_block_erase_c7,
3877 }
3878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003880 .unlock = spi_disable_blockprotect,
3881 .write = spi_chip_write_256,
3882 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003883 .voltage = {2700, 3600},
3884 },
3885
3886 {
3887 .vendor = "Eon",
3888 .name = "EN25QH32",
3889 .bustype = BUS_SPI,
3890 .manufacture_id = EON_ID_NOPREFIX,
3891 .model_id = EON_EN25QH32,
3892 .total_size = 4096,
3893 .page_size = 256,
3894 /* supports SFDP */
3895 /* OTP: 512B total; enter 0x3A */
3896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3897 .tested = TEST_UNTESTED,
3898 .probe = probe_spi_rdid,
3899 .probe_timing = TIMING_ZERO,
3900 .block_erasers =
3901 {
3902 {
3903 .eraseblocks = { {4 * 1024, 1024} },
3904 .block_erase = spi_block_erase_20,
3905 }, {
3906 .eraseblocks = { {64 * 1024, 64} },
3907 .block_erase = spi_block_erase_d8,
3908 }, {
3909 .eraseblocks = { {1024 * 4096, 1} },
3910 .block_erase = spi_block_erase_60,
3911 }, {
3912 .eraseblocks = { {1024 * 4096, 1} },
3913 .block_erase = spi_block_erase_c7,
3914 }
3915 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003916 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Tauner2cef9162012-05-14 01:51:46 +00003917 .unlock = spi_disable_blockprotect,
3918 .write = spi_chip_write_256,
3919 .read = spi_chip_read,
3920 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003921 },
3922
3923 {
3924 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003925 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003926 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003927 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003928 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003929 .total_size = 128,
3930 .page_size = 128,
3931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003932 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003933 .probe = probe_jedec,
3934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3935 .block_erasers =
3936 {
3937 {
3938 .eraseblocks = { {16 * 1024, 8} },
3939 .block_erase = erase_sector_jedec,
3940 },
3941 {
3942 .eraseblocks = { {128 * 1024, 1} },
3943 .block_erase = erase_chip_block_jedec,
3944 },
3945 },
3946 .write = write_jedec_1,
3947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003948 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003949 },
3950
3951 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003952 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003953 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003954 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003955 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003956 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003957 .total_size = 256,
3958 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003959 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003960 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003961 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003962 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003963 .block_erasers =
3964 {
3965 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003966 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003967 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003968 {8 * 1024, 2},
3969 {32 * 1024, 1},
3970 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003971 },
3972 .block_erase = erase_sector_jedec,
3973 }, {
3974 .eraseblocks = { {256 * 1024, 1} },
3975 .block_erase = erase_chip_block_jedec,
3976 },
3977 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003978 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003980 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003981 },
3982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003983 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003984 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003985 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003986 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003987 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003988 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003989 .total_size = 256,
3990 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003991 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003992 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003993 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003994 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003995 .block_erasers =
3996 {
3997 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003998 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003999 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004000 {32 * 1024, 1},
4001 {8 * 1024, 2},
4002 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004003 },
4004 .block_erase = erase_sector_jedec,
4005 }, {
4006 .eraseblocks = { {256 * 1024, 1} },
4007 .block_erase = erase_chip_block_jedec,
4008 },
4009 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004010 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004012 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004013 },
4014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004015 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004016 .vendor = "Eon",
4017 .name = "EN29LV640B",
4018 .bustype = BUS_PARALLEL,
4019 .manufacture_id = EON_ID,
4020 .model_id = EON_EN29LV640B,
4021 .total_size = 8192,
4022 .page_size = 8192,
4023 .feature_bits = 0,
4024 .tested = TEST_OK_PREW,
4025 .probe = probe_en29lv640b,
4026 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4027 .block_erasers =
4028 {
4029 {
4030 .eraseblocks = {
4031 {8 * 1024, 8},
4032 {64 * 1024, 127},
4033 },
4034 .block_erase = block_erase_en29lv640b,
4035 }, {
4036 .eraseblocks = { {8 * 1024 * 1024, 1} },
4037 .block_erase = block_erase_chip_en29lv640b,
4038 },
4039 },
4040 .write = write_en29lv640b,
4041 .read = read_memmapped,
4042 .voltage = {2700, 3600},
4043 },
4044
4045 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004046 .vendor = "Fujitsu",
4047 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004048 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004049 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004050 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004051 .total_size = 512,
4052 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004053 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004054 .tested = TEST_UNTESTED,
4055 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004056 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004057 .block_erasers =
4058 {
4059 {
4060 .eraseblocks = {
4061 {16 * 1024, 1},
4062 {8 * 1024, 2},
4063 {32 * 1024, 1},
4064 {64 * 1024, 7},
4065 },
Sean Nelson35727f72010-01-28 23:55:12 +00004066 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004067 }, {
4068 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004069 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004070 },
4071 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004072 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004073 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004074 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004075 },
4076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004077 {
4078 .vendor = "Fujitsu",
4079 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004080 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004081 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004082 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004083 .total_size = 512,
4084 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004085 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004086 .tested = TEST_UNTESTED,
4087 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004088 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004089 .block_erasers =
4090 {
4091 {
4092 .eraseblocks = {
4093 {64 * 1024, 7},
4094 {32 * 1024, 1},
4095 {8 * 1024, 2},
4096 {16 * 1024, 1},
4097 },
Sean Nelson35727f72010-01-28 23:55:12 +00004098 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004099 }, {
4100 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004101 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004102 },
4103 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004104 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004106 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004107 },
4108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004109 {
Sean Nelson35727f72010-01-28 23:55:12 +00004110 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004111 .vendor = "Fujitsu",
4112 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004113 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004114 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004115 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004116 .total_size = 512,
4117 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004118 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004119 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004120 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004121 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004122 .block_erasers =
4123 {
4124 {
4125 .eraseblocks = {
4126 {16 * 1024, 1},
4127 {8 * 1024, 2},
4128 {32 * 1024, 1},
4129 {64 * 1024, 7},
4130 },
4131 .block_erase = block_erase_m29f400bt,
4132 }, {
4133 .eraseblocks = { {512 * 1024, 1} },
4134 .block_erase = block_erase_chip_m29f400bt,
4135 },
4136 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004137 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004138 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004139 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004140 },
4141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004142 {
4143 .vendor = "Fujitsu",
4144 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004145 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004146 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004147 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004148 .total_size = 512,
4149 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004150 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004151 .tested = TEST_UNTESTED,
4152 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004153 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004154 .block_erasers =
4155 {
4156 {
4157 .eraseblocks = {
4158 {64 * 1024, 7},
4159 {32 * 1024, 1},
4160 {8 * 1024, 2},
4161 {16 * 1024, 1},
4162 },
4163 .block_erase = block_erase_m29f400bt,
4164 }, {
4165 .eraseblocks = { {512 * 1024, 1} },
4166 .block_erase = block_erase_chip_m29f400bt,
4167 },
4168 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004169 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004170 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004171 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004172 },
4173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004174 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004175 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004176 .name = "GD25LQ32",
4177 .bustype = BUS_SPI,
4178 .manufacture_id = GIGADEVICE_ID,
4179 .model_id = GIGADEVICE_GD25LQ32,
4180 .total_size = 4096,
4181 .page_size = 256,
4182 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4184 .tested = TEST_OK_PREW,
4185 .probe = probe_spi_rdid,
4186 .probe_timing = TIMING_ZERO,
4187 .block_erasers =
4188 {
4189 {
4190 .eraseblocks = { {4 * 1024, 1024} },
4191 .block_erase = spi_block_erase_20,
4192 }, {
4193 .eraseblocks = { {32 * 1024, 128} },
4194 .block_erase = spi_block_erase_52,
4195 }, {
4196 .eraseblocks = { {64 * 1024, 64} },
4197 .block_erase = spi_block_erase_d8,
4198 }, {
4199 .eraseblocks = { {4 * 1024 * 1024, 1} },
4200 .block_erase = spi_block_erase_60,
4201 }, {
4202 .eraseblocks = { {4 * 1024 * 1024, 1} },
4203 .block_erase = spi_block_erase_c7,
4204 }
4205 },
4206 .printlock = spi_prettyprint_status_register_default_bp4,
4207 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4208 .write = spi_chip_write_256,
4209 .read = spi_chip_read,
4210 .voltage = {1700, 1950},
4211 },
4212
4213 {
4214 .vendor = "GigaDevice",
4215 .name = "GD25Q512",
4216 .bustype = BUS_SPI,
4217 .manufacture_id = GIGADEVICE_ID,
4218 .model_id = GIGADEVICE_GD25Q512,
4219 .total_size = 64,
4220 .page_size = 256,
4221 .feature_bits = FEATURE_WRSR_WREN,
4222 .tested = TEST_UNTESTED,
4223 .probe = probe_spi_rdid,
4224 .probe_timing = TIMING_ZERO,
4225 .block_erasers = {
4226 {
4227 .eraseblocks = { {4 * 1024, 16} },
4228 .block_erase = spi_block_erase_20,
4229 }, {
4230 .eraseblocks = { {32 * 1024, 2} },
4231 .block_erase = spi_block_erase_52,
4232 }, {
4233 .eraseblocks = { {64 * 1024, 1} },
4234 .block_erase = spi_block_erase_60,
4235 }, {
4236 .eraseblocks = { {64 * 1024, 1} },
4237 .block_erase = spi_block_erase_c7,
4238 }
4239 },
4240 .printlock = spi_prettyprint_status_register_default_bp4,
4241 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4242 .write = spi_chip_write_256,
4243 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4244 .voltage = {2700, 3600},
4245 },
4246
4247 {
4248 .vendor = "GigaDevice",
4249 .name = "GD25Q10",
4250 .bustype = BUS_SPI,
4251 .manufacture_id = GIGADEVICE_ID,
4252 .model_id = GIGADEVICE_GD25Q10,
4253 .total_size = 128,
4254 .page_size = 256,
4255 .feature_bits = FEATURE_WRSR_WREN,
4256 .tested = TEST_UNTESTED,
4257 .probe = probe_spi_rdid,
4258 .probe_timing = TIMING_ZERO,
4259 .block_erasers = {
4260 {
4261 .eraseblocks = { {4 * 1024, 32} },
4262 .block_erase = spi_block_erase_20,
4263 }, {
4264 .eraseblocks = { {32 * 1024, 4} },
4265 .block_erase = spi_block_erase_52,
4266 }, {
4267 .eraseblocks = { {64 * 1024, 2} },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {128 * 1024, 1} },
4271 .block_erase = spi_block_erase_60,
4272 }, {
4273 .eraseblocks = { {128 * 1024, 1} },
4274 .block_erase = spi_block_erase_c7,
4275 }
4276 },
4277 .printlock = spi_prettyprint_status_register_default_bp4,
4278 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4279 .write = spi_chip_write_256,
4280 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4281 .voltage = {2700, 3600},
4282 },
4283
4284 {
4285 .vendor = "GigaDevice",
4286 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004287 .bustype = BUS_SPI,
4288 .manufacture_id = GIGADEVICE_ID,
4289 .model_id = GIGADEVICE_GD25Q20,
4290 .total_size = 256,
4291 .page_size = 256,
4292 .feature_bits = FEATURE_WRSR_WREN,
4293 .tested = TEST_UNTESTED,
4294 .probe = probe_spi_rdid,
4295 .probe_timing = TIMING_ZERO,
4296 .block_erasers =
4297 {
4298 {
4299 .eraseblocks = { {4 * 1024, 64} },
4300 .block_erase = spi_block_erase_20,
4301 }, {
4302 .eraseblocks = { {32 * 1024, 8} },
4303 .block_erase = spi_block_erase_52,
4304 }, {
4305 .eraseblocks = { {64 * 1024, 4} },
4306 .block_erase = spi_block_erase_d8,
4307 }, {
4308 .eraseblocks = { {256 * 1024, 1} },
4309 .block_erase = spi_block_erase_60,
4310 }, {
4311 .eraseblocks = { {256 * 1024, 1} },
4312 .block_erase = spi_block_erase_c7,
4313 }
4314 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004315 .printlock = spi_prettyprint_status_register_default_bp4,
4316 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004317 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004318 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004319 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004320 },
4321
4322 {
4323 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004324 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004325 .bustype = BUS_SPI,
4326 .manufacture_id = GIGADEVICE_ID,
4327 .model_id = GIGADEVICE_GD25Q40,
4328 .total_size = 512,
4329 .page_size = 256,
4330 .feature_bits = FEATURE_WRSR_WREN,
4331 .tested = TEST_UNTESTED,
4332 .probe = probe_spi_rdid,
4333 .probe_timing = TIMING_ZERO,
4334 .block_erasers =
4335 {
4336 {
4337 .eraseblocks = { {4 * 1024, 128} },
4338 .block_erase = spi_block_erase_20,
4339 }, {
4340 .eraseblocks = { {32 * 1024, 16} },
4341 .block_erase = spi_block_erase_52,
4342 }, {
4343 .eraseblocks = { {64 * 1024, 8} },
4344 .block_erase = spi_block_erase_d8,
4345 }, {
4346 .eraseblocks = { {512 * 1024, 1} },
4347 .block_erase = spi_block_erase_60,
4348 }, {
4349 .eraseblocks = { {512 * 1024, 1} },
4350 .block_erase = spi_block_erase_c7,
4351 }
4352 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004353 .printlock = spi_prettyprint_status_register_default_bp4,
4354 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004355 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004356 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004357 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004358 },
4359
4360 {
4361 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004362 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004363 .bustype = BUS_SPI,
4364 .manufacture_id = GIGADEVICE_ID,
4365 .model_id = GIGADEVICE_GD25Q80,
4366 .total_size = 1024,
4367 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004368 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4370 .tested = TEST_OK_PREW,
4371 .probe = probe_spi_rdid,
4372 .probe_timing = TIMING_ZERO,
4373 .block_erasers =
4374 {
4375 {
4376 .eraseblocks = { {4 * 1024, 256} },
4377 .block_erase = spi_block_erase_20,
4378 }, {
4379 .eraseblocks = { {32 * 1024, 32} },
4380 .block_erase = spi_block_erase_52,
4381 }, {
4382 .eraseblocks = { {64 * 1024, 16} },
4383 .block_erase = spi_block_erase_d8,
4384 }, {
4385 .eraseblocks = { {1024 * 1024, 1} },
4386 .block_erase = spi_block_erase_60,
4387 }, {
4388 .eraseblocks = { {1024 * 1024, 1} },
4389 .block_erase = spi_block_erase_c7,
4390 }
4391 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004392 .printlock = spi_prettyprint_status_register_default_bp4,
4393 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004394 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004395 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004396 .voltage = {2700, 3600},
4397 },
4398
4399 {
4400 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004401 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004402 .bustype = BUS_SPI,
4403 .manufacture_id = GIGADEVICE_ID,
4404 .model_id = GIGADEVICE_GD25Q16,
4405 .total_size = 2048,
4406 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004407 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4409 .tested = TEST_UNTESTED,
4410 .probe = probe_spi_rdid,
4411 .probe_timing = TIMING_ZERO,
4412 .block_erasers =
4413 {
4414 {
4415 .eraseblocks = { {4 * 1024, 512} },
4416 .block_erase = spi_block_erase_20,
4417 }, {
4418 .eraseblocks = { {32 * 1024, 64} },
4419 .block_erase = spi_block_erase_52,
4420 }, {
4421 .eraseblocks = { {64 * 1024, 32} },
4422 .block_erase = spi_block_erase_d8,
4423 }, {
4424 .eraseblocks = { {2 * 1024 * 1024, 1} },
4425 .block_erase = spi_block_erase_60,
4426 }, {
4427 .eraseblocks = { {2 * 1024 * 1024, 1} },
4428 .block_erase = spi_block_erase_c7,
4429 }
4430 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004431 .printlock = spi_prettyprint_status_register_default_bp4,
4432 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004433 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004434 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004435 .voltage = {2700, 3600},
4436 },
4437
4438 {
4439 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004440 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004441 .bustype = BUS_SPI,
4442 .manufacture_id = GIGADEVICE_ID,
4443 .model_id = GIGADEVICE_GD25Q32,
4444 .total_size = 4096,
4445 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004446 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004447 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4448 .tested = TEST_UNTESTED,
4449 .probe = probe_spi_rdid,
4450 .probe_timing = TIMING_ZERO,
4451 .block_erasers =
4452 {
4453 {
4454 .eraseblocks = { {4 * 1024, 1024} },
4455 .block_erase = spi_block_erase_20,
4456 }, {
4457 .eraseblocks = { {32 * 1024, 128} },
4458 .block_erase = spi_block_erase_52,
4459 }, {
4460 .eraseblocks = { {64 * 1024, 64} },
4461 .block_erase = spi_block_erase_d8,
4462 }, {
4463 .eraseblocks = { {4 * 1024 * 1024, 1} },
4464 .block_erase = spi_block_erase_60,
4465 }, {
4466 .eraseblocks = { {4 * 1024 * 1024, 1} },
4467 .block_erase = spi_block_erase_c7,
4468 }
4469 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004470 .printlock = spi_prettyprint_status_register_default_bp4,
4471 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004472 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004473 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004474 .voltage = {2700, 3600},
4475 },
4476
4477 {
4478 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004479 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004480 .bustype = BUS_SPI,
4481 .manufacture_id = GIGADEVICE_ID,
4482 .model_id = GIGADEVICE_GD25Q64,
4483 .total_size = 8192,
4484 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004485 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004487 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004488 .probe = probe_spi_rdid,
4489 .probe_timing = TIMING_ZERO,
4490 .block_erasers =
4491 {
4492 {
4493 .eraseblocks = { {4 * 1024, 2048} },
4494 .block_erase = spi_block_erase_20,
4495 }, {
4496 .eraseblocks = { {32 * 1024, 256} },
4497 .block_erase = spi_block_erase_52,
4498 }, {
4499 .eraseblocks = { {64 * 1024, 128} },
4500 .block_erase = spi_block_erase_d8,
4501 }, {
4502 .eraseblocks = { {8 * 1024 * 1024, 1} },
4503 .block_erase = spi_block_erase_60,
4504 }, {
4505 .eraseblocks = { {8 * 1024 * 1024, 1} },
4506 .block_erase = spi_block_erase_c7,
4507 }
4508 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004509 .printlock = spi_prettyprint_status_register_default_bp4,
4510 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004511 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004512 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00004513 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004514 },
4515
4516 {
4517 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004518 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004519 .bustype = BUS_SPI,
4520 .manufacture_id = GIGADEVICE_ID,
4521 .model_id = GIGADEVICE_GD25Q128,
4522 .total_size = 16384,
4523 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004524 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4526 .tested = TEST_UNTESTED,
4527 .probe = probe_spi_rdid,
4528 .probe_timing = TIMING_ZERO,
4529 .block_erasers =
4530 {
4531 {
4532 .eraseblocks = { {4 * 1024, 4096} },
4533 .block_erase = spi_block_erase_20,
4534 }, {
4535 .eraseblocks = { {32 * 1024, 512} },
4536 .block_erase = spi_block_erase_52,
4537 }, {
4538 .eraseblocks = { {64 * 1024, 256} },
4539 .block_erase = spi_block_erase_d8,
4540 }, {
4541 .eraseblocks = { {16 * 1024 * 1024, 1} },
4542 .block_erase = spi_block_erase_60,
4543 }, {
4544 .eraseblocks = { {16 * 1024 * 1024, 1} },
4545 .block_erase = spi_block_erase_c7,
4546 }
4547 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004548 .printlock = spi_prettyprint_status_register_default_bp4,
4549 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4550 .write = spi_chip_write_256,
4551 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4552 .voltage = {2700, 3600},
4553 },
4554
4555 {
4556 .vendor = "GigaDevice",
4557 .name = "GD25T80",
4558 .bustype = BUS_SPI,
4559 .manufacture_id = GIGADEVICE_ID,
4560 .model_id = GIGADEVICE_GD25T80,
4561 .total_size = 1024,
4562 .page_size = 256,
4563 /* OTP: 256B total; enter 0x3A */
4564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4565 .tested = TEST_UNTESTED,
4566 .probe = probe_spi_rdid,
4567 .probe_timing = TIMING_ZERO,
4568 .block_erasers = {
4569 {
4570 .eraseblocks = { {4 * 1024, 256} },
4571 .block_erase = spi_block_erase_20,
4572 }, {
4573 .eraseblocks = { {64 * 1024, 16} },
4574 .block_erase = spi_block_erase_52,
4575 }, {
4576 .eraseblocks = { {64 * 1024, 16} },
4577 .block_erase = spi_block_erase_d8,
4578 }, {
4579 .eraseblocks = { {1024 * 1024, 1} },
4580 .block_erase = spi_block_erase_60,
4581 }, {
4582 .eraseblocks = { {1024 * 1024, 1} },
4583 .block_erase = spi_block_erase_c7,
4584 }
4585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004587 .unlock = spi_disable_blockprotect,
4588 .write = spi_chip_write_256,
4589 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004590 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004591 },
4592
4593 {
David Borgc96a8bd2010-06-21 16:12:22 +00004594 .vendor = "Hyundai",
4595 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004596 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004597 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004598 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004599 .total_size = 256,
4600 .page_size = 256 * 1024,
4601 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004602 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004603 .probe = probe_jedec,
4604 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4605 .block_erasers =
4606 {
4607 {
4608 .eraseblocks = {
4609 {64 * 1024, 3},
4610 {32 * 1024, 1},
4611 {8 * 1024, 2},
4612 {16 * 1024, 1},
4613 },
4614 .block_erase = erase_sector_jedec,
4615 }, {
4616 .eraseblocks = { {256 * 1024, 1} },
4617 .block_erase = erase_chip_block_jedec,
4618 },
4619 },
4620 .write = write_jedec_1,
4621 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004622 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004623 },
4624
4625 {
4626 .vendor = "Hyundai",
4627 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004628 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004629 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004630 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004631 .total_size = 256,
4632 .page_size = 256 * 1024,
4633 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4634 .tested = TEST_UNTESTED,
4635 .probe = probe_jedec,
4636 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4637 .block_erasers =
4638 {
4639 {
4640 .eraseblocks = {
4641 {16 * 1024, 1},
4642 {8 * 1024, 2},
4643 {32 * 1024, 1},
4644 {64 * 1024, 3},
4645 },
4646 .block_erase = erase_sector_jedec,
4647 }, {
4648 .eraseblocks = { {256 * 1024, 1} },
4649 .block_erase = erase_chip_block_jedec,
4650 },
4651 },
4652 .write = write_jedec_1,
4653 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004654 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004655 },
4656
4657 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004658 .vendor = "Hyundai",
4659 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004660 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004661 .manufacture_id = HYUNDAI_ID,
4662 .model_id = HYUNDAI_HY29F040A,
4663 .total_size = 512,
4664 .page_size = 64 * 1024,
4665 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4666 .tested = TEST_UNTESTED,
4667 .probe = probe_jedec,
4668 .probe_timing = TIMING_ZERO,
4669 .block_erasers =
4670 {
4671 {
4672 .eraseblocks = { {64 * 1024, 8} },
4673 .block_erase = erase_sector_jedec,
4674 }, {
4675 .eraseblocks = { {512 * 1024, 1} },
4676 .block_erase = erase_chip_block_jedec,
4677 },
4678 },
4679 .write = write_jedec_1,
4680 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004681 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004682 },
4683
4684 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004685 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00004686 .name = "25F160S33B8",
4687 .bustype = BUS_SPI,
4688 .manufacture_id = INTEL_ID,
4689 .model_id = INTEL_25F160S33B8,
4690 .total_size = 2048,
4691 .page_size = 256,
4692 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4693 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4694 .tested = TEST_UNTESTED,
4695 .probe = probe_spi_rdid,
4696 .probe_timing = TIMING_ZERO,
4697 .block_erasers =
4698 {
4699 {
4700 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4701 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4702 * have no effect on the memory contents, but sets a flag in the SR.
4703 .eraseblocks = {
4704 {8 * 1024, 8},
4705 {64 * 1024, 31} // inaccessible
4706 },
4707 .block_erase = spi_block_erase_40,
4708 }, { */
4709 .eraseblocks = { {64 * 1024, 32} },
4710 .block_erase = spi_block_erase_d8,
4711 }, {
4712 .eraseblocks = { {2 * 1024 * 1024, 1} },
4713 .block_erase = spi_block_erase_c7,
4714 }
4715 },
4716 .printlock = spi_prettyprint_status_register_s33,
4717 .unlock = spi_disable_blockprotect_s33,
4718 .write = spi_chip_write_256,
4719 .read = spi_chip_read, /* also fast read 0x0B */
4720 .voltage = {2700, 3600},
4721 },
4722
4723 {
4724 .vendor = "Intel",
4725 .name = "25F160S33T8",
4726 .bustype = BUS_SPI,
4727 .manufacture_id = INTEL_ID,
4728 .model_id = INTEL_25F160S33T8,
4729 .total_size = 2048,
4730 .page_size = 256,
4731 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4732 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4733 .tested = TEST_UNTESTED,
4734 .probe = probe_spi_rdid,
4735 .probe_timing = TIMING_ZERO,
4736 .block_erasers =
4737 {
4738 {
4739 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4740 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4741 * have no effect on the memory contents, but sets a flag in the SR.
4742 .eraseblocks = {
4743 {64 * 1024, 31}, // inaccessible
4744 {8 * 1024, 8}
4745 },
4746 .block_erase = spi_block_erase_40,
4747 }, { */
4748 .eraseblocks = { {64 * 1024, 32} },
4749 .block_erase = spi_block_erase_d8,
4750 }, {
4751 .eraseblocks = { {2 * 1024 * 1024, 1} },
4752 .block_erase = spi_block_erase_c7,
4753 }
4754 },
4755 .printlock = spi_prettyprint_status_register_s33,
4756 .unlock = spi_disable_blockprotect_s33,
4757 .write = spi_chip_write_256,
4758 .read = spi_chip_read, /* also fast read 0x0B */
4759 .voltage = {2700, 3600},
4760 },
4761
4762 {
4763 .vendor = "Intel",
4764 .name = "25F320S33B8",
4765 .bustype = BUS_SPI,
4766 .manufacture_id = INTEL_ID,
4767 .model_id = INTEL_25F320S33B8,
4768 .total_size = 4096,
4769 .page_size = 256,
4770 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4771 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4772 .tested = TEST_UNTESTED,
4773 .probe = probe_spi_rdid,
4774 .probe_timing = TIMING_ZERO,
4775 .block_erasers =
4776 {
4777 {
4778 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4779 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4780 * have no effect on the memory contents, but sets a flag in the SR.
4781 .eraseblocks = {
4782 {8 * 1024, 8},
4783 {64 * 1024, 63} // inaccessible
4784 },
4785 .block_erase = spi_block_erase_40,
4786 }, { */
4787 .eraseblocks = { {64 * 1024, 64} },
4788 .block_erase = spi_block_erase_d8,
4789 }, {
4790 .eraseblocks = { {4 * 1024 * 1024, 1} },
4791 .block_erase = spi_block_erase_c7,
4792 }
4793 },
4794 .printlock = spi_prettyprint_status_register_s33,
4795 .unlock = spi_disable_blockprotect_s33,
4796 .write = spi_chip_write_256,
4797 .read = spi_chip_read, /* also fast read 0x0B */
4798 .voltage = {2700, 3600},
4799 },
4800
4801 {
4802 .vendor = "Intel",
4803 .name = "25F320S33T8",
4804 .bustype = BUS_SPI,
4805 .manufacture_id = INTEL_ID,
4806 .model_id = INTEL_25F320S33T8,
4807 .total_size = 4096,
4808 .page_size = 256,
4809 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4810 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4811 .tested = TEST_UNTESTED,
4812 .probe = probe_spi_rdid,
4813 .probe_timing = TIMING_ZERO,
4814 .block_erasers =
4815 {
4816 {
4817 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4818 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4819 * have no effect on the memory contents, but sets a flag in the SR.
4820 .eraseblocks = {
4821 {64 * 1024, 63}, // inaccessible
4822 {8 * 1024, 8}
4823 },
4824 .block_erase = spi_block_erase_40,
4825 }, { */
4826 .eraseblocks = { {64 * 1024, 64} },
4827 .block_erase = spi_block_erase_d8,
4828 }, {
4829 .eraseblocks = { {4 * 1024 * 1024, 1} },
4830 .block_erase = spi_block_erase_c7,
4831 }
4832 },
4833 .printlock = spi_prettyprint_status_register_s33,
4834 .unlock = spi_disable_blockprotect_s33,
4835 .write = spi_chip_write_256,
4836 .read = spi_chip_read, /* also fast read 0x0B */
4837 .voltage = {2700, 3600},
4838 },
4839
4840 {
4841 .vendor = "Intel",
4842 .name = "25F640S33B8",
4843 .bustype = BUS_SPI,
4844 .manufacture_id = INTEL_ID,
4845 .model_id = INTEL_25F640S33B8,
4846 .total_size = 8192,
4847 .page_size = 256,
4848 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4849 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4850 .tested = TEST_UNTESTED,
4851 .probe = probe_spi_rdid,
4852 .probe_timing = TIMING_ZERO,
4853 .block_erasers =
4854 {
4855 {
4856 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4857 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4858 * have no effect on the memory contents, but sets a flag in the SR.
4859 .eraseblocks = {
4860 {8 * 1024, 8},
4861 {64 * 1024, 127} // inaccessible
4862 },
4863 .block_erase = spi_block_erase_40,
4864 }, { */
4865 .eraseblocks = { {64 * 1024, 128} },
4866 .block_erase = spi_block_erase_d8,
4867 }, {
4868 .eraseblocks = { {8 * 1024 * 1024, 1} },
4869 .block_erase = spi_block_erase_c7,
4870 }
4871 },
4872 .printlock = spi_prettyprint_status_register_s33,
4873 .unlock = spi_disable_blockprotect_s33,
4874 .write = spi_chip_write_256,
4875 .read = spi_chip_read, /* also fast read 0x0B */
4876 .voltage = {2700, 3600},
4877 },
4878
4879 {
4880 .vendor = "Intel",
4881 .name = "25F640S33T8",
4882 .bustype = BUS_SPI,
4883 .manufacture_id = INTEL_ID,
4884 .model_id = INTEL_25F640S33T8,
4885 .total_size = 8192,
4886 .page_size = 256,
4887 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4888 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4889 .tested = TEST_UNTESTED,
4890 .probe = probe_spi_rdid,
4891 .probe_timing = TIMING_ZERO,
4892 .block_erasers =
4893 {
4894 {
4895 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4896 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4897 * have no effect on the memory contents, but sets a flag in the SR.
4898 .eraseblocks = {
4899 {64 * 1024, 127}, // inaccessible
4900 {8 * 1024, 8}
4901 },
4902 .block_erase = spi_block_erase_40,
4903 }, { */
4904 .eraseblocks = { {64 * 1024, 128} },
4905 .block_erase = spi_block_erase_d8,
4906 }, {
4907 .eraseblocks = { {8 * 1024 * 1024, 1} },
4908 .block_erase = spi_block_erase_c7,
4909 }
4910 },
4911 .printlock = spi_prettyprint_status_register_s33,
4912 .unlock = spi_disable_blockprotect_s33,
4913 .write = spi_chip_write_256,
4914 .read = spi_chip_read, /* also fast read 0x0B */
4915 .voltage = {2700, 3600},
4916 },
4917
4918 {
4919 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004920 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004921 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004922 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004923 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004924 .total_size = 128,
4925 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004926 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004927 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004928 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004929 .block_erasers =
4930 {
4931 {
4932 .eraseblocks = {
4933 {8 * 1024, 1},
4934 {4 * 1024, 2},
4935 {112 * 1024, 1},
4936 },
Sean Nelson28accc22010-03-19 18:47:06 +00004937 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004938 },
4939 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004940 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004942 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004943 },
4944
4945 {
4946 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004947 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004948 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004949 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004950 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004951 .total_size = 128,
4952 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004953 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004954 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004955 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004956 .block_erasers =
4957 {
4958 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004959 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004960 {112 * 1024, 1},
4961 {4 * 1024, 2},
4962 {8 * 1024, 1},
4963 },
Sean Nelson28accc22010-03-19 18:47:06 +00004964 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004965 },
4966 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004967 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004969 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004970 },
4971
4972 {
4973 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004974 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004975 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004976 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004977 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004978 .total_size = 256,
4979 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004980 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004981 .probe = probe_82802ab,
4982 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4983 .block_erasers =
4984 {
4985 {
4986 .eraseblocks = {
4987 {128 * 1024, 1},
4988 {96 * 1024, 1},
4989 {8 * 1024, 2},
4990 {16 * 1024, 1},
4991 },
4992 .block_erase = erase_block_82802ab,
4993 },
4994 },
4995 .write = write_82802ab,
4996 .read = read_memmapped,
4997 },
4998
4999 {
5000 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005001 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005002 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005003 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005004 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005005 .total_size = 512,
5006 .page_size = 256,
5007 .tested = TEST_UNTESTED,
5008 .probe = probe_82802ab,
5009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005010 .block_erasers =
5011 {
5012 {
5013 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005014 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005015 },
5016 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005017 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005018 .write = write_82802ab,
5019 .read = read_memmapped,
5020 },
5021
5022 {
5023 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005024 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005025 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005026 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005027 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005028 .total_size = 512,
5029 .page_size = 128 * 1024, /* maximal block size */
5030 .tested = TEST_UNTESTED,
5031 .probe = probe_82802ab,
5032 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5033 .block_erasers =
5034 {
5035 {
5036 .eraseblocks = {
5037 {16 * 1024, 1},
5038 {8 * 1024, 2},
5039 {96 * 1024, 1},
5040 {128 * 1024, 3},
5041 },
5042 .block_erase = erase_block_82802ab,
5043 },
5044 },
5045 .write = write_82802ab,
5046 .read = read_memmapped,
5047 },
5048
5049 {
5050 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005051 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005052 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005053 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005054 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005055 .total_size = 512,
5056 .page_size = 128 * 1024, /* maximal block size */
5057 .tested = TEST_UNTESTED,
5058 .probe = probe_82802ab,
5059 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5060 .block_erasers =
5061 {
5062 {
5063 .eraseblocks = {
5064 {128 * 1024, 3},
5065 {96 * 1024, 1},
5066 {8 * 1024, 2},
5067 {16 * 1024, 1},
5068 },
5069 .block_erase = erase_block_82802ab,
5070 },
5071 },
5072 .write = write_82802ab,
5073 .read = read_memmapped,
5074 },
5075
5076 {
5077 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005078 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005079 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005080 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005081 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005082 .total_size = 512,
5083 .page_size = 128 * 1024, /* maximal block size */
5084 .feature_bits = FEATURE_ADDR_SHIFTED,
5085 .tested = TEST_UNTESTED,
5086 .probe = probe_82802ab,
5087 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5088 .block_erasers =
5089 {
5090 {
5091 .eraseblocks = {
5092 {16 * 1024, 1},
5093 {8 * 1024, 2},
5094 {96 * 1024, 1},
5095 {128 * 1024, 3},
5096 },
5097 .block_erase = erase_block_82802ab,
5098 },
5099 },
5100 .write = write_82802ab,
5101 .read = read_memmapped,
5102 },
5103
5104 {
5105 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005106 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005107 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005108 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005109 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005110 .total_size = 512,
5111 .page_size = 128 * 1024, /* maximal block size */
5112 .feature_bits = FEATURE_ADDR_SHIFTED,
5113 .tested = TEST_UNTESTED,
5114 .probe = probe_82802ab,
5115 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5116 .block_erasers =
5117 {
5118 {
5119 .eraseblocks = {
5120 {128 * 1024, 3},
5121 {96 * 1024, 1},
5122 {8 * 1024, 2},
5123 {16 * 1024, 1},
5124 },
5125 .block_erase = erase_block_82802ab,
5126 },
5127 },
5128 .write = write_82802ab,
5129 .read = read_memmapped,
5130 },
5131
5132 {
5133 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005134 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005135 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005136 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005137 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 .total_size = 512,
5139 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005140 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005141 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005142 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005143 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005144 .block_erasers =
5145 {
5146 {
5147 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005148 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005149 },
5150 },
Sean Nelson28accc22010-03-19 18:47:06 +00005151 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005152 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005154 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005155 },
5156
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005157 {
5158 .vendor = "Intel",
5159 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005160 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005161 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005162 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005163 .total_size = 1024,
5164 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005165 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005166 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005167 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005168 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005169 .block_erasers =
5170 {
5171 {
5172 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005173 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005174 },
5175 },
Sean Nelson28accc22010-03-19 18:47:06 +00005176 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005177 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005179 .voltage = {3000, 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 = "MX25L512(E)/MX25V512(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_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005188 .total_size = 64,
5189 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005190 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005191 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005192 .tested = TEST_UNTESTED,
5193 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005194 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005195 .block_erasers =
5196 {
5197 {
5198 .eraseblocks = { {4 * 1024, 16} },
5199 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005200 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005201 .eraseblocks = { {64 * 1024, 1} },
5202 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005203 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005204 .eraseblocks = { {64 * 1024, 1} },
5205 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005206 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005207 .eraseblocks = { {64 * 1024, 1} },
5208 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005209 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005210 .eraseblocks = { {64 * 1024, 1} },
5211 .block_erase = spi_block_erase_c7,
5212 },
5213 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005214 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005215 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005216 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005217 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5218 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005219 },
5220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005221 {
5222 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005223 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005224 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005225 .manufacture_id = MACRONIX_ID,
5226 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005227 .total_size = 128,
5228 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005229 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005230 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005231 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005232 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005233 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005234 .block_erasers =
5235 {
5236 {
5237 .eraseblocks = { {4 * 1024, 32} },
5238 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005239 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005240 .eraseblocks = { {64 * 1024, 2} },
5241 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005242 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005243 .eraseblocks = { {128 * 1024, 1} },
5244 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005245 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005246 .eraseblocks = { {128 * 1024, 1} },
5247 .block_erase = spi_block_erase_c7,
5248 },
5249 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005250 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005251 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005252 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005253 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005254 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005255 },
5256
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005257 {
5258 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005259 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005260 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005261 .manufacture_id = MACRONIX_ID,
5262 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005263 .total_size = 256,
5264 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005265 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005266 .tested = TEST_UNTESTED,
5267 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005268 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005269 .block_erasers =
5270 {
5271 {
5272 .eraseblocks = { {4 * 1024, 64} },
5273 .block_erase = spi_block_erase_20,
5274 }, {
5275 .eraseblocks = { {64 * 1024, 4} },
5276 .block_erase = spi_block_erase_52,
5277 }, {
5278 .eraseblocks = { {64 * 1024, 4} },
5279 .block_erase = spi_block_erase_d8,
5280 }, {
5281 .eraseblocks = { {256 * 1024, 1} },
5282 .block_erase = spi_block_erase_60,
5283 }, {
5284 .eraseblocks = { {256 * 1024, 1} },
5285 .block_erase = spi_block_erase_c7,
5286 },
5287 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005288 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005289 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005290 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005291 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005292 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005293 },
5294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005295 {
5296 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005297 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005298 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005299 .manufacture_id = MACRONIX_ID,
5300 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005301 .total_size = 512,
5302 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005303 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005304 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005305 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005306 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005307 .block_erasers =
5308 {
5309 {
5310 .eraseblocks = { {4 * 1024, 128} },
5311 .block_erase = spi_block_erase_20,
5312 }, {
5313 .eraseblocks = { {64 * 1024, 8} },
5314 .block_erase = spi_block_erase_52,
5315 }, {
5316 .eraseblocks = { {64 * 1024, 8} },
5317 .block_erase = spi_block_erase_d8,
5318 }, {
5319 .eraseblocks = { {512 * 1024, 1} },
5320 .block_erase = spi_block_erase_60,
5321 }, {
5322 .eraseblocks = { {512 * 1024, 1} },
5323 .block_erase = spi_block_erase_c7,
5324 },
5325 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005326 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005327 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005328 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005329 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005330 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005331 },
5332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005333 {
5334 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005335 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005336 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005337 .manufacture_id = MACRONIX_ID,
5338 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005339 .total_size = 1024,
5340 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005341 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005342 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005343 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005344 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005345 .block_erasers =
5346 {
5347 {
5348 .eraseblocks = { {4 * 1024, 256} },
5349 .block_erase = spi_block_erase_20,
5350 }, {
5351 .eraseblocks = { {64 * 1024, 16} },
5352 .block_erase = spi_block_erase_52,
5353 }, {
5354 .eraseblocks = { {64 * 1024, 16} },
5355 .block_erase = spi_block_erase_d8,
5356 }, {
5357 .eraseblocks = { {1024 * 1024, 1} },
5358 .block_erase = spi_block_erase_60,
5359 }, {
5360 .eraseblocks = { {1024 * 1024, 1} },
5361 .block_erase = spi_block_erase_c7,
5362 },
5363 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005364 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005365 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005366 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005367 .read = spi_chip_read, /* Fast read (0x0B) supported */
5368 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005369 },
5370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005371 {
5372 .vendor = "Macronix",
5373 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005374 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005375 .manufacture_id = MACRONIX_ID,
5376 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005377 .total_size = 2048,
5378 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005379 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005380 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005382 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005383 .block_erasers =
5384 {
5385 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005386 .eraseblocks = { {64 * 1024, 32} },
5387 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005388 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005389 .eraseblocks = { {64 * 1024, 32} },
5390 .block_erase = spi_block_erase_d8,
5391 }, {
5392 .eraseblocks = { {2 * 1024 * 1024, 1} },
5393 .block_erase = spi_block_erase_60,
5394 }, {
5395 .eraseblocks = { {2 * 1024 * 1024, 1} },
5396 .block_erase = spi_block_erase_c7,
5397 },
5398 },
5399 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5400 .unlock = spi_disable_blockprotect,
5401 .write = spi_chip_write_256,
5402 .read = spi_chip_read, /* Fast read (0x0B) supported */
5403 .voltage = {2700, 3600},
5404 },
5405
5406 {
5407 .vendor = "Macronix",
5408 .name = "MX25L1605A/MX25L1606E",
5409 .bustype = BUS_SPI,
5410 .manufacture_id = MACRONIX_ID,
5411 .model_id = MACRONIX_MX25L1605,
5412 .total_size = 2048,
5413 .page_size = 256,
5414 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5416 .tested = TEST_OK_PREW,
5417 .probe = probe_spi_rdid,
5418 .probe_timing = TIMING_ZERO,
5419 .block_erasers =
5420 {
5421 {
5422 .eraseblocks = { {4 * 1024, 512} },
5423 .block_erase = spi_block_erase_20,
5424 }, {
5425 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005426 .block_erase = spi_block_erase_52,
5427 }, {
5428 .eraseblocks = { {64 * 1024, 32} },
5429 .block_erase = spi_block_erase_d8,
5430 }, {
5431 .eraseblocks = { {2 * 1024 * 1024, 1} },
5432 .block_erase = spi_block_erase_60,
5433 }, {
5434 .eraseblocks = { {2 * 1024 * 1024, 1} },
5435 .block_erase = spi_block_erase_c7,
5436 },
5437 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005438 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005439 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005440 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005441 .read = spi_chip_read, /* Fast read (0x0B) supported */
5442 .voltage = {2700, 3600},
5443 },
5444
5445 {
5446 .vendor = "Macronix",
5447 .name = "MX25L1605D/MX25L1608D",
5448 .bustype = BUS_SPI,
5449 .manufacture_id = MACRONIX_ID,
5450 .model_id = MACRONIX_MX25L1605,
5451 .total_size = 2048,
5452 .page_size = 256,
5453 .feature_bits = FEATURE_WRSR_WREN,
5454 .tested = TEST_OK_PREW,
5455 .probe = probe_spi_rdid,
5456 .probe_timing = TIMING_ZERO,
5457 .block_erasers =
5458 {
5459 {
5460 .eraseblocks = { {4 * 1024, 512} },
5461 .block_erase = spi_block_erase_20,
5462 }, {
5463 .eraseblocks = { {64 * 1024, 32} },
5464 .block_erase = spi_block_erase_d8,
5465 }, {
5466 .eraseblocks = { {2 * 1024 * 1024, 1} },
5467 .block_erase = spi_block_erase_60,
5468 }, {
5469 .eraseblocks = { {2 * 1024 * 1024, 1} },
5470 .block_erase = spi_block_erase_c7,
5471 },
5472 },
5473 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5474 .unlock = spi_disable_blockprotect,
5475 .write = spi_chip_write_256,
5476 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005477 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005478 },
5479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005480 {
5481 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005482 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005483 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005484 .manufacture_id = MACRONIX_ID,
5485 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005486 .total_size = 2048,
5487 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005488 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005490 .tested = TEST_UNTESTED,
5491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005492 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005493 .block_erasers =
5494 {
5495 {
5496 .eraseblocks = { {4 * 1024, 512} },
5497 .block_erase = spi_block_erase_20,
5498 }, {
5499 .eraseblocks = { {64 * 1024, 32} },
5500 .block_erase = spi_block_erase_d8,
5501 }, {
5502 .eraseblocks = { {2 * 1024 * 1024, 1} },
5503 .block_erase = spi_block_erase_60,
5504 }, {
5505 .eraseblocks = { {2 * 1024 * 1024, 1} },
5506 .block_erase = spi_block_erase_c7,
5507 }
5508 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005509 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005511 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005512 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005513 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005514 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005515
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005516 {
5517 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005518 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005519 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005520 .manufacture_id = MACRONIX_ID,
5521 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005522 .total_size = 2048,
5523 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005524 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005526 .tested = TEST_UNTESTED,
5527 .probe = probe_spi_rdid,
5528 .probe_timing = TIMING_ZERO,
5529 .block_erasers =
5530 {
5531 {
5532 .eraseblocks = { {4 * 1024, 512} },
5533 .block_erase = spi_block_erase_20,
5534 }, {
5535 .eraseblocks = { {64 * 1024, 32} },
5536 .block_erase = spi_block_erase_d8,
5537 }, {
5538 .eraseblocks = { {2 * 1024 * 1024, 1} },
5539 .block_erase = spi_block_erase_60,
5540 }, {
5541 .eraseblocks = { {2 * 1024 * 1024, 1} },
5542 .block_erase = spi_block_erase_c7,
5543 }
5544 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005545 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005546 .unlock = spi_disable_blockprotect,
5547 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005549 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005550 },
5551
5552 {
5553 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005554 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005555 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005556 .manufacture_id = MACRONIX_ID,
5557 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005558 .total_size = 4096,
5559 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005560 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005561 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005562 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005563 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005564 .block_erasers =
5565 {
5566 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005567 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005568 .block_erase = spi_block_erase_20,
5569 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005570 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005571 .block_erase = spi_block_erase_d8,
5572 }, {
5573 .eraseblocks = { {4 * 1024 * 1024, 1} },
5574 .block_erase = spi_block_erase_60,
5575 }, {
5576 .eraseblocks = { {4 * 1024 * 1024, 1} },
5577 .block_erase = spi_block_erase_c7,
5578 },
5579 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005580 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005581 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005582 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005583 .read = spi_chip_read, /* Fast read (0x0B) supported */
5584 .voltage = {2700, 3600},
5585 },
5586
5587 {
5588 .vendor = "Macronix",
5589 .name = "MX25L3205D/MX25L3208D",
5590 .bustype = BUS_SPI,
5591 .manufacture_id = MACRONIX_ID,
5592 .model_id = MACRONIX_MX25L3205,
5593 .total_size = 4096,
5594 .page_size = 256,
5595 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5597 .tested = TEST_OK_PREW,
5598 .probe = probe_spi_rdid,
5599 .probe_timing = TIMING_ZERO,
5600 .block_erasers =
5601 {
5602 {
5603 .eraseblocks = { {4 * 1024, 1024} },
5604 .block_erase = spi_block_erase_20,
5605 }, {
5606 .eraseblocks = { {64 * 1024, 64} },
5607 .block_erase = spi_block_erase_d8,
5608 }, {
5609 .eraseblocks = { {4 * 1024 * 1024, 1} },
5610 .block_erase = spi_block_erase_60,
5611 }, {
5612 .eraseblocks = { {4 * 1024 * 1024, 1} },
5613 .block_erase = spi_block_erase_c7,
5614 },
5615 },
5616 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
5617 .unlock = spi_disable_blockprotect,
5618 .write = spi_chip_write_256,
5619 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
5620 .voltage = {2700, 3600},
5621 },
5622
5623 {
5624 .vendor = "Macronix",
5625 .name = "MX25L3206E",
5626 .bustype = BUS_SPI,
5627 .manufacture_id = MACRONIX_ID,
5628 .model_id = MACRONIX_MX25L3205,
5629 .total_size = 4096,
5630 .page_size = 256,
5631 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5633 .tested = TEST_OK_PREW,
5634 .probe = probe_spi_rdid,
5635 .probe_timing = TIMING_ZERO,
5636 .block_erasers =
5637 {
5638 {
5639 .eraseblocks = { {4 * 1024, 1024} },
5640 .block_erase = spi_block_erase_20,
5641 }, {
5642 .eraseblocks = { {64 * 1024, 64} },
5643 .block_erase = spi_block_erase_d8,
5644 }, {
5645 .eraseblocks = { {64 * 1024, 64} },
5646 .block_erase = spi_block_erase_52,
5647 }, {
5648 .eraseblocks = { {4 * 1024 * 1024, 1} },
5649 .block_erase = spi_block_erase_60,
5650 }, {
5651 .eraseblocks = { {4 * 1024 * 1024, 1} },
5652 .block_erase = spi_block_erase_c7,
5653 },
5654 },
5655 .printlock = spi_prettyprint_status_register_default_bp3,
5656 .unlock = spi_disable_blockprotect,
5657 .write = spi_chip_write_256,
5658 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005659 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005660 },
5661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005662 {
5663 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005664 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005665 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005666 .manufacture_id = MACRONIX_ID,
5667 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005668 .total_size = 4096,
5669 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005670 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
5671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005672 .tested = TEST_UNTESTED,
5673 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005674 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005675 .block_erasers =
5676 {
5677 {
5678 .eraseblocks = { {4 * 1024, 1024} },
5679 .block_erase = spi_block_erase_20,
5680 }, {
5681 .eraseblocks = { {64 * 1024, 64} },
5682 .block_erase = spi_block_erase_d8,
5683 }, {
5684 .eraseblocks = { {4 * 1024 * 1024, 1} },
5685 .block_erase = spi_block_erase_60,
5686 }, {
5687 .eraseblocks = { {4 * 1024 * 1024, 1} },
5688 .block_erase = spi_block_erase_c7,
5689 }
5690 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005691 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005692 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005693 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005694 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005695 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005696 },
5697
5698 {
5699 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005700 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005701 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005702 .manufacture_id = MACRONIX_ID,
5703 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005704 .total_size = 8192,
5705 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005706 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
5707 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00005708 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005709 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005710 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005711 .block_erasers =
5712 {
5713 {
5714 .eraseblocks = { {64 * 1024, 128} },
5715 .block_erase = spi_block_erase_20,
5716 }, {
5717 .eraseblocks = { {64 * 1024, 128} },
5718 .block_erase = spi_block_erase_d8,
5719 }, {
5720 .eraseblocks = { {8 * 1024 * 1024, 1} },
5721 .block_erase = spi_block_erase_60,
5722 }, {
5723 .eraseblocks = { {8 * 1024 * 1024, 1} },
5724 .block_erase = spi_block_erase_c7,
5725 }
5726 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005727 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005728 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005729 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005730 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005731 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005732 },
5733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005734 {
5735 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005736 .name = "MX25L6406E/MX25L6436E",
5737 .bustype = BUS_SPI,
5738 .manufacture_id = MACRONIX_ID,
5739 .model_id = MACRONIX_MX25L6405,
5740 .total_size = 8192,
5741 .page_size = 256,
5742 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
5743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5744 .tested = TEST_OK_PREW,
5745 .probe = probe_spi_rdid,
5746 .probe_timing = TIMING_ZERO,
5747 .block_erasers =
5748 {
5749 {
5750 .eraseblocks = { {4 * 1024, 2048} },
5751 .block_erase = spi_block_erase_20,
5752 }, {
5753 .eraseblocks = { {64 * 1024, 128} },
5754 .block_erase = spi_block_erase_d8,
5755 }, {
5756 .eraseblocks = { {8 * 1024 * 1024, 1} },
5757 .block_erase = spi_block_erase_60,
5758 }, {
5759 .eraseblocks = { {8 * 1024 * 1024, 1} },
5760 .block_erase = spi_block_erase_c7,
5761 }
5762 },
5763 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
5764 .unlock = spi_disable_blockprotect,
5765 .write = spi_chip_write_256,
5766 .read = spi_chip_read,
5767 .voltage = {2700, 3600},
5768 },
5769
5770 {
5771 .vendor = "Macronix",
5772 .name = "MX25L6445E",
5773 .bustype = BUS_SPI,
5774 .manufacture_id = MACRONIX_ID,
5775 .model_id = MACRONIX_MX25L6405,
5776 .total_size = 8192,
5777 .page_size = 256,
5778 /* supports SFDP */
5779 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5780 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5781 .tested = TEST_OK_PREW,
5782 .probe = probe_spi_rdid,
5783 .probe_timing = TIMING_ZERO,
5784 .block_erasers =
5785 {
5786 {
5787 .eraseblocks = { {4 * 1024, 2048} },
5788 .block_erase = spi_block_erase_20,
5789 }, {
5790 .eraseblocks = { {32 * 1024, 256} },
5791 .block_erase = spi_block_erase_52,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 128} },
5794 .block_erase = spi_block_erase_d8,
5795 }, {
5796 .eraseblocks = { {8 * 1024 * 1024, 1} },
5797 .block_erase = spi_block_erase_60,
5798 }, {
5799 .eraseblocks = { {8 * 1024 * 1024, 1} },
5800 .block_erase = spi_block_erase_c7,
5801 }
5802 },
5803 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5804 .unlock = spi_disable_blockprotect,
5805 .write = spi_chip_write_256,
5806 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5807 .voltage = {2700, 3600},
5808 },
5809
5810 {
5811 .vendor = "Macronix",
5812 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005813 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005814 .manufacture_id = MACRONIX_ID,
5815 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005816 .total_size = 16384,
5817 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005818 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
5819 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005820 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005821 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005822 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005823 .block_erasers =
5824 {
5825 {
5826 .eraseblocks = { {4 * 1024, 4096} },
5827 .block_erase = spi_block_erase_20,
5828 }, {
5829 .eraseblocks = { {64 * 1024, 256} },
5830 .block_erase = spi_block_erase_d8,
5831 }, {
5832 .eraseblocks = { {16 * 1024 * 1024, 1} },
5833 .block_erase = spi_block_erase_60,
5834 }, {
5835 .eraseblocks = { {16 * 1024 * 1024, 1} },
5836 .block_erase = spi_block_erase_c7,
5837 }
5838 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005839 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005840 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005841 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005842 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005843 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005844 },
5845
5846 {
5847 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00005848 .name = "MX25U1635E",
5849 .bustype = BUS_SPI,
5850 .manufacture_id = MACRONIX_ID,
5851 .model_id = MACRONIX_MX25U1635E,
5852 .total_size = 2048,
5853 .page_size = 256,
5854 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5855 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5856 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5857 .tested = TEST_UNTESTED,
5858 .probe = probe_spi_rdid,
5859 .probe_timing = TIMING_ZERO,
5860 .block_erasers =
5861 {
5862 {
5863 .eraseblocks = { {4 * 1024, 512} },
5864 .block_erase = spi_block_erase_20,
5865 }, {
5866 .eraseblocks = { {32 * 1024, 64} },
5867 .block_erase = spi_block_erase_52,
5868 }, {
5869 .eraseblocks = { {64 * 1024, 32} },
5870 .block_erase = spi_block_erase_d8,
5871 }, {
5872 .eraseblocks = { {2 * 1024 * 1024, 1} },
5873 .block_erase = spi_block_erase_60,
5874 }, {
5875 .eraseblocks = { {2 * 1024 * 1024, 1} },
5876 .block_erase = spi_block_erase_c7,
5877 }
5878 },
5879 /* TODO: security register */
5880 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5881 .unlock = spi_disable_blockprotect,
5882 .write = spi_chip_write_256,
5883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5884 .voltage = {1650, 2000},
5885 },
5886
5887 {
5888 .vendor = "Macronix",
5889 .name = "MX25U3235E/F",
5890 .bustype = BUS_SPI,
5891 .manufacture_id = MACRONIX_ID,
5892 .model_id = MACRONIX_MX25U3235E,
5893 .total_size = 4096,
5894 .page_size = 256,
5895 /* F model supports SFDP */
5896 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5897 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5898 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5899 .tested = TEST_OK_PREW,
5900 .probe = probe_spi_rdid,
5901 .probe_timing = TIMING_ZERO,
5902 .block_erasers =
5903 {
5904 {
5905 .eraseblocks = { {4 * 1024, 1024} },
5906 .block_erase = spi_block_erase_20,
5907 }, {
5908 .eraseblocks = { {32 * 1024, 128} },
5909 .block_erase = spi_block_erase_52,
5910 }, {
5911 .eraseblocks = { {64 * 1024, 64} },
5912 .block_erase = spi_block_erase_d8,
5913 }, {
5914 .eraseblocks = { {4 * 1024 * 1024, 1} },
5915 .block_erase = spi_block_erase_60,
5916 }, {
5917 .eraseblocks = { {4 * 1024 * 1024, 1} },
5918 .block_erase = spi_block_erase_c7,
5919 }
5920 },
5921 /* TODO: security register */
5922 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5923 .unlock = spi_disable_blockprotect,
5924 .write = spi_chip_write_256,
5925 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5926 .voltage = {1650, 2000},
5927 },
5928
5929 {
5930 .vendor = "Macronix",
5931 .name = "MX25U6435E/F",
5932 .bustype = BUS_SPI,
5933 .manufacture_id = MACRONIX_ID,
5934 .model_id = MACRONIX_MX25U6435E,
5935 .total_size = 8192,
5936 .page_size = 256,
5937 /* F model supports SFDP */
5938 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5939 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5941 .tested = TEST_UNTESTED,
5942 .probe = probe_spi_rdid,
5943 .probe_timing = TIMING_ZERO,
5944 .block_erasers =
5945 {
5946 {
5947 .eraseblocks = { {4 * 1024, 2048} },
5948 .block_erase = spi_block_erase_20,
5949 }, {
5950 .eraseblocks = { {32 * 1024, 256} },
5951 .block_erase = spi_block_erase_52,
5952 }, {
5953 .eraseblocks = { {64 * 1024, 128} },
5954 .block_erase = spi_block_erase_d8,
5955 }, {
5956 .eraseblocks = { {8 * 1024 * 1024, 1} },
5957 .block_erase = spi_block_erase_60,
5958 }, {
5959 .eraseblocks = { {8 * 1024 * 1024, 1} },
5960 .block_erase = spi_block_erase_c7,
5961 }
5962 },
5963 /* TODO: security register */
5964 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5965 .unlock = spi_disable_blockprotect,
5966 .write = spi_chip_write_256,
5967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5968 .voltage = {1650, 2000},
5969 },
5970
5971 {
5972 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005973 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005974 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005975 .manufacture_id = MACRONIX_ID,
5976 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005977 .total_size = 128,
5978 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005979 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5980 .tested = TEST_UNTESTED,
5981 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005982 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005983 .block_erasers =
5984 {
5985 {
5986 .eraseblocks = {
5987 {8 * 1024, 1},
5988 {4 * 1024, 2},
5989 {8 * 1024, 2},
5990 {32 * 1024, 1},
5991 {64 * 1024, 1},
5992 },
Sean Nelson35727f72010-01-28 23:55:12 +00005993 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005994 }, {
5995 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005996 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005997 }
5998 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005999 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006001 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006002 },
6003
6004 {
6005 .vendor = "Macronix",
6006 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006007 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006008 .manufacture_id = MACRONIX_ID,
6009 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006010 .total_size = 128,
6011 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006012 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006013 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006014 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006015 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006016 .block_erasers =
6017 {
6018 {
6019 .eraseblocks = {
6020 {64 * 1024, 1},
6021 {32 * 1024, 1},
6022 {8 * 1024, 2},
6023 {4 * 1024, 2},
6024 {8 * 1024, 1},
6025 },
Sean Nelson35727f72010-01-28 23:55:12 +00006026 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006027 }, {
6028 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006029 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006030 }
6031 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006032 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006034 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006035 },
6036
6037 {
6038 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006039 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006040 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006041 .manufacture_id = MACRONIX_ID,
6042 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006043 .total_size = 256,
6044 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006045 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006046 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006047 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006048 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006049 .block_erasers =
6050 {
6051 {
6052 .eraseblocks = {
6053 {16 * 1024, 1},
6054 {8 * 1024, 2},
6055 {32 * 1024, 1},
6056 {64 * 1024, 3},
6057 },
Sean Nelson35727f72010-01-28 23:55:12 +00006058 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006059 }, {
6060 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006061 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006062 },
6063 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006064 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006066 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006067 },
6068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 {
6070 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006071 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006072 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006073 .manufacture_id = MACRONIX_ID,
6074 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006075 .total_size = 256,
6076 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006077 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006078 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006079 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006080 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006081 .block_erasers =
6082 {
6083 {
6084 .eraseblocks = {
6085 {64 * 1024, 3},
6086 {32 * 1024, 1},
6087 {8 * 1024, 2},
6088 {16 * 1024, 1},
6089 },
Sean Nelson35727f72010-01-28 23:55:12 +00006090 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006091 }, {
6092 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006093 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006094 },
6095 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006096 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006098 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006099 },
6100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006101 {
6102 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006103 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006104 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006105 .manufacture_id = MACRONIX_ID,
6106 .model_id = MACRONIX_MX29F040,
6107 .total_size = 512,
6108 .page_size = 64 * 1024,
6109 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6110 .tested = TEST_UNTESTED,
6111 .probe = probe_jedec,
6112 .probe_timing = TIMING_ZERO,
6113 .block_erasers =
6114 {
6115 {
6116 .eraseblocks = { {64 * 1024, 8} },
6117 .block_erase = erase_sector_jedec,
6118 }, {
6119 .eraseblocks = { {512 * 1024, 1} },
6120 .block_erase = erase_chip_block_jedec,
6121 },
6122 },
6123 .write = write_jedec_1,
6124 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006125 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006126 },
6127
6128 {
6129 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006130 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006131 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006132 .manufacture_id = MACRONIX_ID,
6133 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006134 .total_size = 512,
6135 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006136 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6137 .tested = TEST_UNTESTED,
6138 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006139 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006140 .block_erasers =
6141 {
6142 {
6143 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006144 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006145 }, {
6146 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006147 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006148 },
6149 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006152 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006153 },
6154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006156 .vendor = "MoselVitelic",
6157 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006158 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006159 .manufacture_id = SYNCMOS_MVC_ID,
6160 .model_id = MVC_V29C51000B,
6161 .total_size = 64,
6162 .page_size = 512,
6163 .feature_bits = FEATURE_EITHER_RESET,
6164 .tested = TEST_UNTESTED,
6165 .probe = probe_jedec,
6166 .probe_timing = TIMING_ZERO,
6167 .block_erasers =
6168 {
6169 {
6170 .eraseblocks = { {512, 128} },
6171 .block_erase = erase_sector_jedec,
6172 }, {
6173 .eraseblocks = { {64 * 1024, 1} },
6174 .block_erase = erase_chip_block_jedec,
6175 },
6176 },
6177 .write = write_jedec_1,
6178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006179 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006180 },
6181
6182 {
6183 .vendor = "MoselVitelic",
6184 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006185 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006186 .manufacture_id = SYNCMOS_MVC_ID,
6187 .model_id = MVC_V29C51000T,
6188 .total_size = 64,
6189 .page_size = 512,
6190 .feature_bits = FEATURE_EITHER_RESET,
6191 .tested = TEST_UNTESTED,
6192 .probe = probe_jedec,
6193 .probe_timing = TIMING_ZERO,
6194 .block_erasers =
6195 {
6196 {
6197 .eraseblocks = { {512, 128} },
6198 .block_erase = erase_sector_jedec,
6199 }, {
6200 .eraseblocks = { {64 * 1024, 1} },
6201 .block_erase = erase_chip_block_jedec,
6202 },
6203 },
6204 .write = write_jedec_1,
6205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006206 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006207 },
6208
6209 {
6210 .vendor = "MoselVitelic",
6211 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006212 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006213 .manufacture_id = SYNCMOS_MVC_ID,
6214 .model_id = MVC_V29C51400B,
6215 .total_size = 512,
6216 .page_size = 1024,
6217 .feature_bits = FEATURE_EITHER_RESET,
6218 .tested = TEST_UNTESTED,
6219 .probe = probe_jedec,
6220 .probe_timing = TIMING_ZERO,
6221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = { {1024, 512} },
6225 .block_erase = erase_sector_jedec,
6226 }, {
6227 .eraseblocks = { {512 * 1024, 1} },
6228 .block_erase = erase_chip_block_jedec,
6229 },
6230 },
6231 .write = write_jedec_1,
6232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006233 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006234 },
6235
6236 {
6237 .vendor = "MoselVitelic",
6238 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006239 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006240 .manufacture_id = SYNCMOS_MVC_ID,
6241 .model_id = MVC_V29C51400T,
6242 .total_size = 512,
6243 .page_size = 1024,
6244 .feature_bits = FEATURE_EITHER_RESET,
6245 .tested = TEST_UNTESTED,
6246 .probe = probe_jedec,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = { {1024, 512} },
6252 .block_erase = erase_sector_jedec,
6253 }, {
6254 .eraseblocks = { {512 * 1024, 1} },
6255 .block_erase = erase_chip_block_jedec,
6256 },
6257 },
6258 .write = write_jedec_1,
6259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006260 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006261 },
6262
6263 {
6264 .vendor = "MoselVitelic",
6265 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006266 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006267 .manufacture_id = SYNCMOS_MVC_ID,
6268 .model_id = MVC_V29LC51000,
6269 .total_size = 64,
6270 .page_size = 512,
6271 .feature_bits = FEATURE_EITHER_RESET,
6272 .tested = TEST_UNTESTED,
6273 .probe = probe_jedec,
6274 .probe_timing = TIMING_ZERO,
6275 .block_erasers =
6276 {
6277 {
6278 .eraseblocks = { {512, 128} },
6279 .block_erase = erase_sector_jedec,
6280 }, {
6281 .eraseblocks = { {64 * 1024, 1} },
6282 .block_erase = erase_chip_block_jedec,
6283 },
6284 },
6285 .write = write_jedec_1,
6286 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006287 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006288 },
6289
6290 {
6291 .vendor = "MoselVitelic",
6292 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006293 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006294 .manufacture_id = SYNCMOS_MVC_ID,
6295 .model_id = MVC_V29LC51001,
6296 .total_size = 128,
6297 .page_size = 512,
6298 .feature_bits = FEATURE_EITHER_RESET,
6299 .tested = TEST_UNTESTED,
6300 .probe = probe_jedec,
6301 .probe_timing = TIMING_ZERO,
6302 .block_erasers =
6303 {
6304 {
6305 .eraseblocks = { {512, 256} },
6306 .block_erase = erase_sector_jedec,
6307 }, {
6308 .eraseblocks = { {128 * 1024, 1} },
6309 .block_erase = erase_chip_block_jedec,
6310 },
6311 },
6312 .write = write_jedec_1,
6313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006314 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006315 },
6316
6317 {
6318 .vendor = "MoselVitelic",
6319 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006320 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006321 .manufacture_id = SYNCMOS_MVC_ID,
6322 .model_id = MVC_V29LC51002,
6323 .total_size = 256,
6324 .page_size = 512,
6325 .feature_bits = FEATURE_EITHER_RESET,
6326 .tested = TEST_UNTESTED,
6327 .probe = probe_jedec,
6328 .probe_timing = TIMING_ZERO,
6329 .block_erasers =
6330 {
6331 {
6332 .eraseblocks = { {512, 512} },
6333 .block_erase = erase_sector_jedec,
6334 }, {
6335 .eraseblocks = { {256 * 1024, 1} },
6336 .block_erase = erase_chip_block_jedec,
6337 },
6338 },
6339 .write = write_jedec_1,
6340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006341 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006342 },
6343
6344 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00006345 .vendor = "Nantronics",
6346 .name = "N25S10",
6347 .bustype = BUS_SPI,
6348 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6349 .model_id = NANTRONICS_N25S10,
6350 .total_size = 128,
6351 .page_size = 256,
6352 .feature_bits = FEATURE_WRSR_WREN,
6353 .tested = TEST_UNTESTED,
6354 .probe = probe_spi_rdid,
6355 .probe_timing = TIMING_ZERO,
6356 .block_erasers =
6357 {
6358 {
6359 .eraseblocks = { {4 * 1024, 32} },
6360 .block_erase = spi_block_erase_20,
6361 }, {
6362 .eraseblocks = { {4 * 1024, 32} },
6363 .block_erase = spi_block_erase_d7,
6364 }, {
6365 .eraseblocks = { {32 * 1024, 4} },
6366 .block_erase = spi_block_erase_52,
6367 }, {
6368 .eraseblocks = { {64 * 1024, 2} },
6369 .block_erase = spi_block_erase_d8,
6370 }, {
6371 .eraseblocks = { {128 * 1024, 1} },
6372 .block_erase = spi_block_erase_60,
6373 }, {
6374 .eraseblocks = { {128 * 1024, 1} },
6375 .block_erase = spi_block_erase_c7,
6376 }
6377 },
6378 .printlock = spi_prettyprint_status_register_default_bp3,
6379 .unlock = spi_disable_blockprotect_bp3_srwd,
6380 .write = spi_chip_write_256,
6381 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6382 .voltage = {2700, 3600},
6383 },
6384
6385 {
6386 .vendor = "Nantronics",
6387 .name = "N25S20",
6388 .bustype = BUS_SPI,
6389 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6390 .model_id = NANTRONICS_N25S20,
6391 .total_size = 256,
6392 .page_size = 256,
6393 .feature_bits = FEATURE_WRSR_WREN,
6394 .tested = TEST_UNTESTED,
6395 .probe = probe_spi_rdid,
6396 .probe_timing = TIMING_ZERO,
6397 .block_erasers =
6398 {
6399 {
6400 .eraseblocks = { {4 * 1024, 64} },
6401 .block_erase = spi_block_erase_20,
6402 }, {
6403 .eraseblocks = { {4 * 1024, 64} },
6404 .block_erase = spi_block_erase_d7,
6405 }, {
6406 .eraseblocks = { {32 * 1024, 8} },
6407 .block_erase = spi_block_erase_52,
6408 }, {
6409 .eraseblocks = { {64 * 1024, 4} },
6410 .block_erase = spi_block_erase_d8,
6411 }, {
6412 .eraseblocks = { {256 * 1024, 1} },
6413 .block_erase = spi_block_erase_60,
6414 }, {
6415 .eraseblocks = { {256 * 1024, 1} },
6416 .block_erase = spi_block_erase_c7,
6417 }
6418 },
6419 .printlock = spi_prettyprint_status_register_default_bp3,
6420 .unlock = spi_disable_blockprotect_bp3_srwd,
6421 .write = spi_chip_write_256,
6422 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6423 .voltage = {2700, 3600},
6424 },
6425
6426 {
6427 .vendor = "Nantronics",
6428 .name = "N25S40",
6429 .bustype = BUS_SPI,
6430 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6431 .model_id = NANTRONICS_N25S40,
6432 .total_size = 512,
6433 .page_size = 256,
6434 .feature_bits = FEATURE_WRSR_WREN,
6435 .tested = TEST_UNTESTED,
6436 .probe = probe_spi_rdid,
6437 .probe_timing = TIMING_ZERO,
6438 .block_erasers =
6439 {
6440 {
6441 .eraseblocks = { {4 * 1024, 128} },
6442 .block_erase = spi_block_erase_20,
6443 }, {
6444 .eraseblocks = { {4 * 1024, 128} },
6445 .block_erase = spi_block_erase_d7,
6446 }, {
6447 .eraseblocks = { {32 * 1024, 16} },
6448 .block_erase = spi_block_erase_52,
6449 }, {
6450 .eraseblocks = { {64 * 1024, 8} },
6451 .block_erase = spi_block_erase_d8,
6452 }, {
6453 .eraseblocks = { {512 * 1024, 1} },
6454 .block_erase = spi_block_erase_60,
6455 }, {
6456 .eraseblocks = { {512 * 1024, 1} },
6457 .block_erase = spi_block_erase_c7,
6458 }
6459 },
6460 .printlock = spi_prettyprint_status_register_default_bp3,
6461 .unlock = spi_disable_blockprotect_bp3_srwd,
6462 .write = spi_chip_write_256,
6463 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6464 .voltage = {2700, 3600},
6465 },
6466
6467 {
6468 .vendor = "Nantronics",
6469 .name = "N25S80",
6470 .bustype = BUS_SPI,
6471 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6472 .model_id = NANTRONICS_N25S80,
6473 .total_size = 1024,
6474 .page_size = 256,
6475 .feature_bits = FEATURE_WRSR_WREN,
6476 .tested = TEST_UNTESTED,
6477 .probe = probe_spi_rdid,
6478 .probe_timing = TIMING_ZERO,
6479 .block_erasers =
6480 {
6481 {
6482 .eraseblocks = { {4 * 1024, 256} },
6483 .block_erase = spi_block_erase_20,
6484 }, {
6485 .eraseblocks = { {32 * 1024, 32} },
6486 .block_erase = spi_block_erase_52,
6487 }, {
6488 .eraseblocks = { {64 * 1024, 16} },
6489 .block_erase = spi_block_erase_d8,
6490 }, {
6491 .eraseblocks = { {1024 * 1024, 1} },
6492 .block_erase = spi_block_erase_60,
6493 }, {
6494 .eraseblocks = { {1024 * 1024, 1} },
6495 .block_erase = spi_block_erase_c7,
6496 }
6497 },
6498 .printlock = spi_prettyprint_status_register_default_bp3,
6499 .unlock = spi_disable_blockprotect_bp3_srwd,
6500 .write = spi_chip_write_256,
6501 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6502 .voltage = {2700, 3600},
6503 },
6504
6505 {
6506 .vendor = "Nantronics",
6507 .name = "N25S16",
6508 .bustype = BUS_SPI,
6509 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6510 .model_id = NANTRONICS_N25S16,
6511 .total_size = 2048,
6512 .page_size = 256,
6513 .feature_bits = FEATURE_WRSR_WREN,
6514 .tested = TEST_UNTESTED,
6515 .probe = probe_spi_rdid,
6516 .probe_timing = TIMING_ZERO,
6517 .block_erasers =
6518 {
6519 {
6520 .eraseblocks = { {4 * 1024, 512} },
6521 .block_erase = spi_block_erase_20,
6522 }, {
6523 .eraseblocks = { {64 * 1024, 32} },
6524 .block_erase = spi_block_erase_d8,
6525 }, {
6526 .eraseblocks = { {2048 * 1024, 1} },
6527 .block_erase = spi_block_erase_60,
6528 }, {
6529 .eraseblocks = { {2048 * 1024, 1} },
6530 .block_erase = spi_block_erase_c7,
6531 }
6532 },
6533 .printlock = spi_prettyprint_status_register_default_bp3,
6534 .unlock = spi_disable_blockprotect_bp3_srwd,
6535 .write = spi_chip_write_256,
6536 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6537 .voltage = {2700, 3600},
6538 },
6539
6540 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006541 .vendor = "Numonyx",
6542 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006543 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006544 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006545 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006546 .total_size = 128,
6547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006548 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006549 .tested = TEST_UNTESTED,
6550 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006551 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006552 .block_erasers =
6553 {
6554 {
6555 .eraseblocks = { {4 * 1024, 32} },
6556 .block_erase = spi_block_erase_20,
6557 }, {
6558 .eraseblocks = { {64 * 1024, 2} },
6559 .block_erase = spi_block_erase_d8,
6560 }, {
6561 .eraseblocks = { {128 * 1024, 1} },
6562 .block_erase = spi_block_erase_c7,
6563 }
6564 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006565 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006566 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006567 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006568 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006569 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006570 },
6571
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006572 {
6573 .vendor = "Numonyx",
6574 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006575 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006576 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006577 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006578 .total_size = 256,
6579 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006580 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006581 .tested = TEST_UNTESTED,
6582 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006583 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006584 .block_erasers =
6585 {
6586 {
6587 .eraseblocks = { {4 * 1024, 64} },
6588 .block_erase = spi_block_erase_20,
6589 }, {
6590 .eraseblocks = { {64 * 1024, 4} },
6591 .block_erase = spi_block_erase_d8,
6592 }, {
6593 .eraseblocks = { {256 * 1024, 1} },
6594 .block_erase = spi_block_erase_c7,
6595 }
6596 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006598 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006599 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006600 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006601 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006602 },
6603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006604 {
6605 .vendor = "Numonyx",
6606 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006607 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006608 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006609 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00006610 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006611 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006612 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006613 .tested = TEST_UNTESTED,
6614 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006615 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006616 .block_erasers =
6617 {
6618 {
6619 .eraseblocks = { {4 * 1024, 128} },
6620 .block_erase = spi_block_erase_20,
6621 }, {
6622 .eraseblocks = { {64 * 1024, 8} },
6623 .block_erase = spi_block_erase_d8,
6624 }, {
6625 .eraseblocks = { {512 * 1024, 1} },
6626 .block_erase = spi_block_erase_c7,
6627 }
6628 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006629 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006630 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006631 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006633 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006634 },
6635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006636 {
6637 .vendor = "Numonyx",
6638 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006639 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006640 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006641 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006642 .total_size = 1024,
6643 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006644 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00006645 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006646 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006647 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006648 .block_erasers =
6649 {
6650 {
6651 .eraseblocks = { {4 * 1024, 256} },
6652 .block_erase = spi_block_erase_20,
6653 }, {
6654 .eraseblocks = { {64 * 1024, 16} },
6655 .block_erase = spi_block_erase_d8,
6656 }, {
6657 .eraseblocks = { {1024 * 1024, 1} },
6658 .block_erase = spi_block_erase_c7,
6659 }
6660 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006661 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006662 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006663 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006665 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006666 },
6667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006668 {
6669 .vendor = "Numonyx",
6670 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006672 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006673 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006674 .total_size = 2048,
6675 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006676 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006677 .tested = TEST_UNTESTED,
6678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006679 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006680 .block_erasers =
6681 {
6682 {
6683 .eraseblocks = { {4 * 1024, 512} },
6684 .block_erase = spi_block_erase_20,
6685 }, {
6686 .eraseblocks = { {64 * 1024, 32} },
6687 .block_erase = spi_block_erase_d8,
6688 }, {
6689 .eraseblocks = { {2 * 1024 * 1024, 1} },
6690 .block_erase = spi_block_erase_c7,
6691 }
6692 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006693 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006694 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006695 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006696 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006697 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006698 },
6699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006700 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006701 .vendor = "Numonyx",
Nikolay Nikolaev01dac172013-06-28 21:29:03 +00006702 .name = "M45PE10",
6703 .bustype = BUS_SPI,
6704 .manufacture_id = ST_ID,
6705 .model_id = ST_M45PE10,
6706 .total_size = 128,
6707 .page_size = 256,
6708 .tested = TEST_UNTESTED,
6709 .probe = probe_spi_rdid,
6710 .probe_timing = TIMING_ZERO,
6711 .block_erasers = {
6712 {
6713 .eraseblocks = { {256, 512} },
6714 .block_erase = spi_block_erase_db,
6715 }, {
6716 .eraseblocks = { {64 * 1024, 2} },
6717 .block_erase = spi_block_erase_d8,
6718 }
6719 },
6720 .printlock = spi_prettyprint_status_register_default_welwip,
6721 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
6722 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
6723 .read = spi_chip_read, /* Fast read (0x0B) supported */
6724 .voltage = {2700, 3600},
6725 },
6726
6727 {
6728 .vendor = "Numonyx",
6729 .name = "M45PE20",
6730 .bustype = BUS_SPI,
6731 .manufacture_id = ST_ID,
6732 .model_id = ST_M45PE20,
6733 .total_size = 256,
6734 .page_size = 256,
6735 .tested = TEST_UNTESTED,
6736 .probe = probe_spi_rdid,
6737 .probe_timing = TIMING_ZERO,
6738 .block_erasers = {
6739 {
6740 .eraseblocks = { {256, 1024} },
6741 .block_erase = spi_block_erase_db,
6742 }, {
6743 .eraseblocks = { {64 * 1024, 4} },
6744 .block_erase = spi_block_erase_d8,
6745 }
6746 },
6747 .printlock = spi_prettyprint_status_register_default_welwip,
6748 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
6749 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
6750 .read = spi_chip_read, /* Fast read (0x0B) supported */
6751 .voltage = {2700, 3600},
6752 },
6753
6754 {
6755 .vendor = "Numonyx",
6756 .name = "M45PE40",
6757 .bustype = BUS_SPI,
6758 .manufacture_id = ST_ID,
6759 .model_id = ST_M45PE40,
6760 .total_size = 512,
6761 .page_size = 256,
6762 .tested = TEST_UNTESTED,
6763 .probe = probe_spi_rdid,
6764 .probe_timing = TIMING_ZERO,
6765 .block_erasers = {
6766 {
6767 .eraseblocks = { {256, 2048} },
6768 .block_erase = spi_block_erase_db,
6769 }, {
6770 .eraseblocks = { {64 * 1024, 8} },
6771 .block_erase = spi_block_erase_d8,
6772 }
6773 },
6774 .printlock = spi_prettyprint_status_register_default_welwip,
6775 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
6776 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
6777 .read = spi_chip_read, /* Fast read (0x0B) supported */
6778 .voltage = {2700, 3600},
6779 },
6780
6781 {
6782 .vendor = "Numonyx",
6783 .name = "M45PE80",
6784 .bustype = BUS_SPI,
6785 .manufacture_id = ST_ID,
6786 .model_id = ST_M45PE80,
6787 .total_size = 1024,
6788 .page_size = 256,
6789 .tested = TEST_UNTESTED,
6790 .probe = probe_spi_rdid,
6791 .probe_timing = TIMING_ZERO,
6792 .block_erasers = {
6793 {
6794 .eraseblocks = { {256, 4096} },
6795 .block_erase = spi_block_erase_db,
6796 }, {
6797 .eraseblocks = { {64 * 1024, 16} },
6798 .block_erase = spi_block_erase_d8,
6799 }
6800 },
6801 .printlock = spi_prettyprint_status_register_default_welwip,
6802 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
6803 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
6804 .read = spi_chip_read, /* Fast read (0x0B) supported */
6805 .voltage = {2700, 3600},
6806 },
6807
6808 {
6809 .vendor = "Numonyx",
6810 .name = "M45PE16",
6811 .bustype = BUS_SPI,
6812 .manufacture_id = ST_ID,
6813 .model_id = ST_M45PE16,
6814 .total_size = 2048,
6815 .page_size = 256,
6816 .tested = TEST_UNTESTED,
6817 .probe = probe_spi_rdid,
6818 .probe_timing = TIMING_ZERO,
6819 .block_erasers = {
6820 {
6821 .eraseblocks = { {256, 8192} },
6822 .block_erase = spi_block_erase_db,
6823 }, {
6824 .eraseblocks = { {64 * 1024, 32} },
6825 .block_erase = spi_block_erase_d8,
6826 }
6827 },
6828 .printlock = spi_prettyprint_status_register_default_welwip,
6829 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
6830 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
6831 .read = spi_chip_read, /* Fast read (0x0B) supported */
6832 .voltage = {2700, 3600},
6833 },
6834
6835 {
6836 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00006837 .name = "N25Q016",
6838 .bustype = BUS_SPI,
6839 .manufacture_id = ST_ID,
6840 .model_id = ST_N25Q016__1E,
6841 .total_size = 2048,
6842 .page_size = 256,
6843 /* supports SFDP */
6844 /* OTP: 64B total; read 0x4B, write 0x42 */
6845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6846 .tested = TEST_UNTESTED,
6847 .probe = probe_spi_rdid,
6848 .probe_timing = TIMING_ZERO,
6849 .block_erasers =
6850 {
6851 {
6852 .eraseblocks = { {4 * 1024, 512} },
6853 .block_erase = spi_block_erase_20,
6854 }, {
6855 .eraseblocks = { {32 * 1024, 64} },
6856 .block_erase = spi_block_erase_52,
6857 }, {
6858 .eraseblocks = { {64 * 1024, 32} },
6859 .block_erase = spi_block_erase_d8,
6860 }, {
6861 .eraseblocks = { {2 * 1024 * 1024, 1} },
6862 .block_erase = spi_block_erase_c7,
6863 }
6864 },
6865 .unlock = spi_disable_blockprotect,
6866 .write = spi_chip_write_256,
6867 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6868 .voltage = {1700, 2000},
6869 },
6870
6871 {
6872 .vendor = "Numonyx",
6873 .name = "N25Q032..1E",
6874 .bustype = BUS_SPI,
6875 .manufacture_id = ST_ID,
6876 .model_id = ST_N25Q032__1E,
6877 .total_size = 4096,
6878 .page_size = 256,
6879 /* supports SFDP */
6880 /* OTP: 64B total; read 0x4B, write 0x42 */
6881 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6882 .tested = TEST_UNTESTED,
6883 .probe = probe_spi_rdid,
6884 .probe_timing = TIMING_ZERO,
6885 .block_erasers =
6886 {
6887 {
6888 .eraseblocks = { {4 * 1024, 1024} },
6889 .block_erase = spi_block_erase_20,
6890 }, {
6891 .eraseblocks = { {64 * 1024, 64} },
6892 .block_erase = spi_block_erase_d8,
6893 }, {
6894 .eraseblocks = { {4 * 1024 * 1024, 1} },
6895 .block_erase = spi_block_erase_c7,
6896 }
6897 },
6898 .unlock = spi_disable_blockprotect,
6899 .write = spi_chip_write_256,
6900 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6901 .voltage = {1700, 2000},
6902 },
6903
6904 {
6905 .vendor = "Numonyx",
6906 .name = "N25Q032..3E",
6907 .bustype = BUS_SPI,
6908 .manufacture_id = ST_ID,
6909 .model_id = ST_N25Q032__3E,
6910 .total_size = 4096,
6911 .page_size = 256,
6912 /* supports SFDP */
6913 /* OTP: 64B total; read 0x4B, write 0x42 */
6914 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6915 .tested = TEST_UNTESTED,
6916 .probe = probe_spi_rdid,
6917 .probe_timing = TIMING_ZERO,
6918 .block_erasers =
6919 {
6920 {
6921 .eraseblocks = { {4 * 1024, 1024} },
6922 .block_erase = spi_block_erase_20,
6923 }, {
6924 .eraseblocks = { {64 * 1024, 64} },
6925 .block_erase = spi_block_erase_d8,
6926 }, {
6927 .eraseblocks = { {4 * 1024 * 1024, 1} },
6928 .block_erase = spi_block_erase_c7,
6929 }
6930 },
6931 .unlock = spi_disable_blockprotect,
6932 .write = spi_chip_write_256,
6933 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6934 .voltage = {2700, 3600},
6935 },
6936
6937 {
6938 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00006939 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006940 .bustype = BUS_SPI,
6941 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00006942 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006943 .total_size = 8192,
6944 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00006945 /* supports SFDP */
6946 /* OTP: 64B total; read 0x4B, write 0x42 */
6947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6948 .tested = TEST_UNTESTED,
6949 .probe = probe_spi_rdid,
6950 .probe_timing = TIMING_ZERO,
6951 .block_erasers =
6952 {
6953 {
6954 .eraseblocks = { {4 * 1024, 2048 } },
6955 .block_erase = spi_block_erase_20,
6956 }, {
6957 .eraseblocks = { {64 * 1024, 128} },
6958 .block_erase = spi_block_erase_d8,
6959 }, {
6960 .eraseblocks = { {8 * 1024 * 1024, 1} },
6961 .block_erase = spi_block_erase_c7,
6962 }
6963 },
6964 .unlock = spi_disable_blockprotect,
6965 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006966 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006967 .voltage = {1700, 2000},
6968 },
6969
6970 {
6971 .vendor = "Numonyx",
6972 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
6973 .bustype = BUS_SPI,
6974 .manufacture_id = ST_ID,
6975 .model_id = ST_N25Q064__3E,
6976 .total_size = 8192,
6977 .page_size = 256,
6978 /* supports SFDP */
6979 /* OTP: 64B total; read 0x4B, write 0x42 */
6980 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006981 .tested = TEST_OK_PREW,
6982 .probe = probe_spi_rdid,
6983 .probe_timing = TIMING_ZERO,
6984 .block_erasers =
6985 {
6986 {
6987 .eraseblocks = { {4 * 1024, 2048 } },
6988 .block_erase = spi_block_erase_20,
6989 }, {
6990 .eraseblocks = { {64 * 1024, 128} },
6991 .block_erase = spi_block_erase_d8,
6992 }, {
6993 .eraseblocks = { {8 * 1024 * 1024, 1} },
6994 .block_erase = spi_block_erase_c7,
6995 }
6996 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006997 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006998 .unlock = spi_disable_blockprotect,
6999 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007001 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007002 },
7003
7004 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00007006 .name = "Pm25LD256C",
7007 .bustype = BUS_SPI,
7008 .manufacture_id = PMC_ID,
7009 .model_id = PMC_PM25LD256C,
7010 .total_size = 32,
7011 .page_size = 256,
7012 .feature_bits = FEATURE_WRSR_WREN,
7013 .tested = TEST_UNTESTED,
7014 .probe = probe_spi_rdid,
7015 .probe_timing = TIMING_ZERO,
7016 .block_erasers =
7017 {
7018 {
7019 .eraseblocks = { {4 * 1024, 8} },
7020 .block_erase = spi_block_erase_20,
7021 }, {
7022 .eraseblocks = { {4 * 1024, 8} },
7023 .block_erase = spi_block_erase_d7,
7024 }, {
7025 .eraseblocks = { {32 * 1024, 1} },
7026 .block_erase = spi_block_erase_d8,
7027 }, {
7028 .eraseblocks = { {32 * 1024, 1} },
7029 .block_erase = spi_block_erase_60,
7030 }, {
7031 .eraseblocks = { {32 * 1024, 1} },
7032 .block_erase = spi_block_erase_c7,
7033 }
7034 },
7035 .printlock = spi_prettyprint_status_register_default_bp2,
7036 .unlock = spi_disable_blockprotect,
7037 .write = spi_chip_write_256,
7038 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7039 .voltage = {2700, 3600},
7040 },
7041 {
7042 .vendor = "PMC",
7043 .name = "Pm25LD512(C)",
7044 .bustype = BUS_SPI,
7045 .manufacture_id = PMC_ID,
7046 .model_id = PMC_PM25LD512,
7047 .total_size = 64,
7048 .page_size = 256,
7049 .feature_bits = FEATURE_WRSR_WREN,
7050 .tested = TEST_OK_PREW,
7051 .probe = probe_spi_rdid,
7052 .probe_timing = TIMING_ZERO,
7053 .block_erasers =
7054 {
7055 {
7056 .eraseblocks = { {4 * 1024, 16} },
7057 .block_erase = spi_block_erase_20,
7058 }, {
7059 .eraseblocks = { {4 * 1024, 16} },
7060 .block_erase = spi_block_erase_d7,
7061 }, {
7062 .eraseblocks = { {32 * 1024, 2} },
7063 .block_erase = spi_block_erase_d8,
7064 }, {
7065 .eraseblocks = { {64 * 1024, 1} },
7066 .block_erase = spi_block_erase_60,
7067 }, {
7068 .eraseblocks = { {64 * 1024, 1} },
7069 .block_erase = spi_block_erase_c7,
7070 }
7071 },
7072 .printlock = spi_prettyprint_status_register_default_bp2,
7073 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7074 .write = spi_chip_write_256,
7075 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7076 .voltage = {2300, 3600},
7077 },
7078
7079 {
7080 .vendor = "PMC",
7081 .name = "Pm25LD010(C)",
7082 .bustype = BUS_SPI,
7083 .manufacture_id = PMC_ID,
7084 .model_id = PMC_PM25LD010,
7085 .total_size = 128,
7086 .page_size = 256,
7087 .feature_bits = FEATURE_WRSR_WREN,
7088 .tested = TEST_UNTESTED,
7089 .probe = probe_spi_rdid,
7090 .probe_timing = TIMING_ZERO,
7091 .block_erasers =
7092 {
7093 {
7094 .eraseblocks = { {4 * 1024, 32} },
7095 .block_erase = spi_block_erase_20,
7096 }, {
7097 .eraseblocks = { {4 * 1024, 32} },
7098 .block_erase = spi_block_erase_d7,
7099 }, {
7100 .eraseblocks = { {32 * 1024, 4} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {128 * 1024, 1} },
7104 .block_erase = spi_block_erase_60,
7105 }, {
7106 .eraseblocks = { {128 * 1024, 1} },
7107 .block_erase = spi_block_erase_c7,
7108 }
7109 },
7110 .printlock = spi_prettyprint_status_register_default_bp2,
7111 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7112 .write = spi_chip_write_256,
7113 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7114 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
7115 },
7116
7117 {
7118 .vendor = "PMC",
7119 .name = "Pm25LD020(C)",
7120 .bustype = BUS_SPI,
7121 .manufacture_id = PMC_ID,
7122 .model_id = PMC_PM25LD020,
7123 .total_size = 256,
7124 .page_size = 256,
7125 .feature_bits = FEATURE_WRSR_WREN,
7126 .tested = TEST_UNTESTED,
7127 .probe = probe_spi_rdid,
7128 .probe_timing = TIMING_ZERO,
7129 .block_erasers =
7130 {
7131 {
7132 .eraseblocks = { {4 * 1024, 64} },
7133 .block_erase = spi_block_erase_20,
7134 }, {
7135 .eraseblocks = { {4 * 1024, 64} },
7136 .block_erase = spi_block_erase_d7,
7137 }, {
7138 .eraseblocks = { {64 * 1024, 4} },
7139 .block_erase = spi_block_erase_d8,
7140 }, {
7141 .eraseblocks = { {256 * 1024, 1} },
7142 .block_erase = spi_block_erase_60,
7143 }, {
7144 .eraseblocks = { {256 * 1024, 1} },
7145 .block_erase = spi_block_erase_c7,
7146 }
7147 },
7148 .printlock = spi_prettyprint_status_register_default_bp2,
7149 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7150 .write = spi_chip_write_256,
7151 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7152 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
7153 },
7154
7155 {
7156 .vendor = "PMC",
7157 .name = "Pm25LD040(C)",
7158 .bustype = BUS_SPI,
7159 .manufacture_id = PMC_ID,
7160 .model_id = PMC_PM25LV040,
7161 .total_size = 512,
7162 .page_size = 256,
7163 .feature_bits = FEATURE_WRSR_WREN,
7164 .tested = TEST_UNTESTED,
7165 .probe = probe_spi_rdid,
7166 .probe_timing = TIMING_ZERO,
7167 .block_erasers =
7168 {
7169 {
7170 .eraseblocks = { {4 * 1024, 128} },
7171 .block_erase = spi_block_erase_20,
7172 }, {
7173 .eraseblocks = { {4 * 1024, 128} },
7174 .block_erase = spi_block_erase_d7,
7175 }, {
7176 .eraseblocks = { {64 * 1024, 8} },
7177 .block_erase = spi_block_erase_d8,
7178 }, {
7179 .eraseblocks = { {512 * 1024, 1} },
7180 .block_erase = spi_block_erase_60,
7181 }, {
7182 .eraseblocks = { {512 * 1024, 1} },
7183 .block_erase = spi_block_erase_c7,
7184 }
7185 },
7186 .printlock = spi_prettyprint_status_register_default_bp2,
7187 .unlock = spi_disable_blockprotect,
7188 .write = spi_chip_write_256,
7189 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7190 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
7191 },
7192
7193{
7194 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007195 .name = "Pm25LV512(A)",
7196 .bustype = BUS_SPI,
7197 .manufacture_id = PMC_ID,
7198 .model_id = PMC_PM25LV512,
7199 .total_size = 64,
7200 .page_size = 256,
7201 .feature_bits = FEATURE_WRSR_WREN,
7202 .tested = TEST_UNTESTED,
7203 .probe = probe_spi_res3,
7204 .probe_timing = TIMING_ZERO,
7205 .block_erasers =
7206 {
7207 {
7208 .eraseblocks = { {4 * 1024, 16} },
7209 .block_erase = spi_block_erase_d7,
7210 }, {
7211 .eraseblocks = { {32 * 1024, 2} },
7212 .block_erase = spi_block_erase_d8,
7213 }, {
7214 .eraseblocks = { {64 * 1024, 1} },
7215 .block_erase = spi_block_erase_c7,
7216 }
7217 },
7218 .printlock = spi_prettyprint_status_register_default_bp1,
7219 .unlock = spi_disable_blockprotect,
7220 .write = spi_chip_write_256,
7221 .read = spi_chip_read, /* Fast read (0x0B) supported */
7222 .voltage = {2700, 3600},
7223 },
7224
7225 {
7226 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007227 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007228 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007229 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007230 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007231 .total_size = 128,
7232 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007233 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007234 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007235 .probe = probe_spi_res3,
7236 .probe_timing = TIMING_ZERO,
7237 .block_erasers =
7238 {
7239 {
7240 .eraseblocks = { {4 * 1024, 32} },
7241 .block_erase = spi_block_erase_d7,
7242 }, {
7243 .eraseblocks = { {32 * 1024, 4} },
7244 .block_erase = spi_block_erase_d8,
7245 }, {
7246 .eraseblocks = { {128 * 1024, 1} },
7247 .block_erase = spi_block_erase_c7,
7248 }
7249 },
7250 .printlock = spi_prettyprint_status_register_default_bp1,
7251 .unlock = spi_disable_blockprotect,
7252 .write = spi_chip_write_256,
7253 .read = spi_chip_read, /* Fast read (0x0B) supported */
7254 .voltage = {2700, 3600},
7255 },
7256
7257 {
7258 .vendor = "PMC",
7259 .name = "Pm25LV010A",
7260 .bustype = BUS_SPI,
7261 .manufacture_id = PMC_ID,
7262 .model_id = PMC_PM25LV010,
7263 .total_size = 128,
7264 .page_size = 256,
7265 .feature_bits = FEATURE_WRSR_WREN,
7266 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007267 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007268 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007269 .block_erasers =
7270 {
7271 {
7272 .eraseblocks = { {4 * 1024, 32} },
7273 .block_erase = spi_block_erase_d7,
7274 }, {
7275 .eraseblocks = { {32 * 1024, 4} },
7276 .block_erase = spi_block_erase_d8,
7277 }, {
7278 .eraseblocks = { {128 * 1024, 1} },
7279 .block_erase = spi_block_erase_c7,
7280 }
7281 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007282 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007283 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007284 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007285 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007286 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007287 },
7288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007289 {
7290 .vendor = "PMC",
7291 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007292 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007294 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007295 .total_size = 256,
7296 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007297 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007298 .tested = TEST_UNTESTED,
7299 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007300 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007301 .block_erasers =
7302 {
7303 {
7304 .eraseblocks = { {4 * 1024, 64} },
7305 .block_erase = spi_block_erase_d7,
7306 }, {
7307 .eraseblocks = { {64 * 1024, 4} },
7308 .block_erase = spi_block_erase_d8,
7309 }, {
7310 .eraseblocks = { {256 * 1024, 1} },
7311 .block_erase = spi_block_erase_c7,
7312 }
7313 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007314 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007315 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007316 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007317 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007318 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007319 },
7320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007321 {
7322 .vendor = "PMC",
7323 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007324 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007325 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007326 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007327 .total_size = 512,
7328 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007329 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007330 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007331 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007332 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007333 .block_erasers =
7334 {
7335 {
7336 .eraseblocks = { {4 * 1024, 128} },
7337 .block_erase = spi_block_erase_d7,
7338 }, {
7339 .eraseblocks = { {64 * 1024, 8} },
7340 .block_erase = spi_block_erase_d8,
7341 }, {
7342 .eraseblocks = { {512 * 1024, 1} },
7343 .block_erase = spi_block_erase_c7,
7344 }
7345 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007346 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007347 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007348 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007349 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007350 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007351 },
7352
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007353 {
7354 .vendor = "PMC",
7355 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007356 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007357 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007358 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007359 .total_size = 1024,
7360 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007361 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007362 .tested = TEST_UNTESTED,
7363 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007364 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007365 .block_erasers =
7366 {
7367 {
7368 .eraseblocks = { {4 * 1024, 256} },
7369 .block_erase = spi_block_erase_d7,
7370 }, {
7371 .eraseblocks = { {4 * 1024, 256} },
7372 .block_erase = spi_block_erase_20,
7373 }, {
7374 .eraseblocks = { {64 * 1024, 16} },
7375 .block_erase = spi_block_erase_d8,
7376 }, {
7377 .eraseblocks = { {1024 * 1024, 1} },
7378 .block_erase = spi_block_erase_60,
7379 }, {
7380 .eraseblocks = { {1024 * 1024, 1} },
7381 .block_erase = spi_block_erase_c7,
7382 }
7383 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007384 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007385 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007386 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007387 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007388 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007389 },
7390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007391 {
7392 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007393 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007395 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007396 .model_id = PMC_PM25LV016B,
7397 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007398 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007399 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007400 .tested = TEST_UNTESTED,
7401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007402 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007403 .block_erasers =
7404 {
7405 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007406 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00007407 .block_erase = spi_block_erase_d7,
7408 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007409 .eraseblocks = { {4 * 1024, 512} },
7410 .block_erase = spi_block_erase_20,
7411 }, {
7412 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00007413 .block_erase = spi_block_erase_d8,
7414 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007415 .eraseblocks = { {2 * 1024 * 1024, 1} },
7416 .block_erase = spi_block_erase_60,
7417 }, {
7418 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007419 .block_erase = spi_block_erase_c7,
7420 }
7421 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007422 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007423 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007424 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007425 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007426 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007427 },
7428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007429 {
7430 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007431 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007432 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007433 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007434 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007435 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007436 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007437 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007438 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007439 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007440 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007441 .block_erasers =
7442 {
7443 {
7444 .eraseblocks = {
7445 {128 * 1024, 1},
7446 {96 * 1024, 1},
7447 {8 * 1024, 2},
7448 {16 * 1024, 1},
7449 },
Sean Nelson35727f72010-01-28 23:55:12 +00007450 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007451 }, {
7452 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007453 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007454 },
7455 },
Sean Nelson35727f72010-01-28 23:55:12 +00007456 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007458 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007459 },
7460
7461 {
7462 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007463 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007464 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007465 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007466 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007467 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007468 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007469 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007470 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007471 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007472 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007473 .block_erasers =
7474 {
7475 {
7476 .eraseblocks = {
7477 {16 * 1024, 1},
7478 {8 * 1024, 2},
7479 {96 * 1024, 1},
7480 {128 * 1024, 1},
7481 },
Sean Nelson35727f72010-01-28 23:55:12 +00007482 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007483 }, {
7484 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007485 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007486 },
7487 },
Sean Nelson35727f72010-01-28 23:55:12 +00007488 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007489 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007490 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007491 },
7492
7493 {
7494 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007495 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007496 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007497 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007498 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007499 .total_size = 128,
7500 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007501 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007502 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007503 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007504 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00007505 .block_erasers =
7506 {
7507 {
7508 .eraseblocks = { {4 * 1024, 32} },
7509 .block_erase = erase_sector_jedec,
7510 }, {
7511 .eraseblocks = { {64 * 1024, 2} },
7512 .block_erase = erase_block_jedec,
7513 }, {
7514 .eraseblocks = { {128 * 1024, 1} },
7515 .block_erase = erase_chip_block_jedec,
7516 }
7517 },
Sean Nelson35727f72010-01-28 23:55:12 +00007518 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007520 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007521 },
7522
7523 {
7524 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007525 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007526 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007527 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007528 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007529 .total_size = 256,
7530 .page_size = 4096,
7531 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7532 .tested = TEST_UNTESTED,
7533 .probe = probe_jedec,
7534 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7535 .block_erasers =
7536 {
7537 {
7538 .eraseblocks = { {4 * 1024, 64} },
7539 .block_erase = erase_sector_jedec,
7540 }, {
7541 .eraseblocks = { {64 * 1024, 4} },
7542 .block_erase = erase_block_jedec,
7543 }, {
7544 .eraseblocks = { {256 * 1024, 1} },
7545 .block_erase = erase_chip_block_jedec,
7546 }
7547 },
7548 .write = write_jedec_1,
7549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007550 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007551 },
7552
7553 {
7554 .vendor = "PMC",
7555 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007556 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007557 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007558 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007559 .total_size = 512,
7560 .page_size = 4096,
7561 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007562 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007563 .probe = probe_jedec,
7564 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7565 .block_erasers =
7566 {
7567 {
7568 .eraseblocks = { {4 * 1024, 128} },
7569 .block_erase = erase_sector_jedec,
7570 }, {
7571 .eraseblocks = { {64 * 1024, 8} },
7572 .block_erase = erase_block_jedec,
7573 }, {
7574 .eraseblocks = { {512 * 1024, 1} },
7575 .block_erase = erase_chip_block_jedec,
7576 }
7577 },
7578 .write = write_jedec_1,
7579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007580 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007581 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00007582
7583 {
7584 .vendor = "PMC",
7585 .name = "Pm39LV512",
7586 .bustype = BUS_PARALLEL,
7587 .manufacture_id = PMC_ID_NOPREFIX,
7588 .model_id = PMC_PM39LV512,
7589 .total_size = 64,
7590 .page_size = 4096,
7591 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7592 .tested = TEST_OK_PREW,
7593 .probe = probe_jedec,
7594 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7595 .block_erasers =
7596 {
7597 {
7598 .eraseblocks = { {4 * 1024, 16} },
7599 .block_erase = erase_sector_jedec,
7600 }, {
7601 .eraseblocks = { {64 * 1024, 1} },
7602 .block_erase = erase_block_jedec,
7603 }, {
7604 .eraseblocks = { {64 * 1024, 1} },
7605 .block_erase = erase_chip_block_jedec,
7606 }
7607 },
7608 .write = write_jedec_1,
7609 .read = read_memmapped,
7610 .voltage = {2700, 3600},
7611 },
7612
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007613 {
7614 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007615 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007616 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007617 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007618 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007619 .total_size = 256,
7620 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007621 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00007622 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007623 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007624 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007625 .block_erasers =
7626 {
7627 {
7628 .eraseblocks = { {4 * 1024, 64} },
7629 .block_erase = erase_sector_jedec,
7630 }, {
7631 .eraseblocks = { {16 * 1024, 16} },
7632 .block_erase = erase_block_jedec,
7633 }, {
7634 .eraseblocks = { {256 * 1024, 1} },
7635 .block_erase = erase_chip_block_jedec,
7636 }
7637 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007638 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007639 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007641 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007642 },
7643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007644 {
7645 .vendor = "PMC",
7646 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007647 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007648 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007649 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007650 .total_size = 512,
7651 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007652 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007653 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007654 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007655 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007656 .block_erasers =
7657 {
7658 {
7659 .eraseblocks = { {4 * 1024, 128} },
7660 .block_erase = erase_sector_jedec,
7661 }, {
7662 .eraseblocks = { {64 * 1024, 8} },
7663 .block_erase = erase_block_jedec,
7664 }, {
7665 .eraseblocks = { {512 * 1024, 1} },
7666 .block_erase = erase_chip_block_jedec,
7667 }
7668 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007669 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007670 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007672 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007673 },
7674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007675 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00007676 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007677 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007678 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007679 .manufacture_id = SANYO_ID,
7680 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007681 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007682 .page_size = 256,
7683 .tested = TEST_UNTESTED,
7684 .probe = probe_spi_rdid,
7685 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007686 .block_erasers =
7687 {
7688 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007689 .eraseblocks = { {256, 1024} },
7690 .block_erase = spi_block_erase_db,
7691 }, {
7692 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00007693 .block_erase = spi_block_erase_d8,
7694 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007695 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007696 .block_erase = spi_block_erase_c7,
7697 }
7698 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007699 .printlock = spi_prettyprint_status_register_default_welwip,
7700 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00007701 .write = spi_chip_write_256,
7702 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007703 .voltage = {2700, 3600},
7704 },
7705
7706 {
7707 .vendor = "Sanyo",
7708 .name = "LE25FW403A",
7709 .bustype = BUS_SPI,
7710 .manufacture_id = SANYO_ID,
7711 .model_id = SANYO_LE25FW403A,
7712 .total_size = 512,
7713 .page_size = 256,
7714 .tested = TEST_UNTESTED,
7715 .probe = probe_spi_rdid,
7716 .probe_timing = TIMING_ZERO,
7717 .block_erasers = {
7718 {
7719 .eraseblocks = { {256, 2 * 1024} },
7720 .block_erase = spi_block_erase_db,
7721 }, {
7722 .eraseblocks = { {64 * 1024, 8} },
7723 .block_erase = spi_block_erase_d8,
7724 }, {
7725 .eraseblocks = { {512 * 1024, 1} },
7726 .block_erase = spi_block_erase_c7,
7727 }
7728 },
7729 .printlock = spi_prettyprint_status_register_default_welwip,
7730 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7731 .write = spi_chip_write_256,
7732 .read = spi_chip_read,
7733 .voltage = {2700, 3600},
7734 },
7735
7736 {
7737 .vendor = "Sanyo",
7738 .name = "LE25FW418A",
7739 .bustype = BUS_SPI,
7740 .manufacture_id = SANYO_ID,
7741 .model_id = SANYO_LE25FW418A,
7742 .total_size = 512,
7743 .page_size = 256,
7744 .feature_bits = FEATURE_WRSR_WREN,
7745 .tested = TEST_UNTESTED,
7746 .probe = probe_spi_res2,
7747 .probe_timing = TIMING_ZERO,
7748 .block_erasers = {
7749 {
7750 .eraseblocks = { {4 * 1024, 128} },
7751 .block_erase = spi_block_erase_d7,
7752 }, {
7753 .eraseblocks = { {64 * 1024, 8} },
7754 .block_erase = spi_block_erase_d8,
7755 }, {
7756 .eraseblocks = { {512 * 1024, 1} },
7757 .block_erase = spi_block_erase_c7,
7758 }
7759 },
7760 .printlock = spi_prettyprint_status_register_default_bp2,
7761 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
7762 .write = spi_chip_write_256,
7763 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
7764 .voltage = {2700, 3600},
7765 },
7766
7767 {
7768 .vendor = "Sanyo",
7769 .name = "LE25FW806",
7770 .bustype = BUS_SPI,
7771 .manufacture_id = SANYO_ID,
7772 .model_id = SANYO_LE25FW806,
7773 .total_size = 1024,
7774 .page_size = 256,
7775 .feature_bits = FEATURE_WRSR_WREN,
7776 .tested = TEST_UNTESTED,
7777 .probe = probe_spi_res2,
7778 .probe_timing = TIMING_ZERO,
7779 .block_erasers = {
7780 {
7781 .eraseblocks = { {4 * 1024, 256} },
7782 .block_erase = spi_block_erase_20,
7783 }, {
7784 .eraseblocks = { {4 * 1024, 256} },
7785 .block_erase = spi_block_erase_d7,
7786 }, {
7787 .eraseblocks = { {64 * 1024, 16} },
7788 .block_erase = spi_block_erase_d8,
7789 }, {
7790 .eraseblocks = { {1024 * 1024, 1} },
7791 .block_erase = spi_block_erase_c7,
7792 }
7793 },
7794 .printlock = spi_prettyprint_status_register_default_bp2,
7795 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
7796 .write = spi_chip_write_256,
7797 .read = spi_chip_read,
7798 .voltage = {2700, 3600},
7799 },
7800
7801 {
7802 .vendor = "Sanyo",
7803 .name = "LE25FW808",
7804 .bustype = BUS_SPI,
7805 .manufacture_id = SANYO_ID,
7806 .model_id = SANYO_LE25FW808,
7807 .total_size = 1024,
7808 .page_size = 256,
7809 .feature_bits = FEATURE_WRSR_WREN,
7810 .tested = TEST_UNTESTED,
7811 .probe = probe_spi_res2,
7812 .probe_timing = TIMING_ZERO,
7813 .block_erasers = {
7814 {
7815 .eraseblocks = { {8 * 1024, 128} },
7816 .block_erase = spi_block_erase_d7,
7817 }, {
7818 .eraseblocks = { {64 * 1024, 16} },
7819 .block_erase = spi_block_erase_d8,
7820 }, {
7821 .eraseblocks = { {1024 * 1024, 1} },
7822 .block_erase = spi_block_erase_c7,
7823 }
7824 },
7825 .printlock = spi_prettyprint_status_register_default_bp2,
7826 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
7827 .write = spi_chip_write_256,
7828 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
7829 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00007830 },
7831
7832 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007833 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00007834 .name = "LH28F008BJT-BTLZ1",
7835 .bustype = BUS_PARALLEL,
7836 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007837 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00007838 .total_size = 1024,
7839 .page_size = 64 * 1024,
7840 .tested = TEST_OK_PREW,
7841 .probe = probe_82802ab,
7842 .probe_timing = TIMING_ZERO,
7843 .block_erasers =
7844 {
7845 {
7846 .eraseblocks = {
7847 {8 * 1024, 8},
7848 {64 * 1024, 15}
7849 },
7850 .block_erase = erase_block_82802ab,
7851 }, {
7852 .eraseblocks = { {1024 * 1024, 1} },
7853 .block_erase = erase_sector_49lfxxxc,
7854 }
7855 },
7856 .unlock = unlock_lh28f008bjt,
7857 .write = write_82802ab,
7858 .read = read_memmapped,
7859 .voltage = {2700, 3600},
7860 },
7861
7862 {
7863 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007864 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007865 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007866 .manufacture_id = SHARP_ID,
7867 .model_id = SHARP_LHF00L04,
7868 .total_size = 1024,
7869 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007870 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007871 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007872 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007873 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007874 .block_erasers =
7875 {
7876 {
7877 .eraseblocks = {
7878 {64 * 1024, 15},
7879 {8 * 1024, 8}
7880 },
Sean Nelson28accc22010-03-19 18:47:06 +00007881 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007882 }, {
7883 .eraseblocks = {
7884 {1024 * 1024, 1}
7885 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007886 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007887 },
7888 },
Sean Nelson28accc22010-03-19 18:47:06 +00007889 .unlock = unlock_82802ab,
7890 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007892 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007893 },
7894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007895 {
7896 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00007897 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007898 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007899 .manufacture_id = SPANSION_ID,
7900 .model_id = SPANSION_S25FL004A,
7901 .total_size = 512,
7902 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007903 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00007904 .tested = TEST_UNTESTED,
7905 .probe = probe_spi_rdid,
7906 .probe_timing = TIMING_ZERO,
7907 .block_erasers =
7908 {
7909 {
7910 .eraseblocks = { {64 * 1024, 8} },
7911 .block_erase = spi_block_erase_d8,
7912 }, {
7913 .eraseblocks = { {512 * 1024, 1} },
7914 .block_erase = spi_block_erase_c7,
7915 }
7916 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007917 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007918 .unlock = spi_disable_blockprotect,
7919 .write = spi_chip_write_256,
7920 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007921 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007922 },
7923
7924 {
7925 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00007926 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007927 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00007928 .manufacture_id = SPANSION_ID,
7929 .model_id = SPANSION_S25FL008A,
7930 .total_size = 1024,
7931 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007932 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007933 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00007934 .probe = probe_spi_rdid,
7935 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00007936 .block_erasers =
7937 {
7938 {
7939 .eraseblocks = { {64 * 1024, 16} },
7940 .block_erase = spi_block_erase_d8,
7941 }, {
7942 .eraseblocks = { {1024 * 1024, 1} },
7943 .block_erase = spi_block_erase_c7,
7944 }
7945 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007947 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00007948 .write = spi_chip_write_256,
7949 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007950 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00007951 },
7952
7953 {
7954 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007955 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007956 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007957 .manufacture_id = SPANSION_ID,
7958 .model_id = SPANSION_S25FL016A,
7959 .total_size = 2048,
7960 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007961 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007962 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007963 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007964 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007965 .block_erasers =
7966 {
7967 {
7968 .eraseblocks = { {64 * 1024, 32} },
7969 .block_erase = spi_block_erase_d8,
7970 }, {
7971 .eraseblocks = { {2 * 1024 * 1024, 1} },
7972 .block_erase = spi_block_erase_c7,
7973 }
7974 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007977 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007980 },
7981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 {
Rudy Hostf4e57772010-11-29 00:37:49 +00007983 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007984 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007985 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007986 .manufacture_id = SPANSION_ID,
7987 .model_id = SPANSION_S25FL032A,
7988 .total_size = 4096,
7989 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007990 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007991 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00007992 .probe = probe_spi_rdid,
7993 .probe_timing = TIMING_ZERO,
7994 .block_erasers =
7995 {
7996 {
7997 .eraseblocks = { {64 * 1024, 64} },
7998 .block_erase = spi_block_erase_d8,
7999 }, {
8000 .eraseblocks = { {4 * 1024 * 1024, 1} },
8001 .block_erase = spi_block_erase_c7,
8002 }
8003 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008004 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008005 .unlock = spi_disable_blockprotect,
8006 .write = spi_chip_write_256,
8007 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008008 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008009 },
8010
8011 {
8012 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008013 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008014 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008015 .manufacture_id = SPANSION_ID,
8016 .model_id = SPANSION_S25FL064A,
8017 .total_size = 8192,
8018 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008019 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008020 .tested = TEST_OK_PREW,
8021 .probe = probe_spi_rdid,
8022 .probe_timing = TIMING_ZERO,
8023 .block_erasers =
8024 {
8025 {
8026 .eraseblocks = { {64 * 1024, 128} },
8027 .block_erase = spi_block_erase_d8,
8028 }, {
8029 .eraseblocks = { {8 * 1024 * 1024, 1} },
8030 .block_erase = spi_block_erase_c7,
8031 }
8032 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008033 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008034 .unlock = spi_disable_blockprotect,
8035 .write = spi_chip_write_256,
8036 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008037 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008038 },
8039
8040 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008041 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00008042 .name = "SST25LF040A",
8043 .bustype = BUS_SPI,
8044 .manufacture_id = SST_ID,
8045 .model_id = SST_SST25VF040_REMS,
8046 .total_size = 512,
8047 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008048 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00008049 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00008050 .probe = probe_spi_res2,
8051 .probe_timing = TIMING_ZERO,
8052 .block_erasers =
8053 {
8054 {
8055 .eraseblocks = { {4 * 1024, 128} },
8056 .block_erase = spi_block_erase_20,
8057 }, {
8058 .eraseblocks = { {32 * 1024, 16} },
8059 .block_erase = spi_block_erase_52,
8060 }, {
8061 .eraseblocks = { {512 * 1024, 1} },
8062 .block_erase = spi_block_erase_60,
8063 },
8064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008065 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008066 .unlock = spi_disable_blockprotect,
8067 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8068 .read = spi_chip_read,
8069 .voltage = {3000, 3600},
8070 },
8071
8072 {
8073 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008074 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00008075 .bustype = BUS_SPI,
8076 .manufacture_id = SST_ID,
8077 .model_id = SST_SST25VF080_REMS,
8078 .total_size = 1024,
8079 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008080 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00008081 .tested = TEST_UNTESTED,
8082 .probe = probe_spi_res2,
8083 .probe_timing = TIMING_ZERO,
8084 .block_erasers =
8085 {
8086 {
8087 .eraseblocks = { {4 * 1024, 256} },
8088 .block_erase = spi_block_erase_20,
8089 }, {
8090 .eraseblocks = { {32 * 1024, 32} },
8091 .block_erase = spi_block_erase_52,
8092 }, {
8093 .eraseblocks = { {1024 * 1024, 1} },
8094 .block_erase = spi_block_erase_60,
8095 },
8096 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008097 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008098 .unlock = spi_disable_blockprotect,
8099 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8100 .read = spi_chip_read,
8101 .voltage = {3000, 3600},
8102 },
8103
8104 {
8105 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008106 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008107 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00008108 .manufacture_id = SST_ID,
8109 .model_id = SST_SST25VF010_REMS,
8110 .total_size = 128,
8111 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008112 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00008113 .tested = TEST_OK_PREW,
8114 .probe = probe_spi_rems,
8115 .probe_timing = TIMING_ZERO,
8116 .block_erasers =
8117 {
8118 {
8119 .eraseblocks = { {4 * 1024, 32} },
8120 .block_erase = spi_block_erase_20,
8121 }, {
8122 .eraseblocks = { {32 * 1024, 4} },
8123 .block_erase = spi_block_erase_52,
8124 }, {
8125 .eraseblocks = { {128 * 1024, 1} },
8126 .block_erase = spi_block_erase_60,
8127 },
8128 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008129 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00008130 .unlock = spi_disable_blockprotect,
8131 .write = spi_chip_write_1,
8132 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008133 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00008134 },
8135
8136 {
8137 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008138 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008139 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008140 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008141 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008142 .total_size = 2048,
8143 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008144 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00008145 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008146 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008147 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008148 .block_erasers =
8149 {
8150 {
8151 .eraseblocks = { {4 * 1024, 512} },
8152 .block_erase = spi_block_erase_20,
8153 }, {
8154 .eraseblocks = { {32 * 1024, 64} },
8155 .block_erase = spi_block_erase_52,
8156 }, {
8157 .eraseblocks = { {64 * 1024, 32} },
8158 .block_erase = spi_block_erase_d8,
8159 }, {
8160 .eraseblocks = { {2 * 1024 * 1024, 1} },
8161 .block_erase = spi_block_erase_60,
8162 }, {
8163 .eraseblocks = { {2 * 1024 * 1024, 1} },
8164 .block_erase = spi_block_erase_c7,
8165 },
8166 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008167 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008168 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008169 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008170 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008171 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008172 },
8173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008174 {
8175 .vendor = "SST",
8176 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008177 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008178 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008179 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008180 .total_size = 4096,
8181 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008182 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00008183 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008184 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008185 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = { {4 * 1024, 1024} },
8190 .block_erase = spi_block_erase_20,
8191 }, {
8192 .eraseblocks = { {32 * 1024, 128} },
8193 .block_erase = spi_block_erase_52,
8194 }, {
8195 .eraseblocks = { {64 * 1024, 64} },
8196 .block_erase = spi_block_erase_d8,
8197 }, {
8198 .eraseblocks = { {4 * 1024 * 1024, 1} },
8199 .block_erase = spi_block_erase_60,
8200 }, {
8201 .eraseblocks = { {4 * 1024 * 1024, 1} },
8202 .block_erase = spi_block_erase_c7,
8203 },
8204 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008205 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008206 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008207 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008208 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008209 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008210 },
8211
8212 {
8213 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008214 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008215 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008216 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008217 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008218 .total_size = 8192,
8219 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008220 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00008221 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008222 .probe = probe_spi_rdid,
8223 .probe_timing = TIMING_ZERO,
8224 .block_erasers =
8225 {
8226 {
8227 .eraseblocks = { {4 * 1024, 2048} },
8228 .block_erase = spi_block_erase_20,
8229 }, {
8230 .eraseblocks = { {32 * 1024, 256} },
8231 .block_erase = spi_block_erase_52,
8232 }, {
8233 .eraseblocks = { {64 * 1024, 128} },
8234 .block_erase = spi_block_erase_d8,
8235 }, {
8236 .eraseblocks = { {8 * 1024 * 1024, 1} },
8237 .block_erase = spi_block_erase_60,
8238 }, {
8239 .eraseblocks = { {8 * 1024 * 1024, 1} },
8240 .block_erase = spi_block_erase_c7,
8241 },
8242 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008243 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008244 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008245 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008246 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008247 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008248 },
8249
8250 {
8251 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008252 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008253 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008254 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008255 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008256 .total_size = 512,
8257 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008258 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008259 .tested = TEST_OK_PR,
8260 .probe = probe_spi_rems,
8261 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008262 .block_erasers =
8263 {
8264 {
8265 .eraseblocks = { {4 * 1024, 128} },
8266 .block_erase = spi_block_erase_20,
8267 }, {
8268 .eraseblocks = { {32 * 1024, 16} },
8269 .block_erase = spi_block_erase_52,
8270 }, {
8271 .eraseblocks = { {512 * 1024, 1} },
8272 .block_erase = spi_block_erase_60,
8273 },
8274 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008275 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008276 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008277 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008278 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008279 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008280 },
8281
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008282 {
8283 .vendor = "SST",
8284 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008285 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008286 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008287 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008288 .total_size = 512,
8289 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008290 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008291 .tested = TEST_UNTESTED,
8292 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008293 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008294 .block_erasers =
8295 {
8296 {
8297 .eraseblocks = { {4 * 1024, 128} },
8298 .block_erase = spi_block_erase_20,
8299 }, {
8300 .eraseblocks = { {32 * 1024, 16} },
8301 .block_erase = spi_block_erase_52,
8302 }, {
8303 .eraseblocks = { {64 * 1024, 8} },
8304 .block_erase = spi_block_erase_d8,
8305 }, {
8306 .eraseblocks = { {512 * 1024, 1} },
8307 .block_erase = spi_block_erase_60,
8308 }, {
8309 .eraseblocks = { {512 * 1024, 1} },
8310 .block_erase = spi_block_erase_c7,
8311 },
8312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008313 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008314 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008315 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00008316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008317 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00008318 },
8319
8320 {
8321 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00008322 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008323 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008324 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008325 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00008326 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008327 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008328 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00008329 .tested = TEST_OK_PR,
8330 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008331 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008332 .block_erasers =
8333 {
8334 {
8335 .eraseblocks = { {4 * 1024, 128} },
8336 .block_erase = spi_block_erase_20,
8337 }, {
8338 .eraseblocks = { {32 * 1024, 16} },
8339 .block_erase = spi_block_erase_52,
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_60,
8346 }, {
8347 .eraseblocks = { {512 * 1024, 1} },
8348 .block_erase = spi_block_erase_c7,
8349 },
8350 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008351 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008352 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008353 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00008354 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008355 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00008356 },
8357
8358 {
8359 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008360 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008361 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008362 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008363 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008364 .total_size = 1024,
8365 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008366 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00008367 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008368 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008369 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008370 .block_erasers =
8371 {
8372 {
8373 .eraseblocks = { {4 * 1024, 256} },
8374 .block_erase = spi_block_erase_20,
8375 }, {
8376 .eraseblocks = { {32 * 1024, 32} },
8377 .block_erase = spi_block_erase_52,
8378 }, {
8379 .eraseblocks = { {64 * 1024, 16} },
8380 .block_erase = spi_block_erase_d8,
8381 }, {
8382 .eraseblocks = { {1024 * 1024, 1} },
8383 .block_erase = spi_block_erase_60,
8384 }, {
8385 .eraseblocks = { {1024 * 1024, 1} },
8386 .block_erase = spi_block_erase_c7,
8387 },
8388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008389 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008390 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008391 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008393 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008394 },
8395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008396 {
8397 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00008398 .name = "SST25WF512",
8399 .bustype = BUS_SPI,
8400 .manufacture_id = SST_ID,
8401 .model_id = SST_SST25WF512,
8402 .total_size = 64,
8403 .page_size = 256,
8404 .feature_bits = FEATURE_WRSR_EITHER,
8405 .tested = TEST_UNTESTED,
8406 .probe = probe_spi_rdid,
8407 .probe_timing = TIMING_ZERO,
8408 .block_erasers =
8409 {
8410 {
8411 .eraseblocks = { {4 * 1024, 16} },
8412 .block_erase = spi_block_erase_20,
8413 }, {
8414 .eraseblocks = { {32 * 1024, 2} },
8415 .block_erase = spi_block_erase_52,
8416 }, {
8417 .eraseblocks = { {1024 * 64, 1} },
8418 .block_erase = spi_block_erase_60,
8419 }, {
8420 .eraseblocks = { {1024 * 64, 1} },
8421 .block_erase = spi_block_erase_c7,
8422 },
8423 },
8424 .unlock = spi_disable_blockprotect,
8425 .write = spi_aai_write,
8426 .read = spi_chip_read, /* Fast read (0x0B) supported */
8427 .voltage = {1650, 1950},
8428 },
8429
8430 {
8431 .vendor = "SST",
8432 .name = "SST25WF010",
8433 .bustype = BUS_SPI,
8434 .manufacture_id = SST_ID,
8435 .model_id = SST_SST25WF010,
8436 .total_size = 128,
8437 .page_size = 256,
8438 .feature_bits = FEATURE_WRSR_EITHER,
8439 .tested = TEST_UNTESTED,
8440 .probe = probe_spi_rdid,
8441 .probe_timing = TIMING_ZERO,
8442 .block_erasers =
8443 {
8444 {
8445 .eraseblocks = { {4 * 1024, 32} },
8446 .block_erase = spi_block_erase_20,
8447 }, {
8448 .eraseblocks = { {32 * 1024, 4} },
8449 .block_erase = spi_block_erase_52,
8450 }, {
8451 .eraseblocks = { {1024 * 128, 1} },
8452 .block_erase = spi_block_erase_60,
8453 }, {
8454 .eraseblocks = { {1024 * 128, 1} },
8455 .block_erase = spi_block_erase_c7,
8456 },
8457 },
8458 .unlock = spi_disable_blockprotect,
8459 .write = spi_aai_write,
8460 .read = spi_chip_read, /* Fast read (0x0B) supported */
8461 .voltage = {1650, 1950},
8462 },
8463
8464 {
8465 .vendor = "SST",
8466 .name = "SST25WF020",
8467 .bustype = BUS_SPI,
8468 .manufacture_id = SST_ID,
8469 .model_id = SST_SST25WF020,
8470 .total_size = 256,
8471 .page_size = 256,
8472 .feature_bits = FEATURE_WRSR_EITHER,
8473 .tested = TEST_UNTESTED,
8474 .probe = probe_spi_rdid,
8475 .probe_timing = TIMING_ZERO,
8476 .block_erasers =
8477 {
8478 {
8479 .eraseblocks = { {4 * 1024, 64} },
8480 .block_erase = spi_block_erase_20,
8481 }, {
8482 .eraseblocks = { {32 * 1024, 8} },
8483 .block_erase = spi_block_erase_52,
8484 }, {
8485 .eraseblocks = { {64 * 1024, 4} },
8486 .block_erase = spi_block_erase_d8,
8487 }, {
8488 .eraseblocks = { {1024 * 256, 1} },
8489 .block_erase = spi_block_erase_60,
8490 }, {
8491 .eraseblocks = { {1024 * 256, 1} },
8492 .block_erase = spi_block_erase_c7,
8493 },
8494 },
8495 .unlock = spi_disable_blockprotect,
8496 .write = spi_aai_write,
8497 .read = spi_chip_read, /* Fast read (0x0B) supported */
8498 .voltage = {1650, 1950},
8499 },
8500
8501 {
8502 .vendor = "SST",
8503 .name = "SST25WF040",
8504 .bustype = BUS_SPI,
8505 .manufacture_id = SST_ID,
8506 .model_id = SST_SST25WF040,
8507 .total_size = 512,
8508 .page_size = 256,
8509 .feature_bits = FEATURE_WRSR_EITHER,
8510 .tested = TEST_UNTESTED,
8511 .probe = probe_spi_rdid,
8512 .probe_timing = TIMING_ZERO,
8513 .block_erasers =
8514 {
8515 {
8516 .eraseblocks = { {4 * 1024, 128} },
8517 .block_erase = spi_block_erase_20,
8518 }, {
8519 .eraseblocks = { {32 * 1024, 16} },
8520 .block_erase = spi_block_erase_52,
8521 }, {
8522 .eraseblocks = { {64 * 1024, 8} },
8523 .block_erase = spi_block_erase_d8,
8524 }, {
8525 .eraseblocks = { {1024 * 512, 1} },
8526 .block_erase = spi_block_erase_60,
8527 }, {
8528 .eraseblocks = { {1024 * 512, 1} },
8529 .block_erase = spi_block_erase_c7,
8530 },
8531 },
8532 .unlock = spi_disable_blockprotect,
8533 .write = spi_aai_write,
8534 .read = spi_chip_read, /* Fast read (0x0B) supported */
8535 .voltage = {1650, 1950},
8536 },
8537
8538 {
8539 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008542 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008543 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008544 .total_size = 512,
8545 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008546 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008547 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008548 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008549 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008550 .block_erasers =
8551 {
8552 {
8553 .eraseblocks = { {128, 4096} },
8554 .block_erase = erase_sector_28sf040,
8555 }, {
8556 .eraseblocks = { {512 * 1024, 1} },
8557 .block_erase = erase_chip_28sf040,
8558 }
8559 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008560 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008561 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008563 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008564 },
8565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008566 {
8567 .vendor = "SST",
8568 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008570 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008571 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008572 .total_size = 128,
8573 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008574 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008575 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008576 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008577 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008578 .block_erasers =
8579 {
8580 {
8581 .eraseblocks = { {128 * 1024, 1} },
8582 .block_erase = erase_chip_block_jedec,
8583 }
8584 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008585 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008586 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008587 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008588 },
8589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008590 {
8591 .vendor = "SST",
8592 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008593 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008594 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008595 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008596 .total_size = 128,
8597 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008598 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008599 .tested = TEST_UNTESTED,
8600 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008601 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008602 .block_erasers =
8603 {
8604 {
8605 .eraseblocks = { {128 * 1024, 1} },
8606 .block_erase = erase_chip_block_jedec,
8607 }
8608 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008609 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008611 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008612 },
8613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008614 {
8615 .vendor = "SST",
8616 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008619 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008620 .total_size = 256,
8621 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008622 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008623 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008624 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008625 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008626 .block_erasers =
8627 {
8628 {
8629 .eraseblocks = { {256 * 1024, 1} },
8630 .block_erase = erase_chip_block_jedec,
8631 }
8632 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008635 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008636 },
8637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008638 {
8639 .vendor = "SST",
8640 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008641 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008642 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008643 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008644 .total_size = 256,
8645 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008646 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008647 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008648 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008649 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008650 .block_erasers =
8651 {
8652 {
8653 .eraseblocks = { {256 * 1024, 1} },
8654 .block_erase = erase_chip_block_jedec,
8655 }
8656 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008657 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008658 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008659 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008660 },
8661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008662 {
8663 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00008664 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008665 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008666 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008667 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008668 .total_size = 64,
8669 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008670 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00008671 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008672 .probe = probe_jedec,
8673 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00008674 .block_erasers =
8675 {
8676 {
8677 .eraseblocks = { {4 * 1024, 16} },
8678 .block_erase = erase_sector_jedec,
8679 }, {
8680 .eraseblocks = { {64 * 1024, 1} },
8681 .block_erase = erase_chip_block_jedec,
8682 }
8683 },
Sean Nelson35727f72010-01-28 23:55:12 +00008684 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008686 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00008687 },
8688
8689 {
8690 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008691 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008692 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008693 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008694 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008695 .total_size = 128,
8696 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008697 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008699 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008700 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008701 .block_erasers =
8702 {
8703 {
8704 .eraseblocks = { {4 * 1024, 32} },
8705 .block_erase = erase_sector_jedec,
8706 }, {
8707 .eraseblocks = { {128 * 1024, 1} },
8708 .block_erase = erase_chip_block_jedec,
8709 }
8710 },
Sean Nelson35727f72010-01-28 23:55:12 +00008711 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008713 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008714 },
8715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008716 {
8717 .vendor = "SST",
8718 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008719 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008720 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008721 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008722 .total_size = 256,
8723 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008724 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008726 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008727 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008728 .block_erasers =
8729 {
8730 {
8731 .eraseblocks = { {4 * 1024, 64} },
8732 .block_erase = erase_sector_jedec,
8733 }, {
8734 .eraseblocks = { {256 * 1024, 1} },
8735 .block_erase = erase_chip_block_jedec,
8736 }
8737 },
Sean Nelson35727f72010-01-28 23:55:12 +00008738 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008740 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008741 },
8742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008743 {
8744 .vendor = "SST",
8745 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008746 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008747 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008748 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008749 .total_size = 512,
8750 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008751 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008752 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008753 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008754 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008755 .block_erasers =
8756 {
8757 {
8758 .eraseblocks = { {4 * 1024, 128} },
8759 .block_erase = erase_sector_jedec,
8760 }, {
8761 .eraseblocks = { {512 * 1024, 1} },
8762 .block_erase = erase_chip_block_jedec,
8763 }
8764 },
Sean Nelson35727f72010-01-28 23:55:12 +00008765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008767 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008768 },
8769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008770 {
8771 .vendor = "SST",
8772 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008773 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008774 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008775 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008776 .total_size = 64,
8777 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008778 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008779 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008780 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008781 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008782 .block_erasers =
8783 {
8784 {
8785 .eraseblocks = { {4 * 1024, 16} },
8786 .block_erase = erase_sector_jedec,
8787 }, {
8788 .eraseblocks = { {64 * 1024, 1} },
8789 .block_erase = erase_chip_block_jedec,
8790 }
8791 },
Sean Nelson35727f72010-01-28 23:55:12 +00008792 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008793 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008794 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008795 },
8796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008797 {
8798 .vendor = "SST",
8799 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008800 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008801 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008802 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008803 .total_size = 128,
8804 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008805 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008806 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008807 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008808 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008809 .block_erasers =
8810 {
8811 {
8812 .eraseblocks = { {4 * 1024, 32} },
8813 .block_erase = erase_sector_jedec,
8814 }, {
8815 .eraseblocks = { {128 * 1024, 1} },
8816 .block_erase = erase_chip_block_jedec,
8817 }
8818 },
Sean Nelson35727f72010-01-28 23:55:12 +00008819 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008820 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008821 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008822 },
8823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008824 {
8825 .vendor = "SST",
8826 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008827 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008828 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008829 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008830 .total_size = 256,
8831 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008832 .feature_bits = FEATURE_EITHER_RESET,
8833 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008834 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008835 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008836 .block_erasers =
8837 {
8838 {
8839 .eraseblocks = { {4 * 1024, 64} },
8840 .block_erase = erase_sector_jedec,
8841 }, {
8842 .eraseblocks = { {256 * 1024, 1} },
8843 .block_erase = erase_chip_block_jedec,
8844 }
8845 },
Sean Nelson35727f72010-01-28 23:55:12 +00008846 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008847 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008848 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008849 },
8850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008851 {
8852 .vendor = "SST",
8853 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008854 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008855 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008856 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 .total_size = 512,
8858 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008859 .feature_bits = FEATURE_EITHER_RESET,
8860 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008862 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008863 .block_erasers =
8864 {
8865 {
8866 .eraseblocks = { {4 * 1024, 128} },
8867 .block_erase = erase_sector_jedec,
8868 }, {
8869 .eraseblocks = { {512 * 1024, 1} },
8870 .block_erase = erase_chip_block_jedec,
8871 }
8872 },
Sean Nelson35727f72010-01-28 23:55:12 +00008873 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008875 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00008876 },
FENG yu ningff692fb2008-12-08 18:15:10 +00008877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 {
8879 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00008880 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008881 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008883 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00008884 .total_size = 1024,
8885 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008886 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00008887 .tested = TEST_UNTESTED,
8888 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008889 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008890 .block_erasers =
8891 {
8892 {
8893 .eraseblocks = { {4 * 1024, 256} },
8894 .block_erase = erase_sector_jedec,
8895 }, {
8896 .eraseblocks = { {64 * 1024, 16} },
8897 .block_erase = erase_block_jedec,
8898 }, {
8899 .eraseblocks = { {1024 * 1024, 1} },
8900 .block_erase = erase_chip_block_jedec,
8901 }
8902 },
Sean Nelson35727f72010-01-28 23:55:12 +00008903 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008904 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008905 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00008906 },
8907
8908 {
8909 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008910 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008911 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008912 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008913 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008914 .total_size = 256,
8915 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008916 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008917 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008918 .probe = probe_jedec,
8919 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008920 .block_erasers =
8921 {
8922 {
8923 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008924 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008925 }, {
8926 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008927 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008928 }, {
8929 .eraseblocks = { {256 * 1024, 1} },
8930 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8931 }
8932 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008933 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008934 .unlock = unlock_sst_fwhub,
8935 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008937 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008938 },
8939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008940 {
8941 .vendor = "SST",
8942 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008943 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008944 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008945 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008946 .total_size = 384,
8947 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008948 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00008949 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008950 .probe = probe_jedec,
8951 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008952 .block_erasers =
8953 {
8954 {
8955 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008956 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008957 }, {
8958 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008959 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008960 }, {
8961 .eraseblocks = { {384 * 1024, 1} },
8962 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8963 }
8964 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008965 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008966 .unlock = unlock_sst_fwhub,
8967 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008969 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008970 },
8971
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008972 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008973 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
8974 * and is only honored for 64k block erase, but not 4k sector erase.
8975 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008976 .vendor = "SST",
8977 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008978 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008979 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008980 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .total_size = 512,
8982 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008983 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008984 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008985 .probe = probe_jedec,
8986 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008987 .block_erasers =
8988 {
8989 {
8990 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008991 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008992 }, {
8993 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008994 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008995 }, {
8996 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008997 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008998 },
8999 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009000 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009001 .unlock = unlock_sst_fwhub,
9002 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009003 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009004 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009005 },
9006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009007 {
9008 .vendor = "SST",
9009 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009010 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009011 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009012 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009013 .total_size = 512,
9014 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009015 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009017 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009018 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009019 .block_erasers =
9020 {
9021 {
9022 .eraseblocks = { {4 * 1024, 128} },
9023 .block_erase = erase_sector_49lfxxxc,
9024 }, {
9025 .eraseblocks = {
9026 {64 * 1024, 7},
9027 {32 * 1024, 1},
9028 {8 * 1024, 2},
9029 {16 * 1024, 1},
9030 },
Sean Nelson69e58112010-03-23 17:10:28 +00009031 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009032 }
9033 },
Sean Nelson69e58112010-03-23 17:10:28 +00009034 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009035 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009036 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009037 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009038 },
9039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009040 {
9041 .vendor = "SST",
9042 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009043 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009044 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009045 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009046 .total_size = 1024,
9047 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009048 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009049 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009050 .probe = probe_jedec,
9051 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009052 .block_erasers =
9053 {
9054 {
9055 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009056 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009057 }, {
9058 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009059 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009060 }, {
9061 .eraseblocks = { {1024 * 1024, 1} },
9062 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9063 }
9064 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009065 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009066 .unlock = unlock_sst_fwhub,
9067 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009069 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009070 },
9071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009072 {
9073 .vendor = "SST",
9074 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009075 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009076 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009077 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009078 .total_size = 1024,
9079 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009080 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009081 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009082 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009083 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009084 .block_erasers =
9085 {
9086 {
9087 .eraseblocks = { {4 * 1024, 256} },
9088 .block_erase = erase_sector_49lfxxxc,
9089 }, {
9090 .eraseblocks = {
9091 {64 * 1024, 15},
9092 {32 * 1024, 1},
9093 {8 * 1024, 2},
9094 {16 * 1024, 1},
9095 },
Sean Nelson69e58112010-03-23 17:10:28 +00009096 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009097 }
9098 },
Sean Nelson69e58112010-03-23 17:10:28 +00009099 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009100 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009102 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009103 },
9104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009105 {
9106 .vendor = "SST",
9107 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009108 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009109 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009110 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009111 .total_size = 2048,
9112 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009113 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00009114 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009115 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009116 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009117 .block_erasers =
9118 {
9119 {
9120 .eraseblocks = { {4 * 1024, 512} },
9121 .block_erase = erase_sector_49lfxxxc,
9122 }, {
9123 .eraseblocks = {
9124 {64 * 1024, 31},
9125 {32 * 1024, 1},
9126 {8 * 1024, 2},
9127 {16 * 1024, 1},
9128 },
Sean Nelson69e58112010-03-23 17:10:28 +00009129 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009130 }
9131 },
Sean Nelson69e58112010-03-23 17:10:28 +00009132 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009133 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009135 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009136 },
9137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009138 {
9139 .vendor = "SST",
9140 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009141 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009142 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009143 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009144 .total_size = 256,
9145 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009146 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00009147 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009148 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009149 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009150 .block_erasers =
9151 {
9152 {
9153 .eraseblocks = { {4 * 1024, 64} },
9154 .block_erase = erase_sector_jedec,
9155 }, {
9156 .eraseblocks = { {16 * 1024, 16} },
9157 .block_erase = erase_block_jedec,
9158 }, {
9159 .eraseblocks = { {256 * 1024, 1} },
9160 .block_erase = NULL,
9161 }
9162 },
Sean Nelson35727f72010-01-28 23:55:12 +00009163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009165 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00009166 },
9167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009168 {
9169 .vendor = "SST",
9170 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009171 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009172 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009173 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009174 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00009175 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009176 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009177 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009178 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009179 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009180 .block_erasers =
9181 {
9182 {
9183 .eraseblocks = { {4 * 1024, 64} },
9184 .block_erase = erase_sector_jedec,
9185 }, {
9186 .eraseblocks = { {16 * 1024, 16} },
9187 .block_erase = erase_block_jedec,
9188 }, {
9189 .eraseblocks = { {256 * 1024, 1} },
9190 .block_erase = NULL,
9191 }
9192 },
Sean Nelson35727f72010-01-28 23:55:12 +00009193 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009194 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009195 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009196 },
9197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009198 {
9199 .vendor = "SST",
9200 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009201 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009202 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009203 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009204 .total_size = 512,
9205 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009206 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009207 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009208 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009209 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009210 .block_erasers =
9211 {
9212 {
9213 .eraseblocks = { {4 * 1024, 128} },
9214 .block_erase = erase_sector_jedec,
9215 }, {
9216 .eraseblocks = { {64 * 1024, 8} },
9217 .block_erase = erase_block_jedec,
9218 }, {
9219 .eraseblocks = { {512 * 1024, 1} },
9220 .block_erase = NULL,
9221 }
9222 },
Sean Nelson35727f72010-01-28 23:55:12 +00009223 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009225 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009226 },
9227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009228 {
9229 .vendor = "SST",
9230 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009231 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009232 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009233 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009234 .total_size = 512,
9235 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009236 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009237 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009238 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009239 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009240 .block_erasers =
9241 {
9242 {
9243 .eraseblocks = { {4 * 1024, 128} },
9244 .block_erase = erase_sector_jedec,
9245 }, {
9246 .eraseblocks = { {64 * 1024, 8} },
9247 .block_erase = erase_block_jedec,
9248 }, {
9249 .eraseblocks = { {512 * 1024, 1} },
9250 .block_erase = NULL,
9251 }
9252 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009253 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00009254 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009256 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009257 },
9258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009259 {
9260 .vendor = "SST",
9261 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009262 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009263 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009264 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009265 .total_size = 1024,
9266 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009267 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00009268 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009269 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00009270 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009271 .block_erasers =
9272 {
9273 {
9274 .eraseblocks = { {4 * 1024, 256} },
9275 .block_erase = erase_sector_jedec,
9276 }, {
9277 .eraseblocks = { {64 * 1024, 16} },
9278 .block_erase = erase_block_jedec,
9279 }, {
9280 .eraseblocks = { {1024 * 1024, 1} },
9281 .block_erase = NULL,
9282 }
9283 },
Sean Nelson35727f72010-01-28 23:55:12 +00009284 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009285 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009286 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009287 },
9288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009289 {
9290 .vendor = "SST",
9291 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009292 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009293 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009294 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009295 .total_size = 2048,
9296 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009297 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009298 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009299 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009300 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009301 .block_erasers =
9302 {
9303 {
9304 .eraseblocks = { {4 * 1024, 512} },
9305 .block_erase = erase_sector_49lfxxxc,
9306 }, {
9307 .eraseblocks = {
9308 {64 * 1024, 31},
9309 {32 * 1024, 1},
9310 {8 * 1024, 2},
9311 {16 * 1024, 1},
9312 },
Sean Nelson69e58112010-03-23 17:10:28 +00009313 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009314 }
9315 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009316 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009317 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009319 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009320 },
9321
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009322 {
9323 .vendor = "ST",
9324 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009325 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009326 .manufacture_id = ST_ID,
9327 .model_id = ST_M25P05A,
9328 .total_size = 64,
9329 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009330 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009331 .tested = TEST_UNTESTED,
9332 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009333 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009334 .block_erasers =
9335 {
9336 {
9337 .eraseblocks = { {32 * 1024, 2} },
9338 .block_erase = spi_block_erase_d8,
9339 }, {
9340 .eraseblocks = { {64 * 1024, 1} },
9341 .block_erase = spi_block_erase_c7,
9342 }
9343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009344 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009346 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009348 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009349 },
9350
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009351 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9352 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009353 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009354 * only is successful if RDID does not work.
9355 */
9356 {
9357 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009358 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009359 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009360 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009361 .model_id = ST_M25P05_RES,
9362 .total_size = 64,
9363 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009364 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009365 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009366 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009367 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009368 .block_erasers =
9369 {
9370 {
9371 .eraseblocks = { {32 * 1024, 2} },
9372 .block_erase = spi_block_erase_d8,
9373 }, {
9374 .eraseblocks = { {64 * 1024, 1} },
9375 .block_erase = spi_block_erase_c7,
9376 }
9377 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009378 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009379 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009380 .write = spi_chip_write_1, /* 128 */
9381 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009382 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009383 },
9384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009385 {
9386 .vendor = "ST",
9387 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009388 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009389 .manufacture_id = ST_ID,
9390 .model_id = ST_M25P10A,
9391 .total_size = 128,
9392 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009393 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009394 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009395 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009396 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009397 .block_erasers =
9398 {
9399 {
9400 .eraseblocks = { {32 * 1024, 4} },
9401 .block_erase = spi_block_erase_d8,
9402 }, {
9403 .eraseblocks = { {128 * 1024, 1} },
9404 .block_erase = spi_block_erase_c7,
9405 }
9406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009407 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009409 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009410 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009411 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009412 },
9413
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009414 /* The ST M25P10 has the same problem as the M25P05. */
9415 {
9416 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009417 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009418 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009419 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009420 .model_id = ST_M25P10_RES,
9421 .total_size = 128,
9422 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009423 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009424 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009425 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009426 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009427 .block_erasers =
9428 {
9429 {
9430 .eraseblocks = { {32 * 1024, 4} },
9431 .block_erase = spi_block_erase_d8,
9432 }, {
9433 .eraseblocks = { {128 * 1024, 1} },
9434 .block_erase = spi_block_erase_c7,
9435 }
9436 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009437 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009438 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009439 .write = spi_chip_write_1, /* 128 */
9440 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009441 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009442 },
9443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009444 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009445 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009446 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009447 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009448 .manufacture_id = ST_ID,
9449 .model_id = ST_M25P20,
9450 .total_size = 256,
9451 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009452 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009453 .tested = TEST_UNTESTED,
9454 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009455 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009456 .block_erasers =
9457 {
9458 {
9459 .eraseblocks = { {64 * 1024, 4} },
9460 .block_erase = spi_block_erase_d8,
9461 }, {
9462 .eraseblocks = { {256 * 1024, 1} },
9463 .block_erase = spi_block_erase_c7,
9464 }
9465 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009466 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009467 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009468 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009469 .read = spi_chip_read, /* Fast read (0x0B) supported */
9470 .voltage = {2700, 3600},
9471 },
9472
9473 {
9474 .vendor = "ST",
9475 .name = "M25P20-old",
9476 .bustype = BUS_SPI,
9477 .manufacture_id = 0, /* Not used. */
9478 .model_id = ST_M25P20_RES,
9479 .total_size = 256,
9480 .page_size = 256,
9481 .feature_bits = FEATURE_WRSR_WREN,
9482 .tested = TEST_OK_PREW,
9483 .probe = probe_spi_res1,
9484 .probe_timing = TIMING_ZERO,
9485 .block_erasers =
9486 {
9487 {
9488 .eraseblocks = { {64 * 1024, 4} },
9489 .block_erase = spi_block_erase_d8,
9490 }, {
9491 .eraseblocks = { {256 * 1024, 1} },
9492 .block_erase = spi_block_erase_c7,
9493 }
9494 },
9495 .printlock = spi_prettyprint_status_register_default_bp1,
9496 .unlock = spi_disable_blockprotect,
9497 .write = spi_chip_write_256,
9498 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009499 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009500 },
9501
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009502 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009503 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009504 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009505 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .manufacture_id = ST_ID,
9507 .model_id = ST_M25P40,
9508 .total_size = 512,
9509 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009510 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009511 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009512 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009513 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009514 .block_erasers =
9515 {
9516 {
9517 .eraseblocks = { {64 * 1024, 8} },
9518 .block_erase = spi_block_erase_d8,
9519 }, {
9520 .eraseblocks = { {512 * 1024, 1} },
9521 .block_erase = spi_block_erase_c7,
9522 }
9523 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009524 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009525 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009526 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009528 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009529 },
9530
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009531 {
9532 .vendor = "ST",
9533 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009534 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009535 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009536 .model_id = ST_M25P40_RES,
9537 .total_size = 512,
9538 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009539 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009540 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009541 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009542 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009543 .block_erasers =
9544 {
9545 {
9546 .eraseblocks = { {64 * 1024, 8} },
9547 .block_erase = spi_block_erase_d8,
9548 }, {
9549 .eraseblocks = { {512 * 1024, 1} },
9550 .block_erase = spi_block_erase_c7,
9551 }
9552 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009553 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009554 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009555 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009556 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00009557 },
9558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009559 {
9560 .vendor = "ST",
9561 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009563 .manufacture_id = ST_ID,
9564 .model_id = ST_M25P80,
9565 .total_size = 1024,
9566 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009567 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009568 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009570 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009571 .block_erasers =
9572 {
9573 {
9574 .eraseblocks = { {64 * 1024, 16} },
9575 .block_erase = spi_block_erase_d8,
9576 }, {
9577 .eraseblocks = { {1024 * 1024, 1} },
9578 .block_erase = spi_block_erase_c7,
9579 }
9580 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009581 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009582 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009583 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009584 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009585 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009586 },
9587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009588 {
9589 .vendor = "ST",
9590 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009591 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009592 .manufacture_id = ST_ID,
9593 .model_id = ST_M25P16,
9594 .total_size = 2048,
9595 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009596 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009597 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009598 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009599 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009600 .block_erasers =
9601 {
9602 {
9603 .eraseblocks = { {64 * 1024, 32} },
9604 .block_erase = spi_block_erase_d8,
9605 }, {
9606 .eraseblocks = { {2 * 1024 * 1024, 1} },
9607 .block_erase = spi_block_erase_c7,
9608 }
9609 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009610 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009611 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009612 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009613 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009614 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009615 },
9616
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009617 {
9618 .vendor = "ST",
9619 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009620 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009621 .manufacture_id = ST_ID,
9622 .model_id = ST_M25P32,
9623 .total_size = 4096,
9624 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009625 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009626 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009627 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009628 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009629 .block_erasers =
9630 {
9631 {
9632 .eraseblocks = { {64 * 1024, 64} },
9633 .block_erase = spi_block_erase_d8,
9634 }, {
9635 .eraseblocks = { {4 * 1024 * 1024, 1} },
9636 .block_erase = spi_block_erase_c7,
9637 }
9638 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009639 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009640 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009641 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009642 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009643 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009644 },
9645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009646 {
9647 .vendor = "ST",
9648 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009649 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009650 .manufacture_id = ST_ID,
9651 .model_id = ST_M25P64,
9652 .total_size = 8192,
9653 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009654 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009655 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009656 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009657 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009658 .block_erasers =
9659 {
9660 {
9661 .eraseblocks = { {64 * 1024, 128} },
9662 .block_erase = spi_block_erase_d8,
9663 }, {
9664 .eraseblocks = { {8 * 1024 * 1024, 1} },
9665 .block_erase = spi_block_erase_c7,
9666 }
9667 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009668 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009669 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009670 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009671 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009672 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009673 },
9674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009675 {
9676 .vendor = "ST",
9677 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009678 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009679 .manufacture_id = ST_ID,
9680 .model_id = ST_M25P128,
9681 .total_size = 16384,
9682 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009683 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009684 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009685 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009686 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009687 .block_erasers =
9688 {
9689 {
9690 .eraseblocks = { {256 * 1024, 64} },
9691 .block_erase = spi_block_erase_d8,
9692 }, {
9693 .eraseblocks = { {16 * 1024 * 1024, 1} },
9694 .block_erase = spi_block_erase_c7,
9695 }
9696 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009697 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009698 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009699 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009700 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009701 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009702 },
9703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009704 {
9705 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00009706 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009707 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00009708 .manufacture_id = ST_ID,
9709 .model_id = ST_M25PX16,
9710 .total_size = 2048,
9711 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009712 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00009713 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00009714 .tested = TEST_OK_PREW,
9715 .probe = probe_spi_rdid,
9716 .probe_timing = TIMING_ZERO,
9717 .block_erasers =
9718 {
9719 {
9720 .eraseblocks = { { 4 * 1024, 512 } },
9721 .block_erase = spi_block_erase_20,
9722 }, {
9723 .eraseblocks = { {64 * 1024, 32} },
9724 .block_erase = spi_block_erase_d8,
9725 }, {
9726 .eraseblocks = { {2 * 1024 * 1024, 1} },
9727 .block_erase = spi_block_erase_c7,
9728 }
9729 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009730 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00009731 .unlock = spi_disable_blockprotect,
9732 .write = spi_chip_write_256,
9733 .read = spi_chip_read,
9734 },
9735
9736 {
9737 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00009738 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009739 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009740 .manufacture_id = ST_ID,
9741 .model_id = ST_M25PX32,
9742 .total_size = 4096,
9743 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009744 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009745 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009746 .probe = probe_spi_rdid,
9747 .probe_timing = TIMING_ZERO,
9748 .block_erasers =
9749 {
9750 {
9751 .eraseblocks = { { 4 * 1024, 1024 } },
9752 .block_erase = spi_block_erase_20,
9753 }, {
9754 .eraseblocks = { {64 * 1024, 64} },
9755 .block_erase = spi_block_erase_d8,
9756 }, {
9757 .eraseblocks = { {4 * 1024 * 1024, 1} },
9758 .block_erase = spi_block_erase_c7,
9759 }
9760 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009761 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00009762 .unlock = spi_disable_blockprotect,
9763 .write = spi_chip_write_256,
9764 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009765 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00009766 },
9767
9768 {
9769 .vendor = "ST",
9770 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009771 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009772 .manufacture_id = ST_ID,
9773 .model_id = ST_M25PX64,
9774 .total_size = 8192,
9775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009776 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009777 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009778 .probe = probe_spi_rdid,
9779 .probe_timing = TIMING_ZERO,
9780 .block_erasers =
9781 {
9782 {
9783 .eraseblocks = { { 4 * 1024, 2048 } },
9784 .block_erase = spi_block_erase_20,
9785 }, {
9786 .eraseblocks = { {64 * 1024, 128} },
9787 .block_erase = spi_block_erase_d8,
9788 }, {
9789 .eraseblocks = { {8 * 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 */
Jason Shriver4119e9b2010-09-14 13:16:01 +00009794 .unlock = spi_disable_blockprotect,
9795 .write = spi_chip_write_256,
9796 .read = spi_chip_read,
9797 },
9798
9799 {
9800 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009801 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009802 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009803 .manufacture_id = ST_ID,
9804 .model_id = ST_M29F002B,
9805 .total_size = 256,
9806 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009807 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009808 .tested = TEST_UNTESTED,
9809 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009810 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009811 .block_erasers =
9812 {
9813 {
9814 .eraseblocks = {
9815 {16 * 1024, 1},
9816 {8 * 1024, 2},
9817 {32 * 1024, 1},
9818 {64 * 1024, 3},
9819 },
9820 .block_erase = erase_sector_jedec,
9821 }, {
9822 .eraseblocks = { {256 * 1024, 1} },
9823 .block_erase = erase_chip_block_jedec,
9824 }
9825 },
Sean Nelson35727f72010-01-28 23:55:12 +00009826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009827 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009828 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00009829 },
9830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009831 {
9832 .vendor = "ST",
9833 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009834 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009835 .manufacture_id = ST_ID,
9836 .model_id = ST_M29F002T,
9837 .total_size = 256,
9838 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009839 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009840 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009841 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009842 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009843 .block_erasers =
9844 {
9845 {
9846 .eraseblocks = {
9847 {64 * 1024, 3},
9848 {32 * 1024, 1},
9849 {8 * 1024, 2},
9850 {16 * 1024, 1},
9851 },
9852 .block_erase = erase_sector_jedec,
9853 }, {
9854 .eraseblocks = { {256 * 1024, 1} },
9855 .block_erase = erase_chip_block_jedec,
9856 }
9857 },
Sean Nelson35727f72010-01-28 23:55:12 +00009858 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009859 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009860 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00009861 },
9862
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009863 {
9864 .vendor = "ST",
9865 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009866 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009867 .manufacture_id = ST_ID,
9868 .model_id = ST_M29F040B,
9869 .total_size = 512,
9870 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009871 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9872 .tested = TEST_UNTESTED,
9873 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009874 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00009875 .block_erasers =
9876 {
9877 {
9878 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00009879 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00009880 }, {
9881 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009882 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00009883 }
9884 },
Sean Nelson35727f72010-01-28 23:55:12 +00009885 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009886 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009887 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009888 },
9889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009890 {
Sean Nelson35727f72010-01-28 23:55:12 +00009891 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009892 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009893 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009894 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009895 .manufacture_id = ST_ID,
9896 .model_id = ST_M29F400BB,
9897 .total_size = 512,
9898 .page_size = 64 * 1024,
9899 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009900 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009901 .probe = probe_m29f400bt,
9902 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
9903 .block_erasers =
9904 {
9905 {
9906 .eraseblocks = {
9907 {16 * 1024, 1},
9908 {8 * 1024, 2},
9909 {32 * 1024, 1},
9910 {64 * 1024, 7},
9911 },
9912 .block_erase = block_erase_m29f400bt,
9913 }, {
9914 .eraseblocks = { {512 * 1024, 1} },
9915 .block_erase = block_erase_chip_m29f400bt,
9916 }
9917 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009918 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009920 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009921 },
9922 {
9923 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
9924 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009925 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009926 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009927 .manufacture_id = ST_ID,
9928 .model_id = ST_M29F400BT,
9929 .total_size = 512,
9930 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009931 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009932 .tested = TEST_UNTESTED,
9933 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009934 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009935 .block_erasers =
9936 {
9937 {
9938 .eraseblocks = {
9939 {64 * 1024, 7},
9940 {32 * 1024, 1},
9941 {8 * 1024, 2},
9942 {16 * 1024, 1},
9943 },
9944 .block_erase = block_erase_m29f400bt,
9945 }, {
9946 .eraseblocks = { {512 * 1024, 1} },
9947 .block_erase = block_erase_chip_m29f400bt,
9948 }
9949 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009950 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009952 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009953 },
9954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009955 {
9956 .vendor = "ST",
9957 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009958 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009959 .manufacture_id = ST_ID,
9960 .model_id = ST_M29W010B,
9961 .total_size = 128,
9962 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009963 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009964 .tested = TEST_UNTESTED,
9965 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009966 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009967 .block_erasers =
9968 {
9969 {
9970 .eraseblocks = { {16 * 1024, 8}, },
9971 .block_erase = erase_sector_jedec,
9972 }, {
9973 .eraseblocks = { {128 * 1024, 1} },
9974 .block_erase = erase_chip_block_jedec,
9975 }
9976 },
Sean Nelson35727f72010-01-28 23:55:12 +00009977 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009980 },
9981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009982 {
9983 .vendor = "ST",
9984 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009986 .manufacture_id = ST_ID,
9987 .model_id = ST_M29W040B,
9988 .total_size = 512,
9989 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009990 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009991 .tested = TEST_UNTESTED,
9992 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009993 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009994 .block_erasers =
9995 {
9996 {
9997 .eraseblocks = { {64 * 1024, 8}, },
9998 .block_erase = erase_sector_jedec,
9999 }, {
10000 .eraseblocks = { {512 * 1024, 1} },
10001 .block_erase = erase_chip_block_jedec,
10002 }
10003 },
Sean Nelson35727f72010-01-28 23:55:12 +000010004 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010006 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010007 },
10008
Stefan Taunereb582572012-09-21 12:52:50 +000010009 {
10010 .vendor = "ST",
10011 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010012 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010013 .manufacture_id = ST_ID,
10014 .model_id = ST_M29W512B,
10015 .total_size = 64,
10016 .page_size = 64 * 1024,
10017 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010018 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +000010019 .probe = probe_jedec,
10020 .probe_timing = TIMING_ZERO,
10021 .block_erasers =
10022 {
10023 {
10024 .eraseblocks = { {64 * 1024, 1} },
10025 .block_erase = erase_chip_block_jedec,
10026 }
10027 },
10028 .write = write_jedec_1,
10029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010030 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000010031 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000010032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010033 {
10034 .vendor = "ST",
10035 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010036 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010037 .manufacture_id = ST_ID,
10038 .model_id = ST_M50FLW040A,
10039 .total_size = 512,
10040 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010041 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010042 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010043 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010044 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010045 .block_erasers =
10046 {
10047 {
Sean Nelson329bde72010-01-19 16:39:19 +000010048 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010049 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010050 {64 * 1024, 5}, /* block */
10051 {4 * 1024, 16}, /* sector */
10052 {4 * 1024, 16}, /* sector */
10053 },
10054 .block_erase = NULL,
10055 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010056 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010057 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010058 }
10059 },
Sean Nelson28accc22010-03-19 18:47:06 +000010060 .unlock = unlock_stm50flw0x0x,
10061 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010063 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010064 },
10065
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010066 {
10067 .vendor = "ST",
10068 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010069 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010070 .manufacture_id = ST_ID,
10071 .model_id = ST_M50FLW040B,
10072 .total_size = 512,
10073 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010074 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010075 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010076 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010077 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010078 .block_erasers =
10079 {
10080 {
Sean Nelson329bde72010-01-19 16:39:19 +000010081 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010082 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010083 {4 * 1024, 16}, /* sector */
10084 {64 * 1024, 5}, /* block */
10085 {4 * 1024, 16}, /* sector */
10086 },
10087 .block_erase = NULL,
10088 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010089 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010090 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010091 }
10092 },
Sean Nelson28accc22010-03-19 18:47:06 +000010093 .unlock = unlock_stm50flw0x0x,
10094 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010096 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010097 },
10098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010099 {
10100 .vendor = "ST",
10101 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010102 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010103 .manufacture_id = ST_ID,
10104 .model_id = ST_M50FLW080A,
10105 .total_size = 1024,
10106 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010107 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010108 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000010109 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010110 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010111 .block_erasers =
10112 {
10113 {
Sean Nelson329bde72010-01-19 16:39:19 +000010114 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010115 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010116 {64 * 1024, 13}, /* block */
10117 {4 * 1024, 16}, /* sector */
10118 {4 * 1024, 16}, /* sector */
10119 },
10120 .block_erase = NULL,
10121 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010122 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010123 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010124 }
10125 },
Sean Nelson28accc22010-03-19 18:47:06 +000010126 .unlock = unlock_stm50flw0x0x,
10127 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010128 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010129 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010130 },
10131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010132 {
10133 .vendor = "ST",
10134 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010135 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010136 .manufacture_id = ST_ID,
10137 .model_id = ST_M50FLW080B,
10138 .total_size = 1024,
10139 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010140 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010141 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010142 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010143 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010144 .block_erasers =
10145 {
10146 {
Sean Nelson329bde72010-01-19 16:39:19 +000010147 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010148 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010149 {4 * 1024, 16}, /* sector */
10150 {64 * 1024, 13}, /* block */
10151 {4 * 1024, 16}, /* sector */
10152 },
10153 .block_erase = NULL,
10154 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010155 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010156 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010157 }
10158 },
Sean Nelson28accc22010-03-19 18:47:06 +000010159 .unlock = unlock_stm50flw0x0x,
10160 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010161 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010162 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010163 },
10164
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010165 {
10166 .vendor = "ST",
10167 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010168 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010169 .manufacture_id = ST_ID,
10170 .model_id = ST_M50FW002,
10171 .total_size = 256,
10172 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010173 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010174 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010175 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010176 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010177 .block_erasers =
10178 {
10179 {
10180 .eraseblocks = {
10181 {64 * 1024, 3},
10182 {32 * 1024, 1},
10183 {8 * 1024, 2},
10184 {16 * 1024, 1},
10185 },
Sean Nelson28accc22010-03-19 18:47:06 +000010186 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010187 }
10188 },
Sean Nelson28accc22010-03-19 18:47:06 +000010189 .unlock = unlock_stm50flw0x0x,
10190 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010192 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010193 },
10194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010195 {
10196 .vendor = "ST",
10197 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010198 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010199 .manufacture_id = ST_ID,
10200 .model_id = ST_M50FW016,
10201 .total_size = 2048,
10202 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010203 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010204 .tested = TEST_UNTESTED,
10205 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010206 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010207 .block_erasers =
10208 {
10209 {
10210 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010211 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010212 }
10213 },
Sean Nelson28accc22010-03-19 18:47:06 +000010214 .unlock = unlock_stm50flw0x0x,
10215 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010217 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010218 },
10219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010220 {
10221 .vendor = "ST",
10222 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010223 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010224 .manufacture_id = ST_ID,
10225 .model_id = ST_M50FW040,
10226 .total_size = 512,
10227 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010228 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000010229 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010230 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010231 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010232 .block_erasers =
10233 {
10234 {
10235 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010236 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010237 }
10238 },
Sean Nelson28accc22010-03-19 18:47:06 +000010239 .unlock = unlock_stm50flw0x0x,
10240 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010242 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010243 },
10244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010245 {
10246 .vendor = "ST",
10247 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010248 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010249 .manufacture_id = ST_ID,
10250 .model_id = ST_M50FW080,
10251 .total_size = 1024,
10252 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010253 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010254 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010255 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010256 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010257 .block_erasers =
10258 {
10259 {
10260 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010261 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010262 }
10263 },
Sean Nelson28accc22010-03-19 18:47:06 +000010264 .unlock = unlock_stm50flw0x0x,
10265 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010267 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010268 },
10269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010270 {
10271 .vendor = "ST",
10272 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010273 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010274 .manufacture_id = ST_ID,
10275 .model_id = ST_M50LPW116,
10276 .total_size = 2048,
10277 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010278 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010279 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010280 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000010281 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010282 .block_erasers =
10283 {
10284 {
10285 .eraseblocks = {
10286 {4 * 1024, 16},
10287 {64 * 1024, 30},
10288 {32 * 1024, 1},
10289 {8 * 1024, 2},
10290 {16 * 1024, 1},
10291 },
Sean Nelson28accc22010-03-19 18:47:06 +000010292 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010293 }
10294 },
Sean Nelson28accc22010-03-19 18:47:06 +000010295 .unlock = unlock_stm50flw0x0x,
10296 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010297 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010298 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010299 },
10300
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010301 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010302 .vendor = "SyncMOS/MoselVitelic",
10303 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010304 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010305 .manufacture_id = SYNCMOS_MVC_ID,
10306 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010307 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010308 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010309 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010310 .tested = TEST_UNTESTED,
10311 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010312 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010313 .block_erasers =
10314 {
10315 {
10316 .eraseblocks = { {512, 256} },
10317 .block_erase = erase_sector_jedec,
10318 }, {
10319 .eraseblocks = { {128 * 1024, 1} },
10320 .block_erase = erase_chip_block_jedec,
10321 },
10322 },
Sean Nelson35727f72010-01-28 23:55:12 +000010323 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010325 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010326 },
10327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010328 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010329 .vendor = "SyncMOS/MoselVitelic",
10330 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010331 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010332 .manufacture_id = SYNCMOS_MVC_ID,
10333 .model_id = SM_MVC_29C51001T,
10334 .total_size = 128,
10335 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010336 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010337 .tested = TEST_UNTESTED,
10338 .probe = probe_jedec,
10339 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10340 .block_erasers =
10341 {
10342 {
10343 .eraseblocks = { {512, 256} },
10344 .block_erase = erase_sector_jedec,
10345 }, {
10346 .eraseblocks = { {128 * 1024, 1} },
10347 .block_erase = erase_chip_block_jedec,
10348 },
10349 },
10350 .write = write_jedec_1,
10351 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010352 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010353 },
10354
10355 {
10356 .vendor = "SyncMOS/MoselVitelic",
10357 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010358 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010359 .manufacture_id = SYNCMOS_MVC_ID,
10360 .model_id = SM_MVC_29C51002B,
10361 .total_size = 256,
10362 .page_size = 512,
10363 .feature_bits = FEATURE_EITHER_RESET,
10364 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010365 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010366 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010367 .block_erasers =
10368 {
10369 {
10370 .eraseblocks = { {512, 512} },
10371 .block_erase = erase_sector_jedec,
10372 }, {
10373 .eraseblocks = { {256 * 1024, 1} },
10374 .block_erase = erase_chip_block_jedec,
10375 },
10376 },
Sean Nelson35727f72010-01-28 23:55:12 +000010377 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010378 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000010379 },
10380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010381 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010382 .vendor = "SyncMOS/MoselVitelic",
10383 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010384 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010385 .manufacture_id = SYNCMOS_MVC_ID,
10386 .model_id = SM_MVC_29C51002T,
10387 .total_size = 256,
10388 .page_size = 512,
10389 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010390 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010391 .probe = probe_jedec,
10392 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10393 .block_erasers =
10394 {
10395 {
10396 .eraseblocks = { {512, 512} },
10397 .block_erase = erase_sector_jedec,
10398 }, {
10399 .eraseblocks = { {256 * 1024, 1} },
10400 .block_erase = erase_chip_block_jedec,
10401 },
10402 },
10403 .write = write_jedec_1,
10404 .read = read_memmapped,
10405 },
10406
10407 {
10408 .vendor = "SyncMOS/MoselVitelic",
10409 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010410 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010411 .manufacture_id = SYNCMOS_MVC_ID,
10412 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010413 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010414 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010415 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010416 .tested = TEST_UNTESTED,
10417 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010418 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010419 .block_erasers =
10420 {
10421 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010422 .eraseblocks = { {1024, 512} },
10423 .block_erase = erase_sector_jedec,
10424 }, {
10425 .eraseblocks = { {512 * 1024, 1} },
10426 .block_erase = erase_chip_block_jedec,
10427 },
10428 },
10429 .write = write_jedec_1,
10430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010431 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010432 },
10433
10434 {
10435 .vendor = "SyncMOS/MoselVitelic",
10436 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010437 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010438 .manufacture_id = SYNCMOS_MVC_ID,
10439 .model_id = SM_MVC_29C51004T,
10440 .total_size = 512,
10441 .page_size = 1024,
10442 .feature_bits = FEATURE_EITHER_RESET,
10443 .tested = TEST_UNTESTED,
10444 .probe = probe_jedec,
10445 .probe_timing = TIMING_ZERO,
10446 .block_erasers =
10447 {
10448 {
10449 .eraseblocks = { {1024, 512} },
10450 .block_erase = erase_sector_jedec,
10451 }, {
10452 .eraseblocks = { {512 * 1024, 1} },
10453 .block_erase = erase_chip_block_jedec,
10454 },
10455 },
10456 .write = write_jedec_1,
10457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010458 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010459 },
10460
10461 {
10462 .vendor = "SyncMOS/MoselVitelic",
10463 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010464 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010465 .manufacture_id = SYNCMOS_MVC_ID,
10466 .model_id = SM_MVC_29C31004B,
10467 .total_size = 512,
10468 .page_size = 1024,
10469 .feature_bits = FEATURE_EITHER_RESET,
10470 .tested = TEST_UNTESTED,
10471 .probe = probe_jedec,
10472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10473 .block_erasers =
10474 {
10475 {
10476 .eraseblocks = { {1024, 512} },
10477 .block_erase = erase_sector_jedec,
10478 }, {
10479 .eraseblocks = { {512 * 1024, 1} },
10480 .block_erase = erase_chip_block_jedec,
10481 },
10482 },
10483 .write = write_jedec_1,
10484 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010485 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010486 },
10487
10488 {
10489 .vendor = "SyncMOS/MoselVitelic",
10490 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010491 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010492 .manufacture_id = SYNCMOS_MVC_ID,
10493 .model_id = SM_MVC_29C31004T,
10494 .total_size = 512,
10495 .page_size = 1024,
10496 .feature_bits = FEATURE_EITHER_RESET,
10497 .tested = TEST_UNTESTED,
10498 .probe = probe_jedec,
10499 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10500 .block_erasers =
10501 {
10502 {
10503 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000010504 .block_erase = erase_sector_jedec,
10505 }, {
10506 .eraseblocks = { {512 * 1024, 1} },
10507 .block_erase = erase_chip_block_jedec,
10508 },
10509 },
Sean Nelson35727f72010-01-28 23:55:12 +000010510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010512 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010513 },
10514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010515 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010516 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010517 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010518 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010519 .manufacture_id = TI_OLD_ID,
10520 .model_id = TI_TMS29F002RB,
10521 .total_size = 256,
10522 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010524 .tested = TEST_UNTESTED,
10525 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010526 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010527 .block_erasers =
10528 {
10529 {
10530 .eraseblocks = {
10531 {16 * 1024, 1},
10532 {8 * 1024, 2},
10533 {32 * 1024, 1},
10534 {64 * 1024, 3},
10535 },
10536 .block_erase = erase_sector_jedec,
10537 }, {
10538 .eraseblocks = { {256 * 1024, 1} },
10539 .block_erase = erase_chip_block_jedec,
10540 },
10541 },
Sean Nelson35727f72010-01-28 23:55:12 +000010542 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010544 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010545 },
10546
10547 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010548 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010549 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010550 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010551 .manufacture_id = TI_OLD_ID,
10552 .model_id = TI_TMS29F002RT,
10553 .total_size = 256,
10554 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010555 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010556 .tested = TEST_UNTESTED,
10557 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010558 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010559 .block_erasers =
10560 {
10561 {
10562 .eraseblocks = {
10563 {64 * 1024, 3},
10564 {32 * 1024, 1},
10565 {8 * 1024, 2},
10566 {16 * 1024, 1},
10567 },
10568 .block_erase = erase_sector_jedec,
10569 }, {
10570 .eraseblocks = { {256 * 1024, 1} },
10571 .block_erase = erase_chip_block_jedec,
10572 },
10573 },
Sean Nelson35727f72010-01-28 23:55:12 +000010574 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010576 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010577 },
10578
10579 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010580 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010581 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010582 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010583 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010584 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010585 .total_size = 1024,
10586 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010587 /* supports SFDP */
10588 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010589 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010590 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010591 .probe = probe_spi_rdid,
10592 .probe_timing = TIMING_ZERO,
10593 .block_erasers =
10594 {
10595 {
10596 .eraseblocks = { {4 * 1024, 256} },
10597 .block_erase = spi_block_erase_20,
10598 }, {
10599 .eraseblocks = { {32 * 1024, 32} },
10600 .block_erase = spi_block_erase_52,
10601 }, {
10602 .eraseblocks = { {64 * 1024, 16} },
10603 .block_erase = spi_block_erase_d8,
10604 }, {
10605 .eraseblocks = { {1024 * 1024, 1} },
10606 .block_erase = spi_block_erase_60,
10607 }, {
10608 .eraseblocks = { {1024 * 1024, 1} },
10609 .block_erase = spi_block_erase_c7,
10610 }
10611 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010612 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010613 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010614 .write = spi_chip_write_256,
10615 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010616 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010617 },
10618
10619 {
10620 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010621 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010622 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010623 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010624 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010625 .total_size = 2048,
10626 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010627 /* supports SFDP */
10628 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000010630 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010631 .probe = probe_spi_rdid,
10632 .probe_timing = TIMING_ZERO,
10633 .block_erasers =
10634 {
10635 {
10636 .eraseblocks = { {4 * 1024, 512} },
10637 .block_erase = spi_block_erase_20,
10638 }, {
10639 .eraseblocks = { {32 * 1024, 64} },
10640 .block_erase = spi_block_erase_52,
10641 }, {
10642 .eraseblocks = { {64 * 1024, 32} },
10643 .block_erase = spi_block_erase_d8,
10644 }, {
10645 .eraseblocks = { {2 * 1024 * 1024, 1} },
10646 .block_erase = spi_block_erase_60,
10647 }, {
10648 .eraseblocks = { {2 * 1024 * 1024, 1} },
10649 .block_erase = spi_block_erase_c7,
10650 }
10651 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010652 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010653 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010654 .write = spi_chip_write_256,
10655 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010656 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010657 },
10658
10659 {
10660 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010661 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010662 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010663 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010664 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010665 .total_size = 4096,
10666 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010667 /* supports SFDP */
10668 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010669 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010670 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010671 .probe = probe_spi_rdid,
10672 .probe_timing = TIMING_ZERO,
10673 .block_erasers =
10674 {
10675 {
10676 .eraseblocks = { {4 * 1024, 1024} },
10677 .block_erase = spi_block_erase_20,
10678 }, {
10679 .eraseblocks = { {32 * 1024, 128} },
10680 .block_erase = spi_block_erase_52,
10681 }, {
10682 .eraseblocks = { {64 * 1024, 64} },
10683 .block_erase = spi_block_erase_d8,
10684 }, {
10685 .eraseblocks = { {4 * 1024 * 1024, 1} },
10686 .block_erase = spi_block_erase_60,
10687 }, {
10688 .eraseblocks = { {4 * 1024 * 1024, 1} },
10689 .block_erase = spi_block_erase_c7,
10690 }
10691 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010693 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010694 .write = spi_chip_write_256,
10695 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010696 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010697 },
10698
10699 {
10700 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010701 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010702 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000010703 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010704 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000010705 .total_size = 8192,
10706 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010707 /* supports SFDP */
10708 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010710 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000010711 .probe = probe_spi_rdid,
10712 .probe_timing = TIMING_ZERO,
10713 .block_erasers =
10714 {
10715 {
10716 .eraseblocks = { {4 * 1024, 2048} },
10717 .block_erase = spi_block_erase_20,
10718 }, {
10719 .eraseblocks = { {32 * 1024, 256} },
10720 .block_erase = spi_block_erase_52,
10721 }, {
10722 .eraseblocks = { {64 * 1024, 128} },
10723 .block_erase = spi_block_erase_d8,
10724 }, {
10725 .eraseblocks = { {8 * 1024 * 1024, 1} },
10726 .block_erase = spi_block_erase_60,
10727 }, {
10728 .eraseblocks = { {8 * 1024 * 1024, 1} },
10729 .block_erase = spi_block_erase_c7,
10730 }
10731 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010732 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010733 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000010734 .write = spi_chip_write_256,
10735 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010736 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000010737 },
10738
10739 {
10740 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010741 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010742 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010743 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010744 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010745 .total_size = 16384,
10746 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010747 /* supports SFDP */
10748 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010750 .tested = TEST_OK_PROBE,
10751 .probe = probe_spi_rdid,
10752 .probe_timing = TIMING_ZERO,
10753 .block_erasers =
10754 {
10755 {
10756 .eraseblocks = { {4 * 1024, 4096} },
10757 .block_erase = spi_block_erase_20,
10758 }, {
10759 .eraseblocks = { {32 * 1024, 512} },
10760 .block_erase = spi_block_erase_52,
10761 }, {
10762 .eraseblocks = { {64 * 1024, 256} },
10763 .block_erase = spi_block_erase_d8,
10764 }, {
10765 .eraseblocks = { {16 * 1024 * 1024, 1} },
10766 .block_erase = spi_block_erase_60,
10767 }, {
10768 .eraseblocks = { {16 * 1024 * 1024, 1} },
10769 .block_erase = spi_block_erase_c7,
10770 }
10771 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000010773 .unlock = spi_disable_blockprotect,
10774 .write = spi_chip_write_256,
10775 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010776 .voltage = {2700, 3600},
10777 },
10778
10779 {
10780 .vendor = "Winbond",
10781 .name = "W25Q20.W",
10782 .bustype = BUS_SPI,
10783 .manufacture_id = WINBOND_NEX_ID,
10784 .model_id = WINBOND_NEX_W25Q20_W,
10785 .total_size = 256,
10786 .page_size = 256,
10787 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10788 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10789 .tested = TEST_UNTESTED,
10790 .probe = probe_spi_rdid,
10791 .probe_timing = TIMING_ZERO,
10792 .block_erasers =
10793 {
10794 {
10795 .eraseblocks = { {4 * 1024, 64} },
10796 .block_erase = spi_block_erase_20,
10797 }, {
10798 .eraseblocks = { {32 * 1024, 8} },
10799 .block_erase = spi_block_erase_52,
10800 }, {
10801 .eraseblocks = { {64 * 1024, 4} },
10802 .block_erase = spi_block_erase_d8,
10803 }, {
10804 .eraseblocks = { {256 * 1024, 1} },
10805 .block_erase = spi_block_erase_60,
10806 }, {
10807 .eraseblocks = { {256 * 1024, 1} },
10808 .block_erase = spi_block_erase_c7,
10809 }
10810 },
10811 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10812 .unlock = spi_disable_blockprotect,
10813 .write = spi_chip_write_256,
10814 .read = spi_chip_read,
10815 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10816 },
10817
10818 {
10819 .vendor = "Winbond",
10820 .name = "W25Q40.W",
10821 .bustype = BUS_SPI,
10822 .manufacture_id = WINBOND_NEX_ID,
10823 .model_id = WINBOND_NEX_W25Q40_W,
10824 .total_size = 512,
10825 .page_size = 256,
10826 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10828 .tested = TEST_UNTESTED,
10829 .probe = probe_spi_rdid,
10830 .probe_timing = TIMING_ZERO,
10831 .block_erasers =
10832 {
10833 {
10834 .eraseblocks = { {4 * 1024, 128} },
10835 .block_erase = spi_block_erase_20,
10836 }, {
10837 .eraseblocks = { {32 * 1024, 16} },
10838 .block_erase = spi_block_erase_52,
10839 }, {
10840 .eraseblocks = { {64 * 1024, 8} },
10841 .block_erase = spi_block_erase_d8,
10842 }, {
10843 .eraseblocks = { {512 * 1024, 1} },
10844 .block_erase = spi_block_erase_60,
10845 }, {
10846 .eraseblocks = { {512 * 1024, 1} },
10847 .block_erase = spi_block_erase_c7,
10848 }
10849 },
10850 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10851 .unlock = spi_disable_blockprotect,
10852 .write = spi_chip_write_256,
10853 .read = spi_chip_read,
10854 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10855 },
10856
10857 {
10858 .vendor = "Winbond",
10859 .name = "W25Q80.W",
10860 .bustype = BUS_SPI,
10861 .manufacture_id = WINBOND_NEX_ID,
10862 .model_id = WINBOND_NEX_W25Q80_W,
10863 .total_size = 1024,
10864 .page_size = 256,
10865 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10866 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10867 .tested = TEST_UNTESTED,
10868 .probe = probe_spi_rdid,
10869 .probe_timing = TIMING_ZERO,
10870 .block_erasers =
10871 {
10872 {
10873 .eraseblocks = { {4 * 1024, 256} },
10874 .block_erase = spi_block_erase_20,
10875 }, {
10876 .eraseblocks = { {32 * 1024, 32} },
10877 .block_erase = spi_block_erase_52,
10878 }, {
10879 .eraseblocks = { {64 * 1024, 16} },
10880 .block_erase = spi_block_erase_d8,
10881 }, {
10882 .eraseblocks = { {1 * 1024 * 1024, 1} },
10883 .block_erase = spi_block_erase_60,
10884 }, {
10885 .eraseblocks = { {1 * 1024 * 1024, 1} },
10886 .block_erase = spi_block_erase_c7,
10887 }
10888 },
10889 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10890 .unlock = spi_disable_blockprotect,
10891 .write = spi_chip_write_256,
10892 .read = spi_chip_read,
10893 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10894 },
10895
10896 {
10897 .vendor = "Winbond",
10898 .name = "W25Q16.W",
10899 .bustype = BUS_SPI,
10900 .manufacture_id = WINBOND_NEX_ID,
10901 .model_id = WINBOND_NEX_W25Q16_W,
10902 .total_size = 2048,
10903 .page_size = 256,
10904 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10905 /* QPI enable 0x38, disable 0xFF */
10906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
10907 .tested = TEST_UNTESTED,
10908 .probe = probe_spi_rdid,
10909 .probe_timing = TIMING_ZERO,
10910 .block_erasers =
10911 {
10912 {
10913 .eraseblocks = { {4 * 1024, 512} },
10914 .block_erase = spi_block_erase_20,
10915 }, {
10916 .eraseblocks = { {32 * 1024, 64} },
10917 .block_erase = spi_block_erase_52,
10918 }, {
10919 .eraseblocks = { {64 * 1024, 32} },
10920 .block_erase = spi_block_erase_d8,
10921 }, {
10922 .eraseblocks = { {2 * 1024 * 1024, 1} },
10923 .block_erase = spi_block_erase_60,
10924 }, {
10925 .eraseblocks = { {2 * 1024 * 1024, 1} },
10926 .block_erase = spi_block_erase_c7,
10927 }
10928 },
10929 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10930 .unlock = spi_disable_blockprotect,
10931 .write = spi_chip_write_256,
10932 .read = spi_chip_read,
10933 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10934 },
10935
10936 {
10937 .vendor = "Winbond",
10938 .name = "W25Q32.W",
10939 .bustype = BUS_SPI,
10940 .manufacture_id = WINBOND_NEX_ID,
10941 .model_id = WINBOND_NEX_W25Q32_W,
10942 .total_size = 4096,
10943 .page_size = 256,
10944 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10945 /* QPI enable 0x38, disable 0xFF */
10946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
10947 .tested = TEST_OK_PREW,
10948 .probe = probe_spi_rdid,
10949 .probe_timing = TIMING_ZERO,
10950 .block_erasers =
10951 {
10952 {
10953 .eraseblocks = { {4 * 1024, 1024} },
10954 .block_erase = spi_block_erase_20,
10955 }, {
10956 .eraseblocks = { {32 * 1024, 128} },
10957 .block_erase = spi_block_erase_52,
10958 }, {
10959 .eraseblocks = { {64 * 1024, 64} },
10960 .block_erase = spi_block_erase_d8,
10961 }, {
10962 .eraseblocks = { {4 * 1024 * 1024, 1} },
10963 .block_erase = spi_block_erase_60,
10964 }, {
10965 .eraseblocks = { {4 * 1024 * 1024, 1} },
10966 .block_erase = spi_block_erase_c7,
10967 }
10968 },
10969 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10970 .unlock = spi_disable_blockprotect,
10971 .write = spi_chip_write_256,
10972 .read = spi_chip_read,
10973 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10974 },
10975
10976 {
10977 .vendor = "Winbond",
10978 .name = "W25Q64.W",
10979 .bustype = BUS_SPI,
10980 .manufacture_id = WINBOND_NEX_ID,
10981 .model_id = WINBOND_NEX_W25Q64_W,
10982 .total_size = 8192,
10983 .page_size = 256,
10984 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10985 /* QPI enable 0x38, disable 0xFF */
10986 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
10987 .tested = TEST_UNTESTED,
10988 .probe = probe_spi_rdid,
10989 .probe_timing = TIMING_ZERO,
10990 .block_erasers =
10991 {
10992 {
10993 .eraseblocks = { {4 * 1024, 2048} },
10994 .block_erase = spi_block_erase_20,
10995 }, {
10996 .eraseblocks = { {32 * 1024, 256} },
10997 .block_erase = spi_block_erase_52,
10998 }, {
10999 .eraseblocks = { {64 * 1024, 128} },
11000 .block_erase = spi_block_erase_d8,
11001 }, {
11002 .eraseblocks = { {8 * 1024 * 1024, 1} },
11003 .block_erase = spi_block_erase_60,
11004 }, {
11005 .eraseblocks = { {8 * 1024 * 1024, 1} },
11006 .block_erase = spi_block_erase_c7,
11007 }
11008 },
11009 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11010 .unlock = spi_disable_blockprotect,
11011 .write = spi_chip_write_256,
11012 .read = spi_chip_read,
11013 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011014 },
11015
11016 {
11017 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011018 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011019 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011020 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011021 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011022 .total_size = 128,
11023 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011024 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011025 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011026 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011027 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011028 .block_erasers =
11029 {
11030 {
11031 .eraseblocks = { {4 * 1024, 32} },
11032 .block_erase = spi_block_erase_20,
11033 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011034 .eraseblocks = { {64 * 1024, 2} },
11035 .block_erase = spi_block_erase_d8,
11036 }, {
11037 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011038 .block_erase = spi_block_erase_c7,
11039 }
11040 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011041 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011042 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011043 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011044 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011045 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011046 },
11047
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011048 {
11049 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011050 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011051 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011052 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011053 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011054 .total_size = 256,
11055 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011056 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011057 .tested = TEST_UNTESTED,
11058 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011059 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011060 .block_erasers =
11061 {
11062 {
11063 .eraseblocks = { {4 * 1024, 64} },
11064 .block_erase = spi_block_erase_20,
11065 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011066 .eraseblocks = { {64 * 1024, 4} },
11067 .block_erase = spi_block_erase_d8,
11068 }, {
11069 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011070 .block_erase = spi_block_erase_c7,
11071 }
11072 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011075 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011076 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011077 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011078 },
11079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011080 {
11081 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011082 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011083 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011084 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011085 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011086 .total_size = 512,
11087 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011088 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000011089 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011090 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011091 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011092 .block_erasers =
11093 {
11094 {
11095 .eraseblocks = { {4 * 1024, 128} },
11096 .block_erase = spi_block_erase_20,
11097 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011098 .eraseblocks = { {64 * 1024, 8} },
11099 .block_erase = spi_block_erase_d8,
11100 }, {
11101 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011102 .block_erase = spi_block_erase_c7,
11103 }
11104 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011106 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011107 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011108 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011109 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011110 },
11111
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011112 {
11113 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011114 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011115 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011116 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011117 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .total_size = 1024,
11119 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011120 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000011121 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011122 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011123 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011124 .block_erasers =
11125 {
11126 {
11127 .eraseblocks = { {4 * 1024, 256} },
11128 .block_erase = spi_block_erase_20,
11129 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011130 .eraseblocks = { {64 * 1024, 16} },
11131 .block_erase = spi_block_erase_d8,
11132 }, {
11133 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011134 .block_erase = spi_block_erase_c7,
11135 }
11136 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011137 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011139 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011141 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011142 },
11143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011144 {
11145 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011146 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011147 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000011148 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011149 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000011150 .total_size = 2048,
11151 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011152 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000011153 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000011154 .probe = probe_spi_rdid,
11155 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011156 .block_erasers =
11157 {
11158 {
11159 .eraseblocks = { {4 * 1024, 512} },
11160 .block_erase = spi_block_erase_20,
11161 }, {
11162 .eraseblocks = { {32 * 1024, 64} },
11163 .block_erase = spi_block_erase_52,
11164 }, {
11165 .eraseblocks = { {64 * 1024, 32} },
11166 .block_erase = spi_block_erase_d8,
11167 }, {
11168 .eraseblocks = { {2 * 1024 * 1024, 1} },
11169 .block_erase = spi_block_erase_60,
11170 }, {
11171 .eraseblocks = { {2 * 1024 * 1024, 1} },
11172 .block_erase = spi_block_erase_c7,
11173 }
11174 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011175 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011176 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000011177 .write = spi_chip_write_256,
11178 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011179 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000011180 },
11181
11182 {
11183 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011184 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011185 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011186 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011187 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000011188 .total_size = 4096,
11189 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011190 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000011191 .tested = TEST_OK_PROBE,
11192 .probe = probe_spi_rdid,
11193 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011194 .block_erasers =
11195 {
11196 {
11197 .eraseblocks = { {4 * 1024, 1024} },
11198 .block_erase = spi_block_erase_20,
11199 }, {
11200 .eraseblocks = { {32 * 1024, 128} },
11201 .block_erase = spi_block_erase_52,
11202 }, {
11203 .eraseblocks = { {64 * 1024, 64} },
11204 .block_erase = spi_block_erase_d8,
11205 }, {
11206 .eraseblocks = { {4 * 1024 * 1024, 1} },
11207 .block_erase = spi_block_erase_60,
11208 }, {
11209 .eraseblocks = { {4 * 1024 * 1024, 1} },
11210 .block_erase = spi_block_erase_c7,
11211 }
11212 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011213 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011214 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011215 .write = spi_chip_write_256,
11216 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011217 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011218 },
11219
11220 {
11221 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011222 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011223 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011224 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011225 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000011226 .total_size = 8192,
11227 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011228 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011229 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000011230 .probe = probe_spi_rdid,
11231 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011232 .block_erasers =
11233 {
11234 {
11235 .eraseblocks = { {4 * 1024, 2048} },
11236 .block_erase = spi_block_erase_20,
11237 }, {
11238 .eraseblocks = { {32 * 1024, 256} },
11239 .block_erase = spi_block_erase_52,
11240 }, {
11241 .eraseblocks = { {64 * 1024, 128} },
11242 .block_erase = spi_block_erase_d8,
11243 }, {
11244 .eraseblocks = { {8 * 1024 * 1024, 1} },
11245 .block_erase = spi_block_erase_60,
11246 }, {
11247 .eraseblocks = { {8 * 1024 * 1024, 1} },
11248 .block_erase = spi_block_erase_c7,
11249 }
11250 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011251 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011252 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011253 .write = spi_chip_write_256,
11254 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011255 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011256 },
11257
11258 {
11259 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011260 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011261 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011262 .manufacture_id = WINBOND_ID,
11263 .model_id = WINBOND_W29C010,
11264 .total_size = 128,
11265 .page_size = 128,
11266 .feature_bits = FEATURE_LONG_RESET,
11267 .tested = TEST_OK_PRE,
11268 .probe = probe_w29ee011,
11269 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
11270 .block_erasers =
11271 {
11272 {
11273 .eraseblocks = { {128 * 1024, 1} },
11274 .block_erase = erase_chip_block_jedec,
11275 }
11276 },
11277 .write = write_jedec,
11278 .read = read_memmapped,
11279 },
11280
11281 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
11282 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011283 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011284 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011285 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011286 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011287 .total_size = 128,
11288 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011289 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000011290 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011291 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011292 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011293 .block_erasers =
11294 {
11295 {
11296 .eraseblocks = { {128 * 1024, 1} },
11297 .block_erase = erase_chip_block_jedec,
11298 }
11299 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011300 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011301 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011302 },
11303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011304 {
11305 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011306 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011307 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011308 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011309 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011310 .total_size = 256,
11311 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011312 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011313 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011314 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011315 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011316 .block_erasers =
11317 {
11318 {
11319 .eraseblocks = { {256 * 1024, 1} },
11320 .block_erase = erase_chip_block_jedec,
11321 }
11322 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011323 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011325 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011326 },
11327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011328 {
11329 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011330 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011331 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011332 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011333 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011334 .total_size = 512,
11335 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011336 .feature_bits = FEATURE_LONG_RESET,
11337 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011338 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000011339 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011340 .block_erasers =
11341 {
11342 {
11343 .eraseblocks = { {512 * 1024, 1} },
11344 .block_erase = erase_chip_block_jedec,
11345 }
11346 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011347 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011349 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011350 },
11351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011352 {
11353 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000011354 .name = "W39F010",
11355 .bustype = BUS_PARALLEL,
11356 .manufacture_id = WINBOND_ID,
11357 .model_id = WINBOND_W39F010,
11358 .total_size = 128,
11359 .page_size = 4 * 1024,
11360 .feature_bits = FEATURE_EITHER_RESET,
11361 .tested = TEST_OK_PREW,
11362 .probe = probe_jedec,
11363 .probe_timing = 10,
11364 .block_erasers =
11365 {
11366 {
11367 .eraseblocks = { {4 * 1024, 32} },
11368 .block_erase = erase_block_jedec,
11369 }, {
11370 .eraseblocks = { {128 * 1024, 1} },
11371 .block_erase = erase_chip_block_jedec,
11372 }
11373 },
11374 .printlock = printlock_w39f010,
11375 .write = write_jedec_1,
11376 .read = read_memmapped,
11377 .voltage = {4500, 5500},
11378 },
11379
11380 {
11381 .vendor = "Winbond",
11382 .name = "W39L010",
11383 .bustype = BUS_PARALLEL,
11384 .manufacture_id = WINBOND_ID,
11385 .model_id = WINBOND_W39L010,
11386 .total_size = 128,
11387 .page_size = 4 * 1024,
11388 .feature_bits = FEATURE_EITHER_RESET,
11389 .tested = TEST_UNTESTED,
11390 .probe = probe_jedec,
11391 .probe_timing = 10,
11392 .block_erasers =
11393 {
11394 {
11395 .eraseblocks = { {4 * 1024, 32} },
11396 .block_erase = erase_block_jedec,
11397 }, {
11398 .eraseblocks = { {128 * 1024, 1} },
11399 .block_erase = erase_chip_block_jedec,
11400 }
11401 },
11402 .printlock = printlock_w39l010,
11403 .write = write_jedec_1,
11404 .read = read_memmapped,
11405 .voltage = {3000, 3600},
11406 },
11407
11408 {
11409 .vendor = "Winbond",
11410 .name = "W39L020",
11411 .bustype = BUS_PARALLEL,
11412 .manufacture_id = WINBOND_ID,
11413 .model_id = WINBOND_W39L020,
11414 .total_size = 256,
11415 .page_size = 4 * 1024,
11416 .feature_bits = FEATURE_EITHER_RESET,
11417 .tested = TEST_UNTESTED,
11418 .probe = probe_jedec,
11419 .probe_timing = 10,
11420 .block_erasers =
11421 {
11422 {
11423 .eraseblocks = { {4 * 1024, 64} },
11424 .block_erase = erase_block_jedec,
11425 }, {
11426 .eraseblocks = { {64 * 1024, 4} },
11427 .block_erase = erase_sector_jedec,
11428 }, {
11429 .eraseblocks = { {256 * 1024, 1} },
11430 .block_erase = erase_chip_block_jedec,
11431 }
11432 },
11433 .printlock = printlock_w39l020,
11434 .write = write_jedec_1,
11435 .read = read_memmapped,
11436 .voltage = {3000, 3600},
11437 },
11438
11439 {
11440 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000011441 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011442 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000011443 .manufacture_id = WINBOND_ID,
11444 .model_id = WINBOND_W39L040,
11445 .total_size = 512,
11446 .page_size = 64 * 1024,
11447 .feature_bits = FEATURE_EITHER_RESET,
11448 .tested = TEST_OK_PR,
11449 .probe = probe_jedec,
11450 .probe_timing = 10,
11451 .block_erasers =
11452 {
11453 {
11454 .eraseblocks = { {4 * 1024, 128} },
11455 .block_erase = erase_block_jedec,
11456 }, {
11457 .eraseblocks = { {64 * 1024, 8} },
11458 .block_erase = erase_sector_jedec,
11459 }, {
11460 .eraseblocks = { {512 * 1024, 1} },
11461 .block_erase = erase_chip_block_jedec,
11462 }
11463 },
11464 .printlock = printlock_w39l040,
11465 .write = write_jedec_1,
11466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011467 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000011468 },
11469
11470 {
11471 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011472 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011473 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011474 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011475 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011476 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011477 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011478 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011479 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011480 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000011481 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011482 .block_erasers =
11483 {
11484 {
11485 .eraseblocks = { {64 * 1024, 8} },
11486 .block_erase = erase_sector_jedec,
11487 }, {
11488 .eraseblocks = { {512 * 1024, 1} },
11489 .block_erase = erase_chip_block_jedec,
11490 }
11491 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011492 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000011493 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011495 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011496 },
11497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011498 {
11499 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011500 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011501 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011502 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011503 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011504 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011505 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011506 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011507 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011508 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000011509 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011510 .block_erasers =
11511 {
11512 {
11513 .eraseblocks = { {64 * 1024, 8} },
11514 .block_erase = erase_sector_jedec,
11515 }, {
11516 .eraseblocks = { {512 * 1024, 1} },
11517 .block_erase = erase_chip_block_jedec,
11518 }
11519 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011520 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000011521 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011522 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011523 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011524 },
11525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011526 {
11527 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011528 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011529 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011530 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011531 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011532 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011533 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011534 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011535 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011536 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011537 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011538 .block_erasers =
11539 {
11540 {
11541 .eraseblocks = { {64 * 1024, 8} },
11542 .block_erase = erase_sector_jedec,
11543 }, {
11544 .eraseblocks = { {512 * 1024, 1} },
11545 .block_erase = erase_chip_block_jedec,
11546 }
11547 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011548 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000011549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011551 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011552 },
11553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011554 {
11555 .vendor = "Winbond",
11556 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011557 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011558 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011559 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011560 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011561 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000011562 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011564 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011565 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011566 .block_erasers =
11567 {
11568 {
11569 .eraseblocks = { {4 * 1024, 128} },
11570 .block_erase = erase_block_jedec,
11571 }, {
11572 .eraseblocks = { {64 * 1024, 8} },
11573 .block_erase = erase_sector_jedec,
11574 }, {
11575 .eraseblocks = { {512 * 1024, 1} },
11576 .block_erase = erase_chip_block_jedec,
11577 }
11578 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011579 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000011580 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000011581 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011583 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011584 },
11585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011586 {
11587 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011588 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011589 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011590 .manufacture_id = WINBOND_ID,
11591 .model_id = WINBOND_W39V040B,
11592 .total_size = 512,
11593 .page_size = 64 * 1024,
11594 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011595 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011596 .probe = probe_jedec,
11597 .probe_timing = 10,
11598 .block_erasers =
11599 {
11600 {
11601 .eraseblocks = { {64 * 1024, 8} },
11602 .block_erase = erase_sector_jedec,
11603 }, {
11604 .eraseblocks = { {512 * 1024, 1} },
11605 .block_erase = erase_chip_block_jedec,
11606 }
11607 },
11608 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000011609 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011610 .write = write_jedec_1,
11611 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011612 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011613 },
11614
11615 {
11616 .vendor = "Winbond",
11617 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011618 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011619 .manufacture_id = WINBOND_ID,
11620 .model_id = WINBOND_W39V040C,
11621 .total_size = 512,
11622 .page_size = 64 * 1024,
11623 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011624 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011625 .probe = probe_jedec,
11626 .probe_timing = 10,
11627 .block_erasers =
11628 {
11629 {
11630 .eraseblocks = { {64 * 1024, 8} },
11631 .block_erase = erase_sector_jedec,
11632 }, {
11633 .eraseblocks = { {512 * 1024, 1} },
11634 .block_erase = erase_chip_block_jedec,
11635 }
11636 },
11637 .printlock = printlock_w39v040fc,
11638 .write = write_jedec_1,
11639 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011640 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011641 },
11642
11643 {
11644 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011645 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011646 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011647 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011648 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011649 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000011650 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011651 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000011652 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011653 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000011654 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011655 .block_erasers =
11656 {
11657 {
11658 .eraseblocks = { {64 * 1024, 16} },
11659 .block_erase = erase_sector_jedec,
11660 }, {
11661 .eraseblocks = { {1024 * 1024, 1} },
11662 .block_erase = erase_chip_block_jedec,
11663 }
11664 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011665 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000011666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011668 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011669 },
11670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011671 {
11672 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011673 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011674 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011675 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011676 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011677 .total_size = 256,
11678 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011679 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011681 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011682 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011683 .block_erasers =
11684 {
11685 {
11686 .eraseblocks = {
11687 {128 * 1024, 1},
11688 {96 * 1024, 1},
11689 {8 * 1024, 2},
11690 {16 * 1024, 1},
11691 },
11692 .block_erase = erase_sector_jedec,
11693 }, {
11694 .eraseblocks = { {256 * 1024, 1} },
11695 .block_erase = erase_chip_block_jedec,
11696 }
11697 },
Sean Nelson35727f72010-01-28 23:55:12 +000011698 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011700 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011701 },
11702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011703 {
11704 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011705 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011706 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011707 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011708 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011709 .total_size = 256,
11710 .page_size = 128,
11711 .feature_bits = FEATURE_EITHER_RESET,
11712 .tested = TEST_OK_PROBE,
11713 .probe = probe_jedec,
11714 .probe_timing = 10,
11715 .block_erasers =
11716 {
11717 {
11718 .eraseblocks = { {256 * 1024, 1} },
11719 .block_erase = erase_chip_block_jedec,
11720 }
11721 },
11722 .write = write_jedec_1,
11723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011724 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011725 },
11726
11727 {
11728 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011729 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011730 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011732 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011733 .total_size = 256,
11734 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011735 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011736 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011737 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011738 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011739 .block_erasers =
11740 {
11741 {
11742 .eraseblocks = {
11743 {64 * 1024, 3},
11744 {32 * 1024, 1},
11745 {8 * 1024, 2},
11746 {16 * 1024, 1},
11747 },
11748 .block_erase = erase_sector_jedec,
11749 }, {
11750 .eraseblocks = { {256 * 1024, 1} },
11751 .block_erase = erase_chip_block_jedec,
11752 }
11753 },
Sean Nelson35727f72010-01-28 23:55:12 +000011754 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011755 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011756 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011757 },
11758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011759 {
11760 .vendor = "Winbond",
11761 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011762 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011763 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011764 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011765 .total_size = 256,
11766 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011767 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011768 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011769 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011770 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011771 .block_erasers =
11772 {
11773 {
11774 .eraseblocks = {
11775 {64 * 1024, 3},
11776 {32 * 1024, 1},
11777 {8 * 1024, 2},
11778 {16 * 1024, 1},
11779 },
11780 .block_erase = erase_sector_jedec,
11781 }, {
11782 .eraseblocks = { {256 * 1024, 1} },
11783 .block_erase = erase_chip_block_jedec,
11784 }
11785 },
Sean Nelson35727f72010-01-28 23:55:12 +000011786 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011787 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011788 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011789 },
11790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011791 {
11792 .vendor = "Winbond",
11793 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011794 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011795 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011796 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011797 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000011798 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011799 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011800 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011801 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011802 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011803 .block_erasers =
11804 {
11805 {
11806 .eraseblocks = { {64 * 1024, 16}, },
11807 .block_erase = erase_sector_jedec,
11808 }, {
11809 .eraseblocks = { {1024 * 1024, 1} },
11810 .block_erase = erase_chip_block_jedec,
11811 }
11812 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011813 .printlock = printlock_w39v080fa,
11814 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000011815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011816 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011817 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000011818 },
11819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011820 {
11821 .vendor = "Winbond",
11822 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011823 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011824 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011825 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011826 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011827 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011828 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011829 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011830 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011831 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011832 .block_erasers =
11833 {
11834 {
11835 .eraseblocks = { {64 * 1024, 8}, },
11836 .block_erase = erase_sector_jedec,
11837 }, {
11838 .eraseblocks = { {512 * 1024, 1} },
11839 .block_erase = erase_chip_block_jedec,
11840 }
11841 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011842 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000011843 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011844 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011845 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000011846 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000011847
11848 {
11849 .vendor = "Unknown",
11850 .name = "SFDP-capable chip",
11851 .bustype = BUS_SPI,
11852 .manufacture_id = GENERIC_MANUF_ID,
11853 .model_id = SFDP_DEVICE_ID,
11854 /* We present our own "report this" text hence we do not
11855 * want the default "This flash part has status UNTESTED..."
11856 * text to be printed. */
11857 .tested = TEST_OK_PREW,
11858 .probe = probe_spi_sfdp,
11859 .unlock = spi_disable_blockprotect, /* is this safe? */
11860 .read = spi_chip_read,
11861 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000011862 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000011863 /* Everything below will be set by the probing function. */
11864 .write = NULL,
11865 .total_size = 0,
11866 .page_size = 0,
11867 .feature_bits = 0,
11868 .block_erasers = {},
11869 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011871 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000011872 .vendor = "Programmer",
11873 .name = "Opaque flash chip",
11874 .bustype = BUS_PROG,
11875 .manufacture_id = PROGMANUF_ID,
11876 .model_id = PROGDEV_ID,
11877 .total_size = 0,
11878 .page_size = 256,
11879 /* probe is assumed to work, rest will be filled in by probe */
11880 .tested = TEST_OK_PROBE,
11881 .probe = probe_opaque,
11882 /* eraseblock sizes will be set by the probing function */
11883 .block_erasers =
11884 {
11885 {
11886 .block_erase = erase_opaque,
11887 }
11888 },
11889 .write = write_opaque,
11890 .read = read_opaque,
11891 },
11892
11893 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000011894 .vendor = "AMIC",
11895 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011896 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000011897 .manufacture_id = AMIC_ID,
11898 .model_id = GENERIC_DEVICE_ID,
11899 .total_size = 0,
11900 .page_size = 256,
11901 .tested = TEST_BAD_PREW,
11902 .probe = probe_spi_rdid4,
11903 .probe_timing = TIMING_ZERO,
11904 .write = NULL,
11905 .read = NULL,
11906 },
11907
11908 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011909 .vendor = "Atmel",
11910 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011911 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011912 .manufacture_id = ATMEL_ID,
11913 .model_id = GENERIC_DEVICE_ID,
11914 .total_size = 0,
11915 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011916 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011917 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011918 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011919 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011920 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011921 },
11922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011923 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000011924 .vendor = "Eon",
11925 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011926 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011927 .manufacture_id = EON_ID_NOPREFIX,
11928 .model_id = GENERIC_DEVICE_ID,
11929 .total_size = 0,
11930 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011931 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011932 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011933 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011934 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011935 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011936 },
11937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011938 {
11939 .vendor = "Macronix",
11940 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011941 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011942 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011943 .model_id = GENERIC_DEVICE_ID,
11944 .total_size = 0,
11945 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011946 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011948 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011949 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011950 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011951 },
11952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011953 {
11954 .vendor = "PMC",
11955 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011956 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011957 .manufacture_id = PMC_ID,
11958 .model_id = GENERIC_DEVICE_ID,
11959 .total_size = 0,
11960 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011961 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011962 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011963 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011964 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011965 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011966 },
11967
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011968 {
11969 .vendor = "SST",
11970 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011971 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011972 .manufacture_id = SST_ID,
11973 .model_id = GENERIC_DEVICE_ID,
11974 .total_size = 0,
11975 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011976 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011977 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011978 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011979 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011980 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011981 },
11982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011983 {
11984 .vendor = "ST",
11985 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011986 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011987 .manufacture_id = ST_ID,
11988 .model_id = GENERIC_DEVICE_ID,
11989 .total_size = 0,
11990 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011991 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011992 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011993 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011994 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011995 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011996 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000011997
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011998 {
Sean Nelson118e1d62009-11-24 02:08:11 +000011999 .vendor = "Sanyo",
12000 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012001 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012002 .manufacture_id = SANYO_ID,
12003 .model_id = GENERIC_DEVICE_ID,
12004 .total_size = 0,
12005 .page_size = 256,
12006 .tested = TEST_BAD_PREW,
12007 .probe = probe_spi_rdid,
12008 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012009 .write = NULL,
12010 .read = NULL,
12011 },
12012
12013 {
Stefan Taunereb582572012-09-21 12:52:50 +000012014 .vendor = "Winbond",
12015 .name = "unknown Winbond (ex Nexcom) SPI chip",
12016 .bustype = BUS_SPI,
12017 .manufacture_id = WINBOND_NEX_ID,
12018 .model_id = GENERIC_DEVICE_ID,
12019 .total_size = 0,
12020 .page_size = 256,
12021 .tested = TEST_BAD_PREW,
12022 .probe = probe_spi_rdid,
12023 .probe_timing = TIMING_ZERO,
12024 .write = NULL,
12025 .read = NULL,
12026 },
12027
12028 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012029 .vendor = "Generic",
12030 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012031 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012032 .manufacture_id = GENERIC_MANUF_ID,
12033 .model_id = GENERIC_DEVICE_ID,
12034 .total_size = 0,
12035 .page_size = 256,
12036 .tested = TEST_BAD_PREW,
12037 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012038 .write = NULL,
12039 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000012040
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012041 {
12042 .vendor = "Generic",
12043 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012044 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012045 .manufacture_id = GENERIC_MANUF_ID,
12046 .model_id = GENERIC_DEVICE_ID,
12047 .total_size = 0,
12048 .page_size = 256,
12049 .tested = TEST_BAD_PREW,
12050 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012051 .write = NULL,
12052 },
12053
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012054 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000012055};