blob: 238b29221aa5f094e30326bd9c3f3e7f2cd73670 [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 */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003859 /* QPI enable 0x38, disable 0xFF */
3860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003861 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003862 .probe = probe_spi_rdid,
3863 .probe_timing = TIMING_ZERO,
3864 .block_erasers =
3865 {
3866 {
3867 .eraseblocks = { {4 * 1024, 512} },
3868 .block_erase = spi_block_erase_20,
3869 }, {
3870 .eraseblocks = { {64 * 1024, 32} },
3871 .block_erase = spi_block_erase_d8,
3872 }, {
3873 .eraseblocks = { {1024 * 2048, 1} },
3874 .block_erase = spi_block_erase_60,
3875 }, {
3876 .eraseblocks = { {1024 * 2048, 1} },
3877 .block_erase = spi_block_erase_c7,
3878 }
3879 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003880 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
3881 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00003882 .write = spi_chip_write_256,
3883 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003884 .voltage = {2700, 3600},
3885 },
3886
3887 {
3888 .vendor = "Eon",
3889 .name = "EN25QH32",
3890 .bustype = BUS_SPI,
3891 .manufacture_id = EON_ID_NOPREFIX,
3892 .model_id = EON_EN25QH32,
3893 .total_size = 4096,
3894 .page_size = 256,
3895 /* supports SFDP */
3896 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003897 /* QPI enable 0x38, disable 0xFF */
3898 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003899 .tested = TEST_UNTESTED,
3900 .probe = probe_spi_rdid,
3901 .probe_timing = TIMING_ZERO,
3902 .block_erasers =
3903 {
3904 {
3905 .eraseblocks = { {4 * 1024, 1024} },
3906 .block_erase = spi_block_erase_20,
3907 }, {
3908 .eraseblocks = { {64 * 1024, 64} },
3909 .block_erase = spi_block_erase_d8,
3910 }, {
3911 .eraseblocks = { {1024 * 4096, 1} },
3912 .block_erase = spi_block_erase_60,
3913 }, {
3914 .eraseblocks = { {1024 * 4096, 1} },
3915 .block_erase = spi_block_erase_c7,
3916 }
3917 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00003918 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
3919 .unlock = spi_disable_blockprotect_bp3_srwd,
3920 .write = spi_chip_write_256,
3921 .read = spi_chip_read,
3922 .voltage = {2700, 3600},
3923 },
3924
3925 {
3926 .vendor = "Eon",
3927 .name = "EN25QH64",
3928 .bustype = BUS_SPI,
3929 .manufacture_id = EON_ID_NOPREFIX,
3930 .model_id = EON_EN25QH64,
3931 .total_size = 8192,
3932 .page_size = 256,
3933 /* supports SFDP */
3934 /* OTP: 512B total; enter 0x3A */
3935 /* QPI enable 0x38, disable 0xFF */
3936 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3937 .tested = TEST_UNTESTED,
3938 .probe = probe_spi_rdid,
3939 .probe_timing = TIMING_ZERO,
3940 .block_erasers = {
3941 {
3942 .eraseblocks = { {4 * 1024, 2048} },
3943 .block_erase = spi_block_erase_20,
3944 }, {
3945 .eraseblocks = { {64 * 1024, 128} },
3946 .block_erase = spi_block_erase_d8,
3947 }, {
3948 .eraseblocks = { { 8192 * 1024, 1} },
3949 .block_erase = spi_block_erase_60,
3950 }, {
3951 .eraseblocks = { { 8192 * 1024, 1} },
3952 .block_erase = spi_block_erase_c7,
3953 }
3954 },
3955 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
3956 .unlock = spi_disable_blockprotect_bp3_srwd,
3957 .write = spi_chip_write_256,
3958 .read = spi_chip_read,
3959 .voltage = {2700, 3600},
3960 },
3961
3962 {
3963 .vendor = "Eon",
3964 .name = "EN25QH128",
3965 .bustype = BUS_SPI,
3966 .manufacture_id = EON_ID_NOPREFIX,
3967 .model_id = EON_EN25QH128,
3968 .total_size = 16384,
3969 .page_size = 256,
3970 /* supports SFDP */
3971 /* OTP: 512B total; enter 0x3A */
3972 /* QPI enable 0x38, disable 0xFF */
3973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3974 .tested = TEST_UNTESTED,
3975 .probe = probe_spi_rdid,
3976 .probe_timing = TIMING_ZERO,
3977 .block_erasers = {
3978 {
3979 .eraseblocks = { {4 * 1024, 4096} },
3980 .block_erase = spi_block_erase_20,
3981 }, {
3982 .eraseblocks = { {64 * 1024, 256} },
3983 .block_erase = spi_block_erase_d8,
3984 }, {
3985 .eraseblocks = { { 16384 * 1024, 1} },
3986 .block_erase = spi_block_erase_60,
3987 }, {
3988 .eraseblocks = { { 16384 * 1024, 1} },
3989 .block_erase = spi_block_erase_c7,
3990 }
3991 },
3992 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
3993 .unlock = spi_disable_blockprotect_bp3_srwd,
3994 .write = spi_chip_write_256,
3995 .read = spi_chip_read,
3996 .voltage = {2700, 3600},
3997 },
3998
3999 {
4000 .vendor = "Eon",
4001 .name = "EN25QH256",
4002 .bustype = BUS_SPI,
4003 .manufacture_id = EON_ID_NOPREFIX,
4004 .model_id = EON_EN25QH256,
4005 .total_size = 32768,
4006 .page_size = 256,
4007 /* supports SFDP */
4008 /* OTP: 512B total; enter 0x3A */
4009 /* QPI enable 0x38, disable 0xFF */
4010 /* EN4B: 0xB7, EX4B: 0xE9 */
4011 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4012 .tested = TEST_BAD_REW,
4013 .probe = probe_spi_rdid,
4014 .probe_timing = TIMING_ZERO,
4015 .block_erasers = {
4016 {
4017 .eraseblocks = { {4 * 1024, 8192} },
4018 .block_erase = spi_block_erase_20,
4019 }, {
4020 .eraseblocks = { {64 * 1024, 512} },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { { 32768 * 1024, 1} },
4024 .block_erase = spi_block_erase_60,
4025 }, {
4026 .eraseblocks = { { 32768 * 1024, 1} },
4027 .block_erase = spi_block_erase_c7,
4028 }
4029 },
4030 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4031 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004032 .write = spi_chip_write_256,
4033 .read = spi_chip_read,
4034 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004035 },
4036
4037 {
4038 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004039 .name = "EN25S10",
4040 .bustype = BUS_SPI,
4041 .manufacture_id = EON_ID_NOPREFIX,
4042 .model_id = EON_EN25S10,
4043 .total_size = 128,
4044 .page_size = 256,
4045 /* OTP: 256B total; enter 0x3A */
4046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4047 .tested = TEST_UNTESTED,
4048 .probe = probe_spi_rdid,
4049 .probe_timing = TIMING_ZERO,
4050 .block_erasers = {
4051 {
4052 .eraseblocks = { {4 * 1024, 32} },
4053 .block_erase = spi_block_erase_20,
4054 }, {
4055 .eraseblocks = { {32 * 1024, 4} },
4056 .block_erase = spi_block_erase_52,
4057 }, {
4058 .eraseblocks = { {128 * 1024, 1} },
4059 .block_erase = spi_block_erase_60,
4060 }, {
4061 .eraseblocks = { {128 * 1024, 1} },
4062 .block_erase = spi_block_erase_c7,
4063 }
4064 },
4065 .printlock = spi_prettyprint_status_register_default_bp2,
4066 .unlock = spi_disable_blockprotect,
4067 .write = spi_chip_write_256,
4068 .read = spi_chip_read,
4069 .voltage = {1650, 1950},
4070 },
4071
4072 {
4073 .vendor = "Eon",
4074 .name = "EN25S20",
4075 .bustype = BUS_SPI,
4076 .manufacture_id = EON_ID_NOPREFIX,
4077 .model_id = EON_EN25S20,
4078 .total_size = 256,
4079 .page_size = 256,
4080 /* OTP: 256B total; enter 0x3A */
4081 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4082 .tested = TEST_UNTESTED,
4083 .probe = probe_spi_rdid,
4084 .probe_timing = TIMING_ZERO,
4085 .block_erasers = {
4086 {
4087 .eraseblocks = { {4 * 1024, 64} },
4088 .block_erase = spi_block_erase_20,
4089 }, {
4090 .eraseblocks = { {64 * 1024, 4} },
4091 .block_erase = spi_block_erase_d8,
4092 }, {
4093 .eraseblocks = { {256 * 1024, 1} },
4094 .block_erase = spi_block_erase_60,
4095 }, {
4096 .eraseblocks = { {256 * 1024, 1} },
4097 .block_erase = spi_block_erase_c7,
4098 }
4099 },
4100 .printlock = spi_prettyprint_status_register_default_bp2,
4101 .unlock = spi_disable_blockprotect,
4102 .write = spi_chip_write_256,
4103 .read = spi_chip_read,
4104 .voltage = {1650, 1950},
4105 },
4106
4107 {
4108 .vendor = "Eon",
4109 .name = "EN25S40",
4110 .bustype = BUS_SPI,
4111 .manufacture_id = EON_ID_NOPREFIX,
4112 .model_id = EON_EN25S40,
4113 .total_size = 512,
4114 .page_size = 256,
4115 /* OTP: 256B total; enter 0x3A */
4116 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4117 .tested = TEST_UNTESTED,
4118 .probe = probe_spi_rdid,
4119 .probe_timing = TIMING_ZERO,
4120 .block_erasers = {
4121 {
4122 .eraseblocks = { {4 * 1024, 128} },
4123 .block_erase = spi_block_erase_20,
4124 }, {
4125 .eraseblocks = { {64 * 1024, 8} },
4126 .block_erase = spi_block_erase_d8,
4127 }, {
4128 .eraseblocks = { {512 * 1024, 1} },
4129 .block_erase = spi_block_erase_60,
4130 }, {
4131 .eraseblocks = { {512 * 1024, 1} },
4132 .block_erase = spi_block_erase_c7,
4133 }
4134 },
4135 .printlock = spi_prettyprint_status_register_default_bp2,
4136 .unlock = spi_disable_blockprotect,
4137 .write = spi_chip_write_256,
4138 .read = spi_chip_read,
4139 .voltage = {1650, 1950},
4140 },
4141
4142 {
4143 .vendor = "Eon",
4144 .name = "EN25S80",
4145 .bustype = BUS_SPI,
4146 .manufacture_id = EON_ID_NOPREFIX,
4147 .model_id = EON_EN25S80,
4148 .total_size = 1024,
4149 .page_size = 256,
4150 /* OTP: 256B total; enter 0x3A */
4151 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4152 .tested = TEST_UNTESTED,
4153 .probe = probe_spi_rdid,
4154 .probe_timing = TIMING_ZERO,
4155 .block_erasers = {
4156 {
4157 .eraseblocks = { {4 * 1024, 256} },
4158 .block_erase = spi_block_erase_20,
4159 }, {
4160 .eraseblocks = { {64 * 1024, 16} },
4161 .block_erase = spi_block_erase_d8,
4162 }, {
4163 .eraseblocks = { {1024 * 1024, 1} },
4164 .block_erase = spi_block_erase_60,
4165 }, {
4166 .eraseblocks = { {1024 * 1024, 1} },
4167 .block_erase = spi_block_erase_c7,
4168 }
4169 },
4170 .printlock = spi_prettyprint_status_register_default_bp2,
4171 .unlock = spi_disable_blockprotect,
4172 .write = spi_chip_write_256,
4173 .read = spi_chip_read,
4174 .voltage = {1650, 1950},
4175 },
4176
4177 {
4178 .vendor = "Eon",
4179 .name = "EN25S16",
4180 .bustype = BUS_SPI,
4181 .manufacture_id = EON_ID_NOPREFIX,
4182 .model_id = EON_EN25S16,
4183 .total_size = 2048,
4184 .page_size = 256,
4185 /* OTP: 512B total; enter 0x3A */
4186 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4187 .tested = TEST_UNTESTED,
4188 .probe = probe_spi_rdid,
4189 .probe_timing = TIMING_ZERO,
4190 .block_erasers = {
4191 {
4192 .eraseblocks = { {4 * 1024, 512} },
4193 .block_erase = spi_block_erase_20,
4194 }, {
4195 .eraseblocks = { {64 * 1024, 32} },
4196 .block_erase = spi_block_erase_52,
4197 }, {
4198 .eraseblocks = { {32 * 1024, 64} },
4199 .block_erase = spi_block_erase_d8,
4200 }, {
4201 .eraseblocks = { {2048 * 1024, 1} },
4202 .block_erase = spi_block_erase_60,
4203 }, {
4204 .eraseblocks = { {2048 * 1024, 1} },
4205 .block_erase = spi_block_erase_c7,
4206 }
4207 },
4208 .printlock = spi_prettyprint_status_register_en25s_wp,
4209 .unlock = spi_disable_blockprotect_bp3_srwd,
4210 .write = spi_chip_write_256,
4211 .read = spi_chip_read,
4212 .voltage = {1650, 1950},
4213 },
4214
4215 {
4216 .vendor = "Eon",
4217 .name = "EN25S32",
4218 .bustype = BUS_SPI,
4219 .manufacture_id = EON_ID_NOPREFIX,
4220 .model_id = EON_EN25S32,
4221 .total_size = 4096,
4222 .page_size = 256,
4223 /* OTP: 512B total; enter 0x3A */
4224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4225 .tested = TEST_UNTESTED,
4226 .probe = probe_spi_rdid,
4227 .probe_timing = TIMING_ZERO,
4228 .block_erasers = {
4229 {
4230 .eraseblocks = { {4 * 1024, 1024} },
4231 .block_erase = spi_block_erase_20,
4232 }, {
4233 .eraseblocks = { {32 * 1024, 128} },
4234 .block_erase = spi_block_erase_52,
4235 }, {
4236 .eraseblocks = { {64 * 1024, 64} },
4237 .block_erase = spi_block_erase_d8,
4238 }, {
4239 .eraseblocks = { {4096 * 1024, 1} },
4240 .block_erase = spi_block_erase_60,
4241 }, {
4242 .eraseblocks = { {4096 * 1024, 1} },
4243 .block_erase = spi_block_erase_c7,
4244 }
4245 },
4246 .printlock = spi_prettyprint_status_register_en25s_wp,
4247 .unlock = spi_disable_blockprotect_bp3_srwd,
4248 .write = spi_chip_write_256,
4249 .read = spi_chip_read,
4250 .voltage = {1650, 1950},
4251 },
4252
4253 {
4254 .vendor = "Eon",
4255 .name = "EN25S64",
4256 .bustype = BUS_SPI,
4257 .manufacture_id = EON_ID_NOPREFIX,
4258 .model_id = EON_EN25S64,
4259 .total_size = 8192,
4260 .page_size = 256,
4261 /* OTP: 512B total; enter 0x3A */
4262 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4263 .tested = TEST_UNTESTED,
4264 .probe = probe_spi_rdid,
4265 .probe_timing = TIMING_ZERO,
4266 .block_erasers = {
4267 {
4268 .eraseblocks = { {4 * 1024, 2048} },
4269 .block_erase = spi_block_erase_20,
4270 }, {
4271 .eraseblocks = { {64 * 1024, 128} },
4272 .block_erase = spi_block_erase_d8,
4273 }, {
4274 .eraseblocks = { {8192 * 1024, 1} },
4275 .block_erase = spi_block_erase_60,
4276 }, {
4277 .eraseblocks = { {8192 * 1024, 1} },
4278 .block_erase = spi_block_erase_c7,
4279 }
4280 },
4281 .printlock = spi_prettyprint_status_register_en25s_wp,
4282 .unlock = spi_disable_blockprotect_bp3_srwd,
4283 .write = spi_chip_write_256,
4284 .read = spi_chip_read,
4285 .voltage = {1650, 1950},
4286 },
4287
4288 {
4289 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004290 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004291 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004292 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004293 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004294 .total_size = 128,
4295 .page_size = 128,
4296 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004297 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004298 .probe = probe_jedec,
4299 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4300 .block_erasers =
4301 {
4302 {
4303 .eraseblocks = { {16 * 1024, 8} },
4304 .block_erase = erase_sector_jedec,
4305 },
4306 {
4307 .eraseblocks = { {128 * 1024, 1} },
4308 .block_erase = erase_chip_block_jedec,
4309 },
4310 },
4311 .write = write_jedec_1,
4312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004313 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004314 },
4315
4316 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004317 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004318 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004319 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004320 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004321 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004322 .total_size = 256,
4323 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004324 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004325 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004326 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004327 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004328 .block_erasers =
4329 {
4330 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004331 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004332 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004333 {8 * 1024, 2},
4334 {32 * 1024, 1},
4335 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004336 },
4337 .block_erase = erase_sector_jedec,
4338 }, {
4339 .eraseblocks = { {256 * 1024, 1} },
4340 .block_erase = erase_chip_block_jedec,
4341 },
4342 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004343 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004345 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004346 },
4347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004348 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004349 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004350 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004351 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004352 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004353 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004354 .total_size = 256,
4355 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004356 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004357 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004358 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004359 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004360 .block_erasers =
4361 {
4362 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004363 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004364 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004365 {32 * 1024, 1},
4366 {8 * 1024, 2},
4367 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004368 },
4369 .block_erase = erase_sector_jedec,
4370 }, {
4371 .eraseblocks = { {256 * 1024, 1} },
4372 .block_erase = erase_chip_block_jedec,
4373 },
4374 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004375 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004376 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004377 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004378 },
4379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004380 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004381 .vendor = "Eon",
4382 .name = "EN29LV640B",
4383 .bustype = BUS_PARALLEL,
4384 .manufacture_id = EON_ID,
4385 .model_id = EON_EN29LV640B,
4386 .total_size = 8192,
4387 .page_size = 8192,
4388 .feature_bits = 0,
4389 .tested = TEST_OK_PREW,
4390 .probe = probe_en29lv640b,
4391 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4392 .block_erasers =
4393 {
4394 {
4395 .eraseblocks = {
4396 {8 * 1024, 8},
4397 {64 * 1024, 127},
4398 },
4399 .block_erase = block_erase_en29lv640b,
4400 }, {
4401 .eraseblocks = { {8 * 1024 * 1024, 1} },
4402 .block_erase = block_erase_chip_en29lv640b,
4403 },
4404 },
4405 .write = write_en29lv640b,
4406 .read = read_memmapped,
4407 .voltage = {2700, 3600},
4408 },
4409
4410 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004411 .vendor = "Fujitsu",
4412 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004413 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004414 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004415 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004416 .total_size = 512,
4417 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004418 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004419 .tested = TEST_UNTESTED,
4420 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004421 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004422 .block_erasers =
4423 {
4424 {
4425 .eraseblocks = {
4426 {16 * 1024, 1},
4427 {8 * 1024, 2},
4428 {32 * 1024, 1},
4429 {64 * 1024, 7},
4430 },
Sean Nelson35727f72010-01-28 23:55:12 +00004431 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004432 }, {
4433 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004434 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004435 },
4436 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004437 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004438 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004439 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004440 },
4441
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004442 {
4443 .vendor = "Fujitsu",
4444 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004445 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004446 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004447 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004448 .total_size = 512,
4449 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004450 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004451 .tested = TEST_UNTESTED,
4452 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004453 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004454 .block_erasers =
4455 {
4456 {
4457 .eraseblocks = {
4458 {64 * 1024, 7},
4459 {32 * 1024, 1},
4460 {8 * 1024, 2},
4461 {16 * 1024, 1},
4462 },
Sean Nelson35727f72010-01-28 23:55:12 +00004463 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004464 }, {
4465 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004466 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004467 },
4468 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004469 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004470 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004471 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004472 },
4473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004474 {
Sean Nelson35727f72010-01-28 23:55:12 +00004475 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004476 .vendor = "Fujitsu",
4477 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004478 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004479 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004480 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004481 .total_size = 512,
4482 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004483 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004484 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004485 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004486 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004487 .block_erasers =
4488 {
4489 {
4490 .eraseblocks = {
4491 {16 * 1024, 1},
4492 {8 * 1024, 2},
4493 {32 * 1024, 1},
4494 {64 * 1024, 7},
4495 },
4496 .block_erase = block_erase_m29f400bt,
4497 }, {
4498 .eraseblocks = { {512 * 1024, 1} },
4499 .block_erase = block_erase_chip_m29f400bt,
4500 },
4501 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004502 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004503 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004504 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004505 },
4506
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004507 {
4508 .vendor = "Fujitsu",
4509 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004510 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004511 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004512 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004513 .total_size = 512,
4514 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004515 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004516 .tested = TEST_UNTESTED,
4517 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004518 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004519 .block_erasers =
4520 {
4521 {
4522 .eraseblocks = {
4523 {64 * 1024, 7},
4524 {32 * 1024, 1},
4525 {8 * 1024, 2},
4526 {16 * 1024, 1},
4527 },
4528 .block_erase = block_erase_m29f400bt,
4529 }, {
4530 .eraseblocks = { {512 * 1024, 1} },
4531 .block_erase = block_erase_chip_m29f400bt,
4532 },
4533 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004534 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004535 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004536 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004537 },
4538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004539 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004540 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004541 .name = "GD25LQ32",
4542 .bustype = BUS_SPI,
4543 .manufacture_id = GIGADEVICE_ID,
4544 .model_id = GIGADEVICE_GD25LQ32,
4545 .total_size = 4096,
4546 .page_size = 256,
4547 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4548 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4549 .tested = TEST_OK_PREW,
4550 .probe = probe_spi_rdid,
4551 .probe_timing = TIMING_ZERO,
4552 .block_erasers =
4553 {
4554 {
4555 .eraseblocks = { {4 * 1024, 1024} },
4556 .block_erase = spi_block_erase_20,
4557 }, {
4558 .eraseblocks = { {32 * 1024, 128} },
4559 .block_erase = spi_block_erase_52,
4560 }, {
4561 .eraseblocks = { {64 * 1024, 64} },
4562 .block_erase = spi_block_erase_d8,
4563 }, {
4564 .eraseblocks = { {4 * 1024 * 1024, 1} },
4565 .block_erase = spi_block_erase_60,
4566 }, {
4567 .eraseblocks = { {4 * 1024 * 1024, 1} },
4568 .block_erase = spi_block_erase_c7,
4569 }
4570 },
4571 .printlock = spi_prettyprint_status_register_default_bp4,
4572 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4573 .write = spi_chip_write_256,
4574 .read = spi_chip_read,
4575 .voltage = {1700, 1950},
4576 },
4577
4578 {
4579 .vendor = "GigaDevice",
4580 .name = "GD25Q512",
4581 .bustype = BUS_SPI,
4582 .manufacture_id = GIGADEVICE_ID,
4583 .model_id = GIGADEVICE_GD25Q512,
4584 .total_size = 64,
4585 .page_size = 256,
4586 .feature_bits = FEATURE_WRSR_WREN,
4587 .tested = TEST_UNTESTED,
4588 .probe = probe_spi_rdid,
4589 .probe_timing = TIMING_ZERO,
4590 .block_erasers = {
4591 {
4592 .eraseblocks = { {4 * 1024, 16} },
4593 .block_erase = spi_block_erase_20,
4594 }, {
4595 .eraseblocks = { {32 * 1024, 2} },
4596 .block_erase = spi_block_erase_52,
4597 }, {
4598 .eraseblocks = { {64 * 1024, 1} },
4599 .block_erase = spi_block_erase_60,
4600 }, {
4601 .eraseblocks = { {64 * 1024, 1} },
4602 .block_erase = spi_block_erase_c7,
4603 }
4604 },
4605 .printlock = spi_prettyprint_status_register_default_bp4,
4606 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4607 .write = spi_chip_write_256,
4608 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4609 .voltage = {2700, 3600},
4610 },
4611
4612 {
4613 .vendor = "GigaDevice",
4614 .name = "GD25Q10",
4615 .bustype = BUS_SPI,
4616 .manufacture_id = GIGADEVICE_ID,
4617 .model_id = GIGADEVICE_GD25Q10,
4618 .total_size = 128,
4619 .page_size = 256,
4620 .feature_bits = FEATURE_WRSR_WREN,
4621 .tested = TEST_UNTESTED,
4622 .probe = probe_spi_rdid,
4623 .probe_timing = TIMING_ZERO,
4624 .block_erasers = {
4625 {
4626 .eraseblocks = { {4 * 1024, 32} },
4627 .block_erase = spi_block_erase_20,
4628 }, {
4629 .eraseblocks = { {32 * 1024, 4} },
4630 .block_erase = spi_block_erase_52,
4631 }, {
4632 .eraseblocks = { {64 * 1024, 2} },
4633 .block_erase = spi_block_erase_d8,
4634 }, {
4635 .eraseblocks = { {128 * 1024, 1} },
4636 .block_erase = spi_block_erase_60,
4637 }, {
4638 .eraseblocks = { {128 * 1024, 1} },
4639 .block_erase = spi_block_erase_c7,
4640 }
4641 },
4642 .printlock = spi_prettyprint_status_register_default_bp4,
4643 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4644 .write = spi_chip_write_256,
4645 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4646 .voltage = {2700, 3600},
4647 },
4648
4649 {
4650 .vendor = "GigaDevice",
4651 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004652 .bustype = BUS_SPI,
4653 .manufacture_id = GIGADEVICE_ID,
4654 .model_id = GIGADEVICE_GD25Q20,
4655 .total_size = 256,
4656 .page_size = 256,
4657 .feature_bits = FEATURE_WRSR_WREN,
4658 .tested = TEST_UNTESTED,
4659 .probe = probe_spi_rdid,
4660 .probe_timing = TIMING_ZERO,
4661 .block_erasers =
4662 {
4663 {
4664 .eraseblocks = { {4 * 1024, 64} },
4665 .block_erase = spi_block_erase_20,
4666 }, {
4667 .eraseblocks = { {32 * 1024, 8} },
4668 .block_erase = spi_block_erase_52,
4669 }, {
4670 .eraseblocks = { {64 * 1024, 4} },
4671 .block_erase = spi_block_erase_d8,
4672 }, {
4673 .eraseblocks = { {256 * 1024, 1} },
4674 .block_erase = spi_block_erase_60,
4675 }, {
4676 .eraseblocks = { {256 * 1024, 1} },
4677 .block_erase = spi_block_erase_c7,
4678 }
4679 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004680 .printlock = spi_prettyprint_status_register_default_bp4,
4681 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004682 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004683 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004684 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004685 },
4686
4687 {
4688 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004689 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004690 .bustype = BUS_SPI,
4691 .manufacture_id = GIGADEVICE_ID,
4692 .model_id = GIGADEVICE_GD25Q40,
4693 .total_size = 512,
4694 .page_size = 256,
4695 .feature_bits = FEATURE_WRSR_WREN,
4696 .tested = TEST_UNTESTED,
4697 .probe = probe_spi_rdid,
4698 .probe_timing = TIMING_ZERO,
4699 .block_erasers =
4700 {
4701 {
4702 .eraseblocks = { {4 * 1024, 128} },
4703 .block_erase = spi_block_erase_20,
4704 }, {
4705 .eraseblocks = { {32 * 1024, 16} },
4706 .block_erase = spi_block_erase_52,
4707 }, {
4708 .eraseblocks = { {64 * 1024, 8} },
4709 .block_erase = spi_block_erase_d8,
4710 }, {
4711 .eraseblocks = { {512 * 1024, 1} },
4712 .block_erase = spi_block_erase_60,
4713 }, {
4714 .eraseblocks = { {512 * 1024, 1} },
4715 .block_erase = spi_block_erase_c7,
4716 }
4717 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004718 .printlock = spi_prettyprint_status_register_default_bp4,
4719 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004720 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004721 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00004722 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004723 },
4724
4725 {
4726 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004727 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004728 .bustype = BUS_SPI,
4729 .manufacture_id = GIGADEVICE_ID,
4730 .model_id = GIGADEVICE_GD25Q80,
4731 .total_size = 1024,
4732 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004733 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004734 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4735 .tested = TEST_OK_PREW,
4736 .probe = probe_spi_rdid,
4737 .probe_timing = TIMING_ZERO,
4738 .block_erasers =
4739 {
4740 {
4741 .eraseblocks = { {4 * 1024, 256} },
4742 .block_erase = spi_block_erase_20,
4743 }, {
4744 .eraseblocks = { {32 * 1024, 32} },
4745 .block_erase = spi_block_erase_52,
4746 }, {
4747 .eraseblocks = { {64 * 1024, 16} },
4748 .block_erase = spi_block_erase_d8,
4749 }, {
4750 .eraseblocks = { {1024 * 1024, 1} },
4751 .block_erase = spi_block_erase_60,
4752 }, {
4753 .eraseblocks = { {1024 * 1024, 1} },
4754 .block_erase = spi_block_erase_c7,
4755 }
4756 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004757 .printlock = spi_prettyprint_status_register_default_bp4,
4758 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004759 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004760 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004761 .voltage = {2700, 3600},
4762 },
4763
4764 {
4765 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004766 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004767 .bustype = BUS_SPI,
4768 .manufacture_id = GIGADEVICE_ID,
4769 .model_id = GIGADEVICE_GD25Q16,
4770 .total_size = 2048,
4771 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004772 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004773 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4774 .tested = TEST_UNTESTED,
4775 .probe = probe_spi_rdid,
4776 .probe_timing = TIMING_ZERO,
4777 .block_erasers =
4778 {
4779 {
4780 .eraseblocks = { {4 * 1024, 512} },
4781 .block_erase = spi_block_erase_20,
4782 }, {
4783 .eraseblocks = { {32 * 1024, 64} },
4784 .block_erase = spi_block_erase_52,
4785 }, {
4786 .eraseblocks = { {64 * 1024, 32} },
4787 .block_erase = spi_block_erase_d8,
4788 }, {
4789 .eraseblocks = { {2 * 1024 * 1024, 1} },
4790 .block_erase = spi_block_erase_60,
4791 }, {
4792 .eraseblocks = { {2 * 1024 * 1024, 1} },
4793 .block_erase = spi_block_erase_c7,
4794 }
4795 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004796 .printlock = spi_prettyprint_status_register_default_bp4,
4797 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004798 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004799 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004800 .voltage = {2700, 3600},
4801 },
4802
4803 {
4804 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004805 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004806 .bustype = BUS_SPI,
4807 .manufacture_id = GIGADEVICE_ID,
4808 .model_id = GIGADEVICE_GD25Q32,
4809 .total_size = 4096,
4810 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004811 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004812 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4813 .tested = TEST_UNTESTED,
4814 .probe = probe_spi_rdid,
4815 .probe_timing = TIMING_ZERO,
4816 .block_erasers =
4817 {
4818 {
4819 .eraseblocks = { {4 * 1024, 1024} },
4820 .block_erase = spi_block_erase_20,
4821 }, {
4822 .eraseblocks = { {32 * 1024, 128} },
4823 .block_erase = spi_block_erase_52,
4824 }, {
4825 .eraseblocks = { {64 * 1024, 64} },
4826 .block_erase = spi_block_erase_d8,
4827 }, {
4828 .eraseblocks = { {4 * 1024 * 1024, 1} },
4829 .block_erase = spi_block_erase_60,
4830 }, {
4831 .eraseblocks = { {4 * 1024 * 1024, 1} },
4832 .block_erase = spi_block_erase_c7,
4833 }
4834 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004835 .printlock = spi_prettyprint_status_register_default_bp4,
4836 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004837 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004838 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004839 .voltage = {2700, 3600},
4840 },
4841
4842 {
4843 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004844 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004845 .bustype = BUS_SPI,
4846 .manufacture_id = GIGADEVICE_ID,
4847 .model_id = GIGADEVICE_GD25Q64,
4848 .total_size = 8192,
4849 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004850 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004851 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004852 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004853 .probe = probe_spi_rdid,
4854 .probe_timing = TIMING_ZERO,
4855 .block_erasers =
4856 {
4857 {
4858 .eraseblocks = { {4 * 1024, 2048} },
4859 .block_erase = spi_block_erase_20,
4860 }, {
4861 .eraseblocks = { {32 * 1024, 256} },
4862 .block_erase = spi_block_erase_52,
4863 }, {
4864 .eraseblocks = { {64 * 1024, 128} },
4865 .block_erase = spi_block_erase_d8,
4866 }, {
4867 .eraseblocks = { {8 * 1024 * 1024, 1} },
4868 .block_erase = spi_block_erase_60,
4869 }, {
4870 .eraseblocks = { {8 * 1024 * 1024, 1} },
4871 .block_erase = spi_block_erase_c7,
4872 }
4873 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004874 .printlock = spi_prettyprint_status_register_default_bp4,
4875 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004876 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004877 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00004878 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004879 },
4880
4881 {
4882 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004883 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004884 .bustype = BUS_SPI,
4885 .manufacture_id = GIGADEVICE_ID,
4886 .model_id = GIGADEVICE_GD25Q128,
4887 .total_size = 16384,
4888 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004889 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004890 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4891 .tested = TEST_UNTESTED,
4892 .probe = probe_spi_rdid,
4893 .probe_timing = TIMING_ZERO,
4894 .block_erasers =
4895 {
4896 {
4897 .eraseblocks = { {4 * 1024, 4096} },
4898 .block_erase = spi_block_erase_20,
4899 }, {
4900 .eraseblocks = { {32 * 1024, 512} },
4901 .block_erase = spi_block_erase_52,
4902 }, {
4903 .eraseblocks = { {64 * 1024, 256} },
4904 .block_erase = spi_block_erase_d8,
4905 }, {
4906 .eraseblocks = { {16 * 1024 * 1024, 1} },
4907 .block_erase = spi_block_erase_60,
4908 }, {
4909 .eraseblocks = { {16 * 1024 * 1024, 1} },
4910 .block_erase = spi_block_erase_c7,
4911 }
4912 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004913 .printlock = spi_prettyprint_status_register_default_bp4,
4914 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4915 .write = spi_chip_write_256,
4916 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4917 .voltage = {2700, 3600},
4918 },
4919
4920 {
4921 .vendor = "GigaDevice",
4922 .name = "GD25T80",
4923 .bustype = BUS_SPI,
4924 .manufacture_id = GIGADEVICE_ID,
4925 .model_id = GIGADEVICE_GD25T80,
4926 .total_size = 1024,
4927 .page_size = 256,
4928 /* OTP: 256B total; enter 0x3A */
4929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4930 .tested = TEST_UNTESTED,
4931 .probe = probe_spi_rdid,
4932 .probe_timing = TIMING_ZERO,
4933 .block_erasers = {
4934 {
4935 .eraseblocks = { {4 * 1024, 256} },
4936 .block_erase = spi_block_erase_20,
4937 }, {
4938 .eraseblocks = { {64 * 1024, 16} },
4939 .block_erase = spi_block_erase_52,
4940 }, {
4941 .eraseblocks = { {64 * 1024, 16} },
4942 .block_erase = spi_block_erase_d8,
4943 }, {
4944 .eraseblocks = { {1024 * 1024, 1} },
4945 .block_erase = spi_block_erase_60,
4946 }, {
4947 .eraseblocks = { {1024 * 1024, 1} },
4948 .block_erase = spi_block_erase_c7,
4949 }
4950 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004951 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004952 .unlock = spi_disable_blockprotect,
4953 .write = spi_chip_write_256,
4954 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004955 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004956 },
4957
4958 {
David Borgc96a8bd2010-06-21 16:12:22 +00004959 .vendor = "Hyundai",
4960 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004961 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004962 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004963 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004964 .total_size = 256,
4965 .page_size = 256 * 1024,
4966 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004967 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004968 .probe = probe_jedec,
4969 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4970 .block_erasers =
4971 {
4972 {
4973 .eraseblocks = {
4974 {64 * 1024, 3},
4975 {32 * 1024, 1},
4976 {8 * 1024, 2},
4977 {16 * 1024, 1},
4978 },
4979 .block_erase = erase_sector_jedec,
4980 }, {
4981 .eraseblocks = { {256 * 1024, 1} },
4982 .block_erase = erase_chip_block_jedec,
4983 },
4984 },
4985 .write = write_jedec_1,
4986 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004987 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004988 },
4989
4990 {
4991 .vendor = "Hyundai",
4992 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004993 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004994 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004995 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004996 .total_size = 256,
4997 .page_size = 256 * 1024,
4998 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4999 .tested = TEST_UNTESTED,
5000 .probe = probe_jedec,
5001 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5002 .block_erasers =
5003 {
5004 {
5005 .eraseblocks = {
5006 {16 * 1024, 1},
5007 {8 * 1024, 2},
5008 {32 * 1024, 1},
5009 {64 * 1024, 3},
5010 },
5011 .block_erase = erase_sector_jedec,
5012 }, {
5013 .eraseblocks = { {256 * 1024, 1} },
5014 .block_erase = erase_chip_block_jedec,
5015 },
5016 },
5017 .write = write_jedec_1,
5018 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005019 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005020 },
5021
5022 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005023 .vendor = "Hyundai",
5024 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005025 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005026 .manufacture_id = HYUNDAI_ID,
5027 .model_id = HYUNDAI_HY29F040A,
5028 .total_size = 512,
5029 .page_size = 64 * 1024,
5030 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5031 .tested = TEST_UNTESTED,
5032 .probe = probe_jedec,
5033 .probe_timing = TIMING_ZERO,
5034 .block_erasers =
5035 {
5036 {
5037 .eraseblocks = { {64 * 1024, 8} },
5038 .block_erase = erase_sector_jedec,
5039 }, {
5040 .eraseblocks = { {512 * 1024, 1} },
5041 .block_erase = erase_chip_block_jedec,
5042 },
5043 },
5044 .write = write_jedec_1,
5045 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005046 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005047 },
5048
5049 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005050 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005051 .name = "25F160S33B8",
5052 .bustype = BUS_SPI,
5053 .manufacture_id = INTEL_ID,
5054 .model_id = INTEL_25F160S33B8,
5055 .total_size = 2048,
5056 .page_size = 256,
5057 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5059 .tested = TEST_UNTESTED,
5060 .probe = probe_spi_rdid,
5061 .probe_timing = TIMING_ZERO,
5062 .block_erasers =
5063 {
5064 {
5065 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5066 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5067 * have no effect on the memory contents, but sets a flag in the SR.
5068 .eraseblocks = {
5069 {8 * 1024, 8},
5070 {64 * 1024, 31} // inaccessible
5071 },
5072 .block_erase = spi_block_erase_40,
5073 }, { */
5074 .eraseblocks = { {64 * 1024, 32} },
5075 .block_erase = spi_block_erase_d8,
5076 }, {
5077 .eraseblocks = { {2 * 1024 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
5081 .printlock = spi_prettyprint_status_register_s33,
5082 .unlock = spi_disable_blockprotect_s33,
5083 .write = spi_chip_write_256,
5084 .read = spi_chip_read, /* also fast read 0x0B */
5085 .voltage = {2700, 3600},
5086 },
5087
5088 {
5089 .vendor = "Intel",
5090 .name = "25F160S33T8",
5091 .bustype = BUS_SPI,
5092 .manufacture_id = INTEL_ID,
5093 .model_id = INTEL_25F160S33T8,
5094 .total_size = 2048,
5095 .page_size = 256,
5096 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5098 .tested = TEST_UNTESTED,
5099 .probe = probe_spi_rdid,
5100 .probe_timing = TIMING_ZERO,
5101 .block_erasers =
5102 {
5103 {
5104 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5105 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5106 * have no effect on the memory contents, but sets a flag in the SR.
5107 .eraseblocks = {
5108 {64 * 1024, 31}, // inaccessible
5109 {8 * 1024, 8}
5110 },
5111 .block_erase = spi_block_erase_40,
5112 }, { */
5113 .eraseblocks = { {64 * 1024, 32} },
5114 .block_erase = spi_block_erase_d8,
5115 }, {
5116 .eraseblocks = { {2 * 1024 * 1024, 1} },
5117 .block_erase = spi_block_erase_c7,
5118 }
5119 },
5120 .printlock = spi_prettyprint_status_register_s33,
5121 .unlock = spi_disable_blockprotect_s33,
5122 .write = spi_chip_write_256,
5123 .read = spi_chip_read, /* also fast read 0x0B */
5124 .voltage = {2700, 3600},
5125 },
5126
5127 {
5128 .vendor = "Intel",
5129 .name = "25F320S33B8",
5130 .bustype = BUS_SPI,
5131 .manufacture_id = INTEL_ID,
5132 .model_id = INTEL_25F320S33B8,
5133 .total_size = 4096,
5134 .page_size = 256,
5135 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5137 .tested = TEST_UNTESTED,
5138 .probe = probe_spi_rdid,
5139 .probe_timing = TIMING_ZERO,
5140 .block_erasers =
5141 {
5142 {
5143 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5144 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5145 * have no effect on the memory contents, but sets a flag in the SR.
5146 .eraseblocks = {
5147 {8 * 1024, 8},
5148 {64 * 1024, 63} // inaccessible
5149 },
5150 .block_erase = spi_block_erase_40,
5151 }, { */
5152 .eraseblocks = { {64 * 1024, 64} },
5153 .block_erase = spi_block_erase_d8,
5154 }, {
5155 .eraseblocks = { {4 * 1024 * 1024, 1} },
5156 .block_erase = spi_block_erase_c7,
5157 }
5158 },
5159 .printlock = spi_prettyprint_status_register_s33,
5160 .unlock = spi_disable_blockprotect_s33,
5161 .write = spi_chip_write_256,
5162 .read = spi_chip_read, /* also fast read 0x0B */
5163 .voltage = {2700, 3600},
5164 },
5165
5166 {
5167 .vendor = "Intel",
5168 .name = "25F320S33T8",
5169 .bustype = BUS_SPI,
5170 .manufacture_id = INTEL_ID,
5171 .model_id = INTEL_25F320S33T8,
5172 .total_size = 4096,
5173 .page_size = 256,
5174 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5176 .tested = TEST_UNTESTED,
5177 .probe = probe_spi_rdid,
5178 .probe_timing = TIMING_ZERO,
5179 .block_erasers =
5180 {
5181 {
5182 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5183 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5184 * have no effect on the memory contents, but sets a flag in the SR.
5185 .eraseblocks = {
5186 {64 * 1024, 63}, // inaccessible
5187 {8 * 1024, 8}
5188 },
5189 .block_erase = spi_block_erase_40,
5190 }, { */
5191 .eraseblocks = { {64 * 1024, 64} },
5192 .block_erase = spi_block_erase_d8,
5193 }, {
5194 .eraseblocks = { {4 * 1024 * 1024, 1} },
5195 .block_erase = spi_block_erase_c7,
5196 }
5197 },
5198 .printlock = spi_prettyprint_status_register_s33,
5199 .unlock = spi_disable_blockprotect_s33,
5200 .write = spi_chip_write_256,
5201 .read = spi_chip_read, /* also fast read 0x0B */
5202 .voltage = {2700, 3600},
5203 },
5204
5205 {
5206 .vendor = "Intel",
5207 .name = "25F640S33B8",
5208 .bustype = BUS_SPI,
5209 .manufacture_id = INTEL_ID,
5210 .model_id = INTEL_25F640S33B8,
5211 .total_size = 8192,
5212 .page_size = 256,
5213 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5215 .tested = TEST_UNTESTED,
5216 .probe = probe_spi_rdid,
5217 .probe_timing = TIMING_ZERO,
5218 .block_erasers =
5219 {
5220 {
5221 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5222 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5223 * have no effect on the memory contents, but sets a flag in the SR.
5224 .eraseblocks = {
5225 {8 * 1024, 8},
5226 {64 * 1024, 127} // inaccessible
5227 },
5228 .block_erase = spi_block_erase_40,
5229 }, { */
5230 .eraseblocks = { {64 * 1024, 128} },
5231 .block_erase = spi_block_erase_d8,
5232 }, {
5233 .eraseblocks = { {8 * 1024 * 1024, 1} },
5234 .block_erase = spi_block_erase_c7,
5235 }
5236 },
5237 .printlock = spi_prettyprint_status_register_s33,
5238 .unlock = spi_disable_blockprotect_s33,
5239 .write = spi_chip_write_256,
5240 .read = spi_chip_read, /* also fast read 0x0B */
5241 .voltage = {2700, 3600},
5242 },
5243
5244 {
5245 .vendor = "Intel",
5246 .name = "25F640S33T8",
5247 .bustype = BUS_SPI,
5248 .manufacture_id = INTEL_ID,
5249 .model_id = INTEL_25F640S33T8,
5250 .total_size = 8192,
5251 .page_size = 256,
5252 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5254 .tested = TEST_UNTESTED,
5255 .probe = probe_spi_rdid,
5256 .probe_timing = TIMING_ZERO,
5257 .block_erasers =
5258 {
5259 {
5260 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5261 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5262 * have no effect on the memory contents, but sets a flag in the SR.
5263 .eraseblocks = {
5264 {64 * 1024, 127}, // inaccessible
5265 {8 * 1024, 8}
5266 },
5267 .block_erase = spi_block_erase_40,
5268 }, { */
5269 .eraseblocks = { {64 * 1024, 128} },
5270 .block_erase = spi_block_erase_d8,
5271 }, {
5272 .eraseblocks = { {8 * 1024 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
5276 .printlock = spi_prettyprint_status_register_s33,
5277 .unlock = spi_disable_blockprotect_s33,
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read, /* also fast read 0x0B */
5280 .voltage = {2700, 3600},
5281 },
5282
5283 {
5284 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005285 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005286 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005287 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005288 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005289 .total_size = 128,
5290 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005291 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005292 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005293 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005294 .block_erasers =
5295 {
5296 {
5297 .eraseblocks = {
5298 {8 * 1024, 1},
5299 {4 * 1024, 2},
5300 {112 * 1024, 1},
5301 },
Sean Nelson28accc22010-03-19 18:47:06 +00005302 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005303 },
5304 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005305 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005307 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005308 },
5309
5310 {
5311 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005312 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005313 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005314 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005315 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005316 .total_size = 128,
5317 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005318 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005319 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005320 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005321 .block_erasers =
5322 {
5323 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005324 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005325 {112 * 1024, 1},
5326 {4 * 1024, 2},
5327 {8 * 1024, 1},
5328 },
Sean Nelson28accc22010-03-19 18:47:06 +00005329 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005330 },
5331 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005332 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005334 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005335 },
5336
5337 {
5338 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005339 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005340 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005341 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005342 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005343 .total_size = 256,
5344 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005345 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005346 .probe = probe_82802ab,
5347 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5348 .block_erasers =
5349 {
5350 {
5351 .eraseblocks = {
5352 {128 * 1024, 1},
5353 {96 * 1024, 1},
5354 {8 * 1024, 2},
5355 {16 * 1024, 1},
5356 },
5357 .block_erase = erase_block_82802ab,
5358 },
5359 },
5360 .write = write_82802ab,
5361 .read = read_memmapped,
5362 },
5363
5364 {
5365 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005366 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005367 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005368 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005369 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005370 .total_size = 512,
5371 .page_size = 256,
5372 .tested = TEST_UNTESTED,
5373 .probe = probe_82802ab,
5374 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005375 .block_erasers =
5376 {
5377 {
5378 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005379 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005380 },
5381 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005382 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005383 .write = write_82802ab,
5384 .read = read_memmapped,
5385 },
5386
5387 {
5388 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005389 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005390 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005391 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005392 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005393 .total_size = 512,
5394 .page_size = 128 * 1024, /* maximal block size */
5395 .tested = TEST_UNTESTED,
5396 .probe = probe_82802ab,
5397 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5398 .block_erasers =
5399 {
5400 {
5401 .eraseblocks = {
5402 {16 * 1024, 1},
5403 {8 * 1024, 2},
5404 {96 * 1024, 1},
5405 {128 * 1024, 3},
5406 },
5407 .block_erase = erase_block_82802ab,
5408 },
5409 },
5410 .write = write_82802ab,
5411 .read = read_memmapped,
5412 },
5413
5414 {
5415 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005416 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005417 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005418 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005419 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005420 .total_size = 512,
5421 .page_size = 128 * 1024, /* maximal block size */
5422 .tested = TEST_UNTESTED,
5423 .probe = probe_82802ab,
5424 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5425 .block_erasers =
5426 {
5427 {
5428 .eraseblocks = {
5429 {128 * 1024, 3},
5430 {96 * 1024, 1},
5431 {8 * 1024, 2},
5432 {16 * 1024, 1},
5433 },
5434 .block_erase = erase_block_82802ab,
5435 },
5436 },
5437 .write = write_82802ab,
5438 .read = read_memmapped,
5439 },
5440
5441 {
5442 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005443 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005444 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005445 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005446 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005447 .total_size = 512,
5448 .page_size = 128 * 1024, /* maximal block size */
5449 .feature_bits = FEATURE_ADDR_SHIFTED,
5450 .tested = TEST_UNTESTED,
5451 .probe = probe_82802ab,
5452 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5453 .block_erasers =
5454 {
5455 {
5456 .eraseblocks = {
5457 {16 * 1024, 1},
5458 {8 * 1024, 2},
5459 {96 * 1024, 1},
5460 {128 * 1024, 3},
5461 },
5462 .block_erase = erase_block_82802ab,
5463 },
5464 },
5465 .write = write_82802ab,
5466 .read = read_memmapped,
5467 },
5468
5469 {
5470 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005471 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005472 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005473 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005474 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005475 .total_size = 512,
5476 .page_size = 128 * 1024, /* maximal block size */
5477 .feature_bits = FEATURE_ADDR_SHIFTED,
5478 .tested = TEST_UNTESTED,
5479 .probe = probe_82802ab,
5480 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5481 .block_erasers =
5482 {
5483 {
5484 .eraseblocks = {
5485 {128 * 1024, 3},
5486 {96 * 1024, 1},
5487 {8 * 1024, 2},
5488 {16 * 1024, 1},
5489 },
5490 .block_erase = erase_block_82802ab,
5491 },
5492 },
5493 .write = write_82802ab,
5494 .read = read_memmapped,
5495 },
5496
5497 {
5498 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005500 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005502 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005503 .total_size = 512,
5504 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005505 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005506 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005507 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005508 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005509 .block_erasers =
5510 {
5511 {
5512 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005513 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005514 },
5515 },
Sean Nelson28accc22010-03-19 18:47:06 +00005516 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005517 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005518 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005519 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005520 },
5521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005522 {
5523 .vendor = "Intel",
5524 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005525 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005526 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005527 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005528 .total_size = 1024,
5529 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005530 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005531 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005532 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005533 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005538 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005539 },
5540 },
Sean Nelson28accc22010-03-19 18:47:06 +00005541 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005544 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005545 },
5546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005547 {
5548 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005549 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005550 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005551 .manufacture_id = MACRONIX_ID,
5552 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005553 .total_size = 64,
5554 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005555 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005556 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005557 .tested = TEST_UNTESTED,
5558 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005559 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005560 .block_erasers =
5561 {
5562 {
5563 .eraseblocks = { {4 * 1024, 16} },
5564 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005565 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005566 .eraseblocks = { {64 * 1024, 1} },
5567 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005568 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005569 .eraseblocks = { {64 * 1024, 1} },
5570 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005571 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005572 .eraseblocks = { {64 * 1024, 1} },
5573 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005574 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005575 .eraseblocks = { {64 * 1024, 1} },
5576 .block_erase = spi_block_erase_c7,
5577 },
5578 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005579 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005580 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005581 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005582 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5583 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005584 },
5585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005586 {
5587 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005588 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005589 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005590 .manufacture_id = MACRONIX_ID,
5591 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005592 .total_size = 128,
5593 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005594 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005595 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005596 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005597 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005598 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005599 .block_erasers =
5600 {
5601 {
5602 .eraseblocks = { {4 * 1024, 32} },
5603 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005604 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005605 .eraseblocks = { {64 * 1024, 2} },
5606 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005607 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005608 .eraseblocks = { {128 * 1024, 1} },
5609 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005610 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005611 .eraseblocks = { {128 * 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_bp1,
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, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005619 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005620 },
5621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005622 {
5623 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005624 .name = "MX25L2005(C)",
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_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005628 .total_size = 256,
5629 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005630 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005631 .tested = TEST_UNTESTED,
5632 .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 {
5637 .eraseblocks = { {4 * 1024, 64} },
5638 .block_erase = spi_block_erase_20,
5639 }, {
5640 .eraseblocks = { {64 * 1024, 4} },
5641 .block_erase = spi_block_erase_52,
5642 }, {
5643 .eraseblocks = { {64 * 1024, 4} },
5644 .block_erase = spi_block_erase_d8,
5645 }, {
5646 .eraseblocks = { {256 * 1024, 1} },
5647 .block_erase = spi_block_erase_60,
5648 }, {
5649 .eraseblocks = { {256 * 1024, 1} },
5650 .block_erase = spi_block_erase_c7,
5651 },
5652 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005653 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005654 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005655 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005656 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005657 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005658 },
5659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005660 {
5661 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005662 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005663 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005664 .manufacture_id = MACRONIX_ID,
5665 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005666 .total_size = 512,
5667 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005668 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005669 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005670 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005671 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005672 .block_erasers =
5673 {
5674 {
5675 .eraseblocks = { {4 * 1024, 128} },
5676 .block_erase = spi_block_erase_20,
5677 }, {
5678 .eraseblocks = { {64 * 1024, 8} },
5679 .block_erase = spi_block_erase_52,
5680 }, {
5681 .eraseblocks = { {64 * 1024, 8} },
5682 .block_erase = spi_block_erase_d8,
5683 }, {
5684 .eraseblocks = { {512 * 1024, 1} },
5685 .block_erase = spi_block_erase_60,
5686 }, {
5687 .eraseblocks = { {512 * 1024, 1} },
5688 .block_erase = spi_block_erase_c7,
5689 },
5690 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005691 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005692 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005693 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005694 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005695 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005696 },
5697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005698 {
5699 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005700 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005701 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005702 .manufacture_id = MACRONIX_ID,
5703 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005704 .total_size = 1024,
5705 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005706 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005707 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005708 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005709 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005710 .block_erasers =
5711 {
5712 {
5713 .eraseblocks = { {4 * 1024, 256} },
5714 .block_erase = spi_block_erase_20,
5715 }, {
5716 .eraseblocks = { {64 * 1024, 16} },
5717 .block_erase = spi_block_erase_52,
5718 }, {
5719 .eraseblocks = { {64 * 1024, 16} },
5720 .block_erase = spi_block_erase_d8,
5721 }, {
5722 .eraseblocks = { {1024 * 1024, 1} },
5723 .block_erase = spi_block_erase_60,
5724 }, {
5725 .eraseblocks = { {1024 * 1024, 1} },
5726 .block_erase = spi_block_erase_c7,
5727 },
5728 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005729 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005730 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005731 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005732 .read = spi_chip_read, /* Fast read (0x0B) supported */
5733 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005734 },
5735
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005736 {
5737 .vendor = "Macronix",
5738 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005739 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005740 .manufacture_id = MACRONIX_ID,
5741 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005742 .total_size = 2048,
5743 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005744 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005745 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005746 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005747 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005748 .block_erasers =
5749 {
5750 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005751 .eraseblocks = { {64 * 1024, 32} },
5752 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005753 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005754 .eraseblocks = { {64 * 1024, 32} },
5755 .block_erase = spi_block_erase_d8,
5756 }, {
5757 .eraseblocks = { {2 * 1024 * 1024, 1} },
5758 .block_erase = spi_block_erase_60,
5759 }, {
5760 .eraseblocks = { {2 * 1024 * 1024, 1} },
5761 .block_erase = spi_block_erase_c7,
5762 },
5763 },
5764 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5765 .unlock = spi_disable_blockprotect,
5766 .write = spi_chip_write_256,
5767 .read = spi_chip_read, /* Fast read (0x0B) supported */
5768 .voltage = {2700, 3600},
5769 },
5770
5771 {
5772 .vendor = "Macronix",
5773 .name = "MX25L1605A/MX25L1606E",
5774 .bustype = BUS_SPI,
5775 .manufacture_id = MACRONIX_ID,
5776 .model_id = MACRONIX_MX25L1605,
5777 .total_size = 2048,
5778 .page_size = 256,
5779 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5780 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5781 .tested = TEST_OK_PREW,
5782 .probe = probe_spi_rdid,
5783 .probe_timing = TIMING_ZERO,
5784 .block_erasers =
5785 {
5786 {
5787 .eraseblocks = { {4 * 1024, 512} },
5788 .block_erase = spi_block_erase_20,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005791 .block_erase = spi_block_erase_52,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 32} },
5794 .block_erase = spi_block_erase_d8,
5795 }, {
5796 .eraseblocks = { {2 * 1024 * 1024, 1} },
5797 .block_erase = spi_block_erase_60,
5798 }, {
5799 .eraseblocks = { {2 * 1024 * 1024, 1} },
5800 .block_erase = spi_block_erase_c7,
5801 },
5802 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005803 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005804 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005805 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005806 .read = spi_chip_read, /* Fast read (0x0B) supported */
5807 .voltage = {2700, 3600},
5808 },
5809
5810 {
5811 .vendor = "Macronix",
5812 .name = "MX25L1605D/MX25L1608D",
5813 .bustype = BUS_SPI,
5814 .manufacture_id = MACRONIX_ID,
5815 .model_id = MACRONIX_MX25L1605,
5816 .total_size = 2048,
5817 .page_size = 256,
5818 .feature_bits = FEATURE_WRSR_WREN,
5819 .tested = TEST_OK_PREW,
5820 .probe = probe_spi_rdid,
5821 .probe_timing = TIMING_ZERO,
5822 .block_erasers =
5823 {
5824 {
5825 .eraseblocks = { {4 * 1024, 512} },
5826 .block_erase = spi_block_erase_20,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 32} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {2 * 1024 * 1024, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {2 * 1024 * 1024, 1} },
5835 .block_erase = spi_block_erase_c7,
5836 },
5837 },
5838 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5839 .unlock = spi_disable_blockprotect,
5840 .write = spi_chip_write_256,
5841 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005842 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005843 },
5844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005845 {
5846 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005847 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005848 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005849 .manufacture_id = MACRONIX_ID,
5850 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005851 .total_size = 2048,
5852 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005853 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005855 .tested = TEST_UNTESTED,
5856 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005857 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005858 .block_erasers =
5859 {
5860 {
5861 .eraseblocks = { {4 * 1024, 512} },
5862 .block_erase = spi_block_erase_20,
5863 }, {
5864 .eraseblocks = { {64 * 1024, 32} },
5865 .block_erase = spi_block_erase_d8,
5866 }, {
5867 .eraseblocks = { {2 * 1024 * 1024, 1} },
5868 .block_erase = spi_block_erase_60,
5869 }, {
5870 .eraseblocks = { {2 * 1024 * 1024, 1} },
5871 .block_erase = spi_block_erase_c7,
5872 }
5873 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005874 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005875 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005876 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005877 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005878 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005879 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005880
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005881 {
5882 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005883 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005884 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005885 .manufacture_id = MACRONIX_ID,
5886 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005887 .total_size = 2048,
5888 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005889 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5890 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005891 .tested = TEST_UNTESTED,
5892 .probe = probe_spi_rdid,
5893 .probe_timing = TIMING_ZERO,
5894 .block_erasers =
5895 {
5896 {
5897 .eraseblocks = { {4 * 1024, 512} },
5898 .block_erase = spi_block_erase_20,
5899 }, {
5900 .eraseblocks = { {64 * 1024, 32} },
5901 .block_erase = spi_block_erase_d8,
5902 }, {
5903 .eraseblocks = { {2 * 1024 * 1024, 1} },
5904 .block_erase = spi_block_erase_60,
5905 }, {
5906 .eraseblocks = { {2 * 1024 * 1024, 1} },
5907 .block_erase = spi_block_erase_c7,
5908 }
5909 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005910 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005911 .unlock = spi_disable_blockprotect,
5912 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005913 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005914 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005915 },
5916
5917 {
5918 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005919 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005920 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005921 .manufacture_id = MACRONIX_ID,
5922 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005923 .total_size = 4096,
5924 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005925 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005926 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005927 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005928 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005929 .block_erasers =
5930 {
5931 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005932 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005933 .block_erase = spi_block_erase_20,
5934 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005935 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005936 .block_erase = spi_block_erase_d8,
5937 }, {
5938 .eraseblocks = { {4 * 1024 * 1024, 1} },
5939 .block_erase = spi_block_erase_60,
5940 }, {
5941 .eraseblocks = { {4 * 1024 * 1024, 1} },
5942 .block_erase = spi_block_erase_c7,
5943 },
5944 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005945 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005946 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005947 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005948 .read = spi_chip_read, /* Fast read (0x0B) supported */
5949 .voltage = {2700, 3600},
5950 },
5951
5952 {
5953 .vendor = "Macronix",
5954 .name = "MX25L3205D/MX25L3208D",
5955 .bustype = BUS_SPI,
5956 .manufacture_id = MACRONIX_ID,
5957 .model_id = MACRONIX_MX25L3205,
5958 .total_size = 4096,
5959 .page_size = 256,
5960 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5962 .tested = TEST_OK_PREW,
5963 .probe = probe_spi_rdid,
5964 .probe_timing = TIMING_ZERO,
5965 .block_erasers =
5966 {
5967 {
5968 .eraseblocks = { {4 * 1024, 1024} },
5969 .block_erase = spi_block_erase_20,
5970 }, {
5971 .eraseblocks = { {64 * 1024, 64} },
5972 .block_erase = spi_block_erase_d8,
5973 }, {
5974 .eraseblocks = { {4 * 1024 * 1024, 1} },
5975 .block_erase = spi_block_erase_60,
5976 }, {
5977 .eraseblocks = { {4 * 1024 * 1024, 1} },
5978 .block_erase = spi_block_erase_c7,
5979 },
5980 },
5981 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
5982 .unlock = spi_disable_blockprotect,
5983 .write = spi_chip_write_256,
5984 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
5985 .voltage = {2700, 3600},
5986 },
5987
5988 {
5989 .vendor = "Macronix",
5990 .name = "MX25L3206E",
5991 .bustype = BUS_SPI,
5992 .manufacture_id = MACRONIX_ID,
5993 .model_id = MACRONIX_MX25L3205,
5994 .total_size = 4096,
5995 .page_size = 256,
5996 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5998 .tested = TEST_OK_PREW,
5999 .probe = probe_spi_rdid,
6000 .probe_timing = TIMING_ZERO,
6001 .block_erasers =
6002 {
6003 {
6004 .eraseblocks = { {4 * 1024, 1024} },
6005 .block_erase = spi_block_erase_20,
6006 }, {
6007 .eraseblocks = { {64 * 1024, 64} },
6008 .block_erase = spi_block_erase_d8,
6009 }, {
6010 .eraseblocks = { {64 * 1024, 64} },
6011 .block_erase = spi_block_erase_52,
6012 }, {
6013 .eraseblocks = { {4 * 1024 * 1024, 1} },
6014 .block_erase = spi_block_erase_60,
6015 }, {
6016 .eraseblocks = { {4 * 1024 * 1024, 1} },
6017 .block_erase = spi_block_erase_c7,
6018 },
6019 },
6020 .printlock = spi_prettyprint_status_register_default_bp3,
6021 .unlock = spi_disable_blockprotect,
6022 .write = spi_chip_write_256,
6023 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006024 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006025 },
6026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006027 {
6028 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006029 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006030 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006031 .manufacture_id = MACRONIX_ID,
6032 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006033 .total_size = 4096,
6034 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006035 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006037 .tested = TEST_UNTESTED,
6038 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006040 .block_erasers =
6041 {
6042 {
6043 .eraseblocks = { {4 * 1024, 1024} },
6044 .block_erase = spi_block_erase_20,
6045 }, {
6046 .eraseblocks = { {64 * 1024, 64} },
6047 .block_erase = spi_block_erase_d8,
6048 }, {
6049 .eraseblocks = { {4 * 1024 * 1024, 1} },
6050 .block_erase = spi_block_erase_60,
6051 }, {
6052 .eraseblocks = { {4 * 1024 * 1024, 1} },
6053 .block_erase = spi_block_erase_c7,
6054 }
6055 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006056 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006058 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006059 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006060 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006061 },
6062
6063 {
6064 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006065 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006066 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006067 .manufacture_id = MACRONIX_ID,
6068 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 .total_size = 8192,
6070 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006071 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6072 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006073 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006074 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006075 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006076 .block_erasers =
6077 {
6078 {
6079 .eraseblocks = { {64 * 1024, 128} },
6080 .block_erase = spi_block_erase_20,
6081 }, {
6082 .eraseblocks = { {64 * 1024, 128} },
6083 .block_erase = spi_block_erase_d8,
6084 }, {
6085 .eraseblocks = { {8 * 1024 * 1024, 1} },
6086 .block_erase = spi_block_erase_60,
6087 }, {
6088 .eraseblocks = { {8 * 1024 * 1024, 1} },
6089 .block_erase = spi_block_erase_c7,
6090 }
6091 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006092 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006093 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006094 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006095 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006096 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006097 },
6098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006099 {
6100 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006101 .name = "MX25L6406E/MX25L6436E",
6102 .bustype = BUS_SPI,
6103 .manufacture_id = MACRONIX_ID,
6104 .model_id = MACRONIX_MX25L6405,
6105 .total_size = 8192,
6106 .page_size = 256,
6107 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6109 .tested = TEST_OK_PREW,
6110 .probe = probe_spi_rdid,
6111 .probe_timing = TIMING_ZERO,
6112 .block_erasers =
6113 {
6114 {
6115 .eraseblocks = { {4 * 1024, 2048} },
6116 .block_erase = spi_block_erase_20,
6117 }, {
6118 .eraseblocks = { {64 * 1024, 128} },
6119 .block_erase = spi_block_erase_d8,
6120 }, {
6121 .eraseblocks = { {8 * 1024 * 1024, 1} },
6122 .block_erase = spi_block_erase_60,
6123 }, {
6124 .eraseblocks = { {8 * 1024 * 1024, 1} },
6125 .block_erase = spi_block_erase_c7,
6126 }
6127 },
6128 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6129 .unlock = spi_disable_blockprotect,
6130 .write = spi_chip_write_256,
6131 .read = spi_chip_read,
6132 .voltage = {2700, 3600},
6133 },
6134
6135 {
6136 .vendor = "Macronix",
6137 .name = "MX25L6445E",
6138 .bustype = BUS_SPI,
6139 .manufacture_id = MACRONIX_ID,
6140 .model_id = MACRONIX_MX25L6405,
6141 .total_size = 8192,
6142 .page_size = 256,
6143 /* supports SFDP */
6144 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6146 .tested = TEST_OK_PREW,
6147 .probe = probe_spi_rdid,
6148 .probe_timing = TIMING_ZERO,
6149 .block_erasers =
6150 {
6151 {
6152 .eraseblocks = { {4 * 1024, 2048} },
6153 .block_erase = spi_block_erase_20,
6154 }, {
6155 .eraseblocks = { {32 * 1024, 256} },
6156 .block_erase = spi_block_erase_52,
6157 }, {
6158 .eraseblocks = { {64 * 1024, 128} },
6159 .block_erase = spi_block_erase_d8,
6160 }, {
6161 .eraseblocks = { {8 * 1024 * 1024, 1} },
6162 .block_erase = spi_block_erase_60,
6163 }, {
6164 .eraseblocks = { {8 * 1024 * 1024, 1} },
6165 .block_erase = spi_block_erase_c7,
6166 }
6167 },
6168 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6169 .unlock = spi_disable_blockprotect,
6170 .write = spi_chip_write_256,
6171 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6172 .voltage = {2700, 3600},
6173 },
6174
6175 {
6176 .vendor = "Macronix",
6177 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006178 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006179 .manufacture_id = MACRONIX_ID,
6180 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006181 .total_size = 16384,
6182 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006183 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006185 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006186 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006187 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006188 .block_erasers =
6189 {
6190 {
6191 .eraseblocks = { {4 * 1024, 4096} },
6192 .block_erase = spi_block_erase_20,
6193 }, {
6194 .eraseblocks = { {64 * 1024, 256} },
6195 .block_erase = spi_block_erase_d8,
6196 }, {
6197 .eraseblocks = { {16 * 1024 * 1024, 1} },
6198 .block_erase = spi_block_erase_60,
6199 }, {
6200 .eraseblocks = { {16 * 1024 * 1024, 1} },
6201 .block_erase = spi_block_erase_c7,
6202 }
6203 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006204 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006205 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006206 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006207 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006208 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006209 },
6210
6211 {
6212 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006213 .name = "MX25U1635E",
6214 .bustype = BUS_SPI,
6215 .manufacture_id = MACRONIX_ID,
6216 .model_id = MACRONIX_MX25U1635E,
6217 .total_size = 2048,
6218 .page_size = 256,
6219 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6220 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6222 .tested = TEST_UNTESTED,
6223 .probe = probe_spi_rdid,
6224 .probe_timing = TIMING_ZERO,
6225 .block_erasers =
6226 {
6227 {
6228 .eraseblocks = { {4 * 1024, 512} },
6229 .block_erase = spi_block_erase_20,
6230 }, {
6231 .eraseblocks = { {32 * 1024, 64} },
6232 .block_erase = spi_block_erase_52,
6233 }, {
6234 .eraseblocks = { {64 * 1024, 32} },
6235 .block_erase = spi_block_erase_d8,
6236 }, {
6237 .eraseblocks = { {2 * 1024 * 1024, 1} },
6238 .block_erase = spi_block_erase_60,
6239 }, {
6240 .eraseblocks = { {2 * 1024 * 1024, 1} },
6241 .block_erase = spi_block_erase_c7,
6242 }
6243 },
6244 /* TODO: security register */
6245 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6246 .unlock = spi_disable_blockprotect,
6247 .write = spi_chip_write_256,
6248 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6249 .voltage = {1650, 2000},
6250 },
6251
6252 {
6253 .vendor = "Macronix",
6254 .name = "MX25U3235E/F",
6255 .bustype = BUS_SPI,
6256 .manufacture_id = MACRONIX_ID,
6257 .model_id = MACRONIX_MX25U3235E,
6258 .total_size = 4096,
6259 .page_size = 256,
6260 /* F model supports SFDP */
6261 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6262 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6264 .tested = TEST_OK_PREW,
6265 .probe = probe_spi_rdid,
6266 .probe_timing = TIMING_ZERO,
6267 .block_erasers =
6268 {
6269 {
6270 .eraseblocks = { {4 * 1024, 1024} },
6271 .block_erase = spi_block_erase_20,
6272 }, {
6273 .eraseblocks = { {32 * 1024, 128} },
6274 .block_erase = spi_block_erase_52,
6275 }, {
6276 .eraseblocks = { {64 * 1024, 64} },
6277 .block_erase = spi_block_erase_d8,
6278 }, {
6279 .eraseblocks = { {4 * 1024 * 1024, 1} },
6280 .block_erase = spi_block_erase_60,
6281 }, {
6282 .eraseblocks = { {4 * 1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_c7,
6284 }
6285 },
6286 /* TODO: security register */
6287 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6288 .unlock = spi_disable_blockprotect,
6289 .write = spi_chip_write_256,
6290 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6291 .voltage = {1650, 2000},
6292 },
6293
6294 {
6295 .vendor = "Macronix",
6296 .name = "MX25U6435E/F",
6297 .bustype = BUS_SPI,
6298 .manufacture_id = MACRONIX_ID,
6299 .model_id = MACRONIX_MX25U6435E,
6300 .total_size = 8192,
6301 .page_size = 256,
6302 /* F model supports SFDP */
6303 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6304 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6306 .tested = TEST_UNTESTED,
6307 .probe = probe_spi_rdid,
6308 .probe_timing = TIMING_ZERO,
6309 .block_erasers =
6310 {
6311 {
6312 .eraseblocks = { {4 * 1024, 2048} },
6313 .block_erase = spi_block_erase_20,
6314 }, {
6315 .eraseblocks = { {32 * 1024, 256} },
6316 .block_erase = spi_block_erase_52,
6317 }, {
6318 .eraseblocks = { {64 * 1024, 128} },
6319 .block_erase = spi_block_erase_d8,
6320 }, {
6321 .eraseblocks = { {8 * 1024 * 1024, 1} },
6322 .block_erase = spi_block_erase_60,
6323 }, {
6324 .eraseblocks = { {8 * 1024 * 1024, 1} },
6325 .block_erase = spi_block_erase_c7,
6326 }
6327 },
6328 /* TODO: security register */
6329 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6330 .unlock = spi_disable_blockprotect,
6331 .write = spi_chip_write_256,
6332 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6333 .voltage = {1650, 2000},
6334 },
6335
6336 {
6337 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006338 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006339 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006340 .manufacture_id = MACRONIX_ID,
6341 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006342 .total_size = 128,
6343 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006344 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6345 .tested = TEST_UNTESTED,
6346 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006347 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006348 .block_erasers =
6349 {
6350 {
6351 .eraseblocks = {
6352 {8 * 1024, 1},
6353 {4 * 1024, 2},
6354 {8 * 1024, 2},
6355 {32 * 1024, 1},
6356 {64 * 1024, 1},
6357 },
Sean Nelson35727f72010-01-28 23:55:12 +00006358 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006359 }, {
6360 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006361 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006362 }
6363 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006364 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006365 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006366 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006367 },
6368
6369 {
6370 .vendor = "Macronix",
6371 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006372 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006373 .manufacture_id = MACRONIX_ID,
6374 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006375 .total_size = 128,
6376 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006378 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006379 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006380 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006381 .block_erasers =
6382 {
6383 {
6384 .eraseblocks = {
6385 {64 * 1024, 1},
6386 {32 * 1024, 1},
6387 {8 * 1024, 2},
6388 {4 * 1024, 2},
6389 {8 * 1024, 1},
6390 },
Sean Nelson35727f72010-01-28 23:55:12 +00006391 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006392 }, {
6393 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006394 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006395 }
6396 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006397 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006398 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006399 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006400 },
6401
6402 {
6403 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006404 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006405 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006406 .manufacture_id = MACRONIX_ID,
6407 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006408 .total_size = 256,
6409 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006410 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006411 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006412 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006413 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006414 .block_erasers =
6415 {
6416 {
6417 .eraseblocks = {
6418 {16 * 1024, 1},
6419 {8 * 1024, 2},
6420 {32 * 1024, 1},
6421 {64 * 1024, 3},
6422 },
Sean Nelson35727f72010-01-28 23:55:12 +00006423 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006424 }, {
6425 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006426 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006427 },
6428 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006429 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006431 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006432 },
6433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006434 {
6435 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006436 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006437 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006438 .manufacture_id = MACRONIX_ID,
6439 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006440 .total_size = 256,
6441 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006442 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006443 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006444 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006445 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006446 .block_erasers =
6447 {
6448 {
6449 .eraseblocks = {
6450 {64 * 1024, 3},
6451 {32 * 1024, 1},
6452 {8 * 1024, 2},
6453 {16 * 1024, 1},
6454 },
Sean Nelson35727f72010-01-28 23:55:12 +00006455 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006456 }, {
6457 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006458 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006459 },
6460 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006461 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006462 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006463 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006464 },
6465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006466 {
6467 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006468 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006469 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006470 .manufacture_id = MACRONIX_ID,
6471 .model_id = MACRONIX_MX29F040,
6472 .total_size = 512,
6473 .page_size = 64 * 1024,
6474 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6475 .tested = TEST_UNTESTED,
6476 .probe = probe_jedec,
6477 .probe_timing = TIMING_ZERO,
6478 .block_erasers =
6479 {
6480 {
6481 .eraseblocks = { {64 * 1024, 8} },
6482 .block_erase = erase_sector_jedec,
6483 }, {
6484 .eraseblocks = { {512 * 1024, 1} },
6485 .block_erase = erase_chip_block_jedec,
6486 },
6487 },
6488 .write = write_jedec_1,
6489 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006490 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006491 },
6492
6493 {
6494 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006495 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006496 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006497 .manufacture_id = MACRONIX_ID,
6498 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006499 .total_size = 512,
6500 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006501 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6502 .tested = TEST_UNTESTED,
6503 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006504 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006505 .block_erasers =
6506 {
6507 {
6508 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006509 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006510 }, {
6511 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006512 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006513 },
6514 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006515 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006517 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006518 },
6519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006520 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006521 .vendor = "MoselVitelic",
6522 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006523 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006524 .manufacture_id = SYNCMOS_MVC_ID,
6525 .model_id = MVC_V29C51000B,
6526 .total_size = 64,
6527 .page_size = 512,
6528 .feature_bits = FEATURE_EITHER_RESET,
6529 .tested = TEST_UNTESTED,
6530 .probe = probe_jedec,
6531 .probe_timing = TIMING_ZERO,
6532 .block_erasers =
6533 {
6534 {
6535 .eraseblocks = { {512, 128} },
6536 .block_erase = erase_sector_jedec,
6537 }, {
6538 .eraseblocks = { {64 * 1024, 1} },
6539 .block_erase = erase_chip_block_jedec,
6540 },
6541 },
6542 .write = write_jedec_1,
6543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006544 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006545 },
6546
6547 {
6548 .vendor = "MoselVitelic",
6549 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006550 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006551 .manufacture_id = SYNCMOS_MVC_ID,
6552 .model_id = MVC_V29C51000T,
6553 .total_size = 64,
6554 .page_size = 512,
6555 .feature_bits = FEATURE_EITHER_RESET,
6556 .tested = TEST_UNTESTED,
6557 .probe = probe_jedec,
6558 .probe_timing = TIMING_ZERO,
6559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { {512, 128} },
6563 .block_erase = erase_sector_jedec,
6564 }, {
6565 .eraseblocks = { {64 * 1024, 1} },
6566 .block_erase = erase_chip_block_jedec,
6567 },
6568 },
6569 .write = write_jedec_1,
6570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006571 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006572 },
6573
6574 {
6575 .vendor = "MoselVitelic",
6576 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006577 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006578 .manufacture_id = SYNCMOS_MVC_ID,
6579 .model_id = MVC_V29C51400B,
6580 .total_size = 512,
6581 .page_size = 1024,
6582 .feature_bits = FEATURE_EITHER_RESET,
6583 .tested = TEST_UNTESTED,
6584 .probe = probe_jedec,
6585 .probe_timing = TIMING_ZERO,
6586 .block_erasers =
6587 {
6588 {
6589 .eraseblocks = { {1024, 512} },
6590 .block_erase = erase_sector_jedec,
6591 }, {
6592 .eraseblocks = { {512 * 1024, 1} },
6593 .block_erase = erase_chip_block_jedec,
6594 },
6595 },
6596 .write = write_jedec_1,
6597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006598 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006599 },
6600
6601 {
6602 .vendor = "MoselVitelic",
6603 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006604 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006605 .manufacture_id = SYNCMOS_MVC_ID,
6606 .model_id = MVC_V29C51400T,
6607 .total_size = 512,
6608 .page_size = 1024,
6609 .feature_bits = FEATURE_EITHER_RESET,
6610 .tested = TEST_UNTESTED,
6611 .probe = probe_jedec,
6612 .probe_timing = TIMING_ZERO,
6613 .block_erasers =
6614 {
6615 {
6616 .eraseblocks = { {1024, 512} },
6617 .block_erase = erase_sector_jedec,
6618 }, {
6619 .eraseblocks = { {512 * 1024, 1} },
6620 .block_erase = erase_chip_block_jedec,
6621 },
6622 },
6623 .write = write_jedec_1,
6624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006625 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006626 },
6627
6628 {
6629 .vendor = "MoselVitelic",
6630 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006631 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006632 .manufacture_id = SYNCMOS_MVC_ID,
6633 .model_id = MVC_V29LC51000,
6634 .total_size = 64,
6635 .page_size = 512,
6636 .feature_bits = FEATURE_EITHER_RESET,
6637 .tested = TEST_UNTESTED,
6638 .probe = probe_jedec,
6639 .probe_timing = TIMING_ZERO,
6640 .block_erasers =
6641 {
6642 {
6643 .eraseblocks = { {512, 128} },
6644 .block_erase = erase_sector_jedec,
6645 }, {
6646 .eraseblocks = { {64 * 1024, 1} },
6647 .block_erase = erase_chip_block_jedec,
6648 },
6649 },
6650 .write = write_jedec_1,
6651 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006652 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006653 },
6654
6655 {
6656 .vendor = "MoselVitelic",
6657 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006658 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006659 .manufacture_id = SYNCMOS_MVC_ID,
6660 .model_id = MVC_V29LC51001,
6661 .total_size = 128,
6662 .page_size = 512,
6663 .feature_bits = FEATURE_EITHER_RESET,
6664 .tested = TEST_UNTESTED,
6665 .probe = probe_jedec,
6666 .probe_timing = TIMING_ZERO,
6667 .block_erasers =
6668 {
6669 {
6670 .eraseblocks = { {512, 256} },
6671 .block_erase = erase_sector_jedec,
6672 }, {
6673 .eraseblocks = { {128 * 1024, 1} },
6674 .block_erase = erase_chip_block_jedec,
6675 },
6676 },
6677 .write = write_jedec_1,
6678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006679 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006680 },
6681
6682 {
6683 .vendor = "MoselVitelic",
6684 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006685 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006686 .manufacture_id = SYNCMOS_MVC_ID,
6687 .model_id = MVC_V29LC51002,
6688 .total_size = 256,
6689 .page_size = 512,
6690 .feature_bits = FEATURE_EITHER_RESET,
6691 .tested = TEST_UNTESTED,
6692 .probe = probe_jedec,
6693 .probe_timing = TIMING_ZERO,
6694 .block_erasers =
6695 {
6696 {
6697 .eraseblocks = { {512, 512} },
6698 .block_erase = erase_sector_jedec,
6699 }, {
6700 .eraseblocks = { {256 * 1024, 1} },
6701 .block_erase = erase_chip_block_jedec,
6702 },
6703 },
6704 .write = write_jedec_1,
6705 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006706 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006707 },
6708
6709 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00006710 .vendor = "Nantronics",
6711 .name = "N25S10",
6712 .bustype = BUS_SPI,
6713 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6714 .model_id = NANTRONICS_N25S10,
6715 .total_size = 128,
6716 .page_size = 256,
6717 .feature_bits = FEATURE_WRSR_WREN,
6718 .tested = TEST_UNTESTED,
6719 .probe = probe_spi_rdid,
6720 .probe_timing = TIMING_ZERO,
6721 .block_erasers =
6722 {
6723 {
6724 .eraseblocks = { {4 * 1024, 32} },
6725 .block_erase = spi_block_erase_20,
6726 }, {
6727 .eraseblocks = { {4 * 1024, 32} },
6728 .block_erase = spi_block_erase_d7,
6729 }, {
6730 .eraseblocks = { {32 * 1024, 4} },
6731 .block_erase = spi_block_erase_52,
6732 }, {
6733 .eraseblocks = { {64 * 1024, 2} },
6734 .block_erase = spi_block_erase_d8,
6735 }, {
6736 .eraseblocks = { {128 * 1024, 1} },
6737 .block_erase = spi_block_erase_60,
6738 }, {
6739 .eraseblocks = { {128 * 1024, 1} },
6740 .block_erase = spi_block_erase_c7,
6741 }
6742 },
6743 .printlock = spi_prettyprint_status_register_default_bp3,
6744 .unlock = spi_disable_blockprotect_bp3_srwd,
6745 .write = spi_chip_write_256,
6746 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6747 .voltage = {2700, 3600},
6748 },
6749
6750 {
6751 .vendor = "Nantronics",
6752 .name = "N25S20",
6753 .bustype = BUS_SPI,
6754 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6755 .model_id = NANTRONICS_N25S20,
6756 .total_size = 256,
6757 .page_size = 256,
6758 .feature_bits = FEATURE_WRSR_WREN,
6759 .tested = TEST_UNTESTED,
6760 .probe = probe_spi_rdid,
6761 .probe_timing = TIMING_ZERO,
6762 .block_erasers =
6763 {
6764 {
6765 .eraseblocks = { {4 * 1024, 64} },
6766 .block_erase = spi_block_erase_20,
6767 }, {
6768 .eraseblocks = { {4 * 1024, 64} },
6769 .block_erase = spi_block_erase_d7,
6770 }, {
6771 .eraseblocks = { {32 * 1024, 8} },
6772 .block_erase = spi_block_erase_52,
6773 }, {
6774 .eraseblocks = { {64 * 1024, 4} },
6775 .block_erase = spi_block_erase_d8,
6776 }, {
6777 .eraseblocks = { {256 * 1024, 1} },
6778 .block_erase = spi_block_erase_60,
6779 }, {
6780 .eraseblocks = { {256 * 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 {
6792 .vendor = "Nantronics",
6793 .name = "N25S40",
6794 .bustype = BUS_SPI,
6795 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6796 .model_id = NANTRONICS_N25S40,
6797 .total_size = 512,
6798 .page_size = 256,
6799 .feature_bits = FEATURE_WRSR_WREN,
6800 .tested = TEST_UNTESTED,
6801 .probe = probe_spi_rdid,
6802 .probe_timing = TIMING_ZERO,
6803 .block_erasers =
6804 {
6805 {
6806 .eraseblocks = { {4 * 1024, 128} },
6807 .block_erase = spi_block_erase_20,
6808 }, {
6809 .eraseblocks = { {4 * 1024, 128} },
6810 .block_erase = spi_block_erase_d7,
6811 }, {
6812 .eraseblocks = { {32 * 1024, 16} },
6813 .block_erase = spi_block_erase_52,
6814 }, {
6815 .eraseblocks = { {64 * 1024, 8} },
6816 .block_erase = spi_block_erase_d8,
6817 }, {
6818 .eraseblocks = { {512 * 1024, 1} },
6819 .block_erase = spi_block_erase_60,
6820 }, {
6821 .eraseblocks = { {512 * 1024, 1} },
6822 .block_erase = spi_block_erase_c7,
6823 }
6824 },
6825 .printlock = spi_prettyprint_status_register_default_bp3,
6826 .unlock = spi_disable_blockprotect_bp3_srwd,
6827 .write = spi_chip_write_256,
6828 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6829 .voltage = {2700, 3600},
6830 },
6831
6832 {
6833 .vendor = "Nantronics",
6834 .name = "N25S80",
6835 .bustype = BUS_SPI,
6836 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6837 .model_id = NANTRONICS_N25S80,
6838 .total_size = 1024,
6839 .page_size = 256,
6840 .feature_bits = FEATURE_WRSR_WREN,
6841 .tested = TEST_UNTESTED,
6842 .probe = probe_spi_rdid,
6843 .probe_timing = TIMING_ZERO,
6844 .block_erasers =
6845 {
6846 {
6847 .eraseblocks = { {4 * 1024, 256} },
6848 .block_erase = spi_block_erase_20,
6849 }, {
6850 .eraseblocks = { {32 * 1024, 32} },
6851 .block_erase = spi_block_erase_52,
6852 }, {
6853 .eraseblocks = { {64 * 1024, 16} },
6854 .block_erase = spi_block_erase_d8,
6855 }, {
6856 .eraseblocks = { {1024 * 1024, 1} },
6857 .block_erase = spi_block_erase_60,
6858 }, {
6859 .eraseblocks = { {1024 * 1024, 1} },
6860 .block_erase = spi_block_erase_c7,
6861 }
6862 },
6863 .printlock = spi_prettyprint_status_register_default_bp3,
6864 .unlock = spi_disable_blockprotect_bp3_srwd,
6865 .write = spi_chip_write_256,
6866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6867 .voltage = {2700, 3600},
6868 },
6869
6870 {
6871 .vendor = "Nantronics",
6872 .name = "N25S16",
6873 .bustype = BUS_SPI,
6874 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6875 .model_id = NANTRONICS_N25S16,
6876 .total_size = 2048,
6877 .page_size = 256,
6878 .feature_bits = FEATURE_WRSR_WREN,
6879 .tested = TEST_UNTESTED,
6880 .probe = probe_spi_rdid,
6881 .probe_timing = TIMING_ZERO,
6882 .block_erasers =
6883 {
6884 {
6885 .eraseblocks = { {4 * 1024, 512} },
6886 .block_erase = spi_block_erase_20,
6887 }, {
6888 .eraseblocks = { {64 * 1024, 32} },
6889 .block_erase = spi_block_erase_d8,
6890 }, {
6891 .eraseblocks = { {2048 * 1024, 1} },
6892 .block_erase = spi_block_erase_60,
6893 }, {
6894 .eraseblocks = { {2048 * 1024, 1} },
6895 .block_erase = spi_block_erase_c7,
6896 }
6897 },
6898 .printlock = spi_prettyprint_status_register_default_bp3,
6899 .unlock = spi_disable_blockprotect_bp3_srwd,
6900 .write = spi_chip_write_256,
6901 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6902 .voltage = {2700, 3600},
6903 },
6904
6905 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006906 .vendor = "Numonyx",
6907 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006908 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006909 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006910 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006911 .total_size = 128,
6912 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006913 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006914 .tested = TEST_UNTESTED,
6915 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006916 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006917 .block_erasers =
6918 {
6919 {
6920 .eraseblocks = { {4 * 1024, 32} },
6921 .block_erase = spi_block_erase_20,
6922 }, {
6923 .eraseblocks = { {64 * 1024, 2} },
6924 .block_erase = spi_block_erase_d8,
6925 }, {
6926 .eraseblocks = { {128 * 1024, 1} },
6927 .block_erase = spi_block_erase_c7,
6928 }
6929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006932 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006934 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006935 },
6936
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006937 {
6938 .vendor = "Numonyx",
6939 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006940 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006941 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006942 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006943 .total_size = 256,
6944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006945 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006946 .tested = TEST_UNTESTED,
6947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006948 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006949 .block_erasers =
6950 {
6951 {
6952 .eraseblocks = { {4 * 1024, 64} },
6953 .block_erase = spi_block_erase_20,
6954 }, {
6955 .eraseblocks = { {64 * 1024, 4} },
6956 .block_erase = spi_block_erase_d8,
6957 }, {
6958 .eraseblocks = { {256 * 1024, 1} },
6959 .block_erase = spi_block_erase_c7,
6960 }
6961 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006962 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006963 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006964 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006966 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006967 },
6968
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006969 {
6970 .vendor = "Numonyx",
6971 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006972 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006973 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006974 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00006975 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006976 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006977 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006978 .tested = TEST_UNTESTED,
6979 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006980 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006981 .block_erasers =
6982 {
6983 {
6984 .eraseblocks = { {4 * 1024, 128} },
6985 .block_erase = spi_block_erase_20,
6986 }, {
6987 .eraseblocks = { {64 * 1024, 8} },
6988 .block_erase = spi_block_erase_d8,
6989 }, {
6990 .eraseblocks = { {512 * 1024, 1} },
6991 .block_erase = spi_block_erase_c7,
6992 }
6993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006995 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006996 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006997 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006998 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006999 },
7000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007001 {
7002 .vendor = "Numonyx",
7003 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007004 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007006 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007007 .total_size = 1024,
7008 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007009 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007012 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007013 .block_erasers =
7014 {
7015 {
7016 .eraseblocks = { {4 * 1024, 256} },
7017 .block_erase = spi_block_erase_20,
7018 }, {
7019 .eraseblocks = { {64 * 1024, 16} },
7020 .block_erase = spi_block_erase_d8,
7021 }, {
7022 .eraseblocks = { {1024 * 1024, 1} },
7023 .block_erase = spi_block_erase_c7,
7024 }
7025 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007026 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007027 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007028 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007029 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007030 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007031 },
7032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007033 {
7034 .vendor = "Numonyx",
7035 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007036 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007038 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 .total_size = 2048,
7040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007041 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007042 .tested = TEST_UNTESTED,
7043 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007044 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007045 .block_erasers =
7046 {
7047 {
7048 .eraseblocks = { {4 * 1024, 512} },
7049 .block_erase = spi_block_erase_20,
7050 }, {
7051 .eraseblocks = { {64 * 1024, 32} },
7052 .block_erase = spi_block_erase_d8,
7053 }, {
7054 .eraseblocks = { {2 * 1024 * 1024, 1} },
7055 .block_erase = spi_block_erase_c7,
7056 }
7057 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007058 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007059 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007060 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007061 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007062 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007063 },
7064
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007065 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007066 .vendor = "Numonyx",
Nikolay Nikolaev01dac172013-06-28 21:29:03 +00007067 .name = "M45PE10",
7068 .bustype = BUS_SPI,
7069 .manufacture_id = ST_ID,
7070 .model_id = ST_M45PE10,
7071 .total_size = 128,
7072 .page_size = 256,
7073 .tested = TEST_UNTESTED,
7074 .probe = probe_spi_rdid,
7075 .probe_timing = TIMING_ZERO,
7076 .block_erasers = {
7077 {
7078 .eraseblocks = { {256, 512} },
7079 .block_erase = spi_block_erase_db,
7080 }, {
7081 .eraseblocks = { {64 * 1024, 2} },
7082 .block_erase = spi_block_erase_d8,
7083 }
7084 },
7085 .printlock = spi_prettyprint_status_register_default_welwip,
7086 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7087 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7088 .read = spi_chip_read, /* Fast read (0x0B) supported */
7089 .voltage = {2700, 3600},
7090 },
7091
7092 {
7093 .vendor = "Numonyx",
7094 .name = "M45PE20",
7095 .bustype = BUS_SPI,
7096 .manufacture_id = ST_ID,
7097 .model_id = ST_M45PE20,
7098 .total_size = 256,
7099 .page_size = 256,
7100 .tested = TEST_UNTESTED,
7101 .probe = probe_spi_rdid,
7102 .probe_timing = TIMING_ZERO,
7103 .block_erasers = {
7104 {
7105 .eraseblocks = { {256, 1024} },
7106 .block_erase = spi_block_erase_db,
7107 }, {
7108 .eraseblocks = { {64 * 1024, 4} },
7109 .block_erase = spi_block_erase_d8,
7110 }
7111 },
7112 .printlock = spi_prettyprint_status_register_default_welwip,
7113 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7114 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7115 .read = spi_chip_read, /* Fast read (0x0B) supported */
7116 .voltage = {2700, 3600},
7117 },
7118
7119 {
7120 .vendor = "Numonyx",
7121 .name = "M45PE40",
7122 .bustype = BUS_SPI,
7123 .manufacture_id = ST_ID,
7124 .model_id = ST_M45PE40,
7125 .total_size = 512,
7126 .page_size = 256,
7127 .tested = TEST_UNTESTED,
7128 .probe = probe_spi_rdid,
7129 .probe_timing = TIMING_ZERO,
7130 .block_erasers = {
7131 {
7132 .eraseblocks = { {256, 2048} },
7133 .block_erase = spi_block_erase_db,
7134 }, {
7135 .eraseblocks = { {64 * 1024, 8} },
7136 .block_erase = spi_block_erase_d8,
7137 }
7138 },
7139 .printlock = spi_prettyprint_status_register_default_welwip,
7140 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7141 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7142 .read = spi_chip_read, /* Fast read (0x0B) supported */
7143 .voltage = {2700, 3600},
7144 },
7145
7146 {
7147 .vendor = "Numonyx",
7148 .name = "M45PE80",
7149 .bustype = BUS_SPI,
7150 .manufacture_id = ST_ID,
7151 .model_id = ST_M45PE80,
7152 .total_size = 1024,
7153 .page_size = 256,
7154 .tested = TEST_UNTESTED,
7155 .probe = probe_spi_rdid,
7156 .probe_timing = TIMING_ZERO,
7157 .block_erasers = {
7158 {
7159 .eraseblocks = { {256, 4096} },
7160 .block_erase = spi_block_erase_db,
7161 }, {
7162 .eraseblocks = { {64 * 1024, 16} },
7163 .block_erase = spi_block_erase_d8,
7164 }
7165 },
7166 .printlock = spi_prettyprint_status_register_default_welwip,
7167 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7168 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7169 .read = spi_chip_read, /* Fast read (0x0B) supported */
7170 .voltage = {2700, 3600},
7171 },
7172
7173 {
7174 .vendor = "Numonyx",
7175 .name = "M45PE16",
7176 .bustype = BUS_SPI,
7177 .manufacture_id = ST_ID,
7178 .model_id = ST_M45PE16,
7179 .total_size = 2048,
7180 .page_size = 256,
7181 .tested = TEST_UNTESTED,
7182 .probe = probe_spi_rdid,
7183 .probe_timing = TIMING_ZERO,
7184 .block_erasers = {
7185 {
7186 .eraseblocks = { {256, 8192} },
7187 .block_erase = spi_block_erase_db,
7188 }, {
7189 .eraseblocks = { {64 * 1024, 32} },
7190 .block_erase = spi_block_erase_d8,
7191 }
7192 },
7193 .printlock = spi_prettyprint_status_register_default_welwip,
7194 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7195 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7196 .read = spi_chip_read, /* Fast read (0x0B) supported */
7197 .voltage = {2700, 3600},
7198 },
7199
7200 {
7201 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00007202 .name = "N25Q016",
7203 .bustype = BUS_SPI,
7204 .manufacture_id = ST_ID,
7205 .model_id = ST_N25Q016__1E,
7206 .total_size = 2048,
7207 .page_size = 256,
7208 /* supports SFDP */
7209 /* OTP: 64B total; read 0x4B, write 0x42 */
7210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7211 .tested = TEST_UNTESTED,
7212 .probe = probe_spi_rdid,
7213 .probe_timing = TIMING_ZERO,
7214 .block_erasers =
7215 {
7216 {
7217 .eraseblocks = { {4 * 1024, 512} },
7218 .block_erase = spi_block_erase_20,
7219 }, {
7220 .eraseblocks = { {32 * 1024, 64} },
7221 .block_erase = spi_block_erase_52,
7222 }, {
7223 .eraseblocks = { {64 * 1024, 32} },
7224 .block_erase = spi_block_erase_d8,
7225 }, {
7226 .eraseblocks = { {2 * 1024 * 1024, 1} },
7227 .block_erase = spi_block_erase_c7,
7228 }
7229 },
7230 .unlock = spi_disable_blockprotect,
7231 .write = spi_chip_write_256,
7232 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7233 .voltage = {1700, 2000},
7234 },
7235
7236 {
7237 .vendor = "Numonyx",
7238 .name = "N25Q032..1E",
7239 .bustype = BUS_SPI,
7240 .manufacture_id = ST_ID,
7241 .model_id = ST_N25Q032__1E,
7242 .total_size = 4096,
7243 .page_size = 256,
7244 /* supports SFDP */
7245 /* OTP: 64B total; read 0x4B, write 0x42 */
7246 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7247 .tested = TEST_UNTESTED,
7248 .probe = probe_spi_rdid,
7249 .probe_timing = TIMING_ZERO,
7250 .block_erasers =
7251 {
7252 {
7253 .eraseblocks = { {4 * 1024, 1024} },
7254 .block_erase = spi_block_erase_20,
7255 }, {
7256 .eraseblocks = { {64 * 1024, 64} },
7257 .block_erase = spi_block_erase_d8,
7258 }, {
7259 .eraseblocks = { {4 * 1024 * 1024, 1} },
7260 .block_erase = spi_block_erase_c7,
7261 }
7262 },
7263 .unlock = spi_disable_blockprotect,
7264 .write = spi_chip_write_256,
7265 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7266 .voltage = {1700, 2000},
7267 },
7268
7269 {
7270 .vendor = "Numonyx",
7271 .name = "N25Q032..3E",
7272 .bustype = BUS_SPI,
7273 .manufacture_id = ST_ID,
7274 .model_id = ST_N25Q032__3E,
7275 .total_size = 4096,
7276 .page_size = 256,
7277 /* supports SFDP */
7278 /* OTP: 64B total; read 0x4B, write 0x42 */
7279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7280 .tested = TEST_UNTESTED,
7281 .probe = probe_spi_rdid,
7282 .probe_timing = TIMING_ZERO,
7283 .block_erasers =
7284 {
7285 {
7286 .eraseblocks = { {4 * 1024, 1024} },
7287 .block_erase = spi_block_erase_20,
7288 }, {
7289 .eraseblocks = { {64 * 1024, 64} },
7290 .block_erase = spi_block_erase_d8,
7291 }, {
7292 .eraseblocks = { {4 * 1024 * 1024, 1} },
7293 .block_erase = spi_block_erase_c7,
7294 }
7295 },
7296 .unlock = spi_disable_blockprotect,
7297 .write = spi_chip_write_256,
7298 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7299 .voltage = {2700, 3600},
7300 },
7301
7302 {
7303 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00007304 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007305 .bustype = BUS_SPI,
7306 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00007307 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007308 .total_size = 8192,
7309 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00007310 /* supports SFDP */
7311 /* OTP: 64B total; read 0x4B, write 0x42 */
7312 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7313 .tested = TEST_UNTESTED,
7314 .probe = probe_spi_rdid,
7315 .probe_timing = TIMING_ZERO,
7316 .block_erasers =
7317 {
7318 {
7319 .eraseblocks = { {4 * 1024, 2048 } },
7320 .block_erase = spi_block_erase_20,
7321 }, {
7322 .eraseblocks = { {64 * 1024, 128} },
7323 .block_erase = spi_block_erase_d8,
7324 }, {
7325 .eraseblocks = { {8 * 1024 * 1024, 1} },
7326 .block_erase = spi_block_erase_c7,
7327 }
7328 },
7329 .unlock = spi_disable_blockprotect,
7330 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007331 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007332 .voltage = {1700, 2000},
7333 },
7334
7335 {
7336 .vendor = "Numonyx",
7337 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7338 .bustype = BUS_SPI,
7339 .manufacture_id = ST_ID,
7340 .model_id = ST_N25Q064__3E,
7341 .total_size = 8192,
7342 .page_size = 256,
7343 /* supports SFDP */
7344 /* OTP: 64B total; read 0x4B, write 0x42 */
7345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007346 .tested = TEST_OK_PREW,
7347 .probe = probe_spi_rdid,
7348 .probe_timing = TIMING_ZERO,
7349 .block_erasers =
7350 {
7351 {
7352 .eraseblocks = { {4 * 1024, 2048 } },
7353 .block_erase = spi_block_erase_20,
7354 }, {
7355 .eraseblocks = { {64 * 1024, 128} },
7356 .block_erase = spi_block_erase_d8,
7357 }, {
7358 .eraseblocks = { {8 * 1024 * 1024, 1} },
7359 .block_erase = spi_block_erase_c7,
7360 }
7361 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007362 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007363 .unlock = spi_disable_blockprotect,
7364 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00007365 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00007366 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00007367 },
7368
7369 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007370 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00007371 .name = "Pm25LD256C",
7372 .bustype = BUS_SPI,
7373 .manufacture_id = PMC_ID,
7374 .model_id = PMC_PM25LD256C,
7375 .total_size = 32,
7376 .page_size = 256,
7377 .feature_bits = FEATURE_WRSR_WREN,
7378 .tested = TEST_UNTESTED,
7379 .probe = probe_spi_rdid,
7380 .probe_timing = TIMING_ZERO,
7381 .block_erasers =
7382 {
7383 {
7384 .eraseblocks = { {4 * 1024, 8} },
7385 .block_erase = spi_block_erase_20,
7386 }, {
7387 .eraseblocks = { {4 * 1024, 8} },
7388 .block_erase = spi_block_erase_d7,
7389 }, {
7390 .eraseblocks = { {32 * 1024, 1} },
7391 .block_erase = spi_block_erase_d8,
7392 }, {
7393 .eraseblocks = { {32 * 1024, 1} },
7394 .block_erase = spi_block_erase_60,
7395 }, {
7396 .eraseblocks = { {32 * 1024, 1} },
7397 .block_erase = spi_block_erase_c7,
7398 }
7399 },
7400 .printlock = spi_prettyprint_status_register_default_bp2,
7401 .unlock = spi_disable_blockprotect,
7402 .write = spi_chip_write_256,
7403 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7404 .voltage = {2700, 3600},
7405 },
7406 {
7407 .vendor = "PMC",
7408 .name = "Pm25LD512(C)",
7409 .bustype = BUS_SPI,
7410 .manufacture_id = PMC_ID,
7411 .model_id = PMC_PM25LD512,
7412 .total_size = 64,
7413 .page_size = 256,
7414 .feature_bits = FEATURE_WRSR_WREN,
7415 .tested = TEST_OK_PREW,
7416 .probe = probe_spi_rdid,
7417 .probe_timing = TIMING_ZERO,
7418 .block_erasers =
7419 {
7420 {
7421 .eraseblocks = { {4 * 1024, 16} },
7422 .block_erase = spi_block_erase_20,
7423 }, {
7424 .eraseblocks = { {4 * 1024, 16} },
7425 .block_erase = spi_block_erase_d7,
7426 }, {
7427 .eraseblocks = { {32 * 1024, 2} },
7428 .block_erase = spi_block_erase_d8,
7429 }, {
7430 .eraseblocks = { {64 * 1024, 1} },
7431 .block_erase = spi_block_erase_60,
7432 }, {
7433 .eraseblocks = { {64 * 1024, 1} },
7434 .block_erase = spi_block_erase_c7,
7435 }
7436 },
7437 .printlock = spi_prettyprint_status_register_default_bp2,
7438 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7439 .write = spi_chip_write_256,
7440 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7441 .voltage = {2300, 3600},
7442 },
7443
7444 {
7445 .vendor = "PMC",
7446 .name = "Pm25LD010(C)",
7447 .bustype = BUS_SPI,
7448 .manufacture_id = PMC_ID,
7449 .model_id = PMC_PM25LD010,
7450 .total_size = 128,
7451 .page_size = 256,
7452 .feature_bits = FEATURE_WRSR_WREN,
7453 .tested = TEST_UNTESTED,
7454 .probe = probe_spi_rdid,
7455 .probe_timing = TIMING_ZERO,
7456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { {4 * 1024, 32} },
7460 .block_erase = spi_block_erase_20,
7461 }, {
7462 .eraseblocks = { {4 * 1024, 32} },
7463 .block_erase = spi_block_erase_d7,
7464 }, {
7465 .eraseblocks = { {32 * 1024, 4} },
7466 .block_erase = spi_block_erase_d8,
7467 }, {
7468 .eraseblocks = { {128 * 1024, 1} },
7469 .block_erase = spi_block_erase_60,
7470 }, {
7471 .eraseblocks = { {128 * 1024, 1} },
7472 .block_erase = spi_block_erase_c7,
7473 }
7474 },
7475 .printlock = spi_prettyprint_status_register_default_bp2,
7476 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7477 .write = spi_chip_write_256,
7478 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7479 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
7480 },
7481
7482 {
7483 .vendor = "PMC",
7484 .name = "Pm25LD020(C)",
7485 .bustype = BUS_SPI,
7486 .manufacture_id = PMC_ID,
7487 .model_id = PMC_PM25LD020,
7488 .total_size = 256,
7489 .page_size = 256,
7490 .feature_bits = FEATURE_WRSR_WREN,
7491 .tested = TEST_UNTESTED,
7492 .probe = probe_spi_rdid,
7493 .probe_timing = TIMING_ZERO,
7494 .block_erasers =
7495 {
7496 {
7497 .eraseblocks = { {4 * 1024, 64} },
7498 .block_erase = spi_block_erase_20,
7499 }, {
7500 .eraseblocks = { {4 * 1024, 64} },
7501 .block_erase = spi_block_erase_d7,
7502 }, {
7503 .eraseblocks = { {64 * 1024, 4} },
7504 .block_erase = spi_block_erase_d8,
7505 }, {
7506 .eraseblocks = { {256 * 1024, 1} },
7507 .block_erase = spi_block_erase_60,
7508 }, {
7509 .eraseblocks = { {256 * 1024, 1} },
7510 .block_erase = spi_block_erase_c7,
7511 }
7512 },
7513 .printlock = spi_prettyprint_status_register_default_bp2,
7514 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
7515 .write = spi_chip_write_256,
7516 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7517 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
7518 },
7519
7520 {
7521 .vendor = "PMC",
7522 .name = "Pm25LD040(C)",
7523 .bustype = BUS_SPI,
7524 .manufacture_id = PMC_ID,
7525 .model_id = PMC_PM25LV040,
7526 .total_size = 512,
7527 .page_size = 256,
7528 .feature_bits = FEATURE_WRSR_WREN,
7529 .tested = TEST_UNTESTED,
7530 .probe = probe_spi_rdid,
7531 .probe_timing = TIMING_ZERO,
7532 .block_erasers =
7533 {
7534 {
7535 .eraseblocks = { {4 * 1024, 128} },
7536 .block_erase = spi_block_erase_20,
7537 }, {
7538 .eraseblocks = { {4 * 1024, 128} },
7539 .block_erase = spi_block_erase_d7,
7540 }, {
7541 .eraseblocks = { {64 * 1024, 8} },
7542 .block_erase = spi_block_erase_d8,
7543 }, {
7544 .eraseblocks = { {512 * 1024, 1} },
7545 .block_erase = spi_block_erase_60,
7546 }, {
7547 .eraseblocks = { {512 * 1024, 1} },
7548 .block_erase = spi_block_erase_c7,
7549 }
7550 },
7551 .printlock = spi_prettyprint_status_register_default_bp2,
7552 .unlock = spi_disable_blockprotect,
7553 .write = spi_chip_write_256,
7554 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
7555 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
7556 },
7557
7558{
7559 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007560 .name = "Pm25LV512(A)",
7561 .bustype = BUS_SPI,
7562 .manufacture_id = PMC_ID,
7563 .model_id = PMC_PM25LV512,
7564 .total_size = 64,
7565 .page_size = 256,
7566 .feature_bits = FEATURE_WRSR_WREN,
7567 .tested = TEST_UNTESTED,
7568 .probe = probe_spi_res3,
7569 .probe_timing = TIMING_ZERO,
7570 .block_erasers =
7571 {
7572 {
7573 .eraseblocks = { {4 * 1024, 16} },
7574 .block_erase = spi_block_erase_d7,
7575 }, {
7576 .eraseblocks = { {32 * 1024, 2} },
7577 .block_erase = spi_block_erase_d8,
7578 }, {
7579 .eraseblocks = { {64 * 1024, 1} },
7580 .block_erase = spi_block_erase_c7,
7581 }
7582 },
7583 .printlock = spi_prettyprint_status_register_default_bp1,
7584 .unlock = spi_disable_blockprotect,
7585 .write = spi_chip_write_256,
7586 .read = spi_chip_read, /* Fast read (0x0B) supported */
7587 .voltage = {2700, 3600},
7588 },
7589
7590 {
7591 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007592 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007593 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007594 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007595 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 .total_size = 128,
7597 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007598 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007599 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007600 .probe = probe_spi_res3,
7601 .probe_timing = TIMING_ZERO,
7602 .block_erasers =
7603 {
7604 {
7605 .eraseblocks = { {4 * 1024, 32} },
7606 .block_erase = spi_block_erase_d7,
7607 }, {
7608 .eraseblocks = { {32 * 1024, 4} },
7609 .block_erase = spi_block_erase_d8,
7610 }, {
7611 .eraseblocks = { {128 * 1024, 1} },
7612 .block_erase = spi_block_erase_c7,
7613 }
7614 },
7615 .printlock = spi_prettyprint_status_register_default_bp1,
7616 .unlock = spi_disable_blockprotect,
7617 .write = spi_chip_write_256,
7618 .read = spi_chip_read, /* Fast read (0x0B) supported */
7619 .voltage = {2700, 3600},
7620 },
7621
7622 {
7623 .vendor = "PMC",
7624 .name = "Pm25LV010A",
7625 .bustype = BUS_SPI,
7626 .manufacture_id = PMC_ID,
7627 .model_id = PMC_PM25LV010,
7628 .total_size = 128,
7629 .page_size = 256,
7630 .feature_bits = FEATURE_WRSR_WREN,
7631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007632 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007633 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007634 .block_erasers =
7635 {
7636 {
7637 .eraseblocks = { {4 * 1024, 32} },
7638 .block_erase = spi_block_erase_d7,
7639 }, {
7640 .eraseblocks = { {32 * 1024, 4} },
7641 .block_erase = spi_block_erase_d8,
7642 }, {
7643 .eraseblocks = { {128 * 1024, 1} },
7644 .block_erase = spi_block_erase_c7,
7645 }
7646 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007647 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007648 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007649 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007650 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007651 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007652 },
7653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007654 {
7655 .vendor = "PMC",
7656 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007657 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007658 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007659 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007660 .total_size = 256,
7661 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007662 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007663 .tested = TEST_UNTESTED,
7664 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007665 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007666 .block_erasers =
7667 {
7668 {
7669 .eraseblocks = { {4 * 1024, 64} },
7670 .block_erase = spi_block_erase_d7,
7671 }, {
7672 .eraseblocks = { {64 * 1024, 4} },
7673 .block_erase = spi_block_erase_d8,
7674 }, {
7675 .eraseblocks = { {256 * 1024, 1} },
7676 .block_erase = spi_block_erase_c7,
7677 }
7678 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007679 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007680 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007681 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007683 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007684 },
7685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007686 {
7687 .vendor = "PMC",
7688 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007690 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007691 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007692 .total_size = 512,
7693 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007694 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007695 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007696 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007697 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007698 .block_erasers =
7699 {
7700 {
7701 .eraseblocks = { {4 * 1024, 128} },
7702 .block_erase = spi_block_erase_d7,
7703 }, {
7704 .eraseblocks = { {64 * 1024, 8} },
7705 .block_erase = spi_block_erase_d8,
7706 }, {
7707 .eraseblocks = { {512 * 1024, 1} },
7708 .block_erase = spi_block_erase_c7,
7709 }
7710 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007711 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007712 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007713 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007714 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007715 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007716 },
7717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007718 {
7719 .vendor = "PMC",
7720 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007721 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007722 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007723 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007724 .total_size = 1024,
7725 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007726 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007727 .tested = TEST_UNTESTED,
7728 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007729 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007730 .block_erasers =
7731 {
7732 {
7733 .eraseblocks = { {4 * 1024, 256} },
7734 .block_erase = spi_block_erase_d7,
7735 }, {
7736 .eraseblocks = { {4 * 1024, 256} },
7737 .block_erase = spi_block_erase_20,
7738 }, {
7739 .eraseblocks = { {64 * 1024, 16} },
7740 .block_erase = spi_block_erase_d8,
7741 }, {
7742 .eraseblocks = { {1024 * 1024, 1} },
7743 .block_erase = spi_block_erase_60,
7744 }, {
7745 .eraseblocks = { {1024 * 1024, 1} },
7746 .block_erase = spi_block_erase_c7,
7747 }
7748 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007749 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007750 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007751 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007752 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007753 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007754 },
7755
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007756 {
7757 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007758 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007759 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007760 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007761 .model_id = PMC_PM25LV016B,
7762 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007764 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007765 .tested = TEST_UNTESTED,
7766 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007767 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007768 .block_erasers =
7769 {
7770 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007771 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00007772 .block_erase = spi_block_erase_d7,
7773 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007774 .eraseblocks = { {4 * 1024, 512} },
7775 .block_erase = spi_block_erase_20,
7776 }, {
7777 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00007778 .block_erase = spi_block_erase_d8,
7779 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007780 .eraseblocks = { {2 * 1024 * 1024, 1} },
7781 .block_erase = spi_block_erase_60,
7782 }, {
7783 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007784 .block_erase = spi_block_erase_c7,
7785 }
7786 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007787 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007788 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007789 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007790 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007791 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007792 },
7793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007794 {
7795 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007796 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007797 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007798 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007799 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007800 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007801 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007802 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007803 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007804 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007805 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007806 .block_erasers =
7807 {
7808 {
7809 .eraseblocks = {
7810 {128 * 1024, 1},
7811 {96 * 1024, 1},
7812 {8 * 1024, 2},
7813 {16 * 1024, 1},
7814 },
Sean Nelson35727f72010-01-28 23:55:12 +00007815 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007816 }, {
7817 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007818 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007819 },
7820 },
Sean Nelson35727f72010-01-28 23:55:12 +00007821 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007823 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007824 },
7825
7826 {
7827 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007828 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007829 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007830 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007831 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007832 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007833 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007834 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007835 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007836 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007837 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007838 .block_erasers =
7839 {
7840 {
7841 .eraseblocks = {
7842 {16 * 1024, 1},
7843 {8 * 1024, 2},
7844 {96 * 1024, 1},
7845 {128 * 1024, 1},
7846 },
Sean Nelson35727f72010-01-28 23:55:12 +00007847 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007848 }, {
7849 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007850 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007851 },
7852 },
Sean Nelson35727f72010-01-28 23:55:12 +00007853 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007855 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007856 },
7857
7858 {
7859 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007860 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007861 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007862 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007863 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007864 .total_size = 128,
7865 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007866 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007867 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007868 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00007870 .block_erasers =
7871 {
7872 {
7873 .eraseblocks = { {4 * 1024, 32} },
7874 .block_erase = erase_sector_jedec,
7875 }, {
7876 .eraseblocks = { {64 * 1024, 2} },
7877 .block_erase = erase_block_jedec,
7878 }, {
7879 .eraseblocks = { {128 * 1024, 1} },
7880 .block_erase = erase_chip_block_jedec,
7881 }
7882 },
Sean Nelson35727f72010-01-28 23:55:12 +00007883 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007885 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007886 },
7887
7888 {
7889 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007890 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007891 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007892 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007893 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007894 .total_size = 256,
7895 .page_size = 4096,
7896 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7897 .tested = TEST_UNTESTED,
7898 .probe = probe_jedec,
7899 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7900 .block_erasers =
7901 {
7902 {
7903 .eraseblocks = { {4 * 1024, 64} },
7904 .block_erase = erase_sector_jedec,
7905 }, {
7906 .eraseblocks = { {64 * 1024, 4} },
7907 .block_erase = erase_block_jedec,
7908 }, {
7909 .eraseblocks = { {256 * 1024, 1} },
7910 .block_erase = erase_chip_block_jedec,
7911 }
7912 },
7913 .write = write_jedec_1,
7914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007915 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007916 },
7917
7918 {
7919 .vendor = "PMC",
7920 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007921 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007922 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007923 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007924 .total_size = 512,
7925 .page_size = 4096,
7926 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007927 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007928 .probe = probe_jedec,
7929 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7930 .block_erasers =
7931 {
7932 {
7933 .eraseblocks = { {4 * 1024, 128} },
7934 .block_erase = erase_sector_jedec,
7935 }, {
7936 .eraseblocks = { {64 * 1024, 8} },
7937 .block_erase = erase_block_jedec,
7938 }, {
7939 .eraseblocks = { {512 * 1024, 1} },
7940 .block_erase = erase_chip_block_jedec,
7941 }
7942 },
7943 .write = write_jedec_1,
7944 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007945 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007946 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00007947
7948 {
7949 .vendor = "PMC",
7950 .name = "Pm39LV512",
7951 .bustype = BUS_PARALLEL,
7952 .manufacture_id = PMC_ID_NOPREFIX,
7953 .model_id = PMC_PM39LV512,
7954 .total_size = 64,
7955 .page_size = 4096,
7956 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7957 .tested = TEST_OK_PREW,
7958 .probe = probe_jedec,
7959 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7960 .block_erasers =
7961 {
7962 {
7963 .eraseblocks = { {4 * 1024, 16} },
7964 .block_erase = erase_sector_jedec,
7965 }, {
7966 .eraseblocks = { {64 * 1024, 1} },
7967 .block_erase = erase_block_jedec,
7968 }, {
7969 .eraseblocks = { {64 * 1024, 1} },
7970 .block_erase = erase_chip_block_jedec,
7971 }
7972 },
7973 .write = write_jedec_1,
7974 .read = read_memmapped,
7975 .voltage = {2700, 3600},
7976 },
7977
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007978 {
7979 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007980 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007981 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007983 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007984 .total_size = 256,
7985 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007986 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00007987 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007988 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007989 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007990 .block_erasers =
7991 {
7992 {
7993 .eraseblocks = { {4 * 1024, 64} },
7994 .block_erase = erase_sector_jedec,
7995 }, {
7996 .eraseblocks = { {16 * 1024, 16} },
7997 .block_erase = erase_block_jedec,
7998 }, {
7999 .eraseblocks = { {256 * 1024, 1} },
8000 .block_erase = erase_chip_block_jedec,
8001 }
8002 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008003 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008004 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008006 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008007 },
8008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008009 {
8010 .vendor = "PMC",
8011 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008012 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008013 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008014 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008015 .total_size = 512,
8016 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008017 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008018 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008019 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008020 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008021 .block_erasers =
8022 {
8023 {
8024 .eraseblocks = { {4 * 1024, 128} },
8025 .block_erase = erase_sector_jedec,
8026 }, {
8027 .eraseblocks = { {64 * 1024, 8} },
8028 .block_erase = erase_block_jedec,
8029 }, {
8030 .eraseblocks = { {512 * 1024, 1} },
8031 .block_erase = erase_chip_block_jedec,
8032 }
8033 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008034 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008035 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008036 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008037 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008038 },
8039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008040 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00008041 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008042 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008043 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008044 .manufacture_id = SANYO_ID,
8045 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008046 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008047 .page_size = 256,
8048 .tested = TEST_UNTESTED,
8049 .probe = probe_spi_rdid,
8050 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008051 .block_erasers =
8052 {
8053 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008054 .eraseblocks = { {256, 1024} },
8055 .block_erase = spi_block_erase_db,
8056 }, {
8057 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00008058 .block_erase = spi_block_erase_d8,
8059 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008060 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008061 .block_erase = spi_block_erase_c7,
8062 }
8063 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008064 .printlock = spi_prettyprint_status_register_default_welwip,
8065 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00008066 .write = spi_chip_write_256,
8067 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008068 .voltage = {2700, 3600},
8069 },
8070
8071 {
8072 .vendor = "Sanyo",
8073 .name = "LE25FW403A",
8074 .bustype = BUS_SPI,
8075 .manufacture_id = SANYO_ID,
8076 .model_id = SANYO_LE25FW403A,
8077 .total_size = 512,
8078 .page_size = 256,
8079 .tested = TEST_UNTESTED,
8080 .probe = probe_spi_rdid,
8081 .probe_timing = TIMING_ZERO,
8082 .block_erasers = {
8083 {
8084 .eraseblocks = { {256, 2 * 1024} },
8085 .block_erase = spi_block_erase_db,
8086 }, {
8087 .eraseblocks = { {64 * 1024, 8} },
8088 .block_erase = spi_block_erase_d8,
8089 }, {
8090 .eraseblocks = { {512 * 1024, 1} },
8091 .block_erase = spi_block_erase_c7,
8092 }
8093 },
8094 .printlock = spi_prettyprint_status_register_default_welwip,
8095 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8096 .write = spi_chip_write_256,
8097 .read = spi_chip_read,
8098 .voltage = {2700, 3600},
8099 },
8100
8101 {
8102 .vendor = "Sanyo",
8103 .name = "LE25FW418A",
8104 .bustype = BUS_SPI,
8105 .manufacture_id = SANYO_ID,
8106 .model_id = SANYO_LE25FW418A,
8107 .total_size = 512,
8108 .page_size = 256,
8109 .feature_bits = FEATURE_WRSR_WREN,
8110 .tested = TEST_UNTESTED,
8111 .probe = probe_spi_res2,
8112 .probe_timing = TIMING_ZERO,
8113 .block_erasers = {
8114 {
8115 .eraseblocks = { {4 * 1024, 128} },
8116 .block_erase = spi_block_erase_d7,
8117 }, {
8118 .eraseblocks = { {64 * 1024, 8} },
8119 .block_erase = spi_block_erase_d8,
8120 }, {
8121 .eraseblocks = { {512 * 1024, 1} },
8122 .block_erase = spi_block_erase_c7,
8123 }
8124 },
8125 .printlock = spi_prettyprint_status_register_default_bp2,
8126 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8127 .write = spi_chip_write_256,
8128 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8129 .voltage = {2700, 3600},
8130 },
8131
8132 {
8133 .vendor = "Sanyo",
8134 .name = "LE25FW806",
8135 .bustype = BUS_SPI,
8136 .manufacture_id = SANYO_ID,
8137 .model_id = SANYO_LE25FW806,
8138 .total_size = 1024,
8139 .page_size = 256,
8140 .feature_bits = FEATURE_WRSR_WREN,
8141 .tested = TEST_UNTESTED,
8142 .probe = probe_spi_res2,
8143 .probe_timing = TIMING_ZERO,
8144 .block_erasers = {
8145 {
8146 .eraseblocks = { {4 * 1024, 256} },
8147 .block_erase = spi_block_erase_20,
8148 }, {
8149 .eraseblocks = { {4 * 1024, 256} },
8150 .block_erase = spi_block_erase_d7,
8151 }, {
8152 .eraseblocks = { {64 * 1024, 16} },
8153 .block_erase = spi_block_erase_d8,
8154 }, {
8155 .eraseblocks = { {1024 * 1024, 1} },
8156 .block_erase = spi_block_erase_c7,
8157 }
8158 },
8159 .printlock = spi_prettyprint_status_register_default_bp2,
8160 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8161 .write = spi_chip_write_256,
8162 .read = spi_chip_read,
8163 .voltage = {2700, 3600},
8164 },
8165
8166 {
8167 .vendor = "Sanyo",
8168 .name = "LE25FW808",
8169 .bustype = BUS_SPI,
8170 .manufacture_id = SANYO_ID,
8171 .model_id = SANYO_LE25FW808,
8172 .total_size = 1024,
8173 .page_size = 256,
8174 .feature_bits = FEATURE_WRSR_WREN,
8175 .tested = TEST_UNTESTED,
8176 .probe = probe_spi_res2,
8177 .probe_timing = TIMING_ZERO,
8178 .block_erasers = {
8179 {
8180 .eraseblocks = { {8 * 1024, 128} },
8181 .block_erase = spi_block_erase_d7,
8182 }, {
8183 .eraseblocks = { {64 * 1024, 16} },
8184 .block_erase = spi_block_erase_d8,
8185 }, {
8186 .eraseblocks = { {1024 * 1024, 1} },
8187 .block_erase = spi_block_erase_c7,
8188 }
8189 },
8190 .printlock = spi_prettyprint_status_register_default_bp2,
8191 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
8192 .write = spi_chip_write_256,
8193 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
8194 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00008195 },
8196
8197 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008198 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008199 .name = "LH28F008BJT-BTLZ1",
8200 .bustype = BUS_PARALLEL,
8201 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00008202 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00008203 .total_size = 1024,
8204 .page_size = 64 * 1024,
8205 .tested = TEST_OK_PREW,
8206 .probe = probe_82802ab,
8207 .probe_timing = TIMING_ZERO,
8208 .block_erasers =
8209 {
8210 {
8211 .eraseblocks = {
8212 {8 * 1024, 8},
8213 {64 * 1024, 15}
8214 },
8215 .block_erase = erase_block_82802ab,
8216 }, {
8217 .eraseblocks = { {1024 * 1024, 1} },
8218 .block_erase = erase_sector_49lfxxxc,
8219 }
8220 },
8221 .unlock = unlock_lh28f008bjt,
8222 .write = write_82802ab,
8223 .read = read_memmapped,
8224 .voltage = {2700, 3600},
8225 },
8226
8227 {
8228 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008229 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008230 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008231 .manufacture_id = SHARP_ID,
8232 .model_id = SHARP_LHF00L04,
8233 .total_size = 1024,
8234 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008235 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008236 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008237 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008238 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008239 .block_erasers =
8240 {
8241 {
8242 .eraseblocks = {
8243 {64 * 1024, 15},
8244 {8 * 1024, 8}
8245 },
Sean Nelson28accc22010-03-19 18:47:06 +00008246 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008247 }, {
8248 .eraseblocks = {
8249 {1024 * 1024, 1}
8250 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008251 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00008252 },
8253 },
Sean Nelson28accc22010-03-19 18:47:06 +00008254 .unlock = unlock_82802ab,
8255 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008257 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008258 },
8259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008260 {
8261 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00008262 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008263 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008264 .manufacture_id = SPANSION_ID,
8265 .model_id = SPANSION_S25FL004A,
8266 .total_size = 512,
8267 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008268 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008269 .tested = TEST_UNTESTED,
8270 .probe = probe_spi_rdid,
8271 .probe_timing = TIMING_ZERO,
8272 .block_erasers =
8273 {
8274 {
8275 .eraseblocks = { {64 * 1024, 8} },
8276 .block_erase = spi_block_erase_d8,
8277 }, {
8278 .eraseblocks = { {512 * 1024, 1} },
8279 .block_erase = spi_block_erase_c7,
8280 }
8281 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008282 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008283 .unlock = spi_disable_blockprotect,
8284 .write = spi_chip_write_256,
8285 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008286 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008287 },
8288
8289 {
8290 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00008291 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008292 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00008293 .manufacture_id = SPANSION_ID,
8294 .model_id = SPANSION_S25FL008A,
8295 .total_size = 1024,
8296 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008297 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008298 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00008299 .probe = probe_spi_rdid,
8300 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00008301 .block_erasers =
8302 {
8303 {
8304 .eraseblocks = { {64 * 1024, 16} },
8305 .block_erase = spi_block_erase_d8,
8306 }, {
8307 .eraseblocks = { {1024 * 1024, 1} },
8308 .block_erase = spi_block_erase_c7,
8309 }
8310 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008311 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008312 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00008313 .write = spi_chip_write_256,
8314 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008315 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00008316 },
8317
8318 {
8319 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008320 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008321 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008322 .manufacture_id = SPANSION_ID,
8323 .model_id = SPANSION_S25FL016A,
8324 .total_size = 2048,
8325 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008326 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008327 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008328 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008329 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008330 .block_erasers =
8331 {
8332 {
8333 .eraseblocks = { {64 * 1024, 32} },
8334 .block_erase = spi_block_erase_d8,
8335 }, {
8336 .eraseblocks = { {2 * 1024 * 1024, 1} },
8337 .block_erase = spi_block_erase_c7,
8338 }
8339 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008340 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008341 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008342 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008343 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008344 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008345 },
8346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008347 {
Rudy Hostf4e57772010-11-29 00:37:49 +00008348 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008349 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008350 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008351 .manufacture_id = SPANSION_ID,
8352 .model_id = SPANSION_S25FL032A,
8353 .total_size = 4096,
8354 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008355 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008356 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00008357 .probe = probe_spi_rdid,
8358 .probe_timing = TIMING_ZERO,
8359 .block_erasers =
8360 {
8361 {
8362 .eraseblocks = { {64 * 1024, 64} },
8363 .block_erase = spi_block_erase_d8,
8364 }, {
8365 .eraseblocks = { {4 * 1024 * 1024, 1} },
8366 .block_erase = spi_block_erase_c7,
8367 }
8368 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008369 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008370 .unlock = spi_disable_blockprotect,
8371 .write = spi_chip_write_256,
8372 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008373 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008374 },
8375
8376 {
8377 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008378 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008379 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00008380 .manufacture_id = SPANSION_ID,
8381 .model_id = SPANSION_S25FL064A,
8382 .total_size = 8192,
8383 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008384 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00008385 .tested = TEST_OK_PREW,
8386 .probe = probe_spi_rdid,
8387 .probe_timing = TIMING_ZERO,
8388 .block_erasers =
8389 {
8390 {
8391 .eraseblocks = { {64 * 1024, 128} },
8392 .block_erase = spi_block_erase_d8,
8393 }, {
8394 .eraseblocks = { {8 * 1024 * 1024, 1} },
8395 .block_erase = spi_block_erase_c7,
8396 }
8397 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008398 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00008399 .unlock = spi_disable_blockprotect,
8400 .write = spi_chip_write_256,
8401 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008402 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00008403 },
8404
8405 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008406 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00008407 .name = "SST25LF040A",
8408 .bustype = BUS_SPI,
8409 .manufacture_id = SST_ID,
8410 .model_id = SST_SST25VF040_REMS,
8411 .total_size = 512,
8412 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008413 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00008414 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00008415 .probe = probe_spi_res2,
8416 .probe_timing = TIMING_ZERO,
8417 .block_erasers =
8418 {
8419 {
8420 .eraseblocks = { {4 * 1024, 128} },
8421 .block_erase = spi_block_erase_20,
8422 }, {
8423 .eraseblocks = { {32 * 1024, 16} },
8424 .block_erase = spi_block_erase_52,
8425 }, {
8426 .eraseblocks = { {512 * 1024, 1} },
8427 .block_erase = spi_block_erase_60,
8428 },
8429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008430 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008431 .unlock = spi_disable_blockprotect,
8432 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8433 .read = spi_chip_read,
8434 .voltage = {3000, 3600},
8435 },
8436
8437 {
8438 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00008439 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00008440 .bustype = BUS_SPI,
8441 .manufacture_id = SST_ID,
8442 .model_id = SST_SST25VF080_REMS,
8443 .total_size = 1024,
8444 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008445 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00008446 .tested = TEST_UNTESTED,
8447 .probe = probe_spi_res2,
8448 .probe_timing = TIMING_ZERO,
8449 .block_erasers =
8450 {
8451 {
8452 .eraseblocks = { {4 * 1024, 256} },
8453 .block_erase = spi_block_erase_20,
8454 }, {
8455 .eraseblocks = { {32 * 1024, 32} },
8456 .block_erase = spi_block_erase_52,
8457 }, {
8458 .eraseblocks = { {1024 * 1024, 1} },
8459 .block_erase = spi_block_erase_60,
8460 },
8461 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008462 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00008463 .unlock = spi_disable_blockprotect,
8464 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
8465 .read = spi_chip_read,
8466 .voltage = {3000, 3600},
8467 },
8468
8469 {
8470 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008471 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008472 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00008473 .manufacture_id = SST_ID,
8474 .model_id = SST_SST25VF010_REMS,
8475 .total_size = 128,
8476 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008477 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00008478 .tested = TEST_OK_PREW,
8479 .probe = probe_spi_rems,
8480 .probe_timing = TIMING_ZERO,
8481 .block_erasers =
8482 {
8483 {
8484 .eraseblocks = { {4 * 1024, 32} },
8485 .block_erase = spi_block_erase_20,
8486 }, {
8487 .eraseblocks = { {32 * 1024, 4} },
8488 .block_erase = spi_block_erase_52,
8489 }, {
8490 .eraseblocks = { {128 * 1024, 1} },
8491 .block_erase = spi_block_erase_60,
8492 },
8493 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008494 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00008495 .unlock = spi_disable_blockprotect,
8496 .write = spi_chip_write_1,
8497 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008498 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00008499 },
8500
8501 {
8502 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008503 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008504 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008505 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008506 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008507 .total_size = 2048,
8508 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00008509 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00008510 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008511 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008512 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008513 .block_erasers =
8514 {
8515 {
8516 .eraseblocks = { {4 * 1024, 512} },
8517 .block_erase = spi_block_erase_20,
8518 }, {
8519 .eraseblocks = { {32 * 1024, 64} },
8520 .block_erase = spi_block_erase_52,
8521 }, {
8522 .eraseblocks = { {64 * 1024, 32} },
8523 .block_erase = spi_block_erase_d8,
8524 }, {
8525 .eraseblocks = { {2 * 1024 * 1024, 1} },
8526 .block_erase = spi_block_erase_60,
8527 }, {
8528 .eraseblocks = { {2 * 1024 * 1024, 1} },
8529 .block_erase = spi_block_erase_c7,
8530 },
8531 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008532 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008533 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008534 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008535 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008536 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008537 },
8538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 {
8540 .vendor = "SST",
8541 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008542 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008543 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008544 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008545 .total_size = 4096,
8546 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008547 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00008548 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008549 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008550 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008551 .block_erasers =
8552 {
8553 {
8554 .eraseblocks = { {4 * 1024, 1024} },
8555 .block_erase = spi_block_erase_20,
8556 }, {
8557 .eraseblocks = { {32 * 1024, 128} },
8558 .block_erase = spi_block_erase_52,
8559 }, {
8560 .eraseblocks = { {64 * 1024, 64} },
8561 .block_erase = spi_block_erase_d8,
8562 }, {
8563 .eraseblocks = { {4 * 1024 * 1024, 1} },
8564 .block_erase = spi_block_erase_60,
8565 }, {
8566 .eraseblocks = { {4 * 1024 * 1024, 1} },
8567 .block_erase = spi_block_erase_c7,
8568 },
8569 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008570 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008571 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008572 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008573 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008574 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008575 },
8576
8577 {
8578 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008579 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008580 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008581 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008582 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008583 .total_size = 8192,
8584 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008585 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00008586 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008587 .probe = probe_spi_rdid,
8588 .probe_timing = TIMING_ZERO,
8589 .block_erasers =
8590 {
8591 {
8592 .eraseblocks = { {4 * 1024, 2048} },
8593 .block_erase = spi_block_erase_20,
8594 }, {
8595 .eraseblocks = { {32 * 1024, 256} },
8596 .block_erase = spi_block_erase_52,
8597 }, {
8598 .eraseblocks = { {64 * 1024, 128} },
8599 .block_erase = spi_block_erase_d8,
8600 }, {
8601 .eraseblocks = { {8 * 1024 * 1024, 1} },
8602 .block_erase = spi_block_erase_60,
8603 }, {
8604 .eraseblocks = { {8 * 1024 * 1024, 1} },
8605 .block_erase = spi_block_erase_c7,
8606 },
8607 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008608 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008609 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008610 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008611 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008612 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008613 },
8614
8615 {
8616 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008617 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008618 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008619 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008620 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008621 .total_size = 512,
8622 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008623 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008624 .tested = TEST_OK_PR,
8625 .probe = probe_spi_rems,
8626 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008627 .block_erasers =
8628 {
8629 {
8630 .eraseblocks = { {4 * 1024, 128} },
8631 .block_erase = spi_block_erase_20,
8632 }, {
8633 .eraseblocks = { {32 * 1024, 16} },
8634 .block_erase = spi_block_erase_52,
8635 }, {
8636 .eraseblocks = { {512 * 1024, 1} },
8637 .block_erase = spi_block_erase_60,
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_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008643 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +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",
8649 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008650 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008651 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008652 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008653 .total_size = 512,
8654 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008655 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008656 .tested = TEST_UNTESTED,
8657 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008658 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008659 .block_erasers =
8660 {
8661 {
8662 .eraseblocks = { {4 * 1024, 128} },
8663 .block_erase = spi_block_erase_20,
8664 }, {
8665 .eraseblocks = { {32 * 1024, 16} },
8666 .block_erase = spi_block_erase_52,
8667 }, {
8668 .eraseblocks = { {64 * 1024, 8} },
8669 .block_erase = spi_block_erase_d8,
8670 }, {
8671 .eraseblocks = { {512 * 1024, 1} },
8672 .block_erase = spi_block_erase_60,
8673 }, {
8674 .eraseblocks = { {512 * 1024, 1} },
8675 .block_erase = spi_block_erase_c7,
8676 },
8677 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008678 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008679 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008680 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00008681 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008682 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00008683 },
8684
8685 {
8686 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00008687 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008688 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008689 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008690 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00008691 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008692 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008693 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00008694 .tested = TEST_OK_PR,
8695 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008696 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008697 .block_erasers =
8698 {
8699 {
8700 .eraseblocks = { {4 * 1024, 128} },
8701 .block_erase = spi_block_erase_20,
8702 }, {
8703 .eraseblocks = { {32 * 1024, 16} },
8704 .block_erase = spi_block_erase_52,
8705 }, {
8706 .eraseblocks = { {64 * 1024, 8} },
8707 .block_erase = spi_block_erase_d8,
8708 }, {
8709 .eraseblocks = { {512 * 1024, 1} },
8710 .block_erase = spi_block_erase_60,
8711 }, {
8712 .eraseblocks = { {512 * 1024, 1} },
8713 .block_erase = spi_block_erase_c7,
8714 },
8715 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008716 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008717 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008718 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00008719 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008720 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00008721 },
8722
8723 {
8724 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008725 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008726 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008727 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008728 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008729 .total_size = 1024,
8730 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008731 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00008732 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008733 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008734 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008735 .block_erasers =
8736 {
8737 {
8738 .eraseblocks = { {4 * 1024, 256} },
8739 .block_erase = spi_block_erase_20,
8740 }, {
8741 .eraseblocks = { {32 * 1024, 32} },
8742 .block_erase = spi_block_erase_52,
8743 }, {
8744 .eraseblocks = { {64 * 1024, 16} },
8745 .block_erase = spi_block_erase_d8,
8746 }, {
8747 .eraseblocks = { {1024 * 1024, 1} },
8748 .block_erase = spi_block_erase_60,
8749 }, {
8750 .eraseblocks = { {1024 * 1024, 1} },
8751 .block_erase = spi_block_erase_c7,
8752 },
8753 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008754 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008755 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008756 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008758 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008759 },
8760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008761 {
8762 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00008763 .name = "SST25WF512",
8764 .bustype = BUS_SPI,
8765 .manufacture_id = SST_ID,
8766 .model_id = SST_SST25WF512,
8767 .total_size = 64,
8768 .page_size = 256,
8769 .feature_bits = FEATURE_WRSR_EITHER,
8770 .tested = TEST_UNTESTED,
8771 .probe = probe_spi_rdid,
8772 .probe_timing = TIMING_ZERO,
8773 .block_erasers =
8774 {
8775 {
8776 .eraseblocks = { {4 * 1024, 16} },
8777 .block_erase = spi_block_erase_20,
8778 }, {
8779 .eraseblocks = { {32 * 1024, 2} },
8780 .block_erase = spi_block_erase_52,
8781 }, {
8782 .eraseblocks = { {1024 * 64, 1} },
8783 .block_erase = spi_block_erase_60,
8784 }, {
8785 .eraseblocks = { {1024 * 64, 1} },
8786 .block_erase = spi_block_erase_c7,
8787 },
8788 },
8789 .unlock = spi_disable_blockprotect,
8790 .write = spi_aai_write,
8791 .read = spi_chip_read, /* Fast read (0x0B) supported */
8792 .voltage = {1650, 1950},
8793 },
8794
8795 {
8796 .vendor = "SST",
8797 .name = "SST25WF010",
8798 .bustype = BUS_SPI,
8799 .manufacture_id = SST_ID,
8800 .model_id = SST_SST25WF010,
8801 .total_size = 128,
8802 .page_size = 256,
8803 .feature_bits = FEATURE_WRSR_EITHER,
8804 .tested = TEST_UNTESTED,
8805 .probe = probe_spi_rdid,
8806 .probe_timing = TIMING_ZERO,
8807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = { {4 * 1024, 32} },
8811 .block_erase = spi_block_erase_20,
8812 }, {
8813 .eraseblocks = { {32 * 1024, 4} },
8814 .block_erase = spi_block_erase_52,
8815 }, {
8816 .eraseblocks = { {1024 * 128, 1} },
8817 .block_erase = spi_block_erase_60,
8818 }, {
8819 .eraseblocks = { {1024 * 128, 1} },
8820 .block_erase = spi_block_erase_c7,
8821 },
8822 },
8823 .unlock = spi_disable_blockprotect,
8824 .write = spi_aai_write,
8825 .read = spi_chip_read, /* Fast read (0x0B) supported */
8826 .voltage = {1650, 1950},
8827 },
8828
8829 {
8830 .vendor = "SST",
8831 .name = "SST25WF020",
8832 .bustype = BUS_SPI,
8833 .manufacture_id = SST_ID,
8834 .model_id = SST_SST25WF020,
8835 .total_size = 256,
8836 .page_size = 256,
8837 .feature_bits = FEATURE_WRSR_EITHER,
8838 .tested = TEST_UNTESTED,
8839 .probe = probe_spi_rdid,
8840 .probe_timing = TIMING_ZERO,
8841 .block_erasers =
8842 {
8843 {
8844 .eraseblocks = { {4 * 1024, 64} },
8845 .block_erase = spi_block_erase_20,
8846 }, {
8847 .eraseblocks = { {32 * 1024, 8} },
8848 .block_erase = spi_block_erase_52,
8849 }, {
8850 .eraseblocks = { {64 * 1024, 4} },
8851 .block_erase = spi_block_erase_d8,
8852 }, {
8853 .eraseblocks = { {1024 * 256, 1} },
8854 .block_erase = spi_block_erase_60,
8855 }, {
8856 .eraseblocks = { {1024 * 256, 1} },
8857 .block_erase = spi_block_erase_c7,
8858 },
8859 },
8860 .unlock = spi_disable_blockprotect,
8861 .write = spi_aai_write,
8862 .read = spi_chip_read, /* Fast read (0x0B) supported */
8863 .voltage = {1650, 1950},
8864 },
8865
8866 {
8867 .vendor = "SST",
8868 .name = "SST25WF040",
8869 .bustype = BUS_SPI,
8870 .manufacture_id = SST_ID,
8871 .model_id = SST_SST25WF040,
8872 .total_size = 512,
8873 .page_size = 256,
8874 .feature_bits = FEATURE_WRSR_EITHER,
8875 .tested = TEST_UNTESTED,
8876 .probe = probe_spi_rdid,
8877 .probe_timing = TIMING_ZERO,
8878 .block_erasers =
8879 {
8880 {
8881 .eraseblocks = { {4 * 1024, 128} },
8882 .block_erase = spi_block_erase_20,
8883 }, {
8884 .eraseblocks = { {32 * 1024, 16} },
8885 .block_erase = spi_block_erase_52,
8886 }, {
8887 .eraseblocks = { {64 * 1024, 8} },
8888 .block_erase = spi_block_erase_d8,
8889 }, {
8890 .eraseblocks = { {1024 * 512, 1} },
8891 .block_erase = spi_block_erase_60,
8892 }, {
8893 .eraseblocks = { {1024 * 512, 1} },
8894 .block_erase = spi_block_erase_c7,
8895 },
8896 },
8897 .unlock = spi_disable_blockprotect,
8898 .write = spi_aai_write,
8899 .read = spi_chip_read, /* Fast read (0x0B) supported */
8900 .voltage = {1650, 1950},
8901 },
8902
8903 {
8904 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008905 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008906 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008907 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008908 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008909 .total_size = 512,
8910 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008911 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008912 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008913 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008914 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008915 .block_erasers =
8916 {
8917 {
8918 .eraseblocks = { {128, 4096} },
8919 .block_erase = erase_sector_28sf040,
8920 }, {
8921 .eraseblocks = { {512 * 1024, 1} },
8922 .block_erase = erase_chip_28sf040,
8923 }
8924 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008925 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008926 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008928 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008929 },
8930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008931 {
8932 .vendor = "SST",
8933 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008934 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008936 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008937 .total_size = 128,
8938 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008939 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008940 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008941 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008942 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008943 .block_erasers =
8944 {
8945 {
8946 .eraseblocks = { {128 * 1024, 1} },
8947 .block_erase = erase_chip_block_jedec,
8948 }
8949 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008950 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008952 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008953 },
8954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008955 {
8956 .vendor = "SST",
8957 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008958 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008959 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008960 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008961 .total_size = 128,
8962 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008963 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008964 .tested = TEST_UNTESTED,
8965 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008966 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008967 .block_erasers =
8968 {
8969 {
8970 .eraseblocks = { {128 * 1024, 1} },
8971 .block_erase = erase_chip_block_jedec,
8972 }
8973 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008974 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008976 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008977 },
8978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008979 {
8980 .vendor = "SST",
8981 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008982 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008983 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008984 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 .total_size = 256,
8986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008987 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008988 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008989 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008990 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008991 .block_erasers =
8992 {
8993 {
8994 .eraseblocks = { {256 * 1024, 1} },
8995 .block_erase = erase_chip_block_jedec,
8996 }
8997 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008998 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009000 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009001 },
9002
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009003 {
9004 .vendor = "SST",
9005 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009006 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009007 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009008 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009009 .total_size = 256,
9010 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009011 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009012 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009013 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009014 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009015 .block_erasers =
9016 {
9017 {
9018 .eraseblocks = { {256 * 1024, 1} },
9019 .block_erase = erase_chip_block_jedec,
9020 }
9021 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009022 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009024 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009025 },
9026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009027 {
9028 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00009029 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009030 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009031 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009032 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009033 .total_size = 64,
9034 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009035 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00009036 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009037 .probe = probe_jedec,
9038 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00009039 .block_erasers =
9040 {
9041 {
9042 .eraseblocks = { {4 * 1024, 16} },
9043 .block_erase = erase_sector_jedec,
9044 }, {
9045 .eraseblocks = { {64 * 1024, 1} },
9046 .block_erase = erase_chip_block_jedec,
9047 }
9048 },
Sean Nelson35727f72010-01-28 23:55:12 +00009049 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00009050 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009051 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00009052 },
9053
9054 {
9055 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009056 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009057 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009058 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009059 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009060 .total_size = 128,
9061 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009062 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009063 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009064 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009065 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009066 .block_erasers =
9067 {
9068 {
9069 .eraseblocks = { {4 * 1024, 32} },
9070 .block_erase = erase_sector_jedec,
9071 }, {
9072 .eraseblocks = { {128 * 1024, 1} },
9073 .block_erase = erase_chip_block_jedec,
9074 }
9075 },
Sean Nelson35727f72010-01-28 23:55:12 +00009076 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009077 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009078 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009079 },
9080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009081 {
9082 .vendor = "SST",
9083 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009084 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009085 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009086 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009087 .total_size = 256,
9088 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009089 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009090 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009091 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009092 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009093 .block_erasers =
9094 {
9095 {
9096 .eraseblocks = { {4 * 1024, 64} },
9097 .block_erase = erase_sector_jedec,
9098 }, {
9099 .eraseblocks = { {256 * 1024, 1} },
9100 .block_erase = erase_chip_block_jedec,
9101 }
9102 },
Sean Nelson35727f72010-01-28 23:55:12 +00009103 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009105 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009106 },
9107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009108 {
9109 .vendor = "SST",
9110 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009112 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009113 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009114 .total_size = 512,
9115 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009116 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009118 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009119 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009120 .block_erasers =
9121 {
9122 {
9123 .eraseblocks = { {4 * 1024, 128} },
9124 .block_erase = erase_sector_jedec,
9125 }, {
9126 .eraseblocks = { {512 * 1024, 1} },
9127 .block_erase = erase_chip_block_jedec,
9128 }
9129 },
Sean Nelson35727f72010-01-28 23:55:12 +00009130 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009132 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009133 },
9134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009135 {
9136 .vendor = "SST",
9137 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009138 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009139 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009140 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009141 .total_size = 64,
9142 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009143 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00009144 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009145 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009146 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009147 .block_erasers =
9148 {
9149 {
9150 .eraseblocks = { {4 * 1024, 16} },
9151 .block_erase = erase_sector_jedec,
9152 }, {
9153 .eraseblocks = { {64 * 1024, 1} },
9154 .block_erase = erase_chip_block_jedec,
9155 }
9156 },
Sean Nelson35727f72010-01-28 23:55:12 +00009157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009159 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009160 },
9161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009162 {
9163 .vendor = "SST",
9164 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009165 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009166 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009167 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009168 .total_size = 128,
9169 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009170 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009171 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009172 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009173 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009174 .block_erasers =
9175 {
9176 {
9177 .eraseblocks = { {4 * 1024, 32} },
9178 .block_erase = erase_sector_jedec,
9179 }, {
9180 .eraseblocks = { {128 * 1024, 1} },
9181 .block_erase = erase_chip_block_jedec,
9182 }
9183 },
Sean Nelson35727f72010-01-28 23:55:12 +00009184 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009185 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009186 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009187 },
9188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009189 {
9190 .vendor = "SST",
9191 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009192 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009193 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009194 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 .total_size = 256,
9196 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009197 .feature_bits = FEATURE_EITHER_RESET,
9198 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009199 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009200 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009201 .block_erasers =
9202 {
9203 {
9204 .eraseblocks = { {4 * 1024, 64} },
9205 .block_erase = erase_sector_jedec,
9206 }, {
9207 .eraseblocks = { {256 * 1024, 1} },
9208 .block_erase = erase_chip_block_jedec,
9209 }
9210 },
Sean Nelson35727f72010-01-28 23:55:12 +00009211 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009213 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009214 },
9215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009216 {
9217 .vendor = "SST",
9218 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009219 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009220 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009221 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009222 .total_size = 512,
9223 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009224 .feature_bits = FEATURE_EITHER_RESET,
9225 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009226 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009227 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009228 .block_erasers =
9229 {
9230 {
9231 .eraseblocks = { {4 * 1024, 128} },
9232 .block_erase = erase_sector_jedec,
9233 }, {
9234 .eraseblocks = { {512 * 1024, 1} },
9235 .block_erase = erase_chip_block_jedec,
9236 }
9237 },
Sean Nelson35727f72010-01-28 23:55:12 +00009238 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009240 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00009241 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009242
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009243 {
9244 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00009245 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009246 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009247 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009248 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00009249 .total_size = 1024,
9250 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009251 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00009252 .tested = TEST_UNTESTED,
9253 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009254 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009255 .block_erasers =
9256 {
9257 {
9258 .eraseblocks = { {4 * 1024, 256} },
9259 .block_erase = erase_sector_jedec,
9260 }, {
9261 .eraseblocks = { {64 * 1024, 16} },
9262 .block_erase = erase_block_jedec,
9263 }, {
9264 .eraseblocks = { {1024 * 1024, 1} },
9265 .block_erase = erase_chip_block_jedec,
9266 }
9267 },
Sean Nelson35727f72010-01-28 23:55:12 +00009268 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009269 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009270 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00009271 },
9272
9273 {
9274 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009275 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009276 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009277 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009278 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009279 .total_size = 256,
9280 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009281 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009282 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009283 .probe = probe_jedec,
9284 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009285 .block_erasers =
9286 {
9287 {
9288 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009289 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009290 }, {
9291 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009292 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009293 }, {
9294 .eraseblocks = { {256 * 1024, 1} },
9295 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9296 }
9297 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009298 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009299 .unlock = unlock_sst_fwhub,
9300 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009302 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009303 },
9304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009305 {
9306 .vendor = "SST",
9307 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009308 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009309 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009310 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009311 .total_size = 384,
9312 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009313 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009314 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009315 .probe = probe_jedec,
9316 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009317 .block_erasers =
9318 {
9319 {
9320 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009321 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009322 }, {
9323 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009324 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009325 }, {
9326 .eraseblocks = { {384 * 1024, 1} },
9327 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9328 }
9329 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009330 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009331 .unlock = unlock_sst_fwhub,
9332 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009334 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009335 },
9336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009337 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009338 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
9339 * and is only honored for 64k block erase, but not 4k sector erase.
9340 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009341 .vendor = "SST",
9342 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009343 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009344 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009345 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009346 .total_size = 512,
9347 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009348 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009349 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009350 .probe = probe_jedec,
9351 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009352 .block_erasers =
9353 {
9354 {
9355 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009356 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009357 }, {
9358 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009359 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009360 }, {
9361 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009362 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00009363 },
9364 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009365 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009366 .unlock = unlock_sst_fwhub,
9367 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009369 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009370 },
9371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009372 {
9373 .vendor = "SST",
9374 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009375 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009376 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009377 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009378 .total_size = 512,
9379 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009380 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009381 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009382 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009383 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009384 .block_erasers =
9385 {
9386 {
9387 .eraseblocks = { {4 * 1024, 128} },
9388 .block_erase = erase_sector_49lfxxxc,
9389 }, {
9390 .eraseblocks = {
9391 {64 * 1024, 7},
9392 {32 * 1024, 1},
9393 {8 * 1024, 2},
9394 {16 * 1024, 1},
9395 },
Sean Nelson69e58112010-03-23 17:10:28 +00009396 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009397 }
9398 },
Sean Nelson69e58112010-03-23 17:10:28 +00009399 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009400 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009401 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009402 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009403 },
9404
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009405 {
9406 .vendor = "SST",
9407 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009408 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009409 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009410 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009411 .total_size = 1024,
9412 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009413 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009414 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009415 .probe = probe_jedec,
9416 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009417 .block_erasers =
9418 {
9419 {
9420 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009421 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009422 }, {
9423 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009424 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009425 }, {
9426 .eraseblocks = { {1024 * 1024, 1} },
9427 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
9428 }
9429 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009430 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00009431 .unlock = unlock_sst_fwhub,
9432 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009433 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009434 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009435 },
9436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009437 {
9438 .vendor = "SST",
9439 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009440 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009441 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009442 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009443 .total_size = 1024,
9444 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009445 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009446 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009447 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009448 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { {4 * 1024, 256} },
9453 .block_erase = erase_sector_49lfxxxc,
9454 }, {
9455 .eraseblocks = {
9456 {64 * 1024, 15},
9457 {32 * 1024, 1},
9458 {8 * 1024, 2},
9459 {16 * 1024, 1},
9460 },
Sean Nelson69e58112010-03-23 17:10:28 +00009461 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009462 }
9463 },
Sean Nelson69e58112010-03-23 17:10:28 +00009464 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009465 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009466 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009467 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009468 },
9469
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009470 {
9471 .vendor = "SST",
9472 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009473 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009474 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009475 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009476 .total_size = 2048,
9477 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009478 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00009479 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009480 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009481 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009482 .block_erasers =
9483 {
9484 {
9485 .eraseblocks = { {4 * 1024, 512} },
9486 .block_erase = erase_sector_49lfxxxc,
9487 }, {
9488 .eraseblocks = {
9489 {64 * 1024, 31},
9490 {32 * 1024, 1},
9491 {8 * 1024, 2},
9492 {16 * 1024, 1},
9493 },
Sean Nelson69e58112010-03-23 17:10:28 +00009494 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009495 }
9496 },
Sean Nelson69e58112010-03-23 17:10:28 +00009497 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009498 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009500 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009501 },
9502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009503 {
9504 .vendor = "SST",
9505 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009506 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009507 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009508 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009509 .total_size = 256,
9510 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009511 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00009512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009513 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009514 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009515 .block_erasers =
9516 {
9517 {
9518 .eraseblocks = { {4 * 1024, 64} },
9519 .block_erase = erase_sector_jedec,
9520 }, {
9521 .eraseblocks = { {16 * 1024, 16} },
9522 .block_erase = erase_block_jedec,
9523 }, {
9524 .eraseblocks = { {256 * 1024, 1} },
9525 .block_erase = NULL,
9526 }
9527 },
Sean Nelson35727f72010-01-28 23:55:12 +00009528 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009530 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00009531 },
9532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009533 {
9534 .vendor = "SST",
9535 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009536 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009537 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009538 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009539 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00009540 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009541 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009542 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009543 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009544 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009545 .block_erasers =
9546 {
9547 {
9548 .eraseblocks = { {4 * 1024, 64} },
9549 .block_erase = erase_sector_jedec,
9550 }, {
9551 .eraseblocks = { {16 * 1024, 16} },
9552 .block_erase = erase_block_jedec,
9553 }, {
9554 .eraseblocks = { {256 * 1024, 1} },
9555 .block_erase = NULL,
9556 }
9557 },
Sean Nelson35727f72010-01-28 23:55:12 +00009558 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009559 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009560 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009561 },
9562
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009563 {
9564 .vendor = "SST",
9565 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009566 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009567 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009568 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009569 .total_size = 512,
9570 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009571 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009572 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009573 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00009574 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009575 .block_erasers =
9576 {
9577 {
9578 .eraseblocks = { {4 * 1024, 128} },
9579 .block_erase = erase_sector_jedec,
9580 }, {
9581 .eraseblocks = { {64 * 1024, 8} },
9582 .block_erase = erase_block_jedec,
9583 }, {
9584 .eraseblocks = { {512 * 1024, 1} },
9585 .block_erase = NULL,
9586 }
9587 },
Sean Nelson35727f72010-01-28 23:55:12 +00009588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009589 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009590 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009591 },
9592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009593 {
9594 .vendor = "SST",
9595 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009596 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009597 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009598 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009599 .total_size = 512,
9600 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009601 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009602 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009603 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009604 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009605 .block_erasers =
9606 {
9607 {
9608 .eraseblocks = { {4 * 1024, 128} },
9609 .block_erase = erase_sector_jedec,
9610 }, {
9611 .eraseblocks = { {64 * 1024, 8} },
9612 .block_erase = erase_block_jedec,
9613 }, {
9614 .eraseblocks = { {512 * 1024, 1} },
9615 .block_erase = NULL,
9616 }
9617 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009618 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00009619 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009620 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009621 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009622 },
9623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009624 {
9625 .vendor = "SST",
9626 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009627 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009628 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009629 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009630 .total_size = 1024,
9631 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009632 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00009633 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009634 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00009635 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009636 .block_erasers =
9637 {
9638 {
9639 .eraseblocks = { {4 * 1024, 256} },
9640 .block_erase = erase_sector_jedec,
9641 }, {
9642 .eraseblocks = { {64 * 1024, 16} },
9643 .block_erase = erase_block_jedec,
9644 }, {
9645 .eraseblocks = { {1024 * 1024, 1} },
9646 .block_erase = NULL,
9647 }
9648 },
Sean Nelson35727f72010-01-28 23:55:12 +00009649 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009651 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009652 },
9653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009654 {
9655 .vendor = "SST",
9656 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009657 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009658 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009659 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009660 .total_size = 2048,
9661 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009662 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009663 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009664 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009665 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009666 .block_erasers =
9667 {
9668 {
9669 .eraseblocks = { {4 * 1024, 512} },
9670 .block_erase = erase_sector_49lfxxxc,
9671 }, {
9672 .eraseblocks = {
9673 {64 * 1024, 31},
9674 {32 * 1024, 1},
9675 {8 * 1024, 2},
9676 {16 * 1024, 1},
9677 },
Sean Nelson69e58112010-03-23 17:10:28 +00009678 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009679 }
9680 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009681 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009682 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009684 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009685 },
9686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009687 {
9688 .vendor = "ST",
9689 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009690 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009691 .manufacture_id = ST_ID,
9692 .model_id = ST_M25P05A,
9693 .total_size = 64,
9694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009695 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009696 .tested = TEST_UNTESTED,
9697 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009698 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009699 .block_erasers =
9700 {
9701 {
9702 .eraseblocks = { {32 * 1024, 2} },
9703 .block_erase = spi_block_erase_d8,
9704 }, {
9705 .eraseblocks = { {64 * 1024, 1} },
9706 .block_erase = spi_block_erase_c7,
9707 }
9708 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009709 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009710 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009711 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009712 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009713 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009714 },
9715
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009716 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9717 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009718 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009719 * only is successful if RDID does not work.
9720 */
9721 {
9722 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009723 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009724 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009725 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009726 .model_id = ST_M25P05_RES,
9727 .total_size = 64,
9728 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009729 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009730 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009731 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009732 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009733 .block_erasers =
9734 {
9735 {
9736 .eraseblocks = { {32 * 1024, 2} },
9737 .block_erase = spi_block_erase_d8,
9738 }, {
9739 .eraseblocks = { {64 * 1024, 1} },
9740 .block_erase = spi_block_erase_c7,
9741 }
9742 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009743 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009744 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009745 .write = spi_chip_write_1, /* 128 */
9746 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009747 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009748 },
9749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009750 {
9751 .vendor = "ST",
9752 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009753 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009754 .manufacture_id = ST_ID,
9755 .model_id = ST_M25P10A,
9756 .total_size = 128,
9757 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009758 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009759 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009760 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009761 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009762 .block_erasers =
9763 {
9764 {
9765 .eraseblocks = { {32 * 1024, 4} },
9766 .block_erase = spi_block_erase_d8,
9767 }, {
9768 .eraseblocks = { {128 * 1024, 1} },
9769 .block_erase = spi_block_erase_c7,
9770 }
9771 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009772 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009774 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009775 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009777 },
9778
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009779 /* The ST M25P10 has the same problem as the M25P05. */
9780 {
9781 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009782 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009783 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009784 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009785 .model_id = ST_M25P10_RES,
9786 .total_size = 128,
9787 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009788 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009789 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009790 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009791 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009792 .block_erasers =
9793 {
9794 {
9795 .eraseblocks = { {32 * 1024, 4} },
9796 .block_erase = spi_block_erase_d8,
9797 }, {
9798 .eraseblocks = { {128 * 1024, 1} },
9799 .block_erase = spi_block_erase_c7,
9800 }
9801 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009802 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009803 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009804 .write = spi_chip_write_1, /* 128 */
9805 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009806 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009807 },
9808
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009809 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009810 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009811 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009812 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009813 .manufacture_id = ST_ID,
9814 .model_id = ST_M25P20,
9815 .total_size = 256,
9816 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009817 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009818 .tested = TEST_UNTESTED,
9819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009820 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009821 .block_erasers =
9822 {
9823 {
9824 .eraseblocks = { {64 * 1024, 4} },
9825 .block_erase = spi_block_erase_d8,
9826 }, {
9827 .eraseblocks = { {256 * 1024, 1} },
9828 .block_erase = spi_block_erase_c7,
9829 }
9830 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009831 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009832 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009833 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009834 .read = spi_chip_read, /* Fast read (0x0B) supported */
9835 .voltage = {2700, 3600},
9836 },
9837
9838 {
9839 .vendor = "ST",
9840 .name = "M25P20-old",
9841 .bustype = BUS_SPI,
9842 .manufacture_id = 0, /* Not used. */
9843 .model_id = ST_M25P20_RES,
9844 .total_size = 256,
9845 .page_size = 256,
9846 .feature_bits = FEATURE_WRSR_WREN,
9847 .tested = TEST_OK_PREW,
9848 .probe = probe_spi_res1,
9849 .probe_timing = TIMING_ZERO,
9850 .block_erasers =
9851 {
9852 {
9853 .eraseblocks = { {64 * 1024, 4} },
9854 .block_erase = spi_block_erase_d8,
9855 }, {
9856 .eraseblocks = { {256 * 1024, 1} },
9857 .block_erase = spi_block_erase_c7,
9858 }
9859 },
9860 .printlock = spi_prettyprint_status_register_default_bp1,
9861 .unlock = spi_disable_blockprotect,
9862 .write = spi_chip_write_256,
9863 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009864 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009865 },
9866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009867 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009868 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009869 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009870 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009871 .manufacture_id = ST_ID,
9872 .model_id = ST_M25P40,
9873 .total_size = 512,
9874 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009875 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009876 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009877 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009878 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009879 .block_erasers =
9880 {
9881 {
9882 .eraseblocks = { {64 * 1024, 8} },
9883 .block_erase = spi_block_erase_d8,
9884 }, {
9885 .eraseblocks = { {512 * 1024, 1} },
9886 .block_erase = spi_block_erase_c7,
9887 }
9888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009889 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009890 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009891 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009893 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009894 },
9895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009896 {
9897 .vendor = "ST",
9898 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009900 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009901 .model_id = ST_M25P40_RES,
9902 .total_size = 512,
9903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009904 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009905 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009906 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009907 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009908 .block_erasers =
9909 {
9910 {
9911 .eraseblocks = { {64 * 1024, 8} },
9912 .block_erase = spi_block_erase_d8,
9913 }, {
9914 .eraseblocks = { {512 * 1024, 1} },
9915 .block_erase = spi_block_erase_c7,
9916 }
9917 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009918 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009919 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009920 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009921 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00009922 },
9923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009924 {
9925 .vendor = "ST",
9926 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009927 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009928 .manufacture_id = ST_ID,
9929 .model_id = ST_M25P80,
9930 .total_size = 1024,
9931 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009932 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009933 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009934 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009935 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009936 .block_erasers =
9937 {
9938 {
9939 .eraseblocks = { {64 * 1024, 16} },
9940 .block_erase = spi_block_erase_d8,
9941 }, {
9942 .eraseblocks = { {1024 * 1024, 1} },
9943 .block_erase = spi_block_erase_c7,
9944 }
9945 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009946 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009947 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009948 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009949 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009950 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009951 },
9952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009953 {
9954 .vendor = "ST",
9955 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009956 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009957 .manufacture_id = ST_ID,
9958 .model_id = ST_M25P16,
9959 .total_size = 2048,
9960 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009961 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009962 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009963 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009964 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009965 .block_erasers =
9966 {
9967 {
9968 .eraseblocks = { {64 * 1024, 32} },
9969 .block_erase = spi_block_erase_d8,
9970 }, {
9971 .eraseblocks = { {2 * 1024 * 1024, 1} },
9972 .block_erase = spi_block_erase_c7,
9973 }
9974 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009975 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009977 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009980 },
9981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009982 {
9983 .vendor = "ST",
9984 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009985 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009986 .manufacture_id = ST_ID,
9987 .model_id = ST_M25P32,
9988 .total_size = 4096,
9989 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009990 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009992 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009993 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009994 .block_erasers =
9995 {
9996 {
9997 .eraseblocks = { {64 * 1024, 64} },
9998 .block_erase = spi_block_erase_d8,
9999 }, {
10000 .eraseblocks = { {4 * 1024 * 1024, 1} },
10001 .block_erase = spi_block_erase_c7,
10002 }
10003 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010004 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010005 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010006 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010007 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010008 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010009 },
10010
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010011 {
10012 .vendor = "ST",
10013 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010014 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010015 .manufacture_id = ST_ID,
10016 .model_id = ST_M25P64,
10017 .total_size = 8192,
10018 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010019 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010020 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010021 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010022 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010023 .block_erasers =
10024 {
10025 {
10026 .eraseblocks = { {64 * 1024, 128} },
10027 .block_erase = spi_block_erase_d8,
10028 }, {
10029 .eraseblocks = { {8 * 1024 * 1024, 1} },
10030 .block_erase = spi_block_erase_c7,
10031 }
10032 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010033 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010034 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010035 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010036 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010037 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010038 },
10039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010040 {
10041 .vendor = "ST",
10042 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010043 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010044 .manufacture_id = ST_ID,
10045 .model_id = ST_M25P128,
10046 .total_size = 16384,
10047 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010048 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010049 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010050 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010051 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010052 .block_erasers =
10053 {
10054 {
10055 .eraseblocks = { {256 * 1024, 64} },
10056 .block_erase = spi_block_erase_d8,
10057 }, {
10058 .eraseblocks = { {16 * 1024 * 1024, 1} },
10059 .block_erase = spi_block_erase_c7,
10060 }
10061 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010062 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010063 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010064 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010065 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010066 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010067 },
10068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010069 {
10070 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +000010071 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010072 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +000010073 .manufacture_id = ST_ID,
10074 .model_id = ST_M25PX16,
10075 .total_size = 2048,
10076 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +000010077 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +000010078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +000010079 .tested = TEST_OK_PREW,
10080 .probe = probe_spi_rdid,
10081 .probe_timing = TIMING_ZERO,
10082 .block_erasers =
10083 {
10084 {
10085 .eraseblocks = { { 4 * 1024, 512 } },
10086 .block_erase = spi_block_erase_20,
10087 }, {
10088 .eraseblocks = { {64 * 1024, 32} },
10089 .block_erase = spi_block_erase_d8,
10090 }, {
10091 .eraseblocks = { {2 * 1024 * 1024, 1} },
10092 .block_erase = spi_block_erase_c7,
10093 }
10094 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010095 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +000010096 .unlock = spi_disable_blockprotect,
10097 .write = spi_chip_write_256,
10098 .read = spi_chip_read,
10099 },
10100
10101 {
10102 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +000010103 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010104 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010105 .manufacture_id = ST_ID,
10106 .model_id = ST_M25PX32,
10107 .total_size = 4096,
10108 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010109 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010110 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010111 .probe = probe_spi_rdid,
10112 .probe_timing = TIMING_ZERO,
10113 .block_erasers =
10114 {
10115 {
10116 .eraseblocks = { { 4 * 1024, 1024 } },
10117 .block_erase = spi_block_erase_20,
10118 }, {
10119 .eraseblocks = { {64 * 1024, 64} },
10120 .block_erase = spi_block_erase_d8,
10121 }, {
10122 .eraseblocks = { {4 * 1024 * 1024, 1} },
10123 .block_erase = spi_block_erase_c7,
10124 }
10125 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010127 .unlock = spi_disable_blockprotect,
10128 .write = spi_chip_write_256,
10129 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010130 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +000010131 },
10132
10133 {
10134 .vendor = "ST",
10135 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010136 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010137 .manufacture_id = ST_ID,
10138 .model_id = ST_M25PX64,
10139 .total_size = 8192,
10140 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010141 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010142 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +000010143 .probe = probe_spi_rdid,
10144 .probe_timing = TIMING_ZERO,
10145 .block_erasers =
10146 {
10147 {
10148 .eraseblocks = { { 4 * 1024, 2048 } },
10149 .block_erase = spi_block_erase_20,
10150 }, {
10151 .eraseblocks = { {64 * 1024, 128} },
10152 .block_erase = spi_block_erase_d8,
10153 }, {
10154 .eraseblocks = { {8 * 1024 * 1024, 1} },
10155 .block_erase = spi_block_erase_c7,
10156 }
10157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010158 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +000010159 .unlock = spi_disable_blockprotect,
10160 .write = spi_chip_write_256,
10161 .read = spi_chip_read,
10162 },
10163
10164 {
10165 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010166 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010167 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010168 .manufacture_id = ST_ID,
10169 .model_id = ST_M29F002B,
10170 .total_size = 256,
10171 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010172 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010173 .tested = TEST_UNTESTED,
10174 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010175 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010176 .block_erasers =
10177 {
10178 {
10179 .eraseblocks = {
10180 {16 * 1024, 1},
10181 {8 * 1024, 2},
10182 {32 * 1024, 1},
10183 {64 * 1024, 3},
10184 },
10185 .block_erase = erase_sector_jedec,
10186 }, {
10187 .eraseblocks = { {256 * 1024, 1} },
10188 .block_erase = erase_chip_block_jedec,
10189 }
10190 },
Sean Nelson35727f72010-01-28 23:55:12 +000010191 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010192 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010193 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010194 },
10195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010196 {
10197 .vendor = "ST",
10198 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010199 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010200 .manufacture_id = ST_ID,
10201 .model_id = ST_M29F002T,
10202 .total_size = 256,
10203 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010204 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010205 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010206 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010207 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010208 .block_erasers =
10209 {
10210 {
10211 .eraseblocks = {
10212 {64 * 1024, 3},
10213 {32 * 1024, 1},
10214 {8 * 1024, 2},
10215 {16 * 1024, 1},
10216 },
10217 .block_erase = erase_sector_jedec,
10218 }, {
10219 .eraseblocks = { {256 * 1024, 1} },
10220 .block_erase = erase_chip_block_jedec,
10221 }
10222 },
Sean Nelson35727f72010-01-28 23:55:12 +000010223 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010224 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010225 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010226 },
10227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010228 {
10229 .vendor = "ST",
10230 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010231 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010232 .manufacture_id = ST_ID,
10233 .model_id = ST_M29F040B,
10234 .total_size = 512,
10235 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010236 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10237 .tested = TEST_UNTESTED,
10238 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010239 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000010240 .block_erasers =
10241 {
10242 {
10243 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000010244 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010245 }, {
10246 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010247 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010248 }
10249 },
Sean Nelson35727f72010-01-28 23:55:12 +000010250 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010252 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010253 },
10254
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010255 {
Sean Nelson35727f72010-01-28 23:55:12 +000010256 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010257 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010258 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010259 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010260 .manufacture_id = ST_ID,
10261 .model_id = ST_M29F400BB,
10262 .total_size = 512,
10263 .page_size = 64 * 1024,
10264 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010265 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010266 .probe = probe_m29f400bt,
10267 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
10268 .block_erasers =
10269 {
10270 {
10271 .eraseblocks = {
10272 {16 * 1024, 1},
10273 {8 * 1024, 2},
10274 {32 * 1024, 1},
10275 {64 * 1024, 7},
10276 },
10277 .block_erase = block_erase_m29f400bt,
10278 }, {
10279 .eraseblocks = { {512 * 1024, 1} },
10280 .block_erase = block_erase_chip_m29f400bt,
10281 }
10282 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010283 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010285 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010286 },
10287 {
10288 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
10289 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010290 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010291 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010292 .manufacture_id = ST_ID,
10293 .model_id = ST_M29F400BT,
10294 .total_size = 512,
10295 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010296 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010297 .tested = TEST_UNTESTED,
10298 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010299 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010300 .block_erasers =
10301 {
10302 {
10303 .eraseblocks = {
10304 {64 * 1024, 7},
10305 {32 * 1024, 1},
10306 {8 * 1024, 2},
10307 {16 * 1024, 1},
10308 },
10309 .block_erase = block_erase_m29f400bt,
10310 }, {
10311 .eraseblocks = { {512 * 1024, 1} },
10312 .block_erase = block_erase_chip_m29f400bt,
10313 }
10314 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010315 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010317 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010318 },
10319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010320 {
10321 .vendor = "ST",
10322 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010323 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010324 .manufacture_id = ST_ID,
10325 .model_id = ST_M29W010B,
10326 .total_size = 128,
10327 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010328 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010329 .tested = TEST_UNTESTED,
10330 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010331 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010332 .block_erasers =
10333 {
10334 {
10335 .eraseblocks = { {16 * 1024, 8}, },
10336 .block_erase = erase_sector_jedec,
10337 }, {
10338 .eraseblocks = { {128 * 1024, 1} },
10339 .block_erase = erase_chip_block_jedec,
10340 }
10341 },
Sean Nelson35727f72010-01-28 23:55:12 +000010342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010344 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010345 },
10346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010347 {
10348 .vendor = "ST",
10349 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010351 .manufacture_id = ST_ID,
10352 .model_id = ST_M29W040B,
10353 .total_size = 512,
10354 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010355 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010356 .tested = TEST_UNTESTED,
10357 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010358 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010359 .block_erasers =
10360 {
10361 {
10362 .eraseblocks = { {64 * 1024, 8}, },
10363 .block_erase = erase_sector_jedec,
10364 }, {
10365 .eraseblocks = { {512 * 1024, 1} },
10366 .block_erase = erase_chip_block_jedec,
10367 }
10368 },
Sean Nelson35727f72010-01-28 23:55:12 +000010369 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010370 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010371 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010372 },
10373
Stefan Taunereb582572012-09-21 12:52:50 +000010374 {
10375 .vendor = "ST",
10376 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010377 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010378 .manufacture_id = ST_ID,
10379 .model_id = ST_M29W512B,
10380 .total_size = 64,
10381 .page_size = 64 * 1024,
10382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010383 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +000010384 .probe = probe_jedec,
10385 .probe_timing = TIMING_ZERO,
10386 .block_erasers =
10387 {
10388 {
10389 .eraseblocks = { {64 * 1024, 1} },
10390 .block_erase = erase_chip_block_jedec,
10391 }
10392 },
10393 .write = write_jedec_1,
10394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010395 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000010396 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000010397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010398 {
10399 .vendor = "ST",
10400 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010401 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010402 .manufacture_id = ST_ID,
10403 .model_id = ST_M50FLW040A,
10404 .total_size = 512,
10405 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010406 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010407 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010408 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010409 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010410 .block_erasers =
10411 {
10412 {
Sean Nelson329bde72010-01-19 16:39:19 +000010413 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010414 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010415 {64 * 1024, 5}, /* block */
10416 {4 * 1024, 16}, /* sector */
10417 {4 * 1024, 16}, /* sector */
10418 },
10419 .block_erase = NULL,
10420 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010421 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010422 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010423 }
10424 },
Sean Nelson28accc22010-03-19 18:47:06 +000010425 .unlock = unlock_stm50flw0x0x,
10426 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010428 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010429 },
10430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010431 {
10432 .vendor = "ST",
10433 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010434 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010435 .manufacture_id = ST_ID,
10436 .model_id = ST_M50FLW040B,
10437 .total_size = 512,
10438 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010439 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010440 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010441 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010442 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010443 .block_erasers =
10444 {
10445 {
Sean Nelson329bde72010-01-19 16:39:19 +000010446 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010447 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010448 {4 * 1024, 16}, /* sector */
10449 {64 * 1024, 5}, /* block */
10450 {4 * 1024, 16}, /* sector */
10451 },
10452 .block_erase = NULL,
10453 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010454 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010455 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010456 }
10457 },
Sean Nelson28accc22010-03-19 18:47:06 +000010458 .unlock = unlock_stm50flw0x0x,
10459 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010460 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010461 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010462 },
10463
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010464 {
10465 .vendor = "ST",
10466 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010467 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010468 .manufacture_id = ST_ID,
10469 .model_id = ST_M50FLW080A,
10470 .total_size = 1024,
10471 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010472 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010473 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000010474 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010475 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010476 .block_erasers =
10477 {
10478 {
Sean Nelson329bde72010-01-19 16:39:19 +000010479 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010480 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010481 {64 * 1024, 13}, /* block */
10482 {4 * 1024, 16}, /* sector */
10483 {4 * 1024, 16}, /* sector */
10484 },
10485 .block_erase = NULL,
10486 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010487 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010488 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010489 }
10490 },
Sean Nelson28accc22010-03-19 18:47:06 +000010491 .unlock = unlock_stm50flw0x0x,
10492 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010493 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010494 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010495 },
10496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010497 {
10498 .vendor = "ST",
10499 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010500 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010501 .manufacture_id = ST_ID,
10502 .model_id = ST_M50FLW080B,
10503 .total_size = 1024,
10504 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010505 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010506 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010507 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010508 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010509 .block_erasers =
10510 {
10511 {
Sean Nelson329bde72010-01-19 16:39:19 +000010512 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010513 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010514 {4 * 1024, 16}, /* sector */
10515 {64 * 1024, 13}, /* block */
10516 {4 * 1024, 16}, /* sector */
10517 },
10518 .block_erase = NULL,
10519 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010520 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010521 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010522 }
10523 },
Sean Nelson28accc22010-03-19 18:47:06 +000010524 .unlock = unlock_stm50flw0x0x,
10525 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010526 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010527 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010528 },
10529
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010530 {
10531 .vendor = "ST",
10532 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010533 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010534 .manufacture_id = ST_ID,
10535 .model_id = ST_M50FW002,
10536 .total_size = 256,
10537 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010538 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010539 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010540 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010541 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010542 .block_erasers =
10543 {
10544 {
10545 .eraseblocks = {
10546 {64 * 1024, 3},
10547 {32 * 1024, 1},
10548 {8 * 1024, 2},
10549 {16 * 1024, 1},
10550 },
Sean Nelson28accc22010-03-19 18:47:06 +000010551 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010552 }
10553 },
Sean Nelson28accc22010-03-19 18:47:06 +000010554 .unlock = unlock_stm50flw0x0x,
10555 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010556 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010557 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010558 },
10559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010560 {
10561 .vendor = "ST",
10562 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010563 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010564 .manufacture_id = ST_ID,
10565 .model_id = ST_M50FW016,
10566 .total_size = 2048,
10567 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010568 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010569 .tested = TEST_UNTESTED,
10570 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010571 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010572 .block_erasers =
10573 {
10574 {
10575 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010576 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010577 }
10578 },
Sean Nelson28accc22010-03-19 18:47:06 +000010579 .unlock = unlock_stm50flw0x0x,
10580 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010581 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010582 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010583 },
10584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010585 {
10586 .vendor = "ST",
10587 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010588 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010589 .manufacture_id = ST_ID,
10590 .model_id = ST_M50FW040,
10591 .total_size = 512,
10592 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010593 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000010594 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010595 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010596 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010597 .block_erasers =
10598 {
10599 {
10600 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010601 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010602 }
10603 },
Sean Nelson28accc22010-03-19 18:47:06 +000010604 .unlock = unlock_stm50flw0x0x,
10605 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010606 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010607 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010608 },
10609
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010610 {
10611 .vendor = "ST",
10612 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010613 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010614 .manufacture_id = ST_ID,
10615 .model_id = ST_M50FW080,
10616 .total_size = 1024,
10617 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010618 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010619 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010620 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010621 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010622 .block_erasers =
10623 {
10624 {
10625 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010626 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010627 }
10628 },
Sean Nelson28accc22010-03-19 18:47:06 +000010629 .unlock = unlock_stm50flw0x0x,
10630 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010632 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010633 },
10634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010635 {
10636 .vendor = "ST",
10637 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010638 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010639 .manufacture_id = ST_ID,
10640 .model_id = ST_M50LPW116,
10641 .total_size = 2048,
10642 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010643 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010644 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010645 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000010646 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010647 .block_erasers =
10648 {
10649 {
10650 .eraseblocks = {
10651 {4 * 1024, 16},
10652 {64 * 1024, 30},
10653 {32 * 1024, 1},
10654 {8 * 1024, 2},
10655 {16 * 1024, 1},
10656 },
Sean Nelson28accc22010-03-19 18:47:06 +000010657 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010658 }
10659 },
Sean Nelson28accc22010-03-19 18:47:06 +000010660 .unlock = unlock_stm50flw0x0x,
10661 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010663 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010664 },
10665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010666 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010667 .vendor = "SyncMOS/MoselVitelic",
10668 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010669 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010670 .manufacture_id = SYNCMOS_MVC_ID,
10671 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010672 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010673 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010674 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010675 .tested = TEST_UNTESTED,
10676 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010677 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010678 .block_erasers =
10679 {
10680 {
10681 .eraseblocks = { {512, 256} },
10682 .block_erase = erase_sector_jedec,
10683 }, {
10684 .eraseblocks = { {128 * 1024, 1} },
10685 .block_erase = erase_chip_block_jedec,
10686 },
10687 },
Sean Nelson35727f72010-01-28 23:55:12 +000010688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010689 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010690 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010691 },
10692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010693 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010694 .vendor = "SyncMOS/MoselVitelic",
10695 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010696 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010697 .manufacture_id = SYNCMOS_MVC_ID,
10698 .model_id = SM_MVC_29C51001T,
10699 .total_size = 128,
10700 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010701 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010702 .tested = TEST_UNTESTED,
10703 .probe = probe_jedec,
10704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10705 .block_erasers =
10706 {
10707 {
10708 .eraseblocks = { {512, 256} },
10709 .block_erase = erase_sector_jedec,
10710 }, {
10711 .eraseblocks = { {128 * 1024, 1} },
10712 .block_erase = erase_chip_block_jedec,
10713 },
10714 },
10715 .write = write_jedec_1,
10716 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010717 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010718 },
10719
10720 {
10721 .vendor = "SyncMOS/MoselVitelic",
10722 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010723 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010724 .manufacture_id = SYNCMOS_MVC_ID,
10725 .model_id = SM_MVC_29C51002B,
10726 .total_size = 256,
10727 .page_size = 512,
10728 .feature_bits = FEATURE_EITHER_RESET,
10729 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010730 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010731 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010732 .block_erasers =
10733 {
10734 {
10735 .eraseblocks = { {512, 512} },
10736 .block_erase = erase_sector_jedec,
10737 }, {
10738 .eraseblocks = { {256 * 1024, 1} },
10739 .block_erase = erase_chip_block_jedec,
10740 },
10741 },
Sean Nelson35727f72010-01-28 23:55:12 +000010742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010743 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000010744 },
10745
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010746 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010747 .vendor = "SyncMOS/MoselVitelic",
10748 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010749 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010750 .manufacture_id = SYNCMOS_MVC_ID,
10751 .model_id = SM_MVC_29C51002T,
10752 .total_size = 256,
10753 .page_size = 512,
10754 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010755 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010756 .probe = probe_jedec,
10757 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10758 .block_erasers =
10759 {
10760 {
10761 .eraseblocks = { {512, 512} },
10762 .block_erase = erase_sector_jedec,
10763 }, {
10764 .eraseblocks = { {256 * 1024, 1} },
10765 .block_erase = erase_chip_block_jedec,
10766 },
10767 },
10768 .write = write_jedec_1,
10769 .read = read_memmapped,
10770 },
10771
10772 {
10773 .vendor = "SyncMOS/MoselVitelic",
10774 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010775 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010776 .manufacture_id = SYNCMOS_MVC_ID,
10777 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010778 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010779 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010780 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010781 .tested = TEST_UNTESTED,
10782 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010783 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010784 .block_erasers =
10785 {
10786 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010787 .eraseblocks = { {1024, 512} },
10788 .block_erase = erase_sector_jedec,
10789 }, {
10790 .eraseblocks = { {512 * 1024, 1} },
10791 .block_erase = erase_chip_block_jedec,
10792 },
10793 },
10794 .write = write_jedec_1,
10795 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010796 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010797 },
10798
10799 {
10800 .vendor = "SyncMOS/MoselVitelic",
10801 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010802 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010803 .manufacture_id = SYNCMOS_MVC_ID,
10804 .model_id = SM_MVC_29C51004T,
10805 .total_size = 512,
10806 .page_size = 1024,
10807 .feature_bits = FEATURE_EITHER_RESET,
10808 .tested = TEST_UNTESTED,
10809 .probe = probe_jedec,
10810 .probe_timing = TIMING_ZERO,
10811 .block_erasers =
10812 {
10813 {
10814 .eraseblocks = { {1024, 512} },
10815 .block_erase = erase_sector_jedec,
10816 }, {
10817 .eraseblocks = { {512 * 1024, 1} },
10818 .block_erase = erase_chip_block_jedec,
10819 },
10820 },
10821 .write = write_jedec_1,
10822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010823 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010824 },
10825
10826 {
10827 .vendor = "SyncMOS/MoselVitelic",
10828 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010829 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010830 .manufacture_id = SYNCMOS_MVC_ID,
10831 .model_id = SM_MVC_29C31004B,
10832 .total_size = 512,
10833 .page_size = 1024,
10834 .feature_bits = FEATURE_EITHER_RESET,
10835 .tested = TEST_UNTESTED,
10836 .probe = probe_jedec,
10837 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10838 .block_erasers =
10839 {
10840 {
10841 .eraseblocks = { {1024, 512} },
10842 .block_erase = erase_sector_jedec,
10843 }, {
10844 .eraseblocks = { {512 * 1024, 1} },
10845 .block_erase = erase_chip_block_jedec,
10846 },
10847 },
10848 .write = write_jedec_1,
10849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010850 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010851 },
10852
10853 {
10854 .vendor = "SyncMOS/MoselVitelic",
10855 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010856 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010857 .manufacture_id = SYNCMOS_MVC_ID,
10858 .model_id = SM_MVC_29C31004T,
10859 .total_size = 512,
10860 .page_size = 1024,
10861 .feature_bits = FEATURE_EITHER_RESET,
10862 .tested = TEST_UNTESTED,
10863 .probe = probe_jedec,
10864 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10865 .block_erasers =
10866 {
10867 {
10868 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000010869 .block_erase = erase_sector_jedec,
10870 }, {
10871 .eraseblocks = { {512 * 1024, 1} },
10872 .block_erase = erase_chip_block_jedec,
10873 },
10874 },
Sean Nelson35727f72010-01-28 23:55:12 +000010875 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010876 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010877 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010878 },
10879
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010880 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010881 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010882 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010883 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010884 .manufacture_id = TI_OLD_ID,
10885 .model_id = TI_TMS29F002RB,
10886 .total_size = 256,
10887 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010888 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010889 .tested = TEST_UNTESTED,
10890 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010891 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010892 .block_erasers =
10893 {
10894 {
10895 .eraseblocks = {
10896 {16 * 1024, 1},
10897 {8 * 1024, 2},
10898 {32 * 1024, 1},
10899 {64 * 1024, 3},
10900 },
10901 .block_erase = erase_sector_jedec,
10902 }, {
10903 .eraseblocks = { {256 * 1024, 1} },
10904 .block_erase = erase_chip_block_jedec,
10905 },
10906 },
Sean Nelson35727f72010-01-28 23:55:12 +000010907 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010909 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010910 },
10911
10912 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010913 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010914 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010915 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010916 .manufacture_id = TI_OLD_ID,
10917 .model_id = TI_TMS29F002RT,
10918 .total_size = 256,
10919 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010920 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010921 .tested = TEST_UNTESTED,
10922 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010923 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010924 .block_erasers =
10925 {
10926 {
10927 .eraseblocks = {
10928 {64 * 1024, 3},
10929 {32 * 1024, 1},
10930 {8 * 1024, 2},
10931 {16 * 1024, 1},
10932 },
10933 .block_erase = erase_sector_jedec,
10934 }, {
10935 .eraseblocks = { {256 * 1024, 1} },
10936 .block_erase = erase_chip_block_jedec,
10937 },
10938 },
Sean Nelson35727f72010-01-28 23:55:12 +000010939 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010940 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010941 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010942 },
10943
10944 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010945 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010946 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010947 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010948 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010949 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010950 .total_size = 1024,
10951 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010952 /* supports SFDP */
10953 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010954 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010955 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010956 .probe = probe_spi_rdid,
10957 .probe_timing = TIMING_ZERO,
10958 .block_erasers =
10959 {
10960 {
10961 .eraseblocks = { {4 * 1024, 256} },
10962 .block_erase = spi_block_erase_20,
10963 }, {
10964 .eraseblocks = { {32 * 1024, 32} },
10965 .block_erase = spi_block_erase_52,
10966 }, {
10967 .eraseblocks = { {64 * 1024, 16} },
10968 .block_erase = spi_block_erase_d8,
10969 }, {
10970 .eraseblocks = { {1024 * 1024, 1} },
10971 .block_erase = spi_block_erase_60,
10972 }, {
10973 .eraseblocks = { {1024 * 1024, 1} },
10974 .block_erase = spi_block_erase_c7,
10975 }
10976 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010978 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010979 .write = spi_chip_write_256,
10980 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010981 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010982 },
10983
10984 {
10985 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010986 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010987 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010988 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010989 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010990 .total_size = 2048,
10991 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010992 /* supports SFDP */
10993 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000010995 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010996 .probe = probe_spi_rdid,
10997 .probe_timing = TIMING_ZERO,
10998 .block_erasers =
10999 {
11000 {
11001 .eraseblocks = { {4 * 1024, 512} },
11002 .block_erase = spi_block_erase_20,
11003 }, {
11004 .eraseblocks = { {32 * 1024, 64} },
11005 .block_erase = spi_block_erase_52,
11006 }, {
11007 .eraseblocks = { {64 * 1024, 32} },
11008 .block_erase = spi_block_erase_d8,
11009 }, {
11010 .eraseblocks = { {2 * 1024 * 1024, 1} },
11011 .block_erase = spi_block_erase_60,
11012 }, {
11013 .eraseblocks = { {2 * 1024 * 1024, 1} },
11014 .block_erase = spi_block_erase_c7,
11015 }
11016 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011018 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011019 .write = spi_chip_write_256,
11020 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011021 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011022 },
11023
11024 {
11025 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011026 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011027 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011028 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011029 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011030 .total_size = 4096,
11031 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011032 /* supports SFDP */
11033 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011034 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011035 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011036 .probe = probe_spi_rdid,
11037 .probe_timing = TIMING_ZERO,
11038 .block_erasers =
11039 {
11040 {
11041 .eraseblocks = { {4 * 1024, 1024} },
11042 .block_erase = spi_block_erase_20,
11043 }, {
11044 .eraseblocks = { {32 * 1024, 128} },
11045 .block_erase = spi_block_erase_52,
11046 }, {
11047 .eraseblocks = { {64 * 1024, 64} },
11048 .block_erase = spi_block_erase_d8,
11049 }, {
11050 .eraseblocks = { {4 * 1024 * 1024, 1} },
11051 .block_erase = spi_block_erase_60,
11052 }, {
11053 .eraseblocks = { {4 * 1024 * 1024, 1} },
11054 .block_erase = spi_block_erase_c7,
11055 }
11056 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011057 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011058 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011059 .write = spi_chip_write_256,
11060 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011061 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011062 },
11063
11064 {
11065 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011066 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011067 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000011068 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011069 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000011070 .total_size = 8192,
11071 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011072 /* supports SFDP */
11073 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011074 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011075 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000011076 .probe = probe_spi_rdid,
11077 .probe_timing = TIMING_ZERO,
11078 .block_erasers =
11079 {
11080 {
11081 .eraseblocks = { {4 * 1024, 2048} },
11082 .block_erase = spi_block_erase_20,
11083 }, {
11084 .eraseblocks = { {32 * 1024, 256} },
11085 .block_erase = spi_block_erase_52,
11086 }, {
11087 .eraseblocks = { {64 * 1024, 128} },
11088 .block_erase = spi_block_erase_d8,
11089 }, {
11090 .eraseblocks = { {8 * 1024 * 1024, 1} },
11091 .block_erase = spi_block_erase_60,
11092 }, {
11093 .eraseblocks = { {8 * 1024 * 1024, 1} },
11094 .block_erase = spi_block_erase_c7,
11095 }
11096 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011097 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011098 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000011099 .write = spi_chip_write_256,
11100 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011101 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000011102 },
11103
11104 {
11105 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011106 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011107 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011108 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011109 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011110 .total_size = 16384,
11111 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011112 /* supports SFDP */
11113 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011114 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011115 .tested = TEST_OK_PROBE,
11116 .probe = probe_spi_rdid,
11117 .probe_timing = TIMING_ZERO,
11118 .block_erasers =
11119 {
11120 {
11121 .eraseblocks = { {4 * 1024, 4096} },
11122 .block_erase = spi_block_erase_20,
11123 }, {
11124 .eraseblocks = { {32 * 1024, 512} },
11125 .block_erase = spi_block_erase_52,
11126 }, {
11127 .eraseblocks = { {64 * 1024, 256} },
11128 .block_erase = spi_block_erase_d8,
11129 }, {
11130 .eraseblocks = { {16 * 1024 * 1024, 1} },
11131 .block_erase = spi_block_erase_60,
11132 }, {
11133 .eraseblocks = { {16 * 1024 * 1024, 1} },
11134 .block_erase = spi_block_erase_c7,
11135 }
11136 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011137 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011138 .unlock = spi_disable_blockprotect,
11139 .write = spi_chip_write_256,
11140 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011141 .voltage = {2700, 3600},
11142 },
11143
11144 {
11145 .vendor = "Winbond",
11146 .name = "W25Q20.W",
11147 .bustype = BUS_SPI,
11148 .manufacture_id = WINBOND_NEX_ID,
11149 .model_id = WINBOND_NEX_W25Q20_W,
11150 .total_size = 256,
11151 .page_size = 256,
11152 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11154 .tested = TEST_UNTESTED,
11155 .probe = probe_spi_rdid,
11156 .probe_timing = TIMING_ZERO,
11157 .block_erasers =
11158 {
11159 {
11160 .eraseblocks = { {4 * 1024, 64} },
11161 .block_erase = spi_block_erase_20,
11162 }, {
11163 .eraseblocks = { {32 * 1024, 8} },
11164 .block_erase = spi_block_erase_52,
11165 }, {
11166 .eraseblocks = { {64 * 1024, 4} },
11167 .block_erase = spi_block_erase_d8,
11168 }, {
11169 .eraseblocks = { {256 * 1024, 1} },
11170 .block_erase = spi_block_erase_60,
11171 }, {
11172 .eraseblocks = { {256 * 1024, 1} },
11173 .block_erase = spi_block_erase_c7,
11174 }
11175 },
11176 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11177 .unlock = spi_disable_blockprotect,
11178 .write = spi_chip_write_256,
11179 .read = spi_chip_read,
11180 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11181 },
11182
11183 {
11184 .vendor = "Winbond",
11185 .name = "W25Q40.W",
11186 .bustype = BUS_SPI,
11187 .manufacture_id = WINBOND_NEX_ID,
11188 .model_id = WINBOND_NEX_W25Q40_W,
11189 .total_size = 512,
11190 .page_size = 256,
11191 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11192 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11193 .tested = TEST_UNTESTED,
11194 .probe = probe_spi_rdid,
11195 .probe_timing = TIMING_ZERO,
11196 .block_erasers =
11197 {
11198 {
11199 .eraseblocks = { {4 * 1024, 128} },
11200 .block_erase = spi_block_erase_20,
11201 }, {
11202 .eraseblocks = { {32 * 1024, 16} },
11203 .block_erase = spi_block_erase_52,
11204 }, {
11205 .eraseblocks = { {64 * 1024, 8} },
11206 .block_erase = spi_block_erase_d8,
11207 }, {
11208 .eraseblocks = { {512 * 1024, 1} },
11209 .block_erase = spi_block_erase_60,
11210 }, {
11211 .eraseblocks = { {512 * 1024, 1} },
11212 .block_erase = spi_block_erase_c7,
11213 }
11214 },
11215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11216 .unlock = spi_disable_blockprotect,
11217 .write = spi_chip_write_256,
11218 .read = spi_chip_read,
11219 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11220 },
11221
11222 {
11223 .vendor = "Winbond",
11224 .name = "W25Q80.W",
11225 .bustype = BUS_SPI,
11226 .manufacture_id = WINBOND_NEX_ID,
11227 .model_id = WINBOND_NEX_W25Q80_W,
11228 .total_size = 1024,
11229 .page_size = 256,
11230 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11232 .tested = TEST_UNTESTED,
11233 .probe = probe_spi_rdid,
11234 .probe_timing = TIMING_ZERO,
11235 .block_erasers =
11236 {
11237 {
11238 .eraseblocks = { {4 * 1024, 256} },
11239 .block_erase = spi_block_erase_20,
11240 }, {
11241 .eraseblocks = { {32 * 1024, 32} },
11242 .block_erase = spi_block_erase_52,
11243 }, {
11244 .eraseblocks = { {64 * 1024, 16} },
11245 .block_erase = spi_block_erase_d8,
11246 }, {
11247 .eraseblocks = { {1 * 1024 * 1024, 1} },
11248 .block_erase = spi_block_erase_60,
11249 }, {
11250 .eraseblocks = { {1 * 1024 * 1024, 1} },
11251 .block_erase = spi_block_erase_c7,
11252 }
11253 },
11254 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11255 .unlock = spi_disable_blockprotect,
11256 .write = spi_chip_write_256,
11257 .read = spi_chip_read,
11258 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11259 },
11260
11261 {
11262 .vendor = "Winbond",
11263 .name = "W25Q16.W",
11264 .bustype = BUS_SPI,
11265 .manufacture_id = WINBOND_NEX_ID,
11266 .model_id = WINBOND_NEX_W25Q16_W,
11267 .total_size = 2048,
11268 .page_size = 256,
11269 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11270 /* QPI enable 0x38, disable 0xFF */
11271 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11272 .tested = TEST_UNTESTED,
11273 .probe = probe_spi_rdid,
11274 .probe_timing = TIMING_ZERO,
11275 .block_erasers =
11276 {
11277 {
11278 .eraseblocks = { {4 * 1024, 512} },
11279 .block_erase = spi_block_erase_20,
11280 }, {
11281 .eraseblocks = { {32 * 1024, 64} },
11282 .block_erase = spi_block_erase_52,
11283 }, {
11284 .eraseblocks = { {64 * 1024, 32} },
11285 .block_erase = spi_block_erase_d8,
11286 }, {
11287 .eraseblocks = { {2 * 1024 * 1024, 1} },
11288 .block_erase = spi_block_erase_60,
11289 }, {
11290 .eraseblocks = { {2 * 1024 * 1024, 1} },
11291 .block_erase = spi_block_erase_c7,
11292 }
11293 },
11294 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11295 .unlock = spi_disable_blockprotect,
11296 .write = spi_chip_write_256,
11297 .read = spi_chip_read,
11298 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11299 },
11300
11301 {
11302 .vendor = "Winbond",
11303 .name = "W25Q32.W",
11304 .bustype = BUS_SPI,
11305 .manufacture_id = WINBOND_NEX_ID,
11306 .model_id = WINBOND_NEX_W25Q32_W,
11307 .total_size = 4096,
11308 .page_size = 256,
11309 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11310 /* QPI enable 0x38, disable 0xFF */
11311 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11312 .tested = TEST_OK_PREW,
11313 .probe = probe_spi_rdid,
11314 .probe_timing = TIMING_ZERO,
11315 .block_erasers =
11316 {
11317 {
11318 .eraseblocks = { {4 * 1024, 1024} },
11319 .block_erase = spi_block_erase_20,
11320 }, {
11321 .eraseblocks = { {32 * 1024, 128} },
11322 .block_erase = spi_block_erase_52,
11323 }, {
11324 .eraseblocks = { {64 * 1024, 64} },
11325 .block_erase = spi_block_erase_d8,
11326 }, {
11327 .eraseblocks = { {4 * 1024 * 1024, 1} },
11328 .block_erase = spi_block_erase_60,
11329 }, {
11330 .eraseblocks = { {4 * 1024 * 1024, 1} },
11331 .block_erase = spi_block_erase_c7,
11332 }
11333 },
11334 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11335 .unlock = spi_disable_blockprotect,
11336 .write = spi_chip_write_256,
11337 .read = spi_chip_read,
11338 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11339 },
11340
11341 {
11342 .vendor = "Winbond",
11343 .name = "W25Q64.W",
11344 .bustype = BUS_SPI,
11345 .manufacture_id = WINBOND_NEX_ID,
11346 .model_id = WINBOND_NEX_W25Q64_W,
11347 .total_size = 8192,
11348 .page_size = 256,
11349 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11350 /* QPI enable 0x38, disable 0xFF */
11351 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11352 .tested = TEST_UNTESTED,
11353 .probe = probe_spi_rdid,
11354 .probe_timing = TIMING_ZERO,
11355 .block_erasers =
11356 {
11357 {
11358 .eraseblocks = { {4 * 1024, 2048} },
11359 .block_erase = spi_block_erase_20,
11360 }, {
11361 .eraseblocks = { {32 * 1024, 256} },
11362 .block_erase = spi_block_erase_52,
11363 }, {
11364 .eraseblocks = { {64 * 1024, 128} },
11365 .block_erase = spi_block_erase_d8,
11366 }, {
11367 .eraseblocks = { {8 * 1024 * 1024, 1} },
11368 .block_erase = spi_block_erase_60,
11369 }, {
11370 .eraseblocks = { {8 * 1024 * 1024, 1} },
11371 .block_erase = spi_block_erase_c7,
11372 }
11373 },
11374 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11375 .unlock = spi_disable_blockprotect,
11376 .write = spi_chip_write_256,
11377 .read = spi_chip_read,
11378 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011379 },
11380
11381 {
11382 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011383 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011384 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011385 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011386 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011387 .total_size = 128,
11388 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011389 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011390 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011391 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011392 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011393 .block_erasers =
11394 {
11395 {
11396 .eraseblocks = { {4 * 1024, 32} },
11397 .block_erase = spi_block_erase_20,
11398 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011399 .eraseblocks = { {64 * 1024, 2} },
11400 .block_erase = spi_block_erase_d8,
11401 }, {
11402 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011403 .block_erase = spi_block_erase_c7,
11404 }
11405 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011406 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011407 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011408 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011409 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011410 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011411 },
11412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011413 {
11414 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011415 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011416 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011417 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011418 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011419 .total_size = 256,
11420 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011421 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011422 .tested = TEST_UNTESTED,
11423 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011424 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011425 .block_erasers =
11426 {
11427 {
11428 .eraseblocks = { {4 * 1024, 64} },
11429 .block_erase = spi_block_erase_20,
11430 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011431 .eraseblocks = { {64 * 1024, 4} },
11432 .block_erase = spi_block_erase_d8,
11433 }, {
11434 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011435 .block_erase = spi_block_erase_c7,
11436 }
11437 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011438 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011439 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011440 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011441 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011442 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011443 },
11444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011445 {
11446 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011447 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011448 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011449 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011450 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011451 .total_size = 512,
11452 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011453 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000011454 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011455 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011456 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011457 .block_erasers =
11458 {
11459 {
11460 .eraseblocks = { {4 * 1024, 128} },
11461 .block_erase = spi_block_erase_20,
11462 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011463 .eraseblocks = { {64 * 1024, 8} },
11464 .block_erase = spi_block_erase_d8,
11465 }, {
11466 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011467 .block_erase = spi_block_erase_c7,
11468 }
11469 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011470 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011471 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011472 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011473 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011474 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011475 },
11476
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011477 {
11478 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011479 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011480 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011481 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011482 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011483 .total_size = 1024,
11484 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011485 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000011486 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011487 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011488 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011489 .block_erasers =
11490 {
11491 {
11492 .eraseblocks = { {4 * 1024, 256} },
11493 .block_erase = spi_block_erase_20,
11494 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011495 .eraseblocks = { {64 * 1024, 16} },
11496 .block_erase = spi_block_erase_d8,
11497 }, {
11498 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011499 .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,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011504 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011505 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011506 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011507 },
11508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011509 {
11510 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011511 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011512 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000011513 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011514 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000011515 .total_size = 2048,
11516 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011517 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000011518 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000011519 .probe = probe_spi_rdid,
11520 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011521 .block_erasers =
11522 {
11523 {
11524 .eraseblocks = { {4 * 1024, 512} },
11525 .block_erase = spi_block_erase_20,
11526 }, {
11527 .eraseblocks = { {32 * 1024, 64} },
11528 .block_erase = spi_block_erase_52,
11529 }, {
11530 .eraseblocks = { {64 * 1024, 32} },
11531 .block_erase = spi_block_erase_d8,
11532 }, {
11533 .eraseblocks = { {2 * 1024 * 1024, 1} },
11534 .block_erase = spi_block_erase_60,
11535 }, {
11536 .eraseblocks = { {2 * 1024 * 1024, 1} },
11537 .block_erase = spi_block_erase_c7,
11538 }
11539 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011540 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011541 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000011542 .write = spi_chip_write_256,
11543 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011544 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000011545 },
11546
11547 {
11548 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011549 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011550 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011551 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011552 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000011553 .total_size = 4096,
11554 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011555 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000011556 .tested = TEST_OK_PROBE,
11557 .probe = probe_spi_rdid,
11558 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011559 .block_erasers =
11560 {
11561 {
11562 .eraseblocks = { {4 * 1024, 1024} },
11563 .block_erase = spi_block_erase_20,
11564 }, {
11565 .eraseblocks = { {32 * 1024, 128} },
11566 .block_erase = spi_block_erase_52,
11567 }, {
11568 .eraseblocks = { {64 * 1024, 64} },
11569 .block_erase = spi_block_erase_d8,
11570 }, {
11571 .eraseblocks = { {4 * 1024 * 1024, 1} },
11572 .block_erase = spi_block_erase_60,
11573 }, {
11574 .eraseblocks = { {4 * 1024 * 1024, 1} },
11575 .block_erase = spi_block_erase_c7,
11576 }
11577 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011578 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011579 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011580 .write = spi_chip_write_256,
11581 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011582 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011583 },
11584
11585 {
11586 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011587 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011588 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000011589 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011590 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000011591 .total_size = 8192,
11592 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011593 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011594 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000011595 .probe = probe_spi_rdid,
11596 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011597 .block_erasers =
11598 {
11599 {
11600 .eraseblocks = { {4 * 1024, 2048} },
11601 .block_erase = spi_block_erase_20,
11602 }, {
11603 .eraseblocks = { {32 * 1024, 256} },
11604 .block_erase = spi_block_erase_52,
11605 }, {
11606 .eraseblocks = { {64 * 1024, 128} },
11607 .block_erase = spi_block_erase_d8,
11608 }, {
11609 .eraseblocks = { {8 * 1024 * 1024, 1} },
11610 .block_erase = spi_block_erase_60,
11611 }, {
11612 .eraseblocks = { {8 * 1024 * 1024, 1} },
11613 .block_erase = spi_block_erase_c7,
11614 }
11615 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011617 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011618 .write = spi_chip_write_256,
11619 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011620 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011621 },
11622
11623 {
11624 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011625 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011626 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011627 .manufacture_id = WINBOND_ID,
11628 .model_id = WINBOND_W29C010,
11629 .total_size = 128,
11630 .page_size = 128,
11631 .feature_bits = FEATURE_LONG_RESET,
11632 .tested = TEST_OK_PRE,
11633 .probe = probe_w29ee011,
11634 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
11635 .block_erasers =
11636 {
11637 {
11638 .eraseblocks = { {128 * 1024, 1} },
11639 .block_erase = erase_chip_block_jedec,
11640 }
11641 },
11642 .write = write_jedec,
11643 .read = read_memmapped,
11644 },
11645
11646 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
11647 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011648 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011649 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011650 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011651 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011652 .total_size = 128,
11653 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011654 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000011655 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011656 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011657 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011658 .block_erasers =
11659 {
11660 {
11661 .eraseblocks = { {128 * 1024, 1} },
11662 .block_erase = erase_chip_block_jedec,
11663 }
11664 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011665 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011666 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011667 },
11668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011669 {
11670 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011671 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011672 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011673 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011674 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011675 .total_size = 256,
11676 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011677 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011678 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011679 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011680 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011681 .block_erasers =
11682 {
11683 {
11684 .eraseblocks = { {256 * 1024, 1} },
11685 .block_erase = erase_chip_block_jedec,
11686 }
11687 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011688 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011689 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011690 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011691 },
11692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011693 {
11694 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011695 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011697 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011698 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011699 .total_size = 512,
11700 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011701 .feature_bits = FEATURE_LONG_RESET,
11702 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011703 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000011704 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011705 .block_erasers =
11706 {
11707 {
11708 .eraseblocks = { {512 * 1024, 1} },
11709 .block_erase = erase_chip_block_jedec,
11710 }
11711 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011712 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011713 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011714 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011715 },
11716
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011717 {
11718 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000011719 .name = "W39F010",
11720 .bustype = BUS_PARALLEL,
11721 .manufacture_id = WINBOND_ID,
11722 .model_id = WINBOND_W39F010,
11723 .total_size = 128,
11724 .page_size = 4 * 1024,
11725 .feature_bits = FEATURE_EITHER_RESET,
11726 .tested = TEST_OK_PREW,
11727 .probe = probe_jedec,
11728 .probe_timing = 10,
11729 .block_erasers =
11730 {
11731 {
11732 .eraseblocks = { {4 * 1024, 32} },
11733 .block_erase = erase_block_jedec,
11734 }, {
11735 .eraseblocks = { {128 * 1024, 1} },
11736 .block_erase = erase_chip_block_jedec,
11737 }
11738 },
11739 .printlock = printlock_w39f010,
11740 .write = write_jedec_1,
11741 .read = read_memmapped,
11742 .voltage = {4500, 5500},
11743 },
11744
11745 {
11746 .vendor = "Winbond",
11747 .name = "W39L010",
11748 .bustype = BUS_PARALLEL,
11749 .manufacture_id = WINBOND_ID,
11750 .model_id = WINBOND_W39L010,
11751 .total_size = 128,
11752 .page_size = 4 * 1024,
11753 .feature_bits = FEATURE_EITHER_RESET,
11754 .tested = TEST_UNTESTED,
11755 .probe = probe_jedec,
11756 .probe_timing = 10,
11757 .block_erasers =
11758 {
11759 {
11760 .eraseblocks = { {4 * 1024, 32} },
11761 .block_erase = erase_block_jedec,
11762 }, {
11763 .eraseblocks = { {128 * 1024, 1} },
11764 .block_erase = erase_chip_block_jedec,
11765 }
11766 },
11767 .printlock = printlock_w39l010,
11768 .write = write_jedec_1,
11769 .read = read_memmapped,
11770 .voltage = {3000, 3600},
11771 },
11772
11773 {
11774 .vendor = "Winbond",
11775 .name = "W39L020",
11776 .bustype = BUS_PARALLEL,
11777 .manufacture_id = WINBOND_ID,
11778 .model_id = WINBOND_W39L020,
11779 .total_size = 256,
11780 .page_size = 4 * 1024,
11781 .feature_bits = FEATURE_EITHER_RESET,
11782 .tested = TEST_UNTESTED,
11783 .probe = probe_jedec,
11784 .probe_timing = 10,
11785 .block_erasers =
11786 {
11787 {
11788 .eraseblocks = { {4 * 1024, 64} },
11789 .block_erase = erase_block_jedec,
11790 }, {
11791 .eraseblocks = { {64 * 1024, 4} },
11792 .block_erase = erase_sector_jedec,
11793 }, {
11794 .eraseblocks = { {256 * 1024, 1} },
11795 .block_erase = erase_chip_block_jedec,
11796 }
11797 },
11798 .printlock = printlock_w39l020,
11799 .write = write_jedec_1,
11800 .read = read_memmapped,
11801 .voltage = {3000, 3600},
11802 },
11803
11804 {
11805 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000011806 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011807 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000011808 .manufacture_id = WINBOND_ID,
11809 .model_id = WINBOND_W39L040,
11810 .total_size = 512,
11811 .page_size = 64 * 1024,
11812 .feature_bits = FEATURE_EITHER_RESET,
11813 .tested = TEST_OK_PR,
11814 .probe = probe_jedec,
11815 .probe_timing = 10,
11816 .block_erasers =
11817 {
11818 {
11819 .eraseblocks = { {4 * 1024, 128} },
11820 .block_erase = erase_block_jedec,
11821 }, {
11822 .eraseblocks = { {64 * 1024, 8} },
11823 .block_erase = erase_sector_jedec,
11824 }, {
11825 .eraseblocks = { {512 * 1024, 1} },
11826 .block_erase = erase_chip_block_jedec,
11827 }
11828 },
11829 .printlock = printlock_w39l040,
11830 .write = write_jedec_1,
11831 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011832 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000011833 },
11834
11835 {
11836 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011837 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011838 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011839 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011840 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011841 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011842 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011843 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011844 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011845 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000011846 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011847 .block_erasers =
11848 {
11849 {
11850 .eraseblocks = { {64 * 1024, 8} },
11851 .block_erase = erase_sector_jedec,
11852 }, {
11853 .eraseblocks = { {512 * 1024, 1} },
11854 .block_erase = erase_chip_block_jedec,
11855 }
11856 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011857 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000011858 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011859 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011860 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011861 },
11862
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011863 {
11864 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011865 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011866 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011867 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011868 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011869 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011870 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011871 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011872 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011873 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000011874 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011875 .block_erasers =
11876 {
11877 {
11878 .eraseblocks = { {64 * 1024, 8} },
11879 .block_erase = erase_sector_jedec,
11880 }, {
11881 .eraseblocks = { {512 * 1024, 1} },
11882 .block_erase = erase_chip_block_jedec,
11883 }
11884 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011885 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000011886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011888 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011889 },
11890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011891 {
11892 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011893 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011894 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011895 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011896 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011897 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011898 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011899 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011900 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011901 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011902 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011903 .block_erasers =
11904 {
11905 {
11906 .eraseblocks = { {64 * 1024, 8} },
11907 .block_erase = erase_sector_jedec,
11908 }, {
11909 .eraseblocks = { {512 * 1024, 1} },
11910 .block_erase = erase_chip_block_jedec,
11911 }
11912 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011913 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000011914 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011916 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011917 },
11918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011919 {
11920 .vendor = "Winbond",
11921 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011922 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011923 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011924 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011925 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011926 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000011927 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011928 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011929 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011930 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011931 .block_erasers =
11932 {
11933 {
11934 .eraseblocks = { {4 * 1024, 128} },
11935 .block_erase = erase_block_jedec,
11936 }, {
11937 .eraseblocks = { {64 * 1024, 8} },
11938 .block_erase = erase_sector_jedec,
11939 }, {
11940 .eraseblocks = { {512 * 1024, 1} },
11941 .block_erase = erase_chip_block_jedec,
11942 }
11943 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011944 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000011945 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000011946 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011948 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011949 },
11950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011951 {
11952 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011953 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011954 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011955 .manufacture_id = WINBOND_ID,
11956 .model_id = WINBOND_W39V040B,
11957 .total_size = 512,
11958 .page_size = 64 * 1024,
11959 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011960 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011961 .probe = probe_jedec,
11962 .probe_timing = 10,
11963 .block_erasers =
11964 {
11965 {
11966 .eraseblocks = { {64 * 1024, 8} },
11967 .block_erase = erase_sector_jedec,
11968 }, {
11969 .eraseblocks = { {512 * 1024, 1} },
11970 .block_erase = erase_chip_block_jedec,
11971 }
11972 },
11973 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000011974 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011975 .write = write_jedec_1,
11976 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011977 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011978 },
11979
11980 {
11981 .vendor = "Winbond",
11982 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011983 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011984 .manufacture_id = WINBOND_ID,
11985 .model_id = WINBOND_W39V040C,
11986 .total_size = 512,
11987 .page_size = 64 * 1024,
11988 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011989 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011990 .probe = probe_jedec,
11991 .probe_timing = 10,
11992 .block_erasers =
11993 {
11994 {
11995 .eraseblocks = { {64 * 1024, 8} },
11996 .block_erase = erase_sector_jedec,
11997 }, {
11998 .eraseblocks = { {512 * 1024, 1} },
11999 .block_erase = erase_chip_block_jedec,
12000 }
12001 },
12002 .printlock = printlock_w39v040fc,
12003 .write = write_jedec_1,
12004 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012005 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012006 },
12007
12008 {
12009 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012010 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012011 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012012 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012013 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012014 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012015 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012016 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012017 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012018 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012019 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012020 .block_erasers =
12021 {
12022 {
12023 .eraseblocks = { {64 * 1024, 16} },
12024 .block_erase = erase_sector_jedec,
12025 }, {
12026 .eraseblocks = { {1024 * 1024, 1} },
12027 .block_erase = erase_chip_block_jedec,
12028 }
12029 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012030 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012031 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012033 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012034 },
12035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012036 {
12037 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012038 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012039 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012040 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012041 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012042 .total_size = 256,
12043 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012044 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012045 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012046 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012047 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012048 .block_erasers =
12049 {
12050 {
12051 .eraseblocks = {
12052 {128 * 1024, 1},
12053 {96 * 1024, 1},
12054 {8 * 1024, 2},
12055 {16 * 1024, 1},
12056 },
12057 .block_erase = erase_sector_jedec,
12058 }, {
12059 .eraseblocks = { {256 * 1024, 1} },
12060 .block_erase = erase_chip_block_jedec,
12061 }
12062 },
Sean Nelson35727f72010-01-28 23:55:12 +000012063 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012064 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012065 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012066 },
12067
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012068 {
12069 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012070 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012071 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012072 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012073 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012074 .total_size = 256,
12075 .page_size = 128,
12076 .feature_bits = FEATURE_EITHER_RESET,
12077 .tested = TEST_OK_PROBE,
12078 .probe = probe_jedec,
12079 .probe_timing = 10,
12080 .block_erasers =
12081 {
12082 {
12083 .eraseblocks = { {256 * 1024, 1} },
12084 .block_erase = erase_chip_block_jedec,
12085 }
12086 },
12087 .write = write_jedec_1,
12088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012089 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012090 },
12091
12092 {
12093 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012094 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012095 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012096 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012097 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012098 .total_size = 256,
12099 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012100 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012101 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012102 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012103 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012104 .block_erasers =
12105 {
12106 {
12107 .eraseblocks = {
12108 {64 * 1024, 3},
12109 {32 * 1024, 1},
12110 {8 * 1024, 2},
12111 {16 * 1024, 1},
12112 },
12113 .block_erase = erase_sector_jedec,
12114 }, {
12115 .eraseblocks = { {256 * 1024, 1} },
12116 .block_erase = erase_chip_block_jedec,
12117 }
12118 },
Sean Nelson35727f72010-01-28 23:55:12 +000012119 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012121 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012122 },
12123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012124 {
12125 .vendor = "Winbond",
12126 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012127 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012128 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012129 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012130 .total_size = 256,
12131 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012133 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012135 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012136 .block_erasers =
12137 {
12138 {
12139 .eraseblocks = {
12140 {64 * 1024, 3},
12141 {32 * 1024, 1},
12142 {8 * 1024, 2},
12143 {16 * 1024, 1},
12144 },
12145 .block_erase = erase_sector_jedec,
12146 }, {
12147 .eraseblocks = { {256 * 1024, 1} },
12148 .block_erase = erase_chip_block_jedec,
12149 }
12150 },
Sean Nelson35727f72010-01-28 23:55:12 +000012151 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012152 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012153 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012154 },
12155
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012156 {
12157 .vendor = "Winbond",
12158 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012159 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012160 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012161 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012162 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012163 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012164 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012165 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012166 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012167 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012168 .block_erasers =
12169 {
12170 {
12171 .eraseblocks = { {64 * 1024, 16}, },
12172 .block_erase = erase_sector_jedec,
12173 }, {
12174 .eraseblocks = { {1024 * 1024, 1} },
12175 .block_erase = erase_chip_block_jedec,
12176 }
12177 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012178 .printlock = printlock_w39v080fa,
12179 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012180 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012181 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012182 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012183 },
12184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012185 {
12186 .vendor = "Winbond",
12187 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012188 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012189 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012190 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012191 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012192 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012193 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012194 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012195 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012196 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012197 .block_erasers =
12198 {
12199 {
12200 .eraseblocks = { {64 * 1024, 8}, },
12201 .block_erase = erase_sector_jedec,
12202 }, {
12203 .eraseblocks = { {512 * 1024, 1} },
12204 .block_erase = erase_chip_block_jedec,
12205 }
12206 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012207 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012208 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012209 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012210 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012211 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012212
12213 {
12214 .vendor = "Unknown",
12215 .name = "SFDP-capable chip",
12216 .bustype = BUS_SPI,
12217 .manufacture_id = GENERIC_MANUF_ID,
12218 .model_id = SFDP_DEVICE_ID,
12219 /* We present our own "report this" text hence we do not
12220 * want the default "This flash part has status UNTESTED..."
12221 * text to be printed. */
12222 .tested = TEST_OK_PREW,
12223 .probe = probe_spi_sfdp,
12224 .unlock = spi_disable_blockprotect, /* is this safe? */
12225 .read = spi_chip_read,
12226 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000012227 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012228 /* Everything below will be set by the probing function. */
12229 .write = NULL,
12230 .total_size = 0,
12231 .page_size = 0,
12232 .feature_bits = 0,
12233 .block_erasers = {},
12234 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012236 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000012237 .vendor = "Programmer",
12238 .name = "Opaque flash chip",
12239 .bustype = BUS_PROG,
12240 .manufacture_id = PROGMANUF_ID,
12241 .model_id = PROGDEV_ID,
12242 .total_size = 0,
12243 .page_size = 256,
12244 /* probe is assumed to work, rest will be filled in by probe */
12245 .tested = TEST_OK_PROBE,
12246 .probe = probe_opaque,
12247 /* eraseblock sizes will be set by the probing function */
12248 .block_erasers =
12249 {
12250 {
12251 .block_erase = erase_opaque,
12252 }
12253 },
12254 .write = write_opaque,
12255 .read = read_opaque,
12256 },
12257
12258 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012259 .vendor = "AMIC",
12260 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012261 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012262 .manufacture_id = AMIC_ID,
12263 .model_id = GENERIC_DEVICE_ID,
12264 .total_size = 0,
12265 .page_size = 256,
12266 .tested = TEST_BAD_PREW,
12267 .probe = probe_spi_rdid4,
12268 .probe_timing = TIMING_ZERO,
12269 .write = NULL,
12270 .read = NULL,
12271 },
12272
12273 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012274 .vendor = "Atmel",
12275 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012276 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012277 .manufacture_id = ATMEL_ID,
12278 .model_id = GENERIC_DEVICE_ID,
12279 .total_size = 0,
12280 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012281 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012282 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012283 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012284 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012285 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012286 },
12287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012288 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000012289 .vendor = "Eon",
12290 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012291 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012292 .manufacture_id = EON_ID_NOPREFIX,
12293 .model_id = GENERIC_DEVICE_ID,
12294 .total_size = 0,
12295 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012296 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012298 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012299 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012300 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012301 },
12302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012303 {
12304 .vendor = "Macronix",
12305 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012306 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012307 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012308 .model_id = GENERIC_DEVICE_ID,
12309 .total_size = 0,
12310 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012311 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012312 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012313 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012314 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012315 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012316 },
12317
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012318 {
12319 .vendor = "PMC",
12320 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012321 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012322 .manufacture_id = PMC_ID,
12323 .model_id = GENERIC_DEVICE_ID,
12324 .total_size = 0,
12325 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012326 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012327 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012328 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012329 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012330 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012331 },
12332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012333 {
12334 .vendor = "SST",
12335 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012337 .manufacture_id = SST_ID,
12338 .model_id = GENERIC_DEVICE_ID,
12339 .total_size = 0,
12340 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012341 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012343 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012344 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012345 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012346 },
12347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012348 {
12349 .vendor = "ST",
12350 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012351 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012352 .manufacture_id = ST_ID,
12353 .model_id = GENERIC_DEVICE_ID,
12354 .total_size = 0,
12355 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012356 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012357 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012358 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012359 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012360 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012361 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000012362
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012363 {
Sean Nelson118e1d62009-11-24 02:08:11 +000012364 .vendor = "Sanyo",
12365 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012366 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012367 .manufacture_id = SANYO_ID,
12368 .model_id = GENERIC_DEVICE_ID,
12369 .total_size = 0,
12370 .page_size = 256,
12371 .tested = TEST_BAD_PREW,
12372 .probe = probe_spi_rdid,
12373 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012374 .write = NULL,
12375 .read = NULL,
12376 },
12377
12378 {
Stefan Taunereb582572012-09-21 12:52:50 +000012379 .vendor = "Winbond",
12380 .name = "unknown Winbond (ex Nexcom) SPI chip",
12381 .bustype = BUS_SPI,
12382 .manufacture_id = WINBOND_NEX_ID,
12383 .model_id = GENERIC_DEVICE_ID,
12384 .total_size = 0,
12385 .page_size = 256,
12386 .tested = TEST_BAD_PREW,
12387 .probe = probe_spi_rdid,
12388 .probe_timing = TIMING_ZERO,
12389 .write = NULL,
12390 .read = NULL,
12391 },
12392
12393 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012394 .vendor = "Generic",
12395 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012396 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012397 .manufacture_id = GENERIC_MANUF_ID,
12398 .model_id = GENERIC_DEVICE_ID,
12399 .total_size = 0,
12400 .page_size = 256,
12401 .tested = TEST_BAD_PREW,
12402 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012403 .write = NULL,
12404 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000012405
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012406 {
12407 .vendor = "Generic",
12408 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012409 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012410 .manufacture_id = GENERIC_MANUF_ID,
12411 .model_id = GENERIC_DEVICE_ID,
12412 .total_size = 0,
12413 .page_size = 256,
12414 .tested = TEST_BAD_PREW,
12415 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012416 .write = NULL,
12417 },
12418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012419 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000012420};