blob: 5cf4aa482a8740a399dc9f2c9e52a0cf44d5c996 [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,
1358 .tested = TEST_UNTESTED,
1359 .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 Tauner6ee37e22012-12-29 15:03:51 +00002192 .tested = TEST_BAD_WRITE,
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,
2278 .tested = TEST_UNTESTED,
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,
Sean Nelson54596372010-01-09 05:30:14 +00003231 .tested = TEST_UNTESTED,
3232 .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,
4274 .tested = TEST_UNTESTED,
4275 .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,
5176 .tested = TEST_UNTESTED,
5177 .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",
Stefan Taunerf656e802013-02-02 15:35:44 +00005912 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005913 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005914 .manufacture_id = MACRONIX_ID,
5915 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005916 .total_size = 64,
5917 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005918 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005919 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005920 .tested = TEST_UNTESTED,
5921 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005922 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005923 .block_erasers =
5924 {
5925 {
5926 .eraseblocks = { {4 * 1024, 16} },
5927 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005928 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005929 .eraseblocks = { {64 * 1024, 1} },
5930 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005931 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005932 .eraseblocks = { {64 * 1024, 1} },
5933 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005934 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005935 .eraseblocks = { {64 * 1024, 1} },
5936 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005937 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005938 .eraseblocks = { {64 * 1024, 1} },
5939 .block_erase = spi_block_erase_c7,
5940 },
5941 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005942 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005943 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005944 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005945 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5946 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005947 },
5948
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005949 {
5950 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005951 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005952 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005953 .manufacture_id = MACRONIX_ID,
5954 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005955 .total_size = 128,
5956 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005957 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005958 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005961 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005962 .block_erasers =
5963 {
5964 {
5965 .eraseblocks = { {4 * 1024, 32} },
5966 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005967 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005968 .eraseblocks = { {64 * 1024, 2} },
5969 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005970 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005971 .eraseblocks = { {128 * 1024, 1} },
5972 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005973 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005974 .eraseblocks = { {128 * 1024, 1} },
5975 .block_erase = spi_block_erase_c7,
5976 },
5977 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005978 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005979 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005980 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005981 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005982 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005983 },
5984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005985 {
5986 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005987 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005988 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005989 .manufacture_id = MACRONIX_ID,
5990 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005991 .total_size = 256,
5992 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005993 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005994 .tested = TEST_UNTESTED,
5995 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005996 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005997 .block_erasers =
5998 {
5999 {
6000 .eraseblocks = { {4 * 1024, 64} },
6001 .block_erase = spi_block_erase_20,
6002 }, {
6003 .eraseblocks = { {64 * 1024, 4} },
6004 .block_erase = spi_block_erase_52,
6005 }, {
6006 .eraseblocks = { {64 * 1024, 4} },
6007 .block_erase = spi_block_erase_d8,
6008 }, {
6009 .eraseblocks = { {256 * 1024, 1} },
6010 .block_erase = spi_block_erase_60,
6011 }, {
6012 .eraseblocks = { {256 * 1024, 1} },
6013 .block_erase = spi_block_erase_c7,
6014 },
6015 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006016 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006017 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006018 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006019 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006020 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006021 },
6022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006023 {
6024 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006025 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006026 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006027 .manufacture_id = MACRONIX_ID,
6028 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006029 .total_size = 512,
6030 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006031 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006032 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006033 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006034 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006035 .block_erasers =
6036 {
6037 {
6038 .eraseblocks = { {4 * 1024, 128} },
6039 .block_erase = spi_block_erase_20,
6040 }, {
6041 .eraseblocks = { {64 * 1024, 8} },
6042 .block_erase = spi_block_erase_52,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 8} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {512 * 1024, 1} },
6048 .block_erase = spi_block_erase_60,
6049 }, {
6050 .eraseblocks = { {512 * 1024, 1} },
6051 .block_erase = spi_block_erase_c7,
6052 },
6053 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006054 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006055 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006056 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006057 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006058 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006059 },
6060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006061 {
6062 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006063 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006064 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006065 .manufacture_id = MACRONIX_ID,
6066 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 .total_size = 1024,
6068 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006069 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006070 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006071 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006072 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006073 .block_erasers =
6074 {
6075 {
6076 .eraseblocks = { {4 * 1024, 256} },
6077 .block_erase = spi_block_erase_20,
6078 }, {
6079 .eraseblocks = { {64 * 1024, 16} },
6080 .block_erase = spi_block_erase_52,
6081 }, {
6082 .eraseblocks = { {64 * 1024, 16} },
6083 .block_erase = spi_block_erase_d8,
6084 }, {
6085 .eraseblocks = { {1024 * 1024, 1} },
6086 .block_erase = spi_block_erase_60,
6087 }, {
6088 .eraseblocks = { {1024 * 1024, 1} },
6089 .block_erase = spi_block_erase_c7,
6090 },
6091 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006092 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006093 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006094 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006095 .read = spi_chip_read, /* Fast read (0x0B) supported */
6096 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006097 },
6098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006099 {
6100 .vendor = "Macronix",
6101 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006102 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006103 .manufacture_id = MACRONIX_ID,
6104 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 .total_size = 2048,
6106 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006107 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006108 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006109 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006110 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006111 .block_erasers =
6112 {
6113 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006114 .eraseblocks = { {64 * 1024, 32} },
6115 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006116 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006117 .eraseblocks = { {64 * 1024, 32} },
6118 .block_erase = spi_block_erase_d8,
6119 }, {
6120 .eraseblocks = { {2 * 1024 * 1024, 1} },
6121 .block_erase = spi_block_erase_60,
6122 }, {
6123 .eraseblocks = { {2 * 1024 * 1024, 1} },
6124 .block_erase = spi_block_erase_c7,
6125 },
6126 },
6127 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6128 .unlock = spi_disable_blockprotect,
6129 .write = spi_chip_write_256,
6130 .read = spi_chip_read, /* Fast read (0x0B) supported */
6131 .voltage = {2700, 3600},
6132 },
6133
6134 {
6135 .vendor = "Macronix",
6136 .name = "MX25L1605A/MX25L1606E",
6137 .bustype = BUS_SPI,
6138 .manufacture_id = MACRONIX_ID,
6139 .model_id = MACRONIX_MX25L1605,
6140 .total_size = 2048,
6141 .page_size = 256,
6142 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6143 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6144 .tested = TEST_OK_PREW,
6145 .probe = probe_spi_rdid,
6146 .probe_timing = TIMING_ZERO,
6147 .block_erasers =
6148 {
6149 {
6150 .eraseblocks = { {4 * 1024, 512} },
6151 .block_erase = spi_block_erase_20,
6152 }, {
6153 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006154 .block_erase = spi_block_erase_52,
6155 }, {
6156 .eraseblocks = { {64 * 1024, 32} },
6157 .block_erase = spi_block_erase_d8,
6158 }, {
6159 .eraseblocks = { {2 * 1024 * 1024, 1} },
6160 .block_erase = spi_block_erase_60,
6161 }, {
6162 .eraseblocks = { {2 * 1024 * 1024, 1} },
6163 .block_erase = spi_block_erase_c7,
6164 },
6165 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006166 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006167 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006168 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006169 .read = spi_chip_read, /* Fast read (0x0B) supported */
6170 .voltage = {2700, 3600},
6171 },
6172
6173 {
6174 .vendor = "Macronix",
6175 .name = "MX25L1605D/MX25L1608D",
6176 .bustype = BUS_SPI,
6177 .manufacture_id = MACRONIX_ID,
6178 .model_id = MACRONIX_MX25L1605,
6179 .total_size = 2048,
6180 .page_size = 256,
6181 .feature_bits = FEATURE_WRSR_WREN,
6182 .tested = TEST_OK_PREW,
6183 .probe = probe_spi_rdid,
6184 .probe_timing = TIMING_ZERO,
6185 .block_erasers =
6186 {
6187 {
6188 .eraseblocks = { {4 * 1024, 512} },
6189 .block_erase = spi_block_erase_20,
6190 }, {
6191 .eraseblocks = { {64 * 1024, 32} },
6192 .block_erase = spi_block_erase_d8,
6193 }, {
6194 .eraseblocks = { {2 * 1024 * 1024, 1} },
6195 .block_erase = spi_block_erase_60,
6196 }, {
6197 .eraseblocks = { {2 * 1024 * 1024, 1} },
6198 .block_erase = spi_block_erase_c7,
6199 },
6200 },
6201 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6202 .unlock = spi_disable_blockprotect,
6203 .write = spi_chip_write_256,
6204 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006205 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006206 },
6207
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006208 {
6209 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006210 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006211 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006212 .manufacture_id = MACRONIX_ID,
6213 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006214 .total_size = 2048,
6215 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006216 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006218 .tested = TEST_UNTESTED,
6219 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006220 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = { {4 * 1024, 512} },
6225 .block_erase = spi_block_erase_20,
6226 }, {
6227 .eraseblocks = { {64 * 1024, 32} },
6228 .block_erase = spi_block_erase_d8,
6229 }, {
6230 .eraseblocks = { {2 * 1024 * 1024, 1} },
6231 .block_erase = spi_block_erase_60,
6232 }, {
6233 .eraseblocks = { {2 * 1024 * 1024, 1} },
6234 .block_erase = spi_block_erase_c7,
6235 }
6236 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006237 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006239 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006240 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006241 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006242 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006243
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006244 {
6245 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006246 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006247 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006248 .manufacture_id = MACRONIX_ID,
6249 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006250 .total_size = 2048,
6251 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006252 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006254 .tested = TEST_UNTESTED,
6255 .probe = probe_spi_rdid,
6256 .probe_timing = TIMING_ZERO,
6257 .block_erasers =
6258 {
6259 {
6260 .eraseblocks = { {4 * 1024, 512} },
6261 .block_erase = spi_block_erase_20,
6262 }, {
6263 .eraseblocks = { {64 * 1024, 32} },
6264 .block_erase = spi_block_erase_d8,
6265 }, {
6266 .eraseblocks = { {2 * 1024 * 1024, 1} },
6267 .block_erase = spi_block_erase_60,
6268 }, {
6269 .eraseblocks = { {2 * 1024 * 1024, 1} },
6270 .block_erase = spi_block_erase_c7,
6271 }
6272 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006273 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006274 .unlock = spi_disable_blockprotect,
6275 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006276 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006277 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006278 },
6279
6280 {
6281 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006282 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006283 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006284 .manufacture_id = MACRONIX_ID,
6285 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006286 .total_size = 4096,
6287 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006288 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006289 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006290 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006291 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006292 .block_erasers =
6293 {
6294 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006295 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006296 .block_erase = spi_block_erase_20,
6297 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006299 .block_erase = spi_block_erase_d8,
6300 }, {
6301 .eraseblocks = { {4 * 1024 * 1024, 1} },
6302 .block_erase = spi_block_erase_60,
6303 }, {
6304 .eraseblocks = { {4 * 1024 * 1024, 1} },
6305 .block_erase = spi_block_erase_c7,
6306 },
6307 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006308 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006309 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006310 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006311 .read = spi_chip_read, /* Fast read (0x0B) supported */
6312 .voltage = {2700, 3600},
6313 },
6314
6315 {
6316 .vendor = "Macronix",
6317 .name = "MX25L3205D/MX25L3208D",
6318 .bustype = BUS_SPI,
6319 .manufacture_id = MACRONIX_ID,
6320 .model_id = MACRONIX_MX25L3205,
6321 .total_size = 4096,
6322 .page_size = 256,
6323 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6325 .tested = TEST_OK_PREW,
6326 .probe = probe_spi_rdid,
6327 .probe_timing = TIMING_ZERO,
6328 .block_erasers =
6329 {
6330 {
6331 .eraseblocks = { {4 * 1024, 1024} },
6332 .block_erase = spi_block_erase_20,
6333 }, {
6334 .eraseblocks = { {64 * 1024, 64} },
6335 .block_erase = spi_block_erase_d8,
6336 }, {
6337 .eraseblocks = { {4 * 1024 * 1024, 1} },
6338 .block_erase = spi_block_erase_60,
6339 }, {
6340 .eraseblocks = { {4 * 1024 * 1024, 1} },
6341 .block_erase = spi_block_erase_c7,
6342 },
6343 },
6344 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6345 .unlock = spi_disable_blockprotect,
6346 .write = spi_chip_write_256,
6347 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6348 .voltage = {2700, 3600},
6349 },
6350
6351 {
6352 .vendor = "Macronix",
6353 .name = "MX25L3206E",
6354 .bustype = BUS_SPI,
6355 .manufacture_id = MACRONIX_ID,
6356 .model_id = MACRONIX_MX25L3205,
6357 .total_size = 4096,
6358 .page_size = 256,
6359 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6361 .tested = TEST_OK_PREW,
6362 .probe = probe_spi_rdid,
6363 .probe_timing = TIMING_ZERO,
6364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 1024} },
6368 .block_erase = spi_block_erase_20,
6369 }, {
6370 .eraseblocks = { {64 * 1024, 64} },
6371 .block_erase = spi_block_erase_d8,
6372 }, {
6373 .eraseblocks = { {64 * 1024, 64} },
6374 .block_erase = spi_block_erase_52,
6375 }, {
6376 .eraseblocks = { {4 * 1024 * 1024, 1} },
6377 .block_erase = spi_block_erase_60,
6378 }, {
6379 .eraseblocks = { {4 * 1024 * 1024, 1} },
6380 .block_erase = spi_block_erase_c7,
6381 },
6382 },
6383 .printlock = spi_prettyprint_status_register_default_bp3,
6384 .unlock = spi_disable_blockprotect,
6385 .write = spi_chip_write_256,
6386 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006387 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006388 },
6389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006390 {
6391 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006392 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006393 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006394 .manufacture_id = MACRONIX_ID,
6395 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006396 .total_size = 4096,
6397 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006398 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006400 .tested = TEST_UNTESTED,
6401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006402 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006403 .block_erasers =
6404 {
6405 {
6406 .eraseblocks = { {4 * 1024, 1024} },
6407 .block_erase = spi_block_erase_20,
6408 }, {
6409 .eraseblocks = { {64 * 1024, 64} },
6410 .block_erase = spi_block_erase_d8,
6411 }, {
6412 .eraseblocks = { {4 * 1024 * 1024, 1} },
6413 .block_erase = spi_block_erase_60,
6414 }, {
6415 .eraseblocks = { {4 * 1024 * 1024, 1} },
6416 .block_erase = spi_block_erase_c7,
6417 }
6418 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006419 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006420 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006421 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006422 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006423 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006424 },
6425
6426 {
6427 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006428 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006429 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006430 .manufacture_id = MACRONIX_ID,
6431 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006432 .total_size = 8192,
6433 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006434 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6435 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006436 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006437 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006438 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006439 .block_erasers =
6440 {
6441 {
6442 .eraseblocks = { {64 * 1024, 128} },
6443 .block_erase = spi_block_erase_20,
6444 }, {
6445 .eraseblocks = { {64 * 1024, 128} },
6446 .block_erase = spi_block_erase_d8,
6447 }, {
6448 .eraseblocks = { {8 * 1024 * 1024, 1} },
6449 .block_erase = spi_block_erase_60,
6450 }, {
6451 .eraseblocks = { {8 * 1024 * 1024, 1} },
6452 .block_erase = spi_block_erase_c7,
6453 }
6454 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006455 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006456 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006457 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006459 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006460 },
6461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006462 {
6463 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006464 .name = "MX25L6406E/MX25L6436E",
6465 .bustype = BUS_SPI,
6466 .manufacture_id = MACRONIX_ID,
6467 .model_id = MACRONIX_MX25L6405,
6468 .total_size = 8192,
6469 .page_size = 256,
6470 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6471 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6472 .tested = TEST_OK_PREW,
6473 .probe = probe_spi_rdid,
6474 .probe_timing = TIMING_ZERO,
6475 .block_erasers =
6476 {
6477 {
6478 .eraseblocks = { {4 * 1024, 2048} },
6479 .block_erase = spi_block_erase_20,
6480 }, {
6481 .eraseblocks = { {64 * 1024, 128} },
6482 .block_erase = spi_block_erase_d8,
6483 }, {
6484 .eraseblocks = { {8 * 1024 * 1024, 1} },
6485 .block_erase = spi_block_erase_60,
6486 }, {
6487 .eraseblocks = { {8 * 1024 * 1024, 1} },
6488 .block_erase = spi_block_erase_c7,
6489 }
6490 },
6491 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6492 .unlock = spi_disable_blockprotect,
6493 .write = spi_chip_write_256,
6494 .read = spi_chip_read,
6495 .voltage = {2700, 3600},
6496 },
6497
6498 {
6499 .vendor = "Macronix",
6500 .name = "MX25L6445E",
6501 .bustype = BUS_SPI,
6502 .manufacture_id = MACRONIX_ID,
6503 .model_id = MACRONIX_MX25L6405,
6504 .total_size = 8192,
6505 .page_size = 256,
6506 /* supports SFDP */
6507 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6508 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6509 .tested = TEST_OK_PREW,
6510 .probe = probe_spi_rdid,
6511 .probe_timing = TIMING_ZERO,
6512 .block_erasers =
6513 {
6514 {
6515 .eraseblocks = { {4 * 1024, 2048} },
6516 .block_erase = spi_block_erase_20,
6517 }, {
6518 .eraseblocks = { {32 * 1024, 256} },
6519 .block_erase = spi_block_erase_52,
6520 }, {
6521 .eraseblocks = { {64 * 1024, 128} },
6522 .block_erase = spi_block_erase_d8,
6523 }, {
6524 .eraseblocks = { {8 * 1024 * 1024, 1} },
6525 .block_erase = spi_block_erase_60,
6526 }, {
6527 .eraseblocks = { {8 * 1024 * 1024, 1} },
6528 .block_erase = spi_block_erase_c7,
6529 }
6530 },
6531 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6532 .unlock = spi_disable_blockprotect,
6533 .write = spi_chip_write_256,
6534 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6535 .voltage = {2700, 3600},
6536 },
6537
6538 {
6539 .vendor = "Macronix",
6540 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006541 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006542 .manufacture_id = MACRONIX_ID,
6543 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006544 .total_size = 16384,
6545 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006546 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6547 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006548 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006549 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006550 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006551 .block_erasers =
6552 {
6553 {
6554 .eraseblocks = { {4 * 1024, 4096} },
6555 .block_erase = spi_block_erase_20,
6556 }, {
6557 .eraseblocks = { {64 * 1024, 256} },
6558 .block_erase = spi_block_erase_d8,
6559 }, {
6560 .eraseblocks = { {16 * 1024 * 1024, 1} },
6561 .block_erase = spi_block_erase_60,
6562 }, {
6563 .eraseblocks = { {16 * 1024 * 1024, 1} },
6564 .block_erase = spi_block_erase_c7,
6565 }
6566 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006567 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006568 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006569 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006570 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006571 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006572 },
6573
6574 {
6575 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006576 .name = "MX25U1635E",
6577 .bustype = BUS_SPI,
6578 .manufacture_id = MACRONIX_ID,
6579 .model_id = MACRONIX_MX25U1635E,
6580 .total_size = 2048,
6581 .page_size = 256,
6582 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6583 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6584 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6585 .tested = TEST_UNTESTED,
6586 .probe = probe_spi_rdid,
6587 .probe_timing = TIMING_ZERO,
6588 .block_erasers =
6589 {
6590 {
6591 .eraseblocks = { {4 * 1024, 512} },
6592 .block_erase = spi_block_erase_20,
6593 }, {
6594 .eraseblocks = { {32 * 1024, 64} },
6595 .block_erase = spi_block_erase_52,
6596 }, {
6597 .eraseblocks = { {64 * 1024, 32} },
6598 .block_erase = spi_block_erase_d8,
6599 }, {
6600 .eraseblocks = { {2 * 1024 * 1024, 1} },
6601 .block_erase = spi_block_erase_60,
6602 }, {
6603 .eraseblocks = { {2 * 1024 * 1024, 1} },
6604 .block_erase = spi_block_erase_c7,
6605 }
6606 },
6607 /* TODO: security register */
6608 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6609 .unlock = spi_disable_blockprotect,
6610 .write = spi_chip_write_256,
6611 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6612 .voltage = {1650, 2000},
6613 },
6614
6615 {
6616 .vendor = "Macronix",
6617 .name = "MX25U3235E/F",
6618 .bustype = BUS_SPI,
6619 .manufacture_id = MACRONIX_ID,
6620 .model_id = MACRONIX_MX25U3235E,
6621 .total_size = 4096,
6622 .page_size = 256,
6623 /* F model supports SFDP */
6624 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6625 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6626 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6627 .tested = TEST_OK_PREW,
6628 .probe = probe_spi_rdid,
6629 .probe_timing = TIMING_ZERO,
6630 .block_erasers =
6631 {
6632 {
6633 .eraseblocks = { {4 * 1024, 1024} },
6634 .block_erase = spi_block_erase_20,
6635 }, {
6636 .eraseblocks = { {32 * 1024, 128} },
6637 .block_erase = spi_block_erase_52,
6638 }, {
6639 .eraseblocks = { {64 * 1024, 64} },
6640 .block_erase = spi_block_erase_d8,
6641 }, {
6642 .eraseblocks = { {4 * 1024 * 1024, 1} },
6643 .block_erase = spi_block_erase_60,
6644 }, {
6645 .eraseblocks = { {4 * 1024 * 1024, 1} },
6646 .block_erase = spi_block_erase_c7,
6647 }
6648 },
6649 /* TODO: security register */
6650 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6651 .unlock = spi_disable_blockprotect,
6652 .write = spi_chip_write_256,
6653 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6654 .voltage = {1650, 2000},
6655 },
6656
6657 {
6658 .vendor = "Macronix",
6659 .name = "MX25U6435E/F",
6660 .bustype = BUS_SPI,
6661 .manufacture_id = MACRONIX_ID,
6662 .model_id = MACRONIX_MX25U6435E,
6663 .total_size = 8192,
6664 .page_size = 256,
6665 /* F model supports SFDP */
6666 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6667 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6669 .tested = TEST_UNTESTED,
6670 .probe = probe_spi_rdid,
6671 .probe_timing = TIMING_ZERO,
6672 .block_erasers =
6673 {
6674 {
6675 .eraseblocks = { {4 * 1024, 2048} },
6676 .block_erase = spi_block_erase_20,
6677 }, {
6678 .eraseblocks = { {32 * 1024, 256} },
6679 .block_erase = spi_block_erase_52,
6680 }, {
6681 .eraseblocks = { {64 * 1024, 128} },
6682 .block_erase = spi_block_erase_d8,
6683 }, {
6684 .eraseblocks = { {8 * 1024 * 1024, 1} },
6685 .block_erase = spi_block_erase_60,
6686 }, {
6687 .eraseblocks = { {8 * 1024 * 1024, 1} },
6688 .block_erase = spi_block_erase_c7,
6689 }
6690 },
6691 /* TODO: security register */
6692 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6693 .unlock = spi_disable_blockprotect,
6694 .write = spi_chip_write_256,
6695 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6696 .voltage = {1650, 2000},
6697 },
6698
6699 {
6700 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006701 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006702 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006703 .manufacture_id = MACRONIX_ID,
6704 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006705 .total_size = 128,
6706 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006707 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6708 .tested = TEST_UNTESTED,
6709 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006710 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006711 .block_erasers =
6712 {
6713 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006714 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006715 {8 * 1024, 1},
6716 {4 * 1024, 2},
6717 {8 * 1024, 2},
6718 {32 * 1024, 1},
6719 {64 * 1024, 1},
6720 },
Sean Nelson35727f72010-01-28 23:55:12 +00006721 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006722 }, {
6723 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006724 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006725 }
6726 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006727 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006728 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006729 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006730 },
6731
6732 {
6733 .vendor = "Macronix",
6734 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006735 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006736 .manufacture_id = MACRONIX_ID,
6737 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006738 .total_size = 128,
6739 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006740 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006741 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006742 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006743 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006744 .block_erasers =
6745 {
6746 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006747 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006748 {64 * 1024, 1},
6749 {32 * 1024, 1},
6750 {8 * 1024, 2},
6751 {4 * 1024, 2},
6752 {8 * 1024, 1},
6753 },
Sean Nelson35727f72010-01-28 23:55:12 +00006754 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006755 }, {
6756 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006757 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006758 }
6759 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006760 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006761 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006762 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006763 },
6764
6765 {
6766 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006767 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006768 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006769 .manufacture_id = MACRONIX_ID,
6770 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006771 .total_size = 256,
6772 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006773 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006774 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006775 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006776 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006777 .block_erasers =
6778 {
6779 {
6780 .eraseblocks = {
6781 {16 * 1024, 1},
6782 {8 * 1024, 2},
6783 {32 * 1024, 1},
6784 {64 * 1024, 3},
6785 },
Sean Nelson35727f72010-01-28 23:55:12 +00006786 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006787 }, {
6788 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006789 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006790 },
6791 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006792 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006793 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006794 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006795 },
6796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006797 {
6798 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006799 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006800 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006801 .manufacture_id = MACRONIX_ID,
6802 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006803 .total_size = 256,
6804 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006805 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006806 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006807 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006808 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006809 .block_erasers =
6810 {
6811 {
6812 .eraseblocks = {
6813 {64 * 1024, 3},
6814 {32 * 1024, 1},
6815 {8 * 1024, 2},
6816 {16 * 1024, 1},
6817 },
Sean Nelson35727f72010-01-28 23:55:12 +00006818 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006819 }, {
6820 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006821 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006822 },
6823 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006824 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006826 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006827 },
6828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 {
6830 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006831 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006832 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006833 .manufacture_id = MACRONIX_ID,
6834 .model_id = MACRONIX_MX29F040,
6835 .total_size = 512,
6836 .page_size = 64 * 1024,
6837 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6838 .tested = TEST_UNTESTED,
6839 .probe = probe_jedec,
6840 .probe_timing = TIMING_ZERO,
6841 .block_erasers =
6842 {
6843 {
6844 .eraseblocks = { {64 * 1024, 8} },
6845 .block_erase = erase_sector_jedec,
6846 }, {
6847 .eraseblocks = { {512 * 1024, 1} },
6848 .block_erase = erase_chip_block_jedec,
6849 },
6850 },
6851 .write = write_jedec_1,
6852 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006853 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006854 },
6855
6856 {
6857 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006858 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006859 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006860 .manufacture_id = MACRONIX_ID,
6861 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006862 .total_size = 512,
6863 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006864 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6865 .tested = TEST_UNTESTED,
6866 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006867 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006868 .block_erasers =
6869 {
6870 {
6871 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006872 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006873 }, {
6874 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006875 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006876 },
6877 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006878 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006879 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006880 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006881 },
6882
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006883 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006884 .vendor = "Micron/Numonyx/ST",
6885 .name = "M25P05-A",
6886 .bustype = BUS_SPI,
6887 .manufacture_id = ST_ID,
6888 .model_id = ST_M25P05A,
6889 .total_size = 64,
6890 .page_size = 256,
6891 .feature_bits = FEATURE_WRSR_WREN,
6892 .tested = TEST_OK_PREW,
6893 .probe = probe_spi_rdid,
6894 .probe_timing = TIMING_ZERO,
6895 .block_erasers =
6896 {
6897 {
6898 .eraseblocks = { {32 * 1024, 2} },
6899 .block_erase = spi_block_erase_d8,
6900 }, {
6901 .eraseblocks = { {64 * 1024, 1} },
6902 .block_erase = spi_block_erase_c7,
6903 }
6904 },
6905 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6906 .unlock = spi_disable_blockprotect,
6907 .write = spi_chip_write_256,
6908 .read = spi_chip_read,
6909 .voltage = {2700, 3600},
6910 },
6911
6912 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6913 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
6914 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
6915 * only is successful if RDID does not work.
6916 */
6917 {
6918 .vendor = "Micron/Numonyx/ST",
6919 .name = "M25P05",
6920 .bustype = BUS_SPI,
6921 .manufacture_id = 0, /* Not used. */
6922 .model_id = ST_M25P05_RES,
6923 .total_size = 64,
6924 .page_size = 256,
6925 .feature_bits = FEATURE_WRSR_WREN,
6926 .tested = TEST_UNTESTED,
6927 .probe = probe_spi_res1,
6928 .probe_timing = TIMING_ZERO,
6929 .block_erasers =
6930 {
6931 {
6932 .eraseblocks = { {32 * 1024, 2} },
6933 .block_erase = spi_block_erase_d8,
6934 }, {
6935 .eraseblocks = { {64 * 1024, 1} },
6936 .block_erase = spi_block_erase_c7,
6937 }
6938 },
6939 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6940 .unlock = spi_disable_blockprotect,
6941 .write = spi_chip_write_1, /* 128 */
6942 .read = spi_chip_read,
6943 .voltage = {2700, 3600},
6944 },
6945
6946 {
6947 .vendor = "Micron/Numonyx/ST",
6948 .name = "M25P10-A",
6949 .bustype = BUS_SPI,
6950 .manufacture_id = ST_ID,
6951 .model_id = ST_M25P10A,
6952 .total_size = 128,
6953 .page_size = 256,
6954 .feature_bits = FEATURE_WRSR_WREN,
6955 .tested = TEST_OK_PRE,
6956 .probe = probe_spi_rdid,
6957 .probe_timing = TIMING_ZERO,
6958 .block_erasers =
6959 {
6960 {
6961 .eraseblocks = { {32 * 1024, 4} },
6962 .block_erase = spi_block_erase_d8,
6963 }, {
6964 .eraseblocks = { {128 * 1024, 1} },
6965 .block_erase = spi_block_erase_c7,
6966 }
6967 },
6968 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6969 .unlock = spi_disable_blockprotect,
6970 .write = spi_chip_write_256,
6971 .read = spi_chip_read,
6972 .voltage = {2700, 3600},
6973 },
6974
6975 /* The ST M25P10 has the same problem as the M25P05. */
6976 {
6977 .vendor = "Micron/Numonyx/ST",
6978 .name = "M25P10",
6979 .bustype = BUS_SPI,
6980 .manufacture_id = 0, /* Not used. */
6981 .model_id = ST_M25P10_RES,
6982 .total_size = 128,
6983 .page_size = 256,
6984 .feature_bits = FEATURE_WRSR_WREN,
6985 .tested = TEST_UNTESTED,
6986 .probe = probe_spi_res1,
6987 .probe_timing = TIMING_ZERO,
6988 .block_erasers =
6989 {
6990 {
6991 .eraseblocks = { {32 * 1024, 4} },
6992 .block_erase = spi_block_erase_d8,
6993 }, {
6994 .eraseblocks = { {128 * 1024, 1} },
6995 .block_erase = spi_block_erase_c7,
6996 }
6997 },
6998 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6999 .unlock = spi_disable_blockprotect,
7000 .write = spi_chip_write_1, /* 128 */
7001 .read = spi_chip_read,
7002 .voltage = {2700, 3600},
7003 },
7004
7005 {
7006 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7007 .name = "M25P20",
7008 .bustype = BUS_SPI,
7009 .manufacture_id = ST_ID,
7010 .model_id = ST_M25P20,
7011 .total_size = 256,
7012 .page_size = 256,
7013 .feature_bits = FEATURE_WRSR_WREN,
7014 .tested = TEST_UNTESTED,
7015 .probe = probe_spi_rdid,
7016 .probe_timing = TIMING_ZERO,
7017 .block_erasers =
7018 {
7019 {
7020 .eraseblocks = { {64 * 1024, 4} },
7021 .block_erase = spi_block_erase_d8,
7022 }, {
7023 .eraseblocks = { {256 * 1024, 1} },
7024 .block_erase = spi_block_erase_c7,
7025 }
7026 },
7027 .printlock = spi_prettyprint_status_register_default_bp1,
7028 .unlock = spi_disable_blockprotect,
7029 .write = spi_chip_write_256,
7030 .read = spi_chip_read, /* Fast read (0x0B) supported */
7031 .voltage = {2700, 3600},
7032 },
7033
7034 {
7035 .vendor = "Micron/Numonyx/ST",
7036 .name = "M25P20-old",
7037 .bustype = BUS_SPI,
7038 .manufacture_id = 0, /* Not used. */
7039 .model_id = ST_M25P20_RES,
7040 .total_size = 256,
7041 .page_size = 256,
7042 .feature_bits = FEATURE_WRSR_WREN,
7043 .tested = TEST_OK_PREW,
7044 .probe = probe_spi_res1,
7045 .probe_timing = TIMING_ZERO,
7046 .block_erasers =
7047 {
7048 {
7049 .eraseblocks = { {64 * 1024, 4} },
7050 .block_erase = spi_block_erase_d8,
7051 }, {
7052 .eraseblocks = { {256 * 1024, 1} },
7053 .block_erase = spi_block_erase_c7,
7054 }
7055 },
7056 .printlock = spi_prettyprint_status_register_default_bp1,
7057 .unlock = spi_disable_blockprotect,
7058 .write = spi_chip_write_256,
7059 .read = spi_chip_read, /* Fast read (0x0B) supported */
7060 .voltage = {2700, 3600},
7061 },
7062
7063 {
7064 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7065 .name = "M25P40",
7066 .bustype = BUS_SPI,
7067 .manufacture_id = ST_ID,
7068 .model_id = ST_M25P40,
7069 .total_size = 512,
7070 .page_size = 256,
7071 .feature_bits = FEATURE_WRSR_WREN,
7072 .tested = TEST_OK_PREW,
7073 .probe = probe_spi_rdid,
7074 .probe_timing = TIMING_ZERO,
7075 .block_erasers =
7076 {
7077 {
7078 .eraseblocks = { {64 * 1024, 8} },
7079 .block_erase = spi_block_erase_d8,
7080 }, {
7081 .eraseblocks = { {512 * 1024, 1} },
7082 .block_erase = spi_block_erase_c7,
7083 }
7084 },
7085 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7086 .unlock = spi_disable_blockprotect,
7087 .write = spi_chip_write_256,
7088 .read = spi_chip_read,
7089 .voltage = {2700, 3600},
7090 },
7091
7092 {
7093 .vendor = "Micron/Numonyx/ST",
7094 .name = "M25P40-old",
7095 .bustype = BUS_SPI,
7096 .manufacture_id = 0, /* Not used. */
7097 .model_id = ST_M25P40_RES,
7098 .total_size = 512,
7099 .page_size = 256,
7100 .feature_bits = FEATURE_WRSR_WREN,
7101 .tested = TEST_UNTESTED,
7102 .probe = probe_spi_res1,
7103 .probe_timing = TIMING_ZERO,
7104 .block_erasers =
7105 {
7106 {
7107 .eraseblocks = { {64 * 1024, 8} },
7108 .block_erase = spi_block_erase_d8,
7109 }, {
7110 .eraseblocks = { {512 * 1024, 1} },
7111 .block_erase = spi_block_erase_c7,
7112 }
7113 },
7114 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7115 .unlock = spi_disable_blockprotect,
7116 .write = spi_chip_write_256,
7117 .read = spi_chip_read,
7118 },
7119
7120 {
7121 .vendor = "Micron/Numonyx/ST",
7122 .name = "M25P80",
7123 .bustype = BUS_SPI,
7124 .manufacture_id = ST_ID,
7125 .model_id = ST_M25P80,
7126 .total_size = 1024,
7127 .page_size = 256,
7128 .feature_bits = FEATURE_WRSR_WREN,
7129 .tested = TEST_OK_PREW,
7130 .probe = probe_spi_rdid,
7131 .probe_timing = TIMING_ZERO,
7132 .block_erasers =
7133 {
7134 {
7135 .eraseblocks = { {64 * 1024, 16} },
7136 .block_erase = spi_block_erase_d8,
7137 }, {
7138 .eraseblocks = { {1024 * 1024, 1} },
7139 .block_erase = spi_block_erase_c7,
7140 }
7141 },
7142 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7143 .unlock = spi_disable_blockprotect,
7144 .write = spi_chip_write_256,
7145 .read = spi_chip_read,
7146 .voltage = {2700, 3600},
7147 },
7148
7149 {
7150 .vendor = "Micron/Numonyx/ST",
7151 .name = "M25P16",
7152 .bustype = BUS_SPI,
7153 .manufacture_id = ST_ID,
7154 .model_id = ST_M25P16,
7155 .total_size = 2048,
7156 .page_size = 256,
7157 .feature_bits = FEATURE_WRSR_WREN,
7158 .tested = TEST_OK_PR,
7159 .probe = probe_spi_rdid,
7160 .probe_timing = TIMING_ZERO,
7161 .block_erasers =
7162 {
7163 {
7164 .eraseblocks = { {64 * 1024, 32} },
7165 .block_erase = spi_block_erase_d8,
7166 }, {
7167 .eraseblocks = { {2 * 1024 * 1024, 1} },
7168 .block_erase = spi_block_erase_c7,
7169 }
7170 },
7171 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7172 .unlock = spi_disable_blockprotect,
7173 .write = spi_chip_write_256,
7174 .read = spi_chip_read,
7175 .voltage = {2700, 3600},
7176 },
7177
7178 {
7179 .vendor = "Micron/Numonyx/ST",
7180 .name = "M25P32",
7181 .bustype = BUS_SPI,
7182 .manufacture_id = ST_ID,
7183 .model_id = ST_M25P32,
7184 .total_size = 4096,
7185 .page_size = 256,
7186 .feature_bits = FEATURE_WRSR_WREN,
7187 .tested = TEST_OK_PREW,
7188 .probe = probe_spi_rdid,
7189 .probe_timing = TIMING_ZERO,
7190 .block_erasers =
7191 {
7192 {
7193 .eraseblocks = { {64 * 1024, 64} },
7194 .block_erase = spi_block_erase_d8,
7195 }, {
7196 .eraseblocks = { {4 * 1024 * 1024, 1} },
7197 .block_erase = spi_block_erase_c7,
7198 }
7199 },
7200 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7201 .unlock = spi_disable_blockprotect,
7202 .write = spi_chip_write_256,
7203 .read = spi_chip_read,
7204 .voltage = {2700, 3600},
7205 },
7206
7207 {
7208 .vendor = "Micron/Numonyx/ST",
7209 .name = "M25P64",
7210 .bustype = BUS_SPI,
7211 .manufacture_id = ST_ID,
7212 .model_id = ST_M25P64,
7213 .total_size = 8192,
7214 .page_size = 256,
7215 .feature_bits = FEATURE_WRSR_WREN,
7216 .tested = TEST_OK_PREW,
7217 .probe = probe_spi_rdid,
7218 .probe_timing = TIMING_ZERO,
7219 .block_erasers =
7220 {
7221 {
7222 .eraseblocks = { {64 * 1024, 128} },
7223 .block_erase = spi_block_erase_d8,
7224 }, {
7225 .eraseblocks = { {8 * 1024 * 1024, 1} },
7226 .block_erase = spi_block_erase_c7,
7227 }
7228 },
7229 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7230 .unlock = spi_disable_blockprotect,
7231 .write = spi_chip_write_256,
7232 .read = spi_chip_read,
7233 .voltage = {2700, 3600},
7234 },
7235
7236 {
7237 .vendor = "Micron/Numonyx/ST",
7238 .name = "M25P128",
7239 .bustype = BUS_SPI,
7240 .manufacture_id = ST_ID,
7241 .model_id = ST_M25P128,
7242 .total_size = 16384,
7243 .page_size = 256,
7244 .feature_bits = FEATURE_WRSR_WREN,
7245 .tested = TEST_OK_PREW,
7246 .probe = probe_spi_rdid,
7247 .probe_timing = TIMING_ZERO,
7248 .block_erasers =
7249 {
7250 {
7251 .eraseblocks = { {256 * 1024, 64} },
7252 .block_erase = spi_block_erase_d8,
7253 }, {
7254 .eraseblocks = { {16 * 1024 * 1024, 1} },
7255 .block_erase = spi_block_erase_c7,
7256 }
7257 },
7258 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7259 .unlock = spi_disable_blockprotect,
7260 .write = spi_chip_write_256,
7261 .read = spi_chip_read,
7262 .voltage = {2700, 3600},
7263 },
7264
7265 {
7266 .vendor = "Micron/Numonyx/ST",
7267 .name = "M25PE10",
7268 .bustype = BUS_SPI,
7269 .manufacture_id = ST_ID,
7270 .model_id = ST_M25PE10,
7271 .total_size = 128,
7272 .page_size = 256,
7273 .feature_bits = FEATURE_WRSR_WREN,
7274 .tested = TEST_UNTESTED,
7275 .probe = probe_spi_rdid,
7276 .probe_timing = TIMING_ZERO,
7277 .block_erasers =
7278 {
7279 {
7280 .eraseblocks = { {4 * 1024, 32} },
7281 .block_erase = spi_block_erase_20,
7282 }, {
7283 .eraseblocks = { {64 * 1024, 2} },
7284 .block_erase = spi_block_erase_d8,
7285 }, {
7286 .eraseblocks = { {128 * 1024, 1} },
7287 .block_erase = spi_block_erase_c7,
7288 }
7289 },
7290 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7291 .unlock = spi_disable_blockprotect,
7292 .write = spi_chip_write_256,
7293 .read = spi_chip_read,
7294 .voltage = {2700, 3600},
7295 },
7296
7297 {
7298 .vendor = "Micron/Numonyx/ST",
7299 .name = "M25PE20",
7300 .bustype = BUS_SPI,
7301 .manufacture_id = ST_ID,
7302 .model_id = ST_M25PE20,
7303 .total_size = 256,
7304 .page_size = 256,
7305 .feature_bits = FEATURE_WRSR_WREN,
7306 .tested = TEST_UNTESTED,
7307 .probe = probe_spi_rdid,
7308 .probe_timing = TIMING_ZERO,
7309 .block_erasers =
7310 {
7311 {
7312 .eraseblocks = { {4 * 1024, 64} },
7313 .block_erase = spi_block_erase_20,
7314 }, {
7315 .eraseblocks = { {64 * 1024, 4} },
7316 .block_erase = spi_block_erase_d8,
7317 }, {
7318 .eraseblocks = { {256 * 1024, 1} },
7319 .block_erase = spi_block_erase_c7,
7320 }
7321 },
7322 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7323 .unlock = spi_disable_blockprotect,
7324 .write = spi_chip_write_256,
7325 .read = spi_chip_read,
7326 .voltage = {2700, 3600},
7327 },
7328
7329 {
7330 .vendor = "Micron/Numonyx/ST",
7331 .name = "M25PE40",
7332 .bustype = BUS_SPI,
7333 .manufacture_id = ST_ID,
7334 .model_id = ST_M25PE40,
7335 .total_size = 512,
7336 .page_size = 256,
7337 .feature_bits = FEATURE_WRSR_WREN,
7338 .tested = TEST_UNTESTED,
7339 .probe = probe_spi_rdid,
7340 .probe_timing = TIMING_ZERO,
7341 .block_erasers =
7342 {
7343 {
7344 .eraseblocks = { {4 * 1024, 128} },
7345 .block_erase = spi_block_erase_20,
7346 }, {
7347 .eraseblocks = { {64 * 1024, 8} },
7348 .block_erase = spi_block_erase_d8,
7349 }, {
7350 .eraseblocks = { {512 * 1024, 1} },
7351 .block_erase = spi_block_erase_c7,
7352 }
7353 },
7354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7355 .unlock = spi_disable_blockprotect,
7356 .write = spi_chip_write_256,
7357 .read = spi_chip_read,
7358 .voltage = {2700, 3600},
7359 },
7360
7361 {
7362 .vendor = "Micron/Numonyx/ST",
7363 .name = "M25PE80",
7364 .bustype = BUS_SPI,
7365 .manufacture_id = ST_ID,
7366 .model_id = ST_M25PE80,
7367 .total_size = 1024,
7368 .page_size = 256,
7369 .feature_bits = FEATURE_WRSR_WREN,
7370 .tested = TEST_OK_PREW,
7371 .probe = probe_spi_rdid,
7372 .probe_timing = TIMING_ZERO,
7373 .block_erasers =
7374 {
7375 {
7376 .eraseblocks = { {4 * 1024, 256} },
7377 .block_erase = spi_block_erase_20,
7378 }, {
7379 .eraseblocks = { {64 * 1024, 16} },
7380 .block_erase = spi_block_erase_d8,
7381 }, {
7382 .eraseblocks = { {1024 * 1024, 1} },
7383 .block_erase = spi_block_erase_c7,
7384 }
7385 },
7386 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7387 .unlock = spi_disable_blockprotect,
7388 .write = spi_chip_write_256,
7389 .read = spi_chip_read,
7390 .voltage = {2700, 3600},
7391 },
7392
7393 {
7394 .vendor = "Micron/Numonyx/ST",
7395 .name = "M25PE16",
7396 .bustype = BUS_SPI,
7397 .manufacture_id = ST_ID,
7398 .model_id = ST_M25PE16,
7399 .total_size = 2048,
7400 .page_size = 256,
7401 .feature_bits = FEATURE_WRSR_WREN,
7402 .tested = TEST_UNTESTED,
7403 .probe = probe_spi_rdid,
7404 .probe_timing = TIMING_ZERO,
7405 .block_erasers =
7406 {
7407 {
7408 .eraseblocks = { {4 * 1024, 512} },
7409 .block_erase = spi_block_erase_20,
7410 }, {
7411 .eraseblocks = { {64 * 1024, 32} },
7412 .block_erase = spi_block_erase_d8,
7413 }, {
7414 .eraseblocks = { {2 * 1024 * 1024, 1} },
7415 .block_erase = spi_block_erase_c7,
7416 }
7417 },
7418 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7419 .unlock = spi_disable_blockprotect,
7420 .write = spi_chip_write_256,
7421 .read = spi_chip_read,
7422 .voltage = {2700, 3600},
7423 },
7424
7425 {
7426 .vendor = "Micron/Numonyx/ST",
7427 .name = "M25PX80",
7428 .bustype = BUS_SPI,
7429 .manufacture_id = ST_ID,
7430 .model_id = ST_M25PX80,
7431 .total_size = 1024,
7432 .page_size = 256,
7433 /* OTP: 64B total; read 0x4B, write 0x42 */
7434 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7435 .tested = TEST_OK_PREW,
7436 .probe = probe_spi_rdid,
7437 .probe_timing = TIMING_ZERO,
7438 .block_erasers = {
7439 {
7440 .eraseblocks = { { 4 * 1024, 256 } },
7441 .block_erase = spi_block_erase_20,
7442 }, {
7443 .eraseblocks = { {64 * 1024, 16} },
7444 .block_erase = spi_block_erase_d8,
7445 }, {
7446 .eraseblocks = { {1024 * 1024, 1} },
7447 .block_erase = spi_block_erase_c7,
7448 }
7449 },
7450 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7451 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7452 .write = spi_chip_write_256,
7453 .read = spi_chip_read,
7454 .voltage = {2700, 3600},
7455 },
7456
7457 {
7458 .vendor = "Micron/Numonyx/ST",
7459 .name = "M25PX16",
7460 .bustype = BUS_SPI,
7461 .manufacture_id = ST_ID,
7462 .model_id = ST_M25PX16,
7463 .total_size = 2048,
7464 .page_size = 256,
7465 /* OTP: 64B total; read 0x4B; write 0x42 */
7466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7467 .tested = TEST_OK_PREW,
7468 .probe = probe_spi_rdid,
7469 .probe_timing = TIMING_ZERO,
7470 .block_erasers =
7471 {
7472 {
7473 .eraseblocks = { { 4 * 1024, 512 } },
7474 .block_erase = spi_block_erase_20,
7475 }, {
7476 .eraseblocks = { {64 * 1024, 32} },
7477 .block_erase = spi_block_erase_d8,
7478 }, {
7479 .eraseblocks = { {2 * 1024 * 1024, 1} },
7480 .block_erase = spi_block_erase_c7,
7481 }
7482 },
7483 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7484 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7485 .write = spi_chip_write_256,
7486 .read = spi_chip_read,
7487 },
7488
7489 {
7490 .vendor = "Micron/Numonyx/ST",
7491 .name = "M25PX32",
7492 .bustype = BUS_SPI,
7493 .manufacture_id = ST_ID,
7494 .model_id = ST_M25PX32,
7495 .total_size = 4096,
7496 .page_size = 256,
7497 /* OTP: 64B total; read 0x4B; write 0x42 */
7498 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7499 .tested = TEST_OK_PRE,
7500 .probe = probe_spi_rdid,
7501 .probe_timing = TIMING_ZERO,
7502 .block_erasers =
7503 {
7504 {
7505 .eraseblocks = { { 4 * 1024, 1024 } },
7506 .block_erase = spi_block_erase_20,
7507 }, {
7508 .eraseblocks = { {64 * 1024, 64} },
7509 .block_erase = spi_block_erase_d8,
7510 }, {
7511 .eraseblocks = { {4 * 1024 * 1024, 1} },
7512 .block_erase = spi_block_erase_c7,
7513 }
7514 },
7515 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7516 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7517 .write = spi_chip_write_256,
7518 .read = spi_chip_read,
7519 .voltage = {2700, 3600},
7520 },
7521
7522 {
7523 .vendor = "Micron/Numonyx/ST",
7524 .name = "M25PX64",
7525 .bustype = BUS_SPI,
7526 .manufacture_id = ST_ID,
7527 .model_id = ST_M25PX64,
7528 .total_size = 8192,
7529 .page_size = 256,
7530 /* OTP: 64B total; read 0x4B; write 0x42 */
7531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7532 .tested = TEST_OK_PRE,
7533 .probe = probe_spi_rdid,
7534 .probe_timing = TIMING_ZERO,
7535 .block_erasers =
7536 {
7537 {
7538 .eraseblocks = { { 4 * 1024, 2048 } },
7539 .block_erase = spi_block_erase_20,
7540 }, {
7541 .eraseblocks = { {64 * 1024, 128} },
7542 .block_erase = spi_block_erase_d8,
7543 }, {
7544 .eraseblocks = { {8 * 1024 * 1024, 1} },
7545 .block_erase = spi_block_erase_c7,
7546 }
7547 },
7548 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7549 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7550 .write = spi_chip_write_256,
7551 .read = spi_chip_read,
7552 },
7553
7554 {
7555 .vendor = "Micron/Numonyx/ST",
7556 .name = "M45PE10",
7557 .bustype = BUS_SPI,
7558 .manufacture_id = ST_ID,
7559 .model_id = ST_M45PE10,
7560 .total_size = 128,
7561 .page_size = 256,
7562 .tested = TEST_UNTESTED,
7563 .probe = probe_spi_rdid,
7564 .probe_timing = TIMING_ZERO,
7565 .block_erasers = {
7566 {
7567 .eraseblocks = { {256, 512} },
7568 .block_erase = spi_block_erase_db,
7569 }, {
7570 .eraseblocks = { {64 * 1024, 2} },
7571 .block_erase = spi_block_erase_d8,
7572 }
7573 },
7574 .printlock = spi_prettyprint_status_register_default_welwip,
7575 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7576 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7577 .read = spi_chip_read, /* Fast read (0x0B) supported */
7578 .voltage = {2700, 3600},
7579 },
7580
7581 {
7582 .vendor = "Micron/Numonyx/ST",
7583 .name = "M45PE20",
7584 .bustype = BUS_SPI,
7585 .manufacture_id = ST_ID,
7586 .model_id = ST_M45PE20,
7587 .total_size = 256,
7588 .page_size = 256,
7589 .tested = TEST_UNTESTED,
7590 .probe = probe_spi_rdid,
7591 .probe_timing = TIMING_ZERO,
7592 .block_erasers = {
7593 {
7594 .eraseblocks = { {256, 1024} },
7595 .block_erase = spi_block_erase_db,
7596 }, {
7597 .eraseblocks = { {64 * 1024, 4} },
7598 .block_erase = spi_block_erase_d8,
7599 }
7600 },
7601 .printlock = spi_prettyprint_status_register_default_welwip,
7602 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7603 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7604 .read = spi_chip_read, /* Fast read (0x0B) supported */
7605 .voltage = {2700, 3600},
7606 },
7607
7608 {
7609 .vendor = "Micron/Numonyx/ST",
7610 .name = "M45PE40",
7611 .bustype = BUS_SPI,
7612 .manufacture_id = ST_ID,
7613 .model_id = ST_M45PE40,
7614 .total_size = 512,
7615 .page_size = 256,
7616 .tested = TEST_UNTESTED,
7617 .probe = probe_spi_rdid,
7618 .probe_timing = TIMING_ZERO,
7619 .block_erasers = {
7620 {
7621 .eraseblocks = { {256, 2048} },
7622 .block_erase = spi_block_erase_db,
7623 }, {
7624 .eraseblocks = { {64 * 1024, 8} },
7625 .block_erase = spi_block_erase_d8,
7626 }
7627 },
7628 .printlock = spi_prettyprint_status_register_default_welwip,
7629 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7630 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7631 .read = spi_chip_read, /* Fast read (0x0B) supported */
7632 .voltage = {2700, 3600},
7633 },
7634
7635 {
7636 .vendor = "Micron/Numonyx/ST",
7637 .name = "M45PE80",
7638 .bustype = BUS_SPI,
7639 .manufacture_id = ST_ID,
7640 .model_id = ST_M45PE80,
7641 .total_size = 1024,
7642 .page_size = 256,
7643 .tested = TEST_UNTESTED,
7644 .probe = probe_spi_rdid,
7645 .probe_timing = TIMING_ZERO,
7646 .block_erasers = {
7647 {
7648 .eraseblocks = { {256, 4096} },
7649 .block_erase = spi_block_erase_db,
7650 }, {
7651 .eraseblocks = { {64 * 1024, 16} },
7652 .block_erase = spi_block_erase_d8,
7653 }
7654 },
7655 .printlock = spi_prettyprint_status_register_default_welwip,
7656 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7657 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7658 .read = spi_chip_read, /* Fast read (0x0B) supported */
7659 .voltage = {2700, 3600},
7660 },
7661
7662 {
7663 .vendor = "Micron/Numonyx/ST",
7664 .name = "M45PE16",
7665 .bustype = BUS_SPI,
7666 .manufacture_id = ST_ID,
7667 .model_id = ST_M45PE16,
7668 .total_size = 2048,
7669 .page_size = 256,
7670 .tested = TEST_UNTESTED,
7671 .probe = probe_spi_rdid,
7672 .probe_timing = TIMING_ZERO,
7673 .block_erasers = {
7674 {
7675 .eraseblocks = { {256, 8192} },
7676 .block_erase = spi_block_erase_db,
7677 }, {
7678 .eraseblocks = { {64 * 1024, 32} },
7679 .block_erase = spi_block_erase_d8,
7680 }
7681 },
7682 .printlock = spi_prettyprint_status_register_default_welwip,
7683 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7684 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7685 .read = spi_chip_read, /* Fast read (0x0B) supported */
7686 .voltage = {2700, 3600},
7687 },
7688
7689 {
7690 .vendor = "Micron/Numonyx/ST",
7691 .name = "N25Q016",
7692 .bustype = BUS_SPI,
7693 .manufacture_id = ST_ID,
7694 .model_id = ST_N25Q016__1E,
7695 .total_size = 2048,
7696 .page_size = 256,
7697 /* supports SFDP */
7698 /* OTP: 64B total; read 0x4B, write 0x42 */
7699 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7700 .tested = TEST_UNTESTED,
7701 .probe = probe_spi_rdid,
7702 .probe_timing = TIMING_ZERO,
7703 .block_erasers =
7704 {
7705 {
7706 .eraseblocks = { {4 * 1024, 512} },
7707 .block_erase = spi_block_erase_20,
7708 }, {
7709 .eraseblocks = { {32 * 1024, 64} },
7710 .block_erase = spi_block_erase_52,
7711 }, {
7712 .eraseblocks = { {64 * 1024, 32} },
7713 .block_erase = spi_block_erase_d8,
7714 }, {
7715 .eraseblocks = { {2 * 1024 * 1024, 1} },
7716 .block_erase = spi_block_erase_c7,
7717 }
7718 },
7719 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7720 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7721 .write = spi_chip_write_256, /* Multi I/O supported */
7722 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7723 .voltage = {1700, 2000},
7724 },
7725
7726 {
7727 .vendor = "Micron/Numonyx/ST",
7728 .name = "N25Q032..1E",
7729 .bustype = BUS_SPI,
7730 .manufacture_id = ST_ID,
7731 .model_id = ST_N25Q032__1E,
7732 .total_size = 4096,
7733 .page_size = 256,
7734 /* supports SFDP */
7735 /* OTP: 64B total; read 0x4B, write 0x42 */
7736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7737 .tested = TEST_UNTESTED,
7738 .probe = probe_spi_rdid,
7739 .probe_timing = TIMING_ZERO,
7740 .block_erasers =
7741 {
7742 {
7743 .eraseblocks = { {4 * 1024, 1024} },
7744 .block_erase = spi_block_erase_20,
7745 }, {
7746 .eraseblocks = { {64 * 1024, 64} },
7747 .block_erase = spi_block_erase_d8,
7748 }, {
7749 .eraseblocks = { {4 * 1024 * 1024, 1} },
7750 .block_erase = spi_block_erase_c7,
7751 }
7752 },
7753 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7754 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7755 .write = spi_chip_write_256, /* Multi I/O supported */
7756 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7757 .voltage = {1700, 2000},
7758 },
7759
7760 {
7761 .vendor = "Micron/Numonyx/ST",
7762 .name = "N25Q032..3E",
7763 .bustype = BUS_SPI,
7764 .manufacture_id = ST_ID,
7765 .model_id = ST_N25Q032__3E,
7766 .total_size = 4096,
7767 .page_size = 256,
7768 /* supports SFDP */
7769 /* OTP: 64B total; read 0x4B, write 0x42 */
7770 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7771 .tested = TEST_OK_PREW,
7772 .probe = probe_spi_rdid,
7773 .probe_timing = TIMING_ZERO,
7774 .block_erasers =
7775 {
7776 {
7777 .eraseblocks = { {4 * 1024, 1024} },
7778 .block_erase = spi_block_erase_20,
7779 }, {
7780 .eraseblocks = { {64 * 1024, 64} },
7781 .block_erase = spi_block_erase_d8,
7782 }, {
7783 .eraseblocks = { {4 * 1024 * 1024, 1} },
7784 .block_erase = spi_block_erase_c7,
7785 }
7786 },
7787 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7788 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7789 .write = spi_chip_write_256, /* Multi I/O supported */
7790 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7791 .voltage = {2700, 3600},
7792 },
7793
7794 {
7795 .vendor = "Micron/Numonyx/ST",
7796 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7797 .bustype = BUS_SPI,
7798 .manufacture_id = ST_ID,
7799 .model_id = ST_N25Q064__1E,
7800 .total_size = 8192,
7801 .page_size = 256,
7802 /* supports SFDP */
7803 /* OTP: 64B total; read 0x4B, write 0x42 */
7804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7805 .tested = TEST_UNTESTED,
7806 .probe = probe_spi_rdid,
7807 .probe_timing = TIMING_ZERO,
7808 .block_erasers =
7809 {
7810 {
7811 .eraseblocks = { {4 * 1024, 2048 } },
7812 .block_erase = spi_block_erase_20,
7813 }, {
7814 .eraseblocks = { {64 * 1024, 128} },
7815 .block_erase = spi_block_erase_d8,
7816 }, {
7817 .eraseblocks = { {8 * 1024 * 1024, 1} },
7818 .block_erase = spi_block_erase_c7,
7819 }
7820 },
7821 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7822 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7823 .write = spi_chip_write_256, /* Multi I/O supported */
7824 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7825 .voltage = {1700, 2000},
7826 },
7827
7828 {
7829 .vendor = "Micron/Numonyx/ST",
7830 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7831 .bustype = BUS_SPI,
7832 .manufacture_id = ST_ID,
7833 .model_id = ST_N25Q064__3E,
7834 .total_size = 8192,
7835 .page_size = 256,
7836 /* supports SFDP */
7837 /* OTP: 64B total; read 0x4B, write 0x42 */
7838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7839 .tested = TEST_OK_PREW,
7840 .probe = probe_spi_rdid,
7841 .probe_timing = TIMING_ZERO,
7842 .block_erasers =
7843 {
7844 {
7845 .eraseblocks = { {4 * 1024, 2048 } },
7846 .block_erase = spi_block_erase_20,
7847 }, {
7848 .eraseblocks = { {64 * 1024, 128} },
7849 .block_erase = spi_block_erase_d8,
7850 }, {
7851 .eraseblocks = { {8 * 1024 * 1024, 1} },
7852 .block_erase = spi_block_erase_c7,
7853 }
7854 },
7855 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7856 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7857 .write = spi_chip_write_256, /* Multi I/O supported */
7858 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7859 .voltage = {2700, 3600},
7860 },
7861
7862 {
7863 .vendor = "Micron/Numonyx/ST",
7864 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7865 .bustype = BUS_SPI,
7866 .manufacture_id = ST_ID,
7867 .model_id = ST_N25Q128__1E,
7868 .total_size = 16384,
7869 .page_size = 256,
7870 /* supports SFDP */
7871 /* OTP: 64B total; read 0x4B, write 0x42 */
7872 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7873 .tested = TEST_UNTESTED,
7874 .probe = probe_spi_rdid,
7875 .probe_timing = TIMING_ZERO,
7876 .block_erasers = {
7877 {
7878 .eraseblocks = { {4 * 1024, 4096 } },
7879 .block_erase = spi_block_erase_20,
7880 }, {
7881 .eraseblocks = { {64 * 1024, 256} },
7882 .block_erase = spi_block_erase_d8,
7883 }, {
7884 .eraseblocks = { {16384 * 1024, 1} },
7885 .block_erase = spi_block_erase_c7,
7886 }
7887 },
7888 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7889 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7890 .write = spi_chip_write_256, /* Multi I/O supported */
7891 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7892 .voltage = {1700, 2000},
7893 },
7894
7895 {
7896 .vendor = "Micron/Numonyx/ST",
7897 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7898 .bustype = BUS_SPI,
7899 .manufacture_id = ST_ID,
7900 .model_id = ST_N25Q128__3E,
7901 .total_size = 16384,
7902 .page_size = 256,
7903 /* supports SFDP */
7904 /* OTP: 64B total; read 0x4B, write 0x42 */
7905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7906 .tested = TEST_OK_PREW,
7907 .probe = probe_spi_rdid,
7908 .probe_timing = TIMING_ZERO,
7909 .block_erasers = {
7910 {
7911 .eraseblocks = { {4 * 1024, 4096 } },
7912 .block_erase = spi_block_erase_20,
7913 }, {
7914 .eraseblocks = { {64 * 1024, 256} },
7915 .block_erase = spi_block_erase_d8,
7916 }, {
7917 .eraseblocks = { {16384 * 1024, 1} },
7918 .block_erase = spi_block_erase_c7,
7919 }
7920 },
7921 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7922 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7923 .write = spi_chip_write_256, /* Multi I/O supported */
7924 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7925 .voltage = {2700, 3600},
7926 },
7927
7928 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007929 .vendor = "MoselVitelic",
7930 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007931 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007932 .manufacture_id = SYNCMOS_MVC_ID,
7933 .model_id = MVC_V29C51000B,
7934 .total_size = 64,
7935 .page_size = 512,
7936 .feature_bits = FEATURE_EITHER_RESET,
7937 .tested = TEST_UNTESTED,
7938 .probe = probe_jedec,
7939 .probe_timing = TIMING_ZERO,
7940 .block_erasers =
7941 {
7942 {
7943 .eraseblocks = { {512, 128} },
7944 .block_erase = erase_sector_jedec,
7945 }, {
7946 .eraseblocks = { {64 * 1024, 1} },
7947 .block_erase = erase_chip_block_jedec,
7948 },
7949 },
7950 .write = write_jedec_1,
7951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007952 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007953 },
7954
7955 {
7956 .vendor = "MoselVitelic",
7957 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007958 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007959 .manufacture_id = SYNCMOS_MVC_ID,
7960 .model_id = MVC_V29C51000T,
7961 .total_size = 64,
7962 .page_size = 512,
7963 .feature_bits = FEATURE_EITHER_RESET,
7964 .tested = TEST_UNTESTED,
7965 .probe = probe_jedec,
7966 .probe_timing = TIMING_ZERO,
7967 .block_erasers =
7968 {
7969 {
7970 .eraseblocks = { {512, 128} },
7971 .block_erase = erase_sector_jedec,
7972 }, {
7973 .eraseblocks = { {64 * 1024, 1} },
7974 .block_erase = erase_chip_block_jedec,
7975 },
7976 },
7977 .write = write_jedec_1,
7978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007979 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007980 },
7981
7982 {
7983 .vendor = "MoselVitelic",
7984 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007985 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007986 .manufacture_id = SYNCMOS_MVC_ID,
7987 .model_id = MVC_V29C51400B,
7988 .total_size = 512,
7989 .page_size = 1024,
7990 .feature_bits = FEATURE_EITHER_RESET,
7991 .tested = TEST_UNTESTED,
7992 .probe = probe_jedec,
7993 .probe_timing = TIMING_ZERO,
7994 .block_erasers =
7995 {
7996 {
7997 .eraseblocks = { {1024, 512} },
7998 .block_erase = erase_sector_jedec,
7999 }, {
8000 .eraseblocks = { {512 * 1024, 1} },
8001 .block_erase = erase_chip_block_jedec,
8002 },
8003 },
8004 .write = write_jedec_1,
8005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008006 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008007 },
8008
8009 {
8010 .vendor = "MoselVitelic",
8011 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008012 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008013 .manufacture_id = SYNCMOS_MVC_ID,
8014 .model_id = MVC_V29C51400T,
8015 .total_size = 512,
8016 .page_size = 1024,
8017 .feature_bits = FEATURE_EITHER_RESET,
8018 .tested = TEST_UNTESTED,
8019 .probe = probe_jedec,
8020 .probe_timing = TIMING_ZERO,
8021 .block_erasers =
8022 {
8023 {
8024 .eraseblocks = { {1024, 512} },
8025 .block_erase = erase_sector_jedec,
8026 }, {
8027 .eraseblocks = { {512 * 1024, 1} },
8028 .block_erase = erase_chip_block_jedec,
8029 },
8030 },
8031 .write = write_jedec_1,
8032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008033 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008034 },
8035
8036 {
8037 .vendor = "MoselVitelic",
8038 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008039 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008040 .manufacture_id = SYNCMOS_MVC_ID,
8041 .model_id = MVC_V29LC51000,
8042 .total_size = 64,
8043 .page_size = 512,
8044 .feature_bits = FEATURE_EITHER_RESET,
8045 .tested = TEST_UNTESTED,
8046 .probe = probe_jedec,
8047 .probe_timing = TIMING_ZERO,
8048 .block_erasers =
8049 {
8050 {
8051 .eraseblocks = { {512, 128} },
8052 .block_erase = erase_sector_jedec,
8053 }, {
8054 .eraseblocks = { {64 * 1024, 1} },
8055 .block_erase = erase_chip_block_jedec,
8056 },
8057 },
8058 .write = write_jedec_1,
8059 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008060 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008061 },
8062
8063 {
8064 .vendor = "MoselVitelic",
8065 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008066 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008067 .manufacture_id = SYNCMOS_MVC_ID,
8068 .model_id = MVC_V29LC51001,
8069 .total_size = 128,
8070 .page_size = 512,
8071 .feature_bits = FEATURE_EITHER_RESET,
8072 .tested = TEST_UNTESTED,
8073 .probe = probe_jedec,
8074 .probe_timing = TIMING_ZERO,
8075 .block_erasers =
8076 {
8077 {
8078 .eraseblocks = { {512, 256} },
8079 .block_erase = erase_sector_jedec,
8080 }, {
8081 .eraseblocks = { {128 * 1024, 1} },
8082 .block_erase = erase_chip_block_jedec,
8083 },
8084 },
8085 .write = write_jedec_1,
8086 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008087 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008088 },
8089
8090 {
8091 .vendor = "MoselVitelic",
8092 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008093 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008094 .manufacture_id = SYNCMOS_MVC_ID,
8095 .model_id = MVC_V29LC51002,
8096 .total_size = 256,
8097 .page_size = 512,
8098 .feature_bits = FEATURE_EITHER_RESET,
8099 .tested = TEST_UNTESTED,
8100 .probe = probe_jedec,
8101 .probe_timing = TIMING_ZERO,
8102 .block_erasers =
8103 {
8104 {
8105 .eraseblocks = { {512, 512} },
8106 .block_erase = erase_sector_jedec,
8107 }, {
8108 .eraseblocks = { {256 * 1024, 1} },
8109 .block_erase = erase_chip_block_jedec,
8110 },
8111 },
8112 .write = write_jedec_1,
8113 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008114 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008115 },
8116
8117 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008118 .vendor = "Nantronics",
8119 .name = "N25S10",
8120 .bustype = BUS_SPI,
8121 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8122 .model_id = NANTRONICS_N25S10,
8123 .total_size = 128,
8124 .page_size = 256,
8125 .feature_bits = FEATURE_WRSR_WREN,
8126 .tested = TEST_UNTESTED,
8127 .probe = probe_spi_rdid,
8128 .probe_timing = TIMING_ZERO,
8129 .block_erasers =
8130 {
8131 {
8132 .eraseblocks = { {4 * 1024, 32} },
8133 .block_erase = spi_block_erase_20,
8134 }, {
8135 .eraseblocks = { {4 * 1024, 32} },
8136 .block_erase = spi_block_erase_d7,
8137 }, {
8138 .eraseblocks = { {32 * 1024, 4} },
8139 .block_erase = spi_block_erase_52,
8140 }, {
8141 .eraseblocks = { {64 * 1024, 2} },
8142 .block_erase = spi_block_erase_d8,
8143 }, {
8144 .eraseblocks = { {128 * 1024, 1} },
8145 .block_erase = spi_block_erase_60,
8146 }, {
8147 .eraseblocks = { {128 * 1024, 1} },
8148 .block_erase = spi_block_erase_c7,
8149 }
8150 },
8151 .printlock = spi_prettyprint_status_register_default_bp3,
8152 .unlock = spi_disable_blockprotect_bp3_srwd,
8153 .write = spi_chip_write_256,
8154 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8155 .voltage = {2700, 3600},
8156 },
8157
8158 {
8159 .vendor = "Nantronics",
8160 .name = "N25S20",
8161 .bustype = BUS_SPI,
8162 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8163 .model_id = NANTRONICS_N25S20,
8164 .total_size = 256,
8165 .page_size = 256,
8166 .feature_bits = FEATURE_WRSR_WREN,
8167 .tested = TEST_UNTESTED,
8168 .probe = probe_spi_rdid,
8169 .probe_timing = TIMING_ZERO,
8170 .block_erasers =
8171 {
8172 {
8173 .eraseblocks = { {4 * 1024, 64} },
8174 .block_erase = spi_block_erase_20,
8175 }, {
8176 .eraseblocks = { {4 * 1024, 64} },
8177 .block_erase = spi_block_erase_d7,
8178 }, {
8179 .eraseblocks = { {32 * 1024, 8} },
8180 .block_erase = spi_block_erase_52,
8181 }, {
8182 .eraseblocks = { {64 * 1024, 4} },
8183 .block_erase = spi_block_erase_d8,
8184 }, {
8185 .eraseblocks = { {256 * 1024, 1} },
8186 .block_erase = spi_block_erase_60,
8187 }, {
8188 .eraseblocks = { {256 * 1024, 1} },
8189 .block_erase = spi_block_erase_c7,
8190 }
8191 },
8192 .printlock = spi_prettyprint_status_register_default_bp3,
8193 .unlock = spi_disable_blockprotect_bp3_srwd,
8194 .write = spi_chip_write_256,
8195 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8196 .voltage = {2700, 3600},
8197 },
8198
8199 {
8200 .vendor = "Nantronics",
8201 .name = "N25S40",
8202 .bustype = BUS_SPI,
8203 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8204 .model_id = NANTRONICS_N25S40,
8205 .total_size = 512,
8206 .page_size = 256,
8207 .feature_bits = FEATURE_WRSR_WREN,
8208 .tested = TEST_UNTESTED,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers =
8212 {
8213 {
8214 .eraseblocks = { {4 * 1024, 128} },
8215 .block_erase = spi_block_erase_20,
8216 }, {
8217 .eraseblocks = { {4 * 1024, 128} },
8218 .block_erase = spi_block_erase_d7,
8219 }, {
8220 .eraseblocks = { {32 * 1024, 16} },
8221 .block_erase = spi_block_erase_52,
8222 }, {
8223 .eraseblocks = { {64 * 1024, 8} },
8224 .block_erase = spi_block_erase_d8,
8225 }, {
8226 .eraseblocks = { {512 * 1024, 1} },
8227 .block_erase = spi_block_erase_60,
8228 }, {
8229 .eraseblocks = { {512 * 1024, 1} },
8230 .block_erase = spi_block_erase_c7,
8231 }
8232 },
8233 .printlock = spi_prettyprint_status_register_default_bp3,
8234 .unlock = spi_disable_blockprotect_bp3_srwd,
8235 .write = spi_chip_write_256,
8236 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8237 .voltage = {2700, 3600},
8238 },
8239
8240 {
8241 .vendor = "Nantronics",
8242 .name = "N25S80",
8243 .bustype = BUS_SPI,
8244 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8245 .model_id = NANTRONICS_N25S80,
8246 .total_size = 1024,
8247 .page_size = 256,
8248 .feature_bits = FEATURE_WRSR_WREN,
8249 .tested = TEST_UNTESTED,
8250 .probe = probe_spi_rdid,
8251 .probe_timing = TIMING_ZERO,
8252 .block_erasers =
8253 {
8254 {
8255 .eraseblocks = { {4 * 1024, 256} },
8256 .block_erase = spi_block_erase_20,
8257 }, {
8258 .eraseblocks = { {32 * 1024, 32} },
8259 .block_erase = spi_block_erase_52,
8260 }, {
8261 .eraseblocks = { {64 * 1024, 16} },
8262 .block_erase = spi_block_erase_d8,
8263 }, {
8264 .eraseblocks = { {1024 * 1024, 1} },
8265 .block_erase = spi_block_erase_60,
8266 }, {
8267 .eraseblocks = { {1024 * 1024, 1} },
8268 .block_erase = spi_block_erase_c7,
8269 }
8270 },
8271 .printlock = spi_prettyprint_status_register_default_bp3,
8272 .unlock = spi_disable_blockprotect_bp3_srwd,
8273 .write = spi_chip_write_256,
8274 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8275 .voltage = {2700, 3600},
8276 },
8277
8278 {
8279 .vendor = "Nantronics",
8280 .name = "N25S16",
8281 .bustype = BUS_SPI,
8282 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8283 .model_id = NANTRONICS_N25S16,
8284 .total_size = 2048,
8285 .page_size = 256,
8286 .feature_bits = FEATURE_WRSR_WREN,
8287 .tested = TEST_UNTESTED,
8288 .probe = probe_spi_rdid,
8289 .probe_timing = TIMING_ZERO,
8290 .block_erasers =
8291 {
8292 {
8293 .eraseblocks = { {4 * 1024, 512} },
8294 .block_erase = spi_block_erase_20,
8295 }, {
8296 .eraseblocks = { {64 * 1024, 32} },
8297 .block_erase = spi_block_erase_d8,
8298 }, {
8299 .eraseblocks = { {2048 * 1024, 1} },
8300 .block_erase = spi_block_erase_60,
8301 }, {
8302 .eraseblocks = { {2048 * 1024, 1} },
8303 .block_erase = spi_block_erase_c7,
8304 }
8305 },
8306 .printlock = spi_prettyprint_status_register_default_bp3,
8307 .unlock = spi_disable_blockprotect_bp3_srwd,
8308 .write = spi_chip_write_256,
8309 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8310 .voltage = {2700, 3600},
8311 },
8312
8313 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008314 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008315 .name = "Pm25LD256C",
8316 .bustype = BUS_SPI,
8317 .manufacture_id = PMC_ID,
8318 .model_id = PMC_PM25LD256C,
8319 .total_size = 32,
8320 .page_size = 256,
8321 .feature_bits = FEATURE_WRSR_WREN,
8322 .tested = TEST_UNTESTED,
8323 .probe = probe_spi_rdid,
8324 .probe_timing = TIMING_ZERO,
8325 .block_erasers =
8326 {
8327 {
8328 .eraseblocks = { {4 * 1024, 8} },
8329 .block_erase = spi_block_erase_20,
8330 }, {
8331 .eraseblocks = { {4 * 1024, 8} },
8332 .block_erase = spi_block_erase_d7,
8333 }, {
8334 .eraseblocks = { {32 * 1024, 1} },
8335 .block_erase = spi_block_erase_d8,
8336 }, {
8337 .eraseblocks = { {32 * 1024, 1} },
8338 .block_erase = spi_block_erase_60,
8339 }, {
8340 .eraseblocks = { {32 * 1024, 1} },
8341 .block_erase = spi_block_erase_c7,
8342 }
8343 },
8344 .printlock = spi_prettyprint_status_register_default_bp2,
8345 .unlock = spi_disable_blockprotect,
8346 .write = spi_chip_write_256,
8347 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8348 .voltage = {2700, 3600},
8349 },
8350 {
8351 .vendor = "PMC",
8352 .name = "Pm25LD512(C)",
8353 .bustype = BUS_SPI,
8354 .manufacture_id = PMC_ID,
8355 .model_id = PMC_PM25LD512,
8356 .total_size = 64,
8357 .page_size = 256,
8358 .feature_bits = FEATURE_WRSR_WREN,
8359 .tested = TEST_OK_PREW,
8360 .probe = probe_spi_rdid,
8361 .probe_timing = TIMING_ZERO,
8362 .block_erasers =
8363 {
8364 {
8365 .eraseblocks = { {4 * 1024, 16} },
8366 .block_erase = spi_block_erase_20,
8367 }, {
8368 .eraseblocks = { {4 * 1024, 16} },
8369 .block_erase = spi_block_erase_d7,
8370 }, {
8371 .eraseblocks = { {32 * 1024, 2} },
8372 .block_erase = spi_block_erase_d8,
8373 }, {
8374 .eraseblocks = { {64 * 1024, 1} },
8375 .block_erase = spi_block_erase_60,
8376 }, {
8377 .eraseblocks = { {64 * 1024, 1} },
8378 .block_erase = spi_block_erase_c7,
8379 }
8380 },
8381 .printlock = spi_prettyprint_status_register_default_bp2,
8382 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8383 .write = spi_chip_write_256,
8384 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8385 .voltage = {2300, 3600},
8386 },
8387
8388 {
8389 .vendor = "PMC",
8390 .name = "Pm25LD010(C)",
8391 .bustype = BUS_SPI,
8392 .manufacture_id = PMC_ID,
8393 .model_id = PMC_PM25LD010,
8394 .total_size = 128,
8395 .page_size = 256,
8396 .feature_bits = FEATURE_WRSR_WREN,
8397 .tested = TEST_UNTESTED,
8398 .probe = probe_spi_rdid,
8399 .probe_timing = TIMING_ZERO,
8400 .block_erasers =
8401 {
8402 {
8403 .eraseblocks = { {4 * 1024, 32} },
8404 .block_erase = spi_block_erase_20,
8405 }, {
8406 .eraseblocks = { {4 * 1024, 32} },
8407 .block_erase = spi_block_erase_d7,
8408 }, {
8409 .eraseblocks = { {32 * 1024, 4} },
8410 .block_erase = spi_block_erase_d8,
8411 }, {
8412 .eraseblocks = { {128 * 1024, 1} },
8413 .block_erase = spi_block_erase_60,
8414 }, {
8415 .eraseblocks = { {128 * 1024, 1} },
8416 .block_erase = spi_block_erase_c7,
8417 }
8418 },
8419 .printlock = spi_prettyprint_status_register_default_bp2,
8420 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8421 .write = spi_chip_write_256,
8422 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8423 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8424 },
8425
8426 {
8427 .vendor = "PMC",
8428 .name = "Pm25LD020(C)",
8429 .bustype = BUS_SPI,
8430 .manufacture_id = PMC_ID,
8431 .model_id = PMC_PM25LD020,
8432 .total_size = 256,
8433 .page_size = 256,
8434 .feature_bits = FEATURE_WRSR_WREN,
8435 .tested = TEST_UNTESTED,
8436 .probe = probe_spi_rdid,
8437 .probe_timing = TIMING_ZERO,
8438 .block_erasers =
8439 {
8440 {
8441 .eraseblocks = { {4 * 1024, 64} },
8442 .block_erase = spi_block_erase_20,
8443 }, {
8444 .eraseblocks = { {4 * 1024, 64} },
8445 .block_erase = spi_block_erase_d7,
8446 }, {
8447 .eraseblocks = { {64 * 1024, 4} },
8448 .block_erase = spi_block_erase_d8,
8449 }, {
8450 .eraseblocks = { {256 * 1024, 1} },
8451 .block_erase = spi_block_erase_60,
8452 }, {
8453 .eraseblocks = { {256 * 1024, 1} },
8454 .block_erase = spi_block_erase_c7,
8455 }
8456 },
8457 .printlock = spi_prettyprint_status_register_default_bp2,
8458 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8459 .write = spi_chip_write_256,
8460 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8461 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8462 },
8463
8464 {
8465 .vendor = "PMC",
8466 .name = "Pm25LD040(C)",
8467 .bustype = BUS_SPI,
8468 .manufacture_id = PMC_ID,
8469 .model_id = PMC_PM25LV040,
8470 .total_size = 512,
8471 .page_size = 256,
8472 .feature_bits = FEATURE_WRSR_WREN,
8473 .tested = TEST_UNTESTED,
8474 .probe = probe_spi_rdid,
8475 .probe_timing = TIMING_ZERO,
8476 .block_erasers =
8477 {
8478 {
8479 .eraseblocks = { {4 * 1024, 128} },
8480 .block_erase = spi_block_erase_20,
8481 }, {
8482 .eraseblocks = { {4 * 1024, 128} },
8483 .block_erase = spi_block_erase_d7,
8484 }, {
8485 .eraseblocks = { {64 * 1024, 8} },
8486 .block_erase = spi_block_erase_d8,
8487 }, {
8488 .eraseblocks = { {512 * 1024, 1} },
8489 .block_erase = spi_block_erase_60,
8490 }, {
8491 .eraseblocks = { {512 * 1024, 1} },
8492 .block_erase = spi_block_erase_c7,
8493 }
8494 },
8495 .printlock = spi_prettyprint_status_register_default_bp2,
8496 .unlock = spi_disable_blockprotect,
8497 .write = spi_chip_write_256,
8498 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8499 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8500 },
8501
8502{
8503 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008504 .name = "Pm25LV512(A)",
8505 .bustype = BUS_SPI,
8506 .manufacture_id = PMC_ID,
8507 .model_id = PMC_PM25LV512,
8508 .total_size = 64,
8509 .page_size = 256,
8510 .feature_bits = FEATURE_WRSR_WREN,
8511 .tested = TEST_UNTESTED,
8512 .probe = probe_spi_res3,
8513 .probe_timing = TIMING_ZERO,
8514 .block_erasers =
8515 {
8516 {
8517 .eraseblocks = { {4 * 1024, 16} },
8518 .block_erase = spi_block_erase_d7,
8519 }, {
8520 .eraseblocks = { {32 * 1024, 2} },
8521 .block_erase = spi_block_erase_d8,
8522 }, {
8523 .eraseblocks = { {64 * 1024, 1} },
8524 .block_erase = spi_block_erase_c7,
8525 }
8526 },
8527 .printlock = spi_prettyprint_status_register_default_bp1,
8528 .unlock = spi_disable_blockprotect,
8529 .write = spi_chip_write_256,
8530 .read = spi_chip_read, /* Fast read (0x0B) supported */
8531 .voltage = {2700, 3600},
8532 },
8533
8534 {
8535 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008536 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008537 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008538 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008539 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 .total_size = 128,
8541 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008542 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008543 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008544 .probe = probe_spi_res3,
8545 .probe_timing = TIMING_ZERO,
8546 .block_erasers =
8547 {
8548 {
8549 .eraseblocks = { {4 * 1024, 32} },
8550 .block_erase = spi_block_erase_d7,
8551 }, {
8552 .eraseblocks = { {32 * 1024, 4} },
8553 .block_erase = spi_block_erase_d8,
8554 }, {
8555 .eraseblocks = { {128 * 1024, 1} },
8556 .block_erase = spi_block_erase_c7,
8557 }
8558 },
8559 .printlock = spi_prettyprint_status_register_default_bp1,
8560 .unlock = spi_disable_blockprotect,
8561 .write = spi_chip_write_256,
8562 .read = spi_chip_read, /* Fast read (0x0B) supported */
8563 .voltage = {2700, 3600},
8564 },
8565
8566 {
8567 .vendor = "PMC",
8568 .name = "Pm25LV010A",
8569 .bustype = BUS_SPI,
8570 .manufacture_id = PMC_ID,
8571 .model_id = PMC_PM25LV010,
8572 .total_size = 128,
8573 .page_size = 256,
8574 .feature_bits = FEATURE_WRSR_WREN,
8575 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008576 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008577 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008578 .block_erasers =
8579 {
8580 {
8581 .eraseblocks = { {4 * 1024, 32} },
8582 .block_erase = spi_block_erase_d7,
8583 }, {
8584 .eraseblocks = { {32 * 1024, 4} },
8585 .block_erase = spi_block_erase_d8,
8586 }, {
8587 .eraseblocks = { {128 * 1024, 1} },
8588 .block_erase = spi_block_erase_c7,
8589 }
8590 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008591 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008592 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008593 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008594 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008595 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008596 },
8597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008598 {
8599 .vendor = "PMC",
8600 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008601 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008602 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008603 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008604 .total_size = 256,
8605 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008606 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008607 .tested = TEST_UNTESTED,
8608 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008609 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008610 .block_erasers =
8611 {
8612 {
8613 .eraseblocks = { {4 * 1024, 64} },
8614 .block_erase = spi_block_erase_d7,
8615 }, {
8616 .eraseblocks = { {64 * 1024, 4} },
8617 .block_erase = spi_block_erase_d8,
8618 }, {
8619 .eraseblocks = { {256 * 1024, 1} },
8620 .block_erase = spi_block_erase_c7,
8621 }
8622 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008623 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008624 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008625 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008626 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008627 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008628 },
8629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008630 {
8631 .vendor = "PMC",
8632 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008633 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008634 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008635 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008636 .total_size = 512,
8637 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008638 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008640 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008641 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008642 .block_erasers =
8643 {
8644 {
8645 .eraseblocks = { {4 * 1024, 128} },
8646 .block_erase = spi_block_erase_d7,
8647 }, {
8648 .eraseblocks = { {64 * 1024, 8} },
8649 .block_erase = spi_block_erase_d8,
8650 }, {
8651 .eraseblocks = { {512 * 1024, 1} },
8652 .block_erase = spi_block_erase_c7,
8653 }
8654 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008655 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008656 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008657 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008658 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008659 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008660 },
8661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008662 {
8663 .vendor = "PMC",
8664 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008665 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008666 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008667 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008668 .total_size = 1024,
8669 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008670 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008671 .tested = TEST_UNTESTED,
8672 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008673 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008674 .block_erasers =
8675 {
8676 {
8677 .eraseblocks = { {4 * 1024, 256} },
8678 .block_erase = spi_block_erase_d7,
8679 }, {
8680 .eraseblocks = { {4 * 1024, 256} },
8681 .block_erase = spi_block_erase_20,
8682 }, {
8683 .eraseblocks = { {64 * 1024, 16} },
8684 .block_erase = spi_block_erase_d8,
8685 }, {
8686 .eraseblocks = { {1024 * 1024, 1} },
8687 .block_erase = spi_block_erase_60,
8688 }, {
8689 .eraseblocks = { {1024 * 1024, 1} },
8690 .block_erase = spi_block_erase_c7,
8691 }
8692 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008693 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008694 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008695 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008696 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008697 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008698 },
8699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008700 {
8701 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008702 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008703 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008704 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008705 .model_id = PMC_PM25LV016B,
8706 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008707 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008708 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008709 .tested = TEST_UNTESTED,
8710 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008711 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008712 .block_erasers =
8713 {
8714 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008715 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008716 .block_erase = spi_block_erase_d7,
8717 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008718 .eraseblocks = { {4 * 1024, 512} },
8719 .block_erase = spi_block_erase_20,
8720 }, {
8721 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008722 .block_erase = spi_block_erase_d8,
8723 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008724 .eraseblocks = { {2 * 1024 * 1024, 1} },
8725 .block_erase = spi_block_erase_60,
8726 }, {
8727 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008728 .block_erase = spi_block_erase_c7,
8729 }
8730 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008731 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008732 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008733 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008734 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008735 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008736 },
8737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008738 {
8739 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008740 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008741 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008742 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008743 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008744 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008745 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008746 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008747 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008748 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008749 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008750 .block_erasers =
8751 {
8752 {
8753 .eraseblocks = {
8754 {128 * 1024, 1},
8755 {96 * 1024, 1},
8756 {8 * 1024, 2},
8757 {16 * 1024, 1},
8758 },
Sean Nelson35727f72010-01-28 23:55:12 +00008759 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008760 }, {
8761 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008762 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008763 },
8764 },
Sean Nelson35727f72010-01-28 23:55:12 +00008765 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008767 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008768 },
8769
8770 {
8771 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008772 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008773 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008774 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008775 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008776 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008777 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008778 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008779 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008780 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008781 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008782 .block_erasers =
8783 {
8784 {
8785 .eraseblocks = {
8786 {16 * 1024, 1},
8787 {8 * 1024, 2},
8788 {96 * 1024, 1},
8789 {128 * 1024, 1},
8790 },
Sean Nelson35727f72010-01-28 23:55:12 +00008791 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008792 }, {
8793 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008794 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008795 },
8796 },
Sean Nelson35727f72010-01-28 23:55:12 +00008797 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008799 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008800 },
8801
8802 {
8803 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008804 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008805 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008806 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008807 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008808 .total_size = 128,
8809 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008810 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008811 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008812 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008813 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008814 .block_erasers =
8815 {
8816 {
8817 .eraseblocks = { {4 * 1024, 32} },
8818 .block_erase = erase_sector_jedec,
8819 }, {
8820 .eraseblocks = { {64 * 1024, 2} },
8821 .block_erase = erase_block_jedec,
8822 }, {
8823 .eraseblocks = { {128 * 1024, 1} },
8824 .block_erase = erase_chip_block_jedec,
8825 }
8826 },
Sean Nelson35727f72010-01-28 23:55:12 +00008827 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008829 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008830 },
8831
8832 {
8833 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008834 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008835 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008836 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008837 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008838 .total_size = 256,
8839 .page_size = 4096,
8840 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8841 .tested = TEST_UNTESTED,
8842 .probe = probe_jedec,
8843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8844 .block_erasers =
8845 {
8846 {
8847 .eraseblocks = { {4 * 1024, 64} },
8848 .block_erase = erase_sector_jedec,
8849 }, {
8850 .eraseblocks = { {64 * 1024, 4} },
8851 .block_erase = erase_block_jedec,
8852 }, {
8853 .eraseblocks = { {256 * 1024, 1} },
8854 .block_erase = erase_chip_block_jedec,
8855 }
8856 },
8857 .write = write_jedec_1,
8858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008859 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008860 },
8861
8862 {
8863 .vendor = "PMC",
8864 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008865 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008866 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008867 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008868 .total_size = 512,
8869 .page_size = 4096,
8870 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008871 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008872 .probe = probe_jedec,
8873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8874 .block_erasers =
8875 {
8876 {
8877 .eraseblocks = { {4 * 1024, 128} },
8878 .block_erase = erase_sector_jedec,
8879 }, {
8880 .eraseblocks = { {64 * 1024, 8} },
8881 .block_erase = erase_block_jedec,
8882 }, {
8883 .eraseblocks = { {512 * 1024, 1} },
8884 .block_erase = erase_chip_block_jedec,
8885 }
8886 },
8887 .write = write_jedec_1,
8888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008889 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008890 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008891
8892 {
8893 .vendor = "PMC",
8894 .name = "Pm39LV512",
8895 .bustype = BUS_PARALLEL,
8896 .manufacture_id = PMC_ID_NOPREFIX,
8897 .model_id = PMC_PM39LV512,
8898 .total_size = 64,
8899 .page_size = 4096,
8900 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8901 .tested = TEST_OK_PREW,
8902 .probe = probe_jedec,
8903 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8904 .block_erasers =
8905 {
8906 {
8907 .eraseblocks = { {4 * 1024, 16} },
8908 .block_erase = erase_sector_jedec,
8909 }, {
8910 .eraseblocks = { {64 * 1024, 1} },
8911 .block_erase = erase_block_jedec,
8912 }, {
8913 .eraseblocks = { {64 * 1024, 1} },
8914 .block_erase = erase_chip_block_jedec,
8915 }
8916 },
8917 .write = write_jedec_1,
8918 .read = read_memmapped,
8919 .voltage = {2700, 3600},
8920 },
8921
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008922 {
8923 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008924 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008925 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008926 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008927 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008928 .total_size = 256,
8929 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008930 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008931 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008932 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008933 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008934 .block_erasers =
8935 {
8936 {
8937 .eraseblocks = { {4 * 1024, 64} },
8938 .block_erase = erase_sector_jedec,
8939 }, {
8940 .eraseblocks = { {16 * 1024, 16} },
8941 .block_erase = erase_block_jedec,
8942 }, {
8943 .eraseblocks = { {256 * 1024, 1} },
8944 .block_erase = erase_chip_block_jedec,
8945 }
8946 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008947 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008948 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008949 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008950 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008951 },
8952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008953 {
8954 .vendor = "PMC",
8955 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008956 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008957 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008958 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008959 .total_size = 512,
8960 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008961 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008962 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008963 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008964 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008965 .block_erasers =
8966 {
8967 {
8968 .eraseblocks = { {4 * 1024, 128} },
8969 .block_erase = erase_sector_jedec,
8970 }, {
8971 .eraseblocks = { {64 * 1024, 8} },
8972 .block_erase = erase_block_jedec,
8973 }, {
8974 .eraseblocks = { {512 * 1024, 1} },
8975 .block_erase = erase_chip_block_jedec,
8976 }
8977 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008978 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008979 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008980 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008981 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008982 },
8983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008984 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00008985 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008986 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008987 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008988 .manufacture_id = SANYO_ID,
8989 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008990 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008991 .page_size = 256,
8992 .tested = TEST_UNTESTED,
8993 .probe = probe_spi_rdid,
8994 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008995 .block_erasers =
8996 {
8997 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008998 .eraseblocks = { {256, 1024} },
8999 .block_erase = spi_block_erase_db,
9000 }, {
9001 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009002 .block_erase = spi_block_erase_d8,
9003 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009004 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009005 .block_erase = spi_block_erase_c7,
9006 }
9007 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009008 .printlock = spi_prettyprint_status_register_default_welwip,
9009 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009010 .write = spi_chip_write_256,
9011 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009012 .voltage = {2700, 3600},
9013 },
9014
9015 {
9016 .vendor = "Sanyo",
9017 .name = "LE25FW403A",
9018 .bustype = BUS_SPI,
9019 .manufacture_id = SANYO_ID,
9020 .model_id = SANYO_LE25FW403A,
9021 .total_size = 512,
9022 .page_size = 256,
9023 .tested = TEST_UNTESTED,
9024 .probe = probe_spi_rdid,
9025 .probe_timing = TIMING_ZERO,
9026 .block_erasers = {
9027 {
9028 .eraseblocks = { {256, 2 * 1024} },
9029 .block_erase = spi_block_erase_db,
9030 }, {
9031 .eraseblocks = { {64 * 1024, 8} },
9032 .block_erase = spi_block_erase_d8,
9033 }, {
9034 .eraseblocks = { {512 * 1024, 1} },
9035 .block_erase = spi_block_erase_c7,
9036 }
9037 },
9038 .printlock = spi_prettyprint_status_register_default_welwip,
9039 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9040 .write = spi_chip_write_256,
9041 .read = spi_chip_read,
9042 .voltage = {2700, 3600},
9043 },
9044
9045 {
9046 .vendor = "Sanyo",
9047 .name = "LE25FW418A",
9048 .bustype = BUS_SPI,
9049 .manufacture_id = SANYO_ID,
9050 .model_id = SANYO_LE25FW418A,
9051 .total_size = 512,
9052 .page_size = 256,
9053 .feature_bits = FEATURE_WRSR_WREN,
9054 .tested = TEST_UNTESTED,
9055 .probe = probe_spi_res2,
9056 .probe_timing = TIMING_ZERO,
9057 .block_erasers = {
9058 {
9059 .eraseblocks = { {4 * 1024, 128} },
9060 .block_erase = spi_block_erase_d7,
9061 }, {
9062 .eraseblocks = { {64 * 1024, 8} },
9063 .block_erase = spi_block_erase_d8,
9064 }, {
9065 .eraseblocks = { {512 * 1024, 1} },
9066 .block_erase = spi_block_erase_c7,
9067 }
9068 },
9069 .printlock = spi_prettyprint_status_register_default_bp2,
9070 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9071 .write = spi_chip_write_256,
9072 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9073 .voltage = {2700, 3600},
9074 },
9075
9076 {
9077 .vendor = "Sanyo",
9078 .name = "LE25FW806",
9079 .bustype = BUS_SPI,
9080 .manufacture_id = SANYO_ID,
9081 .model_id = SANYO_LE25FW806,
9082 .total_size = 1024,
9083 .page_size = 256,
9084 .feature_bits = FEATURE_WRSR_WREN,
9085 .tested = TEST_UNTESTED,
9086 .probe = probe_spi_res2,
9087 .probe_timing = TIMING_ZERO,
9088 .block_erasers = {
9089 {
9090 .eraseblocks = { {4 * 1024, 256} },
9091 .block_erase = spi_block_erase_20,
9092 }, {
9093 .eraseblocks = { {4 * 1024, 256} },
9094 .block_erase = spi_block_erase_d7,
9095 }, {
9096 .eraseblocks = { {64 * 1024, 16} },
9097 .block_erase = spi_block_erase_d8,
9098 }, {
9099 .eraseblocks = { {1024 * 1024, 1} },
9100 .block_erase = spi_block_erase_c7,
9101 }
9102 },
9103 .printlock = spi_prettyprint_status_register_default_bp2,
9104 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9105 .write = spi_chip_write_256,
9106 .read = spi_chip_read,
9107 .voltage = {2700, 3600},
9108 },
9109
9110 {
9111 .vendor = "Sanyo",
9112 .name = "LE25FW808",
9113 .bustype = BUS_SPI,
9114 .manufacture_id = SANYO_ID,
9115 .model_id = SANYO_LE25FW808,
9116 .total_size = 1024,
9117 .page_size = 256,
9118 .feature_bits = FEATURE_WRSR_WREN,
9119 .tested = TEST_UNTESTED,
9120 .probe = probe_spi_res2,
9121 .probe_timing = TIMING_ZERO,
9122 .block_erasers = {
9123 {
9124 .eraseblocks = { {8 * 1024, 128} },
9125 .block_erase = spi_block_erase_d7,
9126 }, {
9127 .eraseblocks = { {64 * 1024, 16} },
9128 .block_erase = spi_block_erase_d8,
9129 }, {
9130 .eraseblocks = { {1024 * 1024, 1} },
9131 .block_erase = spi_block_erase_c7,
9132 }
9133 },
9134 .printlock = spi_prettyprint_status_register_default_bp2,
9135 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9136 .write = spi_chip_write_256,
9137 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9138 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009139 },
9140
9141 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009142 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009143 .name = "LH28F008BJT-BTLZ1",
9144 .bustype = BUS_PARALLEL,
9145 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009146 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009147 .total_size = 1024,
9148 .page_size = 64 * 1024,
9149 .tested = TEST_OK_PREW,
9150 .probe = probe_82802ab,
9151 .probe_timing = TIMING_ZERO,
9152 .block_erasers =
9153 {
9154 {
9155 .eraseblocks = {
9156 {8 * 1024, 8},
9157 {64 * 1024, 15}
9158 },
9159 .block_erase = erase_block_82802ab,
9160 }, {
9161 .eraseblocks = { {1024 * 1024, 1} },
9162 .block_erase = erase_sector_49lfxxxc,
9163 }
9164 },
9165 .unlock = unlock_lh28f008bjt,
9166 .write = write_82802ab,
9167 .read = read_memmapped,
9168 .voltage = {2700, 3600},
9169 },
9170
9171 {
9172 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009173 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009174 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009175 .manufacture_id = SHARP_ID,
9176 .model_id = SHARP_LHF00L04,
9177 .total_size = 1024,
9178 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009179 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009180 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009181 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009182 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009183 .block_erasers =
9184 {
9185 {
9186 .eraseblocks = {
9187 {64 * 1024, 15},
9188 {8 * 1024, 8}
9189 },
Sean Nelson28accc22010-03-19 18:47:06 +00009190 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009191 }, {
9192 .eraseblocks = {
9193 {1024 * 1024, 1}
9194 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009195 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009196 },
9197 },
Sean Nelson28accc22010-03-19 18:47:06 +00009198 .unlock = unlock_82802ab,
9199 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009201 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009202 },
9203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009204 {
9205 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009206 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009207 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009208 .manufacture_id = SPANSION_ID,
9209 .model_id = SPANSION_S25FL004A,
9210 .total_size = 512,
9211 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009212 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009213 .tested = TEST_UNTESTED,
9214 .probe = probe_spi_rdid,
9215 .probe_timing = TIMING_ZERO,
9216 .block_erasers =
9217 {
9218 {
9219 .eraseblocks = { {64 * 1024, 8} },
9220 .block_erase = spi_block_erase_d8,
9221 }, {
9222 .eraseblocks = { {512 * 1024, 1} },
9223 .block_erase = spi_block_erase_c7,
9224 }
9225 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009226 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009227 .unlock = spi_disable_blockprotect,
9228 .write = spi_chip_write_256,
9229 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009230 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009231 },
9232
9233 {
9234 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009235 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009236 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009237 .manufacture_id = SPANSION_ID,
9238 .model_id = SPANSION_S25FL008A,
9239 .total_size = 1024,
9240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009241 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009242 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009243 .probe = probe_spi_rdid,
9244 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009245 .block_erasers =
9246 {
9247 {
9248 .eraseblocks = { {64 * 1024, 16} },
9249 .block_erase = spi_block_erase_d8,
9250 }, {
9251 .eraseblocks = { {1024 * 1024, 1} },
9252 .block_erase = spi_block_erase_c7,
9253 }
9254 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009255 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009256 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009257 .write = spi_chip_write_256,
9258 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009259 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009260 },
9261
9262 {
9263 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009264 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009266 .manufacture_id = SPANSION_ID,
9267 .model_id = SPANSION_S25FL016A,
9268 .total_size = 2048,
9269 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009270 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009271 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009273 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009274 .block_erasers =
9275 {
9276 {
9277 .eraseblocks = { {64 * 1024, 32} },
9278 .block_erase = spi_block_erase_d8,
9279 }, {
9280 .eraseblocks = { {2 * 1024 * 1024, 1} },
9281 .block_erase = spi_block_erase_c7,
9282 }
9283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009285 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009286 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009288 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009289 },
9290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009291 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009292 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009293 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009294 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009295 .manufacture_id = SPANSION_ID,
9296 .model_id = SPANSION_S25FL032A,
9297 .total_size = 4096,
9298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009299 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009300 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009301 .probe = probe_spi_rdid,
9302 .probe_timing = TIMING_ZERO,
9303 .block_erasers =
9304 {
9305 {
9306 .eraseblocks = { {64 * 1024, 64} },
9307 .block_erase = spi_block_erase_d8,
9308 }, {
9309 .eraseblocks = { {4 * 1024 * 1024, 1} },
9310 .block_erase = spi_block_erase_c7,
9311 }
9312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009313 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009314 .unlock = spi_disable_blockprotect,
9315 .write = spi_chip_write_256,
9316 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009317 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009318 },
9319
9320 {
9321 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009322 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009323 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009324 .manufacture_id = SPANSION_ID,
9325 .model_id = SPANSION_S25FL064A,
9326 .total_size = 8192,
9327 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009328 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009329 .tested = TEST_OK_PREW,
9330 .probe = probe_spi_rdid,
9331 .probe_timing = TIMING_ZERO,
9332 .block_erasers =
9333 {
9334 {
9335 .eraseblocks = { {64 * 1024, 128} },
9336 .block_erase = spi_block_erase_d8,
9337 }, {
9338 .eraseblocks = { {8 * 1024 * 1024, 1} },
9339 .block_erase = spi_block_erase_c7,
9340 }
9341 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009342 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009343 .unlock = spi_disable_blockprotect,
9344 .write = spi_chip_write_256,
9345 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009346 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009347 },
9348
9349 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009350 .vendor = "Spansion",
9351 .name = "S25FL204K",
9352 .bustype = BUS_SPI,
9353 .manufacture_id = SPANSION_ID,
9354 .model_id = SPANSION_S25FL204,
9355 .total_size = 512,
9356 .page_size = 256,
9357 .feature_bits = FEATURE_WRSR_WREN,
9358 .tested = TEST_UNTESTED,
9359 .probe = probe_spi_rdid,
9360 .probe_timing = TIMING_ZERO,
9361 .block_erasers = {
9362 {
9363 .eraseblocks = { {4 * 1024, 128} },
9364 .block_erase = spi_block_erase_20,
9365 }, {
9366 .eraseblocks = { {64 * 1024, 8} },
9367 .block_erase = spi_block_erase_d8,
9368 }, {
9369 .eraseblocks = { { 512 * 1024, 1} },
9370 .block_erase = spi_block_erase_60,
9371 }, {
9372 .eraseblocks = { { 512 * 1024, 1} },
9373 .block_erase = spi_block_erase_c7,
9374 }
9375 },
9376 .printlock = spi_prettyprint_status_register_default_bp3,
9377 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9378 .write = spi_chip_write_256,
9379 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9380 .voltage = {2700, 3600},
9381 },
9382
9383 {
9384 .vendor = "Spansion",
9385 .name = "S25FL208K",
9386 .bustype = BUS_SPI,
9387 .manufacture_id = SPANSION_ID,
9388 .model_id = SPANSION_S25FL208,
9389 .total_size = 1024,
9390 .page_size = 256,
9391 .feature_bits = FEATURE_WRSR_WREN,
9392 .tested = TEST_UNTESTED,
9393 .probe = probe_spi_rdid,
9394 .probe_timing = TIMING_ZERO,
9395 .block_erasers = {
9396 {
9397 .eraseblocks = { {4 * 1024, 256} },
9398 .block_erase = spi_block_erase_20,
9399 }, {
9400 .eraseblocks = { {64 * 1024, 16} },
9401 .block_erase = spi_block_erase_d8,
9402 }, {
9403 .eraseblocks = { { 1024 * 1024, 1} },
9404 .block_erase = spi_block_erase_60,
9405 }, {
9406 .eraseblocks = { { 1024 * 1024, 1} },
9407 .block_erase = spi_block_erase_c7,
9408 }
9409 },
9410 .printlock = spi_prettyprint_status_register_default_bp3,
9411 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9412 .write = spi_chip_write_256,
9413 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9414 .voltage = {2700, 3600},
9415 },
9416
9417 {
9418 .vendor = "Spansion",
9419 .name = "S25FL116K/S25FL216K",
9420 .bustype = BUS_SPI,
9421 .manufacture_id = SPANSION_ID,
9422 .model_id = SPANSION_S25FL216,
9423 .total_size = 2048,
9424 .page_size = 256,
9425 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9426 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9427 .tested = TEST_UNTESTED,
9428 .probe = probe_spi_rdid,
9429 .probe_timing = TIMING_ZERO,
9430 .block_erasers = {
9431 {
9432 .eraseblocks = { {4 * 1024, 512} },
9433 .block_erase = spi_block_erase_20,
9434 }, {
9435 .eraseblocks = { {64 * 1024, 32} },
9436 .block_erase = spi_block_erase_d8,
9437 }, {
9438 .eraseblocks = { { 2048 * 1024, 1} },
9439 .block_erase = spi_block_erase_60,
9440 }, {
9441 .eraseblocks = { { 2048 * 1024, 1} },
9442 .block_erase = spi_block_erase_c7,
9443 }
9444 },
9445 .printlock = spi_prettyprint_status_register_default_bp3,
9446 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9447 .write = spi_chip_write_256,
9448 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9449 .voltage = {2700, 3600},
9450 },
9451
9452 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009453 .vendor = "Spansion",
9454 .name = "S25FL128S......0", /* uniform 256kB sectors */
9455 .bustype = BUS_SPI,
9456 .manufacture_id = SPANSION_ID,
9457 .model_id = SPANSION_S25FL128,
9458 .total_size = 16384,
9459 .page_size = 256,
9460 /* supports 4B addressing */
9461 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9462 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9463 .tested = TEST_UNTESTED,
9464 .probe = probe_spi_rdid,
9465 .probe_timing = TIMING_ZERO,
9466 .block_erasers = {
9467 {
9468 .eraseblocks = { {4 * 1024, 4096} },
9469 .block_erase = spi_block_erase_20,
9470 }, {
9471 .eraseblocks = { {256 * 1024, 64} },
9472 .block_erase = spi_block_erase_d8,
9473 }, {
9474 .eraseblocks = { { 16384 * 1024, 1} },
9475 .block_erase = spi_block_erase_60,
9476 }, {
9477 .eraseblocks = { { 16384 * 1024, 1} },
9478 .block_erase = spi_block_erase_c7,
9479 }
9480 },
9481 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9482 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9483 .write = spi_chip_write_256, /* Multi I/O supported */
9484 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9485 .voltage = {2700, 3600},
9486 },
9487
9488 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009489 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009490 .name = "SST25LF040A",
9491 .bustype = BUS_SPI,
9492 .manufacture_id = SST_ID,
9493 .model_id = SST_SST25VF040_REMS,
9494 .total_size = 512,
9495 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009496 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009497 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009498 .probe = probe_spi_res2,
9499 .probe_timing = TIMING_ZERO,
9500 .block_erasers =
9501 {
9502 {
9503 .eraseblocks = { {4 * 1024, 128} },
9504 .block_erase = spi_block_erase_20,
9505 }, {
9506 .eraseblocks = { {32 * 1024, 16} },
9507 .block_erase = spi_block_erase_52,
9508 }, {
9509 .eraseblocks = { {512 * 1024, 1} },
9510 .block_erase = spi_block_erase_60,
9511 },
9512 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009513 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009514 .unlock = spi_disable_blockprotect,
9515 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9516 .read = spi_chip_read,
9517 .voltage = {3000, 3600},
9518 },
9519
9520 {
9521 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009522 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009523 .bustype = BUS_SPI,
9524 .manufacture_id = SST_ID,
9525 .model_id = SST_SST25VF080_REMS,
9526 .total_size = 1024,
9527 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009528 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009529 .tested = TEST_UNTESTED,
9530 .probe = probe_spi_res2,
9531 .probe_timing = TIMING_ZERO,
9532 .block_erasers =
9533 {
9534 {
9535 .eraseblocks = { {4 * 1024, 256} },
9536 .block_erase = spi_block_erase_20,
9537 }, {
9538 .eraseblocks = { {32 * 1024, 32} },
9539 .block_erase = spi_block_erase_52,
9540 }, {
9541 .eraseblocks = { {1024 * 1024, 1} },
9542 .block_erase = spi_block_erase_60,
9543 },
9544 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009545 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009546 .unlock = spi_disable_blockprotect,
9547 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9548 .read = spi_chip_read,
9549 .voltage = {3000, 3600},
9550 },
9551
9552 {
9553 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009554 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009555 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009556 .manufacture_id = SST_ID,
9557 .model_id = SST_SST25VF010_REMS,
9558 .total_size = 128,
9559 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009560 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009561 .tested = TEST_OK_PREW,
9562 .probe = probe_spi_rems,
9563 .probe_timing = TIMING_ZERO,
9564 .block_erasers =
9565 {
9566 {
9567 .eraseblocks = { {4 * 1024, 32} },
9568 .block_erase = spi_block_erase_20,
9569 }, {
9570 .eraseblocks = { {32 * 1024, 4} },
9571 .block_erase = spi_block_erase_52,
9572 }, {
9573 .eraseblocks = { {128 * 1024, 1} },
9574 .block_erase = spi_block_erase_60,
9575 },
9576 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009577 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009578 .unlock = spi_disable_blockprotect,
9579 .write = spi_chip_write_1,
9580 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009581 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00009582 },
9583
9584 {
9585 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009586 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009587 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009588 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009589 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009590 .total_size = 2048,
9591 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009592 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00009593 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009595 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009596 .block_erasers =
9597 {
9598 {
9599 .eraseblocks = { {4 * 1024, 512} },
9600 .block_erase = spi_block_erase_20,
9601 }, {
9602 .eraseblocks = { {32 * 1024, 64} },
9603 .block_erase = spi_block_erase_52,
9604 }, {
9605 .eraseblocks = { {64 * 1024, 32} },
9606 .block_erase = spi_block_erase_d8,
9607 }, {
9608 .eraseblocks = { {2 * 1024 * 1024, 1} },
9609 .block_erase = spi_block_erase_60,
9610 }, {
9611 .eraseblocks = { {2 * 1024 * 1024, 1} },
9612 .block_erase = spi_block_erase_c7,
9613 },
9614 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009615 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009616 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009617 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009618 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009619 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009620 },
9621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009622 {
9623 .vendor = "SST",
9624 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009625 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009626 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009627 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009628 .total_size = 4096,
9629 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009630 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00009631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009632 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009633 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009634 .block_erasers =
9635 {
9636 {
9637 .eraseblocks = { {4 * 1024, 1024} },
9638 .block_erase = spi_block_erase_20,
9639 }, {
9640 .eraseblocks = { {32 * 1024, 128} },
9641 .block_erase = spi_block_erase_52,
9642 }, {
9643 .eraseblocks = { {64 * 1024, 64} },
9644 .block_erase = spi_block_erase_d8,
9645 }, {
9646 .eraseblocks = { {4 * 1024 * 1024, 1} },
9647 .block_erase = spi_block_erase_60,
9648 }, {
9649 .eraseblocks = { {4 * 1024 * 1024, 1} },
9650 .block_erase = spi_block_erase_c7,
9651 },
9652 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009653 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009654 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009655 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009657 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009658 },
9659
9660 {
9661 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009662 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009663 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009664 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009665 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009666 .total_size = 8192,
9667 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009668 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00009669 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009670 .probe = probe_spi_rdid,
9671 .probe_timing = TIMING_ZERO,
9672 .block_erasers =
9673 {
9674 {
9675 .eraseblocks = { {4 * 1024, 2048} },
9676 .block_erase = spi_block_erase_20,
9677 }, {
9678 .eraseblocks = { {32 * 1024, 256} },
9679 .block_erase = spi_block_erase_52,
9680 }, {
9681 .eraseblocks = { {64 * 1024, 128} },
9682 .block_erase = spi_block_erase_d8,
9683 }, {
9684 .eraseblocks = { {8 * 1024 * 1024, 1} },
9685 .block_erase = spi_block_erase_60,
9686 }, {
9687 .eraseblocks = { {8 * 1024 * 1024, 1} },
9688 .block_erase = spi_block_erase_c7,
9689 },
9690 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009691 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009692 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009693 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009694 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009695 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009696 },
9697
9698 {
9699 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009700 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009701 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009702 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009703 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009704 .total_size = 512,
9705 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009706 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009707 .tested = TEST_OK_PR,
9708 .probe = probe_spi_rems,
9709 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009710 .block_erasers =
9711 {
9712 {
9713 .eraseblocks = { {4 * 1024, 128} },
9714 .block_erase = spi_block_erase_20,
9715 }, {
9716 .eraseblocks = { {32 * 1024, 16} },
9717 .block_erase = spi_block_erase_52,
9718 }, {
9719 .eraseblocks = { {512 * 1024, 1} },
9720 .block_erase = spi_block_erase_60,
9721 },
9722 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009723 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009724 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009725 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009726 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009728 },
9729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009730 {
9731 .vendor = "SST",
9732 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009734 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009735 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009736 .total_size = 512,
9737 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009738 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009739 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009740 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009741 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009742 .block_erasers =
9743 {
9744 {
9745 .eraseblocks = { {4 * 1024, 128} },
9746 .block_erase = spi_block_erase_20,
9747 }, {
9748 .eraseblocks = { {32 * 1024, 16} },
9749 .block_erase = spi_block_erase_52,
9750 }, {
9751 .eraseblocks = { {64 * 1024, 8} },
9752 .block_erase = spi_block_erase_d8,
9753 }, {
9754 .eraseblocks = { {512 * 1024, 1} },
9755 .block_erase = spi_block_erase_60,
9756 }, {
9757 .eraseblocks = { {512 * 1024, 1} },
9758 .block_erase = spi_block_erase_c7,
9759 },
9760 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009761 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009762 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009763 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00009764 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009765 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00009766 },
9767
9768 {
9769 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00009770 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009771 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009772 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009773 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00009774 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009776 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009777 .tested = TEST_OK_PREW,
Peter Stugefd9217d2009-01-26 03:37:40 +00009778 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009779 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009780 .block_erasers =
9781 {
9782 {
9783 .eraseblocks = { {4 * 1024, 128} },
9784 .block_erase = spi_block_erase_20,
9785 }, {
9786 .eraseblocks = { {32 * 1024, 16} },
9787 .block_erase = spi_block_erase_52,
9788 }, {
9789 .eraseblocks = { {64 * 1024, 8} },
9790 .block_erase = spi_block_erase_d8,
9791 }, {
9792 .eraseblocks = { {512 * 1024, 1} },
9793 .block_erase = spi_block_erase_60,
9794 }, {
9795 .eraseblocks = { {512 * 1024, 1} },
9796 .block_erase = spi_block_erase_c7,
9797 },
9798 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009799 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009800 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009801 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00009802 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009803 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00009804 },
9805
9806 {
9807 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009808 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009809 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009810 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009811 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009812 .total_size = 1024,
9813 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009814 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00009815 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009816 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009817 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009818 .block_erasers =
9819 {
9820 {
9821 .eraseblocks = { {4 * 1024, 256} },
9822 .block_erase = spi_block_erase_20,
9823 }, {
9824 .eraseblocks = { {32 * 1024, 32} },
9825 .block_erase = spi_block_erase_52,
9826 }, {
9827 .eraseblocks = { {64 * 1024, 16} },
9828 .block_erase = spi_block_erase_d8,
9829 }, {
9830 .eraseblocks = { {1024 * 1024, 1} },
9831 .block_erase = spi_block_erase_60,
9832 }, {
9833 .eraseblocks = { {1024 * 1024, 1} },
9834 .block_erase = spi_block_erase_c7,
9835 },
9836 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009837 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009838 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009839 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009840 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009841 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009842 },
9843
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009844 {
9845 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00009846 .name = "SST25WF512",
9847 .bustype = BUS_SPI,
9848 .manufacture_id = SST_ID,
9849 .model_id = SST_SST25WF512,
9850 .total_size = 64,
9851 .page_size = 256,
9852 .feature_bits = FEATURE_WRSR_EITHER,
9853 .tested = TEST_UNTESTED,
9854 .probe = probe_spi_rdid,
9855 .probe_timing = TIMING_ZERO,
9856 .block_erasers =
9857 {
9858 {
9859 .eraseblocks = { {4 * 1024, 16} },
9860 .block_erase = spi_block_erase_20,
9861 }, {
9862 .eraseblocks = { {32 * 1024, 2} },
9863 .block_erase = spi_block_erase_52,
9864 }, {
9865 .eraseblocks = { {1024 * 64, 1} },
9866 .block_erase = spi_block_erase_60,
9867 }, {
9868 .eraseblocks = { {1024 * 64, 1} },
9869 .block_erase = spi_block_erase_c7,
9870 },
9871 },
9872 .unlock = spi_disable_blockprotect,
9873 .write = spi_aai_write,
9874 .read = spi_chip_read, /* Fast read (0x0B) supported */
9875 .voltage = {1650, 1950},
9876 },
9877
9878 {
9879 .vendor = "SST",
9880 .name = "SST25WF010",
9881 .bustype = BUS_SPI,
9882 .manufacture_id = SST_ID,
9883 .model_id = SST_SST25WF010,
9884 .total_size = 128,
9885 .page_size = 256,
9886 .feature_bits = FEATURE_WRSR_EITHER,
9887 .tested = TEST_UNTESTED,
9888 .probe = probe_spi_rdid,
9889 .probe_timing = TIMING_ZERO,
9890 .block_erasers =
9891 {
9892 {
9893 .eraseblocks = { {4 * 1024, 32} },
9894 .block_erase = spi_block_erase_20,
9895 }, {
9896 .eraseblocks = { {32 * 1024, 4} },
9897 .block_erase = spi_block_erase_52,
9898 }, {
9899 .eraseblocks = { {1024 * 128, 1} },
9900 .block_erase = spi_block_erase_60,
9901 }, {
9902 .eraseblocks = { {1024 * 128, 1} },
9903 .block_erase = spi_block_erase_c7,
9904 },
9905 },
9906 .unlock = spi_disable_blockprotect,
9907 .write = spi_aai_write,
9908 .read = spi_chip_read, /* Fast read (0x0B) supported */
9909 .voltage = {1650, 1950},
9910 },
9911
9912 {
9913 .vendor = "SST",
9914 .name = "SST25WF020",
9915 .bustype = BUS_SPI,
9916 .manufacture_id = SST_ID,
9917 .model_id = SST_SST25WF020,
9918 .total_size = 256,
9919 .page_size = 256,
9920 .feature_bits = FEATURE_WRSR_EITHER,
9921 .tested = TEST_UNTESTED,
9922 .probe = probe_spi_rdid,
9923 .probe_timing = TIMING_ZERO,
9924 .block_erasers =
9925 {
9926 {
9927 .eraseblocks = { {4 * 1024, 64} },
9928 .block_erase = spi_block_erase_20,
9929 }, {
9930 .eraseblocks = { {32 * 1024, 8} },
9931 .block_erase = spi_block_erase_52,
9932 }, {
9933 .eraseblocks = { {64 * 1024, 4} },
9934 .block_erase = spi_block_erase_d8,
9935 }, {
9936 .eraseblocks = { {1024 * 256, 1} },
9937 .block_erase = spi_block_erase_60,
9938 }, {
9939 .eraseblocks = { {1024 * 256, 1} },
9940 .block_erase = spi_block_erase_c7,
9941 },
9942 },
9943 .unlock = spi_disable_blockprotect,
9944 .write = spi_aai_write,
9945 .read = spi_chip_read, /* Fast read (0x0B) supported */
9946 .voltage = {1650, 1950},
9947 },
9948
9949 {
9950 .vendor = "SST",
9951 .name = "SST25WF040",
9952 .bustype = BUS_SPI,
9953 .manufacture_id = SST_ID,
9954 .model_id = SST_SST25WF040,
9955 .total_size = 512,
9956 .page_size = 256,
9957 .feature_bits = FEATURE_WRSR_EITHER,
9958 .tested = TEST_UNTESTED,
9959 .probe = probe_spi_rdid,
9960 .probe_timing = TIMING_ZERO,
9961 .block_erasers =
9962 {
9963 {
9964 .eraseblocks = { {4 * 1024, 128} },
9965 .block_erase = spi_block_erase_20,
9966 }, {
9967 .eraseblocks = { {32 * 1024, 16} },
9968 .block_erase = spi_block_erase_52,
9969 }, {
9970 .eraseblocks = { {64 * 1024, 8} },
9971 .block_erase = spi_block_erase_d8,
9972 }, {
9973 .eraseblocks = { {1024 * 512, 1} },
9974 .block_erase = spi_block_erase_60,
9975 }, {
9976 .eraseblocks = { {1024 * 512, 1} },
9977 .block_erase = spi_block_erase_c7,
9978 },
9979 },
9980 .unlock = spi_disable_blockprotect,
9981 .write = spi_aai_write,
9982 .read = spi_chip_read, /* Fast read (0x0B) supported */
9983 .voltage = {1650, 1950},
9984 },
9985
9986 {
9987 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009988 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009989 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009990 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009991 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009992 .total_size = 512,
9993 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009994 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009995 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009996 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009997 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009998 .block_erasers =
9999 {
10000 {
10001 .eraseblocks = { {128, 4096} },
10002 .block_erase = erase_sector_28sf040,
10003 }, {
10004 .eraseblocks = { {512 * 1024, 1} },
10005 .block_erase = erase_chip_28sf040,
10006 }
10007 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010008 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010009 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010011 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010012 },
10013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010014 {
10015 .vendor = "SST",
10016 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010017 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010018 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010019 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010020 .total_size = 128,
10021 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010022 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010023 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010024 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010025 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010026 .block_erasers =
10027 {
10028 {
10029 .eraseblocks = { {128 * 1024, 1} },
10030 .block_erase = erase_chip_block_jedec,
10031 }
10032 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010033 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010034 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010035 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010036 },
10037
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010038 {
10039 .vendor = "SST",
10040 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010041 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010042 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010043 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010044 .total_size = 128,
10045 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010046 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010047 .tested = TEST_UNTESTED,
10048 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010049 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010050 .block_erasers =
10051 {
10052 {
10053 .eraseblocks = { {128 * 1024, 1} },
10054 .block_erase = erase_chip_block_jedec,
10055 }
10056 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010057 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010058 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010059 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010060 },
10061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010062 {
10063 .vendor = "SST",
10064 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010065 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010066 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010067 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010068 .total_size = 256,
10069 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010070 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010071 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010072 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010073 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010074 .block_erasers =
10075 {
10076 {
10077 .eraseblocks = { {256 * 1024, 1} },
10078 .block_erase = erase_chip_block_jedec,
10079 }
10080 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010081 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010082 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010083 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010084 },
10085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010086 {
10087 .vendor = "SST",
10088 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010089 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010090 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010091 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010092 .total_size = 256,
10093 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010094 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010095 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010096 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010097 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010098 .block_erasers =
10099 {
10100 {
10101 .eraseblocks = { {256 * 1024, 1} },
10102 .block_erase = erase_chip_block_jedec,
10103 }
10104 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010105 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010107 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010108 },
10109
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010110 {
10111 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010112 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010113 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010114 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010115 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010116 .total_size = 64,
10117 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010118 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010119 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010120 .probe = probe_jedec,
10121 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010122 .block_erasers =
10123 {
10124 {
10125 .eraseblocks = { {4 * 1024, 16} },
10126 .block_erase = erase_sector_jedec,
10127 }, {
10128 .eraseblocks = { {64 * 1024, 1} },
10129 .block_erase = erase_chip_block_jedec,
10130 }
10131 },
Sean Nelson35727f72010-01-28 23:55:12 +000010132 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010133 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010134 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010135 },
10136
10137 {
10138 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010139 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010140 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010141 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010142 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010143 .total_size = 128,
10144 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010145 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010146 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010147 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010148 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010149 .block_erasers =
10150 {
10151 {
10152 .eraseblocks = { {4 * 1024, 32} },
10153 .block_erase = erase_sector_jedec,
10154 }, {
10155 .eraseblocks = { {128 * 1024, 1} },
10156 .block_erase = erase_chip_block_jedec,
10157 }
10158 },
Sean Nelson35727f72010-01-28 23:55:12 +000010159 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010161 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010162 },
10163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010164 {
10165 .vendor = "SST",
10166 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010167 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010168 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010169 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010170 .total_size = 256,
10171 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010172 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010173 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010174 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010175 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010176 .block_erasers =
10177 {
10178 {
10179 .eraseblocks = { {4 * 1024, 64} },
10180 .block_erase = erase_sector_jedec,
10181 }, {
10182 .eraseblocks = { {256 * 1024, 1} },
10183 .block_erase = erase_chip_block_jedec,
10184 }
10185 },
Sean Nelson35727f72010-01-28 23:55:12 +000010186 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010188 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010189 },
10190
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010191 {
10192 .vendor = "SST",
10193 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010194 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010195 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010196 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010197 .total_size = 512,
10198 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010199 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010200 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010201 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010202 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010203 .block_erasers =
10204 {
10205 {
10206 .eraseblocks = { {4 * 1024, 128} },
10207 .block_erase = erase_sector_jedec,
10208 }, {
10209 .eraseblocks = { {512 * 1024, 1} },
10210 .block_erase = erase_chip_block_jedec,
10211 }
10212 },
Sean Nelson35727f72010-01-28 23:55:12 +000010213 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010215 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010216 },
10217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010218 {
10219 .vendor = "SST",
10220 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010221 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010222 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010223 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010224 .total_size = 64,
10225 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010226 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010227 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010228 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010229 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010230 .block_erasers =
10231 {
10232 {
10233 .eraseblocks = { {4 * 1024, 16} },
10234 .block_erase = erase_sector_jedec,
10235 }, {
10236 .eraseblocks = { {64 * 1024, 1} },
10237 .block_erase = erase_chip_block_jedec,
10238 }
10239 },
Sean Nelson35727f72010-01-28 23:55:12 +000010240 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010242 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010243 },
10244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010245 {
10246 .vendor = "SST",
10247 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010248 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010249 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010250 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010251 .total_size = 128,
10252 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010253 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010254 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010255 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010256 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010257 .block_erasers =
10258 {
10259 {
10260 .eraseblocks = { {4 * 1024, 32} },
10261 .block_erase = erase_sector_jedec,
10262 }, {
10263 .eraseblocks = { {128 * 1024, 1} },
10264 .block_erase = erase_chip_block_jedec,
10265 }
10266 },
Sean Nelson35727f72010-01-28 23:55:12 +000010267 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010268 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010269 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010270 },
10271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010272 {
10273 .vendor = "SST",
10274 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010275 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010276 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010277 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010278 .total_size = 256,
10279 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010280 .feature_bits = FEATURE_EITHER_RESET,
10281 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010282 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010283 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010284 .block_erasers =
10285 {
10286 {
10287 .eraseblocks = { {4 * 1024, 64} },
10288 .block_erase = erase_sector_jedec,
10289 }, {
10290 .eraseblocks = { {256 * 1024, 1} },
10291 .block_erase = erase_chip_block_jedec,
10292 }
10293 },
Sean Nelson35727f72010-01-28 23:55:12 +000010294 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010297 },
10298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010299 {
10300 .vendor = "SST",
10301 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010302 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010303 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010304 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010305 .total_size = 512,
10306 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010307 .feature_bits = FEATURE_EITHER_RESET,
10308 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010309 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010310 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010311 .block_erasers =
10312 {
10313 {
10314 .eraseblocks = { {4 * 1024, 128} },
10315 .block_erase = erase_sector_jedec,
10316 }, {
10317 .eraseblocks = { {512 * 1024, 1} },
10318 .block_erase = erase_chip_block_jedec,
10319 }
10320 },
Sean Nelson35727f72010-01-28 23:55:12 +000010321 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010323 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010324 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010325
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010326 {
10327 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010328 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010329 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010330 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010331 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010332 .total_size = 1024,
10333 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010334 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010335 .tested = TEST_UNTESTED,
10336 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010337 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010338 .block_erasers =
10339 {
10340 {
10341 .eraseblocks = { {4 * 1024, 256} },
10342 .block_erase = erase_sector_jedec,
10343 }, {
10344 .eraseblocks = { {64 * 1024, 16} },
10345 .block_erase = erase_block_jedec,
10346 }, {
10347 .eraseblocks = { {1024 * 1024, 1} },
10348 .block_erase = erase_chip_block_jedec,
10349 }
10350 },
Sean Nelson35727f72010-01-28 23:55:12 +000010351 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010352 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010353 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010354 },
10355
10356 {
10357 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010358 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010359 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010360 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010361 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010362 .total_size = 256,
10363 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010364 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010365 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010366 .probe = probe_jedec,
10367 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010368 .block_erasers =
10369 {
10370 {
10371 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010372 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010373 }, {
10374 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010375 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010376 }, {
10377 .eraseblocks = { {256 * 1024, 1} },
10378 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10379 }
10380 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010381 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010382 .unlock = unlock_sst_fwhub,
10383 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010385 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010386 },
10387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010388 {
10389 .vendor = "SST",
10390 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010391 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010392 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010393 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010394 .total_size = 384,
10395 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010396 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010397 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010398 .probe = probe_jedec,
10399 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010400 .block_erasers =
10401 {
10402 {
10403 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010404 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010405 }, {
10406 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010407 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010408 }, {
10409 .eraseblocks = { {384 * 1024, 1} },
10410 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10411 }
10412 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010413 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010414 .unlock = unlock_sst_fwhub,
10415 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010417 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010418 },
10419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010420 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010421 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10422 * and is only honored for 64k block erase, but not 4k sector erase.
10423 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010424 .vendor = "SST",
10425 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010426 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010427 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010428 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010429 .total_size = 512,
10430 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010431 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010432 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010433 .probe = probe_jedec,
10434 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010435 .block_erasers =
10436 {
10437 {
10438 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010439 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010440 }, {
10441 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010442 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010443 }, {
10444 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010445 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010446 },
10447 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010448 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010449 .unlock = unlock_sst_fwhub,
10450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010452 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010453 },
10454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010455 {
10456 .vendor = "SST",
10457 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010458 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010459 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010460 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010461 .total_size = 512,
10462 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010463 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010464 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010465 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010466 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010467 .block_erasers =
10468 {
10469 {
10470 .eraseblocks = { {4 * 1024, 128} },
10471 .block_erase = erase_sector_49lfxxxc,
10472 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010473 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010474 {64 * 1024, 7},
10475 {32 * 1024, 1},
10476 {8 * 1024, 2},
10477 {16 * 1024, 1},
10478 },
Sean Nelson69e58112010-03-23 17:10:28 +000010479 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010480 }
10481 },
Sean Nelson69e58112010-03-23 17:10:28 +000010482 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010483 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010484 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010485 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010486 },
10487
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010488 {
10489 .vendor = "SST",
10490 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010491 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010492 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010493 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010494 .total_size = 1024,
10495 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010496 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010497 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010498 .probe = probe_jedec,
10499 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010500 .block_erasers =
10501 {
10502 {
10503 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010504 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010505 }, {
10506 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010507 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010508 }, {
10509 .eraseblocks = { {1024 * 1024, 1} },
10510 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10511 }
10512 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010513 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010514 .unlock = unlock_sst_fwhub,
10515 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010517 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010518 },
10519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010520 {
10521 .vendor = "SST",
10522 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010523 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010524 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010525 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010526 .total_size = 1024,
10527 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010528 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010529 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010530 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010531 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010532 .block_erasers =
10533 {
10534 {
10535 .eraseblocks = { {4 * 1024, 256} },
10536 .block_erase = erase_sector_49lfxxxc,
10537 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010538 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010539 {64 * 1024, 15},
10540 {32 * 1024, 1},
10541 {8 * 1024, 2},
10542 {16 * 1024, 1},
10543 },
Sean Nelson69e58112010-03-23 17:10:28 +000010544 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010545 }
10546 },
Sean Nelson69e58112010-03-23 17:10:28 +000010547 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010548 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010550 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010551 },
10552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010553 {
10554 .vendor = "SST",
10555 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010556 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010557 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010558 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010559 .total_size = 2048,
10560 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010561 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010562 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010563 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010564 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010565 .block_erasers =
10566 {
10567 {
10568 .eraseblocks = { {4 * 1024, 512} },
10569 .block_erase = erase_sector_49lfxxxc,
10570 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010571 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010572 {64 * 1024, 31},
10573 {32 * 1024, 1},
10574 {8 * 1024, 2},
10575 {16 * 1024, 1},
10576 },
Sean Nelson69e58112010-03-23 17:10:28 +000010577 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010578 }
10579 },
Sean Nelson69e58112010-03-23 17:10:28 +000010580 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010581 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010583 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010584 },
10585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010586 {
10587 .vendor = "SST",
10588 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010589 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010590 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010591 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010592 .total_size = 256,
10593 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010594 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010595 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010596 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010597 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010598 .block_erasers =
10599 {
10600 {
10601 .eraseblocks = { {4 * 1024, 64} },
10602 .block_erase = erase_sector_jedec,
10603 }, {
10604 .eraseblocks = { {16 * 1024, 16} },
10605 .block_erase = erase_block_jedec,
10606 }, {
10607 .eraseblocks = { {256 * 1024, 1} },
10608 .block_erase = NULL,
10609 }
10610 },
Sean Nelson35727f72010-01-28 23:55:12 +000010611 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010613 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010614 },
10615
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010616 {
10617 .vendor = "SST",
10618 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010619 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010620 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010621 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010622 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000010623 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010624 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010625 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010627 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010628 .block_erasers =
10629 {
10630 {
10631 .eraseblocks = { {4 * 1024, 64} },
10632 .block_erase = erase_sector_jedec,
10633 }, {
10634 .eraseblocks = { {16 * 1024, 16} },
10635 .block_erase = erase_block_jedec,
10636 }, {
10637 .eraseblocks = { {256 * 1024, 1} },
10638 .block_erase = NULL,
10639 }
10640 },
Sean Nelson35727f72010-01-28 23:55:12 +000010641 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010643 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010644 },
10645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010646 {
10647 .vendor = "SST",
10648 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010649 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010650 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010651 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010652 .total_size = 512,
10653 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010654 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010655 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010656 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010657 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010658 .block_erasers =
10659 {
10660 {
10661 .eraseblocks = { {4 * 1024, 128} },
10662 .block_erase = erase_sector_jedec,
10663 }, {
10664 .eraseblocks = { {64 * 1024, 8} },
10665 .block_erase = erase_block_jedec,
10666 }, {
10667 .eraseblocks = { {512 * 1024, 1} },
10668 .block_erase = NULL,
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 = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010674 },
10675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010676 {
10677 .vendor = "SST",
10678 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010679 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010680 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010681 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010682 .total_size = 512,
10683 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010684 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010685 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010686 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010687 .probe_timing = 1, /* 150ns */
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 = { {64 * 1024, 8} },
10695 .block_erase = erase_block_jedec,
10696 }, {
10697 .eraseblocks = { {512 * 1024, 1} },
10698 .block_erase = NULL,
10699 }
10700 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010701 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000010702 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010704 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010705 },
10706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010707 {
10708 .vendor = "SST",
10709 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010710 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010711 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010712 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010713 .total_size = 1024,
10714 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010715 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000010716 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010717 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010718 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010719 .block_erasers =
10720 {
10721 {
10722 .eraseblocks = { {4 * 1024, 256} },
10723 .block_erase = erase_sector_jedec,
10724 }, {
10725 .eraseblocks = { {64 * 1024, 16} },
10726 .block_erase = erase_block_jedec,
10727 }, {
10728 .eraseblocks = { {1024 * 1024, 1} },
10729 .block_erase = NULL,
10730 }
10731 },
Sean Nelson35727f72010-01-28 23:55:12 +000010732 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010733 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010734 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010735 },
10736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010737 {
10738 .vendor = "SST",
10739 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010740 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010741 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010742 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010743 .total_size = 2048,
10744 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010745 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010746 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010747 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010748 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010749 .block_erasers =
10750 {
10751 {
10752 .eraseblocks = { {4 * 1024, 512} },
10753 .block_erase = erase_sector_49lfxxxc,
10754 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010755 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010756 {64 * 1024, 31},
10757 {32 * 1024, 1},
10758 {8 * 1024, 2},
10759 {16 * 1024, 1},
10760 },
Sean Nelson69e58112010-03-23 17:10:28 +000010761 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010762 }
10763 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000010764 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010765 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010767 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010768 },
10769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010770 {
10771 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010772 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010773 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010774 .manufacture_id = ST_ID,
10775 .model_id = ST_M29F002B,
10776 .total_size = 256,
10777 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010778 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010779 .tested = TEST_UNTESTED,
10780 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010781 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010782 .block_erasers =
10783 {
10784 {
10785 .eraseblocks = {
10786 {16 * 1024, 1},
10787 {8 * 1024, 2},
10788 {32 * 1024, 1},
10789 {64 * 1024, 3},
10790 },
10791 .block_erase = erase_sector_jedec,
10792 }, {
10793 .eraseblocks = { {256 * 1024, 1} },
10794 .block_erase = erase_chip_block_jedec,
10795 }
10796 },
Sean Nelson35727f72010-01-28 23:55:12 +000010797 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010798 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010799 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010800 },
10801
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010802 {
10803 .vendor = "ST",
10804 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010805 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010806 .manufacture_id = ST_ID,
10807 .model_id = ST_M29F002T,
10808 .total_size = 256,
10809 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010810 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010811 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010812 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010813 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010814 .block_erasers =
10815 {
10816 {
10817 .eraseblocks = {
10818 {64 * 1024, 3},
10819 {32 * 1024, 1},
10820 {8 * 1024, 2},
10821 {16 * 1024, 1},
10822 },
10823 .block_erase = erase_sector_jedec,
10824 }, {
10825 .eraseblocks = { {256 * 1024, 1} },
10826 .block_erase = erase_chip_block_jedec,
10827 }
10828 },
Sean Nelson35727f72010-01-28 23:55:12 +000010829 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010830 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010831 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010832 },
10833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010834 {
10835 .vendor = "ST",
10836 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010837 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010838 .manufacture_id = ST_ID,
10839 .model_id = ST_M29F040B,
10840 .total_size = 512,
10841 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010842 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10843 .tested = TEST_UNTESTED,
10844 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010845 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000010846 .block_erasers =
10847 {
10848 {
10849 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000010850 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010851 }, {
10852 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010853 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010854 }
10855 },
Sean Nelson35727f72010-01-28 23:55:12 +000010856 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010857 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010858 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010859 },
10860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010861 {
Sean Nelson35727f72010-01-28 23:55:12 +000010862 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010863 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010864 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010865 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010866 .manufacture_id = ST_ID,
10867 .model_id = ST_M29F400BB,
10868 .total_size = 512,
10869 .page_size = 64 * 1024,
10870 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010871 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010872 .probe = probe_m29f400bt,
10873 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
10874 .block_erasers =
10875 {
10876 {
10877 .eraseblocks = {
10878 {16 * 1024, 1},
10879 {8 * 1024, 2},
10880 {32 * 1024, 1},
10881 {64 * 1024, 7},
10882 },
10883 .block_erase = block_erase_m29f400bt,
10884 }, {
10885 .eraseblocks = { {512 * 1024, 1} },
10886 .block_erase = block_erase_chip_m29f400bt,
10887 }
10888 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010889 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010891 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010892 },
10893 {
10894 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
10895 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010896 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010897 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010898 .manufacture_id = ST_ID,
10899 .model_id = ST_M29F400BT,
10900 .total_size = 512,
10901 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010902 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010903 .tested = TEST_UNTESTED,
10904 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010905 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010906 .block_erasers =
10907 {
10908 {
10909 .eraseblocks = {
10910 {64 * 1024, 7},
10911 {32 * 1024, 1},
10912 {8 * 1024, 2},
10913 {16 * 1024, 1},
10914 },
10915 .block_erase = block_erase_m29f400bt,
10916 }, {
10917 .eraseblocks = { {512 * 1024, 1} },
10918 .block_erase = block_erase_chip_m29f400bt,
10919 }
10920 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010921 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010923 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010924 },
10925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010926 {
10927 .vendor = "ST",
10928 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010929 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010930 .manufacture_id = ST_ID,
10931 .model_id = ST_M29W010B,
10932 .total_size = 128,
10933 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010934 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010935 .tested = TEST_UNTESTED,
10936 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010937 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010938 .block_erasers =
10939 {
10940 {
10941 .eraseblocks = { {16 * 1024, 8}, },
10942 .block_erase = erase_sector_jedec,
10943 }, {
10944 .eraseblocks = { {128 * 1024, 1} },
10945 .block_erase = erase_chip_block_jedec,
10946 }
10947 },
Sean Nelson35727f72010-01-28 23:55:12 +000010948 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010949 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010950 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010951 },
10952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010953 {
10954 .vendor = "ST",
10955 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010956 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010957 .manufacture_id = ST_ID,
10958 .model_id = ST_M29W040B,
10959 .total_size = 512,
10960 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010961 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010962 .tested = TEST_UNTESTED,
10963 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010964 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010965 .block_erasers =
10966 {
10967 {
10968 .eraseblocks = { {64 * 1024, 8}, },
10969 .block_erase = erase_sector_jedec,
10970 }, {
10971 .eraseblocks = { {512 * 1024, 1} },
10972 .block_erase = erase_chip_block_jedec,
10973 }
10974 },
Sean Nelson35727f72010-01-28 23:55:12 +000010975 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010977 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010978 },
10979
Stefan Taunereb582572012-09-21 12:52:50 +000010980 {
10981 .vendor = "ST",
10982 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010983 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010984 .manufacture_id = ST_ID,
10985 .model_id = ST_M29W512B,
10986 .total_size = 64,
10987 .page_size = 64 * 1024,
10988 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010989 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000010990 .probe = probe_jedec,
10991 .probe_timing = TIMING_ZERO,
10992 .block_erasers =
10993 {
10994 {
10995 .eraseblocks = { {64 * 1024, 1} },
10996 .block_erase = erase_chip_block_jedec,
10997 }
10998 },
10999 .write = write_jedec_1,
11000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011001 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011002 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011003
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011004 {
11005 .vendor = "ST",
11006 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011007 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011008 .manufacture_id = ST_ID,
11009 .model_id = ST_M50FLW040A,
11010 .total_size = 512,
11011 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011012 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011013 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011014 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011015 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011016 .block_erasers =
11017 {
11018 {
Sean Nelson329bde72010-01-19 16:39:19 +000011019 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011020 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011021 {64 * 1024, 5}, /* block */
11022 {4 * 1024, 16}, /* sector */
11023 {4 * 1024, 16}, /* sector */
11024 },
11025 .block_erase = NULL,
11026 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011027 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011028 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011029 }
11030 },
Sean Nelson28accc22010-03-19 18:47:06 +000011031 .unlock = unlock_stm50flw0x0x,
11032 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011034 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011035 },
11036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011037 {
11038 .vendor = "ST",
11039 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011040 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011041 .manufacture_id = ST_ID,
11042 .model_id = ST_M50FLW040B,
11043 .total_size = 512,
11044 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011045 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011046 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011047 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011048 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011049 .block_erasers =
11050 {
11051 {
Sean Nelson329bde72010-01-19 16:39:19 +000011052 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011053 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011054 {4 * 1024, 16}, /* sector */
11055 {64 * 1024, 5}, /* block */
11056 {4 * 1024, 16}, /* sector */
11057 },
11058 .block_erase = NULL,
11059 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011060 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011061 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011062 }
11063 },
Sean Nelson28accc22010-03-19 18:47:06 +000011064 .unlock = unlock_stm50flw0x0x,
11065 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011067 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011068 },
11069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011070 {
11071 .vendor = "ST",
11072 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011073 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011074 .manufacture_id = ST_ID,
11075 .model_id = ST_M50FLW080A,
11076 .total_size = 1024,
11077 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011078 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011079 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011080 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011081 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011082 .block_erasers =
11083 {
11084 {
Sean Nelson329bde72010-01-19 16:39:19 +000011085 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011086 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011087 {64 * 1024, 13}, /* block */
11088 {4 * 1024, 16}, /* sector */
11089 {4 * 1024, 16}, /* sector */
11090 },
11091 .block_erase = NULL,
11092 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011093 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011094 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011095 }
11096 },
Sean Nelson28accc22010-03-19 18:47:06 +000011097 .unlock = unlock_stm50flw0x0x,
11098 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011099 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011100 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011101 },
11102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011103 {
11104 .vendor = "ST",
11105 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011106 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011107 .manufacture_id = ST_ID,
11108 .model_id = ST_M50FLW080B,
11109 .total_size = 1024,
11110 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011111 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011112 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011113 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011114 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011115 .block_erasers =
11116 {
11117 {
Sean Nelson329bde72010-01-19 16:39:19 +000011118 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011119 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011120 {4 * 1024, 16}, /* sector */
11121 {64 * 1024, 13}, /* block */
11122 {4 * 1024, 16}, /* sector */
11123 },
11124 .block_erase = NULL,
11125 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011126 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011127 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011128 }
11129 },
Sean Nelson28accc22010-03-19 18:47:06 +000011130 .unlock = unlock_stm50flw0x0x,
11131 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011133 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011134 },
11135
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011136 {
11137 .vendor = "ST",
11138 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011139 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011140 .manufacture_id = ST_ID,
11141 .model_id = ST_M50FW002,
11142 .total_size = 256,
11143 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011144 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011145 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011146 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011147 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011148 .block_erasers =
11149 {
11150 {
11151 .eraseblocks = {
11152 {64 * 1024, 3},
11153 {32 * 1024, 1},
11154 {8 * 1024, 2},
11155 {16 * 1024, 1},
11156 },
Sean Nelson28accc22010-03-19 18:47:06 +000011157 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011158 }
11159 },
Sean Nelson28accc22010-03-19 18:47:06 +000011160 .unlock = unlock_stm50flw0x0x,
11161 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011163 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011164 },
11165
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011166 {
11167 .vendor = "ST",
11168 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011169 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011170 .manufacture_id = ST_ID,
11171 .model_id = ST_M50FW016,
11172 .total_size = 2048,
11173 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011174 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011175 .tested = TEST_UNTESTED,
11176 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011177 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011178 .block_erasers =
11179 {
11180 {
11181 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011182 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011183 }
11184 },
Sean Nelson28accc22010-03-19 18:47:06 +000011185 .unlock = unlock_stm50flw0x0x,
11186 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011188 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011189 },
11190
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011191 {
11192 .vendor = "ST",
11193 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011194 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011195 .manufacture_id = ST_ID,
11196 .model_id = ST_M50FW040,
11197 .total_size = 512,
11198 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011199 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011200 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011201 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011202 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011203 .block_erasers =
11204 {
11205 {
11206 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011207 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011208 }
11209 },
Sean Nelson28accc22010-03-19 18:47:06 +000011210 .unlock = unlock_stm50flw0x0x,
11211 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011213 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011214 },
11215
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011216 {
11217 .vendor = "ST",
11218 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011219 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011220 .manufacture_id = ST_ID,
11221 .model_id = ST_M50FW080,
11222 .total_size = 1024,
11223 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011224 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011225 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011226 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011227 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011228 .block_erasers =
11229 {
11230 {
11231 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011232 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011233 }
11234 },
Sean Nelson28accc22010-03-19 18:47:06 +000011235 .unlock = unlock_stm50flw0x0x,
11236 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011238 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011239 },
11240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011241 {
11242 .vendor = "ST",
11243 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011244 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011245 .manufacture_id = ST_ID,
11246 .model_id = ST_M50LPW116,
11247 .total_size = 2048,
11248 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011249 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011250 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011251 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011252 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011253 .block_erasers =
11254 {
11255 {
11256 .eraseblocks = {
11257 {4 * 1024, 16},
11258 {64 * 1024, 30},
11259 {32 * 1024, 1},
11260 {8 * 1024, 2},
11261 {16 * 1024, 1},
11262 },
Sean Nelson28accc22010-03-19 18:47:06 +000011263 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011264 }
11265 },
Sean Nelson28accc22010-03-19 18:47:06 +000011266 .unlock = unlock_stm50flw0x0x,
11267 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011268 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011269 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011270 },
11271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011272 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011273 .vendor = "SyncMOS/MoselVitelic",
11274 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011275 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011276 .manufacture_id = SYNCMOS_MVC_ID,
11277 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011278 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011279 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011280 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011281 .tested = TEST_UNTESTED,
11282 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011283 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011284 .block_erasers =
11285 {
11286 {
11287 .eraseblocks = { {512, 256} },
11288 .block_erase = erase_sector_jedec,
11289 }, {
11290 .eraseblocks = { {128 * 1024, 1} },
11291 .block_erase = erase_chip_block_jedec,
11292 },
11293 },
Sean Nelson35727f72010-01-28 23:55:12 +000011294 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011296 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011297 },
11298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011299 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011300 .vendor = "SyncMOS/MoselVitelic",
11301 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011302 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011303 .manufacture_id = SYNCMOS_MVC_ID,
11304 .model_id = SM_MVC_29C51001T,
11305 .total_size = 128,
11306 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011307 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011308 .tested = TEST_UNTESTED,
11309 .probe = probe_jedec,
11310 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11311 .block_erasers =
11312 {
11313 {
11314 .eraseblocks = { {512, 256} },
11315 .block_erase = erase_sector_jedec,
11316 }, {
11317 .eraseblocks = { {128 * 1024, 1} },
11318 .block_erase = erase_chip_block_jedec,
11319 },
11320 },
11321 .write = write_jedec_1,
11322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011323 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011324 },
11325
11326 {
11327 .vendor = "SyncMOS/MoselVitelic",
11328 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011329 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011330 .manufacture_id = SYNCMOS_MVC_ID,
11331 .model_id = SM_MVC_29C51002B,
11332 .total_size = 256,
11333 .page_size = 512,
11334 .feature_bits = FEATURE_EITHER_RESET,
11335 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011336 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011337 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011338 .block_erasers =
11339 {
11340 {
11341 .eraseblocks = { {512, 512} },
11342 .block_erase = erase_sector_jedec,
11343 }, {
11344 .eraseblocks = { {256 * 1024, 1} },
11345 .block_erase = erase_chip_block_jedec,
11346 },
11347 },
Sean Nelson35727f72010-01-28 23:55:12 +000011348 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011349 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011350 },
11351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011352 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011353 .vendor = "SyncMOS/MoselVitelic",
11354 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011355 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011356 .manufacture_id = SYNCMOS_MVC_ID,
11357 .model_id = SM_MVC_29C51002T,
11358 .total_size = 256,
11359 .page_size = 512,
11360 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011361 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011362 .probe = probe_jedec,
11363 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11364 .block_erasers =
11365 {
11366 {
11367 .eraseblocks = { {512, 512} },
11368 .block_erase = erase_sector_jedec,
11369 }, {
11370 .eraseblocks = { {256 * 1024, 1} },
11371 .block_erase = erase_chip_block_jedec,
11372 },
11373 },
11374 .write = write_jedec_1,
11375 .read = read_memmapped,
11376 },
11377
11378 {
11379 .vendor = "SyncMOS/MoselVitelic",
11380 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011381 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011382 .manufacture_id = SYNCMOS_MVC_ID,
11383 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011384 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011385 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011386 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011387 .tested = TEST_UNTESTED,
11388 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011389 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011390 .block_erasers =
11391 {
11392 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011393 .eraseblocks = { {1024, 512} },
11394 .block_erase = erase_sector_jedec,
11395 }, {
11396 .eraseblocks = { {512 * 1024, 1} },
11397 .block_erase = erase_chip_block_jedec,
11398 },
11399 },
11400 .write = write_jedec_1,
11401 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011402 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011403 },
11404
11405 {
11406 .vendor = "SyncMOS/MoselVitelic",
11407 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011408 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011409 .manufacture_id = SYNCMOS_MVC_ID,
11410 .model_id = SM_MVC_29C51004T,
11411 .total_size = 512,
11412 .page_size = 1024,
11413 .feature_bits = FEATURE_EITHER_RESET,
11414 .tested = TEST_UNTESTED,
11415 .probe = probe_jedec,
11416 .probe_timing = TIMING_ZERO,
11417 .block_erasers =
11418 {
11419 {
11420 .eraseblocks = { {1024, 512} },
11421 .block_erase = erase_sector_jedec,
11422 }, {
11423 .eraseblocks = { {512 * 1024, 1} },
11424 .block_erase = erase_chip_block_jedec,
11425 },
11426 },
11427 .write = write_jedec_1,
11428 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011429 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011430 },
11431
11432 {
11433 .vendor = "SyncMOS/MoselVitelic",
11434 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011435 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011436 .manufacture_id = SYNCMOS_MVC_ID,
11437 .model_id = SM_MVC_29C31004B,
11438 .total_size = 512,
11439 .page_size = 1024,
11440 .feature_bits = FEATURE_EITHER_RESET,
11441 .tested = TEST_UNTESTED,
11442 .probe = probe_jedec,
11443 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11444 .block_erasers =
11445 {
11446 {
11447 .eraseblocks = { {1024, 512} },
11448 .block_erase = erase_sector_jedec,
11449 }, {
11450 .eraseblocks = { {512 * 1024, 1} },
11451 .block_erase = erase_chip_block_jedec,
11452 },
11453 },
11454 .write = write_jedec_1,
11455 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011456 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011457 },
11458
11459 {
11460 .vendor = "SyncMOS/MoselVitelic",
11461 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011462 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011463 .manufacture_id = SYNCMOS_MVC_ID,
11464 .model_id = SM_MVC_29C31004T,
11465 .total_size = 512,
11466 .page_size = 1024,
11467 .feature_bits = FEATURE_EITHER_RESET,
11468 .tested = TEST_UNTESTED,
11469 .probe = probe_jedec,
11470 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11471 .block_erasers =
11472 {
11473 {
11474 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011475 .block_erase = erase_sector_jedec,
11476 }, {
11477 .eraseblocks = { {512 * 1024, 1} },
11478 .block_erase = erase_chip_block_jedec,
11479 },
11480 },
Sean Nelson35727f72010-01-28 23:55:12 +000011481 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011482 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011483 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011484 },
11485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011487 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011488 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011489 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011490 .manufacture_id = TI_OLD_ID,
11491 .model_id = TI_TMS29F002RB,
11492 .total_size = 256,
11493 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011495 .tested = TEST_UNTESTED,
11496 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011497 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011498 .block_erasers =
11499 {
11500 {
11501 .eraseblocks = {
11502 {16 * 1024, 1},
11503 {8 * 1024, 2},
11504 {32 * 1024, 1},
11505 {64 * 1024, 3},
11506 },
11507 .block_erase = erase_sector_jedec,
11508 }, {
11509 .eraseblocks = { {256 * 1024, 1} },
11510 .block_erase = erase_chip_block_jedec,
11511 },
11512 },
Sean Nelson35727f72010-01-28 23:55:12 +000011513 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011514 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011515 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011516 },
11517
11518 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011519 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011520 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011521 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011522 .manufacture_id = TI_OLD_ID,
11523 .model_id = TI_TMS29F002RT,
11524 .total_size = 256,
11525 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011526 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011527 .tested = TEST_UNTESTED,
11528 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011530 .block_erasers =
11531 {
11532 {
11533 .eraseblocks = {
11534 {64 * 1024, 3},
11535 {32 * 1024, 1},
11536 {8 * 1024, 2},
11537 {16 * 1024, 1},
11538 },
11539 .block_erase = erase_sector_jedec,
11540 }, {
11541 .eraseblocks = { {256 * 1024, 1} },
11542 .block_erase = erase_chip_block_jedec,
11543 },
11544 },
Sean Nelson35727f72010-01-28 23:55:12 +000011545 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011547 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011548 },
11549
11550 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011551 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011552 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011553 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011554 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011555 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011556 .total_size = 1024,
11557 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011558 /* supports SFDP */
11559 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011560 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011561 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011562 .probe = probe_spi_rdid,
11563 .probe_timing = TIMING_ZERO,
11564 .block_erasers =
11565 {
11566 {
11567 .eraseblocks = { {4 * 1024, 256} },
11568 .block_erase = spi_block_erase_20,
11569 }, {
11570 .eraseblocks = { {32 * 1024, 32} },
11571 .block_erase = spi_block_erase_52,
11572 }, {
11573 .eraseblocks = { {64 * 1024, 16} },
11574 .block_erase = spi_block_erase_d8,
11575 }, {
11576 .eraseblocks = { {1024 * 1024, 1} },
11577 .block_erase = spi_block_erase_60,
11578 }, {
11579 .eraseblocks = { {1024 * 1024, 1} },
11580 .block_erase = spi_block_erase_c7,
11581 }
11582 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011583 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011584 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011585 .write = spi_chip_write_256,
11586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011587 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011588 },
11589
11590 {
11591 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011592 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011593 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011594 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011595 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011596 .total_size = 2048,
11597 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011598 /* supports SFDP */
11599 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011601 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011602 .probe = probe_spi_rdid,
11603 .probe_timing = TIMING_ZERO,
11604 .block_erasers =
11605 {
11606 {
11607 .eraseblocks = { {4 * 1024, 512} },
11608 .block_erase = spi_block_erase_20,
11609 }, {
11610 .eraseblocks = { {32 * 1024, 64} },
11611 .block_erase = spi_block_erase_52,
11612 }, {
11613 .eraseblocks = { {64 * 1024, 32} },
11614 .block_erase = spi_block_erase_d8,
11615 }, {
11616 .eraseblocks = { {2 * 1024 * 1024, 1} },
11617 .block_erase = spi_block_erase_60,
11618 }, {
11619 .eraseblocks = { {2 * 1024 * 1024, 1} },
11620 .block_erase = spi_block_erase_c7,
11621 }
11622 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011623 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011624 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011625 .write = spi_chip_write_256,
11626 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011627 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011628 },
11629
11630 {
11631 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011632 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011633 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011634 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011635 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011636 .total_size = 4096,
11637 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011638 /* supports SFDP */
11639 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011641 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011642 .probe = probe_spi_rdid,
11643 .probe_timing = TIMING_ZERO,
11644 .block_erasers =
11645 {
11646 {
11647 .eraseblocks = { {4 * 1024, 1024} },
11648 .block_erase = spi_block_erase_20,
11649 }, {
11650 .eraseblocks = { {32 * 1024, 128} },
11651 .block_erase = spi_block_erase_52,
11652 }, {
11653 .eraseblocks = { {64 * 1024, 64} },
11654 .block_erase = spi_block_erase_d8,
11655 }, {
11656 .eraseblocks = { {4 * 1024 * 1024, 1} },
11657 .block_erase = spi_block_erase_60,
11658 }, {
11659 .eraseblocks = { {4 * 1024 * 1024, 1} },
11660 .block_erase = spi_block_erase_c7,
11661 }
11662 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011663 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011664 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011665 .write = spi_chip_write_256,
11666 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011667 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011668 },
11669
11670 {
11671 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011672 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011673 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000011674 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011675 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000011676 .total_size = 8192,
11677 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011678 /* supports SFDP */
11679 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011681 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000011682 .probe = probe_spi_rdid,
11683 .probe_timing = TIMING_ZERO,
11684 .block_erasers =
11685 {
11686 {
11687 .eraseblocks = { {4 * 1024, 2048} },
11688 .block_erase = spi_block_erase_20,
11689 }, {
11690 .eraseblocks = { {32 * 1024, 256} },
11691 .block_erase = spi_block_erase_52,
11692 }, {
11693 .eraseblocks = { {64 * 1024, 128} },
11694 .block_erase = spi_block_erase_d8,
11695 }, {
11696 .eraseblocks = { {8 * 1024 * 1024, 1} },
11697 .block_erase = spi_block_erase_60,
11698 }, {
11699 .eraseblocks = { {8 * 1024 * 1024, 1} },
11700 .block_erase = spi_block_erase_c7,
11701 }
11702 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011703 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011704 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000011705 .write = spi_chip_write_256,
11706 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011707 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000011708 },
11709
11710 {
11711 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011712 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011713 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011714 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011715 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011716 .total_size = 16384,
11717 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011718 /* supports SFDP */
11719 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011720 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011721 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011722 .probe = probe_spi_rdid,
11723 .probe_timing = TIMING_ZERO,
11724 .block_erasers =
11725 {
11726 {
11727 .eraseblocks = { {4 * 1024, 4096} },
11728 .block_erase = spi_block_erase_20,
11729 }, {
11730 .eraseblocks = { {32 * 1024, 512} },
11731 .block_erase = spi_block_erase_52,
11732 }, {
11733 .eraseblocks = { {64 * 1024, 256} },
11734 .block_erase = spi_block_erase_d8,
11735 }, {
11736 .eraseblocks = { {16 * 1024 * 1024, 1} },
11737 .block_erase = spi_block_erase_60,
11738 }, {
11739 .eraseblocks = { {16 * 1024 * 1024, 1} },
11740 .block_erase = spi_block_erase_c7,
11741 }
11742 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011743 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011744 .unlock = spi_disable_blockprotect,
11745 .write = spi_chip_write_256,
11746 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011747 .voltage = {2700, 3600},
11748 },
11749
11750 {
11751 .vendor = "Winbond",
11752 .name = "W25Q20.W",
11753 .bustype = BUS_SPI,
11754 .manufacture_id = WINBOND_NEX_ID,
11755 .model_id = WINBOND_NEX_W25Q20_W,
11756 .total_size = 256,
11757 .page_size = 256,
11758 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11760 .tested = TEST_UNTESTED,
11761 .probe = probe_spi_rdid,
11762 .probe_timing = TIMING_ZERO,
11763 .block_erasers =
11764 {
11765 {
11766 .eraseblocks = { {4 * 1024, 64} },
11767 .block_erase = spi_block_erase_20,
11768 }, {
11769 .eraseblocks = { {32 * 1024, 8} },
11770 .block_erase = spi_block_erase_52,
11771 }, {
11772 .eraseblocks = { {64 * 1024, 4} },
11773 .block_erase = spi_block_erase_d8,
11774 }, {
11775 .eraseblocks = { {256 * 1024, 1} },
11776 .block_erase = spi_block_erase_60,
11777 }, {
11778 .eraseblocks = { {256 * 1024, 1} },
11779 .block_erase = spi_block_erase_c7,
11780 }
11781 },
11782 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11783 .unlock = spi_disable_blockprotect,
11784 .write = spi_chip_write_256,
11785 .read = spi_chip_read,
11786 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11787 },
11788
11789 {
11790 .vendor = "Winbond",
11791 .name = "W25Q40.W",
11792 .bustype = BUS_SPI,
11793 .manufacture_id = WINBOND_NEX_ID,
11794 .model_id = WINBOND_NEX_W25Q40_W,
11795 .total_size = 512,
11796 .page_size = 256,
11797 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11799 .tested = TEST_UNTESTED,
11800 .probe = probe_spi_rdid,
11801 .probe_timing = TIMING_ZERO,
11802 .block_erasers =
11803 {
11804 {
11805 .eraseblocks = { {4 * 1024, 128} },
11806 .block_erase = spi_block_erase_20,
11807 }, {
11808 .eraseblocks = { {32 * 1024, 16} },
11809 .block_erase = spi_block_erase_52,
11810 }, {
11811 .eraseblocks = { {64 * 1024, 8} },
11812 .block_erase = spi_block_erase_d8,
11813 }, {
11814 .eraseblocks = { {512 * 1024, 1} },
11815 .block_erase = spi_block_erase_60,
11816 }, {
11817 .eraseblocks = { {512 * 1024, 1} },
11818 .block_erase = spi_block_erase_c7,
11819 }
11820 },
11821 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11822 .unlock = spi_disable_blockprotect,
11823 .write = spi_chip_write_256,
11824 .read = spi_chip_read,
11825 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11826 },
11827
11828 {
11829 .vendor = "Winbond",
11830 .name = "W25Q80.W",
11831 .bustype = BUS_SPI,
11832 .manufacture_id = WINBOND_NEX_ID,
11833 .model_id = WINBOND_NEX_W25Q80_W,
11834 .total_size = 1024,
11835 .page_size = 256,
11836 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11838 .tested = TEST_UNTESTED,
11839 .probe = probe_spi_rdid,
11840 .probe_timing = TIMING_ZERO,
11841 .block_erasers =
11842 {
11843 {
11844 .eraseblocks = { {4 * 1024, 256} },
11845 .block_erase = spi_block_erase_20,
11846 }, {
11847 .eraseblocks = { {32 * 1024, 32} },
11848 .block_erase = spi_block_erase_52,
11849 }, {
11850 .eraseblocks = { {64 * 1024, 16} },
11851 .block_erase = spi_block_erase_d8,
11852 }, {
11853 .eraseblocks = { {1 * 1024 * 1024, 1} },
11854 .block_erase = spi_block_erase_60,
11855 }, {
11856 .eraseblocks = { {1 * 1024 * 1024, 1} },
11857 .block_erase = spi_block_erase_c7,
11858 }
11859 },
11860 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11861 .unlock = spi_disable_blockprotect,
11862 .write = spi_chip_write_256,
11863 .read = spi_chip_read,
11864 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11865 },
11866
11867 {
11868 .vendor = "Winbond",
11869 .name = "W25Q16.W",
11870 .bustype = BUS_SPI,
11871 .manufacture_id = WINBOND_NEX_ID,
11872 .model_id = WINBOND_NEX_W25Q16_W,
11873 .total_size = 2048,
11874 .page_size = 256,
11875 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11876 /* QPI enable 0x38, disable 0xFF */
11877 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11878 .tested = TEST_UNTESTED,
11879 .probe = probe_spi_rdid,
11880 .probe_timing = TIMING_ZERO,
11881 .block_erasers =
11882 {
11883 {
11884 .eraseblocks = { {4 * 1024, 512} },
11885 .block_erase = spi_block_erase_20,
11886 }, {
11887 .eraseblocks = { {32 * 1024, 64} },
11888 .block_erase = spi_block_erase_52,
11889 }, {
11890 .eraseblocks = { {64 * 1024, 32} },
11891 .block_erase = spi_block_erase_d8,
11892 }, {
11893 .eraseblocks = { {2 * 1024 * 1024, 1} },
11894 .block_erase = spi_block_erase_60,
11895 }, {
11896 .eraseblocks = { {2 * 1024 * 1024, 1} },
11897 .block_erase = spi_block_erase_c7,
11898 }
11899 },
11900 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11901 .unlock = spi_disable_blockprotect,
11902 .write = spi_chip_write_256,
11903 .read = spi_chip_read,
11904 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11905 },
11906
11907 {
11908 .vendor = "Winbond",
11909 .name = "W25Q32.W",
11910 .bustype = BUS_SPI,
11911 .manufacture_id = WINBOND_NEX_ID,
11912 .model_id = WINBOND_NEX_W25Q32_W,
11913 .total_size = 4096,
11914 .page_size = 256,
11915 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11916 /* QPI enable 0x38, disable 0xFF */
11917 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11918 .tested = TEST_OK_PREW,
11919 .probe = probe_spi_rdid,
11920 .probe_timing = TIMING_ZERO,
11921 .block_erasers =
11922 {
11923 {
11924 .eraseblocks = { {4 * 1024, 1024} },
11925 .block_erase = spi_block_erase_20,
11926 }, {
11927 .eraseblocks = { {32 * 1024, 128} },
11928 .block_erase = spi_block_erase_52,
11929 }, {
11930 .eraseblocks = { {64 * 1024, 64} },
11931 .block_erase = spi_block_erase_d8,
11932 }, {
11933 .eraseblocks = { {4 * 1024 * 1024, 1} },
11934 .block_erase = spi_block_erase_60,
11935 }, {
11936 .eraseblocks = { {4 * 1024 * 1024, 1} },
11937 .block_erase = spi_block_erase_c7,
11938 }
11939 },
11940 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11941 .unlock = spi_disable_blockprotect,
11942 .write = spi_chip_write_256,
11943 .read = spi_chip_read,
11944 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11945 },
11946
11947 {
11948 .vendor = "Winbond",
11949 .name = "W25Q64.W",
11950 .bustype = BUS_SPI,
11951 .manufacture_id = WINBOND_NEX_ID,
11952 .model_id = WINBOND_NEX_W25Q64_W,
11953 .total_size = 8192,
11954 .page_size = 256,
11955 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11956 /* QPI enable 0x38, disable 0xFF */
11957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011958 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011959 .probe = probe_spi_rdid,
11960 .probe_timing = TIMING_ZERO,
11961 .block_erasers =
11962 {
11963 {
11964 .eraseblocks = { {4 * 1024, 2048} },
11965 .block_erase = spi_block_erase_20,
11966 }, {
11967 .eraseblocks = { {32 * 1024, 256} },
11968 .block_erase = spi_block_erase_52,
11969 }, {
11970 .eraseblocks = { {64 * 1024, 128} },
11971 .block_erase = spi_block_erase_d8,
11972 }, {
11973 .eraseblocks = { {8 * 1024 * 1024, 1} },
11974 .block_erase = spi_block_erase_60,
11975 }, {
11976 .eraseblocks = { {8 * 1024 * 1024, 1} },
11977 .block_erase = spi_block_erase_c7,
11978 }
11979 },
11980 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11981 .unlock = spi_disable_blockprotect,
11982 .write = spi_chip_write_256,
11983 .read = spi_chip_read,
11984 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011985 },
11986
11987 {
11988 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011989 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011990 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011991 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011992 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011993 .total_size = 128,
11994 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011995 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011996 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011997 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011998 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011999 .block_erasers =
12000 {
12001 {
12002 .eraseblocks = { {4 * 1024, 32} },
12003 .block_erase = spi_block_erase_20,
12004 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012005 .eraseblocks = { {64 * 1024, 2} },
12006 .block_erase = spi_block_erase_d8,
12007 }, {
12008 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012009 .block_erase = spi_block_erase_c7,
12010 }
12011 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012012 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012013 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012017 },
12018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012019 {
12020 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012021 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012023 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012024 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012025 .total_size = 256,
12026 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012027 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012030 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012031 .block_erasers =
12032 {
12033 {
12034 .eraseblocks = { {4 * 1024, 64} },
12035 .block_erase = spi_block_erase_20,
12036 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012037 .eraseblocks = { {64 * 1024, 4} },
12038 .block_erase = spi_block_erase_d8,
12039 }, {
12040 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012041 .block_erase = spi_block_erase_c7,
12042 }
12043 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012044 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012045 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012046 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012047 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012048 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012049 },
12050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012051 {
12052 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012053 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012055 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012056 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012057 .total_size = 512,
12058 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012059 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012062 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012063 .block_erasers =
12064 {
12065 {
12066 .eraseblocks = { {4 * 1024, 128} },
12067 .block_erase = spi_block_erase_20,
12068 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012069 .eraseblocks = { {64 * 1024, 8} },
12070 .block_erase = spi_block_erase_d8,
12071 }, {
12072 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012073 .block_erase = spi_block_erase_c7,
12074 }
12075 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012076 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012077 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012078 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012079 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012080 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012081 },
12082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012083 {
12084 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012085 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012086 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012087 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012088 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012089 .total_size = 1024,
12090 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012091 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012092 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012093 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012094 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012095 .block_erasers =
12096 {
12097 {
12098 .eraseblocks = { {4 * 1024, 256} },
12099 .block_erase = spi_block_erase_20,
12100 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012101 .eraseblocks = { {64 * 1024, 16} },
12102 .block_erase = spi_block_erase_d8,
12103 }, {
12104 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012105 .block_erase = spi_block_erase_c7,
12106 }
12107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012110 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012112 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012113 },
12114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012115 {
12116 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012117 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012118 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012119 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012120 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012121 .total_size = 2048,
12122 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012123 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012124 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012125 .probe = probe_spi_rdid,
12126 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012127 .block_erasers =
12128 {
12129 {
12130 .eraseblocks = { {4 * 1024, 512} },
12131 .block_erase = spi_block_erase_20,
12132 }, {
12133 .eraseblocks = { {32 * 1024, 64} },
12134 .block_erase = spi_block_erase_52,
12135 }, {
12136 .eraseblocks = { {64 * 1024, 32} },
12137 .block_erase = spi_block_erase_d8,
12138 }, {
12139 .eraseblocks = { {2 * 1024 * 1024, 1} },
12140 .block_erase = spi_block_erase_60,
12141 }, {
12142 .eraseblocks = { {2 * 1024 * 1024, 1} },
12143 .block_erase = spi_block_erase_c7,
12144 }
12145 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012146 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012147 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012148 .write = spi_chip_write_256,
12149 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012150 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012151 },
12152
12153 {
12154 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012155 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012156 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012157 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012158 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012159 .total_size = 4096,
12160 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012161 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000012162 .tested = TEST_OK_PROBE,
12163 .probe = probe_spi_rdid,
12164 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012165 .block_erasers =
12166 {
12167 {
12168 .eraseblocks = { {4 * 1024, 1024} },
12169 .block_erase = spi_block_erase_20,
12170 }, {
12171 .eraseblocks = { {32 * 1024, 128} },
12172 .block_erase = spi_block_erase_52,
12173 }, {
12174 .eraseblocks = { {64 * 1024, 64} },
12175 .block_erase = spi_block_erase_d8,
12176 }, {
12177 .eraseblocks = { {4 * 1024 * 1024, 1} },
12178 .block_erase = spi_block_erase_60,
12179 }, {
12180 .eraseblocks = { {4 * 1024 * 1024, 1} },
12181 .block_erase = spi_block_erase_c7,
12182 }
12183 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012184 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012185 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012186 .write = spi_chip_write_256,
12187 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012188 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012189 },
12190
12191 {
12192 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012193 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012194 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012195 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012196 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012197 .total_size = 8192,
12198 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012199 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012200 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012201 .probe = probe_spi_rdid,
12202 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012203 .block_erasers =
12204 {
12205 {
12206 .eraseblocks = { {4 * 1024, 2048} },
12207 .block_erase = spi_block_erase_20,
12208 }, {
12209 .eraseblocks = { {32 * 1024, 256} },
12210 .block_erase = spi_block_erase_52,
12211 }, {
12212 .eraseblocks = { {64 * 1024, 128} },
12213 .block_erase = spi_block_erase_d8,
12214 }, {
12215 .eraseblocks = { {8 * 1024 * 1024, 1} },
12216 .block_erase = spi_block_erase_60,
12217 }, {
12218 .eraseblocks = { {8 * 1024 * 1024, 1} },
12219 .block_erase = spi_block_erase_c7,
12220 }
12221 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012222 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012223 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012224 .write = spi_chip_write_256,
12225 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012226 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012227 },
12228
12229 {
12230 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012231 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012232 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012233 .manufacture_id = WINBOND_ID,
12234 .model_id = WINBOND_W29C010,
12235 .total_size = 128,
12236 .page_size = 128,
12237 .feature_bits = FEATURE_LONG_RESET,
12238 .tested = TEST_OK_PRE,
12239 .probe = probe_w29ee011,
12240 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12241 .block_erasers =
12242 {
12243 {
12244 .eraseblocks = { {128 * 1024, 1} },
12245 .block_erase = erase_chip_block_jedec,
12246 }
12247 },
12248 .write = write_jedec,
12249 .read = read_memmapped,
12250 },
12251
12252 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12253 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012254 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012255 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012256 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012257 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012258 .total_size = 128,
12259 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012260 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012261 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012262 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012263 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012264 .block_erasers =
12265 {
12266 {
12267 .eraseblocks = { {128 * 1024, 1} },
12268 .block_erase = erase_chip_block_jedec,
12269 }
12270 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012271 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012272 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012273 },
12274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012275 {
12276 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012277 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012278 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012279 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012280 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012281 .total_size = 256,
12282 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012283 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012284 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012285 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012286 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012287 .block_erasers =
12288 {
12289 {
12290 .eraseblocks = { {256 * 1024, 1} },
12291 .block_erase = erase_chip_block_jedec,
12292 }
12293 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012294 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012296 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012297 },
12298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012299 {
12300 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012301 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012302 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012303 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012304 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012305 .total_size = 512,
12306 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012307 .feature_bits = FEATURE_LONG_RESET,
12308 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012309 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012310 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012311 .block_erasers =
12312 {
12313 {
12314 .eraseblocks = { {512 * 1024, 1} },
12315 .block_erase = erase_chip_block_jedec,
12316 }
12317 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012318 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012320 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012321 },
12322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012323 {
12324 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012325 .name = "W39F010",
12326 .bustype = BUS_PARALLEL,
12327 .manufacture_id = WINBOND_ID,
12328 .model_id = WINBOND_W39F010,
12329 .total_size = 128,
12330 .page_size = 4 * 1024,
12331 .feature_bits = FEATURE_EITHER_RESET,
12332 .tested = TEST_OK_PREW,
12333 .probe = probe_jedec,
12334 .probe_timing = 10,
12335 .block_erasers =
12336 {
12337 {
12338 .eraseblocks = { {4 * 1024, 32} },
12339 .block_erase = erase_block_jedec,
12340 }, {
12341 .eraseblocks = { {128 * 1024, 1} },
12342 .block_erase = erase_chip_block_jedec,
12343 }
12344 },
12345 .printlock = printlock_w39f010,
12346 .write = write_jedec_1,
12347 .read = read_memmapped,
12348 .voltage = {4500, 5500},
12349 },
12350
12351 {
12352 .vendor = "Winbond",
12353 .name = "W39L010",
12354 .bustype = BUS_PARALLEL,
12355 .manufacture_id = WINBOND_ID,
12356 .model_id = WINBOND_W39L010,
12357 .total_size = 128,
12358 .page_size = 4 * 1024,
12359 .feature_bits = FEATURE_EITHER_RESET,
12360 .tested = TEST_UNTESTED,
12361 .probe = probe_jedec,
12362 .probe_timing = 10,
12363 .block_erasers =
12364 {
12365 {
12366 .eraseblocks = { {4 * 1024, 32} },
12367 .block_erase = erase_block_jedec,
12368 }, {
12369 .eraseblocks = { {128 * 1024, 1} },
12370 .block_erase = erase_chip_block_jedec,
12371 }
12372 },
12373 .printlock = printlock_w39l010,
12374 .write = write_jedec_1,
12375 .read = read_memmapped,
12376 .voltage = {3000, 3600},
12377 },
12378
12379 {
12380 .vendor = "Winbond",
12381 .name = "W39L020",
12382 .bustype = BUS_PARALLEL,
12383 .manufacture_id = WINBOND_ID,
12384 .model_id = WINBOND_W39L020,
12385 .total_size = 256,
12386 .page_size = 4 * 1024,
12387 .feature_bits = FEATURE_EITHER_RESET,
12388 .tested = TEST_UNTESTED,
12389 .probe = probe_jedec,
12390 .probe_timing = 10,
12391 .block_erasers =
12392 {
12393 {
12394 .eraseblocks = { {4 * 1024, 64} },
12395 .block_erase = erase_block_jedec,
12396 }, {
12397 .eraseblocks = { {64 * 1024, 4} },
12398 .block_erase = erase_sector_jedec,
12399 }, {
12400 .eraseblocks = { {256 * 1024, 1} },
12401 .block_erase = erase_chip_block_jedec,
12402 }
12403 },
12404 .printlock = printlock_w39l020,
12405 .write = write_jedec_1,
12406 .read = read_memmapped,
12407 .voltage = {3000, 3600},
12408 },
12409
12410 {
12411 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012412 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012413 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012414 .manufacture_id = WINBOND_ID,
12415 .model_id = WINBOND_W39L040,
12416 .total_size = 512,
12417 .page_size = 64 * 1024,
12418 .feature_bits = FEATURE_EITHER_RESET,
12419 .tested = TEST_OK_PR,
12420 .probe = probe_jedec,
12421 .probe_timing = 10,
12422 .block_erasers =
12423 {
12424 {
12425 .eraseblocks = { {4 * 1024, 128} },
12426 .block_erase = erase_block_jedec,
12427 }, {
12428 .eraseblocks = { {64 * 1024, 8} },
12429 .block_erase = erase_sector_jedec,
12430 }, {
12431 .eraseblocks = { {512 * 1024, 1} },
12432 .block_erase = erase_chip_block_jedec,
12433 }
12434 },
12435 .printlock = printlock_w39l040,
12436 .write = write_jedec_1,
12437 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012438 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012439 },
12440
12441 {
12442 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012443 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012444 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012445 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012446 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012447 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012448 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012449 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012451 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012452 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012453 .block_erasers =
12454 {
12455 {
12456 .eraseblocks = { {64 * 1024, 8} },
12457 .block_erase = erase_sector_jedec,
12458 }, {
12459 .eraseblocks = { {512 * 1024, 1} },
12460 .block_erase = erase_chip_block_jedec,
12461 }
12462 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012463 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012464 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012465 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012466 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012467 },
12468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012469 {
12470 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012471 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012472 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012473 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012474 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012475 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012476 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012477 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012478 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012479 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012480 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012481 .block_erasers =
12482 {
12483 {
12484 .eraseblocks = { {64 * 1024, 8} },
12485 .block_erase = erase_sector_jedec,
12486 }, {
12487 .eraseblocks = { {512 * 1024, 1} },
12488 .block_erase = erase_chip_block_jedec,
12489 }
12490 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012491 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012492 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012493 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012494 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012495 },
12496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012497 {
12498 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012499 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012500 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012501 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012502 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012503 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012504 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012505 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012506 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012507 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012508 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012509 .block_erasers =
12510 {
12511 {
12512 .eraseblocks = { {64 * 1024, 8} },
12513 .block_erase = erase_sector_jedec,
12514 }, {
12515 .eraseblocks = { {512 * 1024, 1} },
12516 .block_erase = erase_chip_block_jedec,
12517 }
12518 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012519 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012520 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012522 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012523 },
12524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012525 {
12526 .vendor = "Winbond",
12527 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012528 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012529 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012530 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012531 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012532 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012533 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012534 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012535 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012536 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012537 .block_erasers =
12538 {
12539 {
12540 .eraseblocks = { {4 * 1024, 128} },
12541 .block_erase = erase_block_jedec,
12542 }, {
12543 .eraseblocks = { {64 * 1024, 8} },
12544 .block_erase = erase_sector_jedec,
12545 }, {
12546 .eraseblocks = { {512 * 1024, 1} },
12547 .block_erase = erase_chip_block_jedec,
12548 }
12549 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012550 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012551 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012552 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012553 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012554 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012555 },
12556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012557 {
12558 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012559 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012560 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012561 .manufacture_id = WINBOND_ID,
12562 .model_id = WINBOND_W39V040B,
12563 .total_size = 512,
12564 .page_size = 64 * 1024,
12565 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012566 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012567 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012568 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012569 .block_erasers =
12570 {
12571 {
12572 .eraseblocks = { {64 * 1024, 8} },
12573 .block_erase = erase_sector_jedec,
12574 }, {
12575 .eraseblocks = { {512 * 1024, 1} },
12576 .block_erase = erase_chip_block_jedec,
12577 }
12578 },
12579 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012580 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012581 .write = write_jedec_1,
12582 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012583 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012584 },
12585
12586 {
12587 .vendor = "Winbond",
12588 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012589 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012590 .manufacture_id = WINBOND_ID,
12591 .model_id = WINBOND_W39V040C,
12592 .total_size = 512,
12593 .page_size = 64 * 1024,
12594 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012595 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012596 .probe = probe_jedec,
12597 .probe_timing = 10,
12598 .block_erasers =
12599 {
12600 {
12601 .eraseblocks = { {64 * 1024, 8} },
12602 .block_erase = erase_sector_jedec,
12603 }, {
12604 .eraseblocks = { {512 * 1024, 1} },
12605 .block_erase = erase_chip_block_jedec,
12606 }
12607 },
12608 .printlock = printlock_w39v040fc,
12609 .write = write_jedec_1,
12610 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012611 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012612 },
12613
12614 {
12615 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012616 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012617 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012618 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012619 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012620 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012621 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012622 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012623 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012624 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012625 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012626 .block_erasers =
12627 {
12628 {
12629 .eraseblocks = { {64 * 1024, 16} },
12630 .block_erase = erase_sector_jedec,
12631 }, {
12632 .eraseblocks = { {1024 * 1024, 1} },
12633 .block_erase = erase_chip_block_jedec,
12634 }
12635 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012636 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012639 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012640 },
12641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012642 {
12643 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012644 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012645 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012646 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012647 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012648 .total_size = 256,
12649 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012650 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012651 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012652 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012653 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012654 .block_erasers =
12655 {
12656 {
12657 .eraseblocks = {
12658 {128 * 1024, 1},
12659 {96 * 1024, 1},
12660 {8 * 1024, 2},
12661 {16 * 1024, 1},
12662 },
12663 .block_erase = erase_sector_jedec,
12664 }, {
12665 .eraseblocks = { {256 * 1024, 1} },
12666 .block_erase = erase_chip_block_jedec,
12667 }
12668 },
Sean Nelson35727f72010-01-28 23:55:12 +000012669 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012671 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012672 },
12673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012674 {
12675 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012676 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012677 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012678 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012679 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012680 .total_size = 256,
12681 .page_size = 128,
12682 .feature_bits = FEATURE_EITHER_RESET,
12683 .tested = TEST_OK_PROBE,
12684 .probe = probe_jedec,
12685 .probe_timing = 10,
12686 .block_erasers =
12687 {
12688 {
12689 .eraseblocks = { {256 * 1024, 1} },
12690 .block_erase = erase_chip_block_jedec,
12691 }
12692 },
12693 .write = write_jedec_1,
12694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012695 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012696 },
12697
12698 {
12699 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012700 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012701 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012702 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012703 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012704 .total_size = 256,
12705 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012706 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012707 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012708 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012709 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012710 .block_erasers =
12711 {
12712 {
12713 .eraseblocks = {
12714 {64 * 1024, 3},
12715 {32 * 1024, 1},
12716 {8 * 1024, 2},
12717 {16 * 1024, 1},
12718 },
12719 .block_erase = erase_sector_jedec,
12720 }, {
12721 .eraseblocks = { {256 * 1024, 1} },
12722 .block_erase = erase_chip_block_jedec,
12723 }
12724 },
Sean Nelson35727f72010-01-28 23:55:12 +000012725 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012727 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012728 },
12729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012730 {
12731 .vendor = "Winbond",
12732 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012733 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012734 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012735 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012736 .total_size = 256,
12737 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012738 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012739 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012740 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012741 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012742 .block_erasers =
12743 {
12744 {
12745 .eraseblocks = {
12746 {64 * 1024, 3},
12747 {32 * 1024, 1},
12748 {8 * 1024, 2},
12749 {16 * 1024, 1},
12750 },
12751 .block_erase = erase_sector_jedec,
12752 }, {
12753 .eraseblocks = { {256 * 1024, 1} },
12754 .block_erase = erase_chip_block_jedec,
12755 }
12756 },
Sean Nelson35727f72010-01-28 23:55:12 +000012757 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012758 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012759 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012760 },
12761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012762 {
12763 .vendor = "Winbond",
12764 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012765 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012766 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012767 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012768 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012769 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012770 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012771 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012772 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012773 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012774 .block_erasers =
12775 {
12776 {
12777 .eraseblocks = { {64 * 1024, 16}, },
12778 .block_erase = erase_sector_jedec,
12779 }, {
12780 .eraseblocks = { {1024 * 1024, 1} },
12781 .block_erase = erase_chip_block_jedec,
12782 }
12783 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012784 .printlock = printlock_w39v080fa,
12785 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012786 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012787 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012788 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012789 },
12790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012791 {
12792 .vendor = "Winbond",
12793 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012794 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012795 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012796 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012797 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012798 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012799 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012800 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012801 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012802 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012803 .block_erasers =
12804 {
12805 {
12806 .eraseblocks = { {64 * 1024, 8}, },
12807 .block_erase = erase_sector_jedec,
12808 }, {
12809 .eraseblocks = { {512 * 1024, 1} },
12810 .block_erase = erase_chip_block_jedec,
12811 }
12812 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012813 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012814 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012815 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012816 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012817 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012818
12819 {
12820 .vendor = "Unknown",
12821 .name = "SFDP-capable chip",
12822 .bustype = BUS_SPI,
12823 .manufacture_id = GENERIC_MANUF_ID,
12824 .model_id = SFDP_DEVICE_ID,
12825 /* We present our own "report this" text hence we do not
12826 * want the default "This flash part has status UNTESTED..."
12827 * text to be printed. */
12828 .tested = TEST_OK_PREW,
12829 .probe = probe_spi_sfdp,
12830 .unlock = spi_disable_blockprotect, /* is this safe? */
12831 .read = spi_chip_read,
12832 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000012833 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012834 /* Everything below will be set by the probing function. */
12835 .write = NULL,
12836 .total_size = 0,
12837 .page_size = 0,
12838 .feature_bits = 0,
12839 .block_erasers = {},
12840 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012842 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000012843 .vendor = "Programmer",
12844 .name = "Opaque flash chip",
12845 .bustype = BUS_PROG,
12846 .manufacture_id = PROGMANUF_ID,
12847 .model_id = PROGDEV_ID,
12848 .total_size = 0,
12849 .page_size = 256,
12850 /* probe is assumed to work, rest will be filled in by probe */
12851 .tested = TEST_OK_PROBE,
12852 .probe = probe_opaque,
12853 /* eraseblock sizes will be set by the probing function */
12854 .block_erasers =
12855 {
12856 {
12857 .block_erase = erase_opaque,
12858 }
12859 },
12860 .write = write_opaque,
12861 .read = read_opaque,
12862 },
12863
12864 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012865 .vendor = "AMIC",
12866 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012867 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012868 .manufacture_id = AMIC_ID,
12869 .model_id = GENERIC_DEVICE_ID,
12870 .total_size = 0,
12871 .page_size = 256,
12872 .tested = TEST_BAD_PREW,
12873 .probe = probe_spi_rdid4,
12874 .probe_timing = TIMING_ZERO,
12875 .write = NULL,
12876 .read = NULL,
12877 },
12878
12879 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012880 .vendor = "Atmel",
12881 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012882 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012883 .manufacture_id = ATMEL_ID,
12884 .model_id = GENERIC_DEVICE_ID,
12885 .total_size = 0,
12886 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012887 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012888 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012889 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012890 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012891 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012892 },
12893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012894 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000012895 .vendor = "Eon",
12896 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012897 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012898 .manufacture_id = EON_ID_NOPREFIX,
12899 .model_id = GENERIC_DEVICE_ID,
12900 .total_size = 0,
12901 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012902 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012903 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012904 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012905 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012906 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012907 },
12908
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012909 {
12910 .vendor = "Macronix",
12911 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012912 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012913 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012914 .model_id = GENERIC_DEVICE_ID,
12915 .total_size = 0,
12916 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012917 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012918 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012919 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012920 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012921 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012922 },
12923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012924 {
12925 .vendor = "PMC",
12926 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012927 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012928 .manufacture_id = PMC_ID,
12929 .model_id = GENERIC_DEVICE_ID,
12930 .total_size = 0,
12931 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012932 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012933 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012934 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012935 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012936 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012937 },
12938
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012939 {
12940 .vendor = "SST",
12941 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012942 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012943 .manufacture_id = SST_ID,
12944 .model_id = GENERIC_DEVICE_ID,
12945 .total_size = 0,
12946 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012947 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012949 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012950 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012951 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012952 },
12953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012954 {
12955 .vendor = "ST",
12956 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012957 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012958 .manufacture_id = ST_ID,
12959 .model_id = GENERIC_DEVICE_ID,
12960 .total_size = 0,
12961 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012962 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012963 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012964 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012965 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012966 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012967 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000012968
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012969 {
Sean Nelson118e1d62009-11-24 02:08:11 +000012970 .vendor = "Sanyo",
12971 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012972 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012973 .manufacture_id = SANYO_ID,
12974 .model_id = GENERIC_DEVICE_ID,
12975 .total_size = 0,
12976 .page_size = 256,
12977 .tested = TEST_BAD_PREW,
12978 .probe = probe_spi_rdid,
12979 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012980 .write = NULL,
12981 .read = NULL,
12982 },
12983
12984 {
Stefan Taunereb582572012-09-21 12:52:50 +000012985 .vendor = "Winbond",
12986 .name = "unknown Winbond (ex Nexcom) SPI chip",
12987 .bustype = BUS_SPI,
12988 .manufacture_id = WINBOND_NEX_ID,
12989 .model_id = GENERIC_DEVICE_ID,
12990 .total_size = 0,
12991 .page_size = 256,
12992 .tested = TEST_BAD_PREW,
12993 .probe = probe_spi_rdid,
12994 .probe_timing = TIMING_ZERO,
12995 .write = NULL,
12996 .read = NULL,
12997 },
12998
12999 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013000 .vendor = "Generic",
13001 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013002 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013003 .manufacture_id = GENERIC_MANUF_ID,
13004 .model_id = GENERIC_DEVICE_ID,
13005 .total_size = 0,
13006 .page_size = 256,
13007 .tested = TEST_BAD_PREW,
13008 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013009 .write = NULL,
13010 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013011
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013012 {
13013 .vendor = "Generic",
13014 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013015 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013016 .manufacture_id = GENERIC_MANUF_ID,
13017 .model_id = GENERIC_DEVICE_ID,
13018 .total_size = 0,
13019 .page_size = 256,
13020 .tested = TEST_BAD_PREW,
13021 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013022 .write = NULL,
13023 },
13024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013025 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013026};