blob: a082e75ae6931f81173cc68e2c1228a539889682 [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 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */
1279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
1712 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001716 .total_size = 2048,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 512} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 64} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 32} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {2 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {2 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001751 .name = "AT25F512",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25F512,
1755 .total_size = 64,
1756 .page_size = 256,
1757 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001758 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001759 .probe = probe_spi_at25f,
1760 .probe_timing = TIMING_ZERO,
1761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {32 * 1024, 2} },
1765 .block_erase = spi_block_erase_52,
1766 }, {
1767 .eraseblocks = { {64 * 1024, 1} },
1768 .block_erase = spi_block_erase_62,
1769 }
1770 },
1771 .printlock = spi_prettyprint_status_register_at25f,
1772 .unlock = spi_disable_blockprotect_at25f,
1773 .write = spi_chip_write_256,
1774 .read = spi_chip_read,
1775 .voltage = {2700, 3600},
1776 },
1777
1778 {
1779 .vendor = "Atmel",
1780 .name = "AT25F512A",
1781 .bustype = BUS_SPI,
1782 .manufacture_id = ATMEL_ID,
1783 .model_id = ATMEL_AT25F512A,
1784 .total_size = 64,
1785 .page_size = 128,
1786 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001787 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001788 .probe = probe_spi_at25f,
1789 .probe_timing = TIMING_ZERO,
1790 .block_erasers =
1791 {
1792 {
1793 .eraseblocks = { {32 * 1024, 2} },
1794 .block_erase = spi_block_erase_52,
1795 }, {
1796 .eraseblocks = { {64 * 1024, 1} },
1797 .block_erase = spi_block_erase_62,
1798 }
1799 },
1800 .printlock = spi_prettyprint_status_register_at25f512a,
1801 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1802 .unlock = spi_disable_blockprotect_at25f512a,
1803 .write = spi_chip_write_256,
1804 .read = spi_chip_read,
1805 .voltage = {2700, 3600},
1806 },
1807
1808 {
1809 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 64,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001818 .tested = TEST_UNTESTED,
1819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 16} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 2} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {32 * 1024, 2} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {64 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {64 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001838 }, {
1839 .eraseblocks = { {64 * 1024, 1} },
1840 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001841 }
1842 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001843 .printlock = spi_prettyprint_status_register_at25f512b,
1844 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001848 },
1849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 {
1851 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001852 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1853 * All other properties seem to be the same.*/
1854 .name = "AT25F1024(A)",
1855 .bustype = BUS_SPI,
1856 .manufacture_id = ATMEL_ID,
1857 .model_id = ATMEL_AT25F1024,
1858 .total_size = 128,
1859 .page_size = 256,
1860 .feature_bits = FEATURE_WRSR_WREN,
1861 .tested = TEST_OK_PREW,
1862 .probe = probe_spi_at25f,
1863 .probe_timing = TIMING_ZERO,
1864 .block_erasers =
1865 {
1866 {
1867 .eraseblocks = { {32 * 1024, 4} },
1868 .block_erase = spi_block_erase_52,
1869 }, {
1870 .eraseblocks = { {128 * 1024, 1} },
1871 .block_erase = spi_block_erase_62,
1872 }
1873 },
1874 .printlock = spi_prettyprint_status_register_at25f,
1875 .unlock = spi_disable_blockprotect_at25f,
1876 .write = spi_chip_write_256,
1877 .read = spi_chip_read,
1878 .voltage = {2700, 3600},
1879 },
1880
1881 {
1882 .vendor = "Atmel",
1883 .name = "AT25F2048",
1884 .bustype = BUS_SPI,
1885 .manufacture_id = ATMEL_ID,
1886 .model_id = ATMEL_AT25F2048,
1887 .total_size = 256,
1888 .page_size = 256,
1889 .feature_bits = FEATURE_WRSR_WREN,
1890 .tested = TEST_UNTESTED,
1891 .probe = probe_spi_at25f,
1892 .probe_timing = TIMING_ZERO,
1893 .block_erasers =
1894 {
1895 {
1896 .eraseblocks = { {64 * 1024, 4} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {256 * 1024, 1} },
1900 .block_erase = spi_block_erase_62,
1901 }
1902 },
1903 .printlock = spi_prettyprint_status_register_at25f,
1904 .unlock = spi_disable_blockprotect_at25f,
1905 .write = spi_chip_write_256,
1906 .read = spi_chip_read,
1907 .voltage = {2700, 3600},
1908 },
1909
1910 {
1911 .vendor = "Atmel",
1912 .name = "AT25F4096",
1913 .bustype = BUS_SPI,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = ATMEL_AT25F4096,
1916 .total_size = 512,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_WRSR_WREN,
1919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_at25f,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {64 * 1024, 8} },
1926 .block_erase = spi_block_erase_52,
1927 }, {
1928 .eraseblocks = { {512 * 1024, 1} },
1929 .block_erase = spi_block_erase_62,
1930 }
1931 },
1932 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001933 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1934 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001935 .write = spi_chip_write_256,
1936 .read = spi_chip_read,
1937 .voltage = {2700, 3600},
1938 },
1939
1940 {
1941 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001945 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 .total_size = 128,
1947 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001948 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001951 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001952 .block_erasers =
1953 {
1954 {
1955 .eraseblocks = { {4 * 1024, 32} },
1956 .block_erase = spi_block_erase_20,
1957 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001958 .eraseblocks = { {4 * 1024, 32} },
1959 .block_erase = spi_block_erase_d7,
1960 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001961 .eraseblocks = { {32 * 1024, 4} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 4} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {128 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {128 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001974 .printlock = spi_prettyprint_status_register_at25fs010,
1975 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001976 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001979 },
1980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001981 {
1982 .vendor = "Atmel",
1983 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001985 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001986 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .total_size = 512,
1988 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001989 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .tested = TEST_UNTESTED,
1991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001992 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001993 .block_erasers =
1994 {
1995 {
1996 .eraseblocks = { {4 * 1024, 128} },
1997 .block_erase = spi_block_erase_20,
1998 }, {
1999 .eraseblocks = { {64 * 1024, 8} },
2000 .block_erase = spi_block_erase_52,
2001 }, {
2002 .eraseblocks = { {64 * 1024, 8} },
2003 .block_erase = spi_block_erase_d8,
2004 }, {
2005 .eraseblocks = { {512 * 1024, 1} },
2006 .block_erase = spi_block_erase_60,
2007 }, {
2008 .eraseblocks = { {512 * 1024, 1} },
2009 .block_erase = spi_block_erase_c7,
2010 }
2011 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002012 .printlock = spi_prettyprint_status_register_at25fs040,
2013 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002017 },
2018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 {
2020 .vendor = "Atmel",
2021 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002024 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002025 .total_size = 512,
2026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002030 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002031 .block_erasers =
2032 {
2033 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002034 .eraseblocks = { {256, 2048} },
2035 .block_erase = spi_block_erase_81,
2036 }, {
2037 .eraseblocks = { {2 * 1024, 256} },
2038 .block_erase = spi_block_erase_50,
2039 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002040 .eraseblocks = { {4 * 1024, 128} },
2041 .block_erase = spi_block_erase_20,
2042 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002043 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002044 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002045 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002046 .write = spi_chip_write_1,
2047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002048 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 1024,
2058 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002059 .feature_bits = FEATURE_WRSR_WREN,
2060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002062 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {4 * 1024, 256} },
2067 .block_erase = spi_block_erase_20,
2068 }, {
2069 .eraseblocks = { {32 * 1024, 32} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {64 * 1024, 16} },
2073 .block_erase = spi_block_erase_d8,
2074 }, {
2075 .eraseblocks = { {1024 * 1024, 1} },
2076 .block_erase = spi_block_erase_60,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_c7,
2080 }
2081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002082 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002083 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002087 },
2088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 .total_size = 2048,
2096 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002097 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002098 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002100 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002101 .block_erasers =
2102 {
2103 {
2104 .eraseblocks = { {4 * 1024, 512} },
2105 .block_erase = spi_block_erase_20,
2106 }, {
2107 .eraseblocks = { {32 * 1024, 64} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 32} },
2111 .block_erase = spi_block_erase_d8,
2112 }, {
2113 .eraseblocks = { {2 * 1024 * 1024, 1} },
2114 .block_erase = spi_block_erase_60,
2115 }, {
2116 .eraseblocks = { {2 * 1024 * 1024, 1} },
2117 .block_erase = spi_block_erase_c7,
2118 }
2119 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002120 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002121 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002125 },
2126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 {
2128 .vendor = "Atmel",
2129 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002130 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002132 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .total_size = 2048,
2134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002138 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002139 .block_erasers =
2140 {
2141 {
2142 .eraseblocks = { {4 * 1024, 512} },
2143 .block_erase = spi_block_erase_20,
2144 }, {
2145 .eraseblocks = { {32 * 1024, 64} },
2146 .block_erase = spi_block_erase_52,
2147 }, {
2148 .eraseblocks = { {64 * 1024, 32} },
2149 .block_erase = spi_block_erase_d8,
2150 }, {
2151 .eraseblocks = { {2 * 1024 * 1024, 1} },
2152 .block_erase = spi_block_erase_60,
2153 }, {
2154 .eraseblocks = { {2 * 1024 * 1024, 1} },
2155 .block_erase = spi_block_erase_c7,
2156 }
2157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002158 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002159 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002160 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002163 },
2164
2165 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002166 /*{
2167 .vendor = "Atmel",
2168 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002171 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .total_size = 4096,
2173 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002174 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .tested = TEST_UNTESTED,
2176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002177 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002178 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
2182 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 {
2185 .vendor = "Atmel",
2186 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002189 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .total_size = 512,
2191 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002192 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002196 .block_erasers =
2197 {
2198 {
2199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }, {
2202 .eraseblocks = { {32 * 1024, 16} },
2203 .block_erase = spi_block_erase_52,
2204 }, {
2205 .eraseblocks = { {64 * 1024, 8} },
2206 .block_erase = spi_block_erase_d8,
2207 }, {
2208 .eraseblocks = { {512 * 1024, 1} },
2209 .block_erase = spi_block_erase_60,
2210 }, {
2211 .eraseblocks = { {512 * 1024, 1} },
2212 .block_erase = spi_block_erase_c7,
2213 }
2214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .write = NULL /* Incompatible Page write */,
2217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002218 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002219 },
2220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 {
2222 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002223 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002224 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002225 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002226 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002227 .total_size = 64,
2228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002229 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002231 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002232 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002233 .block_erasers =
2234 {
2235 {
2236 .eraseblocks = { {64 * 1024, 1} },
2237 .block_erase = erase_chip_block_jedec,
2238 }
2239 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002240 .write = write_jedec,
2241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002242 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002243 },
2244
2245 {
2246 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002247 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002248 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002249 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002250 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002251 .total_size = 128,
2252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002254 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002255 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002256 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = { {128 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002264 .write = write_jedec, /* FIXME */
2265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002267 },
2268
2269 {
2270 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .total_size = 256,
2276 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002277 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002278 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002280 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002281 .block_erasers =
2282 {
2283 {
2284 .eraseblocks = { {256 * 1024, 1} },
2285 .block_erase = erase_chip_block_jedec,
2286 }
2287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002291 },
2292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 {
2294 .vendor = "Atmel",
2295 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002298 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .total_size = 512,
2300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .tested = TEST_UNTESTED,
2303 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002304 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002305 .block_erasers =
2306 {
2307 {
2308 .eraseblocks = { {512 * 1024, 1} },
2309 .block_erase = erase_chip_block_jedec,
2310 }
2311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002315 },
2316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002317 {
2318 .vendor = "Atmel",
2319 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002322 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002323 .total_size = 16896 /* No power of two sizes */,
2324 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002325 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002326 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2327 .feature_bits = FEATURE_OTP,
2328 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002330 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002331 .block_erasers =
2332 {
2333 {
2334 .eraseblocks = {
2335 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2336 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2337 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2338 },
2339 .block_erase = spi_erase_at45cs_sector,
2340 }
2341 },
2342 .printlock = spi_prettyprint_status_register_plain,
2343 .gran = write_gran_1056bytes,
2344 .write = spi_write_at45db,
2345 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002346 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002347 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 {
2350 .vendor = "Atmel",
2351 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002352 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002354 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002355 .total_size = 128 /* or 132, determined from status register */,
2356 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002357 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002358 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2359 .feature_bits = FEATURE_OTP,
2360 .tested = TEST_UNTESTED,
2361 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002362 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {256, 512} },
2367 .block_erase = spi_erase_at45db_page,
2368 }, {
2369 .eraseblocks = { {8 * 256, 512/8} },
2370 .block_erase = spi_erase_at45db_block,
2371 }, {
2372 .eraseblocks = {
2373 {8 * 256, 1},
2374 {120 * 256, 1},
2375 {128 * 256, 3},
2376 },
2377 .block_erase = spi_erase_at45db_sector
2378 }, {
2379 .eraseblocks = { {128 * 1024, 1} },
2380 .block_erase = spi_erase_at45db_chip,
2381 }
2382 },
2383 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2384 .printlock = spi_prettyprint_status_register_at45db,
2385 /* granularity will be set by the probing function. */
2386 .write = spi_write_at45db,
2387 .read = spi_read_at45db, /* Fast read (0x0B) supported */
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",
2393 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002396 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002397 .total_size = 256 /* or 264, determined from status register */,
2398 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002399 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002400 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2401 .feature_bits = FEATURE_OTP,
2402 .tested = TEST_UNTESTED,
2403 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002404 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002405 .block_erasers =
2406 {
2407 {
2408 .eraseblocks = { {256, 1024} },
2409 .block_erase = spi_erase_at45db_page,
2410 }, {
2411 .eraseblocks = { {8 * 256, 1024/8} },
2412 .block_erase = spi_erase_at45db_block,
2413 }, {
2414 .eraseblocks = {
2415 {8 * 256, 1},
2416 {120 * 256, 1},
2417 {128 * 256, 7},
2418 },
2419 .block_erase = spi_erase_at45db_sector
2420 }, {
2421 .eraseblocks = { {256 * 1024, 1} },
2422 .block_erase = spi_erase_at45db_chip,
2423 }
2424 },
2425 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2426 .printlock = spi_prettyprint_status_register_at45db,
2427 /* granularity will be set by the probing function. */
2428 .write = spi_write_at45db,
2429 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002430 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002431 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002433 {
2434 .vendor = "Atmel",
2435 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002436 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002437 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002438 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002439 .total_size = 512 /* or 528, determined from status register */,
2440 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002441 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002442 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2443 .feature_bits = FEATURE_OTP,
2444 .tested = TEST_OK_PREW,
2445 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002446 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002447 .block_erasers =
2448 {
2449 {
2450 .eraseblocks = { {256, 2048} },
2451 .block_erase = spi_erase_at45db_page,
2452 }, {
2453 .eraseblocks = { {8 * 256, 2048/8} },
2454 .block_erase = spi_erase_at45db_block,
2455 }, {
2456 .eraseblocks = {
2457 {8 * 256, 1},
2458 {248 * 256, 1},
2459 {256 * 256, 7},
2460 },
2461 .block_erase = spi_erase_at45db_sector
2462 }, {
2463 .eraseblocks = { {512 * 1024, 1} },
2464 .block_erase = spi_erase_at45db_chip,
2465 }
2466 },
2467 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2468 .printlock = spi_prettyprint_status_register_at45db,
2469 /* granularity will be set by the probing function. */
2470 .write = spi_write_at45db,
2471 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2472 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002473 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 {
2476 .vendor = "Atmel",
2477 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002478 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002480 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .total_size = 1024 /* or 1056, determined from status register */,
2482 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002483 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002484 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2485 .feature_bits = FEATURE_OTP,
2486 .tested = TEST_UNTESTED,
2487 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002488 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002489 .block_erasers =
2490 {
2491 {
2492 .eraseblocks = { {256, 4096} },
2493 .block_erase = spi_erase_at45db_page,
2494 }, {
2495 .eraseblocks = { {8 * 256, 4096/8} },
2496 .block_erase = spi_erase_at45db_block,
2497 }, {
2498 .eraseblocks = {
2499 {8 * 256, 1},
2500 {248 * 256, 1},
2501 {256 * 256, 15},
2502 },
2503 .block_erase = spi_erase_at45db_sector
2504 }, {
2505 .eraseblocks = { {1024 * 1024, 1} },
2506 .block_erase = spi_erase_at45db_chip,
2507 }
2508 },
2509 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2510 .printlock = spi_prettyprint_status_register_at45db,
2511 /* granularity will be set by the probing function. */
2512 .write = spi_write_at45db,
2513 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002514 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002515 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002523 .total_size = 2048 /* or 2112, determined from status register */,
2524 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002526 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2527 .feature_bits = FEATURE_OTP,
2528 .tested = TEST_OK_PREW,
2529 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002530 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002531 .block_erasers =
2532 {
2533 {
2534 .eraseblocks = { {512, 4096} },
2535 .block_erase = spi_erase_at45db_page,
2536 }, {
2537 .eraseblocks = { {8 * 512, 4096/8} },
2538 .block_erase = spi_erase_at45db_block,
2539 }, {
2540 .eraseblocks = {
2541 {8 * 512, 1},
2542 {248 * 512, 1},
2543 {256 * 512, 15},
2544 },
2545 .block_erase = spi_erase_at45db_sector
2546 }, {
2547 .eraseblocks = { {2048 * 1024, 1} },
2548 .block_erase = spi_erase_at45db_chip,
2549 }
2550 },
2551 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2552 .printlock = spi_prettyprint_status_register_at45db,
2553 /* granularity will be set by the probing function. */
2554 .write = spi_write_at45db,
2555 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002556 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002557 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 {
2560 .vendor = "Atmel",
2561 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002563 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002564 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002565 .total_size = 4224 /* No power of two sizes */,
2566 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002567 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002568 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2569 .feature_bits = FEATURE_OTP,
2570 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002572 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002573 .block_erasers =
2574 {
2575 {
2576 .eraseblocks = { {528, 8192} },
2577 .block_erase = spi_erase_at45db_page,
2578 }, {
2579 .eraseblocks = { {8 * 528, 8192/8} },
2580 .block_erase = spi_erase_at45db_block,
2581 }, /* Although the datasheets describes sectors (which can be write protected)
2582 * there seems to be no erase functions for them.
2583 {
2584 .eraseblocks = {
2585 {8 * 528, 1},
2586 {120 * 528, 1},
2587 {128 * 528, 63},
2588 },
2589 .block_erase = spi_erase_at45db_sector
2590 }, */ {
2591 .eraseblocks = { {4224 * 1024, 1} },
2592 .block_erase = spi_erase_at45db_chip,
2593 }
2594 },
2595 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2596 .gran = write_gran_528bytes,
2597 .write = spi_write_at45db,
2598 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002600 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
2604 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002608 .total_size = 4096 /* or 4224, determined from status register */,
2609 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002610 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002611 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002612 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002613 .tested = TEST_UNTESTED,
2614 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002615 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002616 .block_erasers =
2617 {
2618 {
2619 .eraseblocks = { {512, 8192} },
2620 .block_erase = spi_erase_at45db_page,
2621 }, {
2622 .eraseblocks = { {8 * 512, 8192/8} },
2623 .block_erase = spi_erase_at45db_block,
2624 }, {
2625 .eraseblocks = {
2626 {8 * 512, 1},
2627 {120 * 512, 1},
2628 {128 * 512, 63},
2629 },
2630 .block_erase = spi_erase_at45db_sector
2631 }, {
2632 .eraseblocks = { {4096 * 1024, 1} },
2633 .block_erase = spi_erase_at45db_chip,
2634 }
2635 },
2636 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2637 .printlock = spi_prettyprint_status_register_at45db,
2638 /* granularity will be set by the probing function. */
2639 .write = spi_write_at45db,
2640 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2641 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2642 },
2643
2644 {
2645 .vendor = "Atmel",
2646 .name = "AT45DB321E",
2647 .bustype = BUS_SPI,
2648 .manufacture_id = ATMEL_ID,
2649 .model_id = ATMEL_AT45DB321C,
2650 .total_size = 4096 /* or 4224, determined from status register */,
2651 .page_size = 512 /* or 528, determined from status register */,
2652 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2653 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2654 .feature_bits = FEATURE_OTP,
2655 .tested = TEST_UNTESTED,
2656 .probe = probe_spi_at45db,
2657 .probe_timing = TIMING_ZERO,
2658 .block_erasers =
2659 {
2660 {
2661 .eraseblocks = { {512, 8192} },
2662 .block_erase = spi_erase_at45db_page,
2663 }, {
2664 .eraseblocks = { {8 * 512, 8192/8} },
2665 .block_erase = spi_erase_at45db_block,
2666 }, {
2667 .eraseblocks = {
2668 {8 * 512, 1},
2669 {120 * 512, 1},
2670 {128 * 512, 63},
2671 },
2672 .block_erase = spi_erase_at45db_sector
2673 }, {
2674 .eraseblocks = { {4096 * 1024, 1} },
2675 .block_erase = spi_erase_at45db_chip,
2676 }
2677 },
2678 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2679 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2680 /* granularity will be set by the probing function. */
2681 .write = spi_write_at45db,
2682 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2683 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002684 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002686 {
2687 .vendor = "Atmel",
2688 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002692 .total_size = 8192 /* or 8448, determined from status register */,
2693 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002694 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002695 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2696 .feature_bits = FEATURE_OTP,
2697 .tested = TEST_UNTESTED,
2698 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002699 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002700 .block_erasers =
2701 {
2702 {
2703 .eraseblocks = { {1024, 8192} },
2704 .block_erase = spi_erase_at45db_page,
2705 }, {
2706 .eraseblocks = { {8 * 1024, 8192/8} },
2707 .block_erase = spi_erase_at45db_block,
2708 }, {
2709 .eraseblocks = {
2710 {8 * 1024, 1},
2711 {248 * 1024, 1},
2712 {256 * 1024, 31},
2713 },
2714 .block_erase = spi_erase_at45db_sector
2715 }, {
2716 .eraseblocks = { {8192 * 1024, 1} },
2717 .block_erase = spi_erase_at45db_chip,
2718 }
2719 },
2720 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2721 .printlock = spi_prettyprint_status_register_at45db,
2722 /* granularity will be set by the probing function. */
2723 .write = spi_write_at45db,
2724 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002725 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002726 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002728 {
2729 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002730 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002731 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002732 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002733 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002734 .total_size = 64,
2735 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002736 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002737 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002740 .block_erasers =
2741 {
2742 {
2743 .eraseblocks = { {64 * 1024, 1} },
2744 .block_erase = erase_chip_block_jedec,
2745 }
2746 },
Sean Nelson35727f72010-01-28 23:55:12 +00002747 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002749 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002750 },
2751
2752 {
2753 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002754 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002758 .total_size = 256,
2759 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002760 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 .tested = TEST_UNTESTED,
2762 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002763 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002764 .block_erasers =
2765 {
2766 {
2767 .eraseblocks = {
2768 {16 * 1024, 1},
2769 {8 * 1024, 2},
2770 {96 * 1024, 1},
2771 {128 * 1024, 1},
2772 },
2773 .block_erase = erase_sector_jedec,
2774 }, {
2775 .eraseblocks = { {256 * 1024, 1} },
2776 .block_erase = erase_chip_block_jedec,
2777 }
2778 },
Sean Nelson35727f72010-01-28 23:55:12 +00002779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002781 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002782 },
2783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002784 {
2785 .vendor = "Atmel",
2786 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002787 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002788 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002789 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 .total_size = 256,
2791 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002792 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002793 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002795 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002796 .block_erasers =
2797 {
2798 {
2799 .eraseblocks = {
2800 {128 * 1024, 1},
2801 {96 * 1024, 1},
2802 {8 * 1024, 2},
2803 {16 * 1024, 1},
2804 },
2805 .block_erase = erase_sector_jedec,
2806 }, {
2807 .eraseblocks = { {256 * 1024, 1} },
2808 .block_erase = erase_chip_block_jedec,
2809 }
2810 },
Sean Nelson35727f72010-01-28 23:55:12 +00002811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002813 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002814 },
2815
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002816 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002817 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002818 .name = "AT49(H)F010",
2819 .bustype = BUS_PARALLEL,
2820 .manufacture_id = ATMEL_ID,
2821 .model_id = ATMEL_AT49F010,
2822 .total_size = 128,
2823 .page_size = 0, /* unused */
2824 .feature_bits = FEATURE_EITHER_RESET,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_jedec,
2827 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {128 * 1024, 1} },
2832 .block_erase = erase_chip_block_jedec,
2833 }
2834 },
2835 .printlock = printlock_at49f,
2836 .write = write_jedec_1,
2837 .read = read_memmapped,
2838 .voltage = {4500, 5500},
2839 },
2840
2841 {
2842 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002843 .name = "AT49F020",
2844 .bustype = BUS_PARALLEL,
2845 .manufacture_id = ATMEL_ID,
2846 .model_id = ATMEL_AT49F020,
2847 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002848 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002849 .feature_bits = FEATURE_EITHER_RESET,
2850 .tested = TEST_OK_PRE,
2851 .probe = probe_jedec,
2852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2853 .block_erasers =
2854 {
2855 {
2856 .eraseblocks = { {256 * 1024, 1} },
2857 .block_erase = erase_chip_block_jedec,
2858 }
2859 /* Chip features an optional permanent write protection
2860 * of the first 8 kB. The erase function is the same as
2861 * above, but 00000H to 01FFFH will not be erased.
2862 * FIXME: add another eraser when partial erasers are
2863 * supported.
2864 */
2865 },
2866 .printlock = printlock_at49f,
2867 .write = write_jedec_1,
2868 .read = read_memmapped,
2869 .voltage = {4500, 5500},
2870 },
2871
2872 {
2873 .vendor = "Atmel",
2874 .name = "AT49F040",
2875 .bustype = BUS_PARALLEL,
2876 .manufacture_id = ATMEL_ID,
2877 .model_id = ATMEL_AT49F040,
2878 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002879 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002880 .feature_bits = FEATURE_EITHER_RESET,
2881 .tested = TEST_UNTESTED,
2882 .probe = probe_jedec,
2883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2884 .block_erasers =
2885 {
2886 {
2887 .eraseblocks = { {512 * 1024, 1} },
2888 .block_erase = erase_chip_block_jedec,
2889 }
2890 /* Chip features an optional permanent write protection
2891 * of the first 16 kB. The erase function is the same as
2892 * above, but 00000H to 03FFFH will not be erased.
2893 * FIXME: add another eraser when partial erasers are
2894 * supported.
2895 */
2896 },
2897 .printlock = printlock_at49f,
2898 .write = write_jedec_1,
2899 .read = read_memmapped,
2900 .voltage = {4500, 5500},
2901 },
2902
2903 {
2904 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002905 .name = "AT49F080",
2906 .bustype = BUS_PARALLEL,
2907 .manufacture_id = ATMEL_ID,
2908 .model_id = ATMEL_AT49F080,
2909 .total_size = 1024,
2910 .page_size = 0, /* unused */
2911 .feature_bits = FEATURE_EITHER_RESET,
2912 .tested = TEST_UNTESTED,
2913 .probe = probe_jedec,
2914 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2915 .block_erasers =
2916 {
2917 {
2918 .eraseblocks = { {1024 * 1024, 1} },
2919 .block_erase = erase_chip_block_jedec,
2920 }
2921 /* Chip features an optional permanent write protection
2922 * of the first 16 kB. The erase function is the same as
2923 * above, but 00000H to 03FFFH will not be erased.
2924 * FIXME: add another eraser when partial erasers are
2925 * supported.
2926 */
2927 },
2928 .printlock = printlock_at49f,
2929 .write = write_jedec_1,
2930 .read = read_memmapped,
2931 .voltage = {4500, 5500},
2932 },
2933
2934 {
2935 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2936 .vendor = "Atmel",
2937 .name = "AT49F080T",
2938 .bustype = BUS_PARALLEL,
2939 .manufacture_id = ATMEL_ID,
2940 .model_id = ATMEL_AT49F080T,
2941 .total_size = 1024,
2942 .page_size = 0, /* unused */
2943 .feature_bits = FEATURE_EITHER_RESET,
2944 .tested = TEST_UNTESTED,
2945 .probe = probe_jedec,
2946 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2947 .block_erasers =
2948 {
2949 {
2950 .eraseblocks = { {1024 * 1024, 1} },
2951 .block_erase = erase_chip_block_jedec,
2952 }
2953 /* Chip features an optional permanent write protection
2954 * of the first 16 kB. The erase function is the same as
2955 * above, but FC000H to FFFFFH will not be erased.
2956 * FIXME: add another eraser when partial erasers are
2957 * supported.
2958 */
2959 },
2960 .printlock = printlock_at49f,
2961 .write = write_jedec_1,
2962 .read = read_memmapped,
2963 .voltage = {4500, 5500},
2964 },
2965
2966 {
2967 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002968 .name = "AT49LH002",
2969 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2970 .manufacture_id = ATMEL_ID,
2971 .model_id = ATMEL_AT49LH002,
2972 .total_size = 256,
2973 .page_size = 0, /* unused */
2974 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2975 .tested = TEST_UNTESTED,
2976 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2977 .probe_timing = TIMING_FIXME,
2978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {64 * 1024, 3},
2983 {32 * 1024, 1},
2984 {8 * 1024, 2},
2985 {16 * 1024, 1},
2986 },
2987 .block_erase = erase_block_82802ab,
2988 }, {
2989 .eraseblocks = {
2990 {64 * 1024, 4},
2991 },
2992 .block_erase = NULL, /* TODO: Implement. */
2993 },
2994 },
2995 .printlock = NULL, /* TODO */
2996 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2997 .write = write_82802ab,
2998 .read = read_memmapped,
2999 .voltage = {3000, 3600},
3000 },
3001
3002 {
Andrew Morganca081462011-09-13 22:05:44 +00003003 .vendor = "Catalyst",
3004 .name = "CAT28F512",
3005 .bustype = BUS_PARALLEL,
3006 .manufacture_id = CATALYST_ID,
3007 .model_id = CATALYST_CAT28F512,
3008 .total_size = 64,
3009 .page_size = 0, /* unused */
3010 .feature_bits = 0,
3011 .tested = TEST_OK_PR,
3012 .probe = probe_jedec, /* FIXME! */
3013 .probe_timing = TIMING_ZERO,
3014 .block_erasers =
3015 {
3016 {
3017 .eraseblocks = { {64 * 1024, 1} },
3018 .block_erase = NULL, /* TODO */
3019 },
3020 },
3021 .write = NULL, /* TODO */
3022 .read = read_memmapped,
3023 .voltage = {4500, 5500},
3024 },
3025
3026 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003027 .vendor = "Bright",
3028 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003029 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003030 .manufacture_id = BRIGHT_ID,
3031 .model_id = BRIGHT_BM29F040,
3032 .total_size = 512,
3033 .page_size = 64 * 1024,
3034 .feature_bits = FEATURE_EITHER_RESET,
3035 .tested = TEST_OK_PR,
3036 .probe = probe_jedec,
3037 .probe_timing = TIMING_ZERO,
3038 .block_erasers =
3039 {
3040 {
3041 .eraseblocks = { {64 * 1024, 8} },
3042 .block_erase = erase_sector_jedec,
3043 }, {
3044 .eraseblocks = { {512 * 1024, 1} },
3045 .block_erase = erase_chip_block_jedec,
3046 },
3047 },
3048 .write = write_jedec_1,
3049 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003050 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003051 },
3052
3053 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003054 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003055 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003056 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003057 .manufacture_id = ESMT_ID,
3058 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003059 .total_size = 256,
3060 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003061 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003062 .tested = TEST_UNTESTED,
3063 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003064 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003065 .block_erasers =
3066 {
3067 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003068 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003069 {128 * 1024, 1},
3070 {96 * 1024, 1},
3071 {8 * 1024, 2},
3072 {16 * 1024, 1},
3073 },
3074 .block_erase = erase_sector_jedec,
3075 }, {
3076 .eraseblocks = { {256 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
Sean Nelson35727f72010-01-28 23:55:12 +00003080 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003083 },
3084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003085 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003086 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003087 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003088 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003089 .manufacture_id = ESMT_ID,
3090 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003091 .total_size = 1024,
3092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003093 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003094 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003095 .probe = probe_spi_rdid,
3096 .probe_timing = TIMING_ZERO,
3097 .block_erasers =
3098 {
3099 {
3100 .eraseblocks = { {4 * 1024, 256} },
3101 .block_erase = spi_block_erase_20,
3102 }, {
3103 .eraseblocks = { {64 * 1024, 16} },
3104 .block_erase = spi_block_erase_d8,
3105 }, {
3106 .eraseblocks = { {1024 * 1024, 1} },
3107 .block_erase = spi_block_erase_60,
3108 }, {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = spi_block_erase_c7,
3111 }
3112 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003115 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003116 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003117 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003118 },
3119
3120 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003121 .vendor = "Eon",
3122 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003123 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003124 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003125 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 .total_size = 64,
3127 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003128 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003129 .tested = TEST_UNTESTED,
3130 .probe = probe_spi_rdid,
3131 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003132 .block_erasers =
3133 {
3134 {
3135 .eraseblocks = {
3136 {4 * 1024, 2},
3137 {8 * 1024, 1},
3138 {16 * 1024, 1},
3139 {32 * 1024, 1},
3140 },
3141 .block_erase = spi_block_erase_d8,
3142 }, {
3143 .eraseblocks = { {64 * 1024, 1} },
3144 .block_erase = spi_block_erase_c7,
3145 }
3146 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003147 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003148 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .write = spi_chip_write_256,
3150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003151 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003152 },
3153
3154 {
3155 .vendor = "Eon",
3156 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003157 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003158 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003159 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003160 .total_size = 64,
3161 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003162 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003163 .tested = TEST_UNTESTED,
3164 .probe = probe_spi_rdid,
3165 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003166 .block_erasers =
3167 {
3168 {
3169 .eraseblocks = {
3170 {32 * 1024, 1},
3171 {16 * 1024, 1},
3172 {8 * 1024, 1},
3173 {4 * 1024, 2},
3174 },
3175 .block_erase = spi_block_erase_d8,
3176 }, {
3177 .eraseblocks = { {64 * 1024, 1} },
3178 .block_erase = spi_block_erase_c7,
3179 }
3180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003182 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003183 .write = spi_chip_write_256,
3184 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003185 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003186 },
3187
3188 {
3189 .vendor = "Eon",
3190 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003191 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003192 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003193 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .total_size = 128,
3195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003196 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003197 .tested = TEST_UNTESTED,
3198 .probe = probe_spi_rdid,
3199 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003200 .block_erasers =
3201 {
3202 {
3203 .eraseblocks = {
3204 {4 * 1024, 2},
3205 {8 * 1024, 1},
3206 {16 * 1024, 1},
3207 {32 * 1024, 3},
3208 },
3209 .block_erase = spi_block_erase_d8,
3210 }, {
3211 .eraseblocks = { {128 * 1024, 1} },
3212 .block_erase = spi_block_erase_c7,
3213 }
3214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003216 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .write = spi_chip_write_256,
3218 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003220 },
3221
3222 {
3223 .vendor = "Eon",
3224 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003225 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003226 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003227 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003228 .total_size = 128,
3229 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003230 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003231 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003232 .probe = probe_spi_rdid,
3233 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = {
3238 {32 * 1024, 3},
3239 {16 * 1024, 1},
3240 {8 * 1024, 1},
3241 {4 * 1024, 2},
3242 },
3243 .block_erase = spi_block_erase_d8,
3244 }, {
3245 .eraseblocks = { {128 * 1024, 1} },
3246 .block_erase = spi_block_erase_c7,
3247 }
3248 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003250 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003251 .write = spi_chip_write_256,
3252 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003253 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003254 },
3255
3256 {
3257 .vendor = "Eon",
3258 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003259 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003260 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003261 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003262 .total_size = 256,
3263 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003264 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003265 .tested = TEST_UNTESTED,
3266 .probe = probe_spi_rdid,
3267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003268 .block_erasers =
3269 {
3270 {
3271 .eraseblocks = {
3272 {4 * 1024, 2},
3273 {8 * 1024, 1},
3274 {16 * 1024, 1},
3275 {32 * 1024, 1},
3276 {64 * 1024, 3}
3277 },
3278 .block_erase = spi_block_erase_d8,
3279 }, {
3280 .eraseblocks = { {256 * 1024, 1} },
3281 .block_erase = spi_block_erase_c7,
3282 }
3283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003285 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003286 .write = spi_chip_write_256,
3287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003288 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003289 },
3290
3291 {
3292 .vendor = "Eon",
3293 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003294 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003295 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003296 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003297 .total_size = 256,
3298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003299 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003300 .tested = TEST_UNTESTED,
3301 .probe = probe_spi_rdid,
3302 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003303 .block_erasers =
3304 {
3305 {
3306 .eraseblocks = {
3307 {64 * 1024, 3},
3308 {32 * 1024, 1},
3309 {16 * 1024, 1},
3310 {8 * 1024, 1},
3311 {4 * 1024, 2},
3312 },
3313 .block_erase = spi_block_erase_d8,
3314 }, {
3315 .eraseblocks = { {256 * 1024, 1} },
3316 .block_erase = spi_block_erase_c7,
3317 }
3318 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003320 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003321 .write = spi_chip_write_256,
3322 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003323 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003324 },
3325
3326 {
3327 .vendor = "Eon",
3328 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003329 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003330 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003331 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003332 .total_size = 512,
3333 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003334 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003335 .tested = TEST_UNTESTED,
3336 .probe = probe_spi_rdid,
3337 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003338 .block_erasers =
3339 {
3340 {
3341 .eraseblocks = {
3342 {4 * 1024, 2},
3343 {8 * 1024, 1},
3344 {16 * 1024, 1},
3345 {32 * 1024, 1},
3346 {64 * 1024, 7}
3347 },
3348 .block_erase = spi_block_erase_d8,
3349 }, {
3350 .eraseblocks = { {512 * 1024, 1} },
3351 .block_erase = spi_block_erase_c7,
3352 }
3353 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003355 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003356 .write = spi_chip_write_256,
3357 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003358 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003359 },
3360
3361 {
3362 .vendor = "Eon",
3363 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003364 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003366 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003367 .total_size = 512,
3368 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003369 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003370 .tested = TEST_UNTESTED,
3371 .probe = probe_spi_rdid,
3372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003373 .block_erasers =
3374 {
3375 {
3376 .eraseblocks = {
3377 {64 * 1024, 7},
3378 {32 * 1024, 1},
3379 {16 * 1024, 1},
3380 {8 * 1024, 1},
3381 {4 * 1024, 2},
3382 },
3383 .block_erase = spi_block_erase_d8,
3384 }, {
3385 .eraseblocks = { {512 * 1024, 1} },
3386 .block_erase = spi_block_erase_c7,
3387 }
3388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003389 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003390 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003391 .write = spi_chip_write_256,
3392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003393 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003394 },
3395
3396 {
3397 .vendor = "Eon",
3398 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003399 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003400 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003401 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003402 .total_size = 1024,
3403 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003404 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003405 .tested = TEST_UNTESTED,
3406 .probe = probe_spi_rdid,
3407 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = {
3412 {4 * 1024, 2},
3413 {8 * 1024, 1},
3414 {16 * 1024, 1},
3415 {32 * 1024, 1},
3416 {64 * 1024, 15}
3417 },
3418 .block_erase = spi_block_erase_d8,
3419 }, {
3420 .eraseblocks = { {1024 * 1024, 1} },
3421 .block_erase = spi_block_erase_c7,
3422 }
3423 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003425 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003428 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003436 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003437 .total_size = 1024,
3438 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003439 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003440 .tested = TEST_UNTESTED,
3441 .probe = probe_spi_rdid,
3442 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003443 .block_erasers =
3444 {
3445 {
3446 .eraseblocks = {
3447 {64 * 1024, 15},
3448 {32 * 1024, 1},
3449 {16 * 1024, 1},
3450 {8 * 1024, 1},
3451 {4 * 1024, 2},
3452 },
3453 .block_erase = spi_block_erase_d8,
3454 }, {
3455 .eraseblocks = { {1024 * 1024, 1} },
3456 .block_erase = spi_block_erase_c7,
3457 }
3458 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003459 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003460 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003463 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003470 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003471 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003472 .total_size = 2048,
3473 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003474 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003475 .tested = TEST_UNTESTED,
3476 .probe = probe_spi_rdid,
3477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .block_erasers =
3479 {
3480 {
3481 .eraseblocks = {
3482 {4 * 1024, 2},
3483 {8 * 1024, 1},
3484 {16 * 1024, 1},
3485 {32 * 1024, 1},
3486 {64 * 1024, 31},
3487 },
3488 .block_erase = spi_block_erase_d8,
3489 }, {
3490 .eraseblocks = { {2 * 1024 * 1024, 1} },
3491 .block_erase = spi_block_erase_c7,
3492 }
3493 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003494 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003495 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003498 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003505 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003506 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003507 .total_size = 2048,
3508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003509 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003510 .tested = TEST_UNTESTED,
3511 .probe = probe_spi_rdid,
3512 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .block_erasers =
3514 {
3515 {
3516 .eraseblocks = {
3517 {64 * 1024, 31},
3518 {32 * 1024, 1},
3519 {16 * 1024, 1},
3520 {8 * 1024, 1},
3521 {4 * 1024, 2},
3522 },
3523 .block_erase = spi_block_erase_d8,
3524 }, {
3525 .eraseblocks = { {2 * 1024 * 1024, 1} },
3526 .block_erase = spi_block_erase_c7,
3527 }
3528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003530 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003533 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003534 },
3535
3536 {
3537 .vendor = "Eon",
3538 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003539 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003540 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003541 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003542 .total_size = 4096,
3543 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003544 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003545 .tested = TEST_UNTESTED,
3546 .probe = probe_spi_rdid,
3547 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .block_erasers =
3549 {
3550 {
3551 .eraseblocks = {
3552 {4 * 1024, 2},
3553 {8 * 1024, 1},
3554 {16 * 1024, 1},
3555 {32 * 1024, 1},
3556 {64 * 1024, 63},
3557 },
3558 .block_erase = spi_block_erase_d8,
3559 }, {
3560 .eraseblocks = { {4 * 1024 * 1024, 1} },
3561 .block_erase = spi_block_erase_c7,
3562 }
3563 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003565 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003568 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003569 },
3570
3571 {
3572 .vendor = "Eon",
3573 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003574 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003575 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003576 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003577 .total_size = 4096,
3578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003579 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003580 .tested = TEST_UNTESTED,
3581 .probe = probe_spi_rdid,
3582 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = {
3587 {64 * 1024, 63},
3588 {32 * 1024, 1},
3589 {16 * 1024, 1},
3590 {8 * 1024, 1},
3591 {4 * 1024, 2},
3592 },
3593 .block_erase = spi_block_erase_d8,
3594 }, {
3595 .eraseblocks = { {4 * 1024 * 1024, 1} },
3596 .block_erase = spi_block_erase_c7,
3597 }
3598 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003599 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003600 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003601 .write = spi_chip_write_256,
3602 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003603 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003604 },
3605
3606 {
3607 .vendor = "Eon",
3608 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003609 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003610 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003611 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003612 .total_size = 8192,
3613 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003614 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003615 .tested = TEST_UNTESTED,
3616 .probe = probe_spi_rdid,
3617 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .block_erasers =
3619 {
3620 {
3621 .eraseblocks = {
3622 {4 * 1024, 2},
3623 {8 * 1024, 1},
3624 {16 * 1024, 1},
3625 {32 * 1024, 1},
3626 {64 * 1024, 127},
3627 },
3628 .block_erase = spi_block_erase_d8,
3629 }, {
3630 .eraseblocks = { {8 * 1024 * 1024, 1} },
3631 .block_erase = spi_block_erase_c7,
3632 }
3633 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003634 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003635 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003636 .write = spi_chip_write_256,
3637 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003638 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003639 },
3640
3641 {
3642 .vendor = "Eon",
3643 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003644 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003645 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003646 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003647 .total_size = 8192,
3648 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003649 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003650 .tested = TEST_UNTESTED,
3651 .probe = probe_spi_rdid,
3652 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003653 .block_erasers =
3654 {
3655 {
3656 .eraseblocks = {
3657 {64 * 1024, 127},
3658 {32 * 1024, 1},
3659 {16 * 1024, 1},
3660 {8 * 1024, 1},
3661 {4 * 1024, 2},
3662 },
3663 .block_erase = spi_block_erase_d8,
3664 }, {
3665 .eraseblocks = { {8 * 1024 * 1024, 1} },
3666 .block_erase = spi_block_erase_c7,
3667 }
3668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003670 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003671 .write = spi_chip_write_256,
3672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003673 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003674 },
3675
3676 {
3677 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003678 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003679 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003680 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003681 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003682 .total_size = 64,
3683 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003685 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003686 .probe = probe_spi_rdid,
3687 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .block_erasers =
3689 {
3690 {
3691 .eraseblocks = { {4 * 1024, 16} },
3692 .block_erase = spi_block_erase_20,
3693 }, {
3694 .eraseblocks = { {32 * 1024, 2} },
3695 .block_erase = spi_block_erase_d8,
3696 }, {
3697 .eraseblocks = { {32 * 1024, 2} },
3698 .block_erase = spi_block_erase_52,
3699 }, {
3700 .eraseblocks = { {64 * 1024, 1} },
3701 .block_erase = spi_block_erase_60,
3702 }, {
3703 .eraseblocks = { {64 * 1024, 1} },
3704 .block_erase = spi_block_erase_c7,
3705 }
3706 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003707 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003708 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003709 .write = spi_chip_write_256,
3710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003711 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003712 },
3713
3714 {
3715 .vendor = "Eon",
3716 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003717 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003718 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003719 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003720 .total_size = 128,
3721 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003722 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .tested = TEST_UNTESTED,
3724 .probe = probe_spi_rdid,
3725 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003726 .block_erasers =
3727 {
3728 {
3729 .eraseblocks = { {4 * 1024, 32} },
3730 .block_erase = spi_block_erase_20,
3731 }, {
3732 .eraseblocks = { {32 * 1024, 4} },
3733 .block_erase = spi_block_erase_d8,
3734 }, {
3735 .eraseblocks = { {32 * 1024, 4} },
3736 .block_erase = spi_block_erase_52,
3737 }, {
3738 .eraseblocks = { {128 * 1024, 1} },
3739 .block_erase = spi_block_erase_60,
3740 }, {
3741 .eraseblocks = { {128 * 1024, 1} },
3742 .block_erase = spi_block_erase_c7,
3743 }
3744 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003745 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003747 .write = spi_chip_write_256,
3748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003749 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003750 },
3751
3752 {
3753 .vendor = "Eon",
3754 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003755 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003756 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003757 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003758 .total_size = 256,
3759 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003760 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003761 .tested = TEST_UNTESTED,
3762 .probe = probe_spi_rdid,
3763 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003764 .block_erasers =
3765 {
3766 {
3767 .eraseblocks = { {4 * 1024, 64} },
3768 .block_erase = spi_block_erase_20,
3769 }, {
3770 .eraseblocks = { {64 * 1024, 4} },
3771 .block_erase = spi_block_erase_d8,
3772 }, {
3773 .eraseblocks = { {64 * 1024, 4} },
3774 .block_erase = spi_block_erase_52,
3775 }, {
3776 .eraseblocks = { {256 * 1024, 1} },
3777 .block_erase = spi_block_erase_60,
3778 }, {
3779 .eraseblocks = { {256 * 1024, 1} },
3780 .block_erase = spi_block_erase_c7,
3781 }
3782 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003784 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003785 .write = spi_chip_write_256,
3786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003787 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003788 },
3789
3790 {
3791 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003793 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003794 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003795 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003796 .total_size = 512,
3797 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003798 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003799 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .probe = probe_spi_rdid,
3801 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003802 .block_erasers =
3803 {
3804 {
Sean Nelson54596372010-01-09 05:30:14 +00003805 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003806 .block_erase = spi_block_erase_20,
3807 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003808 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003809 .block_erase = spi_block_erase_d8,
3810 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003811 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003812 .block_erase = spi_block_erase_60,
3813 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003814 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003815 .block_erase = spi_block_erase_c7,
3816 },
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003820 .write = spi_chip_write_256,
3821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003831 .total_size = 1024,
3832 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003834 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = { {4 * 1024, 256} },
3841 .block_erase = spi_block_erase_20,
3842 }, {
3843 .eraseblocks = { {64 * 1024, 16} },
3844 .block_erase = spi_block_erase_d8,
3845 }, {
3846 .eraseblocks = { {1024 * 1024, 1} },
3847 .block_erase = spi_block_erase_60,
3848 }, {
3849 .eraseblocks = { {1024 * 1024, 1} },
3850 .block_erase = spi_block_erase_c7,
3851 }
3852 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003853 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003854 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003855 .write = spi_chip_write_256,
3856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003857 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003858 },
3859
3860 {
3861 .vendor = "Eon",
3862 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003863 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003864 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003865 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003866 .total_size = 2048,
3867 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003868 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003869 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003870 .probe = probe_spi_rdid,
3871 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = { {4 * 1024, 512} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 32} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {2 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {2 * 1024 * 1024, 1} },
3885 .block_erase = spi_block_erase_c7,
3886 }
3887 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003889 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003892 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003893 },
3894
3895 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003896 .vendor = "Eon",
3897 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003898 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003899 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003900 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 .total_size = 4096,
3902 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003903 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003904 .tested = TEST_UNTESTED,
3905 .probe = probe_spi_rdid,
3906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .block_erasers =
3908 {
3909 {
3910 .eraseblocks = { {4 * 1024, 1024} },
3911 .block_erase = spi_block_erase_20,
3912 }, {
3913 .eraseblocks = { {64 * 1024, 64} },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {4 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_60,
3918 }, {
3919 .eraseblocks = { {4 * 1024 * 1024, 1} },
3920 .block_erase = spi_block_erase_c7,
3921 }
3922 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003924 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003925 .write = spi_chip_write_256,
3926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003927 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003928 },
3929
3930 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003931 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003932 .name = "EN25F64",
3933 .bustype = BUS_SPI,
3934 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003935 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003936 .total_size = 8192,
3937 .page_size = 256,
3938 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003939 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003940 .probe = probe_spi_rdid,
3941 .probe_timing = TIMING_ZERO,
3942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = { {4 * 1024, 2048} },
3946 .block_erase = spi_block_erase_20,
3947 }, {
3948 .eraseblocks = { {64 * 1024, 128} },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {8 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_60,
3953 }, {
3954 .eraseblocks = { {8 * 1024 * 1024, 1} },
3955 .block_erase = spi_block_erase_c7,
3956 }
3957 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003958 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003959 .unlock = spi_disable_blockprotect,
3960 .write = spi_chip_write_256,
3961 .read = spi_chip_read,
3962 .voltage = {2700, 3600},
3963 },
3964
3965 {
3966 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003967 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003968 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003969 .manufacture_id = EON_ID_NOPREFIX,
3970 .model_id = EON_EN25Q40,
3971 .total_size = 512,
3972 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003973 /* OTP: 256B total; enter 0x3A */
3974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003975 .tested = TEST_UNTESTED,
3976 .probe = probe_spi_rdid,
3977 .probe_timing = TIMING_ZERO,
3978 .block_erasers =
3979 {
3980 {
3981 .eraseblocks = { {4 * 1024, 128} },
3982 .block_erase = spi_block_erase_20,
3983 }, {
3984 .eraseblocks = { {64 * 1024, 8} },
3985 .block_erase = spi_block_erase_d8,
3986 }, {
3987 .eraseblocks = { {512 * 1024, 1} },
3988 .block_erase = spi_block_erase_60,
3989 }, {
3990 .eraseblocks = { {512 * 1024, 1} },
3991 .block_erase = spi_block_erase_c7,
3992 }
3993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003995 .unlock = spi_disable_blockprotect,
3996 .write = spi_chip_write_256,
3997 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003998 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003999 },
4000
4001 {
4002 .vendor = "Eon",
4003 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004004 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004005 .manufacture_id = EON_ID_NOPREFIX,
4006 .model_id = EON_EN25Q80,
4007 .total_size = 1024,
4008 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004009 /* OTP: 256B total; enter 0x3A */
4010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004011 .tested = TEST_UNTESTED,
4012 .probe = probe_spi_rdid,
4013 .probe_timing = TIMING_ZERO,
4014 .block_erasers =
4015 {
4016 {
4017 .eraseblocks = { {4 * 1024, 256} },
4018 .block_erase = spi_block_erase_20,
4019 }, {
4020 .eraseblocks = { {64 * 1024, 16} },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { {1024 * 1024, 1} },
4024 .block_erase = spi_block_erase_60,
4025 }, {
4026 .eraseblocks = { {1024 * 1024, 1} },
4027 .block_erase = spi_block_erase_c7,
4028 }
4029 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004030 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004031 .unlock = spi_disable_blockprotect,
4032 .write = spi_chip_write_256,
4033 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004034 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004035 },
4036
4037 {
4038 /* Note: EN25D16 is an evil twin which shares the model ID
4039 but has different write protection capabilities */
4040 .vendor = "Eon",
4041 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004042 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004043 .manufacture_id = EON_ID_NOPREFIX,
4044 .model_id = EON_EN25Q16,
4045 .total_size = 2048,
4046 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004047 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004049 .tested = TEST_UNTESTED,
4050 .probe = probe_spi_rdid,
4051 .probe_timing = TIMING_ZERO,
4052 .block_erasers =
4053 {
4054 {
4055 .eraseblocks = { {4 * 1024, 512} },
4056 .block_erase = spi_block_erase_20,
4057 }, {
4058 .eraseblocks = { {64 * 1024, 32} },
4059 .block_erase = spi_block_erase_d8,
4060 }, {
4061 /* not supported by Q16 version */
4062 .eraseblocks = { {64 * 1024, 32} },
4063 .block_erase = spi_block_erase_52,
4064 }, {
4065 .eraseblocks = { {2 * 1024 * 1024, 1} },
4066 .block_erase = spi_block_erase_60,
4067 }, {
4068 .eraseblocks = { {2 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read,
4076 .voltage = {2700, 3600},
4077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
4084 .model_id = EON_EN25Q32,
4085 .total_size = 4096,
4086 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004089 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
4092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = { {4 * 1024, 1024} },
4096 .block_erase = spi_block_erase_20,
4097 }, {
4098 .eraseblocks = { {64 * 1024, 64} },
4099 .block_erase = spi_block_erase_d8,
4100 }, {
4101 .eraseblocks = { {4 * 1024 * 1024, 1} },
4102 .block_erase = spi_block_erase_60,
4103 }, {
4104 .eraseblocks = { {4 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004109 .unlock = spi_disable_blockprotect,
4110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004112 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004119 .manufacture_id = EON_ID_NOPREFIX,
4120 .model_id = EON_EN25Q64,
4121 .total_size = 8192,
4122 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004125 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
4128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = { {4 * 1024, 2048} },
4132 .block_erase = spi_block_erase_20,
4133 }, {
4134 .eraseblocks = { {64 * 1024, 128} },
4135 .block_erase = spi_block_erase_d8,
4136 }, {
4137 .eraseblocks = { {8 * 1024 * 1024, 1} },
4138 .block_erase = spi_block_erase_60,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004145 .unlock = spi_disable_blockprotect,
4146 .write = spi_chip_write_256,
4147 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004148 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25Q128,
4157 .total_size = 16384,
4158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {4 * 1024, 4096} },
4168 .block_erase = spi_block_erase_20,
4169 }, {
4170 .eraseblocks = { {64 * 1024, 256} },
4171 .block_erase = spi_block_erase_d8,
4172 }, {
4173 .eraseblocks = { {16 * 1024 * 1024, 1} },
4174 .block_erase = spi_block_erase_60,
4175 }, {
4176 .eraseblocks = { {16 * 1024 * 1024, 1} },
4177 .block_erase = spi_block_erase_c7,
4178 }
4179 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004180 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004181 .unlock = spi_disable_blockprotect,
4182 .write = spi_chip_write_256,
4183 .read = spi_chip_read,
4184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004190 .manufacture_id = EON_ID_NOPREFIX,
4191 .model_id = EON_EN25QH16,
4192 .total_size = 2048,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* supports SFDP */
4195 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004196 /* QPI enable 0x38, disable 0xFF */
4197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004198 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004199 .probe = probe_spi_rdid,
4200 .probe_timing = TIMING_ZERO,
4201 .block_erasers =
4202 {
4203 {
4204 .eraseblocks = { {4 * 1024, 512} },
4205 .block_erase = spi_block_erase_20,
4206 }, {
4207 .eraseblocks = { {64 * 1024, 32} },
4208 .block_erase = spi_block_erase_d8,
4209 }, {
4210 .eraseblocks = { {1024 * 2048, 1} },
4211 .block_erase = spi_block_erase_60,
4212 }, {
4213 .eraseblocks = { {1024 * 2048, 1} },
4214 .block_erase = spi_block_erase_c7,
4215 }
4216 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4218 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004219 .write = spi_chip_write_256,
4220 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004221 .voltage = {2700, 3600},
4222 },
4223
4224 {
4225 .vendor = "Eon",
4226 .name = "EN25QH32",
4227 .bustype = BUS_SPI,
4228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25QH32,
4230 .total_size = 4096,
4231 .page_size = 256,
4232 /* supports SFDP */
4233 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004234 /* QPI enable 0x38, disable 0xFF */
4235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004236 .tested = TEST_UNTESTED,
4237 .probe = probe_spi_rdid,
4238 .probe_timing = TIMING_ZERO,
4239 .block_erasers =
4240 {
4241 {
4242 .eraseblocks = { {4 * 1024, 1024} },
4243 .block_erase = spi_block_erase_20,
4244 }, {
4245 .eraseblocks = { {64 * 1024, 64} },
4246 .block_erase = spi_block_erase_d8,
4247 }, {
4248 .eraseblocks = { {1024 * 4096, 1} },
4249 .block_erase = spi_block_erase_60,
4250 }, {
4251 .eraseblocks = { {1024 * 4096, 1} },
4252 .block_erase = spi_block_erase_c7,
4253 }
4254 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004255 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4256 .unlock = spi_disable_blockprotect_bp3_srwd,
4257 .write = spi_chip_write_256,
4258 .read = spi_chip_read,
4259 .voltage = {2700, 3600},
4260 },
4261
4262 {
4263 .vendor = "Eon",
4264 .name = "EN25QH64",
4265 .bustype = BUS_SPI,
4266 .manufacture_id = EON_ID_NOPREFIX,
4267 .model_id = EON_EN25QH64,
4268 .total_size = 8192,
4269 .page_size = 256,
4270 /* supports SFDP */
4271 /* OTP: 512B total; enter 0x3A */
4272 /* QPI enable 0x38, disable 0xFF */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004274 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers = {
4278 {
4279 .eraseblocks = { {4 * 1024, 2048} },
4280 .block_erase = spi_block_erase_20,
4281 }, {
4282 .eraseblocks = { {64 * 1024, 128} },
4283 .block_erase = spi_block_erase_d8,
4284 }, {
4285 .eraseblocks = { { 8192 * 1024, 1} },
4286 .block_erase = spi_block_erase_60,
4287 }, {
4288 .eraseblocks = { { 8192 * 1024, 1} },
4289 .block_erase = spi_block_erase_c7,
4290 }
4291 },
4292 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4293 .unlock = spi_disable_blockprotect_bp3_srwd,
4294 .write = spi_chip_write_256,
4295 .read = spi_chip_read,
4296 .voltage = {2700, 3600},
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH128",
4302 .bustype = BUS_SPI,
4303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH128,
4305 .total_size = 16384,
4306 .page_size = 256,
4307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
4309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4311 .tested = TEST_UNTESTED,
4312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers = {
4315 {
4316 .eraseblocks = { {4 * 1024, 4096} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 256} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { { 16384 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { { 16384 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
4329 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4330 .unlock = spi_disable_blockprotect_bp3_srwd,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
4333 .voltage = {2700, 3600},
4334 },
4335
4336 {
4337 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004338 .name = "EN25S10",
4339 .bustype = BUS_SPI,
4340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25S10,
4342 .total_size = 128,
4343 .page_size = 256,
4344 /* OTP: 256B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers = {
4350 {
4351 .eraseblocks = { {4 * 1024, 32} },
4352 .block_erase = spi_block_erase_20,
4353 }, {
4354 .eraseblocks = { {32 * 1024, 4} },
4355 .block_erase = spi_block_erase_52,
4356 }, {
4357 .eraseblocks = { {128 * 1024, 1} },
4358 .block_erase = spi_block_erase_60,
4359 }, {
4360 .eraseblocks = { {128 * 1024, 1} },
4361 .block_erase = spi_block_erase_c7,
4362 }
4363 },
4364 .printlock = spi_prettyprint_status_register_default_bp2,
4365 .unlock = spi_disable_blockprotect,
4366 .write = spi_chip_write_256,
4367 .read = spi_chip_read,
4368 .voltage = {1650, 1950},
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25S20",
4374 .bustype = BUS_SPI,
4375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25S20,
4377 .total_size = 256,
4378 .page_size = 256,
4379 /* OTP: 256B total; enter 0x3A */
4380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4381 .tested = TEST_UNTESTED,
4382 .probe = probe_spi_rdid,
4383 .probe_timing = TIMING_ZERO,
4384 .block_erasers = {
4385 {
4386 .eraseblocks = { {4 * 1024, 64} },
4387 .block_erase = spi_block_erase_20,
4388 }, {
4389 .eraseblocks = { {64 * 1024, 4} },
4390 .block_erase = spi_block_erase_d8,
4391 }, {
4392 .eraseblocks = { {256 * 1024, 1} },
4393 .block_erase = spi_block_erase_60,
4394 }, {
4395 .eraseblocks = { {256 * 1024, 1} },
4396 .block_erase = spi_block_erase_c7,
4397 }
4398 },
4399 .printlock = spi_prettyprint_status_register_default_bp2,
4400 .unlock = spi_disable_blockprotect,
4401 .write = spi_chip_write_256,
4402 .read = spi_chip_read,
4403 .voltage = {1650, 1950},
4404 },
4405
4406 {
4407 .vendor = "Eon",
4408 .name = "EN25S40",
4409 .bustype = BUS_SPI,
4410 .manufacture_id = EON_ID_NOPREFIX,
4411 .model_id = EON_EN25S40,
4412 .total_size = 512,
4413 .page_size = 256,
4414 /* OTP: 256B total; enter 0x3A */
4415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4416 .tested = TEST_UNTESTED,
4417 .probe = probe_spi_rdid,
4418 .probe_timing = TIMING_ZERO,
4419 .block_erasers = {
4420 {
4421 .eraseblocks = { {4 * 1024, 128} },
4422 .block_erase = spi_block_erase_20,
4423 }, {
4424 .eraseblocks = { {64 * 1024, 8} },
4425 .block_erase = spi_block_erase_d8,
4426 }, {
4427 .eraseblocks = { {512 * 1024, 1} },
4428 .block_erase = spi_block_erase_60,
4429 }, {
4430 .eraseblocks = { {512 * 1024, 1} },
4431 .block_erase = spi_block_erase_c7,
4432 }
4433 },
4434 .printlock = spi_prettyprint_status_register_default_bp2,
4435 .unlock = spi_disable_blockprotect,
4436 .write = spi_chip_write_256,
4437 .read = spi_chip_read,
4438 .voltage = {1650, 1950},
4439 },
4440
4441 {
4442 .vendor = "Eon",
4443 .name = "EN25S80",
4444 .bustype = BUS_SPI,
4445 .manufacture_id = EON_ID_NOPREFIX,
4446 .model_id = EON_EN25S80,
4447 .total_size = 1024,
4448 .page_size = 256,
4449 /* OTP: 256B total; enter 0x3A */
4450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4451 .tested = TEST_UNTESTED,
4452 .probe = probe_spi_rdid,
4453 .probe_timing = TIMING_ZERO,
4454 .block_erasers = {
4455 {
4456 .eraseblocks = { {4 * 1024, 256} },
4457 .block_erase = spi_block_erase_20,
4458 }, {
4459 .eraseblocks = { {64 * 1024, 16} },
4460 .block_erase = spi_block_erase_d8,
4461 }, {
4462 .eraseblocks = { {1024 * 1024, 1} },
4463 .block_erase = spi_block_erase_60,
4464 }, {
4465 .eraseblocks = { {1024 * 1024, 1} },
4466 .block_erase = spi_block_erase_c7,
4467 }
4468 },
4469 .printlock = spi_prettyprint_status_register_default_bp2,
4470 .unlock = spi_disable_blockprotect,
4471 .write = spi_chip_write_256,
4472 .read = spi_chip_read,
4473 .voltage = {1650, 1950},
4474 },
4475
4476 {
4477 .vendor = "Eon",
4478 .name = "EN25S16",
4479 .bustype = BUS_SPI,
4480 .manufacture_id = EON_ID_NOPREFIX,
4481 .model_id = EON_EN25S16,
4482 .total_size = 2048,
4483 .page_size = 256,
4484 /* OTP: 512B total; enter 0x3A */
4485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4486 .tested = TEST_UNTESTED,
4487 .probe = probe_spi_rdid,
4488 .probe_timing = TIMING_ZERO,
4489 .block_erasers = {
4490 {
4491 .eraseblocks = { {4 * 1024, 512} },
4492 .block_erase = spi_block_erase_20,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 32} },
4495 .block_erase = spi_block_erase_52,
4496 }, {
4497 .eraseblocks = { {32 * 1024, 64} },
4498 .block_erase = spi_block_erase_d8,
4499 }, {
4500 .eraseblocks = { {2048 * 1024, 1} },
4501 .block_erase = spi_block_erase_60,
4502 }, {
4503 .eraseblocks = { {2048 * 1024, 1} },
4504 .block_erase = spi_block_erase_c7,
4505 }
4506 },
4507 .printlock = spi_prettyprint_status_register_en25s_wp,
4508 .unlock = spi_disable_blockprotect_bp3_srwd,
4509 .write = spi_chip_write_256,
4510 .read = spi_chip_read,
4511 .voltage = {1650, 1950},
4512 },
4513
4514 {
4515 .vendor = "Eon",
4516 .name = "EN25S32",
4517 .bustype = BUS_SPI,
4518 .manufacture_id = EON_ID_NOPREFIX,
4519 .model_id = EON_EN25S32,
4520 .total_size = 4096,
4521 .page_size = 256,
4522 /* OTP: 512B total; enter 0x3A */
4523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4524 .tested = TEST_UNTESTED,
4525 .probe = probe_spi_rdid,
4526 .probe_timing = TIMING_ZERO,
4527 .block_erasers = {
4528 {
4529 .eraseblocks = { {4 * 1024, 1024} },
4530 .block_erase = spi_block_erase_20,
4531 }, {
4532 .eraseblocks = { {32 * 1024, 128} },
4533 .block_erase = spi_block_erase_52,
4534 }, {
4535 .eraseblocks = { {64 * 1024, 64} },
4536 .block_erase = spi_block_erase_d8,
4537 }, {
4538 .eraseblocks = { {4096 * 1024, 1} },
4539 .block_erase = spi_block_erase_60,
4540 }, {
4541 .eraseblocks = { {4096 * 1024, 1} },
4542 .block_erase = spi_block_erase_c7,
4543 }
4544 },
4545 .printlock = spi_prettyprint_status_register_en25s_wp,
4546 .unlock = spi_disable_blockprotect_bp3_srwd,
4547 .write = spi_chip_write_256,
4548 .read = spi_chip_read,
4549 .voltage = {1650, 1950},
4550 },
4551
4552 {
4553 .vendor = "Eon",
4554 .name = "EN25S64",
4555 .bustype = BUS_SPI,
4556 .manufacture_id = EON_ID_NOPREFIX,
4557 .model_id = EON_EN25S64,
4558 .total_size = 8192,
4559 .page_size = 256,
4560 /* OTP: 512B total; enter 0x3A */
4561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_spi_rdid,
4564 .probe_timing = TIMING_ZERO,
4565 .block_erasers = {
4566 {
4567 .eraseblocks = { {4 * 1024, 2048} },
4568 .block_erase = spi_block_erase_20,
4569 }, {
4570 .eraseblocks = { {64 * 1024, 128} },
4571 .block_erase = spi_block_erase_d8,
4572 }, {
4573 .eraseblocks = { {8192 * 1024, 1} },
4574 .block_erase = spi_block_erase_60,
4575 }, {
4576 .eraseblocks = { {8192 * 1024, 1} },
4577 .block_erase = spi_block_erase_c7,
4578 }
4579 },
4580 .printlock = spi_prettyprint_status_register_en25s_wp,
4581 .unlock = spi_disable_blockprotect_bp3_srwd,
4582 .write = spi_chip_write_256,
4583 .read = spi_chip_read,
4584 .voltage = {1650, 1950},
4585 },
4586
4587 {
4588 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004589 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004590 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004591 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004592 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004593 .total_size = 128,
4594 .page_size = 128,
4595 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004596 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004597 .probe = probe_jedec,
4598 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4599 .block_erasers =
4600 {
4601 {
4602 .eraseblocks = { {16 * 1024, 8} },
4603 .block_erase = erase_sector_jedec,
4604 },
4605 {
4606 .eraseblocks = { {128 * 1024, 1} },
4607 .block_erase = erase_chip_block_jedec,
4608 },
4609 },
4610 .write = write_jedec_1,
4611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004612 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004613 },
4614
4615 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004616 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004617 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004620 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004621 .total_size = 256,
4622 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004623 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004624 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004625 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004627 .block_erasers =
4628 {
4629 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004630 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004631 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004632 {8 * 1024, 2},
4633 {32 * 1024, 1},
4634 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004635 },
4636 .block_erase = erase_sector_jedec,
4637 }, {
4638 .eraseblocks = { {256 * 1024, 1} },
4639 .block_erase = erase_chip_block_jedec,
4640 },
4641 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004644 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004645 },
4646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004648 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004651 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004652 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004653 .total_size = 256,
4654 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004655 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004656 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004659 .block_erasers =
4660 {
4661 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004662 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004663 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004664 {32 * 1024, 1},
4665 {8 * 1024, 2},
4666 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004667 },
4668 .block_erase = erase_sector_jedec,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = erase_chip_block_jedec,
4672 },
4673 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004674 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004676 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004677 },
4678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004679 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004680 .vendor = "Eon",
4681 .name = "EN29LV640B",
4682 .bustype = BUS_PARALLEL,
4683 .manufacture_id = EON_ID,
4684 .model_id = EON_EN29LV640B,
4685 .total_size = 8192,
4686 .page_size = 8192,
4687 .feature_bits = 0,
4688 .tested = TEST_OK_PREW,
4689 .probe = probe_en29lv640b,
4690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4691 .block_erasers =
4692 {
4693 {
4694 .eraseblocks = {
4695 {8 * 1024, 8},
4696 {64 * 1024, 127},
4697 },
4698 .block_erase = block_erase_en29lv640b,
4699 }, {
4700 .eraseblocks = { {8 * 1024 * 1024, 1} },
4701 .block_erase = block_erase_chip_en29lv640b,
4702 },
4703 },
4704 .write = write_en29lv640b,
4705 .read = read_memmapped,
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004710 .vendor = "Fujitsu",
4711 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004713 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004714 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004715 .total_size = 512,
4716 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004717 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004718 .tested = TEST_UNTESTED,
4719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004720 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004721 .block_erasers =
4722 {
4723 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004724 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004725 {16 * 1024, 1},
4726 {8 * 1024, 2},
4727 {32 * 1024, 1},
4728 {64 * 1024, 7},
4729 },
Sean Nelson35727f72010-01-28 23:55:12 +00004730 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004731 }, {
4732 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004733 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004734 },
4735 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004736 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004738 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004739 },
4740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004741 {
4742 .vendor = "Fujitsu",
4743 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004744 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004746 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004747 .total_size = 512,
4748 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004750 .tested = TEST_UNTESTED,
4751 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004753 .block_erasers =
4754 {
4755 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004756 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004757 {64 * 1024, 7},
4758 {32 * 1024, 1},
4759 {8 * 1024, 2},
4760 {16 * 1024, 1},
4761 },
Sean Nelson35727f72010-01-28 23:55:12 +00004762 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004763 }, {
4764 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004765 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004766 },
4767 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004768 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004770 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004771 },
4772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004773 {
Sean Nelson35727f72010-01-28 23:55:12 +00004774 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004775 .vendor = "Fujitsu",
4776 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004777 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004778 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004779 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004780 .total_size = 512,
4781 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004782 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004783 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004784 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004785 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004786 .block_erasers =
4787 {
4788 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004789 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004790 {16 * 1024, 1},
4791 {8 * 1024, 2},
4792 {32 * 1024, 1},
4793 {64 * 1024, 7},
4794 },
4795 .block_erase = block_erase_m29f400bt,
4796 }, {
4797 .eraseblocks = { {512 * 1024, 1} },
4798 .block_erase = block_erase_chip_m29f400bt,
4799 },
4800 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004801 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004802 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004803 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004804 },
4805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 {
4807 .vendor = "Fujitsu",
4808 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004811 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004812 .total_size = 512,
4813 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004814 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004815 .tested = TEST_UNTESTED,
4816 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004818 .block_erasers =
4819 {
4820 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004821 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004822 {64 * 1024, 7},
4823 {32 * 1024, 1},
4824 {8 * 1024, 2},
4825 {16 * 1024, 1},
4826 },
4827 .block_erase = block_erase_m29f400bt,
4828 }, {
4829 .eraseblocks = { {512 * 1024, 1} },
4830 .block_erase = block_erase_chip_m29f400bt,
4831 },
4832 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004833 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004834 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004835 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004836 },
4837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004839 .vendor = "Fujitsu",
4840 .name = "MBM29LV160BE",
4841 .bustype = BUS_PARALLEL,
4842 .manufacture_id = FUJITSU_ID,
4843 .model_id = FUJITSU_MBM29LV160BE,
4844 .total_size = 2 * 1024,
4845 .page_size = 0,
4846 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4847 .tested = TEST_UNTESTED,
4848 .probe = probe_m29f400bt,
4849 .probe_timing = TIMING_IGNORED,
4850 .block_erasers =
4851 {
4852 {
4853 .eraseblocks = {
4854 {16 * 1024, 1},
4855 {8 * 1024, 2},
4856 {32 * 1024, 1},
4857 {64 * 1024, 31},
4858 },
4859 .block_erase = block_erase_m29f400bt,
4860 }, {
4861 .eraseblocks = { {2048 * 1024, 1} },
4862 .block_erase = block_erase_chip_m29f400bt,
4863 },
4864 },
4865 .write = write_m29f400bt, /* Supports a fast mode too */
4866 .read = read_memmapped,
4867 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4868 },
4869
4870 {
4871 .vendor = "Fujitsu",
4872 .name = "MBM29LV160TE",
4873 .bustype = BUS_PARALLEL,
4874 .manufacture_id = FUJITSU_ID,
4875 .model_id = FUJITSU_MBM29LV160TE,
4876 .total_size = 2 * 1024,
4877 .page_size = 0,
4878 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4879 .tested = TEST_UNTESTED,
4880 .probe = probe_m29f400bt,
4881 .probe_timing = TIMING_IGNORED,
4882 .block_erasers =
4883 {
4884 {
4885 .eraseblocks = {
4886 {64 * 1024, 31},
4887 {32 * 1024, 1},
4888 {8 * 1024, 2},
4889 {16 * 1024, 1},
4890 },
4891 .block_erase = block_erase_m29f400bt,
4892 }, {
4893 .eraseblocks = { {2048 * 1024, 1} },
4894 .block_erase = block_erase_chip_m29f400bt,
4895 },
4896 },
4897 .write = write_m29f400bt, /* Supports a fast mode too */
4898 .read = read_memmapped,
4899 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4900 },
4901
4902 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004903 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004904 .name = "GD25LQ32",
4905 .bustype = BUS_SPI,
4906 .manufacture_id = GIGADEVICE_ID,
4907 .model_id = GIGADEVICE_GD25LQ32,
4908 .total_size = 4096,
4909 .page_size = 256,
4910 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4912 .tested = TEST_OK_PREW,
4913 .probe = probe_spi_rdid,
4914 .probe_timing = TIMING_ZERO,
4915 .block_erasers =
4916 {
4917 {
4918 .eraseblocks = { {4 * 1024, 1024} },
4919 .block_erase = spi_block_erase_20,
4920 }, {
4921 .eraseblocks = { {32 * 1024, 128} },
4922 .block_erase = spi_block_erase_52,
4923 }, {
4924 .eraseblocks = { {64 * 1024, 64} },
4925 .block_erase = spi_block_erase_d8,
4926 }, {
4927 .eraseblocks = { {4 * 1024 * 1024, 1} },
4928 .block_erase = spi_block_erase_60,
4929 }, {
4930 .eraseblocks = { {4 * 1024 * 1024, 1} },
4931 .block_erase = spi_block_erase_c7,
4932 }
4933 },
4934 .printlock = spi_prettyprint_status_register_default_bp4,
4935 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4936 .write = spi_chip_write_256,
4937 .read = spi_chip_read,
4938 .voltage = {1700, 1950},
4939 },
4940
4941 {
4942 .vendor = "GigaDevice",
4943 .name = "GD25Q512",
4944 .bustype = BUS_SPI,
4945 .manufacture_id = GIGADEVICE_ID,
4946 .model_id = GIGADEVICE_GD25Q512,
4947 .total_size = 64,
4948 .page_size = 256,
4949 .feature_bits = FEATURE_WRSR_WREN,
4950 .tested = TEST_UNTESTED,
4951 .probe = probe_spi_rdid,
4952 .probe_timing = TIMING_ZERO,
4953 .block_erasers = {
4954 {
4955 .eraseblocks = { {4 * 1024, 16} },
4956 .block_erase = spi_block_erase_20,
4957 }, {
4958 .eraseblocks = { {32 * 1024, 2} },
4959 .block_erase = spi_block_erase_52,
4960 }, {
4961 .eraseblocks = { {64 * 1024, 1} },
4962 .block_erase = spi_block_erase_60,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 1} },
4965 .block_erase = spi_block_erase_c7,
4966 }
4967 },
4968 .printlock = spi_prettyprint_status_register_default_bp4,
4969 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4970 .write = spi_chip_write_256,
4971 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4972 .voltage = {2700, 3600},
4973 },
4974
4975 {
4976 .vendor = "GigaDevice",
4977 .name = "GD25Q10",
4978 .bustype = BUS_SPI,
4979 .manufacture_id = GIGADEVICE_ID,
4980 .model_id = GIGADEVICE_GD25Q10,
4981 .total_size = 128,
4982 .page_size = 256,
4983 .feature_bits = FEATURE_WRSR_WREN,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
4986 .probe_timing = TIMING_ZERO,
4987 .block_erasers = {
4988 {
4989 .eraseblocks = { {4 * 1024, 32} },
4990 .block_erase = spi_block_erase_20,
4991 }, {
4992 .eraseblocks = { {32 * 1024, 4} },
4993 .block_erase = spi_block_erase_52,
4994 }, {
4995 .eraseblocks = { {64 * 1024, 2} },
4996 .block_erase = spi_block_erase_d8,
4997 }, {
4998 .eraseblocks = { {128 * 1024, 1} },
4999 .block_erase = spi_block_erase_60,
5000 }, {
5001 .eraseblocks = { {128 * 1024, 1} },
5002 .block_erase = spi_block_erase_c7,
5003 }
5004 },
5005 .printlock = spi_prettyprint_status_register_default_bp4,
5006 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5007 .write = spi_chip_write_256,
5008 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5009 .voltage = {2700, 3600},
5010 },
5011
5012 {
5013 .vendor = "GigaDevice",
5014 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005015 .bustype = BUS_SPI,
5016 .manufacture_id = GIGADEVICE_ID,
5017 .model_id = GIGADEVICE_GD25Q20,
5018 .total_size = 256,
5019 .page_size = 256,
5020 .feature_bits = FEATURE_WRSR_WREN,
5021 .tested = TEST_UNTESTED,
5022 .probe = probe_spi_rdid,
5023 .probe_timing = TIMING_ZERO,
5024 .block_erasers =
5025 {
5026 {
5027 .eraseblocks = { {4 * 1024, 64} },
5028 .block_erase = spi_block_erase_20,
5029 }, {
5030 .eraseblocks = { {32 * 1024, 8} },
5031 .block_erase = spi_block_erase_52,
5032 }, {
5033 .eraseblocks = { {64 * 1024, 4} },
5034 .block_erase = spi_block_erase_d8,
5035 }, {
5036 .eraseblocks = { {256 * 1024, 1} },
5037 .block_erase = spi_block_erase_60,
5038 }, {
5039 .eraseblocks = { {256 * 1024, 1} },
5040 .block_erase = spi_block_erase_c7,
5041 }
5042 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005043 .printlock = spi_prettyprint_status_register_default_bp4,
5044 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005045 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005046 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005047 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005048 },
5049
5050 {
5051 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005052 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005053 .bustype = BUS_SPI,
5054 .manufacture_id = GIGADEVICE_ID,
5055 .model_id = GIGADEVICE_GD25Q40,
5056 .total_size = 512,
5057 .page_size = 256,
5058 .feature_bits = FEATURE_WRSR_WREN,
5059 .tested = TEST_UNTESTED,
5060 .probe = probe_spi_rdid,
5061 .probe_timing = TIMING_ZERO,
5062 .block_erasers =
5063 {
5064 {
5065 .eraseblocks = { {4 * 1024, 128} },
5066 .block_erase = spi_block_erase_20,
5067 }, {
5068 .eraseblocks = { {32 * 1024, 16} },
5069 .block_erase = spi_block_erase_52,
5070 }, {
5071 .eraseblocks = { {64 * 1024, 8} },
5072 .block_erase = spi_block_erase_d8,
5073 }, {
5074 .eraseblocks = { {512 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {512 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005081 .printlock = spi_prettyprint_status_register_default_bp4,
5082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005083 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005085 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005086 },
5087
5088 {
5089 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005090 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q80,
5094 .total_size = 1024,
5095 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005096 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5098 .tested = TEST_OK_PREW,
5099 .probe = probe_spi_rdid,
5100 .probe_timing = TIMING_ZERO,
5101 .block_erasers =
5102 {
5103 {
5104 .eraseblocks = { {4 * 1024, 256} },
5105 .block_erase = spi_block_erase_20,
5106 }, {
5107 .eraseblocks = { {32 * 1024, 32} },
5108 .block_erase = spi_block_erase_52,
5109 }, {
5110 .eraseblocks = { {64 * 1024, 16} },
5111 .block_erase = spi_block_erase_d8,
5112 }, {
5113 .eraseblocks = { {1024 * 1024, 1} },
5114 .block_erase = spi_block_erase_60,
5115 }, {
5116 .eraseblocks = { {1024 * 1024, 1} },
5117 .block_erase = spi_block_erase_c7,
5118 }
5119 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005120 .printlock = spi_prettyprint_status_register_default_bp4,
5121 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005122 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005123 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005124 .voltage = {2700, 3600},
5125 },
5126
5127 {
5128 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005129 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005130 .bustype = BUS_SPI,
5131 .manufacture_id = GIGADEVICE_ID,
5132 .model_id = GIGADEVICE_GD25Q16,
5133 .total_size = 2048,
5134 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005135 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005136 .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 .eraseblocks = { {4 * 1024, 512} },
5144 .block_erase = spi_block_erase_20,
5145 }, {
5146 .eraseblocks = { {32 * 1024, 64} },
5147 .block_erase = spi_block_erase_52,
5148 }, {
5149 .eraseblocks = { {64 * 1024, 32} },
5150 .block_erase = spi_block_erase_d8,
5151 }, {
5152 .eraseblocks = { {2 * 1024 * 1024, 1} },
5153 .block_erase = spi_block_erase_60,
5154 }, {
5155 .eraseblocks = { {2 * 1024 * 1024, 1} },
5156 .block_erase = spi_block_erase_c7,
5157 }
5158 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .printlock = spi_prettyprint_status_register_default_bp4,
5160 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005162 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005163 .voltage = {2700, 3600},
5164 },
5165
5166 {
5167 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005168 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005169 .bustype = BUS_SPI,
5170 .manufacture_id = GIGADEVICE_ID,
5171 .model_id = GIGADEVICE_GD25Q32,
5172 .total_size = 4096,
5173 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005174 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005176 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005177 .probe = probe_spi_rdid,
5178 .probe_timing = TIMING_ZERO,
5179 .block_erasers =
5180 {
5181 {
5182 .eraseblocks = { {4 * 1024, 1024} },
5183 .block_erase = spi_block_erase_20,
5184 }, {
5185 .eraseblocks = { {32 * 1024, 128} },
5186 .block_erase = spi_block_erase_52,
5187 }, {
5188 .eraseblocks = { {64 * 1024, 64} },
5189 .block_erase = spi_block_erase_d8,
5190 }, {
5191 .eraseblocks = { {4 * 1024 * 1024, 1} },
5192 .block_erase = spi_block_erase_60,
5193 }, {
5194 .eraseblocks = { {4 * 1024 * 1024, 1} },
5195 .block_erase = spi_block_erase_c7,
5196 }
5197 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005198 .printlock = spi_prettyprint_status_register_default_bp4,
5199 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005200 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005201 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005202 .voltage = {2700, 3600},
5203 },
5204
5205 {
5206 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005207 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005208 .bustype = BUS_SPI,
5209 .manufacture_id = GIGADEVICE_ID,
5210 .model_id = GIGADEVICE_GD25Q64,
5211 .total_size = 8192,
5212 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005213 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005215 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005216 .probe = probe_spi_rdid,
5217 .probe_timing = TIMING_ZERO,
5218 .block_erasers =
5219 {
5220 {
5221 .eraseblocks = { {4 * 1024, 2048} },
5222 .block_erase = spi_block_erase_20,
5223 }, {
5224 .eraseblocks = { {32 * 1024, 256} },
5225 .block_erase = spi_block_erase_52,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 128} },
5228 .block_erase = spi_block_erase_d8,
5229 }, {
5230 .eraseblocks = { {8 * 1024 * 1024, 1} },
5231 .block_erase = spi_block_erase_60,
5232 }, {
5233 .eraseblocks = { {8 * 1024 * 1024, 1} },
5234 .block_erase = spi_block_erase_c7,
5235 }
5236 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005237 .printlock = spi_prettyprint_status_register_default_bp4,
5238 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005239 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005240 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005241 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005242 },
5243
5244 {
5245 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005246 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005247 .bustype = BUS_SPI,
5248 .manufacture_id = GIGADEVICE_ID,
5249 .model_id = GIGADEVICE_GD25Q128,
5250 .total_size = 16384,
5251 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005252 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005253 .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 .eraseblocks = { {4 * 1024, 4096} },
5261 .block_erase = spi_block_erase_20,
5262 }, {
5263 .eraseblocks = { {32 * 1024, 512} },
5264 .block_erase = spi_block_erase_52,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 256} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {16 * 1024 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {16 * 1024 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005276 .printlock = spi_prettyprint_status_register_default_bp4,
5277 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5280 .voltage = {2700, 3600},
5281 },
5282
5283 {
5284 .vendor = "GigaDevice",
5285 .name = "GD25T80",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = GIGADEVICE_ID,
5288 .model_id = GIGADEVICE_GD25T80,
5289 .total_size = 1024,
5290 .page_size = 256,
5291 /* OTP: 256B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
5296 .block_erasers = {
5297 {
5298 .eraseblocks = { {4 * 1024, 256} },
5299 .block_erase = spi_block_erase_20,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 16} },
5302 .block_erase = spi_block_erase_52,
5303 }, {
5304 .eraseblocks = { {64 * 1024, 16} },
5305 .block_erase = spi_block_erase_d8,
5306 }, {
5307 .eraseblocks = { {1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_60,
5309 }, {
5310 .eraseblocks = { {1024 * 1024, 1} },
5311 .block_erase = spi_block_erase_c7,
5312 }
5313 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005314 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .unlock = spi_disable_blockprotect,
5316 .write = spi_chip_write_256,
5317 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005318 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005319 },
5320
5321 {
David Borgc96a8bd2010-06-21 16:12:22 +00005322 .vendor = "Hyundai",
5323 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005324 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005325 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005326 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005327 .total_size = 256,
5328 .page_size = 256 * 1024,
5329 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005330 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005331 .probe = probe_jedec,
5332 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5333 .block_erasers =
5334 {
5335 {
5336 .eraseblocks = {
5337 {64 * 1024, 3},
5338 {32 * 1024, 1},
5339 {8 * 1024, 2},
5340 {16 * 1024, 1},
5341 },
5342 .block_erase = erase_sector_jedec,
5343 }, {
5344 .eraseblocks = { {256 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 },
5347 },
5348 .write = write_jedec_1,
5349 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005350 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005351 },
5352
5353 {
5354 .vendor = "Hyundai",
5355 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005356 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005357 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005358 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005359 .total_size = 256,
5360 .page_size = 256 * 1024,
5361 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5362 .tested = TEST_UNTESTED,
5363 .probe = probe_jedec,
5364 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5365 .block_erasers =
5366 {
5367 {
5368 .eraseblocks = {
5369 {16 * 1024, 1},
5370 {8 * 1024, 2},
5371 {32 * 1024, 1},
5372 {64 * 1024, 3},
5373 },
5374 .block_erase = erase_sector_jedec,
5375 }, {
5376 .eraseblocks = { {256 * 1024, 1} },
5377 .block_erase = erase_chip_block_jedec,
5378 },
5379 },
5380 .write = write_jedec_1,
5381 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005382 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005383 },
5384
5385 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005386 .vendor = "Hyundai",
5387 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005388 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005389 .manufacture_id = HYUNDAI_ID,
5390 .model_id = HYUNDAI_HY29F040A,
5391 .total_size = 512,
5392 .page_size = 64 * 1024,
5393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5394 .tested = TEST_UNTESTED,
5395 .probe = probe_jedec,
5396 .probe_timing = TIMING_ZERO,
5397 .block_erasers =
5398 {
5399 {
5400 .eraseblocks = { {64 * 1024, 8} },
5401 .block_erase = erase_sector_jedec,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = erase_chip_block_jedec,
5405 },
5406 },
5407 .write = write_jedec_1,
5408 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005409 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005410 },
5411
5412 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005413 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005414 .name = "25F160S33B8",
5415 .bustype = BUS_SPI,
5416 .manufacture_id = INTEL_ID,
5417 .model_id = INTEL_25F160S33B8,
5418 .total_size = 2048,
5419 .page_size = 256,
5420 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5422 .tested = TEST_UNTESTED,
5423 .probe = probe_spi_rdid,
5424 .probe_timing = TIMING_ZERO,
5425 .block_erasers =
5426 {
5427 {
5428 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5429 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5430 * have no effect on the memory contents, but sets a flag in the SR.
5431 .eraseblocks = {
5432 {8 * 1024, 8},
5433 {64 * 1024, 31} // inaccessible
5434 },
5435 .block_erase = spi_block_erase_40,
5436 }, { */
5437 .eraseblocks = { {64 * 1024, 32} },
5438 .block_erase = spi_block_erase_d8,
5439 }, {
5440 .eraseblocks = { {2 * 1024 * 1024, 1} },
5441 .block_erase = spi_block_erase_c7,
5442 }
5443 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005444 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5445 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005446 .write = spi_chip_write_256,
5447 .read = spi_chip_read, /* also fast read 0x0B */
5448 .voltage = {2700, 3600},
5449 },
5450
5451 {
5452 .vendor = "Intel",
5453 .name = "25F160S33T8",
5454 .bustype = BUS_SPI,
5455 .manufacture_id = INTEL_ID,
5456 .model_id = INTEL_25F160S33T8,
5457 .total_size = 2048,
5458 .page_size = 256,
5459 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5461 .tested = TEST_UNTESTED,
5462 .probe = probe_spi_rdid,
5463 .probe_timing = TIMING_ZERO,
5464 .block_erasers =
5465 {
5466 {
5467 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5468 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5469 * have no effect on the memory contents, but sets a flag in the SR.
5470 .eraseblocks = {
5471 {64 * 1024, 31}, // inaccessible
5472 {8 * 1024, 8}
5473 },
5474 .block_erase = spi_block_erase_40,
5475 }, { */
5476 .eraseblocks = { {64 * 1024, 32} },
5477 .block_erase = spi_block_erase_d8,
5478 }, {
5479 .eraseblocks = { {2 * 1024 * 1024, 1} },
5480 .block_erase = spi_block_erase_c7,
5481 }
5482 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005483 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5484 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005485 .write = spi_chip_write_256,
5486 .read = spi_chip_read, /* also fast read 0x0B */
5487 .voltage = {2700, 3600},
5488 },
5489
5490 {
5491 .vendor = "Intel",
5492 .name = "25F320S33B8",
5493 .bustype = BUS_SPI,
5494 .manufacture_id = INTEL_ID,
5495 .model_id = INTEL_25F320S33B8,
5496 .total_size = 4096,
5497 .page_size = 256,
5498 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5500 .tested = TEST_UNTESTED,
5501 .probe = probe_spi_rdid,
5502 .probe_timing = TIMING_ZERO,
5503 .block_erasers =
5504 {
5505 {
5506 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5507 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5508 * have no effect on the memory contents, but sets a flag in the SR.
5509 .eraseblocks = {
5510 {8 * 1024, 8},
5511 {64 * 1024, 63} // inaccessible
5512 },
5513 .block_erase = spi_block_erase_40,
5514 }, { */
5515 .eraseblocks = { {64 * 1024, 64} },
5516 .block_erase = spi_block_erase_d8,
5517 }, {
5518 .eraseblocks = { {4 * 1024 * 1024, 1} },
5519 .block_erase = spi_block_erase_c7,
5520 }
5521 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005522 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5523 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005524 .write = spi_chip_write_256,
5525 .read = spi_chip_read, /* also fast read 0x0B */
5526 .voltage = {2700, 3600},
5527 },
5528
5529 {
5530 .vendor = "Intel",
5531 .name = "25F320S33T8",
5532 .bustype = BUS_SPI,
5533 .manufacture_id = INTEL_ID,
5534 .model_id = INTEL_25F320S33T8,
5535 .total_size = 4096,
5536 .page_size = 256,
5537 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5539 .tested = TEST_UNTESTED,
5540 .probe = probe_spi_rdid,
5541 .probe_timing = TIMING_ZERO,
5542 .block_erasers =
5543 {
5544 {
5545 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5546 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5547 * have no effect on the memory contents, but sets a flag in the SR.
5548 .eraseblocks = {
5549 {64 * 1024, 63}, // inaccessible
5550 {8 * 1024, 8}
5551 },
5552 .block_erase = spi_block_erase_40,
5553 }, { */
5554 .eraseblocks = { {64 * 1024, 64} },
5555 .block_erase = spi_block_erase_d8,
5556 }, {
5557 .eraseblocks = { {4 * 1024 * 1024, 1} },
5558 .block_erase = spi_block_erase_c7,
5559 }
5560 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005561 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5562 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005563 .write = spi_chip_write_256,
5564 .read = spi_chip_read, /* also fast read 0x0B */
5565 .voltage = {2700, 3600},
5566 },
5567
5568 {
5569 .vendor = "Intel",
5570 .name = "25F640S33B8",
5571 .bustype = BUS_SPI,
5572 .manufacture_id = INTEL_ID,
5573 .model_id = INTEL_25F640S33B8,
5574 .total_size = 8192,
5575 .page_size = 256,
5576 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5578 .tested = TEST_UNTESTED,
5579 .probe = probe_spi_rdid,
5580 .probe_timing = TIMING_ZERO,
5581 .block_erasers =
5582 {
5583 {
5584 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5585 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5586 * have no effect on the memory contents, but sets a flag in the SR.
5587 .eraseblocks = {
5588 {8 * 1024, 8},
5589 {64 * 1024, 127} // inaccessible
5590 },
5591 .block_erase = spi_block_erase_40,
5592 }, { */
5593 .eraseblocks = { {64 * 1024, 128} },
5594 .block_erase = spi_block_erase_d8,
5595 }, {
5596 .eraseblocks = { {8 * 1024 * 1024, 1} },
5597 .block_erase = spi_block_erase_c7,
5598 }
5599 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005600 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5601 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005602 .write = spi_chip_write_256,
5603 .read = spi_chip_read, /* also fast read 0x0B */
5604 .voltage = {2700, 3600},
5605 },
5606
5607 {
5608 .vendor = "Intel",
5609 .name = "25F640S33T8",
5610 .bustype = BUS_SPI,
5611 .manufacture_id = INTEL_ID,
5612 .model_id = INTEL_25F640S33T8,
5613 .total_size = 8192,
5614 .page_size = 256,
5615 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5616 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5617 .tested = TEST_UNTESTED,
5618 .probe = probe_spi_rdid,
5619 .probe_timing = TIMING_ZERO,
5620 .block_erasers =
5621 {
5622 {
5623 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5624 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5625 * have no effect on the memory contents, but sets a flag in the SR.
5626 .eraseblocks = {
5627 {64 * 1024, 127}, // inaccessible
5628 {8 * 1024, 8}
5629 },
5630 .block_erase = spi_block_erase_40,
5631 }, { */
5632 .eraseblocks = { {64 * 1024, 128} },
5633 .block_erase = spi_block_erase_d8,
5634 }, {
5635 .eraseblocks = { {8 * 1024 * 1024, 1} },
5636 .block_erase = spi_block_erase_c7,
5637 }
5638 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005639 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5640 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005641 .write = spi_chip_write_256,
5642 .read = spi_chip_read, /* also fast read 0x0B */
5643 .voltage = {2700, 3600},
5644 },
5645
5646 {
5647 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005648 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005649 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005650 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005651 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005652 .total_size = 128,
5653 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005654 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005655 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005657 .block_erasers =
5658 {
5659 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005660 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005661 {8 * 1024, 1},
5662 {4 * 1024, 2},
5663 {112 * 1024, 1},
5664 },
Sean Nelson28accc22010-03-19 18:47:06 +00005665 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005666 },
5667 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005668 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005670 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005671 },
5672
5673 {
5674 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005675 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005676 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005677 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005678 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005679 .total_size = 128,
5680 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005681 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005682 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005683 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005684 .block_erasers =
5685 {
5686 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005687 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005688 {112 * 1024, 1},
5689 {4 * 1024, 2},
5690 {8 * 1024, 1},
5691 },
Sean Nelson28accc22010-03-19 18:47:06 +00005692 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005693 },
5694 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005695 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005697 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005698 },
5699
5700 {
5701 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005702 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005703 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005704 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005705 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005706 .total_size = 256,
5707 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005708 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005709 .probe = probe_82802ab,
5710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5711 .block_erasers =
5712 {
5713 {
5714 .eraseblocks = {
5715 {128 * 1024, 1},
5716 {96 * 1024, 1},
5717 {8 * 1024, 2},
5718 {16 * 1024, 1},
5719 },
5720 .block_erase = erase_block_82802ab,
5721 },
5722 },
5723 .write = write_82802ab,
5724 .read = read_memmapped,
5725 },
5726
5727 {
5728 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005729 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005730 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005731 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005732 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005733 .total_size = 512,
5734 .page_size = 256,
5735 .tested = TEST_UNTESTED,
5736 .probe = probe_82802ab,
5737 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005738 .block_erasers =
5739 {
5740 {
5741 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005742 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005743 },
5744 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005745 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005746 .write = write_82802ab,
5747 .read = read_memmapped,
5748 },
5749
5750 {
5751 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005752 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005753 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005754 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005755 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005756 .total_size = 512,
5757 .page_size = 128 * 1024, /* maximal block size */
5758 .tested = TEST_UNTESTED,
5759 .probe = probe_82802ab,
5760 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5761 .block_erasers =
5762 {
5763 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005764 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005765 {16 * 1024, 1},
5766 {8 * 1024, 2},
5767 {96 * 1024, 1},
5768 {128 * 1024, 3},
5769 },
5770 .block_erase = erase_block_82802ab,
5771 },
5772 },
5773 .write = write_82802ab,
5774 .read = read_memmapped,
5775 },
5776
5777 {
5778 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005779 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005780 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005781 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005782 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005783 .total_size = 512,
5784 .page_size = 128 * 1024, /* maximal block size */
5785 .tested = TEST_UNTESTED,
5786 .probe = probe_82802ab,
5787 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5788 .block_erasers =
5789 {
5790 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005791 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005792 {128 * 1024, 3},
5793 {96 * 1024, 1},
5794 {8 * 1024, 2},
5795 {16 * 1024, 1},
5796 },
5797 .block_erase = erase_block_82802ab,
5798 },
5799 },
5800 .write = write_82802ab,
5801 .read = read_memmapped,
5802 },
5803
5804 {
5805 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005806 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005807 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005808 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005809 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005810 .total_size = 512,
5811 .page_size = 128 * 1024, /* maximal block size */
5812 .feature_bits = FEATURE_ADDR_SHIFTED,
5813 .tested = TEST_UNTESTED,
5814 .probe = probe_82802ab,
5815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5816 .block_erasers =
5817 {
5818 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005819 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005820 {16 * 1024, 1},
5821 {8 * 1024, 2},
5822 {96 * 1024, 1},
5823 {128 * 1024, 3},
5824 },
5825 .block_erase = erase_block_82802ab,
5826 },
5827 },
5828 .write = write_82802ab,
5829 .read = read_memmapped,
5830 },
5831
5832 {
5833 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005834 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005835 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005836 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005837 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005838 .total_size = 512,
5839 .page_size = 128 * 1024, /* maximal block size */
5840 .feature_bits = FEATURE_ADDR_SHIFTED,
5841 .tested = TEST_UNTESTED,
5842 .probe = probe_82802ab,
5843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5844 .block_erasers =
5845 {
5846 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005847 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005848 {128 * 1024, 3},
5849 {96 * 1024, 1},
5850 {8 * 1024, 2},
5851 {16 * 1024, 1},
5852 },
5853 .block_erase = erase_block_82802ab,
5854 },
5855 },
5856 .write = write_82802ab,
5857 .read = read_memmapped,
5858 },
5859
5860 {
5861 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005863 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005864 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 .total_size = 512,
5867 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005868 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005869 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005870 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005871 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005872 .block_erasers =
5873 {
5874 {
5875 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005876 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005877 },
5878 },
Sean Nelson28accc22010-03-19 18:47:06 +00005879 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005880 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005882 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005883 },
5884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005885 {
5886 .vendor = "Intel",
5887 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005888 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005889 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005890 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005891 .total_size = 1024,
5892 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005893 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005894 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005895 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005896 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005897 .block_erasers =
5898 {
5899 {
5900 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005901 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005902 },
5903 },
Sean Nelson28accc22010-03-19 18:47:06 +00005904 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005905 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005908 },
5909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005910 {
5911 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00005912 .name = "MX23L3254",
5913 .bustype = BUS_SPI,
5914 .manufacture_id = MACRONIX_ID,
5915 .model_id = MACRONIX_MX23L3254,
5916 .total_size = 4096,
5917 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00005918 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00005919 .probe = probe_spi_rdid,
5920 .probe_timing = TIMING_ZERO,
5921 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
5922 .read = spi_chip_read, /* Fast read (0x0B) supported */
5923 .voltage = {3000, 3600},
5924 },
5925
5926 {
5927 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005928 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005929 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005930 .manufacture_id = MACRONIX_ID,
5931 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005932 .total_size = 64,
5933 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005934 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005935 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005938 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 16} },
5943 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005944 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005945 .eraseblocks = { {64 * 1024, 1} },
5946 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005947 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005948 .eraseblocks = { {64 * 1024, 1} },
5949 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005950 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005951 .eraseblocks = { {64 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005953 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005954 .eraseblocks = { {64 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 },
5957 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005958 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005959 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005960 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005961 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5962 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005963 },
5964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005965 {
5966 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005967 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005968 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005969 .manufacture_id = MACRONIX_ID,
5970 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005971 .total_size = 128,
5972 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005973 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005974 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005975 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005976 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005977 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 32} },
5982 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005983 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005984 .eraseblocks = { {64 * 1024, 2} },
5985 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005986 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005987 .eraseblocks = { {128 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005989 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005990 .eraseblocks = { {128 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 },
5993 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005994 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005995 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005996 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005997 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005998 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005999 },
6000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006001 {
6002 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006003 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006004 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006005 .manufacture_id = MACRONIX_ID,
6006 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006007 .total_size = 256,
6008 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006009 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006013 .block_erasers =
6014 {
6015 {
6016 .eraseblocks = { {4 * 1024, 64} },
6017 .block_erase = spi_block_erase_20,
6018 }, {
6019 .eraseblocks = { {64 * 1024, 4} },
6020 .block_erase = spi_block_erase_52,
6021 }, {
6022 .eraseblocks = { {64 * 1024, 4} },
6023 .block_erase = spi_block_erase_d8,
6024 }, {
6025 .eraseblocks = { {256 * 1024, 1} },
6026 .block_erase = spi_block_erase_60,
6027 }, {
6028 .eraseblocks = { {256 * 1024, 1} },
6029 .block_erase = spi_block_erase_c7,
6030 },
6031 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006032 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006033 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006034 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006035 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006036 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006037 },
6038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006039 {
6040 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006041 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .manufacture_id = MACRONIX_ID,
6044 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 512,
6046 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006047 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006048 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006051 .block_erasers =
6052 {
6053 {
6054 .eraseblocks = { {4 * 1024, 128} },
6055 .block_erase = spi_block_erase_20,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 8} },
6058 .block_erase = spi_block_erase_52,
6059 }, {
6060 .eraseblocks = { {64 * 1024, 8} },
6061 .block_erase = spi_block_erase_d8,
6062 }, {
6063 .eraseblocks = { {512 * 1024, 1} },
6064 .block_erase = spi_block_erase_60,
6065 }, {
6066 .eraseblocks = { {512 * 1024, 1} },
6067 .block_erase = spi_block_erase_c7,
6068 },
6069 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006070 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006071 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006072 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006074 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006075 },
6076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 {
6078 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006079 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006080 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006081 .manufacture_id = MACRONIX_ID,
6082 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006083 .total_size = 1024,
6084 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006085 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006086 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006087 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006088 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006089 .block_erasers =
6090 {
6091 {
6092 .eraseblocks = { {4 * 1024, 256} },
6093 .block_erase = spi_block_erase_20,
6094 }, {
6095 .eraseblocks = { {64 * 1024, 16} },
6096 .block_erase = spi_block_erase_52,
6097 }, {
6098 .eraseblocks = { {64 * 1024, 16} },
6099 .block_erase = spi_block_erase_d8,
6100 }, {
6101 .eraseblocks = { {1024 * 1024, 1} },
6102 .block_erase = spi_block_erase_60,
6103 }, {
6104 .eraseblocks = { {1024 * 1024, 1} },
6105 .block_erase = spi_block_erase_c7,
6106 },
6107 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006108 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006110 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006111 .read = spi_chip_read, /* Fast read (0x0B) supported */
6112 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006113 },
6114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006115 {
6116 .vendor = "Macronix",
6117 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006118 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006119 .manufacture_id = MACRONIX_ID,
6120 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006121 .total_size = 2048,
6122 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006123 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006124 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006125 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006126 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006127 .block_erasers =
6128 {
6129 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006130 .eraseblocks = { {64 * 1024, 32} },
6131 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006132 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006133 .eraseblocks = { {64 * 1024, 32} },
6134 .block_erase = spi_block_erase_d8,
6135 }, {
6136 .eraseblocks = { {2 * 1024 * 1024, 1} },
6137 .block_erase = spi_block_erase_60,
6138 }, {
6139 .eraseblocks = { {2 * 1024 * 1024, 1} },
6140 .block_erase = spi_block_erase_c7,
6141 },
6142 },
6143 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6144 .unlock = spi_disable_blockprotect,
6145 .write = spi_chip_write_256,
6146 .read = spi_chip_read, /* Fast read (0x0B) supported */
6147 .voltage = {2700, 3600},
6148 },
6149
6150 {
6151 .vendor = "Macronix",
6152 .name = "MX25L1605A/MX25L1606E",
6153 .bustype = BUS_SPI,
6154 .manufacture_id = MACRONIX_ID,
6155 .model_id = MACRONIX_MX25L1605,
6156 .total_size = 2048,
6157 .page_size = 256,
6158 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6160 .tested = TEST_OK_PREW,
6161 .probe = probe_spi_rdid,
6162 .probe_timing = TIMING_ZERO,
6163 .block_erasers =
6164 {
6165 {
6166 .eraseblocks = { {4 * 1024, 512} },
6167 .block_erase = spi_block_erase_20,
6168 }, {
6169 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006170 .block_erase = spi_block_erase_52,
6171 }, {
6172 .eraseblocks = { {64 * 1024, 32} },
6173 .block_erase = spi_block_erase_d8,
6174 }, {
6175 .eraseblocks = { {2 * 1024 * 1024, 1} },
6176 .block_erase = spi_block_erase_60,
6177 }, {
6178 .eraseblocks = { {2 * 1024 * 1024, 1} },
6179 .block_erase = spi_block_erase_c7,
6180 },
6181 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006182 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006183 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006184 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006185 .read = spi_chip_read, /* Fast read (0x0B) supported */
6186 .voltage = {2700, 3600},
6187 },
6188
6189 {
6190 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006191 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006192 .bustype = BUS_SPI,
6193 .manufacture_id = MACRONIX_ID,
6194 .model_id = MACRONIX_MX25L1605,
6195 .total_size = 2048,
6196 .page_size = 256,
6197 .feature_bits = FEATURE_WRSR_WREN,
6198 .tested = TEST_OK_PREW,
6199 .probe = probe_spi_rdid,
6200 .probe_timing = TIMING_ZERO,
6201 .block_erasers =
6202 {
6203 {
6204 .eraseblocks = { {4 * 1024, 512} },
6205 .block_erase = spi_block_erase_20,
6206 }, {
6207 .eraseblocks = { {64 * 1024, 32} },
6208 .block_erase = spi_block_erase_d8,
6209 }, {
6210 .eraseblocks = { {2 * 1024 * 1024, 1} },
6211 .block_erase = spi_block_erase_60,
6212 }, {
6213 .eraseblocks = { {2 * 1024 * 1024, 1} },
6214 .block_erase = spi_block_erase_c7,
6215 },
6216 },
6217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6218 .unlock = spi_disable_blockprotect,
6219 .write = spi_chip_write_256,
6220 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006221 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006222 },
6223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006224 {
6225 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006226 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006227 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006228 .manufacture_id = MACRONIX_ID,
6229 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006230 .total_size = 2048,
6231 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006232 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006234 .tested = TEST_UNTESTED,
6235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006236 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006237 .block_erasers =
6238 {
6239 {
6240 .eraseblocks = { {4 * 1024, 512} },
6241 .block_erase = spi_block_erase_20,
6242 }, {
6243 .eraseblocks = { {64 * 1024, 32} },
6244 .block_erase = spi_block_erase_d8,
6245 }, {
6246 .eraseblocks = { {2 * 1024 * 1024, 1} },
6247 .block_erase = spi_block_erase_60,
6248 }, {
6249 .eraseblocks = { {2 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_c7,
6251 }
6252 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006253 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006254 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006255 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006256 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006257 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006258 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006259
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006260 {
6261 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006262 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006263 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006264 .manufacture_id = MACRONIX_ID,
6265 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006266 .total_size = 2048,
6267 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006268 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006270 .tested = TEST_UNTESTED,
6271 .probe = probe_spi_rdid,
6272 .probe_timing = TIMING_ZERO,
6273 .block_erasers =
6274 {
6275 {
6276 .eraseblocks = { {4 * 1024, 512} },
6277 .block_erase = spi_block_erase_20,
6278 }, {
6279 .eraseblocks = { {64 * 1024, 32} },
6280 .block_erase = spi_block_erase_d8,
6281 }, {
6282 .eraseblocks = { {2 * 1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_60,
6284 }, {
6285 .eraseblocks = { {2 * 1024 * 1024, 1} },
6286 .block_erase = spi_block_erase_c7,
6287 }
6288 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006289 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006290 .unlock = spi_disable_blockprotect,
6291 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006292 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006293 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006294 },
6295
6296 {
6297 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006299 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006300 .manufacture_id = MACRONIX_ID,
6301 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006302 .total_size = 4096,
6303 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006304 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006305 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006306 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006307 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006308 .block_erasers =
6309 {
6310 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006311 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006312 .block_erase = spi_block_erase_20,
6313 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006314 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006315 .block_erase = spi_block_erase_d8,
6316 }, {
6317 .eraseblocks = { {4 * 1024 * 1024, 1} },
6318 .block_erase = spi_block_erase_60,
6319 }, {
6320 .eraseblocks = { {4 * 1024 * 1024, 1} },
6321 .block_erase = spi_block_erase_c7,
6322 },
6323 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006324 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006325 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006326 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006327 .read = spi_chip_read, /* Fast read (0x0B) supported */
6328 .voltage = {2700, 3600},
6329 },
6330
6331 {
6332 .vendor = "Macronix",
6333 .name = "MX25L3205D/MX25L3208D",
6334 .bustype = BUS_SPI,
6335 .manufacture_id = MACRONIX_ID,
6336 .model_id = MACRONIX_MX25L3205,
6337 .total_size = 4096,
6338 .page_size = 256,
6339 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6341 .tested = TEST_OK_PREW,
6342 .probe = probe_spi_rdid,
6343 .probe_timing = TIMING_ZERO,
6344 .block_erasers =
6345 {
6346 {
6347 .eraseblocks = { {4 * 1024, 1024} },
6348 .block_erase = spi_block_erase_20,
6349 }, {
6350 .eraseblocks = { {64 * 1024, 64} },
6351 .block_erase = spi_block_erase_d8,
6352 }, {
6353 .eraseblocks = { {4 * 1024 * 1024, 1} },
6354 .block_erase = spi_block_erase_60,
6355 }, {
6356 .eraseblocks = { {4 * 1024 * 1024, 1} },
6357 .block_erase = spi_block_erase_c7,
6358 },
6359 },
6360 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6361 .unlock = spi_disable_blockprotect,
6362 .write = spi_chip_write_256,
6363 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6364 .voltage = {2700, 3600},
6365 },
6366
6367 {
6368 .vendor = "Macronix",
6369 .name = "MX25L3206E",
6370 .bustype = BUS_SPI,
6371 .manufacture_id = MACRONIX_ID,
6372 .model_id = MACRONIX_MX25L3205,
6373 .total_size = 4096,
6374 .page_size = 256,
6375 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6376 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6377 .tested = TEST_OK_PREW,
6378 .probe = probe_spi_rdid,
6379 .probe_timing = TIMING_ZERO,
6380 .block_erasers =
6381 {
6382 {
6383 .eraseblocks = { {4 * 1024, 1024} },
6384 .block_erase = spi_block_erase_20,
6385 }, {
6386 .eraseblocks = { {64 * 1024, 64} },
6387 .block_erase = spi_block_erase_d8,
6388 }, {
6389 .eraseblocks = { {64 * 1024, 64} },
6390 .block_erase = spi_block_erase_52,
6391 }, {
6392 .eraseblocks = { {4 * 1024 * 1024, 1} },
6393 .block_erase = spi_block_erase_60,
6394 }, {
6395 .eraseblocks = { {4 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_c7,
6397 },
6398 },
6399 .printlock = spi_prettyprint_status_register_default_bp3,
6400 .unlock = spi_disable_blockprotect,
6401 .write = spi_chip_write_256,
6402 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006403 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006404 },
6405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006406 {
6407 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006408 .name = "MX25L3273E",
6409 .bustype = BUS_SPI,
6410 .manufacture_id = MACRONIX_ID,
6411 .model_id = MACRONIX_MX25L3205,
6412 .total_size = 4096,
6413 .page_size = 256,
6414 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6416 .tested = TEST_UNTESTED,
6417 .probe = probe_spi_rdid,
6418 .probe_timing = TIMING_ZERO,
6419 .block_erasers =
6420 {
6421 {
6422 .eraseblocks = { {4 * 1024, 1024} },
6423 .block_erase = spi_block_erase_20,
6424 }, {
6425 .eraseblocks = { {32 * 1024, 128} },
6426 .block_erase = spi_block_erase_52,
6427 }, {
6428 .eraseblocks = { {64 * 1024, 64} },
6429 .block_erase = spi_block_erase_d8,
6430 }, {
6431 .eraseblocks = { {4 * 1024 * 1024, 1} },
6432 .block_erase = spi_block_erase_60,
6433 }, {
6434 .eraseblocks = { {4 * 1024 * 1024, 1} },
6435 .block_erase = spi_block_erase_c7,
6436 },
6437 },
6438 .printlock = spi_prettyprint_status_register_default_bp3,
6439 .unlock = spi_disable_blockprotect,
6440 .write = spi_chip_write_256,
6441 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6442 .voltage = {2700, 3600},
6443 },
6444
6445 {
6446 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006447 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006448 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006449 .manufacture_id = MACRONIX_ID,
6450 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006451 .total_size = 4096,
6452 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006453 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006455 .tested = TEST_UNTESTED,
6456 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006457 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006458 .block_erasers =
6459 {
6460 {
6461 .eraseblocks = { {4 * 1024, 1024} },
6462 .block_erase = spi_block_erase_20,
6463 }, {
6464 .eraseblocks = { {64 * 1024, 64} },
6465 .block_erase = spi_block_erase_d8,
6466 }, {
6467 .eraseblocks = { {4 * 1024 * 1024, 1} },
6468 .block_erase = spi_block_erase_60,
6469 }, {
6470 .eraseblocks = { {4 * 1024 * 1024, 1} },
6471 .block_erase = spi_block_erase_c7,
6472 }
6473 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006474 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006475 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006476 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006477 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006478 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006479 },
6480
6481 {
6482 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006483 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006484 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006485 .manufacture_id = MACRONIX_ID,
6486 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006487 .total_size = 8192,
6488 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006489 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006491 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006493 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006494 .block_erasers =
6495 {
6496 {
6497 .eraseblocks = { {64 * 1024, 128} },
6498 .block_erase = spi_block_erase_20,
6499 }, {
6500 .eraseblocks = { {64 * 1024, 128} },
6501 .block_erase = spi_block_erase_d8,
6502 }, {
6503 .eraseblocks = { {8 * 1024 * 1024, 1} },
6504 .block_erase = spi_block_erase_60,
6505 }, {
6506 .eraseblocks = { {8 * 1024 * 1024, 1} },
6507 .block_erase = spi_block_erase_c7,
6508 }
6509 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006510 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006511 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006515 },
6516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006517 {
6518 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006519 .name = "MX25L6406E/MX25L6436E",
6520 .bustype = BUS_SPI,
6521 .manufacture_id = MACRONIX_ID,
6522 .model_id = MACRONIX_MX25L6405,
6523 .total_size = 8192,
6524 .page_size = 256,
6525 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6526 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6527 .tested = TEST_OK_PREW,
6528 .probe = probe_spi_rdid,
6529 .probe_timing = TIMING_ZERO,
6530 .block_erasers =
6531 {
6532 {
6533 .eraseblocks = { {4 * 1024, 2048} },
6534 .block_erase = spi_block_erase_20,
6535 }, {
6536 .eraseblocks = { {64 * 1024, 128} },
6537 .block_erase = spi_block_erase_d8,
6538 }, {
6539 .eraseblocks = { {8 * 1024 * 1024, 1} },
6540 .block_erase = spi_block_erase_60,
6541 }, {
6542 .eraseblocks = { {8 * 1024 * 1024, 1} },
6543 .block_erase = spi_block_erase_c7,
6544 }
6545 },
6546 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6547 .unlock = spi_disable_blockprotect,
6548 .write = spi_chip_write_256,
6549 .read = spi_chip_read,
6550 .voltage = {2700, 3600},
6551 },
6552
6553 {
6554 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006555 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006556 .bustype = BUS_SPI,
6557 .manufacture_id = MACRONIX_ID,
6558 .model_id = MACRONIX_MX25L6405,
6559 .total_size = 8192,
6560 .page_size = 256,
6561 /* supports SFDP */
6562 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6564 .tested = TEST_OK_PREW,
6565 .probe = probe_spi_rdid,
6566 .probe_timing = TIMING_ZERO,
6567 .block_erasers =
6568 {
6569 {
6570 .eraseblocks = { {4 * 1024, 2048} },
6571 .block_erase = spi_block_erase_20,
6572 }, {
6573 .eraseblocks = { {32 * 1024, 256} },
6574 .block_erase = spi_block_erase_52,
6575 }, {
6576 .eraseblocks = { {64 * 1024, 128} },
6577 .block_erase = spi_block_erase_d8,
6578 }, {
6579 .eraseblocks = { {8 * 1024 * 1024, 1} },
6580 .block_erase = spi_block_erase_60,
6581 }, {
6582 .eraseblocks = { {8 * 1024 * 1024, 1} },
6583 .block_erase = spi_block_erase_c7,
6584 }
6585 },
6586 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6587 .unlock = spi_disable_blockprotect,
6588 .write = spi_chip_write_256,
6589 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6590 .voltage = {2700, 3600},
6591 },
6592
6593 {
6594 .vendor = "Macronix",
6595 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006596 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006597 .manufacture_id = MACRONIX_ID,
6598 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006599 .total_size = 16384,
6600 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006601 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006603 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006604 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006605 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006606 .block_erasers =
6607 {
6608 {
6609 .eraseblocks = { {4 * 1024, 4096} },
6610 .block_erase = spi_block_erase_20,
6611 }, {
6612 .eraseblocks = { {64 * 1024, 256} },
6613 .block_erase = spi_block_erase_d8,
6614 }, {
6615 .eraseblocks = { {16 * 1024 * 1024, 1} },
6616 .block_erase = spi_block_erase_60,
6617 }, {
6618 .eraseblocks = { {16 * 1024 * 1024, 1} },
6619 .block_erase = spi_block_erase_c7,
6620 }
6621 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006622 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006623 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006624 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006625 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006626 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006627 },
6628
6629 {
6630 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006631 .name = "MX25U1635E",
6632 .bustype = BUS_SPI,
6633 .manufacture_id = MACRONIX_ID,
6634 .model_id = MACRONIX_MX25U1635E,
6635 .total_size = 2048,
6636 .page_size = 256,
6637 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6638 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6640 .tested = TEST_UNTESTED,
6641 .probe = probe_spi_rdid,
6642 .probe_timing = TIMING_ZERO,
6643 .block_erasers =
6644 {
6645 {
6646 .eraseblocks = { {4 * 1024, 512} },
6647 .block_erase = spi_block_erase_20,
6648 }, {
6649 .eraseblocks = { {32 * 1024, 64} },
6650 .block_erase = spi_block_erase_52,
6651 }, {
6652 .eraseblocks = { {64 * 1024, 32} },
6653 .block_erase = spi_block_erase_d8,
6654 }, {
6655 .eraseblocks = { {2 * 1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_60,
6657 }, {
6658 .eraseblocks = { {2 * 1024 * 1024, 1} },
6659 .block_erase = spi_block_erase_c7,
6660 }
6661 },
6662 /* TODO: security register */
6663 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6664 .unlock = spi_disable_blockprotect,
6665 .write = spi_chip_write_256,
6666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6667 .voltage = {1650, 2000},
6668 },
6669
6670 {
6671 .vendor = "Macronix",
6672 .name = "MX25U3235E/F",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = MACRONIX_ID,
6675 .model_id = MACRONIX_MX25U3235E,
6676 .total_size = 4096,
6677 .page_size = 256,
6678 /* F model supports SFDP */
6679 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6680 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6682 .tested = TEST_OK_PREW,
6683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
6685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 1024} },
6689 .block_erase = spi_block_erase_20,
6690 }, {
6691 .eraseblocks = { {32 * 1024, 128} },
6692 .block_erase = spi_block_erase_52,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 64} },
6695 .block_erase = spi_block_erase_d8,
6696 }, {
6697 .eraseblocks = { {4 * 1024 * 1024, 1} },
6698 .block_erase = spi_block_erase_60,
6699 }, {
6700 .eraseblocks = { {4 * 1024 * 1024, 1} },
6701 .block_erase = spi_block_erase_c7,
6702 }
6703 },
6704 /* TODO: security register */
6705 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6706 .unlock = spi_disable_blockprotect,
6707 .write = spi_chip_write_256,
6708 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6709 .voltage = {1650, 2000},
6710 },
6711
6712 {
6713 .vendor = "Macronix",
6714 .name = "MX25U6435E/F",
6715 .bustype = BUS_SPI,
6716 .manufacture_id = MACRONIX_ID,
6717 .model_id = MACRONIX_MX25U6435E,
6718 .total_size = 8192,
6719 .page_size = 256,
6720 /* F model supports SFDP */
6721 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6722 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6724 .tested = TEST_UNTESTED,
6725 .probe = probe_spi_rdid,
6726 .probe_timing = TIMING_ZERO,
6727 .block_erasers =
6728 {
6729 {
6730 .eraseblocks = { {4 * 1024, 2048} },
6731 .block_erase = spi_block_erase_20,
6732 }, {
6733 .eraseblocks = { {32 * 1024, 256} },
6734 .block_erase = spi_block_erase_52,
6735 }, {
6736 .eraseblocks = { {64 * 1024, 128} },
6737 .block_erase = spi_block_erase_d8,
6738 }, {
6739 .eraseblocks = { {8 * 1024 * 1024, 1} },
6740 .block_erase = spi_block_erase_60,
6741 }, {
6742 .eraseblocks = { {8 * 1024 * 1024, 1} },
6743 .block_erase = spi_block_erase_c7,
6744 }
6745 },
6746 /* TODO: security register */
6747 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6748 .unlock = spi_disable_blockprotect,
6749 .write = spi_chip_write_256,
6750 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6751 .voltage = {1650, 2000},
6752 },
6753
6754 {
6755 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006756 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006757 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006758 .manufacture_id = MACRONIX_ID,
6759 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006760 .total_size = 128,
6761 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006762 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6763 .tested = TEST_UNTESTED,
6764 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006766 .block_erasers =
6767 {
6768 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006769 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006770 {8 * 1024, 1},
6771 {4 * 1024, 2},
6772 {8 * 1024, 2},
6773 {32 * 1024, 1},
6774 {64 * 1024, 1},
6775 },
Sean Nelson35727f72010-01-28 23:55:12 +00006776 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006777 }, {
6778 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006779 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006780 }
6781 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006782 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006784 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006785 },
6786
6787 {
6788 .vendor = "Macronix",
6789 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006790 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006791 .manufacture_id = MACRONIX_ID,
6792 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006793 .total_size = 128,
6794 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006795 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006796 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006797 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006798 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006799 .block_erasers =
6800 {
6801 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006802 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006803 {64 * 1024, 1},
6804 {32 * 1024, 1},
6805 {8 * 1024, 2},
6806 {4 * 1024, 2},
6807 {8 * 1024, 1},
6808 },
Sean Nelson35727f72010-01-28 23:55:12 +00006809 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006810 }, {
6811 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006812 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006813 }
6814 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006815 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006817 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006818 },
6819
6820 {
6821 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006822 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006823 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006824 .manufacture_id = MACRONIX_ID,
6825 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006826 .total_size = 256,
6827 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006828 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006830 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006831 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = {
6836 {16 * 1024, 1},
6837 {8 * 1024, 2},
6838 {32 * 1024, 1},
6839 {64 * 1024, 3},
6840 },
Sean Nelson35727f72010-01-28 23:55:12 +00006841 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006842 }, {
6843 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006844 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006845 },
6846 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006849 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006850 },
6851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006852 {
6853 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006854 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006855 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006856 .manufacture_id = MACRONIX_ID,
6857 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006858 .total_size = 256,
6859 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006860 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006861 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006862 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006863 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006864 .block_erasers =
6865 {
6866 {
6867 .eraseblocks = {
6868 {64 * 1024, 3},
6869 {32 * 1024, 1},
6870 {8 * 1024, 2},
6871 {16 * 1024, 1},
6872 },
Sean Nelson35727f72010-01-28 23:55:12 +00006873 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006874 }, {
6875 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006876 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006877 },
6878 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006879 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006880 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006881 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006882 },
6883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006884 {
6885 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006886 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006887 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006888 .manufacture_id = MACRONIX_ID,
6889 .model_id = MACRONIX_MX29F040,
6890 .total_size = 512,
6891 .page_size = 64 * 1024,
6892 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6893 .tested = TEST_UNTESTED,
6894 .probe = probe_jedec,
6895 .probe_timing = TIMING_ZERO,
6896 .block_erasers =
6897 {
6898 {
6899 .eraseblocks = { {64 * 1024, 8} },
6900 .block_erase = erase_sector_jedec,
6901 }, {
6902 .eraseblocks = { {512 * 1024, 1} },
6903 .block_erase = erase_chip_block_jedec,
6904 },
6905 },
6906 .write = write_jedec_1,
6907 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006908 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006909 },
6910
6911 {
6912 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006913 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006914 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006915 .manufacture_id = MACRONIX_ID,
6916 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006917 .total_size = 512,
6918 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006919 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6920 .tested = TEST_UNTESTED,
6921 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006922 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006923 .block_erasers =
6924 {
6925 {
6926 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006927 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006928 }, {
6929 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006930 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006931 },
6932 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006933 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006935 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006936 },
6937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006938 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006939 .vendor = "Micron/Numonyx/ST",
6940 .name = "M25P05-A",
6941 .bustype = BUS_SPI,
6942 .manufacture_id = ST_ID,
6943 .model_id = ST_M25P05A,
6944 .total_size = 64,
6945 .page_size = 256,
6946 .feature_bits = FEATURE_WRSR_WREN,
6947 .tested = TEST_OK_PREW,
6948 .probe = probe_spi_rdid,
6949 .probe_timing = TIMING_ZERO,
6950 .block_erasers =
6951 {
6952 {
6953 .eraseblocks = { {32 * 1024, 2} },
6954 .block_erase = spi_block_erase_d8,
6955 }, {
6956 .eraseblocks = { {64 * 1024, 1} },
6957 .block_erase = spi_block_erase_c7,
6958 }
6959 },
6960 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6961 .unlock = spi_disable_blockprotect,
6962 .write = spi_chip_write_256,
6963 .read = spi_chip_read,
6964 .voltage = {2700, 3600},
6965 },
6966
6967 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6968 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
6969 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
6970 * only is successful if RDID does not work.
6971 */
6972 {
6973 .vendor = "Micron/Numonyx/ST",
6974 .name = "M25P05",
6975 .bustype = BUS_SPI,
6976 .manufacture_id = 0, /* Not used. */
6977 .model_id = ST_M25P05_RES,
6978 .total_size = 64,
6979 .page_size = 256,
6980 .feature_bits = FEATURE_WRSR_WREN,
6981 .tested = TEST_UNTESTED,
6982 .probe = probe_spi_res1,
6983 .probe_timing = TIMING_ZERO,
6984 .block_erasers =
6985 {
6986 {
6987 .eraseblocks = { {32 * 1024, 2} },
6988 .block_erase = spi_block_erase_d8,
6989 }, {
6990 .eraseblocks = { {64 * 1024, 1} },
6991 .block_erase = spi_block_erase_c7,
6992 }
6993 },
6994 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6995 .unlock = spi_disable_blockprotect,
6996 .write = spi_chip_write_1, /* 128 */
6997 .read = spi_chip_read,
6998 .voltage = {2700, 3600},
6999 },
7000
7001 {
7002 .vendor = "Micron/Numonyx/ST",
7003 .name = "M25P10-A",
7004 .bustype = BUS_SPI,
7005 .manufacture_id = ST_ID,
7006 .model_id = ST_M25P10A,
7007 .total_size = 128,
7008 .page_size = 256,
7009 .feature_bits = FEATURE_WRSR_WREN,
7010 .tested = TEST_OK_PRE,
7011 .probe = probe_spi_rdid,
7012 .probe_timing = TIMING_ZERO,
7013 .block_erasers =
7014 {
7015 {
7016 .eraseblocks = { {32 * 1024, 4} },
7017 .block_erase = spi_block_erase_d8,
7018 }, {
7019 .eraseblocks = { {128 * 1024, 1} },
7020 .block_erase = spi_block_erase_c7,
7021 }
7022 },
7023 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7024 .unlock = spi_disable_blockprotect,
7025 .write = spi_chip_write_256,
7026 .read = spi_chip_read,
7027 .voltage = {2700, 3600},
7028 },
7029
7030 /* The ST M25P10 has the same problem as the M25P05. */
7031 {
7032 .vendor = "Micron/Numonyx/ST",
7033 .name = "M25P10",
7034 .bustype = BUS_SPI,
7035 .manufacture_id = 0, /* Not used. */
7036 .model_id = ST_M25P10_RES,
7037 .total_size = 128,
7038 .page_size = 256,
7039 .feature_bits = FEATURE_WRSR_WREN,
7040 .tested = TEST_UNTESTED,
7041 .probe = probe_spi_res1,
7042 .probe_timing = TIMING_ZERO,
7043 .block_erasers =
7044 {
7045 {
7046 .eraseblocks = { {32 * 1024, 4} },
7047 .block_erase = spi_block_erase_d8,
7048 }, {
7049 .eraseblocks = { {128 * 1024, 1} },
7050 .block_erase = spi_block_erase_c7,
7051 }
7052 },
7053 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7054 .unlock = spi_disable_blockprotect,
7055 .write = spi_chip_write_1, /* 128 */
7056 .read = spi_chip_read,
7057 .voltage = {2700, 3600},
7058 },
7059
7060 {
7061 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7062 .name = "M25P20",
7063 .bustype = BUS_SPI,
7064 .manufacture_id = ST_ID,
7065 .model_id = ST_M25P20,
7066 .total_size = 256,
7067 .page_size = 256,
7068 .feature_bits = FEATURE_WRSR_WREN,
7069 .tested = TEST_UNTESTED,
7070 .probe = probe_spi_rdid,
7071 .probe_timing = TIMING_ZERO,
7072 .block_erasers =
7073 {
7074 {
7075 .eraseblocks = { {64 * 1024, 4} },
7076 .block_erase = spi_block_erase_d8,
7077 }, {
7078 .eraseblocks = { {256 * 1024, 1} },
7079 .block_erase = spi_block_erase_c7,
7080 }
7081 },
7082 .printlock = spi_prettyprint_status_register_default_bp1,
7083 .unlock = spi_disable_blockprotect,
7084 .write = spi_chip_write_256,
7085 .read = spi_chip_read, /* Fast read (0x0B) supported */
7086 .voltage = {2700, 3600},
7087 },
7088
7089 {
7090 .vendor = "Micron/Numonyx/ST",
7091 .name = "M25P20-old",
7092 .bustype = BUS_SPI,
7093 .manufacture_id = 0, /* Not used. */
7094 .model_id = ST_M25P20_RES,
7095 .total_size = 256,
7096 .page_size = 256,
7097 .feature_bits = FEATURE_WRSR_WREN,
7098 .tested = TEST_OK_PREW,
7099 .probe = probe_spi_res1,
7100 .probe_timing = TIMING_ZERO,
7101 .block_erasers =
7102 {
7103 {
7104 .eraseblocks = { {64 * 1024, 4} },
7105 .block_erase = spi_block_erase_d8,
7106 }, {
7107 .eraseblocks = { {256 * 1024, 1} },
7108 .block_erase = spi_block_erase_c7,
7109 }
7110 },
7111 .printlock = spi_prettyprint_status_register_default_bp1,
7112 .unlock = spi_disable_blockprotect,
7113 .write = spi_chip_write_256,
7114 .read = spi_chip_read, /* Fast read (0x0B) supported */
7115 .voltage = {2700, 3600},
7116 },
7117
7118 {
7119 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7120 .name = "M25P40",
7121 .bustype = BUS_SPI,
7122 .manufacture_id = ST_ID,
7123 .model_id = ST_M25P40,
7124 .total_size = 512,
7125 .page_size = 256,
7126 .feature_bits = FEATURE_WRSR_WREN,
7127 .tested = TEST_OK_PREW,
7128 .probe = probe_spi_rdid,
7129 .probe_timing = TIMING_ZERO,
7130 .block_erasers =
7131 {
7132 {
7133 .eraseblocks = { {64 * 1024, 8} },
7134 .block_erase = spi_block_erase_d8,
7135 }, {
7136 .eraseblocks = { {512 * 1024, 1} },
7137 .block_erase = spi_block_erase_c7,
7138 }
7139 },
7140 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7141 .unlock = spi_disable_blockprotect,
7142 .write = spi_chip_write_256,
7143 .read = spi_chip_read,
7144 .voltage = {2700, 3600},
7145 },
7146
7147 {
7148 .vendor = "Micron/Numonyx/ST",
7149 .name = "M25P40-old",
7150 .bustype = BUS_SPI,
7151 .manufacture_id = 0, /* Not used. */
7152 .model_id = ST_M25P40_RES,
7153 .total_size = 512,
7154 .page_size = 256,
7155 .feature_bits = FEATURE_WRSR_WREN,
7156 .tested = TEST_UNTESTED,
7157 .probe = probe_spi_res1,
7158 .probe_timing = TIMING_ZERO,
7159 .block_erasers =
7160 {
7161 {
7162 .eraseblocks = { {64 * 1024, 8} },
7163 .block_erase = spi_block_erase_d8,
7164 }, {
7165 .eraseblocks = { {512 * 1024, 1} },
7166 .block_erase = spi_block_erase_c7,
7167 }
7168 },
7169 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7170 .unlock = spi_disable_blockprotect,
7171 .write = spi_chip_write_256,
7172 .read = spi_chip_read,
7173 },
7174
7175 {
7176 .vendor = "Micron/Numonyx/ST",
7177 .name = "M25P80",
7178 .bustype = BUS_SPI,
7179 .manufacture_id = ST_ID,
7180 .model_id = ST_M25P80,
7181 .total_size = 1024,
7182 .page_size = 256,
7183 .feature_bits = FEATURE_WRSR_WREN,
7184 .tested = TEST_OK_PREW,
7185 .probe = probe_spi_rdid,
7186 .probe_timing = TIMING_ZERO,
7187 .block_erasers =
7188 {
7189 {
7190 .eraseblocks = { {64 * 1024, 16} },
7191 .block_erase = spi_block_erase_d8,
7192 }, {
7193 .eraseblocks = { {1024 * 1024, 1} },
7194 .block_erase = spi_block_erase_c7,
7195 }
7196 },
7197 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7198 .unlock = spi_disable_blockprotect,
7199 .write = spi_chip_write_256,
7200 .read = spi_chip_read,
7201 .voltage = {2700, 3600},
7202 },
7203
7204 {
7205 .vendor = "Micron/Numonyx/ST",
7206 .name = "M25P16",
7207 .bustype = BUS_SPI,
7208 .manufacture_id = ST_ID,
7209 .model_id = ST_M25P16,
7210 .total_size = 2048,
7211 .page_size = 256,
7212 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007213 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007214 .probe = probe_spi_rdid,
7215 .probe_timing = TIMING_ZERO,
7216 .block_erasers =
7217 {
7218 {
7219 .eraseblocks = { {64 * 1024, 32} },
7220 .block_erase = spi_block_erase_d8,
7221 }, {
7222 .eraseblocks = { {2 * 1024 * 1024, 1} },
7223 .block_erase = spi_block_erase_c7,
7224 }
7225 },
7226 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7227 .unlock = spi_disable_blockprotect,
7228 .write = spi_chip_write_256,
7229 .read = spi_chip_read,
7230 .voltage = {2700, 3600},
7231 },
7232
7233 {
7234 .vendor = "Micron/Numonyx/ST",
7235 .name = "M25P32",
7236 .bustype = BUS_SPI,
7237 .manufacture_id = ST_ID,
7238 .model_id = ST_M25P32,
7239 .total_size = 4096,
7240 .page_size = 256,
7241 .feature_bits = FEATURE_WRSR_WREN,
7242 .tested = TEST_OK_PREW,
7243 .probe = probe_spi_rdid,
7244 .probe_timing = TIMING_ZERO,
7245 .block_erasers =
7246 {
7247 {
7248 .eraseblocks = { {64 * 1024, 64} },
7249 .block_erase = spi_block_erase_d8,
7250 }, {
7251 .eraseblocks = { {4 * 1024 * 1024, 1} },
7252 .block_erase = spi_block_erase_c7,
7253 }
7254 },
7255 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7256 .unlock = spi_disable_blockprotect,
7257 .write = spi_chip_write_256,
7258 .read = spi_chip_read,
7259 .voltage = {2700, 3600},
7260 },
7261
7262 {
7263 .vendor = "Micron/Numonyx/ST",
7264 .name = "M25P64",
7265 .bustype = BUS_SPI,
7266 .manufacture_id = ST_ID,
7267 .model_id = ST_M25P64,
7268 .total_size = 8192,
7269 .page_size = 256,
7270 .feature_bits = FEATURE_WRSR_WREN,
7271 .tested = TEST_OK_PREW,
7272 .probe = probe_spi_rdid,
7273 .probe_timing = TIMING_ZERO,
7274 .block_erasers =
7275 {
7276 {
7277 .eraseblocks = { {64 * 1024, 128} },
7278 .block_erase = spi_block_erase_d8,
7279 }, {
7280 .eraseblocks = { {8 * 1024 * 1024, 1} },
7281 .block_erase = spi_block_erase_c7,
7282 }
7283 },
7284 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7285 .unlock = spi_disable_blockprotect,
7286 .write = spi_chip_write_256,
7287 .read = spi_chip_read,
7288 .voltage = {2700, 3600},
7289 },
7290
7291 {
7292 .vendor = "Micron/Numonyx/ST",
7293 .name = "M25P128",
7294 .bustype = BUS_SPI,
7295 .manufacture_id = ST_ID,
7296 .model_id = ST_M25P128,
7297 .total_size = 16384,
7298 .page_size = 256,
7299 .feature_bits = FEATURE_WRSR_WREN,
7300 .tested = TEST_OK_PREW,
7301 .probe = probe_spi_rdid,
7302 .probe_timing = TIMING_ZERO,
7303 .block_erasers =
7304 {
7305 {
7306 .eraseblocks = { {256 * 1024, 64} },
7307 .block_erase = spi_block_erase_d8,
7308 }, {
7309 .eraseblocks = { {16 * 1024 * 1024, 1} },
7310 .block_erase = spi_block_erase_c7,
7311 }
7312 },
7313 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7314 .unlock = spi_disable_blockprotect,
7315 .write = spi_chip_write_256,
7316 .read = spi_chip_read,
7317 .voltage = {2700, 3600},
7318 },
7319
7320 {
7321 .vendor = "Micron/Numonyx/ST",
7322 .name = "M25PE10",
7323 .bustype = BUS_SPI,
7324 .manufacture_id = ST_ID,
7325 .model_id = ST_M25PE10,
7326 .total_size = 128,
7327 .page_size = 256,
7328 .feature_bits = FEATURE_WRSR_WREN,
7329 .tested = TEST_UNTESTED,
7330 .probe = probe_spi_rdid,
7331 .probe_timing = TIMING_ZERO,
7332 .block_erasers =
7333 {
7334 {
7335 .eraseblocks = { {4 * 1024, 32} },
7336 .block_erase = spi_block_erase_20,
7337 }, {
7338 .eraseblocks = { {64 * 1024, 2} },
7339 .block_erase = spi_block_erase_d8,
7340 }, {
7341 .eraseblocks = { {128 * 1024, 1} },
7342 .block_erase = spi_block_erase_c7,
7343 }
7344 },
7345 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7346 .unlock = spi_disable_blockprotect,
7347 .write = spi_chip_write_256,
7348 .read = spi_chip_read,
7349 .voltage = {2700, 3600},
7350 },
7351
7352 {
7353 .vendor = "Micron/Numonyx/ST",
7354 .name = "M25PE20",
7355 .bustype = BUS_SPI,
7356 .manufacture_id = ST_ID,
7357 .model_id = ST_M25PE20,
7358 .total_size = 256,
7359 .page_size = 256,
7360 .feature_bits = FEATURE_WRSR_WREN,
7361 .tested = TEST_UNTESTED,
7362 .probe = probe_spi_rdid,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {4 * 1024, 64} },
7368 .block_erase = spi_block_erase_20,
7369 }, {
7370 .eraseblocks = { {64 * 1024, 4} },
7371 .block_erase = spi_block_erase_d8,
7372 }, {
7373 .eraseblocks = { {256 * 1024, 1} },
7374 .block_erase = spi_block_erase_c7,
7375 }
7376 },
7377 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7378 .unlock = spi_disable_blockprotect,
7379 .write = spi_chip_write_256,
7380 .read = spi_chip_read,
7381 .voltage = {2700, 3600},
7382 },
7383
7384 {
7385 .vendor = "Micron/Numonyx/ST",
7386 .name = "M25PE40",
7387 .bustype = BUS_SPI,
7388 .manufacture_id = ST_ID,
7389 .model_id = ST_M25PE40,
7390 .total_size = 512,
7391 .page_size = 256,
7392 .feature_bits = FEATURE_WRSR_WREN,
7393 .tested = TEST_UNTESTED,
7394 .probe = probe_spi_rdid,
7395 .probe_timing = TIMING_ZERO,
7396 .block_erasers =
7397 {
7398 {
7399 .eraseblocks = { {4 * 1024, 128} },
7400 .block_erase = spi_block_erase_20,
7401 }, {
7402 .eraseblocks = { {64 * 1024, 8} },
7403 .block_erase = spi_block_erase_d8,
7404 }, {
7405 .eraseblocks = { {512 * 1024, 1} },
7406 .block_erase = spi_block_erase_c7,
7407 }
7408 },
7409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7410 .unlock = spi_disable_blockprotect,
7411 .write = spi_chip_write_256,
7412 .read = spi_chip_read,
7413 .voltage = {2700, 3600},
7414 },
7415
7416 {
7417 .vendor = "Micron/Numonyx/ST",
7418 .name = "M25PE80",
7419 .bustype = BUS_SPI,
7420 .manufacture_id = ST_ID,
7421 .model_id = ST_M25PE80,
7422 .total_size = 1024,
7423 .page_size = 256,
7424 .feature_bits = FEATURE_WRSR_WREN,
7425 .tested = TEST_OK_PREW,
7426 .probe = probe_spi_rdid,
7427 .probe_timing = TIMING_ZERO,
7428 .block_erasers =
7429 {
7430 {
7431 .eraseblocks = { {4 * 1024, 256} },
7432 .block_erase = spi_block_erase_20,
7433 }, {
7434 .eraseblocks = { {64 * 1024, 16} },
7435 .block_erase = spi_block_erase_d8,
7436 }, {
7437 .eraseblocks = { {1024 * 1024, 1} },
7438 .block_erase = spi_block_erase_c7,
7439 }
7440 },
7441 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7442 .unlock = spi_disable_blockprotect,
7443 .write = spi_chip_write_256,
7444 .read = spi_chip_read,
7445 .voltage = {2700, 3600},
7446 },
7447
7448 {
7449 .vendor = "Micron/Numonyx/ST",
7450 .name = "M25PE16",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = ST_ID,
7453 .model_id = ST_M25PE16,
7454 .total_size = 2048,
7455 .page_size = 256,
7456 .feature_bits = FEATURE_WRSR_WREN,
7457 .tested = TEST_UNTESTED,
7458 .probe = probe_spi_rdid,
7459 .probe_timing = TIMING_ZERO,
7460 .block_erasers =
7461 {
7462 {
7463 .eraseblocks = { {4 * 1024, 512} },
7464 .block_erase = spi_block_erase_20,
7465 }, {
7466 .eraseblocks = { {64 * 1024, 32} },
7467 .block_erase = spi_block_erase_d8,
7468 }, {
7469 .eraseblocks = { {2 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_c7,
7471 }
7472 },
7473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7474 .unlock = spi_disable_blockprotect,
7475 .write = spi_chip_write_256,
7476 .read = spi_chip_read,
7477 .voltage = {2700, 3600},
7478 },
7479
7480 {
7481 .vendor = "Micron/Numonyx/ST",
7482 .name = "M25PX80",
7483 .bustype = BUS_SPI,
7484 .manufacture_id = ST_ID,
7485 .model_id = ST_M25PX80,
7486 .total_size = 1024,
7487 .page_size = 256,
7488 /* OTP: 64B total; read 0x4B, write 0x42 */
7489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7490 .tested = TEST_OK_PREW,
7491 .probe = probe_spi_rdid,
7492 .probe_timing = TIMING_ZERO,
7493 .block_erasers = {
7494 {
7495 .eraseblocks = { { 4 * 1024, 256 } },
7496 .block_erase = spi_block_erase_20,
7497 }, {
7498 .eraseblocks = { {64 * 1024, 16} },
7499 .block_erase = spi_block_erase_d8,
7500 }, {
7501 .eraseblocks = { {1024 * 1024, 1} },
7502 .block_erase = spi_block_erase_c7,
7503 }
7504 },
7505 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7506 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7507 .write = spi_chip_write_256,
7508 .read = spi_chip_read,
7509 .voltage = {2700, 3600},
7510 },
7511
7512 {
7513 .vendor = "Micron/Numonyx/ST",
7514 .name = "M25PX16",
7515 .bustype = BUS_SPI,
7516 .manufacture_id = ST_ID,
7517 .model_id = ST_M25PX16,
7518 .total_size = 2048,
7519 .page_size = 256,
7520 /* OTP: 64B total; read 0x4B; write 0x42 */
7521 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7522 .tested = TEST_OK_PREW,
7523 .probe = probe_spi_rdid,
7524 .probe_timing = TIMING_ZERO,
7525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { { 4 * 1024, 512 } },
7529 .block_erase = spi_block_erase_20,
7530 }, {
7531 .eraseblocks = { {64 * 1024, 32} },
7532 .block_erase = spi_block_erase_d8,
7533 }, {
7534 .eraseblocks = { {2 * 1024 * 1024, 1} },
7535 .block_erase = spi_block_erase_c7,
7536 }
7537 },
7538 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7539 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7540 .write = spi_chip_write_256,
7541 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007542 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007543 },
7544
7545 {
7546 .vendor = "Micron/Numonyx/ST",
7547 .name = "M25PX32",
7548 .bustype = BUS_SPI,
7549 .manufacture_id = ST_ID,
7550 .model_id = ST_M25PX32,
7551 .total_size = 4096,
7552 .page_size = 256,
7553 /* OTP: 64B total; read 0x4B; write 0x42 */
7554 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7555 .tested = TEST_OK_PRE,
7556 .probe = probe_spi_rdid,
7557 .probe_timing = TIMING_ZERO,
7558 .block_erasers =
7559 {
7560 {
7561 .eraseblocks = { { 4 * 1024, 1024 } },
7562 .block_erase = spi_block_erase_20,
7563 }, {
7564 .eraseblocks = { {64 * 1024, 64} },
7565 .block_erase = spi_block_erase_d8,
7566 }, {
7567 .eraseblocks = { {4 * 1024 * 1024, 1} },
7568 .block_erase = spi_block_erase_c7,
7569 }
7570 },
7571 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7572 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7573 .write = spi_chip_write_256,
7574 .read = spi_chip_read,
7575 .voltage = {2700, 3600},
7576 },
7577
7578 {
7579 .vendor = "Micron/Numonyx/ST",
7580 .name = "M25PX64",
7581 .bustype = BUS_SPI,
7582 .manufacture_id = ST_ID,
7583 .model_id = ST_M25PX64,
7584 .total_size = 8192,
7585 .page_size = 256,
7586 /* OTP: 64B total; read 0x4B; write 0x42 */
7587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007588 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007589 .probe = probe_spi_rdid,
7590 .probe_timing = TIMING_ZERO,
7591 .block_erasers =
7592 {
7593 {
7594 .eraseblocks = { { 4 * 1024, 2048 } },
7595 .block_erase = spi_block_erase_20,
7596 }, {
7597 .eraseblocks = { {64 * 1024, 128} },
7598 .block_erase = spi_block_erase_d8,
7599 }, {
7600 .eraseblocks = { {8 * 1024 * 1024, 1} },
7601 .block_erase = spi_block_erase_c7,
7602 }
7603 },
7604 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7605 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7606 .write = spi_chip_write_256,
7607 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007608 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007609 },
7610
7611 {
7612 .vendor = "Micron/Numonyx/ST",
7613 .name = "M45PE10",
7614 .bustype = BUS_SPI,
7615 .manufacture_id = ST_ID,
7616 .model_id = ST_M45PE10,
7617 .total_size = 128,
7618 .page_size = 256,
7619 .tested = TEST_UNTESTED,
7620 .probe = probe_spi_rdid,
7621 .probe_timing = TIMING_ZERO,
7622 .block_erasers = {
7623 {
7624 .eraseblocks = { {256, 512} },
7625 .block_erase = spi_block_erase_db,
7626 }, {
7627 .eraseblocks = { {64 * 1024, 2} },
7628 .block_erase = spi_block_erase_d8,
7629 }
7630 },
7631 .printlock = spi_prettyprint_status_register_default_welwip,
7632 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7633 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7634 .read = spi_chip_read, /* Fast read (0x0B) supported */
7635 .voltage = {2700, 3600},
7636 },
7637
7638 {
7639 .vendor = "Micron/Numonyx/ST",
7640 .name = "M45PE20",
7641 .bustype = BUS_SPI,
7642 .manufacture_id = ST_ID,
7643 .model_id = ST_M45PE20,
7644 .total_size = 256,
7645 .page_size = 256,
7646 .tested = TEST_UNTESTED,
7647 .probe = probe_spi_rdid,
7648 .probe_timing = TIMING_ZERO,
7649 .block_erasers = {
7650 {
7651 .eraseblocks = { {256, 1024} },
7652 .block_erase = spi_block_erase_db,
7653 }, {
7654 .eraseblocks = { {64 * 1024, 4} },
7655 .block_erase = spi_block_erase_d8,
7656 }
7657 },
7658 .printlock = spi_prettyprint_status_register_default_welwip,
7659 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7660 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7661 .read = spi_chip_read, /* Fast read (0x0B) supported */
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Micron/Numonyx/ST",
7667 .name = "M45PE40",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = ST_ID,
7670 .model_id = ST_M45PE40,
7671 .total_size = 512,
7672 .page_size = 256,
7673 .tested = TEST_UNTESTED,
7674 .probe = probe_spi_rdid,
7675 .probe_timing = TIMING_ZERO,
7676 .block_erasers = {
7677 {
7678 .eraseblocks = { {256, 2048} },
7679 .block_erase = spi_block_erase_db,
7680 }, {
7681 .eraseblocks = { {64 * 1024, 8} },
7682 .block_erase = spi_block_erase_d8,
7683 }
7684 },
7685 .printlock = spi_prettyprint_status_register_default_welwip,
7686 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7687 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7688 .read = spi_chip_read, /* Fast read (0x0B) supported */
7689 .voltage = {2700, 3600},
7690 },
7691
7692 {
7693 .vendor = "Micron/Numonyx/ST",
7694 .name = "M45PE80",
7695 .bustype = BUS_SPI,
7696 .manufacture_id = ST_ID,
7697 .model_id = ST_M45PE80,
7698 .total_size = 1024,
7699 .page_size = 256,
7700 .tested = TEST_UNTESTED,
7701 .probe = probe_spi_rdid,
7702 .probe_timing = TIMING_ZERO,
7703 .block_erasers = {
7704 {
7705 .eraseblocks = { {256, 4096} },
7706 .block_erase = spi_block_erase_db,
7707 }, {
7708 .eraseblocks = { {64 * 1024, 16} },
7709 .block_erase = spi_block_erase_d8,
7710 }
7711 },
7712 .printlock = spi_prettyprint_status_register_default_welwip,
7713 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7714 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7715 .read = spi_chip_read, /* Fast read (0x0B) supported */
7716 .voltage = {2700, 3600},
7717 },
7718
7719 {
7720 .vendor = "Micron/Numonyx/ST",
7721 .name = "M45PE16",
7722 .bustype = BUS_SPI,
7723 .manufacture_id = ST_ID,
7724 .model_id = ST_M45PE16,
7725 .total_size = 2048,
7726 .page_size = 256,
7727 .tested = TEST_UNTESTED,
7728 .probe = probe_spi_rdid,
7729 .probe_timing = TIMING_ZERO,
7730 .block_erasers = {
7731 {
7732 .eraseblocks = { {256, 8192} },
7733 .block_erase = spi_block_erase_db,
7734 }, {
7735 .eraseblocks = { {64 * 1024, 32} },
7736 .block_erase = spi_block_erase_d8,
7737 }
7738 },
7739 .printlock = spi_prettyprint_status_register_default_welwip,
7740 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7741 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7742 .read = spi_chip_read, /* Fast read (0x0B) supported */
7743 .voltage = {2700, 3600},
7744 },
7745
7746 {
7747 .vendor = "Micron/Numonyx/ST",
7748 .name = "N25Q016",
7749 .bustype = BUS_SPI,
7750 .manufacture_id = ST_ID,
7751 .model_id = ST_N25Q016__1E,
7752 .total_size = 2048,
7753 .page_size = 256,
7754 /* supports SFDP */
7755 /* OTP: 64B total; read 0x4B, write 0x42 */
7756 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7757 .tested = TEST_UNTESTED,
7758 .probe = probe_spi_rdid,
7759 .probe_timing = TIMING_ZERO,
7760 .block_erasers =
7761 {
7762 {
7763 .eraseblocks = { {4 * 1024, 512} },
7764 .block_erase = spi_block_erase_20,
7765 }, {
7766 .eraseblocks = { {32 * 1024, 64} },
7767 .block_erase = spi_block_erase_52,
7768 }, {
7769 .eraseblocks = { {64 * 1024, 32} },
7770 .block_erase = spi_block_erase_d8,
7771 }, {
7772 .eraseblocks = { {2 * 1024 * 1024, 1} },
7773 .block_erase = spi_block_erase_c7,
7774 }
7775 },
7776 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7777 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7778 .write = spi_chip_write_256, /* Multi I/O supported */
7779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7780 .voltage = {1700, 2000},
7781 },
7782
7783 {
7784 .vendor = "Micron/Numonyx/ST",
7785 .name = "N25Q032..1E",
7786 .bustype = BUS_SPI,
7787 .manufacture_id = ST_ID,
7788 .model_id = ST_N25Q032__1E,
7789 .total_size = 4096,
7790 .page_size = 256,
7791 /* supports SFDP */
7792 /* OTP: 64B total; read 0x4B, write 0x42 */
7793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7794 .tested = TEST_UNTESTED,
7795 .probe = probe_spi_rdid,
7796 .probe_timing = TIMING_ZERO,
7797 .block_erasers =
7798 {
7799 {
7800 .eraseblocks = { {4 * 1024, 1024} },
7801 .block_erase = spi_block_erase_20,
7802 }, {
7803 .eraseblocks = { {64 * 1024, 64} },
7804 .block_erase = spi_block_erase_d8,
7805 }, {
7806 .eraseblocks = { {4 * 1024 * 1024, 1} },
7807 .block_erase = spi_block_erase_c7,
7808 }
7809 },
7810 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7811 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7812 .write = spi_chip_write_256, /* Multi I/O supported */
7813 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7814 .voltage = {1700, 2000},
7815 },
7816
7817 {
7818 .vendor = "Micron/Numonyx/ST",
7819 .name = "N25Q032..3E",
7820 .bustype = BUS_SPI,
7821 .manufacture_id = ST_ID,
7822 .model_id = ST_N25Q032__3E,
7823 .total_size = 4096,
7824 .page_size = 256,
7825 /* supports SFDP */
7826 /* OTP: 64B total; read 0x4B, write 0x42 */
7827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7828 .tested = TEST_OK_PREW,
7829 .probe = probe_spi_rdid,
7830 .probe_timing = TIMING_ZERO,
7831 .block_erasers =
7832 {
7833 {
7834 .eraseblocks = { {4 * 1024, 1024} },
7835 .block_erase = spi_block_erase_20,
7836 }, {
7837 .eraseblocks = { {64 * 1024, 64} },
7838 .block_erase = spi_block_erase_d8,
7839 }, {
7840 .eraseblocks = { {4 * 1024 * 1024, 1} },
7841 .block_erase = spi_block_erase_c7,
7842 }
7843 },
7844 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7845 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7846 .write = spi_chip_write_256, /* Multi I/O supported */
7847 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7848 .voltage = {2700, 3600},
7849 },
7850
7851 {
7852 .vendor = "Micron/Numonyx/ST",
7853 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7854 .bustype = BUS_SPI,
7855 .manufacture_id = ST_ID,
7856 .model_id = ST_N25Q064__1E,
7857 .total_size = 8192,
7858 .page_size = 256,
7859 /* supports SFDP */
7860 /* OTP: 64B total; read 0x4B, write 0x42 */
7861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007862 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007863 .probe = probe_spi_rdid,
7864 .probe_timing = TIMING_ZERO,
7865 .block_erasers =
7866 {
7867 {
7868 .eraseblocks = { {4 * 1024, 2048 } },
7869 .block_erase = spi_block_erase_20,
7870 }, {
7871 .eraseblocks = { {64 * 1024, 128} },
7872 .block_erase = spi_block_erase_d8,
7873 }, {
7874 .eraseblocks = { {8 * 1024 * 1024, 1} },
7875 .block_erase = spi_block_erase_c7,
7876 }
7877 },
7878 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7879 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7880 .write = spi_chip_write_256, /* Multi I/O supported */
7881 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7882 .voltage = {1700, 2000},
7883 },
7884
7885 {
7886 .vendor = "Micron/Numonyx/ST",
7887 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7888 .bustype = BUS_SPI,
7889 .manufacture_id = ST_ID,
7890 .model_id = ST_N25Q064__3E,
7891 .total_size = 8192,
7892 .page_size = 256,
7893 /* supports SFDP */
7894 /* OTP: 64B total; read 0x4B, write 0x42 */
7895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7896 .tested = TEST_OK_PREW,
7897 .probe = probe_spi_rdid,
7898 .probe_timing = TIMING_ZERO,
7899 .block_erasers =
7900 {
7901 {
7902 .eraseblocks = { {4 * 1024, 2048 } },
7903 .block_erase = spi_block_erase_20,
7904 }, {
7905 .eraseblocks = { {64 * 1024, 128} },
7906 .block_erase = spi_block_erase_d8,
7907 }, {
7908 .eraseblocks = { {8 * 1024 * 1024, 1} },
7909 .block_erase = spi_block_erase_c7,
7910 }
7911 },
7912 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7913 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7914 .write = spi_chip_write_256, /* Multi I/O supported */
7915 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7916 .voltage = {2700, 3600},
7917 },
7918
7919 {
7920 .vendor = "Micron/Numonyx/ST",
7921 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7922 .bustype = BUS_SPI,
7923 .manufacture_id = ST_ID,
7924 .model_id = ST_N25Q128__1E,
7925 .total_size = 16384,
7926 .page_size = 256,
7927 /* supports SFDP */
7928 /* OTP: 64B total; read 0x4B, write 0x42 */
7929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7930 .tested = TEST_UNTESTED,
7931 .probe = probe_spi_rdid,
7932 .probe_timing = TIMING_ZERO,
7933 .block_erasers = {
7934 {
7935 .eraseblocks = { {4 * 1024, 4096 } },
7936 .block_erase = spi_block_erase_20,
7937 }, {
7938 .eraseblocks = { {64 * 1024, 256} },
7939 .block_erase = spi_block_erase_d8,
7940 }, {
7941 .eraseblocks = { {16384 * 1024, 1} },
7942 .block_erase = spi_block_erase_c7,
7943 }
7944 },
7945 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7946 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7947 .write = spi_chip_write_256, /* Multi I/O supported */
7948 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7949 .voltage = {1700, 2000},
7950 },
7951
7952 {
7953 .vendor = "Micron/Numonyx/ST",
7954 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7955 .bustype = BUS_SPI,
7956 .manufacture_id = ST_ID,
7957 .model_id = ST_N25Q128__3E,
7958 .total_size = 16384,
7959 .page_size = 256,
7960 /* supports SFDP */
7961 /* OTP: 64B total; read 0x4B, write 0x42 */
7962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7963 .tested = TEST_OK_PREW,
7964 .probe = probe_spi_rdid,
7965 .probe_timing = TIMING_ZERO,
7966 .block_erasers = {
7967 {
7968 .eraseblocks = { {4 * 1024, 4096 } },
7969 .block_erase = spi_block_erase_20,
7970 }, {
7971 .eraseblocks = { {64 * 1024, 256} },
7972 .block_erase = spi_block_erase_d8,
7973 }, {
7974 .eraseblocks = { {16384 * 1024, 1} },
7975 .block_erase = spi_block_erase_c7,
7976 }
7977 },
7978 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7979 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7980 .write = spi_chip_write_256, /* Multi I/O supported */
7981 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7982 .voltage = {2700, 3600},
7983 },
7984
7985 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007986 .vendor = "MoselVitelic",
7987 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007988 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007989 .manufacture_id = SYNCMOS_MVC_ID,
7990 .model_id = MVC_V29C51000B,
7991 .total_size = 64,
7992 .page_size = 512,
7993 .feature_bits = FEATURE_EITHER_RESET,
7994 .tested = TEST_UNTESTED,
7995 .probe = probe_jedec,
7996 .probe_timing = TIMING_ZERO,
7997 .block_erasers =
7998 {
7999 {
8000 .eraseblocks = { {512, 128} },
8001 .block_erase = erase_sector_jedec,
8002 }, {
8003 .eraseblocks = { {64 * 1024, 1} },
8004 .block_erase = erase_chip_block_jedec,
8005 },
8006 },
8007 .write = write_jedec_1,
8008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008009 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008010 },
8011
8012 {
8013 .vendor = "MoselVitelic",
8014 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008015 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008016 .manufacture_id = SYNCMOS_MVC_ID,
8017 .model_id = MVC_V29C51000T,
8018 .total_size = 64,
8019 .page_size = 512,
8020 .feature_bits = FEATURE_EITHER_RESET,
8021 .tested = TEST_UNTESTED,
8022 .probe = probe_jedec,
8023 .probe_timing = TIMING_ZERO,
8024 .block_erasers =
8025 {
8026 {
8027 .eraseblocks = { {512, 128} },
8028 .block_erase = erase_sector_jedec,
8029 }, {
8030 .eraseblocks = { {64 * 1024, 1} },
8031 .block_erase = erase_chip_block_jedec,
8032 },
8033 },
8034 .write = write_jedec_1,
8035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008036 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008037 },
8038
8039 {
8040 .vendor = "MoselVitelic",
8041 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008042 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008043 .manufacture_id = SYNCMOS_MVC_ID,
8044 .model_id = MVC_V29C51400B,
8045 .total_size = 512,
8046 .page_size = 1024,
8047 .feature_bits = FEATURE_EITHER_RESET,
8048 .tested = TEST_UNTESTED,
8049 .probe = probe_jedec,
8050 .probe_timing = TIMING_ZERO,
8051 .block_erasers =
8052 {
8053 {
8054 .eraseblocks = { {1024, 512} },
8055 .block_erase = erase_sector_jedec,
8056 }, {
8057 .eraseblocks = { {512 * 1024, 1} },
8058 .block_erase = erase_chip_block_jedec,
8059 },
8060 },
8061 .write = write_jedec_1,
8062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008063 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008064 },
8065
8066 {
8067 .vendor = "MoselVitelic",
8068 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008069 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008070 .manufacture_id = SYNCMOS_MVC_ID,
8071 .model_id = MVC_V29C51400T,
8072 .total_size = 512,
8073 .page_size = 1024,
8074 .feature_bits = FEATURE_EITHER_RESET,
8075 .tested = TEST_UNTESTED,
8076 .probe = probe_jedec,
8077 .probe_timing = TIMING_ZERO,
8078 .block_erasers =
8079 {
8080 {
8081 .eraseblocks = { {1024, 512} },
8082 .block_erase = erase_sector_jedec,
8083 }, {
8084 .eraseblocks = { {512 * 1024, 1} },
8085 .block_erase = erase_chip_block_jedec,
8086 },
8087 },
8088 .write = write_jedec_1,
8089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008090 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008091 },
8092
8093 {
8094 .vendor = "MoselVitelic",
8095 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008096 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008097 .manufacture_id = SYNCMOS_MVC_ID,
8098 .model_id = MVC_V29LC51000,
8099 .total_size = 64,
8100 .page_size = 512,
8101 .feature_bits = FEATURE_EITHER_RESET,
8102 .tested = TEST_UNTESTED,
8103 .probe = probe_jedec,
8104 .probe_timing = TIMING_ZERO,
8105 .block_erasers =
8106 {
8107 {
8108 .eraseblocks = { {512, 128} },
8109 .block_erase = erase_sector_jedec,
8110 }, {
8111 .eraseblocks = { {64 * 1024, 1} },
8112 .block_erase = erase_chip_block_jedec,
8113 },
8114 },
8115 .write = write_jedec_1,
8116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008117 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008118 },
8119
8120 {
8121 .vendor = "MoselVitelic",
8122 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008123 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008124 .manufacture_id = SYNCMOS_MVC_ID,
8125 .model_id = MVC_V29LC51001,
8126 .total_size = 128,
8127 .page_size = 512,
8128 .feature_bits = FEATURE_EITHER_RESET,
8129 .tested = TEST_UNTESTED,
8130 .probe = probe_jedec,
8131 .probe_timing = TIMING_ZERO,
8132 .block_erasers =
8133 {
8134 {
8135 .eraseblocks = { {512, 256} },
8136 .block_erase = erase_sector_jedec,
8137 }, {
8138 .eraseblocks = { {128 * 1024, 1} },
8139 .block_erase = erase_chip_block_jedec,
8140 },
8141 },
8142 .write = write_jedec_1,
8143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008144 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008145 },
8146
8147 {
8148 .vendor = "MoselVitelic",
8149 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008150 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008151 .manufacture_id = SYNCMOS_MVC_ID,
8152 .model_id = MVC_V29LC51002,
8153 .total_size = 256,
8154 .page_size = 512,
8155 .feature_bits = FEATURE_EITHER_RESET,
8156 .tested = TEST_UNTESTED,
8157 .probe = probe_jedec,
8158 .probe_timing = TIMING_ZERO,
8159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = { {512, 512} },
8163 .block_erase = erase_sector_jedec,
8164 }, {
8165 .eraseblocks = { {256 * 1024, 1} },
8166 .block_erase = erase_chip_block_jedec,
8167 },
8168 },
8169 .write = write_jedec_1,
8170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008171 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008172 },
8173
8174 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008175 .vendor = "Nantronics",
8176 .name = "N25S10",
8177 .bustype = BUS_SPI,
8178 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8179 .model_id = NANTRONICS_N25S10,
8180 .total_size = 128,
8181 .page_size = 256,
8182 .feature_bits = FEATURE_WRSR_WREN,
8183 .tested = TEST_UNTESTED,
8184 .probe = probe_spi_rdid,
8185 .probe_timing = TIMING_ZERO,
8186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = { {4 * 1024, 32} },
8190 .block_erase = spi_block_erase_20,
8191 }, {
8192 .eraseblocks = { {4 * 1024, 32} },
8193 .block_erase = spi_block_erase_d7,
8194 }, {
8195 .eraseblocks = { {32 * 1024, 4} },
8196 .block_erase = spi_block_erase_52,
8197 }, {
8198 .eraseblocks = { {64 * 1024, 2} },
8199 .block_erase = spi_block_erase_d8,
8200 }, {
8201 .eraseblocks = { {128 * 1024, 1} },
8202 .block_erase = spi_block_erase_60,
8203 }, {
8204 .eraseblocks = { {128 * 1024, 1} },
8205 .block_erase = spi_block_erase_c7,
8206 }
8207 },
8208 .printlock = spi_prettyprint_status_register_default_bp3,
8209 .unlock = spi_disable_blockprotect_bp3_srwd,
8210 .write = spi_chip_write_256,
8211 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8212 .voltage = {2700, 3600},
8213 },
8214
8215 {
8216 .vendor = "Nantronics",
8217 .name = "N25S20",
8218 .bustype = BUS_SPI,
8219 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8220 .model_id = NANTRONICS_N25S20,
8221 .total_size = 256,
8222 .page_size = 256,
8223 .feature_bits = FEATURE_WRSR_WREN,
8224 .tested = TEST_UNTESTED,
8225 .probe = probe_spi_rdid,
8226 .probe_timing = TIMING_ZERO,
8227 .block_erasers =
8228 {
8229 {
8230 .eraseblocks = { {4 * 1024, 64} },
8231 .block_erase = spi_block_erase_20,
8232 }, {
8233 .eraseblocks = { {4 * 1024, 64} },
8234 .block_erase = spi_block_erase_d7,
8235 }, {
8236 .eraseblocks = { {32 * 1024, 8} },
8237 .block_erase = spi_block_erase_52,
8238 }, {
8239 .eraseblocks = { {64 * 1024, 4} },
8240 .block_erase = spi_block_erase_d8,
8241 }, {
8242 .eraseblocks = { {256 * 1024, 1} },
8243 .block_erase = spi_block_erase_60,
8244 }, {
8245 .eraseblocks = { {256 * 1024, 1} },
8246 .block_erase = spi_block_erase_c7,
8247 }
8248 },
8249 .printlock = spi_prettyprint_status_register_default_bp3,
8250 .unlock = spi_disable_blockprotect_bp3_srwd,
8251 .write = spi_chip_write_256,
8252 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8253 .voltage = {2700, 3600},
8254 },
8255
8256 {
8257 .vendor = "Nantronics",
8258 .name = "N25S40",
8259 .bustype = BUS_SPI,
8260 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8261 .model_id = NANTRONICS_N25S40,
8262 .total_size = 512,
8263 .page_size = 256,
8264 .feature_bits = FEATURE_WRSR_WREN,
8265 .tested = TEST_UNTESTED,
8266 .probe = probe_spi_rdid,
8267 .probe_timing = TIMING_ZERO,
8268 .block_erasers =
8269 {
8270 {
8271 .eraseblocks = { {4 * 1024, 128} },
8272 .block_erase = spi_block_erase_20,
8273 }, {
8274 .eraseblocks = { {4 * 1024, 128} },
8275 .block_erase = spi_block_erase_d7,
8276 }, {
8277 .eraseblocks = { {32 * 1024, 16} },
8278 .block_erase = spi_block_erase_52,
8279 }, {
8280 .eraseblocks = { {64 * 1024, 8} },
8281 .block_erase = spi_block_erase_d8,
8282 }, {
8283 .eraseblocks = { {512 * 1024, 1} },
8284 .block_erase = spi_block_erase_60,
8285 }, {
8286 .eraseblocks = { {512 * 1024, 1} },
8287 .block_erase = spi_block_erase_c7,
8288 }
8289 },
8290 .printlock = spi_prettyprint_status_register_default_bp3,
8291 .unlock = spi_disable_blockprotect_bp3_srwd,
8292 .write = spi_chip_write_256,
8293 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8294 .voltage = {2700, 3600},
8295 },
8296
8297 {
8298 .vendor = "Nantronics",
8299 .name = "N25S80",
8300 .bustype = BUS_SPI,
8301 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8302 .model_id = NANTRONICS_N25S80,
8303 .total_size = 1024,
8304 .page_size = 256,
8305 .feature_bits = FEATURE_WRSR_WREN,
8306 .tested = TEST_UNTESTED,
8307 .probe = probe_spi_rdid,
8308 .probe_timing = TIMING_ZERO,
8309 .block_erasers =
8310 {
8311 {
8312 .eraseblocks = { {4 * 1024, 256} },
8313 .block_erase = spi_block_erase_20,
8314 }, {
8315 .eraseblocks = { {32 * 1024, 32} },
8316 .block_erase = spi_block_erase_52,
8317 }, {
8318 .eraseblocks = { {64 * 1024, 16} },
8319 .block_erase = spi_block_erase_d8,
8320 }, {
8321 .eraseblocks = { {1024 * 1024, 1} },
8322 .block_erase = spi_block_erase_60,
8323 }, {
8324 .eraseblocks = { {1024 * 1024, 1} },
8325 .block_erase = spi_block_erase_c7,
8326 }
8327 },
8328 .printlock = spi_prettyprint_status_register_default_bp3,
8329 .unlock = spi_disable_blockprotect_bp3_srwd,
8330 .write = spi_chip_write_256,
8331 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8332 .voltage = {2700, 3600},
8333 },
8334
8335 {
8336 .vendor = "Nantronics",
8337 .name = "N25S16",
8338 .bustype = BUS_SPI,
8339 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8340 .model_id = NANTRONICS_N25S16,
8341 .total_size = 2048,
8342 .page_size = 256,
8343 .feature_bits = FEATURE_WRSR_WREN,
8344 .tested = TEST_UNTESTED,
8345 .probe = probe_spi_rdid,
8346 .probe_timing = TIMING_ZERO,
8347 .block_erasers =
8348 {
8349 {
8350 .eraseblocks = { {4 * 1024, 512} },
8351 .block_erase = spi_block_erase_20,
8352 }, {
8353 .eraseblocks = { {64 * 1024, 32} },
8354 .block_erase = spi_block_erase_d8,
8355 }, {
8356 .eraseblocks = { {2048 * 1024, 1} },
8357 .block_erase = spi_block_erase_60,
8358 }, {
8359 .eraseblocks = { {2048 * 1024, 1} },
8360 .block_erase = spi_block_erase_c7,
8361 }
8362 },
8363 .printlock = spi_prettyprint_status_register_default_bp3,
8364 .unlock = spi_disable_blockprotect_bp3_srwd,
8365 .write = spi_chip_write_256,
8366 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8367 .voltage = {2700, 3600},
8368 },
8369
8370 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008371 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008372 .name = "Pm25LD256C",
8373 .bustype = BUS_SPI,
8374 .manufacture_id = PMC_ID,
8375 .model_id = PMC_PM25LD256C,
8376 .total_size = 32,
8377 .page_size = 256,
8378 .feature_bits = FEATURE_WRSR_WREN,
8379 .tested = TEST_UNTESTED,
8380 .probe = probe_spi_rdid,
8381 .probe_timing = TIMING_ZERO,
8382 .block_erasers =
8383 {
8384 {
8385 .eraseblocks = { {4 * 1024, 8} },
8386 .block_erase = spi_block_erase_20,
8387 }, {
8388 .eraseblocks = { {4 * 1024, 8} },
8389 .block_erase = spi_block_erase_d7,
8390 }, {
8391 .eraseblocks = { {32 * 1024, 1} },
8392 .block_erase = spi_block_erase_d8,
8393 }, {
8394 .eraseblocks = { {32 * 1024, 1} },
8395 .block_erase = spi_block_erase_60,
8396 }, {
8397 .eraseblocks = { {32 * 1024, 1} },
8398 .block_erase = spi_block_erase_c7,
8399 }
8400 },
8401 .printlock = spi_prettyprint_status_register_default_bp2,
8402 .unlock = spi_disable_blockprotect,
8403 .write = spi_chip_write_256,
8404 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8405 .voltage = {2700, 3600},
8406 },
8407 {
8408 .vendor = "PMC",
8409 .name = "Pm25LD512(C)",
8410 .bustype = BUS_SPI,
8411 .manufacture_id = PMC_ID,
8412 .model_id = PMC_PM25LD512,
8413 .total_size = 64,
8414 .page_size = 256,
8415 .feature_bits = FEATURE_WRSR_WREN,
8416 .tested = TEST_OK_PREW,
8417 .probe = probe_spi_rdid,
8418 .probe_timing = TIMING_ZERO,
8419 .block_erasers =
8420 {
8421 {
8422 .eraseblocks = { {4 * 1024, 16} },
8423 .block_erase = spi_block_erase_20,
8424 }, {
8425 .eraseblocks = { {4 * 1024, 16} },
8426 .block_erase = spi_block_erase_d7,
8427 }, {
8428 .eraseblocks = { {32 * 1024, 2} },
8429 .block_erase = spi_block_erase_d8,
8430 }, {
8431 .eraseblocks = { {64 * 1024, 1} },
8432 .block_erase = spi_block_erase_60,
8433 }, {
8434 .eraseblocks = { {64 * 1024, 1} },
8435 .block_erase = spi_block_erase_c7,
8436 }
8437 },
8438 .printlock = spi_prettyprint_status_register_default_bp2,
8439 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8440 .write = spi_chip_write_256,
8441 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8442 .voltage = {2300, 3600},
8443 },
8444
8445 {
8446 .vendor = "PMC",
8447 .name = "Pm25LD010(C)",
8448 .bustype = BUS_SPI,
8449 .manufacture_id = PMC_ID,
8450 .model_id = PMC_PM25LD010,
8451 .total_size = 128,
8452 .page_size = 256,
8453 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008454 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008455 .probe = probe_spi_rdid,
8456 .probe_timing = TIMING_ZERO,
8457 .block_erasers =
8458 {
8459 {
8460 .eraseblocks = { {4 * 1024, 32} },
8461 .block_erase = spi_block_erase_20,
8462 }, {
8463 .eraseblocks = { {4 * 1024, 32} },
8464 .block_erase = spi_block_erase_d7,
8465 }, {
8466 .eraseblocks = { {32 * 1024, 4} },
8467 .block_erase = spi_block_erase_d8,
8468 }, {
8469 .eraseblocks = { {128 * 1024, 1} },
8470 .block_erase = spi_block_erase_60,
8471 }, {
8472 .eraseblocks = { {128 * 1024, 1} },
8473 .block_erase = spi_block_erase_c7,
8474 }
8475 },
8476 .printlock = spi_prettyprint_status_register_default_bp2,
8477 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8478 .write = spi_chip_write_256,
8479 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8480 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8481 },
8482
8483 {
8484 .vendor = "PMC",
8485 .name = "Pm25LD020(C)",
8486 .bustype = BUS_SPI,
8487 .manufacture_id = PMC_ID,
8488 .model_id = PMC_PM25LD020,
8489 .total_size = 256,
8490 .page_size = 256,
8491 .feature_bits = FEATURE_WRSR_WREN,
8492 .tested = TEST_UNTESTED,
8493 .probe = probe_spi_rdid,
8494 .probe_timing = TIMING_ZERO,
8495 .block_erasers =
8496 {
8497 {
8498 .eraseblocks = { {4 * 1024, 64} },
8499 .block_erase = spi_block_erase_20,
8500 }, {
8501 .eraseblocks = { {4 * 1024, 64} },
8502 .block_erase = spi_block_erase_d7,
8503 }, {
8504 .eraseblocks = { {64 * 1024, 4} },
8505 .block_erase = spi_block_erase_d8,
8506 }, {
8507 .eraseblocks = { {256 * 1024, 1} },
8508 .block_erase = spi_block_erase_60,
8509 }, {
8510 .eraseblocks = { {256 * 1024, 1} },
8511 .block_erase = spi_block_erase_c7,
8512 }
8513 },
8514 .printlock = spi_prettyprint_status_register_default_bp2,
8515 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8516 .write = spi_chip_write_256,
8517 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8518 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8519 },
8520
8521 {
8522 .vendor = "PMC",
8523 .name = "Pm25LD040(C)",
8524 .bustype = BUS_SPI,
8525 .manufacture_id = PMC_ID,
8526 .model_id = PMC_PM25LV040,
8527 .total_size = 512,
8528 .page_size = 256,
8529 .feature_bits = FEATURE_WRSR_WREN,
8530 .tested = TEST_UNTESTED,
8531 .probe = probe_spi_rdid,
8532 .probe_timing = TIMING_ZERO,
8533 .block_erasers =
8534 {
8535 {
8536 .eraseblocks = { {4 * 1024, 128} },
8537 .block_erase = spi_block_erase_20,
8538 }, {
8539 .eraseblocks = { {4 * 1024, 128} },
8540 .block_erase = spi_block_erase_d7,
8541 }, {
8542 .eraseblocks = { {64 * 1024, 8} },
8543 .block_erase = spi_block_erase_d8,
8544 }, {
8545 .eraseblocks = { {512 * 1024, 1} },
8546 .block_erase = spi_block_erase_60,
8547 }, {
8548 .eraseblocks = { {512 * 1024, 1} },
8549 .block_erase = spi_block_erase_c7,
8550 }
8551 },
8552 .printlock = spi_prettyprint_status_register_default_bp2,
8553 .unlock = spi_disable_blockprotect,
8554 .write = spi_chip_write_256,
8555 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8556 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8557 },
8558
8559{
8560 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008561 .name = "Pm25LV512(A)",
8562 .bustype = BUS_SPI,
8563 .manufacture_id = PMC_ID,
8564 .model_id = PMC_PM25LV512,
8565 .total_size = 64,
8566 .page_size = 256,
8567 .feature_bits = FEATURE_WRSR_WREN,
8568 .tested = TEST_UNTESTED,
8569 .probe = probe_spi_res3,
8570 .probe_timing = TIMING_ZERO,
8571 .block_erasers =
8572 {
8573 {
8574 .eraseblocks = { {4 * 1024, 16} },
8575 .block_erase = spi_block_erase_d7,
8576 }, {
8577 .eraseblocks = { {32 * 1024, 2} },
8578 .block_erase = spi_block_erase_d8,
8579 }, {
8580 .eraseblocks = { {64 * 1024, 1} },
8581 .block_erase = spi_block_erase_c7,
8582 }
8583 },
8584 .printlock = spi_prettyprint_status_register_default_bp1,
8585 .unlock = spi_disable_blockprotect,
8586 .write = spi_chip_write_256,
8587 .read = spi_chip_read, /* Fast read (0x0B) supported */
8588 .voltage = {2700, 3600},
8589 },
8590
8591 {
8592 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008593 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008595 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008596 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008597 .total_size = 128,
8598 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008600 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008601 .probe = probe_spi_res3,
8602 .probe_timing = TIMING_ZERO,
8603 .block_erasers =
8604 {
8605 {
8606 .eraseblocks = { {4 * 1024, 32} },
8607 .block_erase = spi_block_erase_d7,
8608 }, {
8609 .eraseblocks = { {32 * 1024, 4} },
8610 .block_erase = spi_block_erase_d8,
8611 }, {
8612 .eraseblocks = { {128 * 1024, 1} },
8613 .block_erase = spi_block_erase_c7,
8614 }
8615 },
8616 .printlock = spi_prettyprint_status_register_default_bp1,
8617 .unlock = spi_disable_blockprotect,
8618 .write = spi_chip_write_256,
8619 .read = spi_chip_read, /* Fast read (0x0B) supported */
8620 .voltage = {2700, 3600},
8621 },
8622
8623 {
8624 .vendor = "PMC",
8625 .name = "Pm25LV010A",
8626 .bustype = BUS_SPI,
8627 .manufacture_id = PMC_ID,
8628 .model_id = PMC_PM25LV010,
8629 .total_size = 128,
8630 .page_size = 256,
8631 .feature_bits = FEATURE_WRSR_WREN,
8632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008634 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008635 .block_erasers =
8636 {
8637 {
8638 .eraseblocks = { {4 * 1024, 32} },
8639 .block_erase = spi_block_erase_d7,
8640 }, {
8641 .eraseblocks = { {32 * 1024, 4} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {128 * 1024, 1} },
8645 .block_erase = spi_block_erase_c7,
8646 }
8647 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008648 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008649 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008650 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008651 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008652 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008653 },
8654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008655 {
8656 .vendor = "PMC",
8657 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008660 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008661 .total_size = 256,
8662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008663 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008664 .tested = TEST_UNTESTED,
8665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008666 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = { {4 * 1024, 64} },
8671 .block_erase = spi_block_erase_d7,
8672 }, {
8673 .eraseblocks = { {64 * 1024, 4} },
8674 .block_erase = spi_block_erase_d8,
8675 }, {
8676 .eraseblocks = { {256 * 1024, 1} },
8677 .block_erase = spi_block_erase_c7,
8678 }
8679 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008680 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008681 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008682 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008683 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008684 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008685 },
8686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008687 {
8688 .vendor = "PMC",
8689 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008690 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008691 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008692 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008693 .total_size = 512,
8694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008695 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008696 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008698 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = { {4 * 1024, 128} },
8703 .block_erase = spi_block_erase_d7,
8704 }, {
8705 .eraseblocks = { {64 * 1024, 8} },
8706 .block_erase = spi_block_erase_d8,
8707 }, {
8708 .eraseblocks = { {512 * 1024, 1} },
8709 .block_erase = spi_block_erase_c7,
8710 }
8711 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008712 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008714 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008715 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008716 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008717 },
8718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008719 {
8720 .vendor = "PMC",
8721 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008722 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008723 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008724 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008725 .total_size = 1024,
8726 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008727 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 .tested = TEST_UNTESTED,
8729 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008730 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008731 .block_erasers =
8732 {
8733 {
8734 .eraseblocks = { {4 * 1024, 256} },
8735 .block_erase = spi_block_erase_d7,
8736 }, {
8737 .eraseblocks = { {4 * 1024, 256} },
8738 .block_erase = spi_block_erase_20,
8739 }, {
8740 .eraseblocks = { {64 * 1024, 16} },
8741 .block_erase = spi_block_erase_d8,
8742 }, {
8743 .eraseblocks = { {1024 * 1024, 1} },
8744 .block_erase = spi_block_erase_60,
8745 }, {
8746 .eraseblocks = { {1024 * 1024, 1} },
8747 .block_erase = spi_block_erase_c7,
8748 }
8749 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008750 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008751 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008752 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008753 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008754 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008755 },
8756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 {
8758 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008759 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008760 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008761 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008762 .model_id = PMC_PM25LV016B,
8763 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008764 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008765 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008766 .tested = TEST_UNTESTED,
8767 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008768 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008769 .block_erasers =
8770 {
8771 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008772 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008773 .block_erase = spi_block_erase_d7,
8774 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008775 .eraseblocks = { {4 * 1024, 512} },
8776 .block_erase = spi_block_erase_20,
8777 }, {
8778 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008779 .block_erase = spi_block_erase_d8,
8780 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008781 .eraseblocks = { {2 * 1024 * 1024, 1} },
8782 .block_erase = spi_block_erase_60,
8783 }, {
8784 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008785 .block_erase = spi_block_erase_c7,
8786 }
8787 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008788 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008789 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008790 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008791 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008792 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008793 },
8794
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008795 {
8796 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008797 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008798 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008799 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008800 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008801 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008802 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008803 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008804 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008805 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008806 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = {
8811 {128 * 1024, 1},
8812 {96 * 1024, 1},
8813 {8 * 1024, 2},
8814 {16 * 1024, 1},
8815 },
Sean Nelson35727f72010-01-28 23:55:12 +00008816 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008817 }, {
8818 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008819 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008820 },
8821 },
Sean Nelson35727f72010-01-28 23:55:12 +00008822 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008824 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008825 },
8826
8827 {
8828 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008829 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008830 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008831 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008832 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008833 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008834 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008835 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008836 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008837 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008838 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008839 .block_erasers =
8840 {
8841 {
8842 .eraseblocks = {
8843 {16 * 1024, 1},
8844 {8 * 1024, 2},
8845 {96 * 1024, 1},
8846 {128 * 1024, 1},
8847 },
Sean Nelson35727f72010-01-28 23:55:12 +00008848 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008849 }, {
8850 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008852 },
8853 },
Sean Nelson35727f72010-01-28 23:55:12 +00008854 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008856 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008857 },
8858
8859 {
8860 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008861 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008862 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008863 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008864 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008865 .total_size = 128,
8866 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008867 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008868 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008869 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008870 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008871 .block_erasers =
8872 {
8873 {
8874 .eraseblocks = { {4 * 1024, 32} },
8875 .block_erase = erase_sector_jedec,
8876 }, {
8877 .eraseblocks = { {64 * 1024, 2} },
8878 .block_erase = erase_block_jedec,
8879 }, {
8880 .eraseblocks = { {128 * 1024, 1} },
8881 .block_erase = erase_chip_block_jedec,
8882 }
8883 },
Sean Nelson35727f72010-01-28 23:55:12 +00008884 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008886 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008887 },
8888
8889 {
8890 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008891 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008892 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008893 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008894 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008895 .total_size = 256,
8896 .page_size = 4096,
8897 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8898 .tested = TEST_UNTESTED,
8899 .probe = probe_jedec,
8900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8901 .block_erasers =
8902 {
8903 {
8904 .eraseblocks = { {4 * 1024, 64} },
8905 .block_erase = erase_sector_jedec,
8906 }, {
8907 .eraseblocks = { {64 * 1024, 4} },
8908 .block_erase = erase_block_jedec,
8909 }, {
8910 .eraseblocks = { {256 * 1024, 1} },
8911 .block_erase = erase_chip_block_jedec,
8912 }
8913 },
8914 .write = write_jedec_1,
8915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008916 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008917 },
8918
8919 {
8920 .vendor = "PMC",
8921 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008922 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008923 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008924 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008925 .total_size = 512,
8926 .page_size = 4096,
8927 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008928 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008929 .probe = probe_jedec,
8930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8931 .block_erasers =
8932 {
8933 {
8934 .eraseblocks = { {4 * 1024, 128} },
8935 .block_erase = erase_sector_jedec,
8936 }, {
8937 .eraseblocks = { {64 * 1024, 8} },
8938 .block_erase = erase_block_jedec,
8939 }, {
8940 .eraseblocks = { {512 * 1024, 1} },
8941 .block_erase = erase_chip_block_jedec,
8942 }
8943 },
8944 .write = write_jedec_1,
8945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008946 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008947 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008948
8949 {
8950 .vendor = "PMC",
8951 .name = "Pm39LV512",
8952 .bustype = BUS_PARALLEL,
8953 .manufacture_id = PMC_ID_NOPREFIX,
8954 .model_id = PMC_PM39LV512,
8955 .total_size = 64,
8956 .page_size = 4096,
8957 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8958 .tested = TEST_OK_PREW,
8959 .probe = probe_jedec,
8960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8961 .block_erasers =
8962 {
8963 {
8964 .eraseblocks = { {4 * 1024, 16} },
8965 .block_erase = erase_sector_jedec,
8966 }, {
8967 .eraseblocks = { {64 * 1024, 1} },
8968 .block_erase = erase_block_jedec,
8969 }, {
8970 .eraseblocks = { {64 * 1024, 1} },
8971 .block_erase = erase_chip_block_jedec,
8972 }
8973 },
8974 .write = write_jedec_1,
8975 .read = read_memmapped,
8976 .voltage = {2700, 3600},
8977 },
8978
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008979 {
8980 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008982 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008983 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008984 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 .total_size = 256,
8986 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008987 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008988 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008989 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008990 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008991 .block_erasers =
8992 {
8993 {
8994 .eraseblocks = { {4 * 1024, 64} },
8995 .block_erase = erase_sector_jedec,
8996 }, {
8997 .eraseblocks = { {16 * 1024, 16} },
8998 .block_erase = erase_block_jedec,
8999 }, {
9000 .eraseblocks = { {256 * 1024, 1} },
9001 .block_erase = erase_chip_block_jedec,
9002 }
9003 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009004 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009005 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009006 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009007 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009008 },
9009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009010 {
9011 .vendor = "PMC",
9012 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009013 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009014 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009015 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 .total_size = 512,
9017 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009018 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009020 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009021 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009022 .block_erasers =
9023 {
9024 {
9025 .eraseblocks = { {4 * 1024, 128} },
9026 .block_erase = erase_sector_jedec,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 8} },
9029 .block_erase = erase_block_jedec,
9030 }, {
9031 .eraseblocks = { {512 * 1024, 1} },
9032 .block_erase = erase_chip_block_jedec,
9033 }
9034 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009035 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009036 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009038 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009039 },
9040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009041 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009042 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009043 .name = "LE25FW406A",
9044 .bustype = BUS_SPI,
9045 .manufacture_id = SANYO_ID,
9046 .model_id = SANYO_LE25FW406A,
9047 .total_size = 512,
9048 .page_size = 256,
9049 .feature_bits = FEATURE_WRSR_WREN,
9050 .tested = TEST_OK_PREW,
9051 .probe = probe_spi_res2,
9052 .probe_timing = TIMING_ZERO,
9053 .block_erasers = {
9054 {
9055 .eraseblocks = { {4 * 1024, 128} },
9056 .block_erase = spi_block_erase_d7,
9057 }, {
9058 .eraseblocks = { {64 * 1024, 8} },
9059 .block_erase = spi_block_erase_d8,
9060 }, {
9061 .eraseblocks = { {512 * 1024, 1} },
9062 .block_erase = spi_block_erase_c7,
9063 }
9064 },
9065 .printlock = spi_prettyprint_status_register_plain,
9066 .unlock = spi_disable_blockprotect,
9067 .write = spi_chip_write_256,
9068 .read = spi_chip_read,
9069 .voltage = {2700, 3600},
9070 },
9071
9072 {
9073 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009074 .name = "LE25FU406B",
9075 .bustype = BUS_SPI,
9076 .manufacture_id = SANYO_ID,
9077 .model_id = SANYO_LE25FU406B,
9078 .total_size = 512,
9079 .page_size = 256,
9080 .feature_bits = FEATURE_WRSR_WREN,
9081 .tested = TEST_OK_PREW,
9082 .probe = probe_spi_res2,
9083 .probe_timing = TIMING_ZERO,
9084 .block_erasers = {
9085 {
9086 .eraseblocks = { {4 * 1024, 128} },
9087 .block_erase = spi_block_erase_d7,
9088 }, {
9089 .eraseblocks = { {64 * 1024, 8} },
9090 .block_erase = spi_block_erase_d8,
9091 }, {
9092 .eraseblocks = { {512 * 1024, 1} },
9093 .block_erase = spi_block_erase_c7,
9094 }
9095 },
9096 .printlock = spi_prettyprint_status_register_default_bp2,
9097 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9098 .write = spi_chip_write_256,
9099 .read = spi_chip_read,
9100 .voltage = {2300, 3600},
9101 },
9102
9103 {
9104 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009105 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009106 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009107 .manufacture_id = SANYO_ID,
9108 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009109 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009110 .page_size = 256,
9111 .tested = TEST_UNTESTED,
9112 .probe = probe_spi_rdid,
9113 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009114 .block_erasers =
9115 {
9116 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009117 .eraseblocks = { {256, 1024} },
9118 .block_erase = spi_block_erase_db,
9119 }, {
9120 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009121 .block_erase = spi_block_erase_d8,
9122 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009123 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009124 .block_erase = spi_block_erase_c7,
9125 }
9126 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009127 .printlock = spi_prettyprint_status_register_default_welwip,
9128 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009129 .write = spi_chip_write_256,
9130 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009131 .voltage = {2700, 3600},
9132 },
9133
9134 {
9135 .vendor = "Sanyo",
9136 .name = "LE25FW403A",
9137 .bustype = BUS_SPI,
9138 .manufacture_id = SANYO_ID,
9139 .model_id = SANYO_LE25FW403A,
9140 .total_size = 512,
9141 .page_size = 256,
9142 .tested = TEST_UNTESTED,
9143 .probe = probe_spi_rdid,
9144 .probe_timing = TIMING_ZERO,
9145 .block_erasers = {
9146 {
9147 .eraseblocks = { {256, 2 * 1024} },
9148 .block_erase = spi_block_erase_db,
9149 }, {
9150 .eraseblocks = { {64 * 1024, 8} },
9151 .block_erase = spi_block_erase_d8,
9152 }, {
9153 .eraseblocks = { {512 * 1024, 1} },
9154 .block_erase = spi_block_erase_c7,
9155 }
9156 },
9157 .printlock = spi_prettyprint_status_register_default_welwip,
9158 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9159 .write = spi_chip_write_256,
9160 .read = spi_chip_read,
9161 .voltage = {2700, 3600},
9162 },
9163
9164 {
9165 .vendor = "Sanyo",
9166 .name = "LE25FW418A",
9167 .bustype = BUS_SPI,
9168 .manufacture_id = SANYO_ID,
9169 .model_id = SANYO_LE25FW418A,
9170 .total_size = 512,
9171 .page_size = 256,
9172 .feature_bits = FEATURE_WRSR_WREN,
9173 .tested = TEST_UNTESTED,
9174 .probe = probe_spi_res2,
9175 .probe_timing = TIMING_ZERO,
9176 .block_erasers = {
9177 {
9178 .eraseblocks = { {4 * 1024, 128} },
9179 .block_erase = spi_block_erase_d7,
9180 }, {
9181 .eraseblocks = { {64 * 1024, 8} },
9182 .block_erase = spi_block_erase_d8,
9183 }, {
9184 .eraseblocks = { {512 * 1024, 1} },
9185 .block_erase = spi_block_erase_c7,
9186 }
9187 },
9188 .printlock = spi_prettyprint_status_register_default_bp2,
9189 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9190 .write = spi_chip_write_256,
9191 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9192 .voltage = {2700, 3600},
9193 },
9194
9195 {
9196 .vendor = "Sanyo",
9197 .name = "LE25FW806",
9198 .bustype = BUS_SPI,
9199 .manufacture_id = SANYO_ID,
9200 .model_id = SANYO_LE25FW806,
9201 .total_size = 1024,
9202 .page_size = 256,
9203 .feature_bits = FEATURE_WRSR_WREN,
9204 .tested = TEST_UNTESTED,
9205 .probe = probe_spi_res2,
9206 .probe_timing = TIMING_ZERO,
9207 .block_erasers = {
9208 {
9209 .eraseblocks = { {4 * 1024, 256} },
9210 .block_erase = spi_block_erase_20,
9211 }, {
9212 .eraseblocks = { {4 * 1024, 256} },
9213 .block_erase = spi_block_erase_d7,
9214 }, {
9215 .eraseblocks = { {64 * 1024, 16} },
9216 .block_erase = spi_block_erase_d8,
9217 }, {
9218 .eraseblocks = { {1024 * 1024, 1} },
9219 .block_erase = spi_block_erase_c7,
9220 }
9221 },
9222 .printlock = spi_prettyprint_status_register_default_bp2,
9223 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9224 .write = spi_chip_write_256,
9225 .read = spi_chip_read,
9226 .voltage = {2700, 3600},
9227 },
9228
9229 {
9230 .vendor = "Sanyo",
9231 .name = "LE25FW808",
9232 .bustype = BUS_SPI,
9233 .manufacture_id = SANYO_ID,
9234 .model_id = SANYO_LE25FW808,
9235 .total_size = 1024,
9236 .page_size = 256,
9237 .feature_bits = FEATURE_WRSR_WREN,
9238 .tested = TEST_UNTESTED,
9239 .probe = probe_spi_res2,
9240 .probe_timing = TIMING_ZERO,
9241 .block_erasers = {
9242 {
9243 .eraseblocks = { {8 * 1024, 128} },
9244 .block_erase = spi_block_erase_d7,
9245 }, {
9246 .eraseblocks = { {64 * 1024, 16} },
9247 .block_erase = spi_block_erase_d8,
9248 }, {
9249 .eraseblocks = { {1024 * 1024, 1} },
9250 .block_erase = spi_block_erase_c7,
9251 }
9252 },
9253 .printlock = spi_prettyprint_status_register_default_bp2,
9254 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9255 .write = spi_chip_write_256,
9256 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9257 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009258 },
9259
9260 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009261 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009262 .name = "LH28F008BJT-BTLZ1",
9263 .bustype = BUS_PARALLEL,
9264 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009265 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009266 .total_size = 1024,
9267 .page_size = 64 * 1024,
9268 .tested = TEST_OK_PREW,
9269 .probe = probe_82802ab,
9270 .probe_timing = TIMING_ZERO,
9271 .block_erasers =
9272 {
9273 {
9274 .eraseblocks = {
9275 {8 * 1024, 8},
9276 {64 * 1024, 15}
9277 },
9278 .block_erase = erase_block_82802ab,
9279 }, {
9280 .eraseblocks = { {1024 * 1024, 1} },
9281 .block_erase = erase_sector_49lfxxxc,
9282 }
9283 },
9284 .unlock = unlock_lh28f008bjt,
9285 .write = write_82802ab,
9286 .read = read_memmapped,
9287 .voltage = {2700, 3600},
9288 },
9289
9290 {
9291 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009292 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009293 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009294 .manufacture_id = SHARP_ID,
9295 .model_id = SHARP_LHF00L04,
9296 .total_size = 1024,
9297 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009298 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009299 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009300 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009301 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009302 .block_erasers =
9303 {
9304 {
9305 .eraseblocks = {
9306 {64 * 1024, 15},
9307 {8 * 1024, 8}
9308 },
Sean Nelson28accc22010-03-19 18:47:06 +00009309 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009310 }, {
9311 .eraseblocks = {
9312 {1024 * 1024, 1}
9313 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009314 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009315 },
9316 },
Sean Nelson28accc22010-03-19 18:47:06 +00009317 .unlock = unlock_82802ab,
9318 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009321 },
9322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009323 {
9324 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009325 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009326 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009327 .manufacture_id = SPANSION_ID,
9328 .model_id = SPANSION_S25FL004A,
9329 .total_size = 512,
9330 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009331 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009332 .tested = TEST_UNTESTED,
9333 .probe = probe_spi_rdid,
9334 .probe_timing = TIMING_ZERO,
9335 .block_erasers =
9336 {
9337 {
9338 .eraseblocks = { {64 * 1024, 8} },
9339 .block_erase = spi_block_erase_d8,
9340 }, {
9341 .eraseblocks = { {512 * 1024, 1} },
9342 .block_erase = spi_block_erase_c7,
9343 }
9344 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009345 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009346 .unlock = spi_disable_blockprotect,
9347 .write = spi_chip_write_256,
9348 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009349 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009350 },
9351
9352 {
9353 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009354 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009355 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009356 .manufacture_id = SPANSION_ID,
9357 .model_id = SPANSION_S25FL008A,
9358 .total_size = 1024,
9359 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009360 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009361 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009362 .probe = probe_spi_rdid,
9363 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009364 .block_erasers =
9365 {
9366 {
9367 .eraseblocks = { {64 * 1024, 16} },
9368 .block_erase = spi_block_erase_d8,
9369 }, {
9370 .eraseblocks = { {1024 * 1024, 1} },
9371 .block_erase = spi_block_erase_c7,
9372 }
9373 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009374 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009375 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009376 .write = spi_chip_write_256,
9377 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009378 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009379 },
9380
9381 {
9382 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009383 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009384 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009385 .manufacture_id = SPANSION_ID,
9386 .model_id = SPANSION_S25FL016A,
9387 .total_size = 2048,
9388 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009389 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009390 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009391 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009392 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009393 .block_erasers =
9394 {
9395 {
9396 .eraseblocks = { {64 * 1024, 32} },
9397 .block_erase = spi_block_erase_d8,
9398 }, {
9399 .eraseblocks = { {2 * 1024 * 1024, 1} },
9400 .block_erase = spi_block_erase_c7,
9401 }
9402 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009403 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009404 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009405 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009406 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009407 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009408 },
9409
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009410 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009411 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009412 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009413 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009414 .manufacture_id = SPANSION_ID,
9415 .model_id = SPANSION_S25FL032A,
9416 .total_size = 4096,
9417 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009418 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009419 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009420 .probe = probe_spi_rdid,
9421 .probe_timing = TIMING_ZERO,
9422 .block_erasers =
9423 {
9424 {
9425 .eraseblocks = { {64 * 1024, 64} },
9426 .block_erase = spi_block_erase_d8,
9427 }, {
9428 .eraseblocks = { {4 * 1024 * 1024, 1} },
9429 .block_erase = spi_block_erase_c7,
9430 }
9431 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009432 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009433 .unlock = spi_disable_blockprotect,
9434 .write = spi_chip_write_256,
9435 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009436 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009437 },
9438
9439 {
9440 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009441 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009442 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009443 .manufacture_id = SPANSION_ID,
9444 .model_id = SPANSION_S25FL064A,
9445 .total_size = 8192,
9446 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009447 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009448 .tested = TEST_OK_PREW,
9449 .probe = probe_spi_rdid,
9450 .probe_timing = TIMING_ZERO,
9451 .block_erasers =
9452 {
9453 {
9454 .eraseblocks = { {64 * 1024, 128} },
9455 .block_erase = spi_block_erase_d8,
9456 }, {
9457 .eraseblocks = { {8 * 1024 * 1024, 1} },
9458 .block_erase = spi_block_erase_c7,
9459 }
9460 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009461 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009462 .unlock = spi_disable_blockprotect,
9463 .write = spi_chip_write_256,
9464 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009465 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009466 },
9467
9468 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009469 .vendor = "Spansion",
9470 .name = "S25FL204K",
9471 .bustype = BUS_SPI,
9472 .manufacture_id = SPANSION_ID,
9473 .model_id = SPANSION_S25FL204,
9474 .total_size = 512,
9475 .page_size = 256,
9476 .feature_bits = FEATURE_WRSR_WREN,
9477 .tested = TEST_UNTESTED,
9478 .probe = probe_spi_rdid,
9479 .probe_timing = TIMING_ZERO,
9480 .block_erasers = {
9481 {
9482 .eraseblocks = { {4 * 1024, 128} },
9483 .block_erase = spi_block_erase_20,
9484 }, {
9485 .eraseblocks = { {64 * 1024, 8} },
9486 .block_erase = spi_block_erase_d8,
9487 }, {
9488 .eraseblocks = { { 512 * 1024, 1} },
9489 .block_erase = spi_block_erase_60,
9490 }, {
9491 .eraseblocks = { { 512 * 1024, 1} },
9492 .block_erase = spi_block_erase_c7,
9493 }
9494 },
9495 .printlock = spi_prettyprint_status_register_default_bp3,
9496 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9497 .write = spi_chip_write_256,
9498 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9499 .voltage = {2700, 3600},
9500 },
9501
9502 {
9503 .vendor = "Spansion",
9504 .name = "S25FL208K",
9505 .bustype = BUS_SPI,
9506 .manufacture_id = SPANSION_ID,
9507 .model_id = SPANSION_S25FL208,
9508 .total_size = 1024,
9509 .page_size = 256,
9510 .feature_bits = FEATURE_WRSR_WREN,
9511 .tested = TEST_UNTESTED,
9512 .probe = probe_spi_rdid,
9513 .probe_timing = TIMING_ZERO,
9514 .block_erasers = {
9515 {
9516 .eraseblocks = { {4 * 1024, 256} },
9517 .block_erase = spi_block_erase_20,
9518 }, {
9519 .eraseblocks = { {64 * 1024, 16} },
9520 .block_erase = spi_block_erase_d8,
9521 }, {
9522 .eraseblocks = { { 1024 * 1024, 1} },
9523 .block_erase = spi_block_erase_60,
9524 }, {
9525 .eraseblocks = { { 1024 * 1024, 1} },
9526 .block_erase = spi_block_erase_c7,
9527 }
9528 },
9529 .printlock = spi_prettyprint_status_register_default_bp3,
9530 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9531 .write = spi_chip_write_256,
9532 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9533 .voltage = {2700, 3600},
9534 },
9535
9536 {
9537 .vendor = "Spansion",
9538 .name = "S25FL116K/S25FL216K",
9539 .bustype = BUS_SPI,
9540 .manufacture_id = SPANSION_ID,
9541 .model_id = SPANSION_S25FL216,
9542 .total_size = 2048,
9543 .page_size = 256,
9544 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9546 .tested = TEST_UNTESTED,
9547 .probe = probe_spi_rdid,
9548 .probe_timing = TIMING_ZERO,
9549 .block_erasers = {
9550 {
9551 .eraseblocks = { {4 * 1024, 512} },
9552 .block_erase = spi_block_erase_20,
9553 }, {
9554 .eraseblocks = { {64 * 1024, 32} },
9555 .block_erase = spi_block_erase_d8,
9556 }, {
9557 .eraseblocks = { { 2048 * 1024, 1} },
9558 .block_erase = spi_block_erase_60,
9559 }, {
9560 .eraseblocks = { { 2048 * 1024, 1} },
9561 .block_erase = spi_block_erase_c7,
9562 }
9563 },
9564 .printlock = spi_prettyprint_status_register_default_bp3,
9565 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9566 .write = spi_chip_write_256,
9567 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9568 .voltage = {2700, 3600},
9569 },
9570
9571 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009572 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009573 .name = "S25FL132K",
9574 .bustype = BUS_SPI,
9575 .manufacture_id = SPANSION_ID,
9576 .model_id = SPANSION_S25FL132K,
9577 .total_size = 4096,
9578 .page_size = 256,
9579 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9581 .tested = TEST_UNTESTED,
9582 .probe = probe_spi_rdid,
9583 .probe_timing = TIMING_ZERO,
9584 .block_erasers = {
9585 {
9586 .eraseblocks = { {4 * 1024, 1024} },
9587 .block_erase = spi_block_erase_20,
9588 }, {
9589 .eraseblocks = { {64 * 1024, 64} },
9590 .block_erase = spi_block_erase_d8,
9591 }, {
9592 .eraseblocks = { { 4096 * 1024, 1} },
9593 .block_erase = spi_block_erase_60,
9594 }, {
9595 .eraseblocks = { { 4096 * 1024, 1} },
9596 .block_erase = spi_block_erase_c7,
9597 }
9598 },
9599 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9600 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9601 .write = spi_chip_write_256,
9602 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9603 .voltage = {2700, 3600},
9604 },
9605
9606 {
9607 .vendor = "Spansion",
9608 .name = "S25FL164K",
9609 .bustype = BUS_SPI,
9610 .manufacture_id = SPANSION_ID,
9611 .model_id = SPANSION_S25FL164K,
9612 .total_size = 8192,
9613 .page_size = 256,
9614 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9615 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9616 .tested = TEST_OK_PREW,
9617 .probe = probe_spi_rdid,
9618 .probe_timing = TIMING_ZERO,
9619 .block_erasers = {
9620 {
9621 .eraseblocks = { {4 * 1024, 2048} },
9622 .block_erase = spi_block_erase_20,
9623 }, {
9624 .eraseblocks = { {64 * 1024, 128} },
9625 .block_erase = spi_block_erase_d8,
9626 }, {
9627 .eraseblocks = { { 8192 * 1024, 1} },
9628 .block_erase = spi_block_erase_60,
9629 }, {
9630 .eraseblocks = { { 8192 * 1024, 1} },
9631 .block_erase = spi_block_erase_c7,
9632 }
9633 },
9634 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9635 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9636 .write = spi_chip_write_256,
9637 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9638 .voltage = {2700, 3600},
9639 },
9640
9641 {
9642 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009643 .name = "S25FL128S......0", /* uniform 256kB sectors */
9644 .bustype = BUS_SPI,
9645 .manufacture_id = SPANSION_ID,
9646 .model_id = SPANSION_S25FL128,
9647 .total_size = 16384,
9648 .page_size = 256,
9649 /* supports 4B addressing */
9650 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9652 .tested = TEST_UNTESTED,
9653 .probe = probe_spi_rdid,
9654 .probe_timing = TIMING_ZERO,
9655 .block_erasers = {
9656 {
9657 .eraseblocks = { {4 * 1024, 4096} },
9658 .block_erase = spi_block_erase_20,
9659 }, {
9660 .eraseblocks = { {256 * 1024, 64} },
9661 .block_erase = spi_block_erase_d8,
9662 }, {
9663 .eraseblocks = { { 16384 * 1024, 1} },
9664 .block_erase = spi_block_erase_60,
9665 }, {
9666 .eraseblocks = { { 16384 * 1024, 1} },
9667 .block_erase = spi_block_erase_c7,
9668 }
9669 },
9670 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9671 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9672 .write = spi_chip_write_256, /* Multi I/O supported */
9673 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9674 .voltage = {2700, 3600},
9675 },
9676
9677 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009678 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009679 .name = "SST25LF020A",
9680 .bustype = BUS_SPI,
9681 .manufacture_id = SST_ID,
9682 .model_id = SST_SST25VF020_REMS,
9683 .total_size = 256,
9684 .page_size = 256,
9685 .feature_bits = FEATURE_WRSR_EWSR,
9686 .tested = TEST_OK_PREW,
9687 .probe = probe_spi_rems,
9688 .probe_timing = TIMING_ZERO,
9689 .block_erasers =
9690 {
9691 {
9692 .eraseblocks = { {4 * 1024, 64} },
9693 .block_erase = spi_block_erase_20,
9694 }, {
9695 .eraseblocks = { {32 * 1024, 8} },
9696 .block_erase = spi_block_erase_52,
9697 }, {
9698 .eraseblocks = { {256 * 1024, 1} },
9699 .block_erase = spi_block_erase_60,
9700 },
9701 },
9702 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9703 .unlock = spi_disable_blockprotect,
9704 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9705 .read = spi_chip_read, /* Fast read (0x0B) supported */
9706 .voltage = {2700, 3600},
9707 },
9708
9709 {
9710 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009711 .name = "SST25LF040A",
9712 .bustype = BUS_SPI,
9713 .manufacture_id = SST_ID,
9714 .model_id = SST_SST25VF040_REMS,
9715 .total_size = 512,
9716 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009717 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009718 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009719 .probe = probe_spi_res2,
9720 .probe_timing = TIMING_ZERO,
9721 .block_erasers =
9722 {
9723 {
9724 .eraseblocks = { {4 * 1024, 128} },
9725 .block_erase = spi_block_erase_20,
9726 }, {
9727 .eraseblocks = { {32 * 1024, 16} },
9728 .block_erase = spi_block_erase_52,
9729 }, {
9730 .eraseblocks = { {512 * 1024, 1} },
9731 .block_erase = spi_block_erase_60,
9732 },
9733 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009734 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009735 .unlock = spi_disable_blockprotect,
9736 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9737 .read = spi_chip_read,
9738 .voltage = {3000, 3600},
9739 },
9740
9741 {
9742 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009743 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009744 .bustype = BUS_SPI,
9745 .manufacture_id = SST_ID,
9746 .model_id = SST_SST25VF080_REMS,
9747 .total_size = 1024,
9748 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009749 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009750 .tested = TEST_UNTESTED,
9751 .probe = probe_spi_res2,
9752 .probe_timing = TIMING_ZERO,
9753 .block_erasers =
9754 {
9755 {
9756 .eraseblocks = { {4 * 1024, 256} },
9757 .block_erase = spi_block_erase_20,
9758 }, {
9759 .eraseblocks = { {32 * 1024, 32} },
9760 .block_erase = spi_block_erase_52,
9761 }, {
9762 .eraseblocks = { {1024 * 1024, 1} },
9763 .block_erase = spi_block_erase_60,
9764 },
9765 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009766 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009767 .unlock = spi_disable_blockprotect,
9768 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9769 .read = spi_chip_read,
9770 .voltage = {3000, 3600},
9771 },
9772
9773 {
9774 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009775 .name = "SST25VF512A",
9776 .bustype = BUS_SPI,
9777 .manufacture_id = SST_ID,
9778 .model_id = SST_SST25VF512A_REMS,
9779 .total_size = 64,
9780 .page_size = 256,
9781 .feature_bits = FEATURE_WRSR_EWSR,
9782 .tested = TEST_OK_PREW,
9783 .probe = probe_spi_rems,
9784 .probe_timing = TIMING_ZERO,
9785 .block_erasers =
9786 {
9787 {
9788 .eraseblocks = { {4 * 1024, 16} },
9789 .block_erase = spi_block_erase_20,
9790 }, {
9791 .eraseblocks = { {32 * 1024, 2} },
9792 .block_erase = spi_block_erase_52,
9793 }, {
9794 .eraseblocks = { {32 * 1024, 2} },
9795 .block_erase = spi_block_erase_d8,
9796 }, {
9797 .eraseblocks = { {64 * 1024, 1} },
9798 .block_erase = spi_block_erase_60,
9799 }, {
9800 .eraseblocks = { {64 * 1024, 1} },
9801 .block_erase = spi_block_erase_c7,
9802 },
9803 },
9804 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9805 .unlock = spi_disable_blockprotect,
9806 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9807 .read = spi_chip_read, /* Fast read (0x0B) supported */
9808 .voltage = {2700, 3600},
9809 },
9810
9811 {
9812 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009813 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009814 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009815 .manufacture_id = SST_ID,
9816 .model_id = SST_SST25VF010_REMS,
9817 .total_size = 128,
9818 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009819 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009820 .tested = TEST_OK_PREW,
9821 .probe = probe_spi_rems,
9822 .probe_timing = TIMING_ZERO,
9823 .block_erasers =
9824 {
9825 {
9826 .eraseblocks = { {4 * 1024, 32} },
9827 .block_erase = spi_block_erase_20,
9828 }, {
9829 .eraseblocks = { {32 * 1024, 4} },
9830 .block_erase = spi_block_erase_52,
9831 }, {
Cory Henderson370f5822013-10-19 23:09:16 +00009832 .eraseblocks = { {32 * 1024, 4} },
9833 .block_erase = spi_block_erase_d8,
9834 }, {
Mark Marshall90021f22010-12-03 14:48:11 +00009835 .eraseblocks = { {128 * 1024, 1} },
9836 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +00009837 }, {
9838 .eraseblocks = { {128 * 1024, 1} },
9839 .block_erase = spi_block_erase_c7,
9840 },
9841 },
9842 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9843 .unlock = spi_disable_blockprotect,
9844 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9845 .read = spi_chip_read, /* Fast read (0x0B) supported */
9846 .voltage = {2700, 3600},
9847 },
9848
9849 {
9850 .vendor = "SST",
9851 .name = "SST25VF020",
9852 .bustype = BUS_SPI,
9853 .manufacture_id = SST_ID,
9854 .model_id = SST_SST25VF020_REMS,
9855 .total_size = 256,
9856 .page_size = 256,
9857 .feature_bits = FEATURE_WRSR_EWSR,
9858 .tested = TEST_UNTESTED,
9859 .probe = probe_spi_rems,
9860 .probe_timing = TIMING_ZERO,
9861 .block_erasers =
9862 {
9863 {
9864 .eraseblocks = { {4 * 1024, 64} },
9865 .block_erase = spi_block_erase_20,
9866 }, {
9867 .eraseblocks = { {32 * 1024, 8} },
9868 .block_erase = spi_block_erase_52,
9869 }, {
9870 .eraseblocks = { {256 * 1024, 1} },
9871 .block_erase = spi_block_erase_60,
9872 },
9873 },
9874 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9875 .unlock = spi_disable_blockprotect,
9876 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9877 .read = spi_chip_read, /* only */
9878 .voltage = {2700, 3600},
9879 },
9880
9881 {
9882 .vendor = "SST",
9883 .name = "SST25VF020B",
9884 .bustype = BUS_SPI,
9885 .manufacture_id = SST_ID,
9886 .model_id = SST_SST25VF020B,
9887 .total_size = 256,
9888 .page_size = 256,
9889 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009890 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +00009891 .probe = probe_spi_rdid,
9892 .probe_timing = TIMING_ZERO,
9893 .block_erasers =
9894 {
9895 {
9896 .eraseblocks = { {4 * 1024, 64} },
9897 .block_erase = spi_block_erase_20,
9898 }, {
9899 .eraseblocks = { {32 * 1024, 8} },
9900 .block_erase = spi_block_erase_52,
9901 }, {
9902 .eraseblocks = { {64 * 1024, 4} },
9903 .block_erase = spi_block_erase_d8,
9904 }, {
9905 .eraseblocks = { {256 * 1024, 1} },
9906 .block_erase = spi_block_erase_60,
9907 }, {
9908 .eraseblocks = { {256 * 1024, 1} },
9909 .block_erase = spi_block_erase_c7,
9910 },
9911 },
9912 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
9913 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
9914 .write = spi_aai_write, /* AAI supported (0xAD) */
9915 .read = spi_chip_read, /* Fast read (0x0B) supported */
9916 .voltage = {2700, 3600},
9917 },
9918
9919 {
9920 .vendor = "SST",
9921 .name = "SST25VF040",
9922 .bustype = BUS_SPI,
9923 .manufacture_id = SST_ID,
9924 .model_id = SST_SST25VF040_REMS,
9925 .total_size = 512,
9926 .page_size = 256,
9927 .feature_bits = FEATURE_WRSR_EWSR,
9928 .tested = TEST_OK_PR,
9929 .probe = probe_spi_rems,
9930 .probe_timing = TIMING_ZERO,
9931 .block_erasers =
9932 {
9933 {
9934 .eraseblocks = { {4 * 1024, 128} },
9935 .block_erase = spi_block_erase_20,
9936 }, {
9937 .eraseblocks = { {32 * 1024, 16} },
9938 .block_erase = spi_block_erase_52,
9939 }, {
9940 .eraseblocks = { {512 * 1024, 1} },
9941 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +00009942 },
9943 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009944 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009945 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +00009946 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9947 .read = spi_chip_read,
9948 .voltage = {2700, 3600},
9949 },
9950
9951 {
9952 .vendor = "SST",
9953 .name = "SST25VF040B",
9954 .bustype = BUS_SPI,
9955 .manufacture_id = SST_ID,
9956 .model_id = SST_SST25VF040B,
9957 .total_size = 512,
9958 .page_size = 256,
9959 .feature_bits = FEATURE_WRSR_EWSR,
9960 .tested = TEST_OK_PREW,
9961 .probe = probe_spi_rdid,
9962 .probe_timing = TIMING_ZERO,
9963 .block_erasers =
9964 {
9965 {
9966 .eraseblocks = { {4 * 1024, 128} },
9967 .block_erase = spi_block_erase_20,
9968 }, {
9969 .eraseblocks = { {32 * 1024, 16} },
9970 .block_erase = spi_block_erase_52,
9971 }, {
9972 .eraseblocks = { {64 * 1024, 8} },
9973 .block_erase = spi_block_erase_d8,
9974 }, {
9975 .eraseblocks = { {512 * 1024, 1} },
9976 .block_erase = spi_block_erase_60,
9977 }, {
9978 .eraseblocks = { {512 * 1024, 1} },
9979 .block_erase = spi_block_erase_c7,
9980 },
9981 },
9982 .printlock = spi_prettyprint_status_register_sst25vf040b,
9983 .unlock = spi_disable_blockprotect,
9984 .write = spi_aai_write, /* AAI supported (0xAD) */
9985 .read = spi_chip_read, /* Fast read (0x0B) supported */
9986 .voltage = {2700, 3600},
9987 },
9988
9989 {
9990 .vendor = "SST",
9991 .name = "SST25VF040B.REMS",
9992 .bustype = BUS_SPI,
9993 .manufacture_id = SST_ID,
9994 .model_id = SST_SST25VF040B_REMS,
9995 .total_size = 512,
9996 .page_size = 256,
9997 .feature_bits = FEATURE_WRSR_EWSR,
9998 .tested = TEST_OK_PREW,
9999 .probe = probe_spi_rems,
10000 .probe_timing = TIMING_ZERO,
10001 .block_erasers =
10002 {
10003 {
10004 .eraseblocks = { {4 * 1024, 128} },
10005 .block_erase = spi_block_erase_20,
10006 }, {
10007 .eraseblocks = { {32 * 1024, 16} },
10008 .block_erase = spi_block_erase_52,
10009 }, {
10010 .eraseblocks = { {64 * 1024, 8} },
10011 .block_erase = spi_block_erase_d8,
10012 }, {
10013 .eraseblocks = { {512 * 1024, 1} },
10014 .block_erase = spi_block_erase_60,
10015 }, {
10016 .eraseblocks = { {512 * 1024, 1} },
10017 .block_erase = spi_block_erase_c7,
10018 },
10019 },
10020 .printlock = spi_prettyprint_status_register_sst25vf040b,
10021 .unlock = spi_disable_blockprotect,
10022 .write = spi_aai_write,
10023 .read = spi_chip_read,
10024 .voltage = {2700, 3600},
10025 },
10026
10027 {
10028 .vendor = "SST",
10029 .name = "SST25VF080B",
10030 .bustype = BUS_SPI,
10031 .manufacture_id = SST_ID,
10032 .model_id = SST_SST25VF080B,
10033 .total_size = 1024,
10034 .page_size = 256,
10035 .feature_bits = FEATURE_WRSR_EWSR,
10036 .tested = TEST_OK_PREW,
10037 .probe = probe_spi_rdid,
10038 .probe_timing = TIMING_ZERO,
10039 .block_erasers =
10040 {
10041 {
10042 .eraseblocks = { {4 * 1024, 256} },
10043 .block_erase = spi_block_erase_20,
10044 }, {
10045 .eraseblocks = { {32 * 1024, 32} },
10046 .block_erase = spi_block_erase_52,
10047 }, {
10048 .eraseblocks = { {64 * 1024, 16} },
10049 .block_erase = spi_block_erase_d8,
10050 }, {
10051 .eraseblocks = { {1024 * 1024, 1} },
10052 .block_erase = spi_block_erase_60,
10053 }, {
10054 .eraseblocks = { {1024 * 1024, 1} },
10055 .block_erase = spi_block_erase_c7,
10056 },
10057 },
10058 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
10059 .unlock = spi_disable_blockprotect,
10060 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000010061 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010062 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010063 },
10064
10065 {
10066 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010067 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010068 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010069 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010070 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010071 .total_size = 2048,
10072 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010073 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010074 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010075 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010076 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010077 .block_erasers =
10078 {
10079 {
10080 .eraseblocks = { {4 * 1024, 512} },
10081 .block_erase = spi_block_erase_20,
10082 }, {
10083 .eraseblocks = { {32 * 1024, 64} },
10084 .block_erase = spi_block_erase_52,
10085 }, {
10086 .eraseblocks = { {64 * 1024, 32} },
10087 .block_erase = spi_block_erase_d8,
10088 }, {
10089 .eraseblocks = { {2 * 1024 * 1024, 1} },
10090 .block_erase = spi_block_erase_60,
10091 }, {
10092 .eraseblocks = { {2 * 1024 * 1024, 1} },
10093 .block_erase = spi_block_erase_c7,
10094 },
10095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010096 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010097 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010098 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010100 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010101 },
10102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010103 {
10104 .vendor = "SST",
10105 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010106 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010107 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010108 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010109 .total_size = 4096,
10110 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010111 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010112 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010114 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010115 .block_erasers =
10116 {
10117 {
10118 .eraseblocks = { {4 * 1024, 1024} },
10119 .block_erase = spi_block_erase_20,
10120 }, {
10121 .eraseblocks = { {32 * 1024, 128} },
10122 .block_erase = spi_block_erase_52,
10123 }, {
10124 .eraseblocks = { {64 * 1024, 64} },
10125 .block_erase = spi_block_erase_d8,
10126 }, {
10127 .eraseblocks = { {4 * 1024 * 1024, 1} },
10128 .block_erase = spi_block_erase_60,
10129 }, {
10130 .eraseblocks = { {4 * 1024 * 1024, 1} },
10131 .block_erase = spi_block_erase_c7,
10132 },
10133 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010134 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010135 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010136 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010137 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010138 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010139 },
10140
10141 {
10142 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010143 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010144 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010145 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010146 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010147 .total_size = 8192,
10148 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010149 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010150 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010151 .probe = probe_spi_rdid,
10152 .probe_timing = TIMING_ZERO,
10153 .block_erasers =
10154 {
10155 {
10156 .eraseblocks = { {4 * 1024, 2048} },
10157 .block_erase = spi_block_erase_20,
10158 }, {
10159 .eraseblocks = { {32 * 1024, 256} },
10160 .block_erase = spi_block_erase_52,
10161 }, {
10162 .eraseblocks = { {64 * 1024, 128} },
10163 .block_erase = spi_block_erase_d8,
10164 }, {
10165 .eraseblocks = { {8 * 1024 * 1024, 1} },
10166 .block_erase = spi_block_erase_60,
10167 }, {
10168 .eraseblocks = { {8 * 1024 * 1024, 1} },
10169 .block_erase = spi_block_erase_c7,
10170 },
10171 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010172 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010173 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010174 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010175 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010176 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010177 },
10178
10179 {
10180 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010181 .name = "SST25WF512",
10182 .bustype = BUS_SPI,
10183 .manufacture_id = SST_ID,
10184 .model_id = SST_SST25WF512,
10185 .total_size = 64,
10186 .page_size = 256,
10187 .feature_bits = FEATURE_WRSR_EITHER,
10188 .tested = TEST_UNTESTED,
10189 .probe = probe_spi_rdid,
10190 .probe_timing = TIMING_ZERO,
10191 .block_erasers =
10192 {
10193 {
10194 .eraseblocks = { {4 * 1024, 16} },
10195 .block_erase = spi_block_erase_20,
10196 }, {
10197 .eraseblocks = { {32 * 1024, 2} },
10198 .block_erase = spi_block_erase_52,
10199 }, {
10200 .eraseblocks = { {1024 * 64, 1} },
10201 .block_erase = spi_block_erase_60,
10202 }, {
10203 .eraseblocks = { {1024 * 64, 1} },
10204 .block_erase = spi_block_erase_c7,
10205 },
10206 },
Jason Harper43ddef02014-05-04 00:55:24 +000010207 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10208 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010209 .write = spi_aai_write,
10210 .read = spi_chip_read, /* Fast read (0x0B) supported */
10211 .voltage = {1650, 1950},
10212 },
10213
10214 {
10215 .vendor = "SST",
10216 .name = "SST25WF010",
10217 .bustype = BUS_SPI,
10218 .manufacture_id = SST_ID,
10219 .model_id = SST_SST25WF010,
10220 .total_size = 128,
10221 .page_size = 256,
10222 .feature_bits = FEATURE_WRSR_EITHER,
10223 .tested = TEST_UNTESTED,
10224 .probe = probe_spi_rdid,
10225 .probe_timing = TIMING_ZERO,
10226 .block_erasers =
10227 {
10228 {
10229 .eraseblocks = { {4 * 1024, 32} },
10230 .block_erase = spi_block_erase_20,
10231 }, {
10232 .eraseblocks = { {32 * 1024, 4} },
10233 .block_erase = spi_block_erase_52,
10234 }, {
10235 .eraseblocks = { {1024 * 128, 1} },
10236 .block_erase = spi_block_erase_60,
10237 }, {
10238 .eraseblocks = { {1024 * 128, 1} },
10239 .block_erase = spi_block_erase_c7,
10240 },
10241 },
Jason Harper43ddef02014-05-04 00:55:24 +000010242 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10243 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010244 .write = spi_aai_write,
10245 .read = spi_chip_read, /* Fast read (0x0B) supported */
10246 .voltage = {1650, 1950},
10247 },
10248
10249 {
10250 .vendor = "SST",
10251 .name = "SST25WF020",
10252 .bustype = BUS_SPI,
10253 .manufacture_id = SST_ID,
10254 .model_id = SST_SST25WF020,
10255 .total_size = 256,
10256 .page_size = 256,
10257 .feature_bits = FEATURE_WRSR_EITHER,
10258 .tested = TEST_UNTESTED,
10259 .probe = probe_spi_rdid,
10260 .probe_timing = TIMING_ZERO,
10261 .block_erasers =
10262 {
10263 {
10264 .eraseblocks = { {4 * 1024, 64} },
10265 .block_erase = spi_block_erase_20,
10266 }, {
10267 .eraseblocks = { {32 * 1024, 8} },
10268 .block_erase = spi_block_erase_52,
10269 }, {
10270 .eraseblocks = { {64 * 1024, 4} },
10271 .block_erase = spi_block_erase_d8,
10272 }, {
10273 .eraseblocks = { {1024 * 256, 1} },
10274 .block_erase = spi_block_erase_60,
10275 }, {
10276 .eraseblocks = { {1024 * 256, 1} },
10277 .block_erase = spi_block_erase_c7,
10278 },
10279 },
Jason Harper43ddef02014-05-04 00:55:24 +000010280 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10281 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010282 .write = spi_aai_write,
10283 .read = spi_chip_read, /* Fast read (0x0B) supported */
10284 .voltage = {1650, 1950},
10285 },
10286
10287 {
10288 .vendor = "SST",
10289 .name = "SST25WF040",
10290 .bustype = BUS_SPI,
10291 .manufacture_id = SST_ID,
10292 .model_id = SST_SST25WF040,
10293 .total_size = 512,
10294 .page_size = 256,
10295 .feature_bits = FEATURE_WRSR_EITHER,
10296 .tested = TEST_UNTESTED,
10297 .probe = probe_spi_rdid,
10298 .probe_timing = TIMING_ZERO,
10299 .block_erasers =
10300 {
10301 {
10302 .eraseblocks = { {4 * 1024, 128} },
10303 .block_erase = spi_block_erase_20,
10304 }, {
10305 .eraseblocks = { {32 * 1024, 16} },
10306 .block_erase = spi_block_erase_52,
10307 }, {
10308 .eraseblocks = { {64 * 1024, 8} },
10309 .block_erase = spi_block_erase_d8,
10310 }, {
10311 .eraseblocks = { {1024 * 512, 1} },
10312 .block_erase = spi_block_erase_60,
10313 }, {
10314 .eraseblocks = { {1024 * 512, 1} },
10315 .block_erase = spi_block_erase_c7,
10316 },
10317 },
Jason Harper43ddef02014-05-04 00:55:24 +000010318 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10319 .unlock = spi_disable_blockprotect_bp2_srwd,
10320 .write = spi_aai_write,
10321 .read = spi_chip_read, /* Fast read (0x0B) supported */
10322 .voltage = {1650, 1950},
10323 },
10324
10325 {
10326 .vendor = "SST",
10327 .name = "SST25WF080",
10328 .bustype = BUS_SPI,
10329 .manufacture_id = SST_ID,
10330 .model_id = SST_SST25WF080,
10331 .total_size = 1024,
10332 .page_size = 256,
10333 .feature_bits = FEATURE_WRSR_EITHER,
10334 .tested = TEST_OK_PREW,
10335 .probe = probe_spi_rdid,
10336 .probe_timing = TIMING_ZERO,
10337 .block_erasers =
10338 {
10339 {
10340 .eraseblocks = { {4 * 1024, 256} },
10341 .block_erase = spi_block_erase_20,
10342 }, {
10343 .eraseblocks = { {32 * 1024, 32} },
10344 .block_erase = spi_block_erase_52,
10345 }, {
10346 .eraseblocks = { {64 * 1024, 16} },
10347 .block_erase = spi_block_erase_d8,
10348 }, {
10349 .eraseblocks = { {1024 * 1024, 1} },
10350 .block_erase = spi_block_erase_60,
10351 }, {
10352 .eraseblocks = { {1024 * 1024, 1} },
10353 .block_erase = spi_block_erase_c7,
10354 },
10355 },
10356 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10357 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010358 .write = spi_aai_write,
10359 .read = spi_chip_read, /* Fast read (0x0B) supported */
10360 .voltage = {1650, 1950},
10361 },
10362
10363 {
10364 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010365 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010366 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010367 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010368 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010369 .total_size = 512,
10370 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010371 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010372 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010373 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010374 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010375 .block_erasers =
10376 {
10377 {
10378 .eraseblocks = { {128, 4096} },
10379 .block_erase = erase_sector_28sf040,
10380 }, {
10381 .eraseblocks = { {512 * 1024, 1} },
10382 .block_erase = erase_chip_28sf040,
10383 }
10384 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010385 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010386 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010388 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010389 },
10390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010391 {
10392 .vendor = "SST",
10393 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010394 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010395 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010396 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010397 .total_size = 128,
10398 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010399 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010400 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010401 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010402 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010403 .block_erasers =
10404 {
10405 {
10406 .eraseblocks = { {128 * 1024, 1} },
10407 .block_erase = erase_chip_block_jedec,
10408 }
10409 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010410 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010412 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010413 },
10414
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010415 {
10416 .vendor = "SST",
10417 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010418 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010419 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010420 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010421 .total_size = 128,
10422 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010423 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010424 .tested = TEST_UNTESTED,
10425 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010426 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010427 .block_erasers =
10428 {
10429 {
10430 .eraseblocks = { {128 * 1024, 1} },
10431 .block_erase = erase_chip_block_jedec,
10432 }
10433 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010434 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010436 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010437 },
10438
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010439 {
10440 .vendor = "SST",
10441 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010442 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010443 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010444 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010445 .total_size = 256,
10446 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010447 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010448 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010449 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010450 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010451 .block_erasers =
10452 {
10453 {
10454 .eraseblocks = { {256 * 1024, 1} },
10455 .block_erase = erase_chip_block_jedec,
10456 }
10457 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010458 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010459 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010460 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010461 },
10462
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010463 {
10464 .vendor = "SST",
10465 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010466 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010467 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010468 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010469 .total_size = 256,
10470 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010471 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010472 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010473 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010474 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010475 .block_erasers =
10476 {
10477 {
10478 .eraseblocks = { {256 * 1024, 1} },
10479 .block_erase = erase_chip_block_jedec,
10480 }
10481 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010482 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010483 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010484 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010485 },
10486
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010487 {
10488 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010489 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010490 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010491 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010492 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010493 .total_size = 64,
10494 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010495 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010496 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010497 .probe = probe_jedec,
10498 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010499 .block_erasers =
10500 {
10501 {
10502 .eraseblocks = { {4 * 1024, 16} },
10503 .block_erase = erase_sector_jedec,
10504 }, {
10505 .eraseblocks = { {64 * 1024, 1} },
10506 .block_erase = erase_chip_block_jedec,
10507 }
10508 },
Sean Nelson35727f72010-01-28 23:55:12 +000010509 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010511 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010512 },
10513
10514 {
10515 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010517 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010519 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010520 .total_size = 128,
10521 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010522 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010524 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010525 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010526 .block_erasers =
10527 {
10528 {
10529 .eraseblocks = { {4 * 1024, 32} },
10530 .block_erase = erase_sector_jedec,
10531 }, {
10532 .eraseblocks = { {128 * 1024, 1} },
10533 .block_erase = erase_chip_block_jedec,
10534 }
10535 },
Sean Nelson35727f72010-01-28 23:55:12 +000010536 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010538 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010539 },
10540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010541 {
10542 .vendor = "SST",
10543 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010544 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010545 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010546 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010547 .total_size = 256,
10548 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010549 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010550 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010551 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010552 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010553 .block_erasers =
10554 {
10555 {
10556 .eraseblocks = { {4 * 1024, 64} },
10557 .block_erase = erase_sector_jedec,
10558 }, {
10559 .eraseblocks = { {256 * 1024, 1} },
10560 .block_erase = erase_chip_block_jedec,
10561 }
10562 },
Sean Nelson35727f72010-01-28 23:55:12 +000010563 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010565 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010566 },
10567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010568 {
10569 .vendor = "SST",
10570 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010571 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010572 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010573 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010574 .total_size = 512,
10575 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010576 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010577 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010578 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010579 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010580 .block_erasers =
10581 {
10582 {
10583 .eraseblocks = { {4 * 1024, 128} },
10584 .block_erase = erase_sector_jedec,
10585 }, {
10586 .eraseblocks = { {512 * 1024, 1} },
10587 .block_erase = erase_chip_block_jedec,
10588 }
10589 },
Sean Nelson35727f72010-01-28 23:55:12 +000010590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010592 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010593 },
10594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010595 {
10596 .vendor = "SST",
10597 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010598 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010599 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010600 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010601 .total_size = 64,
10602 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010603 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010605 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010606 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010607 .block_erasers =
10608 {
10609 {
10610 .eraseblocks = { {4 * 1024, 16} },
10611 .block_erase = erase_sector_jedec,
10612 }, {
10613 .eraseblocks = { {64 * 1024, 1} },
10614 .block_erase = erase_chip_block_jedec,
10615 }
10616 },
Sean Nelson35727f72010-01-28 23:55:12 +000010617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010619 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010620 },
10621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010622 {
10623 .vendor = "SST",
10624 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010625 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010626 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010627 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010628 .total_size = 128,
10629 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010630 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010632 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010633 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010634 .block_erasers =
10635 {
10636 {
10637 .eraseblocks = { {4 * 1024, 32} },
10638 .block_erase = erase_sector_jedec,
10639 }, {
10640 .eraseblocks = { {128 * 1024, 1} },
10641 .block_erase = erase_chip_block_jedec,
10642 }
10643 },
Sean Nelson35727f72010-01-28 23:55:12 +000010644 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010646 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010647 },
10648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010649 {
10650 .vendor = "SST",
10651 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010652 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010653 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010654 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010655 .total_size = 256,
10656 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010657 .feature_bits = FEATURE_EITHER_RESET,
10658 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010659 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010660 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010661 .block_erasers =
10662 {
10663 {
10664 .eraseblocks = { {4 * 1024, 64} },
10665 .block_erase = erase_sector_jedec,
10666 }, {
10667 .eraseblocks = { {256 * 1024, 1} },
10668 .block_erase = erase_chip_block_jedec,
10669 }
10670 },
Sean Nelson35727f72010-01-28 23:55:12 +000010671 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010673 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010674 },
10675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010676 {
10677 .vendor = "SST",
10678 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010679 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010680 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010681 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010682 .total_size = 512,
10683 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010684 .feature_bits = FEATURE_EITHER_RESET,
10685 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010686 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010687 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010688 .block_erasers =
10689 {
10690 {
10691 .eraseblocks = { {4 * 1024, 128} },
10692 .block_erase = erase_sector_jedec,
10693 }, {
10694 .eraseblocks = { {512 * 1024, 1} },
10695 .block_erase = erase_chip_block_jedec,
10696 }
10697 },
Sean Nelson35727f72010-01-28 23:55:12 +000010698 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010700 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010701 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010703 {
10704 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010705 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010706 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010708 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010709 .total_size = 1024,
10710 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010711 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010712 .tested = TEST_UNTESTED,
10713 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010714 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010715 .block_erasers =
10716 {
10717 {
10718 .eraseblocks = { {4 * 1024, 256} },
10719 .block_erase = erase_sector_jedec,
10720 }, {
10721 .eraseblocks = { {64 * 1024, 16} },
10722 .block_erase = erase_block_jedec,
10723 }, {
10724 .eraseblocks = { {1024 * 1024, 1} },
10725 .block_erase = erase_chip_block_jedec,
10726 }
10727 },
Sean Nelson35727f72010-01-28 23:55:12 +000010728 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010729 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010730 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010731 },
10732
10733 {
10734 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010735 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010736 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010737 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010738 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010739 .total_size = 256,
10740 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010741 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010742 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010743 .probe = probe_jedec,
10744 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010745 .block_erasers =
10746 {
10747 {
10748 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010749 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010750 }, {
10751 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010752 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010753 }, {
10754 .eraseblocks = { {256 * 1024, 1} },
10755 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10756 }
10757 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010758 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010759 .unlock = unlock_sst_fwhub,
10760 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010761 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010762 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010763 },
10764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010765 {
10766 .vendor = "SST",
10767 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010768 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010769 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010770 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010771 .total_size = 384,
10772 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010773 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010774 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010775 .probe = probe_jedec,
10776 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010777 .block_erasers =
10778 {
10779 {
10780 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010781 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010782 }, {
10783 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010784 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010785 }, {
10786 .eraseblocks = { {384 * 1024, 1} },
10787 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10788 }
10789 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010790 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010791 .unlock = unlock_sst_fwhub,
10792 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010793 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010794 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010795 },
10796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010797 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010798 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10799 * and is only honored for 64k block erase, but not 4k sector erase.
10800 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010801 .vendor = "SST",
10802 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010803 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010804 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010805 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010806 .total_size = 512,
10807 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010808 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010809 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010810 .probe = probe_jedec,
10811 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010812 .block_erasers =
10813 {
10814 {
10815 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010816 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010817 }, {
10818 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010819 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010820 }, {
10821 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010822 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010823 },
10824 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010825 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010826 .unlock = unlock_sst_fwhub,
10827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010829 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010830 },
10831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010832 {
10833 .vendor = "SST",
10834 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010835 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010836 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010837 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010838 .total_size = 512,
10839 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010840 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010841 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010842 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010843 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010844 .block_erasers =
10845 {
10846 {
10847 .eraseblocks = { {4 * 1024, 128} },
10848 .block_erase = erase_sector_49lfxxxc,
10849 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010850 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010851 {64 * 1024, 7},
10852 {32 * 1024, 1},
10853 {8 * 1024, 2},
10854 {16 * 1024, 1},
10855 },
Sean Nelson69e58112010-03-23 17:10:28 +000010856 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010857 }
10858 },
Sean Nelson69e58112010-03-23 17:10:28 +000010859 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010860 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010862 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010863 },
10864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010865 {
10866 .vendor = "SST",
10867 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010868 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010869 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010870 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010871 .total_size = 1024,
10872 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010873 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010874 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010875 .probe = probe_jedec,
10876 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010877 .block_erasers =
10878 {
10879 {
10880 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010881 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010882 }, {
10883 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010884 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010885 }, {
10886 .eraseblocks = { {1024 * 1024, 1} },
10887 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10888 }
10889 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010890 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010891 .unlock = unlock_sst_fwhub,
10892 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010894 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010895 },
10896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010897 {
10898 .vendor = "SST",
10899 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010900 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010901 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010902 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010903 .total_size = 1024,
10904 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010905 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010906 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010907 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010908 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010909 .block_erasers =
10910 {
10911 {
10912 .eraseblocks = { {4 * 1024, 256} },
10913 .block_erase = erase_sector_49lfxxxc,
10914 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010915 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010916 {64 * 1024, 15},
10917 {32 * 1024, 1},
10918 {8 * 1024, 2},
10919 {16 * 1024, 1},
10920 },
Sean Nelson69e58112010-03-23 17:10:28 +000010921 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010922 }
10923 },
Sean Nelson69e58112010-03-23 17:10:28 +000010924 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010925 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010926 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010927 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010928 },
10929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010930 {
10931 .vendor = "SST",
10932 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010933 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010934 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010935 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010936 .total_size = 2048,
10937 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010938 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010939 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010940 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010941 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010942 .block_erasers =
10943 {
10944 {
10945 .eraseblocks = { {4 * 1024, 512} },
10946 .block_erase = erase_sector_49lfxxxc,
10947 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010948 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010949 {64 * 1024, 31},
10950 {32 * 1024, 1},
10951 {8 * 1024, 2},
10952 {16 * 1024, 1},
10953 },
Sean Nelson69e58112010-03-23 17:10:28 +000010954 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010955 }
10956 },
Sean Nelson69e58112010-03-23 17:10:28 +000010957 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010958 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010959 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010960 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010961 },
10962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010963 {
10964 .vendor = "SST",
10965 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010966 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010967 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010968 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010969 .total_size = 256,
10970 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010971 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010972 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010973 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010974 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010975 .block_erasers =
10976 {
10977 {
10978 .eraseblocks = { {4 * 1024, 64} },
10979 .block_erase = erase_sector_jedec,
10980 }, {
10981 .eraseblocks = { {16 * 1024, 16} },
10982 .block_erase = erase_block_jedec,
10983 }, {
10984 .eraseblocks = { {256 * 1024, 1} },
10985 .block_erase = NULL,
10986 }
10987 },
Sean Nelson35727f72010-01-28 23:55:12 +000010988 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010989 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010990 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010991 },
10992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010993 {
10994 .vendor = "SST",
10995 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010996 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010997 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010998 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010999 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000011000 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011001 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011002 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011003 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011004 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011005 .block_erasers =
11006 {
11007 {
11008 .eraseblocks = { {4 * 1024, 64} },
11009 .block_erase = erase_sector_jedec,
11010 }, {
11011 .eraseblocks = { {16 * 1024, 16} },
11012 .block_erase = erase_block_jedec,
11013 }, {
11014 .eraseblocks = { {256 * 1024, 1} },
11015 .block_erase = NULL,
11016 }
11017 },
Sean Nelson35727f72010-01-28 23:55:12 +000011018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011021 },
11022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011023 {
11024 .vendor = "SST",
11025 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011026 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011027 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011028 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011029 .total_size = 512,
11030 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011031 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011032 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011033 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011034 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011035 .block_erasers =
11036 {
11037 {
11038 .eraseblocks = { {4 * 1024, 128} },
11039 .block_erase = erase_sector_jedec,
11040 }, {
11041 .eraseblocks = { {64 * 1024, 8} },
11042 .block_erase = erase_block_jedec,
11043 }, {
11044 .eraseblocks = { {512 * 1024, 1} },
11045 .block_erase = NULL,
11046 }
11047 },
Sean Nelson35727f72010-01-28 23:55:12 +000011048 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011050 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011051 },
11052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011053 {
11054 .vendor = "SST",
11055 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011056 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011057 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011058 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011059 .total_size = 512,
11060 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011061 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011062 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011063 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011064 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011065 .block_erasers =
11066 {
11067 {
11068 .eraseblocks = { {4 * 1024, 128} },
11069 .block_erase = erase_sector_jedec,
11070 }, {
11071 .eraseblocks = { {64 * 1024, 8} },
11072 .block_erase = erase_block_jedec,
11073 }, {
11074 .eraseblocks = { {512 * 1024, 1} },
11075 .block_erase = NULL,
11076 }
11077 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011078 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011079 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011081 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011082 },
11083
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011084 {
11085 .vendor = "SST",
11086 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011087 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011088 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011089 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011090 .total_size = 1024,
11091 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011092 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011093 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011094 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011095 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011096 .block_erasers =
11097 {
11098 {
11099 .eraseblocks = { {4 * 1024, 256} },
11100 .block_erase = erase_sector_jedec,
11101 }, {
11102 .eraseblocks = { {64 * 1024, 16} },
11103 .block_erase = erase_block_jedec,
11104 }, {
11105 .eraseblocks = { {1024 * 1024, 1} },
11106 .block_erase = NULL,
11107 }
11108 },
Sean Nelson35727f72010-01-28 23:55:12 +000011109 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011111 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011112 },
11113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011114 {
11115 .vendor = "SST",
11116 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011117 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011118 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011119 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011120 .total_size = 2048,
11121 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011122 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011123 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011124 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011125 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011126 .block_erasers =
11127 {
11128 {
11129 .eraseblocks = { {4 * 1024, 512} },
11130 .block_erase = erase_sector_49lfxxxc,
11131 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011132 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011133 {64 * 1024, 31},
11134 {32 * 1024, 1},
11135 {8 * 1024, 2},
11136 {16 * 1024, 1},
11137 },
Sean Nelson69e58112010-03-23 17:10:28 +000011138 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011139 }
11140 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011141 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011142 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011144 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011145 },
11146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011147 {
11148 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011149 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011150 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011151 .manufacture_id = ST_ID,
11152 .model_id = ST_M29F002B,
11153 .total_size = 256,
11154 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011155 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011156 .tested = TEST_UNTESTED,
11157 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011158 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011159 .block_erasers =
11160 {
11161 {
11162 .eraseblocks = {
11163 {16 * 1024, 1},
11164 {8 * 1024, 2},
11165 {32 * 1024, 1},
11166 {64 * 1024, 3},
11167 },
11168 .block_erase = erase_sector_jedec,
11169 }, {
11170 .eraseblocks = { {256 * 1024, 1} },
11171 .block_erase = erase_chip_block_jedec,
11172 }
11173 },
Sean Nelson35727f72010-01-28 23:55:12 +000011174 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011175 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011176 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011177 },
11178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011179 {
11180 .vendor = "ST",
11181 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011182 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011183 .manufacture_id = ST_ID,
11184 .model_id = ST_M29F002T,
11185 .total_size = 256,
11186 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011187 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011188 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011189 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011190 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011191 .block_erasers =
11192 {
11193 {
11194 .eraseblocks = {
11195 {64 * 1024, 3},
11196 {32 * 1024, 1},
11197 {8 * 1024, 2},
11198 {16 * 1024, 1},
11199 },
11200 .block_erase = erase_sector_jedec,
11201 }, {
11202 .eraseblocks = { {256 * 1024, 1} },
11203 .block_erase = erase_chip_block_jedec,
11204 }
11205 },
Sean Nelson35727f72010-01-28 23:55:12 +000011206 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011207 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011208 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011209 },
11210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011211 {
11212 .vendor = "ST",
11213 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011214 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011215 .manufacture_id = ST_ID,
11216 .model_id = ST_M29F040B,
11217 .total_size = 512,
11218 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011219 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11220 .tested = TEST_UNTESTED,
11221 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011222 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011223 .block_erasers =
11224 {
11225 {
11226 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011227 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011228 }, {
11229 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011230 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011231 }
11232 },
Sean Nelson35727f72010-01-28 23:55:12 +000011233 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011234 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011235 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011236 },
11237
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011238 {
Sean Nelson35727f72010-01-28 23:55:12 +000011239 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011240 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011241 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011242 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011243 .manufacture_id = ST_ID,
11244 .model_id = ST_M29F400BB,
11245 .total_size = 512,
11246 .page_size = 64 * 1024,
11247 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011248 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011249 .probe = probe_m29f400bt,
11250 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11251 .block_erasers =
11252 {
11253 {
11254 .eraseblocks = {
11255 {16 * 1024, 1},
11256 {8 * 1024, 2},
11257 {32 * 1024, 1},
11258 {64 * 1024, 7},
11259 },
11260 .block_erase = block_erase_m29f400bt,
11261 }, {
11262 .eraseblocks = { {512 * 1024, 1} },
11263 .block_erase = block_erase_chip_m29f400bt,
11264 }
11265 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011266 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011268 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011269 },
11270 {
11271 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11272 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011273 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011274 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011275 .manufacture_id = ST_ID,
11276 .model_id = ST_M29F400BT,
11277 .total_size = 512,
11278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011279 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011280 .tested = TEST_UNTESTED,
11281 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011282 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011283 .block_erasers =
11284 {
11285 {
11286 .eraseblocks = {
11287 {64 * 1024, 7},
11288 {32 * 1024, 1},
11289 {8 * 1024, 2},
11290 {16 * 1024, 1},
11291 },
11292 .block_erase = block_erase_m29f400bt,
11293 }, {
11294 .eraseblocks = { {512 * 1024, 1} },
11295 .block_erase = block_erase_chip_m29f400bt,
11296 }
11297 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011298 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011299 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011300 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011301 },
11302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011303 {
11304 .vendor = "ST",
11305 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011306 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011307 .manufacture_id = ST_ID,
11308 .model_id = ST_M29W010B,
11309 .total_size = 128,
11310 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011311 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011312 .tested = TEST_UNTESTED,
11313 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011314 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011315 .block_erasers =
11316 {
11317 {
11318 .eraseblocks = { {16 * 1024, 8}, },
11319 .block_erase = erase_sector_jedec,
11320 }, {
11321 .eraseblocks = { {128 * 1024, 1} },
11322 .block_erase = erase_chip_block_jedec,
11323 }
11324 },
Sean Nelson35727f72010-01-28 23:55:12 +000011325 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011326 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011327 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011328 },
11329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011330 {
11331 .vendor = "ST",
11332 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011333 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011334 .manufacture_id = ST_ID,
11335 .model_id = ST_M29W040B,
11336 .total_size = 512,
11337 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011338 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011339 .tested = TEST_UNTESTED,
11340 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011341 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011342 .block_erasers =
11343 {
11344 {
11345 .eraseblocks = { {64 * 1024, 8}, },
11346 .block_erase = erase_sector_jedec,
11347 }, {
11348 .eraseblocks = { {512 * 1024, 1} },
11349 .block_erase = erase_chip_block_jedec,
11350 }
11351 },
Sean Nelson35727f72010-01-28 23:55:12 +000011352 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011353 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011354 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011355 },
11356
Stefan Taunereb582572012-09-21 12:52:50 +000011357 {
11358 .vendor = "ST",
11359 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011360 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011361 .manufacture_id = ST_ID,
11362 .model_id = ST_M29W512B,
11363 .total_size = 64,
11364 .page_size = 64 * 1024,
11365 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011366 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011367 .probe = probe_jedec,
11368 .probe_timing = TIMING_ZERO,
11369 .block_erasers =
11370 {
11371 {
11372 .eraseblocks = { {64 * 1024, 1} },
11373 .block_erase = erase_chip_block_jedec,
11374 }
11375 },
11376 .write = write_jedec_1,
11377 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011378 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011379 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011381 {
11382 .vendor = "ST",
11383 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011384 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011385 .manufacture_id = ST_ID,
11386 .model_id = ST_M50FLW040A,
11387 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011388 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011389 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011390 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011391 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011392 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011393 .block_erasers =
11394 {
11395 {
Sean Nelson329bde72010-01-19 16:39:19 +000011396 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011397 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011398 {64 * 1024, 5}, /* block */
11399 {4 * 1024, 16}, /* sector */
11400 {4 * 1024, 16}, /* sector */
11401 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011402 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011403 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011404 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011405 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011406 }
11407 },
Sean Nelson28accc22010-03-19 18:47:06 +000011408 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011409 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011411 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011412 },
11413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011414 {
11415 .vendor = "ST",
11416 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011417 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011418 .manufacture_id = ST_ID,
11419 .model_id = ST_M50FLW040B,
11420 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011421 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011422 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011423 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011424 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011425 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011426 .block_erasers =
11427 {
11428 {
Sean Nelson329bde72010-01-19 16:39:19 +000011429 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011430 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011431 {4 * 1024, 16}, /* sector */
11432 {64 * 1024, 5}, /* block */
11433 {4 * 1024, 16}, /* sector */
11434 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011435 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011436 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011437 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011438 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011439 }
11440 },
Sean Nelson28accc22010-03-19 18:47:06 +000011441 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011442 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011444 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011445 },
11446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011447 {
11448 .vendor = "ST",
11449 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011450 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011451 .manufacture_id = ST_ID,
11452 .model_id = ST_M50FLW080A,
11453 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011454 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011455 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011456 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011457 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011458 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011459 .block_erasers =
11460 {
11461 {
Sean Nelson329bde72010-01-19 16:39:19 +000011462 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011463 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011464 {64 * 1024, 13}, /* block */
11465 {4 * 1024, 16}, /* sector */
11466 {4 * 1024, 16}, /* sector */
11467 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011468 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011469 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011470 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011471 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011472 }
11473 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011474 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011475 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011477 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011478 },
11479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011480 {
11481 .vendor = "ST",
11482 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011483 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011484 .manufacture_id = ST_ID,
11485 .model_id = ST_M50FLW080B,
11486 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011487 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011488 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011489 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011490 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011491 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011492 .block_erasers =
11493 {
11494 {
Sean Nelson329bde72010-01-19 16:39:19 +000011495 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011496 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011497 {4 * 1024, 16}, /* sector */
11498 {64 * 1024, 13}, /* block */
11499 {4 * 1024, 16}, /* sector */
11500 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011501 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011502 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011503 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011504 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011505 }
11506 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011507 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011508 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011509 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011510 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011511 },
11512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011513 {
11514 .vendor = "ST",
11515 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011516 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011517 .manufacture_id = ST_ID,
11518 .model_id = ST_M50FW002,
11519 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011520 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011521 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011523 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011524 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011525 .block_erasers =
11526 {
11527 {
11528 .eraseblocks = {
11529 {64 * 1024, 3},
11530 {32 * 1024, 1},
11531 {8 * 1024, 2},
11532 {16 * 1024, 1},
11533 },
Sean Nelson28accc22010-03-19 18:47:06 +000011534 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011535 }
11536 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011537 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011538 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011540 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011541 },
11542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011543 {
11544 .vendor = "ST",
11545 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011546 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011547 .manufacture_id = ST_ID,
11548 .model_id = ST_M50FW016,
11549 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011550 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011551 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011552 .tested = TEST_UNTESTED,
11553 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011554 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011555 .block_erasers =
11556 {
11557 {
11558 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011559 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011560 }
11561 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011562 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011563 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011565 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011566 },
11567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011568 {
11569 .vendor = "ST",
11570 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011571 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011572 .manufacture_id = ST_ID,
11573 .model_id = ST_M50FW040,
11574 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011575 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011576 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011577 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011578 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011579 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011580 .block_erasers =
11581 {
11582 {
11583 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011584 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011585 }
11586 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011587 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011588 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011589 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011590 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011591 },
11592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011593 {
11594 .vendor = "ST",
11595 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011596 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011597 .manufacture_id = ST_ID,
11598 .model_id = ST_M50FW080,
11599 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011600 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011601 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011602 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011603 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011604 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011605 .block_erasers =
11606 {
11607 {
11608 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011609 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011610 }
11611 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011612 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011613 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011614 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011615 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011616 },
11617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011618 {
11619 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011620 .name = "M50LPW080",
11621 .bustype = BUS_LPC, /* A/A Mux */
11622 .manufacture_id = ST_ID,
11623 .model_id = ST_M50LPW080,
11624 .total_size = 1024,
11625 .page_size = 0,
11626 .feature_bits = FEATURE_REGISTERMAP,
11627 .tested = TEST_UNTESTED,
11628 .probe = probe_82802ab,
11629 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11630 .block_erasers =
11631 {
11632 {
11633 .eraseblocks = { {64 * 1024, 16}, },
11634 .block_erase = erase_block_82802ab,
11635 }
11636 },
11637 .unlock = unlock_stm50_uniform,
11638 .write = write_82802ab,
11639 .read = read_memmapped,
11640 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11641 },
11642
11643 {
11644 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011645 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011646 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011647 .manufacture_id = ST_ID,
11648 .model_id = ST_M50LPW116,
11649 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011650 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011651 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011652 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011653 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011654 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011655 .block_erasers =
11656 {
11657 {
11658 .eraseblocks = {
11659 {4 * 1024, 16},
11660 {64 * 1024, 30},
11661 {32 * 1024, 1},
11662 {8 * 1024, 2},
11663 {16 * 1024, 1},
11664 },
Sean Nelson28accc22010-03-19 18:47:06 +000011665 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011666 }
11667 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011668 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011669 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011671 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011672 },
11673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011674 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011675 .vendor = "SyncMOS/MoselVitelic",
11676 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011677 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011678 .manufacture_id = SYNCMOS_MVC_ID,
11679 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011680 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011681 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011682 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011683 .tested = TEST_UNTESTED,
11684 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011685 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011686 .block_erasers =
11687 {
11688 {
11689 .eraseblocks = { {512, 256} },
11690 .block_erase = erase_sector_jedec,
11691 }, {
11692 .eraseblocks = { {128 * 1024, 1} },
11693 .block_erase = erase_chip_block_jedec,
11694 },
11695 },
Sean Nelson35727f72010-01-28 23:55:12 +000011696 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011698 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011699 },
11700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011701 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011702 .vendor = "SyncMOS/MoselVitelic",
11703 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011704 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011705 .manufacture_id = SYNCMOS_MVC_ID,
11706 .model_id = SM_MVC_29C51001T,
11707 .total_size = 128,
11708 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011709 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011710 .tested = TEST_UNTESTED,
11711 .probe = probe_jedec,
11712 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11713 .block_erasers =
11714 {
11715 {
11716 .eraseblocks = { {512, 256} },
11717 .block_erase = erase_sector_jedec,
11718 }, {
11719 .eraseblocks = { {128 * 1024, 1} },
11720 .block_erase = erase_chip_block_jedec,
11721 },
11722 },
11723 .write = write_jedec_1,
11724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011725 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011726 },
11727
11728 {
11729 .vendor = "SyncMOS/MoselVitelic",
11730 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011731 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011732 .manufacture_id = SYNCMOS_MVC_ID,
11733 .model_id = SM_MVC_29C51002B,
11734 .total_size = 256,
11735 .page_size = 512,
11736 .feature_bits = FEATURE_EITHER_RESET,
11737 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011740 .block_erasers =
11741 {
11742 {
11743 .eraseblocks = { {512, 512} },
11744 .block_erase = erase_sector_jedec,
11745 }, {
11746 .eraseblocks = { {256 * 1024, 1} },
11747 .block_erase = erase_chip_block_jedec,
11748 },
11749 },
Sean Nelson35727f72010-01-28 23:55:12 +000011750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011751 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011752 },
11753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011754 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011755 .vendor = "SyncMOS/MoselVitelic",
11756 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011757 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011758 .manufacture_id = SYNCMOS_MVC_ID,
11759 .model_id = SM_MVC_29C51002T,
11760 .total_size = 256,
11761 .page_size = 512,
11762 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011763 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011764 .probe = probe_jedec,
11765 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11766 .block_erasers =
11767 {
11768 {
11769 .eraseblocks = { {512, 512} },
11770 .block_erase = erase_sector_jedec,
11771 }, {
11772 .eraseblocks = { {256 * 1024, 1} },
11773 .block_erase = erase_chip_block_jedec,
11774 },
11775 },
11776 .write = write_jedec_1,
11777 .read = read_memmapped,
11778 },
11779
11780 {
11781 .vendor = "SyncMOS/MoselVitelic",
11782 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011783 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011784 .manufacture_id = SYNCMOS_MVC_ID,
11785 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011786 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011787 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011788 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011789 .tested = TEST_UNTESTED,
11790 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011791 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011792 .block_erasers =
11793 {
11794 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011795 .eraseblocks = { {1024, 512} },
11796 .block_erase = erase_sector_jedec,
11797 }, {
11798 .eraseblocks = { {512 * 1024, 1} },
11799 .block_erase = erase_chip_block_jedec,
11800 },
11801 },
11802 .write = write_jedec_1,
11803 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011804 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011805 },
11806
11807 {
11808 .vendor = "SyncMOS/MoselVitelic",
11809 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011810 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011811 .manufacture_id = SYNCMOS_MVC_ID,
11812 .model_id = SM_MVC_29C51004T,
11813 .total_size = 512,
11814 .page_size = 1024,
11815 .feature_bits = FEATURE_EITHER_RESET,
11816 .tested = TEST_UNTESTED,
11817 .probe = probe_jedec,
11818 .probe_timing = TIMING_ZERO,
11819 .block_erasers =
11820 {
11821 {
11822 .eraseblocks = { {1024, 512} },
11823 .block_erase = erase_sector_jedec,
11824 }, {
11825 .eraseblocks = { {512 * 1024, 1} },
11826 .block_erase = erase_chip_block_jedec,
11827 },
11828 },
11829 .write = write_jedec_1,
11830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011831 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011832 },
11833
11834 {
11835 .vendor = "SyncMOS/MoselVitelic",
11836 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011837 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011838 .manufacture_id = SYNCMOS_MVC_ID,
11839 .model_id = SM_MVC_29C31004B,
11840 .total_size = 512,
11841 .page_size = 1024,
11842 .feature_bits = FEATURE_EITHER_RESET,
11843 .tested = TEST_UNTESTED,
11844 .probe = probe_jedec,
11845 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11846 .block_erasers =
11847 {
11848 {
11849 .eraseblocks = { {1024, 512} },
11850 .block_erase = erase_sector_jedec,
11851 }, {
11852 .eraseblocks = { {512 * 1024, 1} },
11853 .block_erase = erase_chip_block_jedec,
11854 },
11855 },
11856 .write = write_jedec_1,
11857 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011858 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011859 },
11860
11861 {
11862 .vendor = "SyncMOS/MoselVitelic",
11863 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011864 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011865 .manufacture_id = SYNCMOS_MVC_ID,
11866 .model_id = SM_MVC_29C31004T,
11867 .total_size = 512,
11868 .page_size = 1024,
11869 .feature_bits = FEATURE_EITHER_RESET,
11870 .tested = TEST_UNTESTED,
11871 .probe = probe_jedec,
11872 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11873 .block_erasers =
11874 {
11875 {
11876 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011877 .block_erase = erase_sector_jedec,
11878 }, {
11879 .eraseblocks = { {512 * 1024, 1} },
11880 .block_erase = erase_chip_block_jedec,
11881 },
11882 },
Sean Nelson35727f72010-01-28 23:55:12 +000011883 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011885 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011886 },
11887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011888 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011889 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011890 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011891 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011892 .manufacture_id = TI_OLD_ID,
11893 .model_id = TI_TMS29F002RB,
11894 .total_size = 256,
11895 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011896 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011897 .tested = TEST_UNTESTED,
11898 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011899 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011900 .block_erasers =
11901 {
11902 {
11903 .eraseblocks = {
11904 {16 * 1024, 1},
11905 {8 * 1024, 2},
11906 {32 * 1024, 1},
11907 {64 * 1024, 3},
11908 },
11909 .block_erase = erase_sector_jedec,
11910 }, {
11911 .eraseblocks = { {256 * 1024, 1} },
11912 .block_erase = erase_chip_block_jedec,
11913 },
11914 },
Sean Nelson35727f72010-01-28 23:55:12 +000011915 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011917 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011918 },
11919
11920 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011921 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011922 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011923 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011924 .manufacture_id = TI_OLD_ID,
11925 .model_id = TI_TMS29F002RT,
11926 .total_size = 256,
11927 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011928 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011929 .tested = TEST_UNTESTED,
11930 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011931 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011932 .block_erasers =
11933 {
11934 {
11935 .eraseblocks = {
11936 {64 * 1024, 3},
11937 {32 * 1024, 1},
11938 {8 * 1024, 2},
11939 {16 * 1024, 1},
11940 },
11941 .block_erase = erase_sector_jedec,
11942 }, {
11943 .eraseblocks = { {256 * 1024, 1} },
11944 .block_erase = erase_chip_block_jedec,
11945 },
11946 },
Sean Nelson35727f72010-01-28 23:55:12 +000011947 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011949 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011950 },
11951
11952 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011953 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011954 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011955 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011956 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011957 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011958 .total_size = 1024,
11959 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011960 /* supports SFDP */
11961 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011963 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011964 .probe = probe_spi_rdid,
11965 .probe_timing = TIMING_ZERO,
11966 .block_erasers =
11967 {
11968 {
11969 .eraseblocks = { {4 * 1024, 256} },
11970 .block_erase = spi_block_erase_20,
11971 }, {
11972 .eraseblocks = { {32 * 1024, 32} },
11973 .block_erase = spi_block_erase_52,
11974 }, {
11975 .eraseblocks = { {64 * 1024, 16} },
11976 .block_erase = spi_block_erase_d8,
11977 }, {
11978 .eraseblocks = { {1024 * 1024, 1} },
11979 .block_erase = spi_block_erase_60,
11980 }, {
11981 .eraseblocks = { {1024 * 1024, 1} },
11982 .block_erase = spi_block_erase_c7,
11983 }
11984 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011985 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011986 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011987 .write = spi_chip_write_256,
11988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011989 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011990 },
11991
11992 {
11993 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011994 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011995 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011996 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011997 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011998 .total_size = 2048,
11999 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012000 /* supports SFDP */
12001 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012002 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000012003 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012004 .probe = probe_spi_rdid,
12005 .probe_timing = TIMING_ZERO,
12006 .block_erasers =
12007 {
12008 {
12009 .eraseblocks = { {4 * 1024, 512} },
12010 .block_erase = spi_block_erase_20,
12011 }, {
12012 .eraseblocks = { {32 * 1024, 64} },
12013 .block_erase = spi_block_erase_52,
12014 }, {
12015 .eraseblocks = { {64 * 1024, 32} },
12016 .block_erase = spi_block_erase_d8,
12017 }, {
12018 .eraseblocks = { {2 * 1024 * 1024, 1} },
12019 .block_erase = spi_block_erase_60,
12020 }, {
12021 .eraseblocks = { {2 * 1024 * 1024, 1} },
12022 .block_erase = spi_block_erase_c7,
12023 }
12024 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012026 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012027 .write = spi_chip_write_256,
12028 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012029 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012030 },
12031
12032 {
12033 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012034 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012035 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012036 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012037 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012038 .total_size = 4096,
12039 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012040 /* supports SFDP */
12041 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012043 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012044 .probe = probe_spi_rdid,
12045 .probe_timing = TIMING_ZERO,
12046 .block_erasers =
12047 {
12048 {
12049 .eraseblocks = { {4 * 1024, 1024} },
12050 .block_erase = spi_block_erase_20,
12051 }, {
12052 .eraseblocks = { {32 * 1024, 128} },
12053 .block_erase = spi_block_erase_52,
12054 }, {
12055 .eraseblocks = { {64 * 1024, 64} },
12056 .block_erase = spi_block_erase_d8,
12057 }, {
12058 .eraseblocks = { {4 * 1024 * 1024, 1} },
12059 .block_erase = spi_block_erase_60,
12060 }, {
12061 .eraseblocks = { {4 * 1024 * 1024, 1} },
12062 .block_erase = spi_block_erase_c7,
12063 }
12064 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012065 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012066 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012067 .write = spi_chip_write_256,
12068 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012069 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012070 },
12071
12072 {
12073 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012074 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012075 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012076 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012077 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012078 .total_size = 8192,
12079 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012080 /* supports SFDP */
12081 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012083 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012084 .probe = probe_spi_rdid,
12085 .probe_timing = TIMING_ZERO,
12086 .block_erasers =
12087 {
12088 {
12089 .eraseblocks = { {4 * 1024, 2048} },
12090 .block_erase = spi_block_erase_20,
12091 }, {
12092 .eraseblocks = { {32 * 1024, 256} },
12093 .block_erase = spi_block_erase_52,
12094 }, {
12095 .eraseblocks = { {64 * 1024, 128} },
12096 .block_erase = spi_block_erase_d8,
12097 }, {
12098 .eraseblocks = { {8 * 1024 * 1024, 1} },
12099 .block_erase = spi_block_erase_60,
12100 }, {
12101 .eraseblocks = { {8 * 1024 * 1024, 1} },
12102 .block_erase = spi_block_erase_c7,
12103 }
12104 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012106 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012107 .write = spi_chip_write_256,
12108 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012109 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012110 },
12111
12112 {
12113 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012114 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012115 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012116 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012117 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012118 .total_size = 16384,
12119 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012120 /* supports SFDP */
12121 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012123 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012124 .probe = probe_spi_rdid,
12125 .probe_timing = TIMING_ZERO,
12126 .block_erasers =
12127 {
12128 {
12129 .eraseblocks = { {4 * 1024, 4096} },
12130 .block_erase = spi_block_erase_20,
12131 }, {
12132 .eraseblocks = { {32 * 1024, 512} },
12133 .block_erase = spi_block_erase_52,
12134 }, {
12135 .eraseblocks = { {64 * 1024, 256} },
12136 .block_erase = spi_block_erase_d8,
12137 }, {
12138 .eraseblocks = { {16 * 1024 * 1024, 1} },
12139 .block_erase = spi_block_erase_60,
12140 }, {
12141 .eraseblocks = { {16 * 1024 * 1024, 1} },
12142 .block_erase = spi_block_erase_c7,
12143 }
12144 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012145 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012146 .unlock = spi_disable_blockprotect,
12147 .write = spi_chip_write_256,
12148 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012149 .voltage = {2700, 3600},
12150 },
12151
12152 {
12153 .vendor = "Winbond",
12154 .name = "W25Q20.W",
12155 .bustype = BUS_SPI,
12156 .manufacture_id = WINBOND_NEX_ID,
12157 .model_id = WINBOND_NEX_W25Q20_W,
12158 .total_size = 256,
12159 .page_size = 256,
12160 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12162 .tested = TEST_UNTESTED,
12163 .probe = probe_spi_rdid,
12164 .probe_timing = TIMING_ZERO,
12165 .block_erasers =
12166 {
12167 {
12168 .eraseblocks = { {4 * 1024, 64} },
12169 .block_erase = spi_block_erase_20,
12170 }, {
12171 .eraseblocks = { {32 * 1024, 8} },
12172 .block_erase = spi_block_erase_52,
12173 }, {
12174 .eraseblocks = { {64 * 1024, 4} },
12175 .block_erase = spi_block_erase_d8,
12176 }, {
12177 .eraseblocks = { {256 * 1024, 1} },
12178 .block_erase = spi_block_erase_60,
12179 }, {
12180 .eraseblocks = { {256 * 1024, 1} },
12181 .block_erase = spi_block_erase_c7,
12182 }
12183 },
12184 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12185 .unlock = spi_disable_blockprotect,
12186 .write = spi_chip_write_256,
12187 .read = spi_chip_read,
12188 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12189 },
12190
12191 {
12192 .vendor = "Winbond",
12193 .name = "W25Q40.W",
12194 .bustype = BUS_SPI,
12195 .manufacture_id = WINBOND_NEX_ID,
12196 .model_id = WINBOND_NEX_W25Q40_W,
12197 .total_size = 512,
12198 .page_size = 256,
12199 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12201 .tested = TEST_UNTESTED,
12202 .probe = probe_spi_rdid,
12203 .probe_timing = TIMING_ZERO,
12204 .block_erasers =
12205 {
12206 {
12207 .eraseblocks = { {4 * 1024, 128} },
12208 .block_erase = spi_block_erase_20,
12209 }, {
12210 .eraseblocks = { {32 * 1024, 16} },
12211 .block_erase = spi_block_erase_52,
12212 }, {
12213 .eraseblocks = { {64 * 1024, 8} },
12214 .block_erase = spi_block_erase_d8,
12215 }, {
12216 .eraseblocks = { {512 * 1024, 1} },
12217 .block_erase = spi_block_erase_60,
12218 }, {
12219 .eraseblocks = { {512 * 1024, 1} },
12220 .block_erase = spi_block_erase_c7,
12221 }
12222 },
12223 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12224 .unlock = spi_disable_blockprotect,
12225 .write = spi_chip_write_256,
12226 .read = spi_chip_read,
12227 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12228 },
12229
12230 {
12231 .vendor = "Winbond",
12232 .name = "W25Q80.W",
12233 .bustype = BUS_SPI,
12234 .manufacture_id = WINBOND_NEX_ID,
12235 .model_id = WINBOND_NEX_W25Q80_W,
12236 .total_size = 1024,
12237 .page_size = 256,
12238 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12240 .tested = TEST_UNTESTED,
12241 .probe = probe_spi_rdid,
12242 .probe_timing = TIMING_ZERO,
12243 .block_erasers =
12244 {
12245 {
12246 .eraseblocks = { {4 * 1024, 256} },
12247 .block_erase = spi_block_erase_20,
12248 }, {
12249 .eraseblocks = { {32 * 1024, 32} },
12250 .block_erase = spi_block_erase_52,
12251 }, {
12252 .eraseblocks = { {64 * 1024, 16} },
12253 .block_erase = spi_block_erase_d8,
12254 }, {
12255 .eraseblocks = { {1 * 1024 * 1024, 1} },
12256 .block_erase = spi_block_erase_60,
12257 }, {
12258 .eraseblocks = { {1 * 1024 * 1024, 1} },
12259 .block_erase = spi_block_erase_c7,
12260 }
12261 },
12262 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12263 .unlock = spi_disable_blockprotect,
12264 .write = spi_chip_write_256,
12265 .read = spi_chip_read,
12266 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12267 },
12268
12269 {
12270 .vendor = "Winbond",
12271 .name = "W25Q16.W",
12272 .bustype = BUS_SPI,
12273 .manufacture_id = WINBOND_NEX_ID,
12274 .model_id = WINBOND_NEX_W25Q16_W,
12275 .total_size = 2048,
12276 .page_size = 256,
12277 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12278 /* QPI enable 0x38, disable 0xFF */
12279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12280 .tested = TEST_UNTESTED,
12281 .probe = probe_spi_rdid,
12282 .probe_timing = TIMING_ZERO,
12283 .block_erasers =
12284 {
12285 {
12286 .eraseblocks = { {4 * 1024, 512} },
12287 .block_erase = spi_block_erase_20,
12288 }, {
12289 .eraseblocks = { {32 * 1024, 64} },
12290 .block_erase = spi_block_erase_52,
12291 }, {
12292 .eraseblocks = { {64 * 1024, 32} },
12293 .block_erase = spi_block_erase_d8,
12294 }, {
12295 .eraseblocks = { {2 * 1024 * 1024, 1} },
12296 .block_erase = spi_block_erase_60,
12297 }, {
12298 .eraseblocks = { {2 * 1024 * 1024, 1} },
12299 .block_erase = spi_block_erase_c7,
12300 }
12301 },
12302 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12303 .unlock = spi_disable_blockprotect,
12304 .write = spi_chip_write_256,
12305 .read = spi_chip_read,
12306 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12307 },
12308
12309 {
12310 .vendor = "Winbond",
12311 .name = "W25Q32.W",
12312 .bustype = BUS_SPI,
12313 .manufacture_id = WINBOND_NEX_ID,
12314 .model_id = WINBOND_NEX_W25Q32_W,
12315 .total_size = 4096,
12316 .page_size = 256,
12317 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12318 /* QPI enable 0x38, disable 0xFF */
12319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12320 .tested = TEST_OK_PREW,
12321 .probe = probe_spi_rdid,
12322 .probe_timing = TIMING_ZERO,
12323 .block_erasers =
12324 {
12325 {
12326 .eraseblocks = { {4 * 1024, 1024} },
12327 .block_erase = spi_block_erase_20,
12328 }, {
12329 .eraseblocks = { {32 * 1024, 128} },
12330 .block_erase = spi_block_erase_52,
12331 }, {
12332 .eraseblocks = { {64 * 1024, 64} },
12333 .block_erase = spi_block_erase_d8,
12334 }, {
12335 .eraseblocks = { {4 * 1024 * 1024, 1} },
12336 .block_erase = spi_block_erase_60,
12337 }, {
12338 .eraseblocks = { {4 * 1024 * 1024, 1} },
12339 .block_erase = spi_block_erase_c7,
12340 }
12341 },
12342 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12343 .unlock = spi_disable_blockprotect,
12344 .write = spi_chip_write_256,
12345 .read = spi_chip_read,
12346 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12347 },
12348
12349 {
12350 .vendor = "Winbond",
12351 .name = "W25Q64.W",
12352 .bustype = BUS_SPI,
12353 .manufacture_id = WINBOND_NEX_ID,
12354 .model_id = WINBOND_NEX_W25Q64_W,
12355 .total_size = 8192,
12356 .page_size = 256,
12357 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12358 /* QPI enable 0x38, disable 0xFF */
12359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012360 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012361 .probe = probe_spi_rdid,
12362 .probe_timing = TIMING_ZERO,
12363 .block_erasers =
12364 {
12365 {
12366 .eraseblocks = { {4 * 1024, 2048} },
12367 .block_erase = spi_block_erase_20,
12368 }, {
12369 .eraseblocks = { {32 * 1024, 256} },
12370 .block_erase = spi_block_erase_52,
12371 }, {
12372 .eraseblocks = { {64 * 1024, 128} },
12373 .block_erase = spi_block_erase_d8,
12374 }, {
12375 .eraseblocks = { {8 * 1024 * 1024, 1} },
12376 .block_erase = spi_block_erase_60,
12377 }, {
12378 .eraseblocks = { {8 * 1024 * 1024, 1} },
12379 .block_erase = spi_block_erase_c7,
12380 }
12381 },
12382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12383 .unlock = spi_disable_blockprotect,
12384 .write = spi_chip_write_256,
12385 .read = spi_chip_read,
12386 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012387 },
12388
12389 {
12390 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012391 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012392 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012393 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012394 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012395 .total_size = 128,
12396 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012397 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012398 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012400 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012401 .block_erasers =
12402 {
12403 {
12404 .eraseblocks = { {4 * 1024, 32} },
12405 .block_erase = spi_block_erase_20,
12406 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012407 .eraseblocks = { {64 * 1024, 2} },
12408 .block_erase = spi_block_erase_d8,
12409 }, {
12410 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012411 .block_erase = spi_block_erase_c7,
12412 }
12413 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012414 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012416 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012418 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012419 },
12420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012421 {
12422 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012423 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012424 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012425 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012426 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012427 .total_size = 256,
12428 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012429 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012430 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012431 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012432 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012433 .block_erasers =
12434 {
12435 {
12436 .eraseblocks = { {4 * 1024, 64} },
12437 .block_erase = spi_block_erase_20,
12438 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012439 .eraseblocks = { {64 * 1024, 4} },
12440 .block_erase = spi_block_erase_d8,
12441 }, {
12442 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012443 .block_erase = spi_block_erase_c7,
12444 }
12445 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012447 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012448 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012449 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012450 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012451 },
12452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012453 {
12454 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012455 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012456 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012457 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012458 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012459 .total_size = 512,
12460 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012461 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012462 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012463 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012464 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012465 .block_erasers =
12466 {
12467 {
12468 .eraseblocks = { {4 * 1024, 128} },
12469 .block_erase = spi_block_erase_20,
12470 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012471 .eraseblocks = { {64 * 1024, 8} },
12472 .block_erase = spi_block_erase_d8,
12473 }, {
12474 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012475 .block_erase = spi_block_erase_c7,
12476 }
12477 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012478 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012479 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012480 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012481 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012482 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012483 },
12484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012485 {
12486 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012487 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012489 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012490 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012491 .total_size = 1024,
12492 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012493 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012494 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012495 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012496 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012497 .block_erasers =
12498 {
12499 {
12500 .eraseblocks = { {4 * 1024, 256} },
12501 .block_erase = spi_block_erase_20,
12502 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012503 .eraseblocks = { {64 * 1024, 16} },
12504 .block_erase = spi_block_erase_d8,
12505 }, {
12506 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012507 .block_erase = spi_block_erase_c7,
12508 }
12509 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012510 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012511 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012515 },
12516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012517 {
12518 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012519 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012520 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012521 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012522 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012523 .total_size = 2048,
12524 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012526 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012527 .probe = probe_spi_rdid,
12528 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012529 .block_erasers =
12530 {
12531 {
12532 .eraseblocks = { {4 * 1024, 512} },
12533 .block_erase = spi_block_erase_20,
12534 }, {
12535 .eraseblocks = { {32 * 1024, 64} },
12536 .block_erase = spi_block_erase_52,
12537 }, {
12538 .eraseblocks = { {64 * 1024, 32} },
12539 .block_erase = spi_block_erase_d8,
12540 }, {
12541 .eraseblocks = { {2 * 1024 * 1024, 1} },
12542 .block_erase = spi_block_erase_60,
12543 }, {
12544 .eraseblocks = { {2 * 1024 * 1024, 1} },
12545 .block_erase = spi_block_erase_c7,
12546 }
12547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012548 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012549 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012550 .write = spi_chip_write_256,
12551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012552 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012553 },
12554
12555 {
12556 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012557 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012558 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012559 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012560 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012561 .total_size = 4096,
12562 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012563 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012564 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012565 .probe = probe_spi_rdid,
12566 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012567 .block_erasers =
12568 {
12569 {
12570 .eraseblocks = { {4 * 1024, 1024} },
12571 .block_erase = spi_block_erase_20,
12572 }, {
12573 .eraseblocks = { {32 * 1024, 128} },
12574 .block_erase = spi_block_erase_52,
12575 }, {
12576 .eraseblocks = { {64 * 1024, 64} },
12577 .block_erase = spi_block_erase_d8,
12578 }, {
12579 .eraseblocks = { {4 * 1024 * 1024, 1} },
12580 .block_erase = spi_block_erase_60,
12581 }, {
12582 .eraseblocks = { {4 * 1024 * 1024, 1} },
12583 .block_erase = spi_block_erase_c7,
12584 }
12585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012587 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012588 .write = spi_chip_write_256,
12589 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012590 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012591 },
12592
12593 {
12594 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012595 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012596 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012597 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012598 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012599 .total_size = 8192,
12600 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012601 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012602 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012603 .probe = probe_spi_rdid,
12604 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012605 .block_erasers =
12606 {
12607 {
12608 .eraseblocks = { {4 * 1024, 2048} },
12609 .block_erase = spi_block_erase_20,
12610 }, {
12611 .eraseblocks = { {32 * 1024, 256} },
12612 .block_erase = spi_block_erase_52,
12613 }, {
12614 .eraseblocks = { {64 * 1024, 128} },
12615 .block_erase = spi_block_erase_d8,
12616 }, {
12617 .eraseblocks = { {8 * 1024 * 1024, 1} },
12618 .block_erase = spi_block_erase_60,
12619 }, {
12620 .eraseblocks = { {8 * 1024 * 1024, 1} },
12621 .block_erase = spi_block_erase_c7,
12622 }
12623 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012624 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012625 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012626 .write = spi_chip_write_256,
12627 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012628 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012629 },
12630
12631 {
12632 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012633 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012634 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012635 .manufacture_id = WINBOND_ID,
12636 .model_id = WINBOND_W29C010,
12637 .total_size = 128,
12638 .page_size = 128,
12639 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012640 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012641 .probe = probe_w29ee011,
12642 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12643 .block_erasers =
12644 {
12645 {
12646 .eraseblocks = { {128 * 1024, 1} },
12647 .block_erase = erase_chip_block_jedec,
12648 }
12649 },
12650 .write = write_jedec,
12651 .read = read_memmapped,
12652 },
12653
12654 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12655 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012656 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012657 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012658 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012659 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012660 .total_size = 128,
12661 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012662 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012663 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012664 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012665 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012666 .block_erasers =
12667 {
12668 {
12669 .eraseblocks = { {128 * 1024, 1} },
12670 .block_erase = erase_chip_block_jedec,
12671 }
12672 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012673 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012674 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012675 },
12676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012677 {
12678 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012679 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012680 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012681 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012682 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012683 .total_size = 256,
12684 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012685 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012687 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012688 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012689 .block_erasers =
12690 {
12691 {
12692 .eraseblocks = { {256 * 1024, 1} },
12693 .block_erase = erase_chip_block_jedec,
12694 }
12695 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012696 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012698 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012699 },
12700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 {
12702 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012703 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012704 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012705 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012706 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012707 .total_size = 512,
12708 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012709 .feature_bits = FEATURE_LONG_RESET,
12710 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012711 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012712 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012713 .block_erasers =
12714 {
12715 {
12716 .eraseblocks = { {512 * 1024, 1} },
12717 .block_erase = erase_chip_block_jedec,
12718 }
12719 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012720 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012722 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012723 },
12724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012725 {
12726 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012727 .name = "W39F010",
12728 .bustype = BUS_PARALLEL,
12729 .manufacture_id = WINBOND_ID,
12730 .model_id = WINBOND_W39F010,
12731 .total_size = 128,
12732 .page_size = 4 * 1024,
12733 .feature_bits = FEATURE_EITHER_RESET,
12734 .tested = TEST_OK_PREW,
12735 .probe = probe_jedec,
12736 .probe_timing = 10,
12737 .block_erasers =
12738 {
12739 {
12740 .eraseblocks = { {4 * 1024, 32} },
12741 .block_erase = erase_block_jedec,
12742 }, {
12743 .eraseblocks = { {128 * 1024, 1} },
12744 .block_erase = erase_chip_block_jedec,
12745 }
12746 },
12747 .printlock = printlock_w39f010,
12748 .write = write_jedec_1,
12749 .read = read_memmapped,
12750 .voltage = {4500, 5500},
12751 },
12752
12753 {
12754 .vendor = "Winbond",
12755 .name = "W39L010",
12756 .bustype = BUS_PARALLEL,
12757 .manufacture_id = WINBOND_ID,
12758 .model_id = WINBOND_W39L010,
12759 .total_size = 128,
12760 .page_size = 4 * 1024,
12761 .feature_bits = FEATURE_EITHER_RESET,
12762 .tested = TEST_UNTESTED,
12763 .probe = probe_jedec,
12764 .probe_timing = 10,
12765 .block_erasers =
12766 {
12767 {
12768 .eraseblocks = { {4 * 1024, 32} },
12769 .block_erase = erase_block_jedec,
12770 }, {
12771 .eraseblocks = { {128 * 1024, 1} },
12772 .block_erase = erase_chip_block_jedec,
12773 }
12774 },
12775 .printlock = printlock_w39l010,
12776 .write = write_jedec_1,
12777 .read = read_memmapped,
12778 .voltage = {3000, 3600},
12779 },
12780
12781 {
12782 .vendor = "Winbond",
12783 .name = "W39L020",
12784 .bustype = BUS_PARALLEL,
12785 .manufacture_id = WINBOND_ID,
12786 .model_id = WINBOND_W39L020,
12787 .total_size = 256,
12788 .page_size = 4 * 1024,
12789 .feature_bits = FEATURE_EITHER_RESET,
12790 .tested = TEST_UNTESTED,
12791 .probe = probe_jedec,
12792 .probe_timing = 10,
12793 .block_erasers =
12794 {
12795 {
12796 .eraseblocks = { {4 * 1024, 64} },
12797 .block_erase = erase_block_jedec,
12798 }, {
12799 .eraseblocks = { {64 * 1024, 4} },
12800 .block_erase = erase_sector_jedec,
12801 }, {
12802 .eraseblocks = { {256 * 1024, 1} },
12803 .block_erase = erase_chip_block_jedec,
12804 }
12805 },
12806 .printlock = printlock_w39l020,
12807 .write = write_jedec_1,
12808 .read = read_memmapped,
12809 .voltage = {3000, 3600},
12810 },
12811
12812 {
12813 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012814 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012815 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012816 .manufacture_id = WINBOND_ID,
12817 .model_id = WINBOND_W39L040,
12818 .total_size = 512,
12819 .page_size = 64 * 1024,
12820 .feature_bits = FEATURE_EITHER_RESET,
12821 .tested = TEST_OK_PR,
12822 .probe = probe_jedec,
12823 .probe_timing = 10,
12824 .block_erasers =
12825 {
12826 {
12827 .eraseblocks = { {4 * 1024, 128} },
12828 .block_erase = erase_block_jedec,
12829 }, {
12830 .eraseblocks = { {64 * 1024, 8} },
12831 .block_erase = erase_sector_jedec,
12832 }, {
12833 .eraseblocks = { {512 * 1024, 1} },
12834 .block_erase = erase_chip_block_jedec,
12835 }
12836 },
12837 .printlock = printlock_w39l040,
12838 .write = write_jedec_1,
12839 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012840 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012841 },
12842
12843 {
12844 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012845 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012846 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012847 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012848 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012850 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012851 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012852 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012853 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012854 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012855 .block_erasers =
12856 {
12857 {
12858 .eraseblocks = { {64 * 1024, 8} },
12859 .block_erase = erase_sector_jedec,
12860 }, {
12861 .eraseblocks = { {512 * 1024, 1} },
12862 .block_erase = erase_chip_block_jedec,
12863 }
12864 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012865 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012866 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012868 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012869 },
12870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012871 {
12872 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012873 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012874 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012875 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012876 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012877 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012878 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012879 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012880 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012881 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012882 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012883 .block_erasers =
12884 {
12885 {
12886 .eraseblocks = { {64 * 1024, 8} },
12887 .block_erase = erase_sector_jedec,
12888 }, {
12889 .eraseblocks = { {512 * 1024, 1} },
12890 .block_erase = erase_chip_block_jedec,
12891 }
12892 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012893 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012894 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012896 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012897 },
12898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012899 {
12900 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012901 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012902 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012903 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012904 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012905 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012906 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012907 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012908 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012909 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012910 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012911 .block_erasers =
12912 {
12913 {
12914 .eraseblocks = { {64 * 1024, 8} },
12915 .block_erase = erase_sector_jedec,
12916 }, {
12917 .eraseblocks = { {512 * 1024, 1} },
12918 .block_erase = erase_chip_block_jedec,
12919 }
12920 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012921 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012922 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012924 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012925 },
12926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012927 {
12928 .vendor = "Winbond",
12929 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012930 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012931 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012932 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012933 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012934 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012935 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012937 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012938 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012939 .block_erasers =
12940 {
12941 {
12942 .eraseblocks = { {4 * 1024, 128} },
12943 .block_erase = erase_block_jedec,
12944 }, {
12945 .eraseblocks = { {64 * 1024, 8} },
12946 .block_erase = erase_sector_jedec,
12947 }, {
12948 .eraseblocks = { {512 * 1024, 1} },
12949 .block_erase = erase_chip_block_jedec,
12950 }
12951 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012952 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012953 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012954 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012955 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012956 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012957 },
12958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012959 {
12960 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012961 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012962 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012963 .manufacture_id = WINBOND_ID,
12964 .model_id = WINBOND_W39V040B,
12965 .total_size = 512,
12966 .page_size = 64 * 1024,
12967 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012968 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012969 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012970 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012971 .block_erasers =
12972 {
12973 {
12974 .eraseblocks = { {64 * 1024, 8} },
12975 .block_erase = erase_sector_jedec,
12976 }, {
12977 .eraseblocks = { {512 * 1024, 1} },
12978 .block_erase = erase_chip_block_jedec,
12979 }
12980 },
12981 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012982 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012983 .write = write_jedec_1,
12984 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012985 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012986 },
12987
12988 {
12989 .vendor = "Winbond",
12990 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012991 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012992 .manufacture_id = WINBOND_ID,
12993 .model_id = WINBOND_W39V040C,
12994 .total_size = 512,
12995 .page_size = 64 * 1024,
12996 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012997 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012998 .probe = probe_jedec,
12999 .probe_timing = 10,
13000 .block_erasers =
13001 {
13002 {
13003 .eraseblocks = { {64 * 1024, 8} },
13004 .block_erase = erase_sector_jedec,
13005 }, {
13006 .eraseblocks = { {512 * 1024, 1} },
13007 .block_erase = erase_chip_block_jedec,
13008 }
13009 },
13010 .printlock = printlock_w39v040fc,
13011 .write = write_jedec_1,
13012 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013013 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013014 },
13015
13016 {
13017 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013018 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013019 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013020 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013021 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013022 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013023 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013024 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000013025 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013026 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000013027 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013028 .block_erasers =
13029 {
13030 {
13031 .eraseblocks = { {64 * 1024, 16} },
13032 .block_erase = erase_sector_jedec,
13033 }, {
13034 .eraseblocks = { {1024 * 1024, 1} },
13035 .block_erase = erase_chip_block_jedec,
13036 }
13037 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013038 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000013039 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013041 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013042 },
13043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013044 {
13045 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013046 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013047 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013048 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013049 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013050 .total_size = 256,
13051 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013052 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013053 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013054 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013055 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013056 .block_erasers =
13057 {
13058 {
13059 .eraseblocks = {
13060 {128 * 1024, 1},
13061 {96 * 1024, 1},
13062 {8 * 1024, 2},
13063 {16 * 1024, 1},
13064 },
13065 .block_erase = erase_sector_jedec,
13066 }, {
13067 .eraseblocks = { {256 * 1024, 1} },
13068 .block_erase = erase_chip_block_jedec,
13069 }
13070 },
Sean Nelson35727f72010-01-28 23:55:12 +000013071 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013073 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013074 },
13075
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013076 {
13077 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013078 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013079 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013080 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013081 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013082 .total_size = 256,
13083 .page_size = 128,
13084 .feature_bits = FEATURE_EITHER_RESET,
13085 .tested = TEST_OK_PROBE,
13086 .probe = probe_jedec,
13087 .probe_timing = 10,
13088 .block_erasers =
13089 {
13090 {
13091 .eraseblocks = { {256 * 1024, 1} },
13092 .block_erase = erase_chip_block_jedec,
13093 }
13094 },
13095 .write = write_jedec_1,
13096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013097 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013098 },
13099
13100 {
13101 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013102 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013103 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013104 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013105 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013106 .total_size = 256,
13107 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013108 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013109 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013110 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013111 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013112 .block_erasers =
13113 {
13114 {
13115 .eraseblocks = {
13116 {64 * 1024, 3},
13117 {32 * 1024, 1},
13118 {8 * 1024, 2},
13119 {16 * 1024, 1},
13120 },
13121 .block_erase = erase_sector_jedec,
13122 }, {
13123 .eraseblocks = { {256 * 1024, 1} },
13124 .block_erase = erase_chip_block_jedec,
13125 }
13126 },
Sean Nelson35727f72010-01-28 23:55:12 +000013127 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013128 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013129 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013130 },
13131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013132 {
13133 .vendor = "Winbond",
13134 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013135 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013136 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013137 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013138 .total_size = 256,
13139 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013140 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013141 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013142 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013143 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013144 .block_erasers =
13145 {
13146 {
13147 .eraseblocks = {
13148 {64 * 1024, 3},
13149 {32 * 1024, 1},
13150 {8 * 1024, 2},
13151 {16 * 1024, 1},
13152 },
13153 .block_erase = erase_sector_jedec,
13154 }, {
13155 .eraseblocks = { {256 * 1024, 1} },
13156 .block_erase = erase_chip_block_jedec,
13157 }
13158 },
Sean Nelson35727f72010-01-28 23:55:12 +000013159 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013161 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013162 },
13163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013164 {
13165 .vendor = "Winbond",
13166 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013167 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013168 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013169 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013170 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013171 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013172 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013173 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013174 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013175 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013176 .block_erasers =
13177 {
13178 {
13179 .eraseblocks = { {64 * 1024, 16}, },
13180 .block_erase = erase_sector_jedec,
13181 }, {
13182 .eraseblocks = { {1024 * 1024, 1} },
13183 .block_erase = erase_chip_block_jedec,
13184 }
13185 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013186 .printlock = printlock_w39v080fa,
13187 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013188 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013189 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013190 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013191 },
13192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013193 {
13194 .vendor = "Winbond",
13195 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013196 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013197 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013198 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013199 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013200 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013201 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013202 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013203 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013204 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013205 .block_erasers =
13206 {
13207 {
13208 .eraseblocks = { {64 * 1024, 8}, },
13209 .block_erase = erase_sector_jedec,
13210 }, {
13211 .eraseblocks = { {512 * 1024, 1} },
13212 .block_erase = erase_chip_block_jedec,
13213 }
13214 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013215 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013216 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013217 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013218 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013219 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013220
13221 {
13222 .vendor = "Unknown",
13223 .name = "SFDP-capable chip",
13224 .bustype = BUS_SPI,
13225 .manufacture_id = GENERIC_MANUF_ID,
13226 .model_id = SFDP_DEVICE_ID,
13227 /* We present our own "report this" text hence we do not
13228 * want the default "This flash part has status UNTESTED..."
13229 * text to be printed. */
13230 .tested = TEST_OK_PREW,
13231 .probe = probe_spi_sfdp,
13232 .unlock = spi_disable_blockprotect, /* is this safe? */
13233 .read = spi_chip_read,
13234 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013235 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013236 /* Everything below will be set by the probing function. */
13237 .write = NULL,
13238 .total_size = 0,
13239 .page_size = 0,
13240 .feature_bits = 0,
13241 .block_erasers = {},
13242 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013244 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013245 .vendor = "Programmer",
13246 .name = "Opaque flash chip",
13247 .bustype = BUS_PROG,
13248 .manufacture_id = PROGMANUF_ID,
13249 .model_id = PROGDEV_ID,
13250 .total_size = 0,
13251 .page_size = 256,
13252 /* probe is assumed to work, rest will be filled in by probe */
13253 .tested = TEST_OK_PROBE,
13254 .probe = probe_opaque,
13255 /* eraseblock sizes will be set by the probing function */
13256 .block_erasers =
13257 {
13258 {
13259 .block_erase = erase_opaque,
13260 }
13261 },
13262 .write = write_opaque,
13263 .read = read_opaque,
13264 },
13265
13266 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013267 .vendor = "AMIC",
13268 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013269 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013270 .manufacture_id = AMIC_ID,
13271 .model_id = GENERIC_DEVICE_ID,
13272 .total_size = 0,
13273 .page_size = 256,
13274 .tested = TEST_BAD_PREW,
13275 .probe = probe_spi_rdid4,
13276 .probe_timing = TIMING_ZERO,
13277 .write = NULL,
13278 .read = NULL,
13279 },
13280
13281 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013282 .vendor = "Atmel",
13283 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013284 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013285 .manufacture_id = ATMEL_ID,
13286 .model_id = GENERIC_DEVICE_ID,
13287 .total_size = 0,
13288 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013289 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013290 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013291 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013292 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013293 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013294 },
13295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013296 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013297 .vendor = "Eon",
13298 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013299 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013300 .manufacture_id = EON_ID_NOPREFIX,
13301 .model_id = GENERIC_DEVICE_ID,
13302 .total_size = 0,
13303 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013304 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013305 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013306 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013307 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013308 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013309 },
13310
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013311 {
13312 .vendor = "Macronix",
13313 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013314 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013315 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013316 .model_id = GENERIC_DEVICE_ID,
13317 .total_size = 0,
13318 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013319 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013321 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013322 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013323 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013324 },
13325
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013326 {
13327 .vendor = "PMC",
13328 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013329 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013330 .manufacture_id = PMC_ID,
13331 .model_id = GENERIC_DEVICE_ID,
13332 .total_size = 0,
13333 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013334 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013336 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013337 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013338 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013339 },
13340
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013341 {
13342 .vendor = "SST",
13343 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013344 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013345 .manufacture_id = SST_ID,
13346 .model_id = GENERIC_DEVICE_ID,
13347 .total_size = 0,
13348 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013349 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013350 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013351 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013352 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013353 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013354 },
13355
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013356 {
13357 .vendor = "ST",
13358 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013359 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013360 .manufacture_id = ST_ID,
13361 .model_id = GENERIC_DEVICE_ID,
13362 .total_size = 0,
13363 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013364 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013365 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013366 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013367 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013368 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013369 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013370
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013371 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013372 .vendor = "Sanyo",
13373 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013374 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013375 .manufacture_id = SANYO_ID,
13376 .model_id = GENERIC_DEVICE_ID,
13377 .total_size = 0,
13378 .page_size = 256,
13379 .tested = TEST_BAD_PREW,
13380 .probe = probe_spi_rdid,
13381 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013382 .write = NULL,
13383 .read = NULL,
13384 },
13385
13386 {
Stefan Taunereb582572012-09-21 12:52:50 +000013387 .vendor = "Winbond",
13388 .name = "unknown Winbond (ex Nexcom) SPI chip",
13389 .bustype = BUS_SPI,
13390 .manufacture_id = WINBOND_NEX_ID,
13391 .model_id = GENERIC_DEVICE_ID,
13392 .total_size = 0,
13393 .page_size = 256,
13394 .tested = TEST_BAD_PREW,
13395 .probe = probe_spi_rdid,
13396 .probe_timing = TIMING_ZERO,
13397 .write = NULL,
13398 .read = NULL,
13399 },
13400
13401 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013402 .vendor = "Generic",
13403 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013404 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013405 .manufacture_id = GENERIC_MANUF_ID,
13406 .model_id = GENERIC_DEVICE_ID,
13407 .total_size = 0,
13408 .page_size = 256,
13409 .tested = TEST_BAD_PREW,
13410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013411 .write = NULL,
13412 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013413
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013414 {
13415 .vendor = "Generic",
13416 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013417 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013418 .manufacture_id = GENERIC_MANUF_ID,
13419 .model_id = GENERIC_DEVICE_ID,
13420 .total_size = 0,
13421 .page_size = 256,
13422 .tested = TEST_BAD_PREW,
13423 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013424 .write = NULL,
13425 },
13426
Stefan Tauner96658be2014-05-26 22:05:31 +000013427 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013428};
Stefan Tauner96658be2014-05-26 22:05:31 +000013429
13430const unsigned int flashchips_size = ARRAY_SIZE(flashchips);