blob: 5bc73fdc277eed187799193562595b7ee1cc1057 [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",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00003925 .name = "EN25S10",
3926 .bustype = BUS_SPI,
3927 .manufacture_id = EON_ID_NOPREFIX,
3928 .model_id = EON_EN25S10,
3929 .total_size = 128,
3930 .page_size = 256,
3931 /* OTP: 256B total; enter 0x3A */
3932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3933 .tested = TEST_UNTESTED,
3934 .probe = probe_spi_rdid,
3935 .probe_timing = TIMING_ZERO,
3936 .block_erasers = {
3937 {
3938 .eraseblocks = { {4 * 1024, 32} },
3939 .block_erase = spi_block_erase_20,
3940 }, {
3941 .eraseblocks = { {32 * 1024, 4} },
3942 .block_erase = spi_block_erase_52,
3943 }, {
3944 .eraseblocks = { {128 * 1024, 1} },
3945 .block_erase = spi_block_erase_60,
3946 }, {
3947 .eraseblocks = { {128 * 1024, 1} },
3948 .block_erase = spi_block_erase_c7,
3949 }
3950 },
3951 .printlock = spi_prettyprint_status_register_default_bp2,
3952 .unlock = spi_disable_blockprotect,
3953 .write = spi_chip_write_256,
3954 .read = spi_chip_read,
3955 .voltage = {1650, 1950},
3956 },
3957
3958 {
3959 .vendor = "Eon",
3960 .name = "EN25S20",
3961 .bustype = BUS_SPI,
3962 .manufacture_id = EON_ID_NOPREFIX,
3963 .model_id = EON_EN25S20,
3964 .total_size = 256,
3965 .page_size = 256,
3966 /* OTP: 256B total; enter 0x3A */
3967 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3968 .tested = TEST_UNTESTED,
3969 .probe = probe_spi_rdid,
3970 .probe_timing = TIMING_ZERO,
3971 .block_erasers = {
3972 {
3973 .eraseblocks = { {4 * 1024, 64} },
3974 .block_erase = spi_block_erase_20,
3975 }, {
3976 .eraseblocks = { {64 * 1024, 4} },
3977 .block_erase = spi_block_erase_d8,
3978 }, {
3979 .eraseblocks = { {256 * 1024, 1} },
3980 .block_erase = spi_block_erase_60,
3981 }, {
3982 .eraseblocks = { {256 * 1024, 1} },
3983 .block_erase = spi_block_erase_c7,
3984 }
3985 },
3986 .printlock = spi_prettyprint_status_register_default_bp2,
3987 .unlock = spi_disable_blockprotect,
3988 .write = spi_chip_write_256,
3989 .read = spi_chip_read,
3990 .voltage = {1650, 1950},
3991 },
3992
3993 {
3994 .vendor = "Eon",
3995 .name = "EN25S40",
3996 .bustype = BUS_SPI,
3997 .manufacture_id = EON_ID_NOPREFIX,
3998 .model_id = EON_EN25S40,
3999 .total_size = 512,
4000 .page_size = 256,
4001 /* OTP: 256B total; enter 0x3A */
4002 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4003 .tested = TEST_UNTESTED,
4004 .probe = probe_spi_rdid,
4005 .probe_timing = TIMING_ZERO,
4006 .block_erasers = {
4007 {
4008 .eraseblocks = { {4 * 1024, 128} },
4009 .block_erase = spi_block_erase_20,
4010 }, {
4011 .eraseblocks = { {64 * 1024, 8} },
4012 .block_erase = spi_block_erase_d8,
4013 }, {
4014 .eraseblocks = { {512 * 1024, 1} },
4015 .block_erase = spi_block_erase_60,
4016 }, {
4017 .eraseblocks = { {512 * 1024, 1} },
4018 .block_erase = spi_block_erase_c7,
4019 }
4020 },
4021 .printlock = spi_prettyprint_status_register_default_bp2,
4022 .unlock = spi_disable_blockprotect,
4023 .write = spi_chip_write_256,
4024 .read = spi_chip_read,
4025 .voltage = {1650, 1950},
4026 },
4027
4028 {
4029 .vendor = "Eon",
4030 .name = "EN25S80",
4031 .bustype = BUS_SPI,
4032 .manufacture_id = EON_ID_NOPREFIX,
4033 .model_id = EON_EN25S80,
4034 .total_size = 1024,
4035 .page_size = 256,
4036 /* OTP: 256B total; enter 0x3A */
4037 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4038 .tested = TEST_UNTESTED,
4039 .probe = probe_spi_rdid,
4040 .probe_timing = TIMING_ZERO,
4041 .block_erasers = {
4042 {
4043 .eraseblocks = { {4 * 1024, 256} },
4044 .block_erase = spi_block_erase_20,
4045 }, {
4046 .eraseblocks = { {64 * 1024, 16} },
4047 .block_erase = spi_block_erase_d8,
4048 }, {
4049 .eraseblocks = { {1024 * 1024, 1} },
4050 .block_erase = spi_block_erase_60,
4051 }, {
4052 .eraseblocks = { {1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
4056 .printlock = spi_prettyprint_status_register_default_bp2,
4057 .unlock = spi_disable_blockprotect,
4058 .write = spi_chip_write_256,
4059 .read = spi_chip_read,
4060 .voltage = {1650, 1950},
4061 },
4062
4063 {
4064 .vendor = "Eon",
4065 .name = "EN25S16",
4066 .bustype = BUS_SPI,
4067 .manufacture_id = EON_ID_NOPREFIX,
4068 .model_id = EON_EN25S16,
4069 .total_size = 2048,
4070 .page_size = 256,
4071 /* OTP: 512B total; enter 0x3A */
4072 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4073 .tested = TEST_UNTESTED,
4074 .probe = probe_spi_rdid,
4075 .probe_timing = TIMING_ZERO,
4076 .block_erasers = {
4077 {
4078 .eraseblocks = { {4 * 1024, 512} },
4079 .block_erase = spi_block_erase_20,
4080 }, {
4081 .eraseblocks = { {64 * 1024, 32} },
4082 .block_erase = spi_block_erase_52,
4083 }, {
4084 .eraseblocks = { {32 * 1024, 64} },
4085 .block_erase = spi_block_erase_d8,
4086 }, {
4087 .eraseblocks = { {2048 * 1024, 1} },
4088 .block_erase = spi_block_erase_60,
4089 }, {
4090 .eraseblocks = { {2048 * 1024, 1} },
4091 .block_erase = spi_block_erase_c7,
4092 }
4093 },
4094 .printlock = spi_prettyprint_status_register_en25s_wp,
4095 .unlock = spi_disable_blockprotect_bp3_srwd,
4096 .write = spi_chip_write_256,
4097 .read = spi_chip_read,
4098 .voltage = {1650, 1950},
4099 },
4100
4101 {
4102 .vendor = "Eon",
4103 .name = "EN25S32",
4104 .bustype = BUS_SPI,
4105 .manufacture_id = EON_ID_NOPREFIX,
4106 .model_id = EON_EN25S32,
4107 .total_size = 4096,
4108 .page_size = 256,
4109 /* OTP: 512B total; enter 0x3A */
4110 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4111 .tested = TEST_UNTESTED,
4112 .probe = probe_spi_rdid,
4113 .probe_timing = TIMING_ZERO,
4114 .block_erasers = {
4115 {
4116 .eraseblocks = { {4 * 1024, 1024} },
4117 .block_erase = spi_block_erase_20,
4118 }, {
4119 .eraseblocks = { {32 * 1024, 128} },
4120 .block_erase = spi_block_erase_52,
4121 }, {
4122 .eraseblocks = { {64 * 1024, 64} },
4123 .block_erase = spi_block_erase_d8,
4124 }, {
4125 .eraseblocks = { {4096 * 1024, 1} },
4126 .block_erase = spi_block_erase_60,
4127 }, {
4128 .eraseblocks = { {4096 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
4132 .printlock = spi_prettyprint_status_register_en25s_wp,
4133 .unlock = spi_disable_blockprotect_bp3_srwd,
4134 .write = spi_chip_write_256,
4135 .read = spi_chip_read,
4136 .voltage = {1650, 1950},
4137 },
4138
4139 {
4140 .vendor = "Eon",
4141 .name = "EN25S64",
4142 .bustype = BUS_SPI,
4143 .manufacture_id = EON_ID_NOPREFIX,
4144 .model_id = EON_EN25S64,
4145 .total_size = 8192,
4146 .page_size = 256,
4147 /* OTP: 512B total; enter 0x3A */
4148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4149 .tested = TEST_UNTESTED,
4150 .probe = probe_spi_rdid,
4151 .probe_timing = TIMING_ZERO,
4152 .block_erasers = {
4153 {
4154 .eraseblocks = { {4 * 1024, 2048} },
4155 .block_erase = spi_block_erase_20,
4156 }, {
4157 .eraseblocks = { {64 * 1024, 128} },
4158 .block_erase = spi_block_erase_d8,
4159 }, {
4160 .eraseblocks = { {8192 * 1024, 1} },
4161 .block_erase = spi_block_erase_60,
4162 }, {
4163 .eraseblocks = { {8192 * 1024, 1} },
4164 .block_erase = spi_block_erase_c7,
4165 }
4166 },
4167 .printlock = spi_prettyprint_status_register_en25s_wp,
4168 .unlock = spi_disable_blockprotect_bp3_srwd,
4169 .write = spi_chip_write_256,
4170 .read = spi_chip_read,
4171 .voltage = {1650, 1950},
4172 },
4173
4174 {
4175 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004176 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004177 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004178 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004179 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004180 .total_size = 128,
4181 .page_size = 128,
4182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004183 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004184 .probe = probe_jedec,
4185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = { {16 * 1024, 8} },
4190 .block_erase = erase_sector_jedec,
4191 },
4192 {
4193 .eraseblocks = { {128 * 1024, 1} },
4194 .block_erase = erase_chip_block_jedec,
4195 },
4196 },
4197 .write = write_jedec_1,
4198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004199 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004200 },
4201
4202 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004203 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004204 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004205 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004206 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004207 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004208 .total_size = 256,
4209 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004210 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004211 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004212 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004214 .block_erasers =
4215 {
4216 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004217 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004218 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004219 {8 * 1024, 2},
4220 {32 * 1024, 1},
4221 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004222 },
4223 .block_erase = erase_sector_jedec,
4224 }, {
4225 .eraseblocks = { {256 * 1024, 1} },
4226 .block_erase = erase_chip_block_jedec,
4227 },
4228 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004229 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004231 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004232 },
4233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004234 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004235 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004236 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004237 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004238 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004239 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004240 .total_size = 256,
4241 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004242 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004243 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004244 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004245 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004246 .block_erasers =
4247 {
4248 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004249 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004250 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004251 {32 * 1024, 1},
4252 {8 * 1024, 2},
4253 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004254 },
4255 .block_erase = erase_sector_jedec,
4256 }, {
4257 .eraseblocks = { {256 * 1024, 1} },
4258 .block_erase = erase_chip_block_jedec,
4259 },
4260 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004263 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004264 },
4265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004266 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004267 .vendor = "Eon",
4268 .name = "EN29LV640B",
4269 .bustype = BUS_PARALLEL,
4270 .manufacture_id = EON_ID,
4271 .model_id = EON_EN29LV640B,
4272 .total_size = 8192,
4273 .page_size = 8192,
4274 .feature_bits = 0,
4275 .tested = TEST_OK_PREW,
4276 .probe = probe_en29lv640b,
4277 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4278 .block_erasers =
4279 {
4280 {
4281 .eraseblocks = {
4282 {8 * 1024, 8},
4283 {64 * 1024, 127},
4284 },
4285 .block_erase = block_erase_en29lv640b,
4286 }, {
4287 .eraseblocks = { {8 * 1024 * 1024, 1} },
4288 .block_erase = block_erase_chip_en29lv640b,
4289 },
4290 },
4291 .write = write_en29lv640b,
4292 .read = read_memmapped,
4293 .voltage = {2700, 3600},
4294 },
4295
4296 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004297 .vendor = "Fujitsu",
4298 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004299 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004300 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004301 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004302 .total_size = 512,
4303 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004305 .tested = TEST_UNTESTED,
4306 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004307 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004308 .block_erasers =
4309 {
4310 {
4311 .eraseblocks = {
4312 {16 * 1024, 1},
4313 {8 * 1024, 2},
4314 {32 * 1024, 1},
4315 {64 * 1024, 7},
4316 },
Sean Nelson35727f72010-01-28 23:55:12 +00004317 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004318 }, {
4319 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004320 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004321 },
4322 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004323 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004325 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004326 },
4327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004328 {
4329 .vendor = "Fujitsu",
4330 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004331 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004332 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004333 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004334 .total_size = 512,
4335 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004336 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004337 .tested = TEST_UNTESTED,
4338 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004339 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004340 .block_erasers =
4341 {
4342 {
4343 .eraseblocks = {
4344 {64 * 1024, 7},
4345 {32 * 1024, 1},
4346 {8 * 1024, 2},
4347 {16 * 1024, 1},
4348 },
Sean Nelson35727f72010-01-28 23:55:12 +00004349 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004350 }, {
4351 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004352 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004353 },
4354 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004355 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004356 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004357 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004358 },
4359
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004360 {
Sean Nelson35727f72010-01-28 23:55:12 +00004361 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004362 .vendor = "Fujitsu",
4363 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004364 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004365 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004366 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004367 .total_size = 512,
4368 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004369 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004370 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004371 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004372 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004373 .block_erasers =
4374 {
4375 {
4376 .eraseblocks = {
4377 {16 * 1024, 1},
4378 {8 * 1024, 2},
4379 {32 * 1024, 1},
4380 {64 * 1024, 7},
4381 },
4382 .block_erase = block_erase_m29f400bt,
4383 }, {
4384 .eraseblocks = { {512 * 1024, 1} },
4385 .block_erase = block_erase_chip_m29f400bt,
4386 },
4387 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004388 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004389 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004390 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004391 },
4392
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004393 {
4394 .vendor = "Fujitsu",
4395 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004396 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004397 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004398 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004399 .total_size = 512,
4400 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004401 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004402 .tested = TEST_UNTESTED,
4403 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004404 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004405 .block_erasers =
4406 {
4407 {
4408 .eraseblocks = {
4409 {64 * 1024, 7},
4410 {32 * 1024, 1},
4411 {8 * 1024, 2},
4412 {16 * 1024, 1},
4413 },
4414 .block_erase = block_erase_m29f400bt,
4415 }, {
4416 .eraseblocks = { {512 * 1024, 1} },
4417 .block_erase = block_erase_chip_m29f400bt,
4418 },
4419 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004420 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004421 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004422 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004423 },
4424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004425 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004426 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004427 .name = "GD25LQ32",
4428 .bustype = BUS_SPI,
4429 .manufacture_id = GIGADEVICE_ID,
4430 .model_id = GIGADEVICE_GD25LQ32,
4431 .total_size = 4096,
4432 .page_size = 256,
4433 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4434 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4435 .tested = TEST_OK_PREW,
4436 .probe = probe_spi_rdid,
4437 .probe_timing = TIMING_ZERO,
4438 .block_erasers =
4439 {
4440 {
4441 .eraseblocks = { {4 * 1024, 1024} },
4442 .block_erase = spi_block_erase_20,
4443 }, {
4444 .eraseblocks = { {32 * 1024, 128} },
4445 .block_erase = spi_block_erase_52,
4446 }, {
4447 .eraseblocks = { {64 * 1024, 64} },
4448 .block_erase = spi_block_erase_d8,
4449 }, {
4450 .eraseblocks = { {4 * 1024 * 1024, 1} },
4451 .block_erase = spi_block_erase_60,
4452 }, {
4453 .eraseblocks = { {4 * 1024 * 1024, 1} },
4454 .block_erase = spi_block_erase_c7,
4455 }
4456 },
4457 .printlock = spi_prettyprint_status_register_default_bp4,
4458 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4459 .write = spi_chip_write_256,
4460 .read = spi_chip_read,
4461 .voltage = {1700, 1950},
4462 },
4463
4464 {
4465 .vendor = "GigaDevice",
4466 .name = "GD25Q512",
4467 .bustype = BUS_SPI,
4468 .manufacture_id = GIGADEVICE_ID,
4469 .model_id = GIGADEVICE_GD25Q512,
4470 .total_size = 64,
4471 .page_size = 256,
4472 .feature_bits = FEATURE_WRSR_WREN,
4473 .tested = TEST_UNTESTED,
4474 .probe = probe_spi_rdid,
4475 .probe_timing = TIMING_ZERO,
4476 .block_erasers = {
4477 {
4478 .eraseblocks = { {4 * 1024, 16} },
4479 .block_erase = spi_block_erase_20,
4480 }, {
4481 .eraseblocks = { {32 * 1024, 2} },
4482 .block_erase = spi_block_erase_52,
4483 }, {
4484 .eraseblocks = { {64 * 1024, 1} },
4485 .block_erase = spi_block_erase_60,
4486 }, {
4487 .eraseblocks = { {64 * 1024, 1} },
4488 .block_erase = spi_block_erase_c7,
4489 }
4490 },
4491 .printlock = spi_prettyprint_status_register_default_bp4,
4492 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4493 .write = spi_chip_write_256,
4494 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4495 .voltage = {2700, 3600},
4496 },
4497
4498 {
4499 .vendor = "GigaDevice",
4500 .name = "GD25Q10",
4501 .bustype = BUS_SPI,
4502 .manufacture_id = GIGADEVICE_ID,
4503 .model_id = GIGADEVICE_GD25Q10,
4504 .total_size = 128,
4505 .page_size = 256,
4506 .feature_bits = FEATURE_WRSR_WREN,
4507 .tested = TEST_UNTESTED,
4508 .probe = probe_spi_rdid,
4509 .probe_timing = TIMING_ZERO,
4510 .block_erasers = {
4511 {
4512 .eraseblocks = { {4 * 1024, 32} },
4513 .block_erase = spi_block_erase_20,
4514 }, {
4515 .eraseblocks = { {32 * 1024, 4} },
4516 .block_erase = spi_block_erase_52,
4517 }, {
4518 .eraseblocks = { {64 * 1024, 2} },
4519 .block_erase = spi_block_erase_d8,
4520 }, {
4521 .eraseblocks = { {128 * 1024, 1} },
4522 .block_erase = spi_block_erase_60,
4523 }, {
4524 .eraseblocks = { {128 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
4528 .printlock = spi_prettyprint_status_register_default_bp4,
4529 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4530 .write = spi_chip_write_256,
4531 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4532 .voltage = {2700, 3600},
4533 },
4534
4535 {
4536 .vendor = "GigaDevice",
4537 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004538 .bustype = BUS_SPI,
4539 .manufacture_id = GIGADEVICE_ID,
4540 .model_id = GIGADEVICE_GD25Q20,
4541 .total_size = 256,
4542 .page_size = 256,
4543 .feature_bits = FEATURE_WRSR_WREN,
4544 .tested = TEST_UNTESTED,
4545 .probe = probe_spi_rdid,
4546 .probe_timing = TIMING_ZERO,
4547 .block_erasers =
4548 {
4549 {
4550 .eraseblocks = { {4 * 1024, 64} },
4551 .block_erase = spi_block_erase_20,
4552 }, {
4553 .eraseblocks = { {32 * 1024, 8} },
4554 .block_erase = spi_block_erase_52,
4555 }, {
4556 .eraseblocks = { {64 * 1024, 4} },
4557 .block_erase = spi_block_erase_d8,
4558 }, {
4559 .eraseblocks = { {256 * 1024, 1} },
4560 .block_erase = spi_block_erase_60,
4561 }, {
4562 .eraseblocks = { {256 * 1024, 1} },
4563 .block_erase = spi_block_erase_c7,
4564 }
4565 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004566 .printlock = spi_prettyprint_status_register_default_bp4,
4567 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004568 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004569 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004570 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004571 },
4572
4573 {
4574 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004575 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004576 .bustype = BUS_SPI,
4577 .manufacture_id = GIGADEVICE_ID,
4578 .model_id = GIGADEVICE_GD25Q40,
4579 .total_size = 512,
4580 .page_size = 256,
4581 .feature_bits = FEATURE_WRSR_WREN,
4582 .tested = TEST_UNTESTED,
4583 .probe = probe_spi_rdid,
4584 .probe_timing = TIMING_ZERO,
4585 .block_erasers =
4586 {
4587 {
4588 .eraseblocks = { {4 * 1024, 128} },
4589 .block_erase = spi_block_erase_20,
4590 }, {
4591 .eraseblocks = { {32 * 1024, 16} },
4592 .block_erase = spi_block_erase_52,
4593 }, {
4594 .eraseblocks = { {64 * 1024, 8} },
4595 .block_erase = spi_block_erase_d8,
4596 }, {
4597 .eraseblocks = { {512 * 1024, 1} },
4598 .block_erase = spi_block_erase_60,
4599 }, {
4600 .eraseblocks = { {512 * 1024, 1} },
4601 .block_erase = spi_block_erase_c7,
4602 }
4603 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004604 .printlock = spi_prettyprint_status_register_default_bp4,
4605 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004606 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004607 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004608 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004609 },
4610
4611 {
4612 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004613 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004614 .bustype = BUS_SPI,
4615 .manufacture_id = GIGADEVICE_ID,
4616 .model_id = GIGADEVICE_GD25Q80,
4617 .total_size = 1024,
4618 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004619 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004620 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4621 .tested = TEST_OK_PREW,
4622 .probe = probe_spi_rdid,
4623 .probe_timing = TIMING_ZERO,
4624 .block_erasers =
4625 {
4626 {
4627 .eraseblocks = { {4 * 1024, 256} },
4628 .block_erase = spi_block_erase_20,
4629 }, {
4630 .eraseblocks = { {32 * 1024, 32} },
4631 .block_erase = spi_block_erase_52,
4632 }, {
4633 .eraseblocks = { {64 * 1024, 16} },
4634 .block_erase = spi_block_erase_d8,
4635 }, {
4636 .eraseblocks = { {1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_60,
4638 }, {
4639 .eraseblocks = { {1024 * 1024, 1} },
4640 .block_erase = spi_block_erase_c7,
4641 }
4642 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004643 .printlock = spi_prettyprint_status_register_default_bp4,
4644 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004645 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004646 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004647 .voltage = {2700, 3600},
4648 },
4649
4650 {
4651 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004652 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004653 .bustype = BUS_SPI,
4654 .manufacture_id = GIGADEVICE_ID,
4655 .model_id = GIGADEVICE_GD25Q16,
4656 .total_size = 2048,
4657 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004658 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004659 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4660 .tested = TEST_UNTESTED,
4661 .probe = probe_spi_rdid,
4662 .probe_timing = TIMING_ZERO,
4663 .block_erasers =
4664 {
4665 {
4666 .eraseblocks = { {4 * 1024, 512} },
4667 .block_erase = spi_block_erase_20,
4668 }, {
4669 .eraseblocks = { {32 * 1024, 64} },
4670 .block_erase = spi_block_erase_52,
4671 }, {
4672 .eraseblocks = { {64 * 1024, 32} },
4673 .block_erase = spi_block_erase_d8,
4674 }, {
4675 .eraseblocks = { {2 * 1024 * 1024, 1} },
4676 .block_erase = spi_block_erase_60,
4677 }, {
4678 .eraseblocks = { {2 * 1024 * 1024, 1} },
4679 .block_erase = spi_block_erase_c7,
4680 }
4681 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004682 .printlock = spi_prettyprint_status_register_default_bp4,
4683 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004684 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004685 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004686 .voltage = {2700, 3600},
4687 },
4688
4689 {
4690 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004691 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004692 .bustype = BUS_SPI,
4693 .manufacture_id = GIGADEVICE_ID,
4694 .model_id = GIGADEVICE_GD25Q32,
4695 .total_size = 4096,
4696 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004697 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004698 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4699 .tested = TEST_UNTESTED,
4700 .probe = probe_spi_rdid,
4701 .probe_timing = TIMING_ZERO,
4702 .block_erasers =
4703 {
4704 {
4705 .eraseblocks = { {4 * 1024, 1024} },
4706 .block_erase = spi_block_erase_20,
4707 }, {
4708 .eraseblocks = { {32 * 1024, 128} },
4709 .block_erase = spi_block_erase_52,
4710 }, {
4711 .eraseblocks = { {64 * 1024, 64} },
4712 .block_erase = spi_block_erase_d8,
4713 }, {
4714 .eraseblocks = { {4 * 1024 * 1024, 1} },
4715 .block_erase = spi_block_erase_60,
4716 }, {
4717 .eraseblocks = { {4 * 1024 * 1024, 1} },
4718 .block_erase = spi_block_erase_c7,
4719 }
4720 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004721 .printlock = spi_prettyprint_status_register_default_bp4,
4722 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004723 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004724 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004725 .voltage = {2700, 3600},
4726 },
4727
4728 {
4729 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004730 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004731 .bustype = BUS_SPI,
4732 .manufacture_id = GIGADEVICE_ID,
4733 .model_id = GIGADEVICE_GD25Q64,
4734 .total_size = 8192,
4735 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004736 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004737 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004738 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004739 .probe = probe_spi_rdid,
4740 .probe_timing = TIMING_ZERO,
4741 .block_erasers =
4742 {
4743 {
4744 .eraseblocks = { {4 * 1024, 2048} },
4745 .block_erase = spi_block_erase_20,
4746 }, {
4747 .eraseblocks = { {32 * 1024, 256} },
4748 .block_erase = spi_block_erase_52,
4749 }, {
4750 .eraseblocks = { {64 * 1024, 128} },
4751 .block_erase = spi_block_erase_d8,
4752 }, {
4753 .eraseblocks = { {8 * 1024 * 1024, 1} },
4754 .block_erase = spi_block_erase_60,
4755 }, {
4756 .eraseblocks = { {8 * 1024 * 1024, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004760 .printlock = spi_prettyprint_status_register_default_bp4,
4761 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004762 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004763 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00004764 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004765 },
4766
4767 {
4768 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004769 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004770 .bustype = BUS_SPI,
4771 .manufacture_id = GIGADEVICE_ID,
4772 .model_id = GIGADEVICE_GD25Q128,
4773 .total_size = 16384,
4774 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004775 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {4 * 1024, 4096} },
4784 .block_erase = spi_block_erase_20,
4785 }, {
4786 .eraseblocks = { {32 * 1024, 512} },
4787 .block_erase = spi_block_erase_52,
4788 }, {
4789 .eraseblocks = { {64 * 1024, 256} },
4790 .block_erase = spi_block_erase_d8,
4791 }, {
4792 .eraseblocks = { {16 * 1024 * 1024, 1} },
4793 .block_erase = spi_block_erase_60,
4794 }, {
4795 .eraseblocks = { {16 * 1024 * 1024, 1} },
4796 .block_erase = spi_block_erase_c7,
4797 }
4798 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004799 .printlock = spi_prettyprint_status_register_default_bp4,
4800 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4801 .write = spi_chip_write_256,
4802 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4803 .voltage = {2700, 3600},
4804 },
4805
4806 {
4807 .vendor = "GigaDevice",
4808 .name = "GD25T80",
4809 .bustype = BUS_SPI,
4810 .manufacture_id = GIGADEVICE_ID,
4811 .model_id = GIGADEVICE_GD25T80,
4812 .total_size = 1024,
4813 .page_size = 256,
4814 /* OTP: 256B total; enter 0x3A */
4815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4816 .tested = TEST_UNTESTED,
4817 .probe = probe_spi_rdid,
4818 .probe_timing = TIMING_ZERO,
4819 .block_erasers = {
4820 {
4821 .eraseblocks = { {4 * 1024, 256} },
4822 .block_erase = spi_block_erase_20,
4823 }, {
4824 .eraseblocks = { {64 * 1024, 16} },
4825 .block_erase = spi_block_erase_52,
4826 }, {
4827 .eraseblocks = { {64 * 1024, 16} },
4828 .block_erase = spi_block_erase_d8,
4829 }, {
4830 .eraseblocks = { {1024 * 1024, 1} },
4831 .block_erase = spi_block_erase_60,
4832 }, {
4833 .eraseblocks = { {1024 * 1024, 1} },
4834 .block_erase = spi_block_erase_c7,
4835 }
4836 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004837 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004838 .unlock = spi_disable_blockprotect,
4839 .write = spi_chip_write_256,
4840 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004841 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004842 },
4843
4844 {
David Borgc96a8bd2010-06-21 16:12:22 +00004845 .vendor = "Hyundai",
4846 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004847 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004848 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004849 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004850 .total_size = 256,
4851 .page_size = 256 * 1024,
4852 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004853 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004854 .probe = probe_jedec,
4855 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4856 .block_erasers =
4857 {
4858 {
4859 .eraseblocks = {
4860 {64 * 1024, 3},
4861 {32 * 1024, 1},
4862 {8 * 1024, 2},
4863 {16 * 1024, 1},
4864 },
4865 .block_erase = erase_sector_jedec,
4866 }, {
4867 .eraseblocks = { {256 * 1024, 1} },
4868 .block_erase = erase_chip_block_jedec,
4869 },
4870 },
4871 .write = write_jedec_1,
4872 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004873 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004874 },
4875
4876 {
4877 .vendor = "Hyundai",
4878 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004879 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004880 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004881 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004882 .total_size = 256,
4883 .page_size = 256 * 1024,
4884 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4885 .tested = TEST_UNTESTED,
4886 .probe = probe_jedec,
4887 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4888 .block_erasers =
4889 {
4890 {
4891 .eraseblocks = {
4892 {16 * 1024, 1},
4893 {8 * 1024, 2},
4894 {32 * 1024, 1},
4895 {64 * 1024, 3},
4896 },
4897 .block_erase = erase_sector_jedec,
4898 }, {
4899 .eraseblocks = { {256 * 1024, 1} },
4900 .block_erase = erase_chip_block_jedec,
4901 },
4902 },
4903 .write = write_jedec_1,
4904 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004905 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004906 },
4907
4908 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004909 .vendor = "Hyundai",
4910 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004911 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004912 .manufacture_id = HYUNDAI_ID,
4913 .model_id = HYUNDAI_HY29F040A,
4914 .total_size = 512,
4915 .page_size = 64 * 1024,
4916 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4917 .tested = TEST_UNTESTED,
4918 .probe = probe_jedec,
4919 .probe_timing = TIMING_ZERO,
4920 .block_erasers =
4921 {
4922 {
4923 .eraseblocks = { {64 * 1024, 8} },
4924 .block_erase = erase_sector_jedec,
4925 }, {
4926 .eraseblocks = { {512 * 1024, 1} },
4927 .block_erase = erase_chip_block_jedec,
4928 },
4929 },
4930 .write = write_jedec_1,
4931 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004932 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004933 },
4934
4935 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004936 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00004937 .name = "25F160S33B8",
4938 .bustype = BUS_SPI,
4939 .manufacture_id = INTEL_ID,
4940 .model_id = INTEL_25F160S33B8,
4941 .total_size = 2048,
4942 .page_size = 256,
4943 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4944 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4945 .tested = TEST_UNTESTED,
4946 .probe = probe_spi_rdid,
4947 .probe_timing = TIMING_ZERO,
4948 .block_erasers =
4949 {
4950 {
4951 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4952 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4953 * have no effect on the memory contents, but sets a flag in the SR.
4954 .eraseblocks = {
4955 {8 * 1024, 8},
4956 {64 * 1024, 31} // inaccessible
4957 },
4958 .block_erase = spi_block_erase_40,
4959 }, { */
4960 .eraseblocks = { {64 * 1024, 32} },
4961 .block_erase = spi_block_erase_d8,
4962 }, {
4963 .eraseblocks = { {2 * 1024 * 1024, 1} },
4964 .block_erase = spi_block_erase_c7,
4965 }
4966 },
4967 .printlock = spi_prettyprint_status_register_s33,
4968 .unlock = spi_disable_blockprotect_s33,
4969 .write = spi_chip_write_256,
4970 .read = spi_chip_read, /* also fast read 0x0B */
4971 .voltage = {2700, 3600},
4972 },
4973
4974 {
4975 .vendor = "Intel",
4976 .name = "25F160S33T8",
4977 .bustype = BUS_SPI,
4978 .manufacture_id = INTEL_ID,
4979 .model_id = INTEL_25F160S33T8,
4980 .total_size = 2048,
4981 .page_size = 256,
4982 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4983 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
4986 .probe_timing = TIMING_ZERO,
4987 .block_erasers =
4988 {
4989 {
4990 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4991 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4992 * have no effect on the memory contents, but sets a flag in the SR.
4993 .eraseblocks = {
4994 {64 * 1024, 31}, // inaccessible
4995 {8 * 1024, 8}
4996 },
4997 .block_erase = spi_block_erase_40,
4998 }, { */
4999 .eraseblocks = { {64 * 1024, 32} },
5000 .block_erase = spi_block_erase_d8,
5001 }, {
5002 .eraseblocks = { {2 * 1024 * 1024, 1} },
5003 .block_erase = spi_block_erase_c7,
5004 }
5005 },
5006 .printlock = spi_prettyprint_status_register_s33,
5007 .unlock = spi_disable_blockprotect_s33,
5008 .write = spi_chip_write_256,
5009 .read = spi_chip_read, /* also fast read 0x0B */
5010 .voltage = {2700, 3600},
5011 },
5012
5013 {
5014 .vendor = "Intel",
5015 .name = "25F320S33B8",
5016 .bustype = BUS_SPI,
5017 .manufacture_id = INTEL_ID,
5018 .model_id = INTEL_25F320S33B8,
5019 .total_size = 4096,
5020 .page_size = 256,
5021 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5023 .tested = TEST_UNTESTED,
5024 .probe = probe_spi_rdid,
5025 .probe_timing = TIMING_ZERO,
5026 .block_erasers =
5027 {
5028 {
5029 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5030 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5031 * have no effect on the memory contents, but sets a flag in the SR.
5032 .eraseblocks = {
5033 {8 * 1024, 8},
5034 {64 * 1024, 63} // inaccessible
5035 },
5036 .block_erase = spi_block_erase_40,
5037 }, { */
5038 .eraseblocks = { {64 * 1024, 64} },
5039 .block_erase = spi_block_erase_d8,
5040 }, {
5041 .eraseblocks = { {4 * 1024 * 1024, 1} },
5042 .block_erase = spi_block_erase_c7,
5043 }
5044 },
5045 .printlock = spi_prettyprint_status_register_s33,
5046 .unlock = spi_disable_blockprotect_s33,
5047 .write = spi_chip_write_256,
5048 .read = spi_chip_read, /* also fast read 0x0B */
5049 .voltage = {2700, 3600},
5050 },
5051
5052 {
5053 .vendor = "Intel",
5054 .name = "25F320S33T8",
5055 .bustype = BUS_SPI,
5056 .manufacture_id = INTEL_ID,
5057 .model_id = INTEL_25F320S33T8,
5058 .total_size = 4096,
5059 .page_size = 256,
5060 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5061 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5062 .tested = TEST_UNTESTED,
5063 .probe = probe_spi_rdid,
5064 .probe_timing = TIMING_ZERO,
5065 .block_erasers =
5066 {
5067 {
5068 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5069 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5070 * have no effect on the memory contents, but sets a flag in the SR.
5071 .eraseblocks = {
5072 {64 * 1024, 63}, // inaccessible
5073 {8 * 1024, 8}
5074 },
5075 .block_erase = spi_block_erase_40,
5076 }, { */
5077 .eraseblocks = { {64 * 1024, 64} },
5078 .block_erase = spi_block_erase_d8,
5079 }, {
5080 .eraseblocks = { {4 * 1024 * 1024, 1} },
5081 .block_erase = spi_block_erase_c7,
5082 }
5083 },
5084 .printlock = spi_prettyprint_status_register_s33,
5085 .unlock = spi_disable_blockprotect_s33,
5086 .write = spi_chip_write_256,
5087 .read = spi_chip_read, /* also fast read 0x0B */
5088 .voltage = {2700, 3600},
5089 },
5090
5091 {
5092 .vendor = "Intel",
5093 .name = "25F640S33B8",
5094 .bustype = BUS_SPI,
5095 .manufacture_id = INTEL_ID,
5096 .model_id = INTEL_25F640S33B8,
5097 .total_size = 8192,
5098 .page_size = 256,
5099 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5100 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5101 .tested = TEST_UNTESTED,
5102 .probe = probe_spi_rdid,
5103 .probe_timing = TIMING_ZERO,
5104 .block_erasers =
5105 {
5106 {
5107 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5108 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5109 * have no effect on the memory contents, but sets a flag in the SR.
5110 .eraseblocks = {
5111 {8 * 1024, 8},
5112 {64 * 1024, 127} // inaccessible
5113 },
5114 .block_erase = spi_block_erase_40,
5115 }, { */
5116 .eraseblocks = { {64 * 1024, 128} },
5117 .block_erase = spi_block_erase_d8,
5118 }, {
5119 .eraseblocks = { {8 * 1024 * 1024, 1} },
5120 .block_erase = spi_block_erase_c7,
5121 }
5122 },
5123 .printlock = spi_prettyprint_status_register_s33,
5124 .unlock = spi_disable_blockprotect_s33,
5125 .write = spi_chip_write_256,
5126 .read = spi_chip_read, /* also fast read 0x0B */
5127 .voltage = {2700, 3600},
5128 },
5129
5130 {
5131 .vendor = "Intel",
5132 .name = "25F640S33T8",
5133 .bustype = BUS_SPI,
5134 .manufacture_id = INTEL_ID,
5135 .model_id = INTEL_25F640S33T8,
5136 .total_size = 8192,
5137 .page_size = 256,
5138 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5140 .tested = TEST_UNTESTED,
5141 .probe = probe_spi_rdid,
5142 .probe_timing = TIMING_ZERO,
5143 .block_erasers =
5144 {
5145 {
5146 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5147 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5148 * have no effect on the memory contents, but sets a flag in the SR.
5149 .eraseblocks = {
5150 {64 * 1024, 127}, // inaccessible
5151 {8 * 1024, 8}
5152 },
5153 .block_erase = spi_block_erase_40,
5154 }, { */
5155 .eraseblocks = { {64 * 1024, 128} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {8 * 1024 * 1024, 1} },
5159 .block_erase = spi_block_erase_c7,
5160 }
5161 },
5162 .printlock = spi_prettyprint_status_register_s33,
5163 .unlock = spi_disable_blockprotect_s33,
5164 .write = spi_chip_write_256,
5165 .read = spi_chip_read, /* also fast read 0x0B */
5166 .voltage = {2700, 3600},
5167 },
5168
5169 {
5170 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005171 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005172 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005173 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005174 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005175 .total_size = 128,
5176 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005177 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005178 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005179 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005180 .block_erasers =
5181 {
5182 {
5183 .eraseblocks = {
5184 {8 * 1024, 1},
5185 {4 * 1024, 2},
5186 {112 * 1024, 1},
5187 },
Sean Nelson28accc22010-03-19 18:47:06 +00005188 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005189 },
5190 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005191 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005193 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005194 },
5195
5196 {
5197 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005198 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005199 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005200 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005201 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005202 .total_size = 128,
5203 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005204 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005205 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005206 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005207 .block_erasers =
5208 {
5209 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005210 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005211 {112 * 1024, 1},
5212 {4 * 1024, 2},
5213 {8 * 1024, 1},
5214 },
Sean Nelson28accc22010-03-19 18:47:06 +00005215 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005216 },
5217 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005218 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005220 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005221 },
5222
5223 {
5224 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005225 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005226 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005227 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005228 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005229 .total_size = 256,
5230 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005231 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005232 .probe = probe_82802ab,
5233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5234 .block_erasers =
5235 {
5236 {
5237 .eraseblocks = {
5238 {128 * 1024, 1},
5239 {96 * 1024, 1},
5240 {8 * 1024, 2},
5241 {16 * 1024, 1},
5242 },
5243 .block_erase = erase_block_82802ab,
5244 },
5245 },
5246 .write = write_82802ab,
5247 .read = read_memmapped,
5248 },
5249
5250 {
5251 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005252 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005253 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005254 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005255 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005256 .total_size = 512,
5257 .page_size = 256,
5258 .tested = TEST_UNTESTED,
5259 .probe = probe_82802ab,
5260 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005261 .block_erasers =
5262 {
5263 {
5264 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005265 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005266 },
5267 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005268 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005269 .write = write_82802ab,
5270 .read = read_memmapped,
5271 },
5272
5273 {
5274 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005275 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005276 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005277 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005278 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005279 .total_size = 512,
5280 .page_size = 128 * 1024, /* maximal block size */
5281 .tested = TEST_UNTESTED,
5282 .probe = probe_82802ab,
5283 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5284 .block_erasers =
5285 {
5286 {
5287 .eraseblocks = {
5288 {16 * 1024, 1},
5289 {8 * 1024, 2},
5290 {96 * 1024, 1},
5291 {128 * 1024, 3},
5292 },
5293 .block_erase = erase_block_82802ab,
5294 },
5295 },
5296 .write = write_82802ab,
5297 .read = read_memmapped,
5298 },
5299
5300 {
5301 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005302 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005303 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005304 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005305 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005306 .total_size = 512,
5307 .page_size = 128 * 1024, /* maximal block size */
5308 .tested = TEST_UNTESTED,
5309 .probe = probe_82802ab,
5310 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5311 .block_erasers =
5312 {
5313 {
5314 .eraseblocks = {
5315 {128 * 1024, 3},
5316 {96 * 1024, 1},
5317 {8 * 1024, 2},
5318 {16 * 1024, 1},
5319 },
5320 .block_erase = erase_block_82802ab,
5321 },
5322 },
5323 .write = write_82802ab,
5324 .read = read_memmapped,
5325 },
5326
5327 {
5328 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005329 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005330 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005331 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005332 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005333 .total_size = 512,
5334 .page_size = 128 * 1024, /* maximal block size */
5335 .feature_bits = FEATURE_ADDR_SHIFTED,
5336 .tested = TEST_UNTESTED,
5337 .probe = probe_82802ab,
5338 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5339 .block_erasers =
5340 {
5341 {
5342 .eraseblocks = {
5343 {16 * 1024, 1},
5344 {8 * 1024, 2},
5345 {96 * 1024, 1},
5346 {128 * 1024, 3},
5347 },
5348 .block_erase = erase_block_82802ab,
5349 },
5350 },
5351 .write = write_82802ab,
5352 .read = read_memmapped,
5353 },
5354
5355 {
5356 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005357 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005358 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005359 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005360 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005361 .total_size = 512,
5362 .page_size = 128 * 1024, /* maximal block size */
5363 .feature_bits = FEATURE_ADDR_SHIFTED,
5364 .tested = TEST_UNTESTED,
5365 .probe = probe_82802ab,
5366 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5367 .block_erasers =
5368 {
5369 {
5370 .eraseblocks = {
5371 {128 * 1024, 3},
5372 {96 * 1024, 1},
5373 {8 * 1024, 2},
5374 {16 * 1024, 1},
5375 },
5376 .block_erase = erase_block_82802ab,
5377 },
5378 },
5379 .write = write_82802ab,
5380 .read = read_memmapped,
5381 },
5382
5383 {
5384 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005385 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005386 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005387 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005388 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005389 .total_size = 512,
5390 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005391 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005392 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005393 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005394 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005395 .block_erasers =
5396 {
5397 {
5398 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005399 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005400 },
5401 },
Sean Nelson28accc22010-03-19 18:47:06 +00005402 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005403 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005405 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005406 },
5407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005408 {
5409 .vendor = "Intel",
5410 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005411 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005412 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005413 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005414 .total_size = 1024,
5415 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005416 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005417 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005418 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005419 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005420 .block_erasers =
5421 {
5422 {
5423 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005424 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005425 },
5426 },
Sean Nelson28accc22010-03-19 18:47:06 +00005427 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005428 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005430 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005431 },
5432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005433 {
5434 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005435 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005436 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005437 .manufacture_id = MACRONIX_ID,
5438 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005439 .total_size = 64,
5440 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005441 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005442 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005443 .tested = TEST_UNTESTED,
5444 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005445 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005446 .block_erasers =
5447 {
5448 {
5449 .eraseblocks = { {4 * 1024, 16} },
5450 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005451 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005452 .eraseblocks = { {64 * 1024, 1} },
5453 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005454 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005455 .eraseblocks = { {64 * 1024, 1} },
5456 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005457 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005458 .eraseblocks = { {64 * 1024, 1} },
5459 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005460 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005461 .eraseblocks = { {64 * 1024, 1} },
5462 .block_erase = spi_block_erase_c7,
5463 },
5464 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005465 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005466 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005467 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005468 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5469 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005470 },
5471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 {
5473 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005474 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005475 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005476 .manufacture_id = MACRONIX_ID,
5477 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005478 .total_size = 128,
5479 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005480 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005481 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005482 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005484 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005485 .block_erasers =
5486 {
5487 {
5488 .eraseblocks = { {4 * 1024, 32} },
5489 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005490 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005491 .eraseblocks = { {64 * 1024, 2} },
5492 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005493 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005494 .eraseblocks = { {128 * 1024, 1} },
5495 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005496 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005497 .eraseblocks = { {128 * 1024, 1} },
5498 .block_erase = spi_block_erase_c7,
5499 },
5500 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005501 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005502 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005503 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005504 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005505 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005506 },
5507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005508 {
5509 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005510 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005511 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005512 .manufacture_id = MACRONIX_ID,
5513 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005514 .total_size = 256,
5515 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005516 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005517 .tested = TEST_UNTESTED,
5518 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005519 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005520 .block_erasers =
5521 {
5522 {
5523 .eraseblocks = { {4 * 1024, 64} },
5524 .block_erase = spi_block_erase_20,
5525 }, {
5526 .eraseblocks = { {64 * 1024, 4} },
5527 .block_erase = spi_block_erase_52,
5528 }, {
5529 .eraseblocks = { {64 * 1024, 4} },
5530 .block_erase = spi_block_erase_d8,
5531 }, {
5532 .eraseblocks = { {256 * 1024, 1} },
5533 .block_erase = spi_block_erase_60,
5534 }, {
5535 .eraseblocks = { {256 * 1024, 1} },
5536 .block_erase = spi_block_erase_c7,
5537 },
5538 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005539 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005540 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005541 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005542 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005543 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005544 },
5545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005546 {
5547 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005548 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005549 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005550 .manufacture_id = MACRONIX_ID,
5551 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005552 .total_size = 512,
5553 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005554 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005555 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005556 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005557 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005558 .block_erasers =
5559 {
5560 {
5561 .eraseblocks = { {4 * 1024, 128} },
5562 .block_erase = spi_block_erase_20,
5563 }, {
5564 .eraseblocks = { {64 * 1024, 8} },
5565 .block_erase = spi_block_erase_52,
5566 }, {
5567 .eraseblocks = { {64 * 1024, 8} },
5568 .block_erase = spi_block_erase_d8,
5569 }, {
5570 .eraseblocks = { {512 * 1024, 1} },
5571 .block_erase = spi_block_erase_60,
5572 }, {
5573 .eraseblocks = { {512 * 1024, 1} },
5574 .block_erase = spi_block_erase_c7,
5575 },
5576 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005577 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005578 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005579 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005580 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005581 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005582 },
5583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 {
5585 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005586 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005587 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005588 .manufacture_id = MACRONIX_ID,
5589 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005590 .total_size = 1024,
5591 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005592 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005593 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005595 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005596 .block_erasers =
5597 {
5598 {
5599 .eraseblocks = { {4 * 1024, 256} },
5600 .block_erase = spi_block_erase_20,
5601 }, {
5602 .eraseblocks = { {64 * 1024, 16} },
5603 .block_erase = spi_block_erase_52,
5604 }, {
5605 .eraseblocks = { {64 * 1024, 16} },
5606 .block_erase = spi_block_erase_d8,
5607 }, {
5608 .eraseblocks = { {1024 * 1024, 1} },
5609 .block_erase = spi_block_erase_60,
5610 }, {
5611 .eraseblocks = { {1024 * 1024, 1} },
5612 .block_erase = spi_block_erase_c7,
5613 },
5614 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005615 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005616 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005617 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005618 .read = spi_chip_read, /* Fast read (0x0B) supported */
5619 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005620 },
5621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005622 {
5623 .vendor = "Macronix",
5624 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005625 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005626 .manufacture_id = MACRONIX_ID,
5627 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005628 .total_size = 2048,
5629 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005630 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005632 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005633 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005634 .block_erasers =
5635 {
5636 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005637 .eraseblocks = { {64 * 1024, 32} },
5638 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005639 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005640 .eraseblocks = { {64 * 1024, 32} },
5641 .block_erase = spi_block_erase_d8,
5642 }, {
5643 .eraseblocks = { {2 * 1024 * 1024, 1} },
5644 .block_erase = spi_block_erase_60,
5645 }, {
5646 .eraseblocks = { {2 * 1024 * 1024, 1} },
5647 .block_erase = spi_block_erase_c7,
5648 },
5649 },
5650 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5651 .unlock = spi_disable_blockprotect,
5652 .write = spi_chip_write_256,
5653 .read = spi_chip_read, /* Fast read (0x0B) supported */
5654 .voltage = {2700, 3600},
5655 },
5656
5657 {
5658 .vendor = "Macronix",
5659 .name = "MX25L1605A/MX25L1606E",
5660 .bustype = BUS_SPI,
5661 .manufacture_id = MACRONIX_ID,
5662 .model_id = MACRONIX_MX25L1605,
5663 .total_size = 2048,
5664 .page_size = 256,
5665 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5666 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5667 .tested = TEST_OK_PREW,
5668 .probe = probe_spi_rdid,
5669 .probe_timing = TIMING_ZERO,
5670 .block_erasers =
5671 {
5672 {
5673 .eraseblocks = { {4 * 1024, 512} },
5674 .block_erase = spi_block_erase_20,
5675 }, {
5676 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005677 .block_erase = spi_block_erase_52,
5678 }, {
5679 .eraseblocks = { {64 * 1024, 32} },
5680 .block_erase = spi_block_erase_d8,
5681 }, {
5682 .eraseblocks = { {2 * 1024 * 1024, 1} },
5683 .block_erase = spi_block_erase_60,
5684 }, {
5685 .eraseblocks = { {2 * 1024 * 1024, 1} },
5686 .block_erase = spi_block_erase_c7,
5687 },
5688 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005689 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005690 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005691 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005692 .read = spi_chip_read, /* Fast read (0x0B) supported */
5693 .voltage = {2700, 3600},
5694 },
5695
5696 {
5697 .vendor = "Macronix",
5698 .name = "MX25L1605D/MX25L1608D",
5699 .bustype = BUS_SPI,
5700 .manufacture_id = MACRONIX_ID,
5701 .model_id = MACRONIX_MX25L1605,
5702 .total_size = 2048,
5703 .page_size = 256,
5704 .feature_bits = FEATURE_WRSR_WREN,
5705 .tested = TEST_OK_PREW,
5706 .probe = probe_spi_rdid,
5707 .probe_timing = TIMING_ZERO,
5708 .block_erasers =
5709 {
5710 {
5711 .eraseblocks = { {4 * 1024, 512} },
5712 .block_erase = spi_block_erase_20,
5713 }, {
5714 .eraseblocks = { {64 * 1024, 32} },
5715 .block_erase = spi_block_erase_d8,
5716 }, {
5717 .eraseblocks = { {2 * 1024 * 1024, 1} },
5718 .block_erase = spi_block_erase_60,
5719 }, {
5720 .eraseblocks = { {2 * 1024 * 1024, 1} },
5721 .block_erase = spi_block_erase_c7,
5722 },
5723 },
5724 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5725 .unlock = spi_disable_blockprotect,
5726 .write = spi_chip_write_256,
5727 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005728 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005729 },
5730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005731 {
5732 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005733 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005734 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005735 .manufacture_id = MACRONIX_ID,
5736 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005737 .total_size = 2048,
5738 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005739 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005741 .tested = TEST_UNTESTED,
5742 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005743 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005744 .block_erasers =
5745 {
5746 {
5747 .eraseblocks = { {4 * 1024, 512} },
5748 .block_erase = spi_block_erase_20,
5749 }, {
5750 .eraseblocks = { {64 * 1024, 32} },
5751 .block_erase = spi_block_erase_d8,
5752 }, {
5753 .eraseblocks = { {2 * 1024 * 1024, 1} },
5754 .block_erase = spi_block_erase_60,
5755 }, {
5756 .eraseblocks = { {2 * 1024 * 1024, 1} },
5757 .block_erase = spi_block_erase_c7,
5758 }
5759 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005760 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005761 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005762 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005763 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005764 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005765 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005766
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005767 {
5768 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005769 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005770 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005771 .manufacture_id = MACRONIX_ID,
5772 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005773 .total_size = 2048,
5774 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005775 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005777 .tested = TEST_UNTESTED,
5778 .probe = probe_spi_rdid,
5779 .probe_timing = TIMING_ZERO,
5780 .block_erasers =
5781 {
5782 {
5783 .eraseblocks = { {4 * 1024, 512} },
5784 .block_erase = spi_block_erase_20,
5785 }, {
5786 .eraseblocks = { {64 * 1024, 32} },
5787 .block_erase = spi_block_erase_d8,
5788 }, {
5789 .eraseblocks = { {2 * 1024 * 1024, 1} },
5790 .block_erase = spi_block_erase_60,
5791 }, {
5792 .eraseblocks = { {2 * 1024 * 1024, 1} },
5793 .block_erase = spi_block_erase_c7,
5794 }
5795 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005796 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005797 .unlock = spi_disable_blockprotect,
5798 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005799 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005800 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005801 },
5802
5803 {
5804 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005805 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005806 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005807 .manufacture_id = MACRONIX_ID,
5808 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005809 .total_size = 4096,
5810 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005811 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005812 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005813 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005814 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005815 .block_erasers =
5816 {
5817 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005818 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005819 .block_erase = spi_block_erase_20,
5820 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005821 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005822 .block_erase = spi_block_erase_d8,
5823 }, {
5824 .eraseblocks = { {4 * 1024 * 1024, 1} },
5825 .block_erase = spi_block_erase_60,
5826 }, {
5827 .eraseblocks = { {4 * 1024 * 1024, 1} },
5828 .block_erase = spi_block_erase_c7,
5829 },
5830 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005831 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005832 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005833 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005834 .read = spi_chip_read, /* Fast read (0x0B) supported */
5835 .voltage = {2700, 3600},
5836 },
5837
5838 {
5839 .vendor = "Macronix",
5840 .name = "MX25L3205D/MX25L3208D",
5841 .bustype = BUS_SPI,
5842 .manufacture_id = MACRONIX_ID,
5843 .model_id = MACRONIX_MX25L3205,
5844 .total_size = 4096,
5845 .page_size = 256,
5846 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5847 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5848 .tested = TEST_OK_PREW,
5849 .probe = probe_spi_rdid,
5850 .probe_timing = TIMING_ZERO,
5851 .block_erasers =
5852 {
5853 {
5854 .eraseblocks = { {4 * 1024, 1024} },
5855 .block_erase = spi_block_erase_20,
5856 }, {
5857 .eraseblocks = { {64 * 1024, 64} },
5858 .block_erase = spi_block_erase_d8,
5859 }, {
5860 .eraseblocks = { {4 * 1024 * 1024, 1} },
5861 .block_erase = spi_block_erase_60,
5862 }, {
5863 .eraseblocks = { {4 * 1024 * 1024, 1} },
5864 .block_erase = spi_block_erase_c7,
5865 },
5866 },
5867 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
5868 .unlock = spi_disable_blockprotect,
5869 .write = spi_chip_write_256,
5870 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
5871 .voltage = {2700, 3600},
5872 },
5873
5874 {
5875 .vendor = "Macronix",
5876 .name = "MX25L3206E",
5877 .bustype = BUS_SPI,
5878 .manufacture_id = MACRONIX_ID,
5879 .model_id = MACRONIX_MX25L3205,
5880 .total_size = 4096,
5881 .page_size = 256,
5882 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5884 .tested = TEST_OK_PREW,
5885 .probe = probe_spi_rdid,
5886 .probe_timing = TIMING_ZERO,
5887 .block_erasers =
5888 {
5889 {
5890 .eraseblocks = { {4 * 1024, 1024} },
5891 .block_erase = spi_block_erase_20,
5892 }, {
5893 .eraseblocks = { {64 * 1024, 64} },
5894 .block_erase = spi_block_erase_d8,
5895 }, {
5896 .eraseblocks = { {64 * 1024, 64} },
5897 .block_erase = spi_block_erase_52,
5898 }, {
5899 .eraseblocks = { {4 * 1024 * 1024, 1} },
5900 .block_erase = spi_block_erase_60,
5901 }, {
5902 .eraseblocks = { {4 * 1024 * 1024, 1} },
5903 .block_erase = spi_block_erase_c7,
5904 },
5905 },
5906 .printlock = spi_prettyprint_status_register_default_bp3,
5907 .unlock = spi_disable_blockprotect,
5908 .write = spi_chip_write_256,
5909 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005910 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005911 },
5912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005913 {
5914 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005915 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005916 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005917 .manufacture_id = MACRONIX_ID,
5918 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005919 .total_size = 4096,
5920 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005921 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
5922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005923 .tested = TEST_UNTESTED,
5924 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005925 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005926 .block_erasers =
5927 {
5928 {
5929 .eraseblocks = { {4 * 1024, 1024} },
5930 .block_erase = spi_block_erase_20,
5931 }, {
5932 .eraseblocks = { {64 * 1024, 64} },
5933 .block_erase = spi_block_erase_d8,
5934 }, {
5935 .eraseblocks = { {4 * 1024 * 1024, 1} },
5936 .block_erase = spi_block_erase_60,
5937 }, {
5938 .eraseblocks = { {4 * 1024 * 1024, 1} },
5939 .block_erase = spi_block_erase_c7,
5940 }
5941 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005942 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005943 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005944 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005945 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005946 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005947 },
5948
5949 {
5950 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005951 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005952 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005953 .manufacture_id = MACRONIX_ID,
5954 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005955 .total_size = 8192,
5956 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005957 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
5958 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00005959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005961 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005962 .block_erasers =
5963 {
5964 {
5965 .eraseblocks = { {64 * 1024, 128} },
5966 .block_erase = spi_block_erase_20,
5967 }, {
5968 .eraseblocks = { {64 * 1024, 128} },
5969 .block_erase = spi_block_erase_d8,
5970 }, {
5971 .eraseblocks = { {8 * 1024 * 1024, 1} },
5972 .block_erase = spi_block_erase_60,
5973 }, {
5974 .eraseblocks = { {8 * 1024 * 1024, 1} },
5975 .block_erase = spi_block_erase_c7,
5976 }
5977 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005978 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005979 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005980 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005981 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005982 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005983 },
5984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005985 {
5986 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005987 .name = "MX25L6406E/MX25L6436E",
5988 .bustype = BUS_SPI,
5989 .manufacture_id = MACRONIX_ID,
5990 .model_id = MACRONIX_MX25L6405,
5991 .total_size = 8192,
5992 .page_size = 256,
5993 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
5994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5995 .tested = TEST_OK_PREW,
5996 .probe = probe_spi_rdid,
5997 .probe_timing = TIMING_ZERO,
5998 .block_erasers =
5999 {
6000 {
6001 .eraseblocks = { {4 * 1024, 2048} },
6002 .block_erase = spi_block_erase_20,
6003 }, {
6004 .eraseblocks = { {64 * 1024, 128} },
6005 .block_erase = spi_block_erase_d8,
6006 }, {
6007 .eraseblocks = { {8 * 1024 * 1024, 1} },
6008 .block_erase = spi_block_erase_60,
6009 }, {
6010 .eraseblocks = { {8 * 1024 * 1024, 1} },
6011 .block_erase = spi_block_erase_c7,
6012 }
6013 },
6014 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6015 .unlock = spi_disable_blockprotect,
6016 .write = spi_chip_write_256,
6017 .read = spi_chip_read,
6018 .voltage = {2700, 3600},
6019 },
6020
6021 {
6022 .vendor = "Macronix",
6023 .name = "MX25L6445E",
6024 .bustype = BUS_SPI,
6025 .manufacture_id = MACRONIX_ID,
6026 .model_id = MACRONIX_MX25L6405,
6027 .total_size = 8192,
6028 .page_size = 256,
6029 /* supports SFDP */
6030 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6032 .tested = TEST_OK_PREW,
6033 .probe = probe_spi_rdid,
6034 .probe_timing = TIMING_ZERO,
6035 .block_erasers =
6036 {
6037 {
6038 .eraseblocks = { {4 * 1024, 2048} },
6039 .block_erase = spi_block_erase_20,
6040 }, {
6041 .eraseblocks = { {32 * 1024, 256} },
6042 .block_erase = spi_block_erase_52,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 128} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {8 * 1024 * 1024, 1} },
6048 .block_erase = spi_block_erase_60,
6049 }, {
6050 .eraseblocks = { {8 * 1024 * 1024, 1} },
6051 .block_erase = spi_block_erase_c7,
6052 }
6053 },
6054 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6055 .unlock = spi_disable_blockprotect,
6056 .write = spi_chip_write_256,
6057 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6058 .voltage = {2700, 3600},
6059 },
6060
6061 {
6062 .vendor = "Macronix",
6063 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006064 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006065 .manufacture_id = MACRONIX_ID,
6066 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006067 .total_size = 16384,
6068 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006069 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006071 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006072 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006073 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006074 .block_erasers =
6075 {
6076 {
6077 .eraseblocks = { {4 * 1024, 4096} },
6078 .block_erase = spi_block_erase_20,
6079 }, {
6080 .eraseblocks = { {64 * 1024, 256} },
6081 .block_erase = spi_block_erase_d8,
6082 }, {
6083 .eraseblocks = { {16 * 1024 * 1024, 1} },
6084 .block_erase = spi_block_erase_60,
6085 }, {
6086 .eraseblocks = { {16 * 1024 * 1024, 1} },
6087 .block_erase = spi_block_erase_c7,
6088 }
6089 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006090 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006091 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006092 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006093 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006094 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006095 },
6096
6097 {
6098 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006099 .name = "MX25U1635E",
6100 .bustype = BUS_SPI,
6101 .manufacture_id = MACRONIX_ID,
6102 .model_id = MACRONIX_MX25U1635E,
6103 .total_size = 2048,
6104 .page_size = 256,
6105 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6106 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6108 .tested = TEST_UNTESTED,
6109 .probe = probe_spi_rdid,
6110 .probe_timing = TIMING_ZERO,
6111 .block_erasers =
6112 {
6113 {
6114 .eraseblocks = { {4 * 1024, 512} },
6115 .block_erase = spi_block_erase_20,
6116 }, {
6117 .eraseblocks = { {32 * 1024, 64} },
6118 .block_erase = spi_block_erase_52,
6119 }, {
6120 .eraseblocks = { {64 * 1024, 32} },
6121 .block_erase = spi_block_erase_d8,
6122 }, {
6123 .eraseblocks = { {2 * 1024 * 1024, 1} },
6124 .block_erase = spi_block_erase_60,
6125 }, {
6126 .eraseblocks = { {2 * 1024 * 1024, 1} },
6127 .block_erase = spi_block_erase_c7,
6128 }
6129 },
6130 /* TODO: security register */
6131 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6132 .unlock = spi_disable_blockprotect,
6133 .write = spi_chip_write_256,
6134 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6135 .voltage = {1650, 2000},
6136 },
6137
6138 {
6139 .vendor = "Macronix",
6140 .name = "MX25U3235E/F",
6141 .bustype = BUS_SPI,
6142 .manufacture_id = MACRONIX_ID,
6143 .model_id = MACRONIX_MX25U3235E,
6144 .total_size = 4096,
6145 .page_size = 256,
6146 /* F model supports SFDP */
6147 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6148 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6149 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6150 .tested = TEST_OK_PREW,
6151 .probe = probe_spi_rdid,
6152 .probe_timing = TIMING_ZERO,
6153 .block_erasers =
6154 {
6155 {
6156 .eraseblocks = { {4 * 1024, 1024} },
6157 .block_erase = spi_block_erase_20,
6158 }, {
6159 .eraseblocks = { {32 * 1024, 128} },
6160 .block_erase = spi_block_erase_52,
6161 }, {
6162 .eraseblocks = { {64 * 1024, 64} },
6163 .block_erase = spi_block_erase_d8,
6164 }, {
6165 .eraseblocks = { {4 * 1024 * 1024, 1} },
6166 .block_erase = spi_block_erase_60,
6167 }, {
6168 .eraseblocks = { {4 * 1024 * 1024, 1} },
6169 .block_erase = spi_block_erase_c7,
6170 }
6171 },
6172 /* TODO: security register */
6173 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6174 .unlock = spi_disable_blockprotect,
6175 .write = spi_chip_write_256,
6176 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6177 .voltage = {1650, 2000},
6178 },
6179
6180 {
6181 .vendor = "Macronix",
6182 .name = "MX25U6435E/F",
6183 .bustype = BUS_SPI,
6184 .manufacture_id = MACRONIX_ID,
6185 .model_id = MACRONIX_MX25U6435E,
6186 .total_size = 8192,
6187 .page_size = 256,
6188 /* F model supports SFDP */
6189 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6190 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6191 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6192 .tested = TEST_UNTESTED,
6193 .probe = probe_spi_rdid,
6194 .probe_timing = TIMING_ZERO,
6195 .block_erasers =
6196 {
6197 {
6198 .eraseblocks = { {4 * 1024, 2048} },
6199 .block_erase = spi_block_erase_20,
6200 }, {
6201 .eraseblocks = { {32 * 1024, 256} },
6202 .block_erase = spi_block_erase_52,
6203 }, {
6204 .eraseblocks = { {64 * 1024, 128} },
6205 .block_erase = spi_block_erase_d8,
6206 }, {
6207 .eraseblocks = { {8 * 1024 * 1024, 1} },
6208 .block_erase = spi_block_erase_60,
6209 }, {
6210 .eraseblocks = { {8 * 1024 * 1024, 1} },
6211 .block_erase = spi_block_erase_c7,
6212 }
6213 },
6214 /* TODO: security register */
6215 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6216 .unlock = spi_disable_blockprotect,
6217 .write = spi_chip_write_256,
6218 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6219 .voltage = {1650, 2000},
6220 },
6221
6222 {
6223 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006224 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006225 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006226 .manufacture_id = MACRONIX_ID,
6227 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006228 .total_size = 128,
6229 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006230 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6231 .tested = TEST_UNTESTED,
6232 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006233 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006234 .block_erasers =
6235 {
6236 {
6237 .eraseblocks = {
6238 {8 * 1024, 1},
6239 {4 * 1024, 2},
6240 {8 * 1024, 2},
6241 {32 * 1024, 1},
6242 {64 * 1024, 1},
6243 },
Sean Nelson35727f72010-01-28 23:55:12 +00006244 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006245 }, {
6246 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006247 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006248 }
6249 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006250 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006252 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006253 },
6254
6255 {
6256 .vendor = "Macronix",
6257 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006258 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006259 .manufacture_id = MACRONIX_ID,
6260 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006261 .total_size = 128,
6262 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006263 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006264 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006265 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006266 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006267 .block_erasers =
6268 {
6269 {
6270 .eraseblocks = {
6271 {64 * 1024, 1},
6272 {32 * 1024, 1},
6273 {8 * 1024, 2},
6274 {4 * 1024, 2},
6275 {8 * 1024, 1},
6276 },
Sean Nelson35727f72010-01-28 23:55:12 +00006277 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006278 }, {
6279 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006280 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006281 }
6282 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006283 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006285 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006286 },
6287
6288 {
6289 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006290 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006291 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006292 .manufacture_id = MACRONIX_ID,
6293 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006294 .total_size = 256,
6295 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006296 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006298 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006299 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006300 .block_erasers =
6301 {
6302 {
6303 .eraseblocks = {
6304 {16 * 1024, 1},
6305 {8 * 1024, 2},
6306 {32 * 1024, 1},
6307 {64 * 1024, 3},
6308 },
Sean Nelson35727f72010-01-28 23:55:12 +00006309 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006310 }, {
6311 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006312 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006313 },
6314 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006315 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006317 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006318 },
6319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006320 {
6321 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006322 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006323 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006324 .manufacture_id = MACRONIX_ID,
6325 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006326 .total_size = 256,
6327 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006328 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006329 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006330 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006331 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006332 .block_erasers =
6333 {
6334 {
6335 .eraseblocks = {
6336 {64 * 1024, 3},
6337 {32 * 1024, 1},
6338 {8 * 1024, 2},
6339 {16 * 1024, 1},
6340 },
Sean Nelson35727f72010-01-28 23:55:12 +00006341 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006342 }, {
6343 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006344 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006345 },
6346 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006347 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006349 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006350 },
6351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 {
6353 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006354 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006355 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006356 .manufacture_id = MACRONIX_ID,
6357 .model_id = MACRONIX_MX29F040,
6358 .total_size = 512,
6359 .page_size = 64 * 1024,
6360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6361 .tested = TEST_UNTESTED,
6362 .probe = probe_jedec,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {64 * 1024, 8} },
6368 .block_erase = erase_sector_jedec,
6369 }, {
6370 .eraseblocks = { {512 * 1024, 1} },
6371 .block_erase = erase_chip_block_jedec,
6372 },
6373 },
6374 .write = write_jedec_1,
6375 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006376 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006377 },
6378
6379 {
6380 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006381 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006382 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006383 .manufacture_id = MACRONIX_ID,
6384 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006385 .total_size = 512,
6386 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006387 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6388 .tested = TEST_UNTESTED,
6389 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006390 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006391 .block_erasers =
6392 {
6393 {
6394 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006395 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006396 }, {
6397 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006398 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006399 },
6400 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006401 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006403 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006404 },
6405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006406 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006407 .vendor = "MoselVitelic",
6408 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006409 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006410 .manufacture_id = SYNCMOS_MVC_ID,
6411 .model_id = MVC_V29C51000B,
6412 .total_size = 64,
6413 .page_size = 512,
6414 .feature_bits = FEATURE_EITHER_RESET,
6415 .tested = TEST_UNTESTED,
6416 .probe = probe_jedec,
6417 .probe_timing = TIMING_ZERO,
6418 .block_erasers =
6419 {
6420 {
6421 .eraseblocks = { {512, 128} },
6422 .block_erase = erase_sector_jedec,
6423 }, {
6424 .eraseblocks = { {64 * 1024, 1} },
6425 .block_erase = erase_chip_block_jedec,
6426 },
6427 },
6428 .write = write_jedec_1,
6429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006430 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006431 },
6432
6433 {
6434 .vendor = "MoselVitelic",
6435 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006436 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006437 .manufacture_id = SYNCMOS_MVC_ID,
6438 .model_id = MVC_V29C51000T,
6439 .total_size = 64,
6440 .page_size = 512,
6441 .feature_bits = FEATURE_EITHER_RESET,
6442 .tested = TEST_UNTESTED,
6443 .probe = probe_jedec,
6444 .probe_timing = TIMING_ZERO,
6445 .block_erasers =
6446 {
6447 {
6448 .eraseblocks = { {512, 128} },
6449 .block_erase = erase_sector_jedec,
6450 }, {
6451 .eraseblocks = { {64 * 1024, 1} },
6452 .block_erase = erase_chip_block_jedec,
6453 },
6454 },
6455 .write = write_jedec_1,
6456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006457 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006458 },
6459
6460 {
6461 .vendor = "MoselVitelic",
6462 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006463 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006464 .manufacture_id = SYNCMOS_MVC_ID,
6465 .model_id = MVC_V29C51400B,
6466 .total_size = 512,
6467 .page_size = 1024,
6468 .feature_bits = FEATURE_EITHER_RESET,
6469 .tested = TEST_UNTESTED,
6470 .probe = probe_jedec,
6471 .probe_timing = TIMING_ZERO,
6472 .block_erasers =
6473 {
6474 {
6475 .eraseblocks = { {1024, 512} },
6476 .block_erase = erase_sector_jedec,
6477 }, {
6478 .eraseblocks = { {512 * 1024, 1} },
6479 .block_erase = erase_chip_block_jedec,
6480 },
6481 },
6482 .write = write_jedec_1,
6483 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006484 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006485 },
6486
6487 {
6488 .vendor = "MoselVitelic",
6489 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006490 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006491 .manufacture_id = SYNCMOS_MVC_ID,
6492 .model_id = MVC_V29C51400T,
6493 .total_size = 512,
6494 .page_size = 1024,
6495 .feature_bits = FEATURE_EITHER_RESET,
6496 .tested = TEST_UNTESTED,
6497 .probe = probe_jedec,
6498 .probe_timing = TIMING_ZERO,
6499 .block_erasers =
6500 {
6501 {
6502 .eraseblocks = { {1024, 512} },
6503 .block_erase = erase_sector_jedec,
6504 }, {
6505 .eraseblocks = { {512 * 1024, 1} },
6506 .block_erase = erase_chip_block_jedec,
6507 },
6508 },
6509 .write = write_jedec_1,
6510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006511 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006512 },
6513
6514 {
6515 .vendor = "MoselVitelic",
6516 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006517 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006518 .manufacture_id = SYNCMOS_MVC_ID,
6519 .model_id = MVC_V29LC51000,
6520 .total_size = 64,
6521 .page_size = 512,
6522 .feature_bits = FEATURE_EITHER_RESET,
6523 .tested = TEST_UNTESTED,
6524 .probe = probe_jedec,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {512, 128} },
6530 .block_erase = erase_sector_jedec,
6531 }, {
6532 .eraseblocks = { {64 * 1024, 1} },
6533 .block_erase = erase_chip_block_jedec,
6534 },
6535 },
6536 .write = write_jedec_1,
6537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006538 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006539 },
6540
6541 {
6542 .vendor = "MoselVitelic",
6543 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006544 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006545 .manufacture_id = SYNCMOS_MVC_ID,
6546 .model_id = MVC_V29LC51001,
6547 .total_size = 128,
6548 .page_size = 512,
6549 .feature_bits = FEATURE_EITHER_RESET,
6550 .tested = TEST_UNTESTED,
6551 .probe = probe_jedec,
6552 .probe_timing = TIMING_ZERO,
6553 .block_erasers =
6554 {
6555 {
6556 .eraseblocks = { {512, 256} },
6557 .block_erase = erase_sector_jedec,
6558 }, {
6559 .eraseblocks = { {128 * 1024, 1} },
6560 .block_erase = erase_chip_block_jedec,
6561 },
6562 },
6563 .write = write_jedec_1,
6564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006565 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006566 },
6567
6568 {
6569 .vendor = "MoselVitelic",
6570 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006571 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006572 .manufacture_id = SYNCMOS_MVC_ID,
6573 .model_id = MVC_V29LC51002,
6574 .total_size = 256,
6575 .page_size = 512,
6576 .feature_bits = FEATURE_EITHER_RESET,
6577 .tested = TEST_UNTESTED,
6578 .probe = probe_jedec,
6579 .probe_timing = TIMING_ZERO,
6580 .block_erasers =
6581 {
6582 {
6583 .eraseblocks = { {512, 512} },
6584 .block_erase = erase_sector_jedec,
6585 }, {
6586 .eraseblocks = { {256 * 1024, 1} },
6587 .block_erase = erase_chip_block_jedec,
6588 },
6589 },
6590 .write = write_jedec_1,
6591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006592 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006593 },
6594
6595 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00006596 .vendor = "Nantronics",
6597 .name = "N25S10",
6598 .bustype = BUS_SPI,
6599 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6600 .model_id = NANTRONICS_N25S10,
6601 .total_size = 128,
6602 .page_size = 256,
6603 .feature_bits = FEATURE_WRSR_WREN,
6604 .tested = TEST_UNTESTED,
6605 .probe = probe_spi_rdid,
6606 .probe_timing = TIMING_ZERO,
6607 .block_erasers =
6608 {
6609 {
6610 .eraseblocks = { {4 * 1024, 32} },
6611 .block_erase = spi_block_erase_20,
6612 }, {
6613 .eraseblocks = { {4 * 1024, 32} },
6614 .block_erase = spi_block_erase_d7,
6615 }, {
6616 .eraseblocks = { {32 * 1024, 4} },
6617 .block_erase = spi_block_erase_52,
6618 }, {
6619 .eraseblocks = { {64 * 1024, 2} },
6620 .block_erase = spi_block_erase_d8,
6621 }, {
6622 .eraseblocks = { {128 * 1024, 1} },
6623 .block_erase = spi_block_erase_60,
6624 }, {
6625 .eraseblocks = { {128 * 1024, 1} },
6626 .block_erase = spi_block_erase_c7,
6627 }
6628 },
6629 .printlock = spi_prettyprint_status_register_default_bp3,
6630 .unlock = spi_disable_blockprotect_bp3_srwd,
6631 .write = spi_chip_write_256,
6632 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6633 .voltage = {2700, 3600},
6634 },
6635
6636 {
6637 .vendor = "Nantronics",
6638 .name = "N25S20",
6639 .bustype = BUS_SPI,
6640 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6641 .model_id = NANTRONICS_N25S20,
6642 .total_size = 256,
6643 .page_size = 256,
6644 .feature_bits = FEATURE_WRSR_WREN,
6645 .tested = TEST_UNTESTED,
6646 .probe = probe_spi_rdid,
6647 .probe_timing = TIMING_ZERO,
6648 .block_erasers =
6649 {
6650 {
6651 .eraseblocks = { {4 * 1024, 64} },
6652 .block_erase = spi_block_erase_20,
6653 }, {
6654 .eraseblocks = { {4 * 1024, 64} },
6655 .block_erase = spi_block_erase_d7,
6656 }, {
6657 .eraseblocks = { {32 * 1024, 8} },
6658 .block_erase = spi_block_erase_52,
6659 }, {
6660 .eraseblocks = { {64 * 1024, 4} },
6661 .block_erase = spi_block_erase_d8,
6662 }, {
6663 .eraseblocks = { {256 * 1024, 1} },
6664 .block_erase = spi_block_erase_60,
6665 }, {
6666 .eraseblocks = { {256 * 1024, 1} },
6667 .block_erase = spi_block_erase_c7,
6668 }
6669 },
6670 .printlock = spi_prettyprint_status_register_default_bp3,
6671 .unlock = spi_disable_blockprotect_bp3_srwd,
6672 .write = spi_chip_write_256,
6673 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6674 .voltage = {2700, 3600},
6675 },
6676
6677 {
6678 .vendor = "Nantronics",
6679 .name = "N25S40",
6680 .bustype = BUS_SPI,
6681 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6682 .model_id = NANTRONICS_N25S40,
6683 .total_size = 512,
6684 .page_size = 256,
6685 .feature_bits = FEATURE_WRSR_WREN,
6686 .tested = TEST_UNTESTED,
6687 .probe = probe_spi_rdid,
6688 .probe_timing = TIMING_ZERO,
6689 .block_erasers =
6690 {
6691 {
6692 .eraseblocks = { {4 * 1024, 128} },
6693 .block_erase = spi_block_erase_20,
6694 }, {
6695 .eraseblocks = { {4 * 1024, 128} },
6696 .block_erase = spi_block_erase_d7,
6697 }, {
6698 .eraseblocks = { {32 * 1024, 16} },
6699 .block_erase = spi_block_erase_52,
6700 }, {
6701 .eraseblocks = { {64 * 1024, 8} },
6702 .block_erase = spi_block_erase_d8,
6703 }, {
6704 .eraseblocks = { {512 * 1024, 1} },
6705 .block_erase = spi_block_erase_60,
6706 }, {
6707 .eraseblocks = { {512 * 1024, 1} },
6708 .block_erase = spi_block_erase_c7,
6709 }
6710 },
6711 .printlock = spi_prettyprint_status_register_default_bp3,
6712 .unlock = spi_disable_blockprotect_bp3_srwd,
6713 .write = spi_chip_write_256,
6714 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6715 .voltage = {2700, 3600},
6716 },
6717
6718 {
6719 .vendor = "Nantronics",
6720 .name = "N25S80",
6721 .bustype = BUS_SPI,
6722 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6723 .model_id = NANTRONICS_N25S80,
6724 .total_size = 1024,
6725 .page_size = 256,
6726 .feature_bits = FEATURE_WRSR_WREN,
6727 .tested = TEST_UNTESTED,
6728 .probe = probe_spi_rdid,
6729 .probe_timing = TIMING_ZERO,
6730 .block_erasers =
6731 {
6732 {
6733 .eraseblocks = { {4 * 1024, 256} },
6734 .block_erase = spi_block_erase_20,
6735 }, {
6736 .eraseblocks = { {32 * 1024, 32} },
6737 .block_erase = spi_block_erase_52,
6738 }, {
6739 .eraseblocks = { {64 * 1024, 16} },
6740 .block_erase = spi_block_erase_d8,
6741 }, {
6742 .eraseblocks = { {1024 * 1024, 1} },
6743 .block_erase = spi_block_erase_60,
6744 }, {
6745 .eraseblocks = { {1024 * 1024, 1} },
6746 .block_erase = spi_block_erase_c7,
6747 }
6748 },
6749 .printlock = spi_prettyprint_status_register_default_bp3,
6750 .unlock = spi_disable_blockprotect_bp3_srwd,
6751 .write = spi_chip_write_256,
6752 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6753 .voltage = {2700, 3600},
6754 },
6755
6756 {
6757 .vendor = "Nantronics",
6758 .name = "N25S16",
6759 .bustype = BUS_SPI,
6760 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6761 .model_id = NANTRONICS_N25S16,
6762 .total_size = 2048,
6763 .page_size = 256,
6764 .feature_bits = FEATURE_WRSR_WREN,
6765 .tested = TEST_UNTESTED,
6766 .probe = probe_spi_rdid,
6767 .probe_timing = TIMING_ZERO,
6768 .block_erasers =
6769 {
6770 {
6771 .eraseblocks = { {4 * 1024, 512} },
6772 .block_erase = spi_block_erase_20,
6773 }, {
6774 .eraseblocks = { {64 * 1024, 32} },
6775 .block_erase = spi_block_erase_d8,
6776 }, {
6777 .eraseblocks = { {2048 * 1024, 1} },
6778 .block_erase = spi_block_erase_60,
6779 }, {
6780 .eraseblocks = { {2048 * 1024, 1} },
6781 .block_erase = spi_block_erase_c7,
6782 }
6783 },
6784 .printlock = spi_prettyprint_status_register_default_bp3,
6785 .unlock = spi_disable_blockprotect_bp3_srwd,
6786 .write = spi_chip_write_256,
6787 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6788 .voltage = {2700, 3600},
6789 },
6790
6791 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006792 .vendor = "Numonyx",
6793 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006794 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006795 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006796 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006797 .total_size = 128,
6798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006799 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006800 .tested = TEST_UNTESTED,
6801 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006802 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006803 .block_erasers =
6804 {
6805 {
6806 .eraseblocks = { {4 * 1024, 32} },
6807 .block_erase = spi_block_erase_20,
6808 }, {
6809 .eraseblocks = { {64 * 1024, 2} },
6810 .block_erase = spi_block_erase_d8,
6811 }, {
6812 .eraseblocks = { {128 * 1024, 1} },
6813 .block_erase = spi_block_erase_c7,
6814 }
6815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006817 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006818 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006820 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006821 },
6822
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006823 {
6824 .vendor = "Numonyx",
6825 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006826 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006827 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006828 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 .total_size = 256,
6830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006831 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006832 .tested = TEST_UNTESTED,
6833 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006834 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006835 .block_erasers =
6836 {
6837 {
6838 .eraseblocks = { {4 * 1024, 64} },
6839 .block_erase = spi_block_erase_20,
6840 }, {
6841 .eraseblocks = { {64 * 1024, 4} },
6842 .block_erase = spi_block_erase_d8,
6843 }, {
6844 .eraseblocks = { {256 * 1024, 1} },
6845 .block_erase = spi_block_erase_c7,
6846 }
6847 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006848 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006849 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006850 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006851 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006852 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006853 },
6854
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006855 {
6856 .vendor = "Numonyx",
6857 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006858 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006859 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006860 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00006861 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006862 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006863 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006864 .tested = TEST_UNTESTED,
6865 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006866 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006867 .block_erasers =
6868 {
6869 {
6870 .eraseblocks = { {4 * 1024, 128} },
6871 .block_erase = spi_block_erase_20,
6872 }, {
6873 .eraseblocks = { {64 * 1024, 8} },
6874 .block_erase = spi_block_erase_d8,
6875 }, {
6876 .eraseblocks = { {512 * 1024, 1} },
6877 .block_erase = spi_block_erase_c7,
6878 }
6879 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006880 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006881 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006882 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006883 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006884 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006885 },
6886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006887 {
6888 .vendor = "Numonyx",
6889 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006890 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006891 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006892 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006893 .total_size = 1024,
6894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006895 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00006896 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006898 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006899 .block_erasers =
6900 {
6901 {
6902 .eraseblocks = { {4 * 1024, 256} },
6903 .block_erase = spi_block_erase_20,
6904 }, {
6905 .eraseblocks = { {64 * 1024, 16} },
6906 .block_erase = spi_block_erase_d8,
6907 }, {
6908 .eraseblocks = { {1024 * 1024, 1} },
6909 .block_erase = spi_block_erase_c7,
6910 }
6911 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006912 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006913 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006914 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006916 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006917 },
6918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006919 {
6920 .vendor = "Numonyx",
6921 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006922 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006923 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006924 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006925 .total_size = 2048,
6926 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006927 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006928 .tested = TEST_UNTESTED,
6929 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006930 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006931 .block_erasers =
6932 {
6933 {
6934 .eraseblocks = { {4 * 1024, 512} },
6935 .block_erase = spi_block_erase_20,
6936 }, {
6937 .eraseblocks = { {64 * 1024, 32} },
6938 .block_erase = spi_block_erase_d8,
6939 }, {
6940 .eraseblocks = { {2 * 1024 * 1024, 1} },
6941 .block_erase = spi_block_erase_c7,
6942 }
6943 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006944 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006945 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006946 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006947 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006948 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006949 },
6950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006951 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006952 .vendor = "Numonyx",
Nikolay Nikolaev01dac172013-06-28 21:29:03 +00006953 .name = "M45PE10",
6954 .bustype = BUS_SPI,
6955 .manufacture_id = ST_ID,
6956 .model_id = ST_M45PE10,
6957 .total_size = 128,
6958 .page_size = 256,
6959 .tested = TEST_UNTESTED,
6960 .probe = probe_spi_rdid,
6961 .probe_timing = TIMING_ZERO,
6962 .block_erasers = {
6963 {
6964 .eraseblocks = { {256, 512} },
6965 .block_erase = spi_block_erase_db,
6966 }, {
6967 .eraseblocks = { {64 * 1024, 2} },
6968 .block_erase = spi_block_erase_d8,
6969 }
6970 },
6971 .printlock = spi_prettyprint_status_register_default_welwip,
6972 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
6973 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
6974 .read = spi_chip_read, /* Fast read (0x0B) supported */
6975 .voltage = {2700, 3600},
6976 },
6977
6978 {
6979 .vendor = "Numonyx",
6980 .name = "M45PE20",
6981 .bustype = BUS_SPI,
6982 .manufacture_id = ST_ID,
6983 .model_id = ST_M45PE20,
6984 .total_size = 256,
6985 .page_size = 256,
6986 .tested = TEST_UNTESTED,
6987 .probe = probe_spi_rdid,
6988 .probe_timing = TIMING_ZERO,
6989 .block_erasers = {
6990 {
6991 .eraseblocks = { {256, 1024} },
6992 .block_erase = spi_block_erase_db,
6993 }, {
6994 .eraseblocks = { {64 * 1024, 4} },
6995 .block_erase = spi_block_erase_d8,
6996 }
6997 },
6998 .printlock = spi_prettyprint_status_register_default_welwip,
6999 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7000 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7001 .read = spi_chip_read, /* Fast read (0x0B) supported */
7002 .voltage = {2700, 3600},
7003 },
7004
7005 {
7006 .vendor = "Numonyx",
7007 .name = "M45PE40",
7008 .bustype = BUS_SPI,
7009 .manufacture_id = ST_ID,
7010 .model_id = ST_M45PE40,
7011 .total_size = 512,
7012 .page_size = 256,
7013 .tested = TEST_UNTESTED,
7014 .probe = probe_spi_rdid,
7015 .probe_timing = TIMING_ZERO,
7016 .block_erasers = {
7017 {
7018 .eraseblocks = { {256, 2048} },
7019 .block_erase = spi_block_erase_db,
7020 }, {
7021 .eraseblocks = { {64 * 1024, 8} },
7022 .block_erase = spi_block_erase_d8,
7023 }
7024 },
7025 .printlock = spi_prettyprint_status_register_default_welwip,
7026 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7027 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7028 .read = spi_chip_read, /* Fast read (0x0B) supported */
7029 .voltage = {2700, 3600},
7030 },
7031
7032 {
7033 .vendor = "Numonyx",
7034 .name = "M45PE80",
7035 .bustype = BUS_SPI,
7036 .manufacture_id = ST_ID,
7037 .model_id = ST_M45PE80,
7038 .total_size = 1024,
7039 .page_size = 256,
7040 .tested = TEST_UNTESTED,
7041 .probe = probe_spi_rdid,
7042 .probe_timing = TIMING_ZERO,
7043 .block_erasers = {
7044 {
7045 .eraseblocks = { {256, 4096} },
7046 .block_erase = spi_block_erase_db,
7047 }, {
7048 .eraseblocks = { {64 * 1024, 16} },
7049 .block_erase = spi_block_erase_d8,
7050 }
7051 },
7052 .printlock = spi_prettyprint_status_register_default_welwip,
7053 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7054 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7055 .read = spi_chip_read, /* Fast read (0x0B) supported */
7056 .voltage = {2700, 3600},
7057 },
7058
7059 {
7060 .vendor = "Numonyx",
7061 .name = "M45PE16",
7062 .bustype = BUS_SPI,
7063 .manufacture_id = ST_ID,
7064 .model_id = ST_M45PE16,
7065 .total_size = 2048,
7066 .page_size = 256,
7067 .tested = TEST_UNTESTED,
7068 .probe = probe_spi_rdid,
7069 .probe_timing = TIMING_ZERO,
7070 .block_erasers = {
7071 {
7072 .eraseblocks = { {256, 8192} },
7073 .block_erase = spi_block_erase_db,
7074 }, {
7075 .eraseblocks = { {64 * 1024, 32} },
7076 .block_erase = spi_block_erase_d8,
7077 }
7078 },
7079 .printlock = spi_prettyprint_status_register_default_welwip,
7080 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7081 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7082 .read = spi_chip_read, /* Fast read (0x0B) supported */
7083 .voltage = {2700, 3600},
7084 },
7085
7086 {
7087 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00007088 .name = "N25Q016",
7089 .bustype = BUS_SPI,
7090 .manufacture_id = ST_ID,
7091 .model_id = ST_N25Q016__1E,
7092 .total_size = 2048,
7093 .page_size = 256,
7094 /* supports SFDP */
7095 /* OTP: 64B total; read 0x4B, write 0x42 */
7096 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7097 .tested = TEST_UNTESTED,
7098 .probe = probe_spi_rdid,
7099 .probe_timing = TIMING_ZERO,
7100 .block_erasers =
7101 {
7102 {
7103 .eraseblocks = { {4 * 1024, 512} },
7104 .block_erase = spi_block_erase_20,
7105 }, {
7106 .eraseblocks = { {32 * 1024, 64} },
7107 .block_erase = spi_block_erase_52,
7108 }, {
7109 .eraseblocks = { {64 * 1024, 32} },
7110 .block_erase = spi_block_erase_d8,
7111 }, {
7112 .eraseblocks = { {2 * 1024 * 1024, 1} },
7113 .block_erase = spi_block_erase_c7,
7114 }
7115 },
7116 .unlock = spi_disable_blockprotect,
7117 .write = spi_chip_write_256,
7118 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7119 .voltage = {1700, 2000},
7120 },
7121
7122 {
7123 .vendor = "Numonyx",
7124 .name = "N25Q032..1E",
7125 .bustype = BUS_SPI,
7126 .manufacture_id = ST_ID,
7127 .model_id = ST_N25Q032__1E,
7128 .total_size = 4096,
7129 .page_size = 256,
7130 /* supports SFDP */
7131 /* OTP: 64B total; read 0x4B, write 0x42 */
7132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7133 .tested = TEST_UNTESTED,
7134 .probe = probe_spi_rdid,
7135 .probe_timing = TIMING_ZERO,
7136 .block_erasers =
7137 {
7138 {
7139 .eraseblocks = { {4 * 1024, 1024} },
7140 .block_erase = spi_block_erase_20,
7141 }, {
7142 .eraseblocks = { {64 * 1024, 64} },
7143 .block_erase = spi_block_erase_d8,
7144 }, {
7145 .eraseblocks = { {4 * 1024 * 1024, 1} },
7146 .block_erase = spi_block_erase_c7,
7147 }
7148 },
7149 .unlock = spi_disable_blockprotect,
7150 .write = spi_chip_write_256,
7151 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7152 .voltage = {1700, 2000},
7153 },
7154
7155 {
7156 .vendor = "Numonyx",
7157 .name = "N25Q032..3E",
7158 .bustype = BUS_SPI,
7159 .manufacture_id = ST_ID,
7160 .model_id = ST_N25Q032__3E,
7161 .total_size = 4096,
7162 .page_size = 256,
7163 /* supports SFDP */
7164 /* OTP: 64B total; read 0x4B, write 0x42 */
7165 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7166 .tested = TEST_UNTESTED,
7167 .probe = probe_spi_rdid,
7168 .probe_timing = TIMING_ZERO,
7169 .block_erasers =
7170 {
7171 {
7172 .eraseblocks = { {4 * 1024, 1024} },
7173 .block_erase = spi_block_erase_20,
7174 }, {
7175 .eraseblocks = { {64 * 1024, 64} },
7176 .block_erase = spi_block_erase_d8,
7177 }, {
7178 .eraseblocks = { {4 * 1024 * 1024, 1} },
7179 .block_erase = spi_block_erase_c7,
7180 }
7181 },
7182 .unlock = spi_disable_blockprotect,
7183 .write = spi_chip_write_256,
7184 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7185 .voltage = {2700, 3600},
7186 },
7187
7188 {
7189 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00007190 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007191 .bustype = BUS_SPI,
7192 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00007193 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007194 .total_size = 8192,
7195 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00007196 /* supports SFDP */
7197 /* OTP: 64B total; read 0x4B, write 0x42 */
7198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7199 .tested = TEST_UNTESTED,
7200 .probe = probe_spi_rdid,
7201 .probe_timing = TIMING_ZERO,
7202 .block_erasers =
7203 {
7204 {
7205 .eraseblocks = { {4 * 1024, 2048 } },
7206 .block_erase = spi_block_erase_20,
7207 }, {
7208 .eraseblocks = { {64 * 1024, 128} },
7209 .block_erase = spi_block_erase_d8,
7210 }, {
7211 .eraseblocks = { {8 * 1024 * 1024, 1} },
7212 .block_erase = spi_block_erase_c7,
7213 }
7214 },
7215 .unlock = spi_disable_blockprotect,
7216 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007217 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007218 .voltage = {1700, 2000},
7219 },
7220
7221 {
7222 .vendor = "Numonyx",
7223 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7224 .bustype = BUS_SPI,
7225 .manufacture_id = ST_ID,
7226 .model_id = ST_N25Q064__3E,
7227 .total_size = 8192,
7228 .page_size = 256,
7229 /* supports SFDP */
7230 /* OTP: 64B total; read 0x4B, write 0x42 */
7231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007232 .tested = TEST_OK_PREW,
7233 .probe = probe_spi_rdid,
7234 .probe_timing = TIMING_ZERO,
7235 .block_erasers =
7236 {
7237 {
7238 .eraseblocks = { {4 * 1024, 2048 } },
7239 .block_erase = spi_block_erase_20,
7240 }, {
7241 .eraseblocks = { {64 * 1024, 128} },
7242 .block_erase = spi_block_erase_d8,
7243 }, {
7244 .eraseblocks = { {8 * 1024 * 1024, 1} },
7245 .block_erase = spi_block_erase_c7,
7246 }
7247 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007248 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007249 .unlock = spi_disable_blockprotect,
7250 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007251 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007252 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007253 },
7254
7255 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007256 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00007257 .name = "Pm25LD256C",
7258 .bustype = BUS_SPI,
7259 .manufacture_id = PMC_ID,
7260 .model_id = PMC_PM25LD256C,
7261 .total_size = 32,
7262 .page_size = 256,
7263 .feature_bits = FEATURE_WRSR_WREN,
7264 .tested = TEST_UNTESTED,
7265 .probe = probe_spi_rdid,
7266 .probe_timing = TIMING_ZERO,
7267 .block_erasers =
7268 {
7269 {
7270 .eraseblocks = { {4 * 1024, 8} },
7271 .block_erase = spi_block_erase_20,
7272 }, {
7273 .eraseblocks = { {4 * 1024, 8} },
7274 .block_erase = spi_block_erase_d7,
7275 }, {
7276 .eraseblocks = { {32 * 1024, 1} },
7277 .block_erase = spi_block_erase_d8,
7278 }, {
7279 .eraseblocks = { {32 * 1024, 1} },
7280 .block_erase = spi_block_erase_60,
7281 }, {
7282 .eraseblocks = { {32 * 1024, 1} },
7283 .block_erase = spi_block_erase_c7,
7284 }
7285 },
7286 .printlock = spi_prettyprint_status_register_default_bp2,
7287 .unlock = spi_disable_blockprotect,
7288 .write = spi_chip_write_256,
7289 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7290 .voltage = {2700, 3600},
7291 },
7292 {
7293 .vendor = "PMC",
7294 .name = "Pm25LD512(C)",
7295 .bustype = BUS_SPI,
7296 .manufacture_id = PMC_ID,
7297 .model_id = PMC_PM25LD512,
7298 .total_size = 64,
7299 .page_size = 256,
7300 .feature_bits = FEATURE_WRSR_WREN,
7301 .tested = TEST_OK_PREW,
7302 .probe = probe_spi_rdid,
7303 .probe_timing = TIMING_ZERO,
7304 .block_erasers =
7305 {
7306 {
7307 .eraseblocks = { {4 * 1024, 16} },
7308 .block_erase = spi_block_erase_20,
7309 }, {
7310 .eraseblocks = { {4 * 1024, 16} },
7311 .block_erase = spi_block_erase_d7,
7312 }, {
7313 .eraseblocks = { {32 * 1024, 2} },
7314 .block_erase = spi_block_erase_d8,
7315 }, {
7316 .eraseblocks = { {64 * 1024, 1} },
7317 .block_erase = spi_block_erase_60,
7318 }, {
7319 .eraseblocks = { {64 * 1024, 1} },
7320 .block_erase = spi_block_erase_c7,
7321 }
7322 },
7323 .printlock = spi_prettyprint_status_register_default_bp2,
7324 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7325 .write = spi_chip_write_256,
7326 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7327 .voltage = {2300, 3600},
7328 },
7329
7330 {
7331 .vendor = "PMC",
7332 .name = "Pm25LD010(C)",
7333 .bustype = BUS_SPI,
7334 .manufacture_id = PMC_ID,
7335 .model_id = PMC_PM25LD010,
7336 .total_size = 128,
7337 .page_size = 256,
7338 .feature_bits = FEATURE_WRSR_WREN,
7339 .tested = TEST_UNTESTED,
7340 .probe = probe_spi_rdid,
7341 .probe_timing = TIMING_ZERO,
7342 .block_erasers =
7343 {
7344 {
7345 .eraseblocks = { {4 * 1024, 32} },
7346 .block_erase = spi_block_erase_20,
7347 }, {
7348 .eraseblocks = { {4 * 1024, 32} },
7349 .block_erase = spi_block_erase_d7,
7350 }, {
7351 .eraseblocks = { {32 * 1024, 4} },
7352 .block_erase = spi_block_erase_d8,
7353 }, {
7354 .eraseblocks = { {128 * 1024, 1} },
7355 .block_erase = spi_block_erase_60,
7356 }, {
7357 .eraseblocks = { {128 * 1024, 1} },
7358 .block_erase = spi_block_erase_c7,
7359 }
7360 },
7361 .printlock = spi_prettyprint_status_register_default_bp2,
7362 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7363 .write = spi_chip_write_256,
7364 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7365 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
7366 },
7367
7368 {
7369 .vendor = "PMC",
7370 .name = "Pm25LD020(C)",
7371 .bustype = BUS_SPI,
7372 .manufacture_id = PMC_ID,
7373 .model_id = PMC_PM25LD020,
7374 .total_size = 256,
7375 .page_size = 256,
7376 .feature_bits = FEATURE_WRSR_WREN,
7377 .tested = TEST_UNTESTED,
7378 .probe = probe_spi_rdid,
7379 .probe_timing = TIMING_ZERO,
7380 .block_erasers =
7381 {
7382 {
7383 .eraseblocks = { {4 * 1024, 64} },
7384 .block_erase = spi_block_erase_20,
7385 }, {
7386 .eraseblocks = { {4 * 1024, 64} },
7387 .block_erase = spi_block_erase_d7,
7388 }, {
7389 .eraseblocks = { {64 * 1024, 4} },
7390 .block_erase = spi_block_erase_d8,
7391 }, {
7392 .eraseblocks = { {256 * 1024, 1} },
7393 .block_erase = spi_block_erase_60,
7394 }, {
7395 .eraseblocks = { {256 * 1024, 1} },
7396 .block_erase = spi_block_erase_c7,
7397 }
7398 },
7399 .printlock = spi_prettyprint_status_register_default_bp2,
7400 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7401 .write = spi_chip_write_256,
7402 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7403 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
7404 },
7405
7406 {
7407 .vendor = "PMC",
7408 .name = "Pm25LD040(C)",
7409 .bustype = BUS_SPI,
7410 .manufacture_id = PMC_ID,
7411 .model_id = PMC_PM25LV040,
7412 .total_size = 512,
7413 .page_size = 256,
7414 .feature_bits = FEATURE_WRSR_WREN,
7415 .tested = TEST_UNTESTED,
7416 .probe = probe_spi_rdid,
7417 .probe_timing = TIMING_ZERO,
7418 .block_erasers =
7419 {
7420 {
7421 .eraseblocks = { {4 * 1024, 128} },
7422 .block_erase = spi_block_erase_20,
7423 }, {
7424 .eraseblocks = { {4 * 1024, 128} },
7425 .block_erase = spi_block_erase_d7,
7426 }, {
7427 .eraseblocks = { {64 * 1024, 8} },
7428 .block_erase = spi_block_erase_d8,
7429 }, {
7430 .eraseblocks = { {512 * 1024, 1} },
7431 .block_erase = spi_block_erase_60,
7432 }, {
7433 .eraseblocks = { {512 * 1024, 1} },
7434 .block_erase = spi_block_erase_c7,
7435 }
7436 },
7437 .printlock = spi_prettyprint_status_register_default_bp2,
7438 .unlock = spi_disable_blockprotect,
7439 .write = spi_chip_write_256,
7440 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7441 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
7442 },
7443
7444{
7445 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007446 .name = "Pm25LV512(A)",
7447 .bustype = BUS_SPI,
7448 .manufacture_id = PMC_ID,
7449 .model_id = PMC_PM25LV512,
7450 .total_size = 64,
7451 .page_size = 256,
7452 .feature_bits = FEATURE_WRSR_WREN,
7453 .tested = TEST_UNTESTED,
7454 .probe = probe_spi_res3,
7455 .probe_timing = TIMING_ZERO,
7456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { {4 * 1024, 16} },
7460 .block_erase = spi_block_erase_d7,
7461 }, {
7462 .eraseblocks = { {32 * 1024, 2} },
7463 .block_erase = spi_block_erase_d8,
7464 }, {
7465 .eraseblocks = { {64 * 1024, 1} },
7466 .block_erase = spi_block_erase_c7,
7467 }
7468 },
7469 .printlock = spi_prettyprint_status_register_default_bp1,
7470 .unlock = spi_disable_blockprotect,
7471 .write = spi_chip_write_256,
7472 .read = spi_chip_read, /* Fast read (0x0B) supported */
7473 .voltage = {2700, 3600},
7474 },
7475
7476 {
7477 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007478 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007480 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007481 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007482 .total_size = 128,
7483 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007484 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007485 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007486 .probe = probe_spi_res3,
7487 .probe_timing = TIMING_ZERO,
7488 .block_erasers =
7489 {
7490 {
7491 .eraseblocks = { {4 * 1024, 32} },
7492 .block_erase = spi_block_erase_d7,
7493 }, {
7494 .eraseblocks = { {32 * 1024, 4} },
7495 .block_erase = spi_block_erase_d8,
7496 }, {
7497 .eraseblocks = { {128 * 1024, 1} },
7498 .block_erase = spi_block_erase_c7,
7499 }
7500 },
7501 .printlock = spi_prettyprint_status_register_default_bp1,
7502 .unlock = spi_disable_blockprotect,
7503 .write = spi_chip_write_256,
7504 .read = spi_chip_read, /* Fast read (0x0B) supported */
7505 .voltage = {2700, 3600},
7506 },
7507
7508 {
7509 .vendor = "PMC",
7510 .name = "Pm25LV010A",
7511 .bustype = BUS_SPI,
7512 .manufacture_id = PMC_ID,
7513 .model_id = PMC_PM25LV010,
7514 .total_size = 128,
7515 .page_size = 256,
7516 .feature_bits = FEATURE_WRSR_WREN,
7517 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007518 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007519 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007520 .block_erasers =
7521 {
7522 {
7523 .eraseblocks = { {4 * 1024, 32} },
7524 .block_erase = spi_block_erase_d7,
7525 }, {
7526 .eraseblocks = { {32 * 1024, 4} },
7527 .block_erase = spi_block_erase_d8,
7528 }, {
7529 .eraseblocks = { {128 * 1024, 1} },
7530 .block_erase = spi_block_erase_c7,
7531 }
7532 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007533 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007534 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007535 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007536 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007537 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007538 },
7539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007540 {
7541 .vendor = "PMC",
7542 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007543 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007544 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007545 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007546 .total_size = 256,
7547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007548 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007549 .tested = TEST_UNTESTED,
7550 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007551 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007552 .block_erasers =
7553 {
7554 {
7555 .eraseblocks = { {4 * 1024, 64} },
7556 .block_erase = spi_block_erase_d7,
7557 }, {
7558 .eraseblocks = { {64 * 1024, 4} },
7559 .block_erase = spi_block_erase_d8,
7560 }, {
7561 .eraseblocks = { {256 * 1024, 1} },
7562 .block_erase = spi_block_erase_c7,
7563 }
7564 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007565 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007566 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007567 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007568 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007569 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007570 },
7571
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007572 {
7573 .vendor = "PMC",
7574 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007575 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007576 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007577 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007578 .total_size = 512,
7579 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007580 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007581 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007582 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007583 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007584 .block_erasers =
7585 {
7586 {
7587 .eraseblocks = { {4 * 1024, 128} },
7588 .block_erase = spi_block_erase_d7,
7589 }, {
7590 .eraseblocks = { {64 * 1024, 8} },
7591 .block_erase = spi_block_erase_d8,
7592 }, {
7593 .eraseblocks = { {512 * 1024, 1} },
7594 .block_erase = spi_block_erase_c7,
7595 }
7596 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007597 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007598 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007599 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007600 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007601 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007602 },
7603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007604 {
7605 .vendor = "PMC",
7606 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007607 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007608 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007609 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007610 .total_size = 1024,
7611 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007612 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007613 .tested = TEST_UNTESTED,
7614 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007615 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007616 .block_erasers =
7617 {
7618 {
7619 .eraseblocks = { {4 * 1024, 256} },
7620 .block_erase = spi_block_erase_d7,
7621 }, {
7622 .eraseblocks = { {4 * 1024, 256} },
7623 .block_erase = spi_block_erase_20,
7624 }, {
7625 .eraseblocks = { {64 * 1024, 16} },
7626 .block_erase = spi_block_erase_d8,
7627 }, {
7628 .eraseblocks = { {1024 * 1024, 1} },
7629 .block_erase = spi_block_erase_60,
7630 }, {
7631 .eraseblocks = { {1024 * 1024, 1} },
7632 .block_erase = spi_block_erase_c7,
7633 }
7634 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007635 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007636 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007637 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007638 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007639 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007640 },
7641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007642 {
7643 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007644 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007645 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007646 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007647 .model_id = PMC_PM25LV016B,
7648 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007649 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007650 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007651 .tested = TEST_UNTESTED,
7652 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007653 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007654 .block_erasers =
7655 {
7656 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007657 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00007658 .block_erase = spi_block_erase_d7,
7659 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007660 .eraseblocks = { {4 * 1024, 512} },
7661 .block_erase = spi_block_erase_20,
7662 }, {
7663 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00007664 .block_erase = spi_block_erase_d8,
7665 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007666 .eraseblocks = { {2 * 1024 * 1024, 1} },
7667 .block_erase = spi_block_erase_60,
7668 }, {
7669 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007670 .block_erase = spi_block_erase_c7,
7671 }
7672 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007673 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007674 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007675 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007676 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007677 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007678 },
7679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007680 {
7681 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007682 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007683 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007684 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007685 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007686 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007687 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007688 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007689 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007690 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007691 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007692 .block_erasers =
7693 {
7694 {
7695 .eraseblocks = {
7696 {128 * 1024, 1},
7697 {96 * 1024, 1},
7698 {8 * 1024, 2},
7699 {16 * 1024, 1},
7700 },
Sean Nelson35727f72010-01-28 23:55:12 +00007701 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007702 }, {
7703 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007704 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007705 },
7706 },
Sean Nelson35727f72010-01-28 23:55:12 +00007707 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007709 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007710 },
7711
7712 {
7713 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007714 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007715 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007716 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007717 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007718 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007719 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007720 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007721 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007722 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007723 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007724 .block_erasers =
7725 {
7726 {
7727 .eraseblocks = {
7728 {16 * 1024, 1},
7729 {8 * 1024, 2},
7730 {96 * 1024, 1},
7731 {128 * 1024, 1},
7732 },
Sean Nelson35727f72010-01-28 23:55:12 +00007733 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007734 }, {
7735 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007736 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007737 },
7738 },
Sean Nelson35727f72010-01-28 23:55:12 +00007739 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007741 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007742 },
7743
7744 {
7745 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007746 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007747 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007748 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007749 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007750 .total_size = 128,
7751 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007752 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007753 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007754 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007755 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00007756 .block_erasers =
7757 {
7758 {
7759 .eraseblocks = { {4 * 1024, 32} },
7760 .block_erase = erase_sector_jedec,
7761 }, {
7762 .eraseblocks = { {64 * 1024, 2} },
7763 .block_erase = erase_block_jedec,
7764 }, {
7765 .eraseblocks = { {128 * 1024, 1} },
7766 .block_erase = erase_chip_block_jedec,
7767 }
7768 },
Sean Nelson35727f72010-01-28 23:55:12 +00007769 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007771 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007772 },
7773
7774 {
7775 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007776 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007777 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007778 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007779 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007780 .total_size = 256,
7781 .page_size = 4096,
7782 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7783 .tested = TEST_UNTESTED,
7784 .probe = probe_jedec,
7785 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7786 .block_erasers =
7787 {
7788 {
7789 .eraseblocks = { {4 * 1024, 64} },
7790 .block_erase = erase_sector_jedec,
7791 }, {
7792 .eraseblocks = { {64 * 1024, 4} },
7793 .block_erase = erase_block_jedec,
7794 }, {
7795 .eraseblocks = { {256 * 1024, 1} },
7796 .block_erase = erase_chip_block_jedec,
7797 }
7798 },
7799 .write = write_jedec_1,
7800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007801 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007802 },
7803
7804 {
7805 .vendor = "PMC",
7806 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007807 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007808 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007809 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007810 .total_size = 512,
7811 .page_size = 4096,
7812 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007813 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007814 .probe = probe_jedec,
7815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7816 .block_erasers =
7817 {
7818 {
7819 .eraseblocks = { {4 * 1024, 128} },
7820 .block_erase = erase_sector_jedec,
7821 }, {
7822 .eraseblocks = { {64 * 1024, 8} },
7823 .block_erase = erase_block_jedec,
7824 }, {
7825 .eraseblocks = { {512 * 1024, 1} },
7826 .block_erase = erase_chip_block_jedec,
7827 }
7828 },
7829 .write = write_jedec_1,
7830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007831 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007832 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00007833
7834 {
7835 .vendor = "PMC",
7836 .name = "Pm39LV512",
7837 .bustype = BUS_PARALLEL,
7838 .manufacture_id = PMC_ID_NOPREFIX,
7839 .model_id = PMC_PM39LV512,
7840 .total_size = 64,
7841 .page_size = 4096,
7842 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7843 .tested = TEST_OK_PREW,
7844 .probe = probe_jedec,
7845 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7846 .block_erasers =
7847 {
7848 {
7849 .eraseblocks = { {4 * 1024, 16} },
7850 .block_erase = erase_sector_jedec,
7851 }, {
7852 .eraseblocks = { {64 * 1024, 1} },
7853 .block_erase = erase_block_jedec,
7854 }, {
7855 .eraseblocks = { {64 * 1024, 1} },
7856 .block_erase = erase_chip_block_jedec,
7857 }
7858 },
7859 .write = write_jedec_1,
7860 .read = read_memmapped,
7861 .voltage = {2700, 3600},
7862 },
7863
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007864 {
7865 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007866 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007867 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007868 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007869 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007870 .total_size = 256,
7871 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007872 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00007873 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007874 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007875 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007876 .block_erasers =
7877 {
7878 {
7879 .eraseblocks = { {4 * 1024, 64} },
7880 .block_erase = erase_sector_jedec,
7881 }, {
7882 .eraseblocks = { {16 * 1024, 16} },
7883 .block_erase = erase_block_jedec,
7884 }, {
7885 .eraseblocks = { {256 * 1024, 1} },
7886 .block_erase = erase_chip_block_jedec,
7887 }
7888 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007889 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007890 .write = write_jedec_1,
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 = "PMC",
7897 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007898 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007900 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007901 .total_size = 512,
7902 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007903 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007904 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007905 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007906 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007907 .block_erasers =
7908 {
7909 {
7910 .eraseblocks = { {4 * 1024, 128} },
7911 .block_erase = erase_sector_jedec,
7912 }, {
7913 .eraseblocks = { {64 * 1024, 8} },
7914 .block_erase = erase_block_jedec,
7915 }, {
7916 .eraseblocks = { {512 * 1024, 1} },
7917 .block_erase = erase_chip_block_jedec,
7918 }
7919 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007920 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007921 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007923 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007924 },
7925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007926 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00007927 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007928 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007929 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007930 .manufacture_id = SANYO_ID,
7931 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007932 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007933 .page_size = 256,
7934 .tested = TEST_UNTESTED,
7935 .probe = probe_spi_rdid,
7936 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007937 .block_erasers =
7938 {
7939 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007940 .eraseblocks = { {256, 1024} },
7941 .block_erase = spi_block_erase_db,
7942 }, {
7943 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00007944 .block_erase = spi_block_erase_d8,
7945 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007946 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007947 .block_erase = spi_block_erase_c7,
7948 }
7949 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007950 .printlock = spi_prettyprint_status_register_default_welwip,
7951 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00007952 .write = spi_chip_write_256,
7953 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007954 .voltage = {2700, 3600},
7955 },
7956
7957 {
7958 .vendor = "Sanyo",
7959 .name = "LE25FW403A",
7960 .bustype = BUS_SPI,
7961 .manufacture_id = SANYO_ID,
7962 .model_id = SANYO_LE25FW403A,
7963 .total_size = 512,
7964 .page_size = 256,
7965 .tested = TEST_UNTESTED,
7966 .probe = probe_spi_rdid,
7967 .probe_timing = TIMING_ZERO,
7968 .block_erasers = {
7969 {
7970 .eraseblocks = { {256, 2 * 1024} },
7971 .block_erase = spi_block_erase_db,
7972 }, {
7973 .eraseblocks = { {64 * 1024, 8} },
7974 .block_erase = spi_block_erase_d8,
7975 }, {
7976 .eraseblocks = { {512 * 1024, 1} },
7977 .block_erase = spi_block_erase_c7,
7978 }
7979 },
7980 .printlock = spi_prettyprint_status_register_default_welwip,
7981 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7982 .write = spi_chip_write_256,
7983 .read = spi_chip_read,
7984 .voltage = {2700, 3600},
7985 },
7986
7987 {
7988 .vendor = "Sanyo",
7989 .name = "LE25FW418A",
7990 .bustype = BUS_SPI,
7991 .manufacture_id = SANYO_ID,
7992 .model_id = SANYO_LE25FW418A,
7993 .total_size = 512,
7994 .page_size = 256,
7995 .feature_bits = FEATURE_WRSR_WREN,
7996 .tested = TEST_UNTESTED,
7997 .probe = probe_spi_res2,
7998 .probe_timing = TIMING_ZERO,
7999 .block_erasers = {
8000 {
8001 .eraseblocks = { {4 * 1024, 128} },
8002 .block_erase = spi_block_erase_d7,
8003 }, {
8004 .eraseblocks = { {64 * 1024, 8} },
8005 .block_erase = spi_block_erase_d8,
8006 }, {
8007 .eraseblocks = { {512 * 1024, 1} },
8008 .block_erase = spi_block_erase_c7,
8009 }
8010 },
8011 .printlock = spi_prettyprint_status_register_default_bp2,
8012 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8013 .write = spi_chip_write_256,
8014 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8015 .voltage = {2700, 3600},
8016 },
8017
8018 {
8019 .vendor = "Sanyo",
8020 .name = "LE25FW806",
8021 .bustype = BUS_SPI,
8022 .manufacture_id = SANYO_ID,
8023 .model_id = SANYO_LE25FW806,
8024 .total_size = 1024,
8025 .page_size = 256,
8026 .feature_bits = FEATURE_WRSR_WREN,
8027 .tested = TEST_UNTESTED,
8028 .probe = probe_spi_res2,
8029 .probe_timing = TIMING_ZERO,
8030 .block_erasers = {
8031 {
8032 .eraseblocks = { {4 * 1024, 256} },
8033 .block_erase = spi_block_erase_20,
8034 }, {
8035 .eraseblocks = { {4 * 1024, 256} },
8036 .block_erase = spi_block_erase_d7,
8037 }, {
8038 .eraseblocks = { {64 * 1024, 16} },
8039 .block_erase = spi_block_erase_d8,
8040 }, {
8041 .eraseblocks = { {1024 * 1024, 1} },
8042 .block_erase = spi_block_erase_c7,
8043 }
8044 },
8045 .printlock = spi_prettyprint_status_register_default_bp2,
8046 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8047 .write = spi_chip_write_256,
8048 .read = spi_chip_read,
8049 .voltage = {2700, 3600},
8050 },
8051
8052 {
8053 .vendor = "Sanyo",
8054 .name = "LE25FW808",
8055 .bustype = BUS_SPI,
8056 .manufacture_id = SANYO_ID,
8057 .model_id = SANYO_LE25FW808,
8058 .total_size = 1024,
8059 .page_size = 256,
8060 .feature_bits = FEATURE_WRSR_WREN,
8061 .tested = TEST_UNTESTED,
8062 .probe = probe_spi_res2,
8063 .probe_timing = TIMING_ZERO,
8064 .block_erasers = {
8065 {
8066 .eraseblocks = { {8 * 1024, 128} },
8067 .block_erase = spi_block_erase_d7,
8068 }, {
8069 .eraseblocks = { {64 * 1024, 16} },
8070 .block_erase = spi_block_erase_d8,
8071 }, {
8072 .eraseblocks = { {1024 * 1024, 1} },
8073 .block_erase = spi_block_erase_c7,
8074 }
8075 },
8076 .printlock = spi_prettyprint_status_register_default_bp2,
8077 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8078 .write = spi_chip_write_256,
8079 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8080 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00008081 },
8082
8083 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008084 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008085 .name = "LH28F008BJT-BTLZ1",
8086 .bustype = BUS_PARALLEL,
8087 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00008088 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008089 .total_size = 1024,
8090 .page_size = 64 * 1024,
8091 .tested = TEST_OK_PREW,
8092 .probe = probe_82802ab,
8093 .probe_timing = TIMING_ZERO,
8094 .block_erasers =
8095 {
8096 {
8097 .eraseblocks = {
8098 {8 * 1024, 8},
8099 {64 * 1024, 15}
8100 },
8101 .block_erase = erase_block_82802ab,
8102 }, {
8103 .eraseblocks = { {1024 * 1024, 1} },
8104 .block_erase = erase_sector_49lfxxxc,
8105 }
8106 },
8107 .unlock = unlock_lh28f008bjt,
8108 .write = write_82802ab,
8109 .read = read_memmapped,
8110 .voltage = {2700, 3600},
8111 },
8112
8113 {
8114 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008115 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008116 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008117 .manufacture_id = SHARP_ID,
8118 .model_id = SHARP_LHF00L04,
8119 .total_size = 1024,
8120 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008121 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008122 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008123 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008124 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008125 .block_erasers =
8126 {
8127 {
8128 .eraseblocks = {
8129 {64 * 1024, 15},
8130 {8 * 1024, 8}
8131 },
Sean Nelson28accc22010-03-19 18:47:06 +00008132 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008133 }, {
8134 .eraseblocks = {
8135 {1024 * 1024, 1}
8136 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008137 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008138 },
8139 },
Sean Nelson28accc22010-03-19 18:47:06 +00008140 .unlock = unlock_82802ab,
8141 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008142 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008143 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008144 },
8145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008146 {
8147 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00008148 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008149 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008150 .manufacture_id = SPANSION_ID,
8151 .model_id = SPANSION_S25FL004A,
8152 .total_size = 512,
8153 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008154 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008155 .tested = TEST_UNTESTED,
8156 .probe = probe_spi_rdid,
8157 .probe_timing = TIMING_ZERO,
8158 .block_erasers =
8159 {
8160 {
8161 .eraseblocks = { {64 * 1024, 8} },
8162 .block_erase = spi_block_erase_d8,
8163 }, {
8164 .eraseblocks = { {512 * 1024, 1} },
8165 .block_erase = spi_block_erase_c7,
8166 }
8167 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008168 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008169 .unlock = spi_disable_blockprotect,
8170 .write = spi_chip_write_256,
8171 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008172 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008173 },
8174
8175 {
8176 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00008177 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008178 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00008179 .manufacture_id = SPANSION_ID,
8180 .model_id = SPANSION_S25FL008A,
8181 .total_size = 1024,
8182 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008183 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008184 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00008185 .probe = probe_spi_rdid,
8186 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00008187 .block_erasers =
8188 {
8189 {
8190 .eraseblocks = { {64 * 1024, 16} },
8191 .block_erase = spi_block_erase_d8,
8192 }, {
8193 .eraseblocks = { {1024 * 1024, 1} },
8194 .block_erase = spi_block_erase_c7,
8195 }
8196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008197 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008198 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00008199 .write = spi_chip_write_256,
8200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008201 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00008202 },
8203
8204 {
8205 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008206 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008207 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008208 .manufacture_id = SPANSION_ID,
8209 .model_id = SPANSION_S25FL016A,
8210 .total_size = 2048,
8211 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008212 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008213 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008214 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008215 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008216 .block_erasers =
8217 {
8218 {
8219 .eraseblocks = { {64 * 1024, 32} },
8220 .block_erase = spi_block_erase_d8,
8221 }, {
8222 .eraseblocks = { {2 * 1024 * 1024, 1} },
8223 .block_erase = spi_block_erase_c7,
8224 }
8225 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008226 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008227 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008228 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008229 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008230 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008231 },
8232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008233 {
Rudy Hostf4e57772010-11-29 00:37:49 +00008234 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008235 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008236 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008237 .manufacture_id = SPANSION_ID,
8238 .model_id = SPANSION_S25FL032A,
8239 .total_size = 4096,
8240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008241 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008242 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00008243 .probe = probe_spi_rdid,
8244 .probe_timing = TIMING_ZERO,
8245 .block_erasers =
8246 {
8247 {
8248 .eraseblocks = { {64 * 1024, 64} },
8249 .block_erase = spi_block_erase_d8,
8250 }, {
8251 .eraseblocks = { {4 * 1024 * 1024, 1} },
8252 .block_erase = spi_block_erase_c7,
8253 }
8254 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008255 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008256 .unlock = spi_disable_blockprotect,
8257 .write = spi_chip_write_256,
8258 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008259 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008260 },
8261
8262 {
8263 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008264 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008265 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008266 .manufacture_id = SPANSION_ID,
8267 .model_id = SPANSION_S25FL064A,
8268 .total_size = 8192,
8269 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008270 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008271 .tested = TEST_OK_PREW,
8272 .probe = probe_spi_rdid,
8273 .probe_timing = TIMING_ZERO,
8274 .block_erasers =
8275 {
8276 {
8277 .eraseblocks = { {64 * 1024, 128} },
8278 .block_erase = spi_block_erase_d8,
8279 }, {
8280 .eraseblocks = { {8 * 1024 * 1024, 1} },
8281 .block_erase = spi_block_erase_c7,
8282 }
8283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008285 .unlock = spi_disable_blockprotect,
8286 .write = spi_chip_write_256,
8287 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008288 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008289 },
8290
8291 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008292 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00008293 .name = "SST25LF040A",
8294 .bustype = BUS_SPI,
8295 .manufacture_id = SST_ID,
8296 .model_id = SST_SST25VF040_REMS,
8297 .total_size = 512,
8298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008299 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00008300 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00008301 .probe = probe_spi_res2,
8302 .probe_timing = TIMING_ZERO,
8303 .block_erasers =
8304 {
8305 {
8306 .eraseblocks = { {4 * 1024, 128} },
8307 .block_erase = spi_block_erase_20,
8308 }, {
8309 .eraseblocks = { {32 * 1024, 16} },
8310 .block_erase = spi_block_erase_52,
8311 }, {
8312 .eraseblocks = { {512 * 1024, 1} },
8313 .block_erase = spi_block_erase_60,
8314 },
8315 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008316 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008317 .unlock = spi_disable_blockprotect,
8318 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8319 .read = spi_chip_read,
8320 .voltage = {3000, 3600},
8321 },
8322
8323 {
8324 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008325 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00008326 .bustype = BUS_SPI,
8327 .manufacture_id = SST_ID,
8328 .model_id = SST_SST25VF080_REMS,
8329 .total_size = 1024,
8330 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008331 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00008332 .tested = TEST_UNTESTED,
8333 .probe = probe_spi_res2,
8334 .probe_timing = TIMING_ZERO,
8335 .block_erasers =
8336 {
8337 {
8338 .eraseblocks = { {4 * 1024, 256} },
8339 .block_erase = spi_block_erase_20,
8340 }, {
8341 .eraseblocks = { {32 * 1024, 32} },
8342 .block_erase = spi_block_erase_52,
8343 }, {
8344 .eraseblocks = { {1024 * 1024, 1} },
8345 .block_erase = spi_block_erase_60,
8346 },
8347 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008348 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008349 .unlock = spi_disable_blockprotect,
8350 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8351 .read = spi_chip_read,
8352 .voltage = {3000, 3600},
8353 },
8354
8355 {
8356 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008357 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008358 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00008359 .manufacture_id = SST_ID,
8360 .model_id = SST_SST25VF010_REMS,
8361 .total_size = 128,
8362 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008363 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00008364 .tested = TEST_OK_PREW,
8365 .probe = probe_spi_rems,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers =
8368 {
8369 {
8370 .eraseblocks = { {4 * 1024, 32} },
8371 .block_erase = spi_block_erase_20,
8372 }, {
8373 .eraseblocks = { {32 * 1024, 4} },
8374 .block_erase = spi_block_erase_52,
8375 }, {
8376 .eraseblocks = { {128 * 1024, 1} },
8377 .block_erase = spi_block_erase_60,
8378 },
8379 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008380 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00008381 .unlock = spi_disable_blockprotect,
8382 .write = spi_chip_write_1,
8383 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008384 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00008385 },
8386
8387 {
8388 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008389 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008390 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008391 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008392 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008393 .total_size = 2048,
8394 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008395 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00008396 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008397 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008398 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008399 .block_erasers =
8400 {
8401 {
8402 .eraseblocks = { {4 * 1024, 512} },
8403 .block_erase = spi_block_erase_20,
8404 }, {
8405 .eraseblocks = { {32 * 1024, 64} },
8406 .block_erase = spi_block_erase_52,
8407 }, {
8408 .eraseblocks = { {64 * 1024, 32} },
8409 .block_erase = spi_block_erase_d8,
8410 }, {
8411 .eraseblocks = { {2 * 1024 * 1024, 1} },
8412 .block_erase = spi_block_erase_60,
8413 }, {
8414 .eraseblocks = { {2 * 1024 * 1024, 1} },
8415 .block_erase = spi_block_erase_c7,
8416 },
8417 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008418 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008419 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008420 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008421 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008422 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008423 },
8424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008425 {
8426 .vendor = "SST",
8427 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008428 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008429 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008430 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008431 .total_size = 4096,
8432 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008433 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00008434 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008435 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008436 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008437 .block_erasers =
8438 {
8439 {
8440 .eraseblocks = { {4 * 1024, 1024} },
8441 .block_erase = spi_block_erase_20,
8442 }, {
8443 .eraseblocks = { {32 * 1024, 128} },
8444 .block_erase = spi_block_erase_52,
8445 }, {
8446 .eraseblocks = { {64 * 1024, 64} },
8447 .block_erase = spi_block_erase_d8,
8448 }, {
8449 .eraseblocks = { {4 * 1024 * 1024, 1} },
8450 .block_erase = spi_block_erase_60,
8451 }, {
8452 .eraseblocks = { {4 * 1024 * 1024, 1} },
8453 .block_erase = spi_block_erase_c7,
8454 },
8455 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008456 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008457 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008458 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008459 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008460 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008461 },
8462
8463 {
8464 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008465 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008466 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008467 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008468 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008469 .total_size = 8192,
8470 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008471 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00008472 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008473 .probe = probe_spi_rdid,
8474 .probe_timing = TIMING_ZERO,
8475 .block_erasers =
8476 {
8477 {
8478 .eraseblocks = { {4 * 1024, 2048} },
8479 .block_erase = spi_block_erase_20,
8480 }, {
8481 .eraseblocks = { {32 * 1024, 256} },
8482 .block_erase = spi_block_erase_52,
8483 }, {
8484 .eraseblocks = { {64 * 1024, 128} },
8485 .block_erase = spi_block_erase_d8,
8486 }, {
8487 .eraseblocks = { {8 * 1024 * 1024, 1} },
8488 .block_erase = spi_block_erase_60,
8489 }, {
8490 .eraseblocks = { {8 * 1024 * 1024, 1} },
8491 .block_erase = spi_block_erase_c7,
8492 },
8493 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008494 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008495 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008496 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008498 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008499 },
8500
8501 {
8502 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008503 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008504 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008505 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008506 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008507 .total_size = 512,
8508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008509 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008510 .tested = TEST_OK_PR,
8511 .probe = probe_spi_rems,
8512 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008513 .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 = { {512 * 1024, 1} },
8523 .block_erase = spi_block_erase_60,
8524 },
8525 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008526 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008527 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008528 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008529 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008530 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008531 },
8532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008533 {
8534 .vendor = "SST",
8535 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008536 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008537 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008538 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 .total_size = 512,
8540 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008541 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008542 .tested = TEST_UNTESTED,
8543 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008544 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008545 .block_erasers =
8546 {
8547 {
8548 .eraseblocks = { {4 * 1024, 128} },
8549 .block_erase = spi_block_erase_20,
8550 }, {
8551 .eraseblocks = { {32 * 1024, 16} },
8552 .block_erase = spi_block_erase_52,
8553 }, {
8554 .eraseblocks = { {64 * 1024, 8} },
8555 .block_erase = spi_block_erase_d8,
8556 }, {
8557 .eraseblocks = { {512 * 1024, 1} },
8558 .block_erase = spi_block_erase_60,
8559 }, {
8560 .eraseblocks = { {512 * 1024, 1} },
8561 .block_erase = spi_block_erase_c7,
8562 },
8563 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008564 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008565 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008566 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00008567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008568 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00008569 },
8570
8571 {
8572 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00008573 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008574 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008575 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008576 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00008577 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008579 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00008580 .tested = TEST_OK_PR,
8581 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008582 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008583 .block_erasers =
8584 {
8585 {
8586 .eraseblocks = { {4 * 1024, 128} },
8587 .block_erase = spi_block_erase_20,
8588 }, {
8589 .eraseblocks = { {32 * 1024, 16} },
8590 .block_erase = spi_block_erase_52,
8591 }, {
8592 .eraseblocks = { {64 * 1024, 8} },
8593 .block_erase = spi_block_erase_d8,
8594 }, {
8595 .eraseblocks = { {512 * 1024, 1} },
8596 .block_erase = spi_block_erase_60,
8597 }, {
8598 .eraseblocks = { {512 * 1024, 1} },
8599 .block_erase = spi_block_erase_c7,
8600 },
8601 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008602 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008603 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008604 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00008605 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008606 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00008607 },
8608
8609 {
8610 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008611 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008612 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008613 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008614 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008615 .total_size = 1024,
8616 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008617 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00008618 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008619 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008620 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008621 .block_erasers =
8622 {
8623 {
8624 .eraseblocks = { {4 * 1024, 256} },
8625 .block_erase = spi_block_erase_20,
8626 }, {
8627 .eraseblocks = { {32 * 1024, 32} },
8628 .block_erase = spi_block_erase_52,
8629 }, {
8630 .eraseblocks = { {64 * 1024, 16} },
8631 .block_erase = spi_block_erase_d8,
8632 }, {
8633 .eraseblocks = { {1024 * 1024, 1} },
8634 .block_erase = spi_block_erase_60,
8635 }, {
8636 .eraseblocks = { {1024 * 1024, 1} },
8637 .block_erase = spi_block_erase_c7,
8638 },
8639 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008640 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008641 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008642 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008643 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008644 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008645 },
8646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008647 {
8648 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00008649 .name = "SST25WF512",
8650 .bustype = BUS_SPI,
8651 .manufacture_id = SST_ID,
8652 .model_id = SST_SST25WF512,
8653 .total_size = 64,
8654 .page_size = 256,
8655 .feature_bits = FEATURE_WRSR_EITHER,
8656 .tested = TEST_UNTESTED,
8657 .probe = probe_spi_rdid,
8658 .probe_timing = TIMING_ZERO,
8659 .block_erasers =
8660 {
8661 {
8662 .eraseblocks = { {4 * 1024, 16} },
8663 .block_erase = spi_block_erase_20,
8664 }, {
8665 .eraseblocks = { {32 * 1024, 2} },
8666 .block_erase = spi_block_erase_52,
8667 }, {
8668 .eraseblocks = { {1024 * 64, 1} },
8669 .block_erase = spi_block_erase_60,
8670 }, {
8671 .eraseblocks = { {1024 * 64, 1} },
8672 .block_erase = spi_block_erase_c7,
8673 },
8674 },
8675 .unlock = spi_disable_blockprotect,
8676 .write = spi_aai_write,
8677 .read = spi_chip_read, /* Fast read (0x0B) supported */
8678 .voltage = {1650, 1950},
8679 },
8680
8681 {
8682 .vendor = "SST",
8683 .name = "SST25WF010",
8684 .bustype = BUS_SPI,
8685 .manufacture_id = SST_ID,
8686 .model_id = SST_SST25WF010,
8687 .total_size = 128,
8688 .page_size = 256,
8689 .feature_bits = FEATURE_WRSR_EITHER,
8690 .tested = TEST_UNTESTED,
8691 .probe = probe_spi_rdid,
8692 .probe_timing = TIMING_ZERO,
8693 .block_erasers =
8694 {
8695 {
8696 .eraseblocks = { {4 * 1024, 32} },
8697 .block_erase = spi_block_erase_20,
8698 }, {
8699 .eraseblocks = { {32 * 1024, 4} },
8700 .block_erase = spi_block_erase_52,
8701 }, {
8702 .eraseblocks = { {1024 * 128, 1} },
8703 .block_erase = spi_block_erase_60,
8704 }, {
8705 .eraseblocks = { {1024 * 128, 1} },
8706 .block_erase = spi_block_erase_c7,
8707 },
8708 },
8709 .unlock = spi_disable_blockprotect,
8710 .write = spi_aai_write,
8711 .read = spi_chip_read, /* Fast read (0x0B) supported */
8712 .voltage = {1650, 1950},
8713 },
8714
8715 {
8716 .vendor = "SST",
8717 .name = "SST25WF020",
8718 .bustype = BUS_SPI,
8719 .manufacture_id = SST_ID,
8720 .model_id = SST_SST25WF020,
8721 .total_size = 256,
8722 .page_size = 256,
8723 .feature_bits = FEATURE_WRSR_EITHER,
8724 .tested = TEST_UNTESTED,
8725 .probe = probe_spi_rdid,
8726 .probe_timing = TIMING_ZERO,
8727 .block_erasers =
8728 {
8729 {
8730 .eraseblocks = { {4 * 1024, 64} },
8731 .block_erase = spi_block_erase_20,
8732 }, {
8733 .eraseblocks = { {32 * 1024, 8} },
8734 .block_erase = spi_block_erase_52,
8735 }, {
8736 .eraseblocks = { {64 * 1024, 4} },
8737 .block_erase = spi_block_erase_d8,
8738 }, {
8739 .eraseblocks = { {1024 * 256, 1} },
8740 .block_erase = spi_block_erase_60,
8741 }, {
8742 .eraseblocks = { {1024 * 256, 1} },
8743 .block_erase = spi_block_erase_c7,
8744 },
8745 },
8746 .unlock = spi_disable_blockprotect,
8747 .write = spi_aai_write,
8748 .read = spi_chip_read, /* Fast read (0x0B) supported */
8749 .voltage = {1650, 1950},
8750 },
8751
8752 {
8753 .vendor = "SST",
8754 .name = "SST25WF040",
8755 .bustype = BUS_SPI,
8756 .manufacture_id = SST_ID,
8757 .model_id = SST_SST25WF040,
8758 .total_size = 512,
8759 .page_size = 256,
8760 .feature_bits = FEATURE_WRSR_EITHER,
8761 .tested = TEST_UNTESTED,
8762 .probe = probe_spi_rdid,
8763 .probe_timing = TIMING_ZERO,
8764 .block_erasers =
8765 {
8766 {
8767 .eraseblocks = { {4 * 1024, 128} },
8768 .block_erase = spi_block_erase_20,
8769 }, {
8770 .eraseblocks = { {32 * 1024, 16} },
8771 .block_erase = spi_block_erase_52,
8772 }, {
8773 .eraseblocks = { {64 * 1024, 8} },
8774 .block_erase = spi_block_erase_d8,
8775 }, {
8776 .eraseblocks = { {1024 * 512, 1} },
8777 .block_erase = spi_block_erase_60,
8778 }, {
8779 .eraseblocks = { {1024 * 512, 1} },
8780 .block_erase = spi_block_erase_c7,
8781 },
8782 },
8783 .unlock = spi_disable_blockprotect,
8784 .write = spi_aai_write,
8785 .read = spi_chip_read, /* Fast read (0x0B) supported */
8786 .voltage = {1650, 1950},
8787 },
8788
8789 {
8790 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008791 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008792 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008793 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008794 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008795 .total_size = 512,
8796 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008797 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008798 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008799 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008800 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008801 .block_erasers =
8802 {
8803 {
8804 .eraseblocks = { {128, 4096} },
8805 .block_erase = erase_sector_28sf040,
8806 }, {
8807 .eraseblocks = { {512 * 1024, 1} },
8808 .block_erase = erase_chip_28sf040,
8809 }
8810 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008811 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008813 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008814 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008815 },
8816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008817 {
8818 .vendor = "SST",
8819 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008820 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008821 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008822 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008823 .total_size = 128,
8824 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008825 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008826 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008827 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008828 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008829 .block_erasers =
8830 {
8831 {
8832 .eraseblocks = { {128 * 1024, 1} },
8833 .block_erase = erase_chip_block_jedec,
8834 }
8835 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008837 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008838 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008839 },
8840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008841 {
8842 .vendor = "SST",
8843 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008844 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008845 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008846 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008847 .total_size = 128,
8848 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008849 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .tested = TEST_UNTESTED,
8851 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008852 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008853 .block_erasers =
8854 {
8855 {
8856 .eraseblocks = { {128 * 1024, 1} },
8857 .block_erase = erase_chip_block_jedec,
8858 }
8859 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008860 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008862 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008863 },
8864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008865 {
8866 .vendor = "SST",
8867 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008868 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008869 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008870 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008871 .total_size = 256,
8872 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008873 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008874 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008875 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008876 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008877 .block_erasers =
8878 {
8879 {
8880 .eraseblocks = { {256 * 1024, 1} },
8881 .block_erase = erase_chip_block_jedec,
8882 }
8883 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008884 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008886 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008887 },
8888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008889 {
8890 .vendor = "SST",
8891 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008892 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008893 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008894 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008895 .total_size = 256,
8896 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008897 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008898 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008899 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008900 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008901 .block_erasers =
8902 {
8903 {
8904 .eraseblocks = { {256 * 1024, 1} },
8905 .block_erase = erase_chip_block_jedec,
8906 }
8907 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008908 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008909 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008910 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008911 },
8912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008913 {
8914 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00008915 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008916 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008917 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008918 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008919 .total_size = 64,
8920 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008921 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00008922 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008923 .probe = probe_jedec,
8924 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00008925 .block_erasers =
8926 {
8927 {
8928 .eraseblocks = { {4 * 1024, 16} },
8929 .block_erase = erase_sector_jedec,
8930 }, {
8931 .eraseblocks = { {64 * 1024, 1} },
8932 .block_erase = erase_chip_block_jedec,
8933 }
8934 },
Sean Nelson35727f72010-01-28 23:55:12 +00008935 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008936 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008937 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00008938 },
8939
8940 {
8941 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008942 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008943 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008944 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008945 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008946 .total_size = 128,
8947 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008948 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008950 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008951 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008952 .block_erasers =
8953 {
8954 {
8955 .eraseblocks = { {4 * 1024, 32} },
8956 .block_erase = erase_sector_jedec,
8957 }, {
8958 .eraseblocks = { {128 * 1024, 1} },
8959 .block_erase = erase_chip_block_jedec,
8960 }
8961 },
Sean Nelson35727f72010-01-28 23:55:12 +00008962 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008963 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008964 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008965 },
8966
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 {
8968 .vendor = "SST",
8969 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008970 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008971 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008972 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008973 .total_size = 256,
8974 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008975 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008976 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008977 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008978 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008979 .block_erasers =
8980 {
8981 {
8982 .eraseblocks = { {4 * 1024, 64} },
8983 .block_erase = erase_sector_jedec,
8984 }, {
8985 .eraseblocks = { {256 * 1024, 1} },
8986 .block_erase = erase_chip_block_jedec,
8987 }
8988 },
Sean Nelson35727f72010-01-28 23:55:12 +00008989 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008990 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008991 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008992 },
8993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008994 {
8995 .vendor = "SST",
8996 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008997 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008998 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008999 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009000 .total_size = 512,
9001 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009002 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009003 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009004 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009005 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009006 .block_erasers =
9007 {
9008 {
9009 .eraseblocks = { {4 * 1024, 128} },
9010 .block_erase = erase_sector_jedec,
9011 }, {
9012 .eraseblocks = { {512 * 1024, 1} },
9013 .block_erase = erase_chip_block_jedec,
9014 }
9015 },
Sean Nelson35727f72010-01-28 23:55:12 +00009016 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009018 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009019 },
9020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009021 {
9022 .vendor = "SST",
9023 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009024 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009025 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009026 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009027 .total_size = 64,
9028 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009029 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00009030 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009031 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009032 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009033 .block_erasers =
9034 {
9035 {
9036 .eraseblocks = { {4 * 1024, 16} },
9037 .block_erase = erase_sector_jedec,
9038 }, {
9039 .eraseblocks = { {64 * 1024, 1} },
9040 .block_erase = erase_chip_block_jedec,
9041 }
9042 },
Sean Nelson35727f72010-01-28 23:55:12 +00009043 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009044 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009045 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009046 },
9047
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009048 {
9049 .vendor = "SST",
9050 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009051 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009052 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009053 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009054 .total_size = 128,
9055 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009056 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009057 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009058 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009059 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009060 .block_erasers =
9061 {
9062 {
9063 .eraseblocks = { {4 * 1024, 32} },
9064 .block_erase = erase_sector_jedec,
9065 }, {
9066 .eraseblocks = { {128 * 1024, 1} },
9067 .block_erase = erase_chip_block_jedec,
9068 }
9069 },
Sean Nelson35727f72010-01-28 23:55:12 +00009070 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009072 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009073 },
9074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009075 {
9076 .vendor = "SST",
9077 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009078 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009079 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009080 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009081 .total_size = 256,
9082 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009083 .feature_bits = FEATURE_EITHER_RESET,
9084 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009085 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009086 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009087 .block_erasers =
9088 {
9089 {
9090 .eraseblocks = { {4 * 1024, 64} },
9091 .block_erase = erase_sector_jedec,
9092 }, {
9093 .eraseblocks = { {256 * 1024, 1} },
9094 .block_erase = erase_chip_block_jedec,
9095 }
9096 },
Sean Nelson35727f72010-01-28 23:55:12 +00009097 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009099 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009100 },
9101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009102 {
9103 .vendor = "SST",
9104 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009105 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009106 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009107 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009108 .total_size = 512,
9109 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009110 .feature_bits = FEATURE_EITHER_RESET,
9111 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009112 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009113 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009114 .block_erasers =
9115 {
9116 {
9117 .eraseblocks = { {4 * 1024, 128} },
9118 .block_erase = erase_sector_jedec,
9119 }, {
9120 .eraseblocks = { {512 * 1024, 1} },
9121 .block_erase = erase_chip_block_jedec,
9122 }
9123 },
Sean Nelson35727f72010-01-28 23:55:12 +00009124 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009126 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00009127 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009129 {
9130 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00009131 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009132 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009133 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009134 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00009135 .total_size = 1024,
9136 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009137 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00009138 .tested = TEST_UNTESTED,
9139 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009140 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009141 .block_erasers =
9142 {
9143 {
9144 .eraseblocks = { {4 * 1024, 256} },
9145 .block_erase = erase_sector_jedec,
9146 }, {
9147 .eraseblocks = { {64 * 1024, 16} },
9148 .block_erase = erase_block_jedec,
9149 }, {
9150 .eraseblocks = { {1024 * 1024, 1} },
9151 .block_erase = erase_chip_block_jedec,
9152 }
9153 },
Sean Nelson35727f72010-01-28 23:55:12 +00009154 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009155 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009156 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00009157 },
9158
9159 {
9160 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009161 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009162 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009163 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009164 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009165 .total_size = 256,
9166 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009167 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009168 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009169 .probe = probe_jedec,
9170 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009171 .block_erasers =
9172 {
9173 {
9174 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009175 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009176 }, {
9177 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009178 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009179 }, {
9180 .eraseblocks = { {256 * 1024, 1} },
9181 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9182 }
9183 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009184 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009185 .unlock = unlock_sst_fwhub,
9186 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009188 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009189 },
9190
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009191 {
9192 .vendor = "SST",
9193 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009194 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009196 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009197 .total_size = 384,
9198 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009199 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009200 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009201 .probe = probe_jedec,
9202 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009203 .block_erasers =
9204 {
9205 {
9206 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009207 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009208 }, {
9209 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009210 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009211 }, {
9212 .eraseblocks = { {384 * 1024, 1} },
9213 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9214 }
9215 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009216 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009217 .unlock = unlock_sst_fwhub,
9218 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009220 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009221 },
9222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009223 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009224 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
9225 * and is only honored for 64k block erase, but not 4k sector erase.
9226 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009227 .vendor = "SST",
9228 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009229 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009230 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009231 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009232 .total_size = 512,
9233 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009234 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009235 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009236 .probe = probe_jedec,
9237 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009238 .block_erasers =
9239 {
9240 {
9241 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009242 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009243 }, {
9244 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009245 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009246 }, {
9247 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009248 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009249 },
9250 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009251 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009252 .unlock = unlock_sst_fwhub,
9253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009255 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009256 },
9257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009258 {
9259 .vendor = "SST",
9260 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009261 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009263 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009264 .total_size = 512,
9265 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009266 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009267 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009268 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009269 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009270 .block_erasers =
9271 {
9272 {
9273 .eraseblocks = { {4 * 1024, 128} },
9274 .block_erase = erase_sector_49lfxxxc,
9275 }, {
9276 .eraseblocks = {
9277 {64 * 1024, 7},
9278 {32 * 1024, 1},
9279 {8 * 1024, 2},
9280 {16 * 1024, 1},
9281 },
Sean Nelson69e58112010-03-23 17:10:28 +00009282 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009283 }
9284 },
Sean Nelson69e58112010-03-23 17:10:28 +00009285 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009286 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009288 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009289 },
9290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009291 {
9292 .vendor = "SST",
9293 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009294 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009295 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009296 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009297 .total_size = 1024,
9298 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009299 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009300 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009301 .probe = probe_jedec,
9302 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009303 .block_erasers =
9304 {
9305 {
9306 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009307 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009308 }, {
9309 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009310 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009311 }, {
9312 .eraseblocks = { {1024 * 1024, 1} },
9313 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9314 }
9315 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009316 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009317 .unlock = unlock_sst_fwhub,
9318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009321 },
9322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009323 {
9324 .vendor = "SST",
9325 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009326 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009327 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009328 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009329 .total_size = 1024,
9330 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009331 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009332 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009333 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009334 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009335 .block_erasers =
9336 {
9337 {
9338 .eraseblocks = { {4 * 1024, 256} },
9339 .block_erase = erase_sector_49lfxxxc,
9340 }, {
9341 .eraseblocks = {
9342 {64 * 1024, 15},
9343 {32 * 1024, 1},
9344 {8 * 1024, 2},
9345 {16 * 1024, 1},
9346 },
Sean Nelson69e58112010-03-23 17:10:28 +00009347 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009348 }
9349 },
Sean Nelson69e58112010-03-23 17:10:28 +00009350 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009351 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009352 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009353 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009354 },
9355
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009356 {
9357 .vendor = "SST",
9358 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009359 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009360 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009361 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009362 .total_size = 2048,
9363 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009364 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00009365 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009366 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009367 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009368 .block_erasers =
9369 {
9370 {
9371 .eraseblocks = { {4 * 1024, 512} },
9372 .block_erase = erase_sector_49lfxxxc,
9373 }, {
9374 .eraseblocks = {
9375 {64 * 1024, 31},
9376 {32 * 1024, 1},
9377 {8 * 1024, 2},
9378 {16 * 1024, 1},
9379 },
Sean Nelson69e58112010-03-23 17:10:28 +00009380 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009381 }
9382 },
Sean Nelson69e58112010-03-23 17:10:28 +00009383 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009384 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009385 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009386 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009387 },
9388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009389 {
9390 .vendor = "SST",
9391 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009392 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009393 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009394 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009395 .total_size = 256,
9396 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009397 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00009398 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009399 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009400 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009401 .block_erasers =
9402 {
9403 {
9404 .eraseblocks = { {4 * 1024, 64} },
9405 .block_erase = erase_sector_jedec,
9406 }, {
9407 .eraseblocks = { {16 * 1024, 16} },
9408 .block_erase = erase_block_jedec,
9409 }, {
9410 .eraseblocks = { {256 * 1024, 1} },
9411 .block_erase = NULL,
9412 }
9413 },
Sean Nelson35727f72010-01-28 23:55:12 +00009414 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009416 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00009417 },
9418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009419 {
9420 .vendor = "SST",
9421 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009422 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009424 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009425 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00009426 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009427 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009428 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009429 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009430 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009431 .block_erasers =
9432 {
9433 {
9434 .eraseblocks = { {4 * 1024, 64} },
9435 .block_erase = erase_sector_jedec,
9436 }, {
9437 .eraseblocks = { {16 * 1024, 16} },
9438 .block_erase = erase_block_jedec,
9439 }, {
9440 .eraseblocks = { {256 * 1024, 1} },
9441 .block_erase = NULL,
9442 }
9443 },
Sean Nelson35727f72010-01-28 23:55:12 +00009444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009446 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009447 },
9448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009449 {
9450 .vendor = "SST",
9451 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009452 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009453 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009454 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009455 .total_size = 512,
9456 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009457 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009458 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009459 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009460 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009461 .block_erasers =
9462 {
9463 {
9464 .eraseblocks = { {4 * 1024, 128} },
9465 .block_erase = erase_sector_jedec,
9466 }, {
9467 .eraseblocks = { {64 * 1024, 8} },
9468 .block_erase = erase_block_jedec,
9469 }, {
9470 .eraseblocks = { {512 * 1024, 1} },
9471 .block_erase = NULL,
9472 }
9473 },
Sean Nelson35727f72010-01-28 23:55:12 +00009474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009476 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009477 },
9478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009479 {
9480 .vendor = "SST",
9481 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009482 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009483 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009484 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009485 .total_size = 512,
9486 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009487 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009488 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009489 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009490 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009491 .block_erasers =
9492 {
9493 {
9494 .eraseblocks = { {4 * 1024, 128} },
9495 .block_erase = erase_sector_jedec,
9496 }, {
9497 .eraseblocks = { {64 * 1024, 8} },
9498 .block_erase = erase_block_jedec,
9499 }, {
9500 .eraseblocks = { {512 * 1024, 1} },
9501 .block_erase = NULL,
9502 }
9503 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009504 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00009505 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009507 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009508 },
9509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009510 {
9511 .vendor = "SST",
9512 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009513 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009514 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009515 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009516 .total_size = 1024,
9517 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009518 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00009519 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009520 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00009521 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009522 .block_erasers =
9523 {
9524 {
9525 .eraseblocks = { {4 * 1024, 256} },
9526 .block_erase = erase_sector_jedec,
9527 }, {
9528 .eraseblocks = { {64 * 1024, 16} },
9529 .block_erase = erase_block_jedec,
9530 }, {
9531 .eraseblocks = { {1024 * 1024, 1} },
9532 .block_erase = NULL,
9533 }
9534 },
Sean Nelson35727f72010-01-28 23:55:12 +00009535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009537 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009538 },
9539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009540 {
9541 .vendor = "SST",
9542 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009543 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009544 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009545 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009546 .total_size = 2048,
9547 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009548 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009549 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009550 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009551 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009552 .block_erasers =
9553 {
9554 {
9555 .eraseblocks = { {4 * 1024, 512} },
9556 .block_erase = erase_sector_49lfxxxc,
9557 }, {
9558 .eraseblocks = {
9559 {64 * 1024, 31},
9560 {32 * 1024, 1},
9561 {8 * 1024, 2},
9562 {16 * 1024, 1},
9563 },
Sean Nelson69e58112010-03-23 17:10:28 +00009564 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009565 }
9566 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009567 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009568 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009569 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009570 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009571 },
9572
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009573 {
9574 .vendor = "ST",
9575 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009576 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009577 .manufacture_id = ST_ID,
9578 .model_id = ST_M25P05A,
9579 .total_size = 64,
9580 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009581 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009582 .tested = TEST_UNTESTED,
9583 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009584 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009585 .block_erasers =
9586 {
9587 {
9588 .eraseblocks = { {32 * 1024, 2} },
9589 .block_erase = spi_block_erase_d8,
9590 }, {
9591 .eraseblocks = { {64 * 1024, 1} },
9592 .block_erase = spi_block_erase_c7,
9593 }
9594 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009595 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009596 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009597 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009598 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009600 },
9601
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009602 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9603 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009604 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009605 * only is successful if RDID does not work.
9606 */
9607 {
9608 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009609 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009610 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009611 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009612 .model_id = ST_M25P05_RES,
9613 .total_size = 64,
9614 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009615 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009616 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009617 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009618 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009619 .block_erasers =
9620 {
9621 {
9622 .eraseblocks = { {32 * 1024, 2} },
9623 .block_erase = spi_block_erase_d8,
9624 }, {
9625 .eraseblocks = { {64 * 1024, 1} },
9626 .block_erase = spi_block_erase_c7,
9627 }
9628 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009629 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009630 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009631 .write = spi_chip_write_1, /* 128 */
9632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009633 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009634 },
9635
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009636 {
9637 .vendor = "ST",
9638 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009639 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009640 .manufacture_id = ST_ID,
9641 .model_id = ST_M25P10A,
9642 .total_size = 128,
9643 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009644 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009645 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009646 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009647 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009648 .block_erasers =
9649 {
9650 {
9651 .eraseblocks = { {32 * 1024, 4} },
9652 .block_erase = spi_block_erase_d8,
9653 }, {
9654 .eraseblocks = { {128 * 1024, 1} },
9655 .block_erase = spi_block_erase_c7,
9656 }
9657 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009658 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009660 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009661 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009662 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009663 },
9664
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009665 /* The ST M25P10 has the same problem as the M25P05. */
9666 {
9667 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009668 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009669 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009670 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009671 .model_id = ST_M25P10_RES,
9672 .total_size = 128,
9673 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009674 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009675 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009676 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009677 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009678 .block_erasers =
9679 {
9680 {
9681 .eraseblocks = { {32 * 1024, 4} },
9682 .block_erase = spi_block_erase_d8,
9683 }, {
9684 .eraseblocks = { {128 * 1024, 1} },
9685 .block_erase = spi_block_erase_c7,
9686 }
9687 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009688 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009689 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009690 .write = spi_chip_write_1, /* 128 */
9691 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009692 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009693 },
9694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009695 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009696 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009697 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009698 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009699 .manufacture_id = ST_ID,
9700 .model_id = ST_M25P20,
9701 .total_size = 256,
9702 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009703 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009704 .tested = TEST_UNTESTED,
9705 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009706 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009707 .block_erasers =
9708 {
9709 {
9710 .eraseblocks = { {64 * 1024, 4} },
9711 .block_erase = spi_block_erase_d8,
9712 }, {
9713 .eraseblocks = { {256 * 1024, 1} },
9714 .block_erase = spi_block_erase_c7,
9715 }
9716 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009717 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009719 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009720 .read = spi_chip_read, /* Fast read (0x0B) supported */
9721 .voltage = {2700, 3600},
9722 },
9723
9724 {
9725 .vendor = "ST",
9726 .name = "M25P20-old",
9727 .bustype = BUS_SPI,
9728 .manufacture_id = 0, /* Not used. */
9729 .model_id = ST_M25P20_RES,
9730 .total_size = 256,
9731 .page_size = 256,
9732 .feature_bits = FEATURE_WRSR_WREN,
9733 .tested = TEST_OK_PREW,
9734 .probe = probe_spi_res1,
9735 .probe_timing = TIMING_ZERO,
9736 .block_erasers =
9737 {
9738 {
9739 .eraseblocks = { {64 * 1024, 4} },
9740 .block_erase = spi_block_erase_d8,
9741 }, {
9742 .eraseblocks = { {256 * 1024, 1} },
9743 .block_erase = spi_block_erase_c7,
9744 }
9745 },
9746 .printlock = spi_prettyprint_status_register_default_bp1,
9747 .unlock = spi_disable_blockprotect,
9748 .write = spi_chip_write_256,
9749 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009750 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009751 },
9752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009753 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009754 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009755 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009756 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009757 .manufacture_id = ST_ID,
9758 .model_id = ST_M25P40,
9759 .total_size = 512,
9760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009761 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009762 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009763 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009764 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009765 .block_erasers =
9766 {
9767 {
9768 .eraseblocks = { {64 * 1024, 8} },
9769 .block_erase = spi_block_erase_d8,
9770 }, {
9771 .eraseblocks = { {512 * 1024, 1} },
9772 .block_erase = spi_block_erase_c7,
9773 }
9774 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009775 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009776 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009777 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009778 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009779 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009780 },
9781
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009782 {
9783 .vendor = "ST",
9784 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009785 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009786 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009787 .model_id = ST_M25P40_RES,
9788 .total_size = 512,
9789 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009790 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009791 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009792 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009793 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009794 .block_erasers =
9795 {
9796 {
9797 .eraseblocks = { {64 * 1024, 8} },
9798 .block_erase = spi_block_erase_d8,
9799 }, {
9800 .eraseblocks = { {512 * 1024, 1} },
9801 .block_erase = spi_block_erase_c7,
9802 }
9803 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009804 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009805 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009806 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009807 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00009808 },
9809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009810 {
9811 .vendor = "ST",
9812 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009813 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009814 .manufacture_id = ST_ID,
9815 .model_id = ST_M25P80,
9816 .total_size = 1024,
9817 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009818 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009819 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009820 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009821 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009822 .block_erasers =
9823 {
9824 {
9825 .eraseblocks = { {64 * 1024, 16} },
9826 .block_erase = spi_block_erase_d8,
9827 }, {
9828 .eraseblocks = { {1024 * 1024, 1} },
9829 .block_erase = spi_block_erase_c7,
9830 }
9831 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009832 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009833 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009834 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009835 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009836 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009837 },
9838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009839 {
9840 .vendor = "ST",
9841 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009842 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009843 .manufacture_id = ST_ID,
9844 .model_id = ST_M25P16,
9845 .total_size = 2048,
9846 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009847 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009848 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009849 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009850 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009851 .block_erasers =
9852 {
9853 {
9854 .eraseblocks = { {64 * 1024, 32} },
9855 .block_erase = spi_block_erase_d8,
9856 }, {
9857 .eraseblocks = { {2 * 1024 * 1024, 1} },
9858 .block_erase = spi_block_erase_c7,
9859 }
9860 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009861 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009862 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009863 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009864 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009865 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009866 },
9867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009868 {
9869 .vendor = "ST",
9870 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009871 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009872 .manufacture_id = ST_ID,
9873 .model_id = ST_M25P32,
9874 .total_size = 4096,
9875 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009876 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009877 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009878 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009879 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009880 .block_erasers =
9881 {
9882 {
9883 .eraseblocks = { {64 * 1024, 64} },
9884 .block_erase = spi_block_erase_d8,
9885 }, {
9886 .eraseblocks = { {4 * 1024 * 1024, 1} },
9887 .block_erase = spi_block_erase_c7,
9888 }
9889 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009890 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009891 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009892 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009894 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009895 },
9896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009897 {
9898 .vendor = "ST",
9899 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009900 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009901 .manufacture_id = ST_ID,
9902 .model_id = ST_M25P64,
9903 .total_size = 8192,
9904 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009905 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009906 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009907 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009908 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009909 .block_erasers =
9910 {
9911 {
9912 .eraseblocks = { {64 * 1024, 128} },
9913 .block_erase = spi_block_erase_d8,
9914 }, {
9915 .eraseblocks = { {8 * 1024 * 1024, 1} },
9916 .block_erase = spi_block_erase_c7,
9917 }
9918 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009919 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009920 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009921 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009922 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009923 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009924 },
9925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009926 {
9927 .vendor = "ST",
9928 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009929 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009930 .manufacture_id = ST_ID,
9931 .model_id = ST_M25P128,
9932 .total_size = 16384,
9933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009934 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009935 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009936 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009937 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009938 .block_erasers =
9939 {
9940 {
9941 .eraseblocks = { {256 * 1024, 64} },
9942 .block_erase = spi_block_erase_d8,
9943 }, {
9944 .eraseblocks = { {16 * 1024 * 1024, 1} },
9945 .block_erase = spi_block_erase_c7,
9946 }
9947 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009948 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009949 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009950 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009953 },
9954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009955 {
9956 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00009957 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009958 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00009959 .manufacture_id = ST_ID,
9960 .model_id = ST_M25PX16,
9961 .total_size = 2048,
9962 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009963 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00009964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00009965 .tested = TEST_OK_PREW,
9966 .probe = probe_spi_rdid,
9967 .probe_timing = TIMING_ZERO,
9968 .block_erasers =
9969 {
9970 {
9971 .eraseblocks = { { 4 * 1024, 512 } },
9972 .block_erase = spi_block_erase_20,
9973 }, {
9974 .eraseblocks = { {64 * 1024, 32} },
9975 .block_erase = spi_block_erase_d8,
9976 }, {
9977 .eraseblocks = { {2 * 1024 * 1024, 1} },
9978 .block_erase = spi_block_erase_c7,
9979 }
9980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00009982 .unlock = spi_disable_blockprotect,
9983 .write = spi_chip_write_256,
9984 .read = spi_chip_read,
9985 },
9986
9987 {
9988 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00009989 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009990 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009991 .manufacture_id = ST_ID,
9992 .model_id = ST_M25PX32,
9993 .total_size = 4096,
9994 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009995 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009996 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009997 .probe = probe_spi_rdid,
9998 .probe_timing = TIMING_ZERO,
9999 .block_erasers =
10000 {
10001 {
10002 .eraseblocks = { { 4 * 1024, 1024 } },
10003 .block_erase = spi_block_erase_20,
10004 }, {
10005 .eraseblocks = { {64 * 1024, 64} },
10006 .block_erase = spi_block_erase_d8,
10007 }, {
10008 .eraseblocks = { {4 * 1024 * 1024, 1} },
10009 .block_erase = spi_block_erase_c7,
10010 }
10011 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010012 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010013 .unlock = spi_disable_blockprotect,
10014 .write = spi_chip_write_256,
10015 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010016 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +000010017 },
10018
10019 {
10020 .vendor = "ST",
10021 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010022 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010023 .manufacture_id = ST_ID,
10024 .model_id = ST_M25PX64,
10025 .total_size = 8192,
10026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010027 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010028 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010029 .probe = probe_spi_rdid,
10030 .probe_timing = TIMING_ZERO,
10031 .block_erasers =
10032 {
10033 {
10034 .eraseblocks = { { 4 * 1024, 2048 } },
10035 .block_erase = spi_block_erase_20,
10036 }, {
10037 .eraseblocks = { {64 * 1024, 128} },
10038 .block_erase = spi_block_erase_d8,
10039 }, {
10040 .eraseblocks = { {8 * 1024 * 1024, 1} },
10041 .block_erase = spi_block_erase_c7,
10042 }
10043 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010044 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010045 .unlock = spi_disable_blockprotect,
10046 .write = spi_chip_write_256,
10047 .read = spi_chip_read,
10048 },
10049
10050 {
10051 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010052 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010053 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010054 .manufacture_id = ST_ID,
10055 .model_id = ST_M29F002B,
10056 .total_size = 256,
10057 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010058 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010059 .tested = TEST_UNTESTED,
10060 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010061 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010062 .block_erasers =
10063 {
10064 {
10065 .eraseblocks = {
10066 {16 * 1024, 1},
10067 {8 * 1024, 2},
10068 {32 * 1024, 1},
10069 {64 * 1024, 3},
10070 },
10071 .block_erase = erase_sector_jedec,
10072 }, {
10073 .eraseblocks = { {256 * 1024, 1} },
10074 .block_erase = erase_chip_block_jedec,
10075 }
10076 },
Sean Nelson35727f72010-01-28 23:55:12 +000010077 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010078 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010079 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010080 },
10081
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010082 {
10083 .vendor = "ST",
10084 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010085 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010086 .manufacture_id = ST_ID,
10087 .model_id = ST_M29F002T,
10088 .total_size = 256,
10089 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010090 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010091 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010092 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010093 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010094 .block_erasers =
10095 {
10096 {
10097 .eraseblocks = {
10098 {64 * 1024, 3},
10099 {32 * 1024, 1},
10100 {8 * 1024, 2},
10101 {16 * 1024, 1},
10102 },
10103 .block_erase = erase_sector_jedec,
10104 }, {
10105 .eraseblocks = { {256 * 1024, 1} },
10106 .block_erase = erase_chip_block_jedec,
10107 }
10108 },
Sean Nelson35727f72010-01-28 23:55:12 +000010109 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010110 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010111 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010112 },
10113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010114 {
10115 .vendor = "ST",
10116 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010117 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010118 .manufacture_id = ST_ID,
10119 .model_id = ST_M29F040B,
10120 .total_size = 512,
10121 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010122 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10123 .tested = TEST_UNTESTED,
10124 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010125 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000010126 .block_erasers =
10127 {
10128 {
10129 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000010130 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010131 }, {
10132 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010133 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010134 }
10135 },
Sean Nelson35727f72010-01-28 23:55:12 +000010136 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010137 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010138 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010139 },
10140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010141 {
Sean Nelson35727f72010-01-28 23:55:12 +000010142 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010143 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010144 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010145 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010146 .manufacture_id = ST_ID,
10147 .model_id = ST_M29F400BB,
10148 .total_size = 512,
10149 .page_size = 64 * 1024,
10150 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010151 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010152 .probe = probe_m29f400bt,
10153 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
10154 .block_erasers =
10155 {
10156 {
10157 .eraseblocks = {
10158 {16 * 1024, 1},
10159 {8 * 1024, 2},
10160 {32 * 1024, 1},
10161 {64 * 1024, 7},
10162 },
10163 .block_erase = block_erase_m29f400bt,
10164 }, {
10165 .eraseblocks = { {512 * 1024, 1} },
10166 .block_erase = block_erase_chip_m29f400bt,
10167 }
10168 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010169 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010171 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010172 },
10173 {
10174 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
10175 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010176 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010177 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010178 .manufacture_id = ST_ID,
10179 .model_id = ST_M29F400BT,
10180 .total_size = 512,
10181 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010182 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010183 .tested = TEST_UNTESTED,
10184 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010185 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010186 .block_erasers =
10187 {
10188 {
10189 .eraseblocks = {
10190 {64 * 1024, 7},
10191 {32 * 1024, 1},
10192 {8 * 1024, 2},
10193 {16 * 1024, 1},
10194 },
10195 .block_erase = block_erase_m29f400bt,
10196 }, {
10197 .eraseblocks = { {512 * 1024, 1} },
10198 .block_erase = block_erase_chip_m29f400bt,
10199 }
10200 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010201 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010203 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010204 },
10205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010206 {
10207 .vendor = "ST",
10208 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010209 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010210 .manufacture_id = ST_ID,
10211 .model_id = ST_M29W010B,
10212 .total_size = 128,
10213 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010214 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010215 .tested = TEST_UNTESTED,
10216 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010217 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010218 .block_erasers =
10219 {
10220 {
10221 .eraseblocks = { {16 * 1024, 8}, },
10222 .block_erase = erase_sector_jedec,
10223 }, {
10224 .eraseblocks = { {128 * 1024, 1} },
10225 .block_erase = erase_chip_block_jedec,
10226 }
10227 },
Sean Nelson35727f72010-01-28 23:55:12 +000010228 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010230 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010231 },
10232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010233 {
10234 .vendor = "ST",
10235 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010236 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010237 .manufacture_id = ST_ID,
10238 .model_id = ST_M29W040B,
10239 .total_size = 512,
10240 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010241 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010242 .tested = TEST_UNTESTED,
10243 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010244 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010245 .block_erasers =
10246 {
10247 {
10248 .eraseblocks = { {64 * 1024, 8}, },
10249 .block_erase = erase_sector_jedec,
10250 }, {
10251 .eraseblocks = { {512 * 1024, 1} },
10252 .block_erase = erase_chip_block_jedec,
10253 }
10254 },
Sean Nelson35727f72010-01-28 23:55:12 +000010255 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010257 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010258 },
10259
Stefan Taunereb582572012-09-21 12:52:50 +000010260 {
10261 .vendor = "ST",
10262 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010263 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010264 .manufacture_id = ST_ID,
10265 .model_id = ST_M29W512B,
10266 .total_size = 64,
10267 .page_size = 64 * 1024,
10268 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010269 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +000010270 .probe = probe_jedec,
10271 .probe_timing = TIMING_ZERO,
10272 .block_erasers =
10273 {
10274 {
10275 .eraseblocks = { {64 * 1024, 1} },
10276 .block_erase = erase_chip_block_jedec,
10277 }
10278 },
10279 .write = write_jedec_1,
10280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010281 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000010282 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000010283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010284 {
10285 .vendor = "ST",
10286 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010287 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010288 .manufacture_id = ST_ID,
10289 .model_id = ST_M50FLW040A,
10290 .total_size = 512,
10291 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010292 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010293 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010294 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010295 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010296 .block_erasers =
10297 {
10298 {
Sean Nelson329bde72010-01-19 16:39:19 +000010299 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010300 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010301 {64 * 1024, 5}, /* block */
10302 {4 * 1024, 16}, /* sector */
10303 {4 * 1024, 16}, /* sector */
10304 },
10305 .block_erase = NULL,
10306 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010307 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010308 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010309 }
10310 },
Sean Nelson28accc22010-03-19 18:47:06 +000010311 .unlock = unlock_stm50flw0x0x,
10312 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010314 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010315 },
10316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010317 {
10318 .vendor = "ST",
10319 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010320 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010321 .manufacture_id = ST_ID,
10322 .model_id = ST_M50FLW040B,
10323 .total_size = 512,
10324 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010325 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010326 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010327 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010328 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010329 .block_erasers =
10330 {
10331 {
Sean Nelson329bde72010-01-19 16:39:19 +000010332 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010333 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010334 {4 * 1024, 16}, /* sector */
10335 {64 * 1024, 5}, /* block */
10336 {4 * 1024, 16}, /* sector */
10337 },
10338 .block_erase = NULL,
10339 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010340 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010341 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010342 }
10343 },
Sean Nelson28accc22010-03-19 18:47:06 +000010344 .unlock = unlock_stm50flw0x0x,
10345 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010347 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010348 },
10349
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010350 {
10351 .vendor = "ST",
10352 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010353 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010354 .manufacture_id = ST_ID,
10355 .model_id = ST_M50FLW080A,
10356 .total_size = 1024,
10357 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010358 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010359 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000010360 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010361 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010362 .block_erasers =
10363 {
10364 {
Sean Nelson329bde72010-01-19 16:39:19 +000010365 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010366 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010367 {64 * 1024, 13}, /* block */
10368 {4 * 1024, 16}, /* sector */
10369 {4 * 1024, 16}, /* sector */
10370 },
10371 .block_erase = NULL,
10372 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010373 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010374 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010375 }
10376 },
Sean Nelson28accc22010-03-19 18:47:06 +000010377 .unlock = unlock_stm50flw0x0x,
10378 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010379 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010380 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010381 },
10382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010383 {
10384 .vendor = "ST",
10385 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010386 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010387 .manufacture_id = ST_ID,
10388 .model_id = ST_M50FLW080B,
10389 .total_size = 1024,
10390 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010391 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010392 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010393 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010394 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010395 .block_erasers =
10396 {
10397 {
Sean Nelson329bde72010-01-19 16:39:19 +000010398 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010399 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010400 {4 * 1024, 16}, /* sector */
10401 {64 * 1024, 13}, /* block */
10402 {4 * 1024, 16}, /* sector */
10403 },
10404 .block_erase = NULL,
10405 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010406 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010407 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010408 }
10409 },
Sean Nelson28accc22010-03-19 18:47:06 +000010410 .unlock = unlock_stm50flw0x0x,
10411 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010413 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010414 },
10415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010416 {
10417 .vendor = "ST",
10418 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010419 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010420 .manufacture_id = ST_ID,
10421 .model_id = ST_M50FW002,
10422 .total_size = 256,
10423 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010424 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010425 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010426 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010427 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010428 .block_erasers =
10429 {
10430 {
10431 .eraseblocks = {
10432 {64 * 1024, 3},
10433 {32 * 1024, 1},
10434 {8 * 1024, 2},
10435 {16 * 1024, 1},
10436 },
Sean Nelson28accc22010-03-19 18:47:06 +000010437 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010438 }
10439 },
Sean Nelson28accc22010-03-19 18:47:06 +000010440 .unlock = unlock_stm50flw0x0x,
10441 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010443 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010444 },
10445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010446 {
10447 .vendor = "ST",
10448 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010449 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010450 .manufacture_id = ST_ID,
10451 .model_id = ST_M50FW016,
10452 .total_size = 2048,
10453 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010454 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010455 .tested = TEST_UNTESTED,
10456 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010457 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010458 .block_erasers =
10459 {
10460 {
10461 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010462 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010463 }
10464 },
Sean Nelson28accc22010-03-19 18:47:06 +000010465 .unlock = unlock_stm50flw0x0x,
10466 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010467 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010468 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010469 },
10470
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010471 {
10472 .vendor = "ST",
10473 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010474 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010475 .manufacture_id = ST_ID,
10476 .model_id = ST_M50FW040,
10477 .total_size = 512,
10478 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010479 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000010480 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010481 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010482 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010483 .block_erasers =
10484 {
10485 {
10486 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010487 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010488 }
10489 },
Sean Nelson28accc22010-03-19 18:47:06 +000010490 .unlock = unlock_stm50flw0x0x,
10491 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010493 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010494 },
10495
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010496 {
10497 .vendor = "ST",
10498 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010499 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010500 .manufacture_id = ST_ID,
10501 .model_id = ST_M50FW080,
10502 .total_size = 1024,
10503 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010504 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010505 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010506 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010507 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010508 .block_erasers =
10509 {
10510 {
10511 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010512 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010513 }
10514 },
Sean Nelson28accc22010-03-19 18:47:06 +000010515 .unlock = unlock_stm50flw0x0x,
10516 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010518 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010519 },
10520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010521 {
10522 .vendor = "ST",
10523 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010524 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010525 .manufacture_id = ST_ID,
10526 .model_id = ST_M50LPW116,
10527 .total_size = 2048,
10528 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010529 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010530 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010531 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000010532 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010533 .block_erasers =
10534 {
10535 {
10536 .eraseblocks = {
10537 {4 * 1024, 16},
10538 {64 * 1024, 30},
10539 {32 * 1024, 1},
10540 {8 * 1024, 2},
10541 {16 * 1024, 1},
10542 },
Sean Nelson28accc22010-03-19 18:47:06 +000010543 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010544 }
10545 },
Sean Nelson28accc22010-03-19 18:47:06 +000010546 .unlock = unlock_stm50flw0x0x,
10547 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010549 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010550 },
10551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010552 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010553 .vendor = "SyncMOS/MoselVitelic",
10554 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010555 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010556 .manufacture_id = SYNCMOS_MVC_ID,
10557 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010558 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010559 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010560 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010561 .tested = TEST_UNTESTED,
10562 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010563 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010564 .block_erasers =
10565 {
10566 {
10567 .eraseblocks = { {512, 256} },
10568 .block_erase = erase_sector_jedec,
10569 }, {
10570 .eraseblocks = { {128 * 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 Hailfinger03b4e712009-05-08 12:49:03 +000010575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010576 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010577 },
10578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010579 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010580 .vendor = "SyncMOS/MoselVitelic",
10581 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010582 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010583 .manufacture_id = SYNCMOS_MVC_ID,
10584 .model_id = SM_MVC_29C51001T,
10585 .total_size = 128,
10586 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010587 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010588 .tested = TEST_UNTESTED,
10589 .probe = probe_jedec,
10590 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10591 .block_erasers =
10592 {
10593 {
10594 .eraseblocks = { {512, 256} },
10595 .block_erase = erase_sector_jedec,
10596 }, {
10597 .eraseblocks = { {128 * 1024, 1} },
10598 .block_erase = erase_chip_block_jedec,
10599 },
10600 },
10601 .write = write_jedec_1,
10602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010603 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010604 },
10605
10606 {
10607 .vendor = "SyncMOS/MoselVitelic",
10608 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010609 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010610 .manufacture_id = SYNCMOS_MVC_ID,
10611 .model_id = SM_MVC_29C51002B,
10612 .total_size = 256,
10613 .page_size = 512,
10614 .feature_bits = FEATURE_EITHER_RESET,
10615 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010616 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010617 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010618 .block_erasers =
10619 {
10620 {
10621 .eraseblocks = { {512, 512} },
10622 .block_erase = erase_sector_jedec,
10623 }, {
10624 .eraseblocks = { {256 * 1024, 1} },
10625 .block_erase = erase_chip_block_jedec,
10626 },
10627 },
Sean Nelson35727f72010-01-28 23:55:12 +000010628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010629 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000010630 },
10631
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010632 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010633 .vendor = "SyncMOS/MoselVitelic",
10634 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010635 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010636 .manufacture_id = SYNCMOS_MVC_ID,
10637 .model_id = SM_MVC_29C51002T,
10638 .total_size = 256,
10639 .page_size = 512,
10640 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010641 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010642 .probe = probe_jedec,
10643 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10644 .block_erasers =
10645 {
10646 {
10647 .eraseblocks = { {512, 512} },
10648 .block_erase = erase_sector_jedec,
10649 }, {
10650 .eraseblocks = { {256 * 1024, 1} },
10651 .block_erase = erase_chip_block_jedec,
10652 },
10653 },
10654 .write = write_jedec_1,
10655 .read = read_memmapped,
10656 },
10657
10658 {
10659 .vendor = "SyncMOS/MoselVitelic",
10660 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010661 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010662 .manufacture_id = SYNCMOS_MVC_ID,
10663 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010664 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010665 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010666 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010667 .tested = TEST_UNTESTED,
10668 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010669 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010670 .block_erasers =
10671 {
10672 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010673 .eraseblocks = { {1024, 512} },
10674 .block_erase = erase_sector_jedec,
10675 }, {
10676 .eraseblocks = { {512 * 1024, 1} },
10677 .block_erase = erase_chip_block_jedec,
10678 },
10679 },
10680 .write = write_jedec_1,
10681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010682 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010683 },
10684
10685 {
10686 .vendor = "SyncMOS/MoselVitelic",
10687 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010688 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010689 .manufacture_id = SYNCMOS_MVC_ID,
10690 .model_id = SM_MVC_29C51004T,
10691 .total_size = 512,
10692 .page_size = 1024,
10693 .feature_bits = FEATURE_EITHER_RESET,
10694 .tested = TEST_UNTESTED,
10695 .probe = probe_jedec,
10696 .probe_timing = TIMING_ZERO,
10697 .block_erasers =
10698 {
10699 {
10700 .eraseblocks = { {1024, 512} },
10701 .block_erase = erase_sector_jedec,
10702 }, {
10703 .eraseblocks = { {512 * 1024, 1} },
10704 .block_erase = erase_chip_block_jedec,
10705 },
10706 },
10707 .write = write_jedec_1,
10708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010709 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010710 },
10711
10712 {
10713 .vendor = "SyncMOS/MoselVitelic",
10714 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010715 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010716 .manufacture_id = SYNCMOS_MVC_ID,
10717 .model_id = SM_MVC_29C31004B,
10718 .total_size = 512,
10719 .page_size = 1024,
10720 .feature_bits = FEATURE_EITHER_RESET,
10721 .tested = TEST_UNTESTED,
10722 .probe = probe_jedec,
10723 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10724 .block_erasers =
10725 {
10726 {
10727 .eraseblocks = { {1024, 512} },
10728 .block_erase = erase_sector_jedec,
10729 }, {
10730 .eraseblocks = { {512 * 1024, 1} },
10731 .block_erase = erase_chip_block_jedec,
10732 },
10733 },
10734 .write = write_jedec_1,
10735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010736 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010737 },
10738
10739 {
10740 .vendor = "SyncMOS/MoselVitelic",
10741 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010742 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010743 .manufacture_id = SYNCMOS_MVC_ID,
10744 .model_id = SM_MVC_29C31004T,
10745 .total_size = 512,
10746 .page_size = 1024,
10747 .feature_bits = FEATURE_EITHER_RESET,
10748 .tested = TEST_UNTESTED,
10749 .probe = probe_jedec,
10750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10751 .block_erasers =
10752 {
10753 {
10754 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000010755 .block_erase = erase_sector_jedec,
10756 }, {
10757 .eraseblocks = { {512 * 1024, 1} },
10758 .block_erase = erase_chip_block_jedec,
10759 },
10760 },
Sean Nelson35727f72010-01-28 23:55:12 +000010761 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010762 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010763 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010764 },
10765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010766 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010767 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010768 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010769 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010770 .manufacture_id = TI_OLD_ID,
10771 .model_id = TI_TMS29F002RB,
10772 .total_size = 256,
10773 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010774 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010775 .tested = TEST_UNTESTED,
10776 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010777 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010778 .block_erasers =
10779 {
10780 {
10781 .eraseblocks = {
10782 {16 * 1024, 1},
10783 {8 * 1024, 2},
10784 {32 * 1024, 1},
10785 {64 * 1024, 3},
10786 },
10787 .block_erase = erase_sector_jedec,
10788 }, {
10789 .eraseblocks = { {256 * 1024, 1} },
10790 .block_erase = erase_chip_block_jedec,
10791 },
10792 },
Sean Nelson35727f72010-01-28 23:55:12 +000010793 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010795 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010796 },
10797
10798 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010799 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010800 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010801 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010802 .manufacture_id = TI_OLD_ID,
10803 .model_id = TI_TMS29F002RT,
10804 .total_size = 256,
10805 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010807 .tested = TEST_UNTESTED,
10808 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010809 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010810 .block_erasers =
10811 {
10812 {
10813 .eraseblocks = {
10814 {64 * 1024, 3},
10815 {32 * 1024, 1},
10816 {8 * 1024, 2},
10817 {16 * 1024, 1},
10818 },
10819 .block_erase = erase_sector_jedec,
10820 }, {
10821 .eraseblocks = { {256 * 1024, 1} },
10822 .block_erase = erase_chip_block_jedec,
10823 },
10824 },
Sean Nelson35727f72010-01-28 23:55:12 +000010825 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010827 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010828 },
10829
10830 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010831 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010832 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010833 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010834 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010835 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010836 .total_size = 1024,
10837 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010838 /* supports SFDP */
10839 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010841 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010842 .probe = probe_spi_rdid,
10843 .probe_timing = TIMING_ZERO,
10844 .block_erasers =
10845 {
10846 {
10847 .eraseblocks = { {4 * 1024, 256} },
10848 .block_erase = spi_block_erase_20,
10849 }, {
10850 .eraseblocks = { {32 * 1024, 32} },
10851 .block_erase = spi_block_erase_52,
10852 }, {
10853 .eraseblocks = { {64 * 1024, 16} },
10854 .block_erase = spi_block_erase_d8,
10855 }, {
10856 .eraseblocks = { {1024 * 1024, 1} },
10857 .block_erase = spi_block_erase_60,
10858 }, {
10859 .eraseblocks = { {1024 * 1024, 1} },
10860 .block_erase = spi_block_erase_c7,
10861 }
10862 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010863 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010864 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010865 .write = spi_chip_write_256,
10866 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010867 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010868 },
10869
10870 {
10871 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010872 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010873 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010874 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010875 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010876 .total_size = 2048,
10877 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010878 /* supports SFDP */
10879 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010880 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000010881 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010882 .probe = probe_spi_rdid,
10883 .probe_timing = TIMING_ZERO,
10884 .block_erasers =
10885 {
10886 {
10887 .eraseblocks = { {4 * 1024, 512} },
10888 .block_erase = spi_block_erase_20,
10889 }, {
10890 .eraseblocks = { {32 * 1024, 64} },
10891 .block_erase = spi_block_erase_52,
10892 }, {
10893 .eraseblocks = { {64 * 1024, 32} },
10894 .block_erase = spi_block_erase_d8,
10895 }, {
10896 .eraseblocks = { {2 * 1024 * 1024, 1} },
10897 .block_erase = spi_block_erase_60,
10898 }, {
10899 .eraseblocks = { {2 * 1024 * 1024, 1} },
10900 .block_erase = spi_block_erase_c7,
10901 }
10902 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010904 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010905 .write = spi_chip_write_256,
10906 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010907 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010908 },
10909
10910 {
10911 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010912 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010913 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010914 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010915 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010916 .total_size = 4096,
10917 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010918 /* supports SFDP */
10919 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010920 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010921 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010922 .probe = probe_spi_rdid,
10923 .probe_timing = TIMING_ZERO,
10924 .block_erasers =
10925 {
10926 {
10927 .eraseblocks = { {4 * 1024, 1024} },
10928 .block_erase = spi_block_erase_20,
10929 }, {
10930 .eraseblocks = { {32 * 1024, 128} },
10931 .block_erase = spi_block_erase_52,
10932 }, {
10933 .eraseblocks = { {64 * 1024, 64} },
10934 .block_erase = spi_block_erase_d8,
10935 }, {
10936 .eraseblocks = { {4 * 1024 * 1024, 1} },
10937 .block_erase = spi_block_erase_60,
10938 }, {
10939 .eraseblocks = { {4 * 1024 * 1024, 1} },
10940 .block_erase = spi_block_erase_c7,
10941 }
10942 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010943 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010944 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010945 .write = spi_chip_write_256,
10946 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010947 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010948 },
10949
10950 {
10951 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010952 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010953 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000010954 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010955 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000010956 .total_size = 8192,
10957 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010958 /* supports SFDP */
10959 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010960 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010961 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000010962 .probe = probe_spi_rdid,
10963 .probe_timing = TIMING_ZERO,
10964 .block_erasers =
10965 {
10966 {
10967 .eraseblocks = { {4 * 1024, 2048} },
10968 .block_erase = spi_block_erase_20,
10969 }, {
10970 .eraseblocks = { {32 * 1024, 256} },
10971 .block_erase = spi_block_erase_52,
10972 }, {
10973 .eraseblocks = { {64 * 1024, 128} },
10974 .block_erase = spi_block_erase_d8,
10975 }, {
10976 .eraseblocks = { {8 * 1024 * 1024, 1} },
10977 .block_erase = spi_block_erase_60,
10978 }, {
10979 .eraseblocks = { {8 * 1024 * 1024, 1} },
10980 .block_erase = spi_block_erase_c7,
10981 }
10982 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010983 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010984 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000010985 .write = spi_chip_write_256,
10986 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010987 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000010988 },
10989
10990 {
10991 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010992 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010993 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010994 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010995 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010996 .total_size = 16384,
10997 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010998 /* supports SFDP */
10999 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011001 .tested = TEST_OK_PROBE,
11002 .probe = probe_spi_rdid,
11003 .probe_timing = TIMING_ZERO,
11004 .block_erasers =
11005 {
11006 {
11007 .eraseblocks = { {4 * 1024, 4096} },
11008 .block_erase = spi_block_erase_20,
11009 }, {
11010 .eraseblocks = { {32 * 1024, 512} },
11011 .block_erase = spi_block_erase_52,
11012 }, {
11013 .eraseblocks = { {64 * 1024, 256} },
11014 .block_erase = spi_block_erase_d8,
11015 }, {
11016 .eraseblocks = { {16 * 1024 * 1024, 1} },
11017 .block_erase = spi_block_erase_60,
11018 }, {
11019 .eraseblocks = { {16 * 1024 * 1024, 1} },
11020 .block_erase = spi_block_erase_c7,
11021 }
11022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011024 .unlock = spi_disable_blockprotect,
11025 .write = spi_chip_write_256,
11026 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011027 .voltage = {2700, 3600},
11028 },
11029
11030 {
11031 .vendor = "Winbond",
11032 .name = "W25Q20.W",
11033 .bustype = BUS_SPI,
11034 .manufacture_id = WINBOND_NEX_ID,
11035 .model_id = WINBOND_NEX_W25Q20_W,
11036 .total_size = 256,
11037 .page_size = 256,
11038 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11039 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11040 .tested = TEST_UNTESTED,
11041 .probe = probe_spi_rdid,
11042 .probe_timing = TIMING_ZERO,
11043 .block_erasers =
11044 {
11045 {
11046 .eraseblocks = { {4 * 1024, 64} },
11047 .block_erase = spi_block_erase_20,
11048 }, {
11049 .eraseblocks = { {32 * 1024, 8} },
11050 .block_erase = spi_block_erase_52,
11051 }, {
11052 .eraseblocks = { {64 * 1024, 4} },
11053 .block_erase = spi_block_erase_d8,
11054 }, {
11055 .eraseblocks = { {256 * 1024, 1} },
11056 .block_erase = spi_block_erase_60,
11057 }, {
11058 .eraseblocks = { {256 * 1024, 1} },
11059 .block_erase = spi_block_erase_c7,
11060 }
11061 },
11062 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11063 .unlock = spi_disable_blockprotect,
11064 .write = spi_chip_write_256,
11065 .read = spi_chip_read,
11066 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11067 },
11068
11069 {
11070 .vendor = "Winbond",
11071 .name = "W25Q40.W",
11072 .bustype = BUS_SPI,
11073 .manufacture_id = WINBOND_NEX_ID,
11074 .model_id = WINBOND_NEX_W25Q40_W,
11075 .total_size = 512,
11076 .page_size = 256,
11077 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11079 .tested = TEST_UNTESTED,
11080 .probe = probe_spi_rdid,
11081 .probe_timing = TIMING_ZERO,
11082 .block_erasers =
11083 {
11084 {
11085 .eraseblocks = { {4 * 1024, 128} },
11086 .block_erase = spi_block_erase_20,
11087 }, {
11088 .eraseblocks = { {32 * 1024, 16} },
11089 .block_erase = spi_block_erase_52,
11090 }, {
11091 .eraseblocks = { {64 * 1024, 8} },
11092 .block_erase = spi_block_erase_d8,
11093 }, {
11094 .eraseblocks = { {512 * 1024, 1} },
11095 .block_erase = spi_block_erase_60,
11096 }, {
11097 .eraseblocks = { {512 * 1024, 1} },
11098 .block_erase = spi_block_erase_c7,
11099 }
11100 },
11101 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11102 .unlock = spi_disable_blockprotect,
11103 .write = spi_chip_write_256,
11104 .read = spi_chip_read,
11105 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11106 },
11107
11108 {
11109 .vendor = "Winbond",
11110 .name = "W25Q80.W",
11111 .bustype = BUS_SPI,
11112 .manufacture_id = WINBOND_NEX_ID,
11113 .model_id = WINBOND_NEX_W25Q80_W,
11114 .total_size = 1024,
11115 .page_size = 256,
11116 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11118 .tested = TEST_UNTESTED,
11119 .probe = probe_spi_rdid,
11120 .probe_timing = TIMING_ZERO,
11121 .block_erasers =
11122 {
11123 {
11124 .eraseblocks = { {4 * 1024, 256} },
11125 .block_erase = spi_block_erase_20,
11126 }, {
11127 .eraseblocks = { {32 * 1024, 32} },
11128 .block_erase = spi_block_erase_52,
11129 }, {
11130 .eraseblocks = { {64 * 1024, 16} },
11131 .block_erase = spi_block_erase_d8,
11132 }, {
11133 .eraseblocks = { {1 * 1024 * 1024, 1} },
11134 .block_erase = spi_block_erase_60,
11135 }, {
11136 .eraseblocks = { {1 * 1024 * 1024, 1} },
11137 .block_erase = spi_block_erase_c7,
11138 }
11139 },
11140 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11141 .unlock = spi_disable_blockprotect,
11142 .write = spi_chip_write_256,
11143 .read = spi_chip_read,
11144 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11145 },
11146
11147 {
11148 .vendor = "Winbond",
11149 .name = "W25Q16.W",
11150 .bustype = BUS_SPI,
11151 .manufacture_id = WINBOND_NEX_ID,
11152 .model_id = WINBOND_NEX_W25Q16_W,
11153 .total_size = 2048,
11154 .page_size = 256,
11155 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11156 /* QPI enable 0x38, disable 0xFF */
11157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11158 .tested = TEST_UNTESTED,
11159 .probe = probe_spi_rdid,
11160 .probe_timing = TIMING_ZERO,
11161 .block_erasers =
11162 {
11163 {
11164 .eraseblocks = { {4 * 1024, 512} },
11165 .block_erase = spi_block_erase_20,
11166 }, {
11167 .eraseblocks = { {32 * 1024, 64} },
11168 .block_erase = spi_block_erase_52,
11169 }, {
11170 .eraseblocks = { {64 * 1024, 32} },
11171 .block_erase = spi_block_erase_d8,
11172 }, {
11173 .eraseblocks = { {2 * 1024 * 1024, 1} },
11174 .block_erase = spi_block_erase_60,
11175 }, {
11176 .eraseblocks = { {2 * 1024 * 1024, 1} },
11177 .block_erase = spi_block_erase_c7,
11178 }
11179 },
11180 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11181 .unlock = spi_disable_blockprotect,
11182 .write = spi_chip_write_256,
11183 .read = spi_chip_read,
11184 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11185 },
11186
11187 {
11188 .vendor = "Winbond",
11189 .name = "W25Q32.W",
11190 .bustype = BUS_SPI,
11191 .manufacture_id = WINBOND_NEX_ID,
11192 .model_id = WINBOND_NEX_W25Q32_W,
11193 .total_size = 4096,
11194 .page_size = 256,
11195 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11196 /* QPI enable 0x38, disable 0xFF */
11197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11198 .tested = TEST_OK_PREW,
11199 .probe = probe_spi_rdid,
11200 .probe_timing = TIMING_ZERO,
11201 .block_erasers =
11202 {
11203 {
11204 .eraseblocks = { {4 * 1024, 1024} },
11205 .block_erase = spi_block_erase_20,
11206 }, {
11207 .eraseblocks = { {32 * 1024, 128} },
11208 .block_erase = spi_block_erase_52,
11209 }, {
11210 .eraseblocks = { {64 * 1024, 64} },
11211 .block_erase = spi_block_erase_d8,
11212 }, {
11213 .eraseblocks = { {4 * 1024 * 1024, 1} },
11214 .block_erase = spi_block_erase_60,
11215 }, {
11216 .eraseblocks = { {4 * 1024 * 1024, 1} },
11217 .block_erase = spi_block_erase_c7,
11218 }
11219 },
11220 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11221 .unlock = spi_disable_blockprotect,
11222 .write = spi_chip_write_256,
11223 .read = spi_chip_read,
11224 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11225 },
11226
11227 {
11228 .vendor = "Winbond",
11229 .name = "W25Q64.W",
11230 .bustype = BUS_SPI,
11231 .manufacture_id = WINBOND_NEX_ID,
11232 .model_id = WINBOND_NEX_W25Q64_W,
11233 .total_size = 8192,
11234 .page_size = 256,
11235 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11236 /* QPI enable 0x38, disable 0xFF */
11237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11238 .tested = TEST_UNTESTED,
11239 .probe = probe_spi_rdid,
11240 .probe_timing = TIMING_ZERO,
11241 .block_erasers =
11242 {
11243 {
11244 .eraseblocks = { {4 * 1024, 2048} },
11245 .block_erase = spi_block_erase_20,
11246 }, {
11247 .eraseblocks = { {32 * 1024, 256} },
11248 .block_erase = spi_block_erase_52,
11249 }, {
11250 .eraseblocks = { {64 * 1024, 128} },
11251 .block_erase = spi_block_erase_d8,
11252 }, {
11253 .eraseblocks = { {8 * 1024 * 1024, 1} },
11254 .block_erase = spi_block_erase_60,
11255 }, {
11256 .eraseblocks = { {8 * 1024 * 1024, 1} },
11257 .block_erase = spi_block_erase_c7,
11258 }
11259 },
11260 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11261 .unlock = spi_disable_blockprotect,
11262 .write = spi_chip_write_256,
11263 .read = spi_chip_read,
11264 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011265 },
11266
11267 {
11268 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011269 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011270 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011271 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011272 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011273 .total_size = 128,
11274 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011275 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011276 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011277 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011278 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011279 .block_erasers =
11280 {
11281 {
11282 .eraseblocks = { {4 * 1024, 32} },
11283 .block_erase = spi_block_erase_20,
11284 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011285 .eraseblocks = { {64 * 1024, 2} },
11286 .block_erase = spi_block_erase_d8,
11287 }, {
11288 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011289 .block_erase = spi_block_erase_c7,
11290 }
11291 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011292 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011293 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011294 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011297 },
11298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011299 {
11300 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011301 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011302 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011303 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011304 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011305 .total_size = 256,
11306 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011307 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011308 .tested = TEST_UNTESTED,
11309 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011310 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011311 .block_erasers =
11312 {
11313 {
11314 .eraseblocks = { {4 * 1024, 64} },
11315 .block_erase = spi_block_erase_20,
11316 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011317 .eraseblocks = { {64 * 1024, 4} },
11318 .block_erase = spi_block_erase_d8,
11319 }, {
11320 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011321 .block_erase = spi_block_erase_c7,
11322 }
11323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011324 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011325 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011326 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011327 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011328 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011329 },
11330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011331 {
11332 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011333 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011334 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011335 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011336 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011337 .total_size = 512,
11338 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011339 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000011340 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011341 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011342 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011343 .block_erasers =
11344 {
11345 {
11346 .eraseblocks = { {4 * 1024, 128} },
11347 .block_erase = spi_block_erase_20,
11348 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011349 .eraseblocks = { {64 * 1024, 8} },
11350 .block_erase = spi_block_erase_d8,
11351 }, {
11352 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011353 .block_erase = spi_block_erase_c7,
11354 }
11355 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011357 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011358 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011359 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011360 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011361 },
11362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011363 {
11364 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011365 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011366 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011367 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011368 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011369 .total_size = 1024,
11370 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011371 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000011372 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011373 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011374 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011375 .block_erasers =
11376 {
11377 {
11378 .eraseblocks = { {4 * 1024, 256} },
11379 .block_erase = spi_block_erase_20,
11380 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011381 .eraseblocks = { {64 * 1024, 16} },
11382 .block_erase = spi_block_erase_d8,
11383 }, {
11384 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011385 .block_erase = spi_block_erase_c7,
11386 }
11387 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011388 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011389 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011390 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011391 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011392 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011393 },
11394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011395 {
11396 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011397 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011398 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000011399 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011400 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000011401 .total_size = 2048,
11402 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011403 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000011404 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000011405 .probe = probe_spi_rdid,
11406 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011407 .block_erasers =
11408 {
11409 {
11410 .eraseblocks = { {4 * 1024, 512} },
11411 .block_erase = spi_block_erase_20,
11412 }, {
11413 .eraseblocks = { {32 * 1024, 64} },
11414 .block_erase = spi_block_erase_52,
11415 }, {
11416 .eraseblocks = { {64 * 1024, 32} },
11417 .block_erase = spi_block_erase_d8,
11418 }, {
11419 .eraseblocks = { {2 * 1024 * 1024, 1} },
11420 .block_erase = spi_block_erase_60,
11421 }, {
11422 .eraseblocks = { {2 * 1024 * 1024, 1} },
11423 .block_erase = spi_block_erase_c7,
11424 }
11425 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011426 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011427 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000011428 .write = spi_chip_write_256,
11429 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011430 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000011431 },
11432
11433 {
11434 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011435 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011436 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011437 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011438 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000011439 .total_size = 4096,
11440 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011441 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000011442 .tested = TEST_OK_PROBE,
11443 .probe = probe_spi_rdid,
11444 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011445 .block_erasers =
11446 {
11447 {
11448 .eraseblocks = { {4 * 1024, 1024} },
11449 .block_erase = spi_block_erase_20,
11450 }, {
11451 .eraseblocks = { {32 * 1024, 128} },
11452 .block_erase = spi_block_erase_52,
11453 }, {
11454 .eraseblocks = { {64 * 1024, 64} },
11455 .block_erase = spi_block_erase_d8,
11456 }, {
11457 .eraseblocks = { {4 * 1024 * 1024, 1} },
11458 .block_erase = spi_block_erase_60,
11459 }, {
11460 .eraseblocks = { {4 * 1024 * 1024, 1} },
11461 .block_erase = spi_block_erase_c7,
11462 }
11463 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011464 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011465 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011466 .write = spi_chip_write_256,
11467 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011468 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011469 },
11470
11471 {
11472 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011473 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011474 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011475 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011476 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000011477 .total_size = 8192,
11478 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011479 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011480 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000011481 .probe = probe_spi_rdid,
11482 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011483 .block_erasers =
11484 {
11485 {
11486 .eraseblocks = { {4 * 1024, 2048} },
11487 .block_erase = spi_block_erase_20,
11488 }, {
11489 .eraseblocks = { {32 * 1024, 256} },
11490 .block_erase = spi_block_erase_52,
11491 }, {
11492 .eraseblocks = { {64 * 1024, 128} },
11493 .block_erase = spi_block_erase_d8,
11494 }, {
11495 .eraseblocks = { {8 * 1024 * 1024, 1} },
11496 .block_erase = spi_block_erase_60,
11497 }, {
11498 .eraseblocks = { {8 * 1024 * 1024, 1} },
11499 .block_erase = spi_block_erase_c7,
11500 }
11501 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011503 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011504 .write = spi_chip_write_256,
11505 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011506 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011507 },
11508
11509 {
11510 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011511 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011512 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011513 .manufacture_id = WINBOND_ID,
11514 .model_id = WINBOND_W29C010,
11515 .total_size = 128,
11516 .page_size = 128,
11517 .feature_bits = FEATURE_LONG_RESET,
11518 .tested = TEST_OK_PRE,
11519 .probe = probe_w29ee011,
11520 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
11521 .block_erasers =
11522 {
11523 {
11524 .eraseblocks = { {128 * 1024, 1} },
11525 .block_erase = erase_chip_block_jedec,
11526 }
11527 },
11528 .write = write_jedec,
11529 .read = read_memmapped,
11530 },
11531
11532 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
11533 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011534 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011535 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011536 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011537 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011538 .total_size = 128,
11539 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011540 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000011541 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011542 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011543 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011544 .block_erasers =
11545 {
11546 {
11547 .eraseblocks = { {128 * 1024, 1} },
11548 .block_erase = erase_chip_block_jedec,
11549 }
11550 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011551 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011552 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011553 },
11554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011555 {
11556 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011557 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011558 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011559 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011560 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011561 .total_size = 256,
11562 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011563 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011564 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011565 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011566 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011567 .block_erasers =
11568 {
11569 {
11570 .eraseblocks = { {256 * 1024, 1} },
11571 .block_erase = erase_chip_block_jedec,
11572 }
11573 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011574 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011576 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011577 },
11578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011579 {
11580 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011581 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011582 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011583 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011584 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011585 .total_size = 512,
11586 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011587 .feature_bits = FEATURE_LONG_RESET,
11588 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011589 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000011590 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011591 .block_erasers =
11592 {
11593 {
11594 .eraseblocks = { {512 * 1024, 1} },
11595 .block_erase = erase_chip_block_jedec,
11596 }
11597 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011598 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011600 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011601 },
11602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011603 {
11604 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000011605 .name = "W39F010",
11606 .bustype = BUS_PARALLEL,
11607 .manufacture_id = WINBOND_ID,
11608 .model_id = WINBOND_W39F010,
11609 .total_size = 128,
11610 .page_size = 4 * 1024,
11611 .feature_bits = FEATURE_EITHER_RESET,
11612 .tested = TEST_OK_PREW,
11613 .probe = probe_jedec,
11614 .probe_timing = 10,
11615 .block_erasers =
11616 {
11617 {
11618 .eraseblocks = { {4 * 1024, 32} },
11619 .block_erase = erase_block_jedec,
11620 }, {
11621 .eraseblocks = { {128 * 1024, 1} },
11622 .block_erase = erase_chip_block_jedec,
11623 }
11624 },
11625 .printlock = printlock_w39f010,
11626 .write = write_jedec_1,
11627 .read = read_memmapped,
11628 .voltage = {4500, 5500},
11629 },
11630
11631 {
11632 .vendor = "Winbond",
11633 .name = "W39L010",
11634 .bustype = BUS_PARALLEL,
11635 .manufacture_id = WINBOND_ID,
11636 .model_id = WINBOND_W39L010,
11637 .total_size = 128,
11638 .page_size = 4 * 1024,
11639 .feature_bits = FEATURE_EITHER_RESET,
11640 .tested = TEST_UNTESTED,
11641 .probe = probe_jedec,
11642 .probe_timing = 10,
11643 .block_erasers =
11644 {
11645 {
11646 .eraseblocks = { {4 * 1024, 32} },
11647 .block_erase = erase_block_jedec,
11648 }, {
11649 .eraseblocks = { {128 * 1024, 1} },
11650 .block_erase = erase_chip_block_jedec,
11651 }
11652 },
11653 .printlock = printlock_w39l010,
11654 .write = write_jedec_1,
11655 .read = read_memmapped,
11656 .voltage = {3000, 3600},
11657 },
11658
11659 {
11660 .vendor = "Winbond",
11661 .name = "W39L020",
11662 .bustype = BUS_PARALLEL,
11663 .manufacture_id = WINBOND_ID,
11664 .model_id = WINBOND_W39L020,
11665 .total_size = 256,
11666 .page_size = 4 * 1024,
11667 .feature_bits = FEATURE_EITHER_RESET,
11668 .tested = TEST_UNTESTED,
11669 .probe = probe_jedec,
11670 .probe_timing = 10,
11671 .block_erasers =
11672 {
11673 {
11674 .eraseblocks = { {4 * 1024, 64} },
11675 .block_erase = erase_block_jedec,
11676 }, {
11677 .eraseblocks = { {64 * 1024, 4} },
11678 .block_erase = erase_sector_jedec,
11679 }, {
11680 .eraseblocks = { {256 * 1024, 1} },
11681 .block_erase = erase_chip_block_jedec,
11682 }
11683 },
11684 .printlock = printlock_w39l020,
11685 .write = write_jedec_1,
11686 .read = read_memmapped,
11687 .voltage = {3000, 3600},
11688 },
11689
11690 {
11691 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000011692 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011693 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000011694 .manufacture_id = WINBOND_ID,
11695 .model_id = WINBOND_W39L040,
11696 .total_size = 512,
11697 .page_size = 64 * 1024,
11698 .feature_bits = FEATURE_EITHER_RESET,
11699 .tested = TEST_OK_PR,
11700 .probe = probe_jedec,
11701 .probe_timing = 10,
11702 .block_erasers =
11703 {
11704 {
11705 .eraseblocks = { {4 * 1024, 128} },
11706 .block_erase = erase_block_jedec,
11707 }, {
11708 .eraseblocks = { {64 * 1024, 8} },
11709 .block_erase = erase_sector_jedec,
11710 }, {
11711 .eraseblocks = { {512 * 1024, 1} },
11712 .block_erase = erase_chip_block_jedec,
11713 }
11714 },
11715 .printlock = printlock_w39l040,
11716 .write = write_jedec_1,
11717 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011718 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000011719 },
11720
11721 {
11722 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011723 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011724 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011725 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011726 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011727 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011728 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011729 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011730 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011731 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000011732 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011733 .block_erasers =
11734 {
11735 {
11736 .eraseblocks = { {64 * 1024, 8} },
11737 .block_erase = erase_sector_jedec,
11738 }, {
11739 .eraseblocks = { {512 * 1024, 1} },
11740 .block_erase = erase_chip_block_jedec,
11741 }
11742 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011743 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000011744 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011745 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011746 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011747 },
11748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011749 {
11750 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011751 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011752 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011753 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011754 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011755 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011756 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011757 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011758 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011759 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000011760 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011761 .block_erasers =
11762 {
11763 {
11764 .eraseblocks = { {64 * 1024, 8} },
11765 .block_erase = erase_sector_jedec,
11766 }, {
11767 .eraseblocks = { {512 * 1024, 1} },
11768 .block_erase = erase_chip_block_jedec,
11769 }
11770 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011771 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000011772 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011774 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011775 },
11776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011777 {
11778 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011779 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011780 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011781 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011782 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011783 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011784 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011785 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011786 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011787 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011788 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011789 .block_erasers =
11790 {
11791 {
11792 .eraseblocks = { {64 * 1024, 8} },
11793 .block_erase = erase_sector_jedec,
11794 }, {
11795 .eraseblocks = { {512 * 1024, 1} },
11796 .block_erase = erase_chip_block_jedec,
11797 }
11798 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011799 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000011800 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011802 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011803 },
11804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011805 {
11806 .vendor = "Winbond",
11807 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011808 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011809 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011810 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011811 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011812 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000011813 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011814 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011815 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011816 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011817 .block_erasers =
11818 {
11819 {
11820 .eraseblocks = { {4 * 1024, 128} },
11821 .block_erase = erase_block_jedec,
11822 }, {
11823 .eraseblocks = { {64 * 1024, 8} },
11824 .block_erase = erase_sector_jedec,
11825 }, {
11826 .eraseblocks = { {512 * 1024, 1} },
11827 .block_erase = erase_chip_block_jedec,
11828 }
11829 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011830 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000011831 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000011832 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011834 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011835 },
11836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011837 {
11838 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011839 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011840 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011841 .manufacture_id = WINBOND_ID,
11842 .model_id = WINBOND_W39V040B,
11843 .total_size = 512,
11844 .page_size = 64 * 1024,
11845 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011846 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011847 .probe = probe_jedec,
11848 .probe_timing = 10,
11849 .block_erasers =
11850 {
11851 {
11852 .eraseblocks = { {64 * 1024, 8} },
11853 .block_erase = erase_sector_jedec,
11854 }, {
11855 .eraseblocks = { {512 * 1024, 1} },
11856 .block_erase = erase_chip_block_jedec,
11857 }
11858 },
11859 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000011860 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011861 .write = write_jedec_1,
11862 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011863 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011864 },
11865
11866 {
11867 .vendor = "Winbond",
11868 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011869 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011870 .manufacture_id = WINBOND_ID,
11871 .model_id = WINBOND_W39V040C,
11872 .total_size = 512,
11873 .page_size = 64 * 1024,
11874 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011875 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011876 .probe = probe_jedec,
11877 .probe_timing = 10,
11878 .block_erasers =
11879 {
11880 {
11881 .eraseblocks = { {64 * 1024, 8} },
11882 .block_erase = erase_sector_jedec,
11883 }, {
11884 .eraseblocks = { {512 * 1024, 1} },
11885 .block_erase = erase_chip_block_jedec,
11886 }
11887 },
11888 .printlock = printlock_w39v040fc,
11889 .write = write_jedec_1,
11890 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011891 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011892 },
11893
11894 {
11895 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011896 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011897 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011898 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011899 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011900 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000011901 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011902 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000011903 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011904 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000011905 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011906 .block_erasers =
11907 {
11908 {
11909 .eraseblocks = { {64 * 1024, 16} },
11910 .block_erase = erase_sector_jedec,
11911 }, {
11912 .eraseblocks = { {1024 * 1024, 1} },
11913 .block_erase = erase_chip_block_jedec,
11914 }
11915 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011916 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000011917 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011919 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011920 },
11921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011922 {
11923 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011924 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011925 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011926 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011927 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011928 .total_size = 256,
11929 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011930 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011931 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011932 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011933 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011934 .block_erasers =
11935 {
11936 {
11937 .eraseblocks = {
11938 {128 * 1024, 1},
11939 {96 * 1024, 1},
11940 {8 * 1024, 2},
11941 {16 * 1024, 1},
11942 },
11943 .block_erase = erase_sector_jedec,
11944 }, {
11945 .eraseblocks = { {256 * 1024, 1} },
11946 .block_erase = erase_chip_block_jedec,
11947 }
11948 },
Sean Nelson35727f72010-01-28 23:55:12 +000011949 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011951 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011952 },
11953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011954 {
11955 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011956 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011957 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011958 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011959 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011960 .total_size = 256,
11961 .page_size = 128,
11962 .feature_bits = FEATURE_EITHER_RESET,
11963 .tested = TEST_OK_PROBE,
11964 .probe = probe_jedec,
11965 .probe_timing = 10,
11966 .block_erasers =
11967 {
11968 {
11969 .eraseblocks = { {256 * 1024, 1} },
11970 .block_erase = erase_chip_block_jedec,
11971 }
11972 },
11973 .write = write_jedec_1,
11974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011975 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011976 },
11977
11978 {
11979 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011980 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011981 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011982 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011983 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011984 .total_size = 256,
11985 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011986 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011987 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011988 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011989 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011990 .block_erasers =
11991 {
11992 {
11993 .eraseblocks = {
11994 {64 * 1024, 3},
11995 {32 * 1024, 1},
11996 {8 * 1024, 2},
11997 {16 * 1024, 1},
11998 },
11999 .block_erase = erase_sector_jedec,
12000 }, {
12001 .eraseblocks = { {256 * 1024, 1} },
12002 .block_erase = erase_chip_block_jedec,
12003 }
12004 },
Sean Nelson35727f72010-01-28 23:55:12 +000012005 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012006 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012007 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012008 },
12009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012010 {
12011 .vendor = "Winbond",
12012 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012013 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012014 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012015 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012016 .total_size = 256,
12017 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012018 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012019 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012020 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012021 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012022 .block_erasers =
12023 {
12024 {
12025 .eraseblocks = {
12026 {64 * 1024, 3},
12027 {32 * 1024, 1},
12028 {8 * 1024, 2},
12029 {16 * 1024, 1},
12030 },
12031 .block_erase = erase_sector_jedec,
12032 }, {
12033 .eraseblocks = { {256 * 1024, 1} },
12034 .block_erase = erase_chip_block_jedec,
12035 }
12036 },
Sean Nelson35727f72010-01-28 23:55:12 +000012037 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012038 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012039 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012040 },
12041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012042 {
12043 .vendor = "Winbond",
12044 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012045 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012046 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012047 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012048 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012049 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012050 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012051 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012052 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012053 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012054 .block_erasers =
12055 {
12056 {
12057 .eraseblocks = { {64 * 1024, 16}, },
12058 .block_erase = erase_sector_jedec,
12059 }, {
12060 .eraseblocks = { {1024 * 1024, 1} },
12061 .block_erase = erase_chip_block_jedec,
12062 }
12063 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012064 .printlock = printlock_w39v080fa,
12065 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012066 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012067 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012068 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012069 },
12070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012071 {
12072 .vendor = "Winbond",
12073 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012074 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012075 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012076 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012077 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012078 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012079 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012080 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012081 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012082 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012083 .block_erasers =
12084 {
12085 {
12086 .eraseblocks = { {64 * 1024, 8}, },
12087 .block_erase = erase_sector_jedec,
12088 }, {
12089 .eraseblocks = { {512 * 1024, 1} },
12090 .block_erase = erase_chip_block_jedec,
12091 }
12092 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012093 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012094 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012095 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012096 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012097 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012098
12099 {
12100 .vendor = "Unknown",
12101 .name = "SFDP-capable chip",
12102 .bustype = BUS_SPI,
12103 .manufacture_id = GENERIC_MANUF_ID,
12104 .model_id = SFDP_DEVICE_ID,
12105 /* We present our own "report this" text hence we do not
12106 * want the default "This flash part has status UNTESTED..."
12107 * text to be printed. */
12108 .tested = TEST_OK_PREW,
12109 .probe = probe_spi_sfdp,
12110 .unlock = spi_disable_blockprotect, /* is this safe? */
12111 .read = spi_chip_read,
12112 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000012113 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012114 /* Everything below will be set by the probing function. */
12115 .write = NULL,
12116 .total_size = 0,
12117 .page_size = 0,
12118 .feature_bits = 0,
12119 .block_erasers = {},
12120 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012121
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012122 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000012123 .vendor = "Programmer",
12124 .name = "Opaque flash chip",
12125 .bustype = BUS_PROG,
12126 .manufacture_id = PROGMANUF_ID,
12127 .model_id = PROGDEV_ID,
12128 .total_size = 0,
12129 .page_size = 256,
12130 /* probe is assumed to work, rest will be filled in by probe */
12131 .tested = TEST_OK_PROBE,
12132 .probe = probe_opaque,
12133 /* eraseblock sizes will be set by the probing function */
12134 .block_erasers =
12135 {
12136 {
12137 .block_erase = erase_opaque,
12138 }
12139 },
12140 .write = write_opaque,
12141 .read = read_opaque,
12142 },
12143
12144 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012145 .vendor = "AMIC",
12146 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012147 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012148 .manufacture_id = AMIC_ID,
12149 .model_id = GENERIC_DEVICE_ID,
12150 .total_size = 0,
12151 .page_size = 256,
12152 .tested = TEST_BAD_PREW,
12153 .probe = probe_spi_rdid4,
12154 .probe_timing = TIMING_ZERO,
12155 .write = NULL,
12156 .read = NULL,
12157 },
12158
12159 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012160 .vendor = "Atmel",
12161 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012162 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012163 .manufacture_id = ATMEL_ID,
12164 .model_id = GENERIC_DEVICE_ID,
12165 .total_size = 0,
12166 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012167 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012168 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012169 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012170 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012171 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012172 },
12173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012174 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000012175 .vendor = "Eon",
12176 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012177 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012178 .manufacture_id = EON_ID_NOPREFIX,
12179 .model_id = GENERIC_DEVICE_ID,
12180 .total_size = 0,
12181 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012182 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012183 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012184 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012185 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012186 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012187 },
12188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012189 {
12190 .vendor = "Macronix",
12191 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012192 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012193 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012194 .model_id = GENERIC_DEVICE_ID,
12195 .total_size = 0,
12196 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012197 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012198 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012199 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012200 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012201 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012202 },
12203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012204 {
12205 .vendor = "PMC",
12206 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012207 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012208 .manufacture_id = PMC_ID,
12209 .model_id = GENERIC_DEVICE_ID,
12210 .total_size = 0,
12211 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012212 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012213 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012214 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012215 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012216 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012217 },
12218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012219 {
12220 .vendor = "SST",
12221 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012222 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012223 .manufacture_id = SST_ID,
12224 .model_id = GENERIC_DEVICE_ID,
12225 .total_size = 0,
12226 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012227 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012228 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012229 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012230 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012231 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012232 },
12233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012234 {
12235 .vendor = "ST",
12236 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012237 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012238 .manufacture_id = ST_ID,
12239 .model_id = GENERIC_DEVICE_ID,
12240 .total_size = 0,
12241 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012242 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012243 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012244 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012245 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012246 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012247 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000012248
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012249 {
Sean Nelson118e1d62009-11-24 02:08:11 +000012250 .vendor = "Sanyo",
12251 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012252 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012253 .manufacture_id = SANYO_ID,
12254 .model_id = GENERIC_DEVICE_ID,
12255 .total_size = 0,
12256 .page_size = 256,
12257 .tested = TEST_BAD_PREW,
12258 .probe = probe_spi_rdid,
12259 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012260 .write = NULL,
12261 .read = NULL,
12262 },
12263
12264 {
Stefan Taunereb582572012-09-21 12:52:50 +000012265 .vendor = "Winbond",
12266 .name = "unknown Winbond (ex Nexcom) SPI chip",
12267 .bustype = BUS_SPI,
12268 .manufacture_id = WINBOND_NEX_ID,
12269 .model_id = GENERIC_DEVICE_ID,
12270 .total_size = 0,
12271 .page_size = 256,
12272 .tested = TEST_BAD_PREW,
12273 .probe = probe_spi_rdid,
12274 .probe_timing = TIMING_ZERO,
12275 .write = NULL,
12276 .read = NULL,
12277 },
12278
12279 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012280 .vendor = "Generic",
12281 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012282 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012283 .manufacture_id = GENERIC_MANUF_ID,
12284 .model_id = GENERIC_DEVICE_ID,
12285 .total_size = 0,
12286 .page_size = 256,
12287 .tested = TEST_BAD_PREW,
12288 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012289 .write = NULL,
12290 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000012291
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012292 {
12293 .vendor = "Generic",
12294 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012295 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012296 .manufacture_id = GENERIC_MANUF_ID,
12297 .model_id = GENERIC_DEVICE_ID,
12298 .total_size = 0,
12299 .page_size = 256,
12300 .tested = TEST_BAD_PREW,
12301 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012302 .write = NULL,
12303 },
12304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012305 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000012306};