blob: 2212a95cadbeb2e0c2319bad529317094f886b3b [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001159 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
1167 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001168 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ032,
1171 .total_size = 4096,
1172 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001173 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .tested = TEST_UNTESTED,
1176 .probe = probe_spi_rdid,
1177 .probe_timing = TIMING_ZERO,
1178 .block_erasers =
1179 {
1180 {
1181 .eraseblocks = { { 4 * 1024, 1024 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 64 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 64 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 4096 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 4096 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001195 }
Dan Lenski11617122010-07-29 15:00:40 +00001196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001197 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001198 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001201 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001202 },
1203
1204 {
1205 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001206 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A29002B,
1210 .total_size = 256,
1211 .page_size = 64 * 1024,
1212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1213 .tested = TEST_UNTESTED,
1214 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001215 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = {
1220 {16 * 1024, 1},
1221 {8 * 1024, 2},
1222 {32 * 1024, 1},
1223 {64 * 1024, 3},
1224 },
1225 .block_erase = erase_sector_jedec,
1226 }, {
1227 .eraseblocks = { {256 * 1024, 1} },
1228 .block_erase = erase_chip_block_jedec,
1229 },
1230 },
1231 .write = write_jedec_1,
1232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001233 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001234 },
1235
1236 {
1237 .vendor = "AMIC",
1238 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001239 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001240 .manufacture_id = AMIC_ID_NOPREFIX,
1241 .model_id = AMIC_A29002T,
1242 .total_size = 256,
1243 .page_size = 64 * 1024,
1244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001246 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001247 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001248 .block_erasers =
1249 {
1250 {
1251 .eraseblocks = {
1252 {64 * 1024, 3},
1253 {32 * 1024, 1},
1254 {8 * 1024, 2},
1255 {16 * 1024, 1},
1256 },
1257 .block_erase = erase_sector_jedec,
1258 }, {
1259 .eraseblocks = { {256 * 1024, 1} },
1260 .block_erase = erase_chip_block_jedec,
1261 },
1262 },
1263 .write = write_jedec_1,
1264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001265 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001266 },
1267
1268 {
1269 .vendor = "AMIC",
1270 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001271 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001272 .manufacture_id = AMIC_ID_NOPREFIX,
1273 .model_id = AMIC_A29040B,
1274 .total_size = 512,
1275 .page_size = 64 * 1024,
1276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1277 .tested = TEST_UNTESTED,
1278 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001279 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 .block_erasers =
1281 {
1282 {
1283 .eraseblocks = { {64 * 1024, 8} },
1284 .block_erase = erase_sector_jedec,
1285 }, {
1286 .eraseblocks = { {512 * 1024, 1} },
1287 .block_erase = erase_chip_block_jedec,
1288 },
1289 },
1290 .write = write_jedec_1,
1291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001292 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001293 },
1294
1295 {
1296 .vendor = "AMIC",
1297 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001298 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001299 .manufacture_id = AMIC_ID_NOPREFIX,
1300 .model_id = AMIC_A49LF040A,
1301 .total_size = 512,
1302 .page_size = 64 * 1024,
1303 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001305 .probe = probe_jedec,
1306 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1307 .block_erasers =
1308 {
1309 {
1310 .eraseblocks = { {64 * 1024, 8} },
1311 .block_erase = erase_block_jedec,
1312 }, {
1313 .eraseblocks = { {512 * 1024, 1} },
1314 .block_erase = erase_chip_block_jedec,
1315 }
1316 },
1317 .unlock = unlock_49fl00x,
1318 .write = write_jedec_1,
1319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001320 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 },
1322
1323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001324 .vendor = "Atmel",
1325 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001326 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001328 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001329 .total_size = 256,
1330 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001331 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001335 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { {4 * 1024, 64} },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { {32 * 1024, 8} },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { {64 * 1024, 4} },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { {256 * 1024, 1} },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { {256 * 1024, 1} },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001355 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001356 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001358 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001359 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001360 },
1361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001362 {
1363 .vendor = "Atmel",
1364 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001367 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001368 .total_size = 512,
1369 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001370 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001371 .tested = TEST_UNTESTED,
1372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001373 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001374 .block_erasers =
1375 {
1376 {
1377 .eraseblocks = { {4 * 1024, 128} },
1378 .block_erase = spi_block_erase_20,
1379 }, {
1380 .eraseblocks = { {32 * 1024, 16} },
1381 .block_erase = spi_block_erase_52,
1382 }, {
1383 .eraseblocks = { {64 * 1024, 8} },
1384 .block_erase = spi_block_erase_d8,
1385 }, {
1386 .eraseblocks = { {512 * 1024, 1} },
1387 .block_erase = spi_block_erase_60,
1388 }, {
1389 .eraseblocks = { {512 * 1024, 1} },
1390 .block_erase = spi_block_erase_c7,
1391 }
1392 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001393 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001394 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001396 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001397 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001398 },
1399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001400 {
1401 .vendor = "Atmel",
1402 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001403 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001404 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001405 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001406 .total_size = 1024,
1407 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001408 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001409 .tested = TEST_UNTESTED,
1410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001411 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001412 .block_erasers =
1413 {
1414 {
1415 .eraseblocks = { {4 * 1024, 256} },
1416 .block_erase = spi_block_erase_20,
1417 }, {
1418 .eraseblocks = { {32 * 1024, 32} },
1419 .block_erase = spi_block_erase_52,
1420 }, {
1421 .eraseblocks = { {64 * 1024, 16} },
1422 .block_erase = spi_block_erase_d8,
1423 }, {
1424 .eraseblocks = { {1024 * 1024, 1} },
1425 .block_erase = spi_block_erase_60,
1426 }, {
1427 .eraseblocks = { {1024 * 1024, 1} },
1428 .block_erase = spi_block_erase_c7,
1429 }
1430 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001432 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001433 .write = spi_chip_write_256,
1434 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001435 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 },
1437
1438 {
1439 .vendor = "Atmel",
1440 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001441 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001442 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001443 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .total_size = 1024,
1445 .page_size = 256,
1446 .feature_bits = FEATURE_WRSR_WREN,
1447 .tested = TEST_UNTESTED,
1448 .probe = probe_spi_rdid,
1449 .probe_timing = TIMING_ZERO,
1450 .block_erasers =
1451 {
1452 {
1453 .eraseblocks = { {4 * 1024, 256} },
1454 .block_erase = spi_block_erase_20,
1455 }, {
1456 .eraseblocks = { {32 * 1024, 32} },
1457 .block_erase = spi_block_erase_52,
1458 }, {
1459 .eraseblocks = { {64 * 1024, 16} },
1460 .block_erase = spi_block_erase_d8,
1461 }, {
1462 .eraseblocks = { {1024 * 1024, 1} },
1463 .block_erase = spi_block_erase_60,
1464 }, {
1465 .eraseblocks = { {1024 * 1024, 1} },
1466 .block_erase = spi_block_erase_c7,
1467 }
1468 },
1469 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001470 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001472 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001474 },
1475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001476 {
1477 .vendor = "Atmel",
1478 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001481 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .total_size = 2048,
1483 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001484 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001485 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001487 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001488 .block_erasers =
1489 {
1490 {
1491 .eraseblocks = { {4 * 1024, 512} },
1492 .block_erase = spi_block_erase_20,
1493 }, {
1494 .eraseblocks = { {32 * 1024, 64} },
1495 .block_erase = spi_block_erase_52,
1496 }, {
1497 .eraseblocks = { {64 * 1024, 32} },
1498 .block_erase = spi_block_erase_d8,
1499 }, {
1500 .eraseblocks = { {2 * 1024 * 1024, 1} },
1501 .block_erase = spi_block_erase_60,
1502 }, {
1503 .eraseblocks = { {2 * 1024 * 1024, 1} },
1504 .block_erase = spi_block_erase_c7,
1505 }
1506 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001507 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001508 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001512 },
1513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 {
1515 .vendor = "Atmel",
1516 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001517 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001518 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001519 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .total_size = 4096,
1521 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001525 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001526 .block_erasers =
1527 {
1528 {
1529 .eraseblocks = { {4 * 1024, 1024} },
1530 .block_erase = spi_block_erase_20,
1531 }, {
1532 .eraseblocks = { {32 * 1024, 128} },
1533 .block_erase = spi_block_erase_52,
1534 }, {
1535 .eraseblocks = { {64 * 1024, 64} },
1536 .block_erase = spi_block_erase_d8,
1537 }, {
1538 .eraseblocks = { {4 * 1024 * 1024, 1} },
1539 .block_erase = spi_block_erase_60,
1540 }, {
1541 .eraseblocks = { {4 * 1024 * 1024, 1} },
1542 .block_erase = spi_block_erase_c7,
1543 }
1544 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001545 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001546 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001550 },
1551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 {
1553 .vendor = "Atmel",
1554 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001555 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001556 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001557 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .total_size = 4096,
1559 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001560 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001562 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001564 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001565 .block_erasers =
1566 {
1567 {
1568 .eraseblocks = { {4 * 1024, 1024} },
1569 .block_erase = spi_block_erase_20,
1570 }, {
1571 .eraseblocks = { {32 * 1024, 128} },
1572 .block_erase = spi_block_erase_52,
1573 }, {
1574 .eraseblocks = { {64 * 1024, 64} },
1575 .block_erase = spi_block_erase_d8,
1576 }, {
1577 .eraseblocks = { {4 * 1024 * 1024, 1} },
1578 .block_erase = spi_block_erase_60,
1579 }, {
1580 .eraseblocks = { {4 * 1024 * 1024, 1} },
1581 .block_erase = spi_block_erase_c7,
1582 }
1583 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001585 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001589 },
1590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 {
1592 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001593 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001596 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .total_size = 8192,
1598 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001600 .tested = TEST_UNTESTED,
1601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001602 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001603 .block_erasers =
1604 {
1605 {
1606 .eraseblocks = { {4 * 1024, 2048} },
1607 .block_erase = spi_block_erase_20,
1608 }, {
1609 .eraseblocks = { {32 * 1024, 256} },
1610 .block_erase = spi_block_erase_52,
1611 }, {
1612 .eraseblocks = { {64 * 1024, 128} },
1613 .block_erase = spi_block_erase_d8,
1614 }, {
1615 .eraseblocks = { {8 * 1024 * 1024, 1} },
1616 .block_erase = spi_block_erase_60,
1617 }, {
1618 .eraseblocks = { {8 * 1024 * 1024, 1} },
1619 .block_erase = spi_block_erase_c7,
1620 }
1621 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001623 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001624 .write = spi_chip_write_256,
1625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001626 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001627 },
1628
1629 {
1630 .vendor = "Atmel",
1631 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001632 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001634 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001635 .total_size = 2048,
1636 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001637 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .tested = TEST_UNTESTED,
1640 .probe = probe_spi_rdid,
1641 .probe_timing = TIMING_ZERO,
1642 .block_erasers =
1643 {
1644 {
1645 .eraseblocks = { {4 * 1024, 512} },
1646 .block_erase = spi_block_erase_20,
1647 }, {
1648 .eraseblocks = { {32 * 1024, 64} },
1649 .block_erase = spi_block_erase_52,
1650 }, {
1651 .eraseblocks = { {64 * 1024, 32} },
1652 .block_erase = spi_block_erase_d8,
1653 }, {
1654 .eraseblocks = { {2 * 1024 * 1024, 1} },
1655 .block_erase = spi_block_erase_60,
1656 }, {
1657 .eraseblocks = { {2 * 1024 * 1024, 1} },
1658 .block_erase = spi_block_erase_c7,
1659 }
1660 },
1661 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001662 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001663 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001665 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001666 },
1667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 {
1669 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001670 .name = "AT25F512",
1671 .bustype = BUS_SPI,
1672 .manufacture_id = ATMEL_ID,
1673 .model_id = ATMEL_AT25F512,
1674 .total_size = 64,
1675 .page_size = 256,
1676 .feature_bits = FEATURE_WRSR_WREN,
1677 .tested = TEST_UNTESTED,
1678 .probe = probe_spi_at25f,
1679 .probe_timing = TIMING_ZERO,
1680 .block_erasers =
1681 {
1682 {
1683 .eraseblocks = { {32 * 1024, 2} },
1684 .block_erase = spi_block_erase_52,
1685 }, {
1686 .eraseblocks = { {64 * 1024, 1} },
1687 .block_erase = spi_block_erase_62,
1688 }
1689 },
1690 .printlock = spi_prettyprint_status_register_at25f,
1691 .unlock = spi_disable_blockprotect_at25f,
1692 .write = spi_chip_write_256,
1693 .read = spi_chip_read,
1694 .voltage = {2700, 3600},
1695 },
1696
1697 {
1698 .vendor = "Atmel",
1699 .name = "AT25F512A",
1700 .bustype = BUS_SPI,
1701 .manufacture_id = ATMEL_ID,
1702 .model_id = ATMEL_AT25F512A,
1703 .total_size = 64,
1704 .page_size = 128,
1705 .feature_bits = FEATURE_WRSR_WREN,
1706 .tested = TEST_UNTESTED,
1707 .probe = probe_spi_at25f,
1708 .probe_timing = TIMING_ZERO,
1709 .block_erasers =
1710 {
1711 {
1712 .eraseblocks = { {32 * 1024, 2} },
1713 .block_erase = spi_block_erase_52,
1714 }, {
1715 .eraseblocks = { {64 * 1024, 1} },
1716 .block_erase = spi_block_erase_62,
1717 }
1718 },
1719 .printlock = spi_prettyprint_status_register_at25f512a,
1720 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1721 .unlock = spi_disable_blockprotect_at25f512a,
1722 .write = spi_chip_write_256,
1723 .read = spi_chip_read,
1724 .voltage = {2700, 3600},
1725 },
1726
1727 {
1728 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001729 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001730 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001731 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001732 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .total_size = 64,
1734 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001735 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 .tested = TEST_UNTESTED,
1738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001739 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001740 .block_erasers =
1741 {
1742 {
1743 .eraseblocks = { {4 * 1024, 16} },
1744 .block_erase = spi_block_erase_20,
1745 }, {
1746 .eraseblocks = { {32 * 1024, 2} },
1747 .block_erase = spi_block_erase_52,
1748 }, {
1749 .eraseblocks = { {32 * 1024, 2} },
1750 .block_erase = spi_block_erase_d8,
1751 }, {
1752 .eraseblocks = { {64 * 1024, 1} },
1753 .block_erase = spi_block_erase_60,
1754 }, {
1755 .eraseblocks = { {64 * 1024, 1} },
1756 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001757 }, {
1758 .eraseblocks = { {64 * 1024, 1} },
1759 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001760 }
1761 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001762 .printlock = spi_prettyprint_status_register_at25f512b,
1763 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001764 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001767 },
1768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001769 {
1770 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001771 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1772 * All other properties seem to be the same.*/
1773 .name = "AT25F1024(A)",
1774 .bustype = BUS_SPI,
1775 .manufacture_id = ATMEL_ID,
1776 .model_id = ATMEL_AT25F1024,
1777 .total_size = 128,
1778 .page_size = 256,
1779 .feature_bits = FEATURE_WRSR_WREN,
1780 .tested = TEST_OK_PREW,
1781 .probe = probe_spi_at25f,
1782 .probe_timing = TIMING_ZERO,
1783 .block_erasers =
1784 {
1785 {
1786 .eraseblocks = { {32 * 1024, 4} },
1787 .block_erase = spi_block_erase_52,
1788 }, {
1789 .eraseblocks = { {128 * 1024, 1} },
1790 .block_erase = spi_block_erase_62,
1791 }
1792 },
1793 .printlock = spi_prettyprint_status_register_at25f,
1794 .unlock = spi_disable_blockprotect_at25f,
1795 .write = spi_chip_write_256,
1796 .read = spi_chip_read,
1797 .voltage = {2700, 3600},
1798 },
1799
1800 {
1801 .vendor = "Atmel",
1802 .name = "AT25F2048",
1803 .bustype = BUS_SPI,
1804 .manufacture_id = ATMEL_ID,
1805 .model_id = ATMEL_AT25F2048,
1806 .total_size = 256,
1807 .page_size = 256,
1808 .feature_bits = FEATURE_WRSR_WREN,
1809 .tested = TEST_UNTESTED,
1810 .probe = probe_spi_at25f,
1811 .probe_timing = TIMING_ZERO,
1812 .block_erasers =
1813 {
1814 {
1815 .eraseblocks = { {64 * 1024, 4} },
1816 .block_erase = spi_block_erase_52,
1817 }, {
1818 .eraseblocks = { {256 * 1024, 1} },
1819 .block_erase = spi_block_erase_62,
1820 }
1821 },
1822 .printlock = spi_prettyprint_status_register_at25f,
1823 .unlock = spi_disable_blockprotect_at25f,
1824 .write = spi_chip_write_256,
1825 .read = spi_chip_read,
1826 .voltage = {2700, 3600},
1827 },
1828
1829 {
1830 .vendor = "Atmel",
1831 .name = "AT25F4096",
1832 .bustype = BUS_SPI,
1833 .manufacture_id = ATMEL_ID,
1834 .model_id = ATMEL_AT25F4096,
1835 .total_size = 512,
1836 .page_size = 256,
1837 .feature_bits = FEATURE_WRSR_WREN,
1838 .tested = TEST_UNTESTED,
1839 .probe = probe_spi_at25f,
1840 .probe_timing = TIMING_ZERO,
1841 .block_erasers =
1842 {
1843 {
1844 .eraseblocks = { {64 * 1024, 8} },
1845 .block_erase = spi_block_erase_52,
1846 }, {
1847 .eraseblocks = { {512 * 1024, 1} },
1848 .block_erase = spi_block_erase_62,
1849 }
1850 },
1851 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001852 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1853 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001854 .write = spi_chip_write_256,
1855 .read = spi_chip_read,
1856 .voltage = {2700, 3600},
1857 },
1858
1859 {
1860 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001862 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001863 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001864 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 .total_size = 128,
1866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001867 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001868 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001869 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001870 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001871 .block_erasers =
1872 {
1873 {
1874 .eraseblocks = { {4 * 1024, 32} },
1875 .block_erase = spi_block_erase_20,
1876 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001877 .eraseblocks = { {4 * 1024, 32} },
1878 .block_erase = spi_block_erase_d7,
1879 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001880 .eraseblocks = { {32 * 1024, 4} },
1881 .block_erase = spi_block_erase_52,
1882 }, {
1883 .eraseblocks = { {32 * 1024, 4} },
1884 .block_erase = spi_block_erase_d8,
1885 }, {
1886 .eraseblocks = { {128 * 1024, 1} },
1887 .block_erase = spi_block_erase_60,
1888 }, {
1889 .eraseblocks = { {128 * 1024, 1} },
1890 .block_erase = spi_block_erase_c7,
1891 }
1892 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001893 .printlock = spi_prettyprint_status_register_at25fs010,
1894 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001895 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001898 },
1899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001900 {
1901 .vendor = "Atmel",
1902 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001903 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001905 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001906 .total_size = 512,
1907 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001908 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 .tested = TEST_UNTESTED,
1910 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001911 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001912 .block_erasers =
1913 {
1914 {
1915 .eraseblocks = { {4 * 1024, 128} },
1916 .block_erase = spi_block_erase_20,
1917 }, {
1918 .eraseblocks = { {64 * 1024, 8} },
1919 .block_erase = spi_block_erase_52,
1920 }, {
1921 .eraseblocks = { {64 * 1024, 8} },
1922 .block_erase = spi_block_erase_d8,
1923 }, {
1924 .eraseblocks = { {512 * 1024, 1} },
1925 .block_erase = spi_block_erase_60,
1926 }, {
1927 .eraseblocks = { {512 * 1024, 1} },
1928 .block_erase = spi_block_erase_c7,
1929 }
1930 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001931 .printlock = spi_prettyprint_status_register_at25fs040,
1932 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001933 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001935 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001936 },
1937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001938 {
1939 .vendor = "Atmel",
1940 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001941 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001943 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .total_size = 512,
1945 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001946 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001947 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001949 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001950 .block_erasers =
1951 {
1952 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00001953 .eraseblocks = { {256, 2048} },
1954 .block_erase = spi_block_erase_81,
1955 }, {
1956 .eraseblocks = { {2 * 1024, 256} },
1957 .block_erase = spi_block_erase_50,
1958 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001959 .eraseblocks = { {4 * 1024, 128} },
1960 .block_erase = spi_block_erase_20,
1961 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001962 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00001963 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001964 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001965 .write = spi_chip_write_1,
1966 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00001967 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001968 },
1969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001970 {
1971 .vendor = "Atmel",
1972 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001973 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001974 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001975 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001976 .total_size = 1024,
1977 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001978 .feature_bits = FEATURE_WRSR_WREN,
1979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001981 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001982 .block_erasers =
1983 {
1984 {
1985 .eraseblocks = { {4 * 1024, 256} },
1986 .block_erase = spi_block_erase_20,
1987 }, {
1988 .eraseblocks = { {32 * 1024, 32} },
1989 .block_erase = spi_block_erase_52,
1990 }, {
1991 .eraseblocks = { {64 * 1024, 16} },
1992 .block_erase = spi_block_erase_d8,
1993 }, {
1994 .eraseblocks = { {1024 * 1024, 1} },
1995 .block_erase = spi_block_erase_60,
1996 }, {
1997 .eraseblocks = { {1024 * 1024, 1} },
1998 .block_erase = spi_block_erase_c7,
1999 }
2000 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002001 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002002 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002003 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002005 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002006 },
2007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002008 {
2009 .vendor = "Atmel",
2010 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002011 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002012 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002013 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002014 .total_size = 2048,
2015 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002016 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002017 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002018 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002019 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {4 * 1024, 512} },
2024 .block_erase = spi_block_erase_20,
2025 }, {
2026 .eraseblocks = { {32 * 1024, 64} },
2027 .block_erase = spi_block_erase_52,
2028 }, {
2029 .eraseblocks = { {64 * 1024, 32} },
2030 .block_erase = spi_block_erase_d8,
2031 }, {
2032 .eraseblocks = { {2 * 1024 * 1024, 1} },
2033 .block_erase = spi_block_erase_60,
2034 }, {
2035 .eraseblocks = { {2 * 1024 * 1024, 1} },
2036 .block_erase = spi_block_erase_c7,
2037 }
2038 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002039 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002040 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002041 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002042 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002043 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002044 },
2045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 {
2047 .vendor = "Atmel",
2048 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002049 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002050 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002051 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002052 .total_size = 2048,
2053 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002054 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002055 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002056 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002057 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002058 .block_erasers =
2059 {
2060 {
2061 .eraseblocks = { {4 * 1024, 512} },
2062 .block_erase = spi_block_erase_20,
2063 }, {
2064 .eraseblocks = { {32 * 1024, 64} },
2065 .block_erase = spi_block_erase_52,
2066 }, {
2067 .eraseblocks = { {64 * 1024, 32} },
2068 .block_erase = spi_block_erase_d8,
2069 }, {
2070 .eraseblocks = { {2 * 1024 * 1024, 1} },
2071 .block_erase = spi_block_erase_60,
2072 }, {
2073 .eraseblocks = { {2 * 1024 * 1024, 1} },
2074 .block_erase = spi_block_erase_c7,
2075 }
2076 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002077 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002078 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002079 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002080 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002081 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002082 },
2083
2084 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 /*{
2086 .vendor = "Atmel",
2087 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002088 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002090 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002091 .total_size = 4096,
2092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002093 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002094 .tested = TEST_UNTESTED,
2095 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002096 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002097 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002098 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002099 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002100 .read = spi_chip_read,
2101 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 {
2104 .vendor = "Atmel",
2105 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002106 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002108 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .total_size = 512,
2110 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002111 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002112 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002114 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002115 .block_erasers =
2116 {
2117 {
2118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }, {
2121 .eraseblocks = { {32 * 1024, 16} },
2122 .block_erase = spi_block_erase_52,
2123 }, {
2124 .eraseblocks = { {64 * 1024, 8} },
2125 .block_erase = spi_block_erase_d8,
2126 }, {
2127 .eraseblocks = { {512 * 1024, 1} },
2128 .block_erase = spi_block_erase_60,
2129 }, {
2130 .eraseblocks = { {512 * 1024, 1} },
2131 .block_erase = spi_block_erase_c7,
2132 }
2133 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002134 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .write = NULL /* Incompatible Page write */,
2136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002138 },
2139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 {
2141 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002142 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002143 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002144 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002145 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002146 .total_size = 64,
2147 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002148 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002149 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002150 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002151 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002152 .block_erasers =
2153 {
2154 {
2155 .eraseblocks = { {64 * 1024, 1} },
2156 .block_erase = erase_chip_block_jedec,
2157 }
2158 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002159 .write = write_jedec,
2160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002161 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002162 },
2163
2164 {
2165 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002166 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002167 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002168 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002169 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002170 .total_size = 128,
2171 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002172 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002173 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002174 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002175 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002176 .block_erasers =
2177 {
2178 {
2179 .eraseblocks = { {128 * 1024, 1} },
2180 .block_erase = erase_chip_block_jedec,
2181 }
2182 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002183 .write = write_jedec, /* FIXME */
2184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002185 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002186 },
2187
2188 {
2189 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002191 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002192 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002193 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .total_size = 256,
2195 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002196 .feature_bits = FEATURE_LONG_RESET,
2197 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002199 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002200 .block_erasers =
2201 {
2202 {
2203 .eraseblocks = { {256 * 1024, 1} },
2204 .block_erase = erase_chip_block_jedec,
2205 }
2206 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002207 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002210 },
2211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002212 {
2213 .vendor = "Atmel",
2214 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002217 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 .total_size = 512,
2219 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002220 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 .tested = TEST_UNTESTED,
2222 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002223 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002224 .block_erasers =
2225 {
2226 {
2227 .eraseblocks = { {512 * 1024, 1} },
2228 .block_erase = erase_chip_block_jedec,
2229 }
2230 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002231 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002233 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002234 },
2235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002236 {
2237 .vendor = "Atmel",
2238 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002239 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002240 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002241 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002242 .total_size = 16896 /* No power of two sizes */,
2243 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002244 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002245 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002246 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002247 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .write = NULL /* Incompatible Page write */,
2249 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002250 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002251 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 {
2254 .vendor = "Atmel",
2255 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002256 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002257 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002258 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002259 .total_size = 128 /* Size can only be determined from status register */,
2260 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002261 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002262 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002263 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002264 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002265 .write = NULL,
2266 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002267 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002268 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002270 {
2271 .vendor = "Atmel",
2272 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002273 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002274 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002275 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002276 .total_size = 256 /* Size can only be determined from status register */,
2277 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002278 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002279 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002280 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002281 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 .write = NULL,
2283 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002284 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002285 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002287 {
2288 .vendor = "Atmel",
2289 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002290 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002291 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002292 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002293 .total_size = 512 /* Size can only be determined from status register */,
2294 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002295 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002296 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002298 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .write = NULL,
2300 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002301 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002302 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002304 {
2305 .vendor = "Atmel",
2306 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002307 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002308 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002309 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002310 .total_size = 1024 /* Size can only be determined from status register */,
2311 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002312 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002313 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002314 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002315 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002316 .write = NULL,
2317 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002318 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002319 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 {
2322 .vendor = "Atmel",
2323 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002324 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002325 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002326 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002327 .total_size = 2048 /* Size can only be determined from status register */,
2328 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002329 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002330 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002331 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002332 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002333 .write = NULL,
2334 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002335 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002336 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002337
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 {
2339 .vendor = "Atmel",
2340 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002341 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002342 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002343 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002344 .total_size = 4224 /* No power of two sizes */,
2345 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002346 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002347 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002349 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002350 .write = NULL,
2351 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002352 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002353 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002355 {
2356 .vendor = "Atmel",
2357 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002358 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002359 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002360 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002361 .total_size = 4096 /* Size can only be determined from status register */,
2362 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002363 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002364 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002365 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002366 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002367 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002368 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002369 .write = NULL,
2370 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002371 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002372 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002374 {
2375 .vendor = "Atmel",
2376 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002377 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002378 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002379 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002380 .total_size = 8192 /* Size can only be determined from status register */,
2381 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002382 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002383 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002385 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002386 .write = NULL,
2387 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002388 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002389 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002391 {
2392 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002393 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002394 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002395 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002396 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002397 .total_size = 64,
2398 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002399 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002400 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002401 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002402 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002403 .block_erasers =
2404 {
2405 {
2406 .eraseblocks = { {64 * 1024, 1} },
2407 .block_erase = erase_chip_block_jedec,
2408 }
2409 },
Sean Nelson35727f72010-01-28 23:55:12 +00002410 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002412 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002413 },
2414
2415 {
2416 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002417 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002418 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002420 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002421 .total_size = 256,
2422 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002423 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002424 .tested = TEST_UNTESTED,
2425 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002426 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002427 .block_erasers =
2428 {
2429 {
2430 .eraseblocks = {
2431 {16 * 1024, 1},
2432 {8 * 1024, 2},
2433 {96 * 1024, 1},
2434 {128 * 1024, 1},
2435 },
2436 .block_erase = erase_sector_jedec,
2437 }, {
2438 .eraseblocks = { {256 * 1024, 1} },
2439 .block_erase = erase_chip_block_jedec,
2440 }
2441 },
Sean Nelson35727f72010-01-28 23:55:12 +00002442 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002444 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002445 },
2446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 {
2448 .vendor = "Atmel",
2449 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002450 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002452 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002453 .total_size = 256,
2454 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002455 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002456 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002457 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002458 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002459 .block_erasers =
2460 {
2461 {
2462 .eraseblocks = {
2463 {128 * 1024, 1},
2464 {96 * 1024, 1},
2465 {8 * 1024, 2},
2466 {16 * 1024, 1},
2467 },
2468 .block_erase = erase_sector_jedec,
2469 }, {
2470 .eraseblocks = { {256 * 1024, 1} },
2471 .block_erase = erase_chip_block_jedec,
2472 }
2473 },
Sean Nelson35727f72010-01-28 23:55:12 +00002474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002479 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002480 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002481 .name = "AT49(H)F010",
2482 .bustype = BUS_PARALLEL,
2483 .manufacture_id = ATMEL_ID,
2484 .model_id = ATMEL_AT49F010,
2485 .total_size = 128,
2486 .page_size = 0, /* unused */
2487 .feature_bits = FEATURE_EITHER_RESET,
2488 .tested = TEST_OK_PREW,
2489 .probe = probe_jedec,
2490 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {128 * 1024, 1} },
2495 .block_erase = erase_chip_block_jedec,
2496 }
2497 },
2498 .printlock = printlock_at49f,
2499 .write = write_jedec_1,
2500 .read = read_memmapped,
2501 .voltage = {4500, 5500},
2502 },
2503
2504 {
2505 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002506 .name = "AT49F020",
2507 .bustype = BUS_PARALLEL,
2508 .manufacture_id = ATMEL_ID,
2509 .model_id = ATMEL_AT49F020,
2510 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002511 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002512 .feature_bits = FEATURE_EITHER_RESET,
2513 .tested = TEST_OK_PRE,
2514 .probe = probe_jedec,
2515 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2516 .block_erasers =
2517 {
2518 {
2519 .eraseblocks = { {256 * 1024, 1} },
2520 .block_erase = erase_chip_block_jedec,
2521 }
2522 /* Chip features an optional permanent write protection
2523 * of the first 8 kB. The erase function is the same as
2524 * above, but 00000H to 01FFFH will not be erased.
2525 * FIXME: add another eraser when partial erasers are
2526 * supported.
2527 */
2528 },
2529 .printlock = printlock_at49f,
2530 .write = write_jedec_1,
2531 .read = read_memmapped,
2532 .voltage = {4500, 5500},
2533 },
2534
2535 {
2536 .vendor = "Atmel",
2537 .name = "AT49F040",
2538 .bustype = BUS_PARALLEL,
2539 .manufacture_id = ATMEL_ID,
2540 .model_id = ATMEL_AT49F040,
2541 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002542 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002543 .feature_bits = FEATURE_EITHER_RESET,
2544 .tested = TEST_UNTESTED,
2545 .probe = probe_jedec,
2546 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2547 .block_erasers =
2548 {
2549 {
2550 .eraseblocks = { {512 * 1024, 1} },
2551 .block_erase = erase_chip_block_jedec,
2552 }
2553 /* Chip features an optional permanent write protection
2554 * of the first 16 kB. The erase function is the same as
2555 * above, but 00000H to 03FFFH will not be erased.
2556 * FIXME: add another eraser when partial erasers are
2557 * supported.
2558 */
2559 },
2560 .printlock = printlock_at49f,
2561 .write = write_jedec_1,
2562 .read = read_memmapped,
2563 .voltage = {4500, 5500},
2564 },
2565
2566 {
2567 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002568 .name = "AT49F080",
2569 .bustype = BUS_PARALLEL,
2570 .manufacture_id = ATMEL_ID,
2571 .model_id = ATMEL_AT49F080,
2572 .total_size = 1024,
2573 .page_size = 0, /* unused */
2574 .feature_bits = FEATURE_EITHER_RESET,
2575 .tested = TEST_UNTESTED,
2576 .probe = probe_jedec,
2577 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2578 .block_erasers =
2579 {
2580 {
2581 .eraseblocks = { {1024 * 1024, 1} },
2582 .block_erase = erase_chip_block_jedec,
2583 }
2584 /* Chip features an optional permanent write protection
2585 * of the first 16 kB. The erase function is the same as
2586 * above, but 00000H to 03FFFH will not be erased.
2587 * FIXME: add another eraser when partial erasers are
2588 * supported.
2589 */
2590 },
2591 .printlock = printlock_at49f,
2592 .write = write_jedec_1,
2593 .read = read_memmapped,
2594 .voltage = {4500, 5500},
2595 },
2596
2597 {
2598 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2599 .vendor = "Atmel",
2600 .name = "AT49F080T",
2601 .bustype = BUS_PARALLEL,
2602 .manufacture_id = ATMEL_ID,
2603 .model_id = ATMEL_AT49F080T,
2604 .total_size = 1024,
2605 .page_size = 0, /* unused */
2606 .feature_bits = FEATURE_EITHER_RESET,
2607 .tested = TEST_UNTESTED,
2608 .probe = probe_jedec,
2609 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2610 .block_erasers =
2611 {
2612 {
2613 .eraseblocks = { {1024 * 1024, 1} },
2614 .block_erase = erase_chip_block_jedec,
2615 }
2616 /* Chip features an optional permanent write protection
2617 * of the first 16 kB. The erase function is the same as
2618 * above, but FC000H to FFFFFH will not be erased.
2619 * FIXME: add another eraser when partial erasers are
2620 * supported.
2621 */
2622 },
2623 .printlock = printlock_at49f,
2624 .write = write_jedec_1,
2625 .read = read_memmapped,
2626 .voltage = {4500, 5500},
2627 },
2628
2629 {
2630 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002631 .name = "AT49LH002",
2632 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2633 .manufacture_id = ATMEL_ID,
2634 .model_id = ATMEL_AT49LH002,
2635 .total_size = 256,
2636 .page_size = 0, /* unused */
2637 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2638 .tested = TEST_UNTESTED,
2639 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2640 .probe_timing = TIMING_FIXME,
2641 .block_erasers =
2642 {
2643 {
2644 .eraseblocks = {
2645 {64 * 1024, 3},
2646 {32 * 1024, 1},
2647 {8 * 1024, 2},
2648 {16 * 1024, 1},
2649 },
2650 .block_erase = erase_block_82802ab,
2651 }, {
2652 .eraseblocks = {
2653 {64 * 1024, 4},
2654 },
2655 .block_erase = NULL, /* TODO: Implement. */
2656 },
2657 },
2658 .printlock = NULL, /* TODO */
2659 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2660 .write = write_82802ab,
2661 .read = read_memmapped,
2662 .voltage = {3000, 3600},
2663 },
2664
2665 {
Andrew Morganca081462011-09-13 22:05:44 +00002666 .vendor = "Catalyst",
2667 .name = "CAT28F512",
2668 .bustype = BUS_PARALLEL,
2669 .manufacture_id = CATALYST_ID,
2670 .model_id = CATALYST_CAT28F512,
2671 .total_size = 64,
2672 .page_size = 0, /* unused */
2673 .feature_bits = 0,
2674 .tested = TEST_OK_PR,
2675 .probe = probe_jedec, /* FIXME! */
2676 .probe_timing = TIMING_ZERO,
2677 .block_erasers =
2678 {
2679 {
2680 .eraseblocks = { {64 * 1024, 1} },
2681 .block_erase = NULL, /* TODO */
2682 },
2683 },
2684 .write = NULL, /* TODO */
2685 .read = read_memmapped,
2686 .voltage = {4500, 5500},
2687 },
2688
2689 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002690 .vendor = "Bright",
2691 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002692 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002693 .manufacture_id = BRIGHT_ID,
2694 .model_id = BRIGHT_BM29F040,
2695 .total_size = 512,
2696 .page_size = 64 * 1024,
2697 .feature_bits = FEATURE_EITHER_RESET,
2698 .tested = TEST_OK_PR,
2699 .probe = probe_jedec,
2700 .probe_timing = TIMING_ZERO,
2701 .block_erasers =
2702 {
2703 {
2704 .eraseblocks = { {64 * 1024, 8} },
2705 .block_erase = erase_sector_jedec,
2706 }, {
2707 .eraseblocks = { {512 * 1024, 1} },
2708 .block_erase = erase_chip_block_jedec,
2709 },
2710 },
2711 .write = write_jedec_1,
2712 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002713 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002714 },
2715
2716 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002717 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002719 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002720 .manufacture_id = ESMT_ID,
2721 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002722 .total_size = 256,
2723 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002724 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002725 .tested = TEST_UNTESTED,
2726 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002728 .block_erasers =
2729 {
2730 {
2731 .eraseblocks = {
2732 {128 * 1024, 1},
2733 {96 * 1024, 1},
2734 {8 * 1024, 2},
2735 {16 * 1024, 1},
2736 },
2737 .block_erase = erase_sector_jedec,
2738 }, {
2739 .eraseblocks = { {256 * 1024, 1} },
2740 .block_erase = erase_chip_block_jedec,
2741 }
2742 },
Sean Nelson35727f72010-01-28 23:55:12 +00002743 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002744 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002745 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002746 },
2747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002748 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00002749 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00002750 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002751 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00002752 .manufacture_id = ESMT_ID,
2753 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002754 .total_size = 1024,
2755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002756 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002757 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002758 .probe = probe_spi_rdid,
2759 .probe_timing = TIMING_ZERO,
2760 .block_erasers =
2761 {
2762 {
2763 .eraseblocks = { {4 * 1024, 256} },
2764 .block_erase = spi_block_erase_20,
2765 }, {
2766 .eraseblocks = { {64 * 1024, 16} },
2767 .block_erase = spi_block_erase_d8,
2768 }, {
2769 .eraseblocks = { {1024 * 1024, 1} },
2770 .block_erase = spi_block_erase_60,
2771 }, {
2772 .eraseblocks = { {1024 * 1024, 1} },
2773 .block_erase = spi_block_erase_c7,
2774 }
2775 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002777 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002778 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002779 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002780 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002781 },
2782
2783 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002784 .vendor = "Eon",
2785 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002786 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002787 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002788 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002789 .total_size = 64,
2790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002791 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002792 .tested = TEST_UNTESTED,
2793 .probe = probe_spi_rdid,
2794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002795 .block_erasers =
2796 {
2797 {
2798 .eraseblocks = {
2799 {4 * 1024, 2},
2800 {8 * 1024, 1},
2801 {16 * 1024, 1},
2802 {32 * 1024, 1},
2803 },
2804 .block_erase = spi_block_erase_d8,
2805 }, {
2806 .eraseblocks = { {64 * 1024, 1} },
2807 .block_erase = spi_block_erase_c7,
2808 }
2809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002811 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002812 .write = spi_chip_write_256,
2813 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002814 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002815 },
2816
2817 {
2818 .vendor = "Eon",
2819 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002820 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002821 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002822 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002823 .total_size = 64,
2824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002825 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002826 .tested = TEST_UNTESTED,
2827 .probe = probe_spi_rdid,
2828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002829 .block_erasers =
2830 {
2831 {
2832 .eraseblocks = {
2833 {32 * 1024, 1},
2834 {16 * 1024, 1},
2835 {8 * 1024, 1},
2836 {4 * 1024, 2},
2837 },
2838 .block_erase = spi_block_erase_d8,
2839 }, {
2840 .eraseblocks = { {64 * 1024, 1} },
2841 .block_erase = spi_block_erase_c7,
2842 }
2843 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002846 .write = spi_chip_write_256,
2847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002848 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002849 },
2850
2851 {
2852 .vendor = "Eon",
2853 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002856 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002857 .total_size = 128,
2858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002859 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002860 .tested = TEST_UNTESTED,
2861 .probe = probe_spi_rdid,
2862 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002863 .block_erasers =
2864 {
2865 {
2866 .eraseblocks = {
2867 {4 * 1024, 2},
2868 {8 * 1024, 1},
2869 {16 * 1024, 1},
2870 {32 * 1024, 3},
2871 },
2872 .block_erase = spi_block_erase_d8,
2873 }, {
2874 .eraseblocks = { {128 * 1024, 1} },
2875 .block_erase = spi_block_erase_c7,
2876 }
2877 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002879 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002880 .write = spi_chip_write_256,
2881 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002882 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002883 },
2884
2885 {
2886 .vendor = "Eon",
2887 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002888 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002889 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002890 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002891 .total_size = 128,
2892 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002893 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002894 .tested = TEST_UNTESTED,
2895 .probe = probe_spi_rdid,
2896 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002897 .block_erasers =
2898 {
2899 {
2900 .eraseblocks = {
2901 {32 * 1024, 3},
2902 {16 * 1024, 1},
2903 {8 * 1024, 1},
2904 {4 * 1024, 2},
2905 },
2906 .block_erase = spi_block_erase_d8,
2907 }, {
2908 .eraseblocks = { {128 * 1024, 1} },
2909 .block_erase = spi_block_erase_c7,
2910 }
2911 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002912 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002913 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002914 .write = spi_chip_write_256,
2915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002916 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002917 },
2918
2919 {
2920 .vendor = "Eon",
2921 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002922 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002923 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002924 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002925 .total_size = 256,
2926 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002927 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002928 .tested = TEST_UNTESTED,
2929 .probe = probe_spi_rdid,
2930 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = {
2935 {4 * 1024, 2},
2936 {8 * 1024, 1},
2937 {16 * 1024, 1},
2938 {32 * 1024, 1},
2939 {64 * 1024, 3}
2940 },
2941 .block_erase = spi_block_erase_d8,
2942 }, {
2943 .eraseblocks = { {256 * 1024, 1} },
2944 .block_erase = spi_block_erase_c7,
2945 }
2946 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002947 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002948 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002949 .write = spi_chip_write_256,
2950 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002951 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002952 },
2953
2954 {
2955 .vendor = "Eon",
2956 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002957 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002958 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002959 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002960 .total_size = 256,
2961 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002962 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002963 .tested = TEST_UNTESTED,
2964 .probe = probe_spi_rdid,
2965 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002966 .block_erasers =
2967 {
2968 {
2969 .eraseblocks = {
2970 {64 * 1024, 3},
2971 {32 * 1024, 1},
2972 {16 * 1024, 1},
2973 {8 * 1024, 1},
2974 {4 * 1024, 2},
2975 },
2976 .block_erase = spi_block_erase_d8,
2977 }, {
2978 .eraseblocks = { {256 * 1024, 1} },
2979 .block_erase = spi_block_erase_c7,
2980 }
2981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002982 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002983 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002984 .write = spi_chip_write_256,
2985 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002986 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002987 },
2988
2989 {
2990 .vendor = "Eon",
2991 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002992 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002993 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002994 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002995 .total_size = 512,
2996 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002997 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002998 .tested = TEST_UNTESTED,
2999 .probe = probe_spi_rdid,
3000 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003001 .block_erasers =
3002 {
3003 {
3004 .eraseblocks = {
3005 {4 * 1024, 2},
3006 {8 * 1024, 1},
3007 {16 * 1024, 1},
3008 {32 * 1024, 1},
3009 {64 * 1024, 7}
3010 },
3011 .block_erase = spi_block_erase_d8,
3012 }, {
3013 .eraseblocks = { {512 * 1024, 1} },
3014 .block_erase = spi_block_erase_c7,
3015 }
3016 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003018 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003019 .write = spi_chip_write_256,
3020 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003021 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003022 },
3023
3024 {
3025 .vendor = "Eon",
3026 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003027 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003028 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003029 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003030 .total_size = 512,
3031 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003032 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003033 .tested = TEST_UNTESTED,
3034 .probe = probe_spi_rdid,
3035 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003036 .block_erasers =
3037 {
3038 {
3039 .eraseblocks = {
3040 {64 * 1024, 7},
3041 {32 * 1024, 1},
3042 {16 * 1024, 1},
3043 {8 * 1024, 1},
3044 {4 * 1024, 2},
3045 },
3046 .block_erase = spi_block_erase_d8,
3047 }, {
3048 .eraseblocks = { {512 * 1024, 1} },
3049 .block_erase = spi_block_erase_c7,
3050 }
3051 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003052 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003053 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003054 .write = spi_chip_write_256,
3055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003056 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003057 },
3058
3059 {
3060 .vendor = "Eon",
3061 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003062 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003063 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003064 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003065 .total_size = 1024,
3066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003067 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003068 .tested = TEST_UNTESTED,
3069 .probe = probe_spi_rdid,
3070 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = {
3075 {4 * 1024, 2},
3076 {8 * 1024, 1},
3077 {16 * 1024, 1},
3078 {32 * 1024, 1},
3079 {64 * 1024, 15}
3080 },
3081 .block_erase = spi_block_erase_d8,
3082 }, {
3083 .eraseblocks = { {1024 * 1024, 1} },
3084 .block_erase = spi_block_erase_c7,
3085 }
3086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003087 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003088 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003089 .write = spi_chip_write_256,
3090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003091 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003092 },
3093
3094 {
3095 .vendor = "Eon",
3096 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003097 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003098 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003099 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003100 .total_size = 1024,
3101 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003102 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003103 .tested = TEST_UNTESTED,
3104 .probe = probe_spi_rdid,
3105 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003106 .block_erasers =
3107 {
3108 {
3109 .eraseblocks = {
3110 {64 * 1024, 15},
3111 {32 * 1024, 1},
3112 {16 * 1024, 1},
3113 {8 * 1024, 1},
3114 {4 * 1024, 2},
3115 },
3116 .block_erase = spi_block_erase_d8,
3117 }, {
3118 .eraseblocks = { {1024 * 1024, 1} },
3119 .block_erase = spi_block_erase_c7,
3120 }
3121 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003122 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003123 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003124 .write = spi_chip_write_256,
3125 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003126 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003127 },
3128
3129 {
3130 .vendor = "Eon",
3131 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003132 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003133 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003134 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 .total_size = 2048,
3136 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003137 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003138 .tested = TEST_UNTESTED,
3139 .probe = probe_spi_rdid,
3140 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003141 .block_erasers =
3142 {
3143 {
3144 .eraseblocks = {
3145 {4 * 1024, 2},
3146 {8 * 1024, 1},
3147 {16 * 1024, 1},
3148 {32 * 1024, 1},
3149 {64 * 1024, 31},
3150 },
3151 .block_erase = spi_block_erase_d8,
3152 }, {
3153 .eraseblocks = { {2 * 1024 * 1024, 1} },
3154 .block_erase = spi_block_erase_c7,
3155 }
3156 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003157 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003158 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003159 .write = spi_chip_write_256,
3160 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003161 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003162 },
3163
3164 {
3165 .vendor = "Eon",
3166 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003167 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003168 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003169 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003170 .total_size = 2048,
3171 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003172 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003173 .tested = TEST_UNTESTED,
3174 .probe = probe_spi_rdid,
3175 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003176 .block_erasers =
3177 {
3178 {
3179 .eraseblocks = {
3180 {64 * 1024, 31},
3181 {32 * 1024, 1},
3182 {16 * 1024, 1},
3183 {8 * 1024, 1},
3184 {4 * 1024, 2},
3185 },
3186 .block_erase = spi_block_erase_d8,
3187 }, {
3188 .eraseblocks = { {2 * 1024 * 1024, 1} },
3189 .block_erase = spi_block_erase_c7,
3190 }
3191 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003192 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003193 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .write = spi_chip_write_256,
3195 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003196 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003197 },
3198
3199 {
3200 .vendor = "Eon",
3201 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003202 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003203 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003204 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003205 .total_size = 4096,
3206 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003207 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003208 .tested = TEST_UNTESTED,
3209 .probe = probe_spi_rdid,
3210 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003211 .block_erasers =
3212 {
3213 {
3214 .eraseblocks = {
3215 {4 * 1024, 2},
3216 {8 * 1024, 1},
3217 {16 * 1024, 1},
3218 {32 * 1024, 1},
3219 {64 * 1024, 63},
3220 },
3221 .block_erase = spi_block_erase_d8,
3222 }, {
3223 .eraseblocks = { {4 * 1024 * 1024, 1} },
3224 .block_erase = spi_block_erase_c7,
3225 }
3226 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003227 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003228 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003229 .write = spi_chip_write_256,
3230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003231 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003232 },
3233
3234 {
3235 .vendor = "Eon",
3236 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003237 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003238 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003239 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003240 .total_size = 4096,
3241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003242 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003243 .tested = TEST_UNTESTED,
3244 .probe = probe_spi_rdid,
3245 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003246 .block_erasers =
3247 {
3248 {
3249 .eraseblocks = {
3250 {64 * 1024, 63},
3251 {32 * 1024, 1},
3252 {16 * 1024, 1},
3253 {8 * 1024, 1},
3254 {4 * 1024, 2},
3255 },
3256 .block_erase = spi_block_erase_d8,
3257 }, {
3258 .eraseblocks = { {4 * 1024 * 1024, 1} },
3259 .block_erase = spi_block_erase_c7,
3260 }
3261 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003262 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003263 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003264 .write = spi_chip_write_256,
3265 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003266 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003267 },
3268
3269 {
3270 .vendor = "Eon",
3271 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003272 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003273 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003274 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003275 .total_size = 8192,
3276 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003277 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003278 .tested = TEST_UNTESTED,
3279 .probe = probe_spi_rdid,
3280 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003281 .block_erasers =
3282 {
3283 {
3284 .eraseblocks = {
3285 {4 * 1024, 2},
3286 {8 * 1024, 1},
3287 {16 * 1024, 1},
3288 {32 * 1024, 1},
3289 {64 * 1024, 127},
3290 },
3291 .block_erase = spi_block_erase_d8,
3292 }, {
3293 .eraseblocks = { {8 * 1024 * 1024, 1} },
3294 .block_erase = spi_block_erase_c7,
3295 }
3296 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003298 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003299 .write = spi_chip_write_256,
3300 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003301 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003302 },
3303
3304 {
3305 .vendor = "Eon",
3306 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003307 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003308 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003309 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003310 .total_size = 8192,
3311 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003312 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003313 .tested = TEST_UNTESTED,
3314 .probe = probe_spi_rdid,
3315 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003316 .block_erasers =
3317 {
3318 {
3319 .eraseblocks = {
3320 {64 * 1024, 127},
3321 {32 * 1024, 1},
3322 {16 * 1024, 1},
3323 {8 * 1024, 1},
3324 {4 * 1024, 2},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {8 * 1024 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003334 .write = spi_chip_write_256,
3335 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003341 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003345 .total_size = 64,
3346 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = { {4 * 1024, 16} },
3355 .block_erase = spi_block_erase_20,
3356 }, {
3357 .eraseblocks = { {32 * 1024, 2} },
3358 .block_erase = spi_block_erase_d8,
3359 }, {
3360 .eraseblocks = { {32 * 1024, 2} },
3361 .block_erase = spi_block_erase_52,
3362 }, {
3363 .eraseblocks = { {64 * 1024, 1} },
3364 .block_erase = spi_block_erase_60,
3365 }, {
3366 .eraseblocks = { {64 * 1024, 1} },
3367 .block_erase = spi_block_erase_c7,
3368 }
3369 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003370 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003371 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003372 .write = spi_chip_write_256,
3373 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003374 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003375 },
3376
3377 {
3378 .vendor = "Eon",
3379 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003380 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003381 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003382 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003383 .total_size = 128,
3384 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003385 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003386 .tested = TEST_UNTESTED,
3387 .probe = probe_spi_rdid,
3388 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003389 .block_erasers =
3390 {
3391 {
3392 .eraseblocks = { {4 * 1024, 32} },
3393 .block_erase = spi_block_erase_20,
3394 }, {
3395 .eraseblocks = { {32 * 1024, 4} },
3396 .block_erase = spi_block_erase_d8,
3397 }, {
3398 .eraseblocks = { {32 * 1024, 4} },
3399 .block_erase = spi_block_erase_52,
3400 }, {
3401 .eraseblocks = { {128 * 1024, 1} },
3402 .block_erase = spi_block_erase_60,
3403 }, {
3404 .eraseblocks = { {128 * 1024, 1} },
3405 .block_erase = spi_block_erase_c7,
3406 }
3407 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003408 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003409 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003410 .write = spi_chip_write_256,
3411 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003412 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003413 },
3414
3415 {
3416 .vendor = "Eon",
3417 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003418 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003419 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003420 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003421 .total_size = 256,
3422 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003423 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003424 .tested = TEST_UNTESTED,
3425 .probe = probe_spi_rdid,
3426 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003427 .block_erasers =
3428 {
3429 {
3430 .eraseblocks = { {4 * 1024, 64} },
3431 .block_erase = spi_block_erase_20,
3432 }, {
3433 .eraseblocks = { {64 * 1024, 4} },
3434 .block_erase = spi_block_erase_d8,
3435 }, {
3436 .eraseblocks = { {64 * 1024, 4} },
3437 .block_erase = spi_block_erase_52,
3438 }, {
3439 .eraseblocks = { {256 * 1024, 1} },
3440 .block_erase = spi_block_erase_60,
3441 }, {
3442 .eraseblocks = { {256 * 1024, 1} },
3443 .block_erase = spi_block_erase_c7,
3444 }
3445 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003447 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003448 .write = spi_chip_write_256,
3449 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003450 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003451 },
3452
3453 {
3454 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003455 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003456 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003457 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003458 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003459 .total_size = 512,
3460 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003461 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003462 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003463 .probe = probe_spi_rdid,
3464 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003465 .block_erasers =
3466 {
3467 {
Sean Nelson54596372010-01-09 05:30:14 +00003468 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003469 .block_erase = spi_block_erase_20,
3470 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003471 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003472 .block_erase = spi_block_erase_d8,
3473 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003474 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003475 .block_erase = spi_block_erase_60,
3476 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003477 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003478 .block_erase = spi_block_erase_c7,
3479 },
3480 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003481 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003482 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003483 .write = spi_chip_write_256,
3484 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003485 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003486 },
3487
3488 {
3489 .vendor = "Eon",
3490 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003491 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003492 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003493 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003494 .total_size = 1024,
3495 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003496 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003497 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003498 .probe = probe_spi_rdid,
3499 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003500 .block_erasers =
3501 {
3502 {
3503 .eraseblocks = { {4 * 1024, 256} },
3504 .block_erase = spi_block_erase_20,
3505 }, {
3506 .eraseblocks = { {64 * 1024, 16} },
3507 .block_erase = spi_block_erase_d8,
3508 }, {
3509 .eraseblocks = { {1024 * 1024, 1} },
3510 .block_erase = spi_block_erase_60,
3511 }, {
3512 .eraseblocks = { {1024 * 1024, 1} },
3513 .block_erase = spi_block_erase_c7,
3514 }
3515 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003516 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003517 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003518 .write = spi_chip_write_256,
3519 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003520 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003521 },
3522
3523 {
3524 .vendor = "Eon",
3525 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003526 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003527 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003528 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003529 .total_size = 2048,
3530 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003531 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003532 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003533 .probe = probe_spi_rdid,
3534 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003535 .block_erasers =
3536 {
3537 {
3538 .eraseblocks = { {4 * 1024, 512} },
3539 .block_erase = spi_block_erase_20,
3540 }, {
3541 .eraseblocks = { {64 * 1024, 32} },
3542 .block_erase = spi_block_erase_d8,
3543 }, {
3544 .eraseblocks = { {2 * 1024 * 1024, 1} },
3545 .block_erase = spi_block_erase_60,
3546 }, {
3547 .eraseblocks = { {2 * 1024 * 1024, 1} },
3548 .block_erase = spi_block_erase_c7,
3549 }
3550 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003552 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003553 .write = spi_chip_write_256,
3554 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003555 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003556 },
3557
3558 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003559 .vendor = "Eon",
3560 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003561 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003562 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003563 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003564 .total_size = 4096,
3565 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003566 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003567 .tested = TEST_UNTESTED,
3568 .probe = probe_spi_rdid,
3569 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003570 .block_erasers =
3571 {
3572 {
3573 .eraseblocks = { {4 * 1024, 1024} },
3574 .block_erase = spi_block_erase_20,
3575 }, {
3576 .eraseblocks = { {64 * 1024, 64} },
3577 .block_erase = spi_block_erase_d8,
3578 }, {
3579 .eraseblocks = { {4 * 1024 * 1024, 1} },
3580 .block_erase = spi_block_erase_60,
3581 }, {
3582 .eraseblocks = { {4 * 1024 * 1024, 1} },
3583 .block_erase = spi_block_erase_c7,
3584 }
3585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003587 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003588 .write = spi_chip_write_256,
3589 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003590 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003591 },
3592
3593 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003594 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003595 .name = "EN25F64",
3596 .bustype = BUS_SPI,
3597 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003598 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003599 .total_size = 8192,
3600 .page_size = 256,
3601 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003602 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003603 .probe = probe_spi_rdid,
3604 .probe_timing = TIMING_ZERO,
3605 .block_erasers =
3606 {
3607 {
3608 .eraseblocks = { {4 * 1024, 2048} },
3609 .block_erase = spi_block_erase_20,
3610 }, {
3611 .eraseblocks = { {64 * 1024, 128} },
3612 .block_erase = spi_block_erase_d8,
3613 }, {
3614 .eraseblocks = { {8 * 1024 * 1024, 1} },
3615 .block_erase = spi_block_erase_60,
3616 }, {
3617 .eraseblocks = { {8 * 1024 * 1024, 1} },
3618 .block_erase = spi_block_erase_c7,
3619 }
3620 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003621 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003622 .unlock = spi_disable_blockprotect,
3623 .write = spi_chip_write_256,
3624 .read = spi_chip_read,
3625 .voltage = {2700, 3600},
3626 },
3627
3628 {
3629 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003630 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003631 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003632 .manufacture_id = EON_ID_NOPREFIX,
3633 .model_id = EON_EN25Q40,
3634 .total_size = 512,
3635 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003636 /* OTP: 256B total; enter 0x3A */
3637 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003638 .tested = TEST_UNTESTED,
3639 .probe = probe_spi_rdid,
3640 .probe_timing = TIMING_ZERO,
3641 .block_erasers =
3642 {
3643 {
3644 .eraseblocks = { {4 * 1024, 128} },
3645 .block_erase = spi_block_erase_20,
3646 }, {
3647 .eraseblocks = { {64 * 1024, 8} },
3648 .block_erase = spi_block_erase_d8,
3649 }, {
3650 .eraseblocks = { {512 * 1024, 1} },
3651 .block_erase = spi_block_erase_60,
3652 }, {
3653 .eraseblocks = { {512 * 1024, 1} },
3654 .block_erase = spi_block_erase_c7,
3655 }
3656 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003657 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003658 .unlock = spi_disable_blockprotect,
3659 .write = spi_chip_write_256,
3660 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003661 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003662 },
3663
3664 {
3665 .vendor = "Eon",
3666 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003667 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003668 .manufacture_id = EON_ID_NOPREFIX,
3669 .model_id = EON_EN25Q80,
3670 .total_size = 1024,
3671 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003672 /* OTP: 256B total; enter 0x3A */
3673 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003674 .tested = TEST_UNTESTED,
3675 .probe = probe_spi_rdid,
3676 .probe_timing = TIMING_ZERO,
3677 .block_erasers =
3678 {
3679 {
3680 .eraseblocks = { {4 * 1024, 256} },
3681 .block_erase = spi_block_erase_20,
3682 }, {
3683 .eraseblocks = { {64 * 1024, 16} },
3684 .block_erase = spi_block_erase_d8,
3685 }, {
3686 .eraseblocks = { {1024 * 1024, 1} },
3687 .block_erase = spi_block_erase_60,
3688 }, {
3689 .eraseblocks = { {1024 * 1024, 1} },
3690 .block_erase = spi_block_erase_c7,
3691 }
3692 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003693 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003694 .unlock = spi_disable_blockprotect,
3695 .write = spi_chip_write_256,
3696 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003697 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003698 },
3699
3700 {
3701 /* Note: EN25D16 is an evil twin which shares the model ID
3702 but has different write protection capabilities */
3703 .vendor = "Eon",
3704 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003705 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003706 .manufacture_id = EON_ID_NOPREFIX,
3707 .model_id = EON_EN25Q16,
3708 .total_size = 2048,
3709 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003710 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003712 .tested = TEST_UNTESTED,
3713 .probe = probe_spi_rdid,
3714 .probe_timing = TIMING_ZERO,
3715 .block_erasers =
3716 {
3717 {
3718 .eraseblocks = { {4 * 1024, 512} },
3719 .block_erase = spi_block_erase_20,
3720 }, {
3721 .eraseblocks = { {64 * 1024, 32} },
3722 .block_erase = spi_block_erase_d8,
3723 }, {
3724 /* not supported by Q16 version */
3725 .eraseblocks = { {64 * 1024, 32} },
3726 .block_erase = spi_block_erase_52,
3727 }, {
3728 .eraseblocks = { {2 * 1024 * 1024, 1} },
3729 .block_erase = spi_block_erase_60,
3730 }, {
3731 .eraseblocks = { {2 * 1024 * 1024, 1} },
3732 .block_erase = spi_block_erase_c7,
3733 }
3734 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003735 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003736 .unlock = spi_disable_blockprotect,
3737 .write = spi_chip_write_256,
3738 .read = spi_chip_read,
3739 .voltage = {2700, 3600},
3740 },
3741
3742 {
3743 .vendor = "Eon",
3744 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003745 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003746 .manufacture_id = EON_ID_NOPREFIX,
3747 .model_id = EON_EN25Q32,
3748 .total_size = 4096,
3749 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003750 /* OTP: 512B total; enter 0x3A */
3751 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003752 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003753 .probe = probe_spi_rdid,
3754 .probe_timing = TIMING_ZERO,
3755 .block_erasers =
3756 {
3757 {
3758 .eraseblocks = { {4 * 1024, 1024} },
3759 .block_erase = spi_block_erase_20,
3760 }, {
3761 .eraseblocks = { {64 * 1024, 64} },
3762 .block_erase = spi_block_erase_d8,
3763 }, {
3764 .eraseblocks = { {4 * 1024 * 1024, 1} },
3765 .block_erase = spi_block_erase_60,
3766 }, {
3767 .eraseblocks = { {4 * 1024 * 1024, 1} },
3768 .block_erase = spi_block_erase_c7,
3769 }
3770 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003771 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003772 .unlock = spi_disable_blockprotect,
3773 .write = spi_chip_write_256,
3774 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003775 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003776 },
3777
3778 {
3779 .vendor = "Eon",
3780 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003781 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003782 .manufacture_id = EON_ID_NOPREFIX,
3783 .model_id = EON_EN25Q64,
3784 .total_size = 8192,
3785 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003786 /* OTP: 512B total; enter 0x3A */
3787 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003788 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00003789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
3791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = { {4 * 1024, 2048} },
3795 .block_erase = spi_block_erase_20,
3796 }, {
3797 .eraseblocks = { {64 * 1024, 128} },
3798 .block_erase = spi_block_erase_d8,
3799 }, {
3800 .eraseblocks = { {8 * 1024 * 1024, 1} },
3801 .block_erase = spi_block_erase_60,
3802 }, {
3803 .eraseblocks = { {8 * 1024 * 1024, 1} },
3804 .block_erase = spi_block_erase_c7,
3805 }
3806 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003808 .unlock = spi_disable_blockprotect,
3809 .write = spi_chip_write_256,
3810 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003811 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003812 },
3813
3814 {
3815 .vendor = "Eon",
3816 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003817 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003818 .manufacture_id = EON_ID_NOPREFIX,
3819 .model_id = EON_EN25Q128,
3820 .total_size = 16384,
3821 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003822 /* OTP: 512B total; enter 0x3A */
3823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003824 .tested = TEST_UNTESTED,
3825 .probe = probe_spi_rdid,
3826 .probe_timing = TIMING_ZERO,
3827 .block_erasers =
3828 {
3829 {
3830 .eraseblocks = { {4 * 1024, 4096} },
3831 .block_erase = spi_block_erase_20,
3832 }, {
3833 .eraseblocks = { {64 * 1024, 256} },
3834 .block_erase = spi_block_erase_d8,
3835 }, {
3836 .eraseblocks = { {16 * 1024 * 1024, 1} },
3837 .block_erase = spi_block_erase_60,
3838 }, {
3839 .eraseblocks = { {16 * 1024 * 1024, 1} },
3840 .block_erase = spi_block_erase_c7,
3841 }
3842 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003843 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003844 .unlock = spi_disable_blockprotect,
3845 .write = spi_chip_write_256,
3846 .read = spi_chip_read,
3847 },
3848
3849 {
3850 .vendor = "Eon",
3851 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003852 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003853 .manufacture_id = EON_ID_NOPREFIX,
3854 .model_id = EON_EN25QH16,
3855 .total_size = 2048,
3856 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003857 /* supports SFDP */
3858 /* OTP: 512B total; enter 0x3A */
3859 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003860 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003861 .probe = probe_spi_rdid,
3862 .probe_timing = TIMING_ZERO,
3863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = { {4 * 1024, 512} },
3867 .block_erase = spi_block_erase_20,
3868 }, {
3869 .eraseblocks = { {64 * 1024, 32} },
3870 .block_erase = spi_block_erase_d8,
3871 }, {
3872 .eraseblocks = { {1024 * 2048, 1} },
3873 .block_erase = spi_block_erase_60,
3874 }, {
3875 .eraseblocks = { {1024 * 2048, 1} },
3876 .block_erase = spi_block_erase_c7,
3877 }
3878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003880 .unlock = spi_disable_blockprotect,
3881 .write = spi_chip_write_256,
3882 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003883 .voltage = {2700, 3600},
3884 },
3885
3886 {
3887 .vendor = "Eon",
3888 .name = "EN25QH32",
3889 .bustype = BUS_SPI,
3890 .manufacture_id = EON_ID_NOPREFIX,
3891 .model_id = EON_EN25QH32,
3892 .total_size = 4096,
3893 .page_size = 256,
3894 /* supports SFDP */
3895 /* OTP: 512B total; enter 0x3A */
3896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3897 .tested = TEST_UNTESTED,
3898 .probe = probe_spi_rdid,
3899 .probe_timing = TIMING_ZERO,
3900 .block_erasers =
3901 {
3902 {
3903 .eraseblocks = { {4 * 1024, 1024} },
3904 .block_erase = spi_block_erase_20,
3905 }, {
3906 .eraseblocks = { {64 * 1024, 64} },
3907 .block_erase = spi_block_erase_d8,
3908 }, {
3909 .eraseblocks = { {1024 * 4096, 1} },
3910 .block_erase = spi_block_erase_60,
3911 }, {
3912 .eraseblocks = { {1024 * 4096, 1} },
3913 .block_erase = spi_block_erase_c7,
3914 }
3915 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003916 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Tauner2cef9162012-05-14 01:51:46 +00003917 .unlock = spi_disable_blockprotect,
3918 .write = spi_chip_write_256,
3919 .read = spi_chip_read,
3920 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003921 },
3922
3923 {
3924 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003925 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003926 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003927 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003928 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003929 .total_size = 128,
3930 .page_size = 128,
3931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003932 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003933 .probe = probe_jedec,
3934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3935 .block_erasers =
3936 {
3937 {
3938 .eraseblocks = { {16 * 1024, 8} },
3939 .block_erase = erase_sector_jedec,
3940 },
3941 {
3942 .eraseblocks = { {128 * 1024, 1} },
3943 .block_erase = erase_chip_block_jedec,
3944 },
3945 },
3946 .write = write_jedec_1,
3947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003948 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003949 },
3950
3951 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003952 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003953 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003954 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003955 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003956 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003957 .total_size = 256,
3958 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003959 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003960 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003961 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003962 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003963 .block_erasers =
3964 {
3965 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003966 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003967 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003968 {8 * 1024, 2},
3969 {32 * 1024, 1},
3970 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003971 },
3972 .block_erase = erase_sector_jedec,
3973 }, {
3974 .eraseblocks = { {256 * 1024, 1} },
3975 .block_erase = erase_chip_block_jedec,
3976 },
3977 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003978 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003979 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003980 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003981 },
3982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003983 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003984 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003985 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003986 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003987 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003988 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003989 .total_size = 256,
3990 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003991 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003992 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003993 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003994 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003995 .block_erasers =
3996 {
3997 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003998 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003999 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004000 {32 * 1024, 1},
4001 {8 * 1024, 2},
4002 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004003 },
4004 .block_erase = erase_sector_jedec,
4005 }, {
4006 .eraseblocks = { {256 * 1024, 1} },
4007 .block_erase = erase_chip_block_jedec,
4008 },
4009 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004010 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004012 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004013 },
4014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004015 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004016 .vendor = "Eon",
4017 .name = "EN29LV640B",
4018 .bustype = BUS_PARALLEL,
4019 .manufacture_id = EON_ID,
4020 .model_id = EON_EN29LV640B,
4021 .total_size = 8192,
4022 .page_size = 8192,
4023 .feature_bits = 0,
4024 .tested = TEST_OK_PREW,
4025 .probe = probe_en29lv640b,
4026 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4027 .block_erasers =
4028 {
4029 {
4030 .eraseblocks = {
4031 {8 * 1024, 8},
4032 {64 * 1024, 127},
4033 },
4034 .block_erase = block_erase_en29lv640b,
4035 }, {
4036 .eraseblocks = { {8 * 1024 * 1024, 1} },
4037 .block_erase = block_erase_chip_en29lv640b,
4038 },
4039 },
4040 .write = write_en29lv640b,
4041 .read = read_memmapped,
4042 .voltage = {2700, 3600},
4043 },
4044
4045 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004046 .vendor = "Fujitsu",
4047 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004048 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004049 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004050 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004051 .total_size = 512,
4052 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004053 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004054 .tested = TEST_UNTESTED,
4055 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004056 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004057 .block_erasers =
4058 {
4059 {
4060 .eraseblocks = {
4061 {16 * 1024, 1},
4062 {8 * 1024, 2},
4063 {32 * 1024, 1},
4064 {64 * 1024, 7},
4065 },
Sean Nelson35727f72010-01-28 23:55:12 +00004066 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004067 }, {
4068 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004069 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004070 },
4071 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004072 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004073 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004074 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004075 },
4076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004077 {
4078 .vendor = "Fujitsu",
4079 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004080 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004081 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004082 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004083 .total_size = 512,
4084 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004085 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004086 .tested = TEST_UNTESTED,
4087 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004088 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004089 .block_erasers =
4090 {
4091 {
4092 .eraseblocks = {
4093 {64 * 1024, 7},
4094 {32 * 1024, 1},
4095 {8 * 1024, 2},
4096 {16 * 1024, 1},
4097 },
Sean Nelson35727f72010-01-28 23:55:12 +00004098 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004099 }, {
4100 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004101 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004102 },
4103 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004104 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004106 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004107 },
4108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004109 {
Sean Nelson35727f72010-01-28 23:55:12 +00004110 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004111 .vendor = "Fujitsu",
4112 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004113 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004114 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004115 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004116 .total_size = 512,
4117 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004118 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004119 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004120 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004121 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004122 .block_erasers =
4123 {
4124 {
4125 .eraseblocks = {
4126 {16 * 1024, 1},
4127 {8 * 1024, 2},
4128 {32 * 1024, 1},
4129 {64 * 1024, 7},
4130 },
4131 .block_erase = block_erase_m29f400bt,
4132 }, {
4133 .eraseblocks = { {512 * 1024, 1} },
4134 .block_erase = block_erase_chip_m29f400bt,
4135 },
4136 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004137 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004138 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004139 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004140 },
4141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004142 {
4143 .vendor = "Fujitsu",
4144 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004145 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004146 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004147 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004148 .total_size = 512,
4149 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004150 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004151 .tested = TEST_UNTESTED,
4152 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004153 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004154 .block_erasers =
4155 {
4156 {
4157 .eraseblocks = {
4158 {64 * 1024, 7},
4159 {32 * 1024, 1},
4160 {8 * 1024, 2},
4161 {16 * 1024, 1},
4162 },
4163 .block_erase = block_erase_m29f400bt,
4164 }, {
4165 .eraseblocks = { {512 * 1024, 1} },
4166 .block_erase = block_erase_chip_m29f400bt,
4167 },
4168 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004169 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004170 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004171 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004172 },
4173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004174 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004175 .vendor = "GigaDevice",
4176 .name = "GD25Q20",
4177 .bustype = BUS_SPI,
4178 .manufacture_id = GIGADEVICE_ID,
4179 .model_id = GIGADEVICE_GD25Q20,
4180 .total_size = 256,
4181 .page_size = 256,
4182 .feature_bits = FEATURE_WRSR_WREN,
4183 .tested = TEST_UNTESTED,
4184 .probe = probe_spi_rdid,
4185 .probe_timing = TIMING_ZERO,
4186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = { {4 * 1024, 64} },
4190 .block_erase = spi_block_erase_20,
4191 }, {
4192 .eraseblocks = { {32 * 1024, 8} },
4193 .block_erase = spi_block_erase_52,
4194 }, {
4195 .eraseblocks = { {64 * 1024, 4} },
4196 .block_erase = spi_block_erase_d8,
4197 }, {
4198 .eraseblocks = { {256 * 1024, 1} },
4199 .block_erase = spi_block_erase_60,
4200 }, {
4201 .eraseblocks = { {256 * 1024, 1} },
4202 .block_erase = spi_block_erase_c7,
4203 }
4204 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004205 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004206 .unlock = spi_disable_blockprotect,
4207 .write = spi_chip_write_256,
4208 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004209 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004210 },
4211
4212 {
4213 .vendor = "GigaDevice",
4214 .name = "GD25Q40",
4215 .bustype = BUS_SPI,
4216 .manufacture_id = GIGADEVICE_ID,
4217 .model_id = GIGADEVICE_GD25Q40,
4218 .total_size = 512,
4219 .page_size = 256,
4220 .feature_bits = FEATURE_WRSR_WREN,
4221 .tested = TEST_UNTESTED,
4222 .probe = probe_spi_rdid,
4223 .probe_timing = TIMING_ZERO,
4224 .block_erasers =
4225 {
4226 {
4227 .eraseblocks = { {4 * 1024, 128} },
4228 .block_erase = spi_block_erase_20,
4229 }, {
4230 .eraseblocks = { {32 * 1024, 16} },
4231 .block_erase = spi_block_erase_52,
4232 }, {
4233 .eraseblocks = { {64 * 1024, 8} },
4234 .block_erase = spi_block_erase_d8,
4235 }, {
4236 .eraseblocks = { {512 * 1024, 1} },
4237 .block_erase = spi_block_erase_60,
4238 }, {
4239 .eraseblocks = { {512 * 1024, 1} },
4240 .block_erase = spi_block_erase_c7,
4241 }
4242 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004243 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004244 .unlock = spi_disable_blockprotect,
4245 .write = spi_chip_write_256,
4246 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004247 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004248 },
4249
4250 {
4251 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004252 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004253 .bustype = BUS_SPI,
4254 .manufacture_id = GIGADEVICE_ID,
4255 .model_id = GIGADEVICE_GD25Q80,
4256 .total_size = 1024,
4257 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004258 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4260 .tested = TEST_OK_PREW,
4261 .probe = probe_spi_rdid,
4262 .probe_timing = TIMING_ZERO,
4263 .block_erasers =
4264 {
4265 {
4266 .eraseblocks = { {4 * 1024, 256} },
4267 .block_erase = spi_block_erase_20,
4268 }, {
4269 .eraseblocks = { {32 * 1024, 32} },
4270 .block_erase = spi_block_erase_52,
4271 }, {
4272 .eraseblocks = { {64 * 1024, 16} },
4273 .block_erase = spi_block_erase_d8,
4274 }, {
4275 .eraseblocks = { {1024 * 1024, 1} },
4276 .block_erase = spi_block_erase_60,
4277 }, {
4278 .eraseblocks = { {1024 * 1024, 1} },
4279 .block_erase = spi_block_erase_c7,
4280 }
4281 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004282 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004283 .unlock = spi_disable_blockprotect,
4284 .write = spi_chip_write_256,
4285 .read = spi_chip_read,
4286 .voltage = {2700, 3600},
4287 },
4288
4289 {
4290 .vendor = "GigaDevice",
4291 .name = "GD25Q16",
4292 .bustype = BUS_SPI,
4293 .manufacture_id = GIGADEVICE_ID,
4294 .model_id = GIGADEVICE_GD25Q16,
4295 .total_size = 2048,
4296 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004297 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004298 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4299 .tested = TEST_UNTESTED,
4300 .probe = probe_spi_rdid,
4301 .probe_timing = TIMING_ZERO,
4302 .block_erasers =
4303 {
4304 {
4305 .eraseblocks = { {4 * 1024, 512} },
4306 .block_erase = spi_block_erase_20,
4307 }, {
4308 .eraseblocks = { {32 * 1024, 64} },
4309 .block_erase = spi_block_erase_52,
4310 }, {
4311 .eraseblocks = { {64 * 1024, 32} },
4312 .block_erase = spi_block_erase_d8,
4313 }, {
4314 .eraseblocks = { {2 * 1024 * 1024, 1} },
4315 .block_erase = spi_block_erase_60,
4316 }, {
4317 .eraseblocks = { {2 * 1024 * 1024, 1} },
4318 .block_erase = spi_block_erase_c7,
4319 }
4320 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004321 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004322 .unlock = spi_disable_blockprotect,
4323 .write = spi_chip_write_256,
4324 .read = spi_chip_read,
4325 .voltage = {2700, 3600},
4326 },
4327
4328 {
4329 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004330 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004331 .bustype = BUS_SPI,
4332 .manufacture_id = GIGADEVICE_ID,
4333 .model_id = GIGADEVICE_GD25Q32,
4334 .total_size = 4096,
4335 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004336 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004337 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4338 .tested = TEST_UNTESTED,
4339 .probe = probe_spi_rdid,
4340 .probe_timing = TIMING_ZERO,
4341 .block_erasers =
4342 {
4343 {
4344 .eraseblocks = { {4 * 1024, 1024} },
4345 .block_erase = spi_block_erase_20,
4346 }, {
4347 .eraseblocks = { {32 * 1024, 128} },
4348 .block_erase = spi_block_erase_52,
4349 }, {
4350 .eraseblocks = { {64 * 1024, 64} },
4351 .block_erase = spi_block_erase_d8,
4352 }, {
4353 .eraseblocks = { {4 * 1024 * 1024, 1} },
4354 .block_erase = spi_block_erase_60,
4355 }, {
4356 .eraseblocks = { {4 * 1024 * 1024, 1} },
4357 .block_erase = spi_block_erase_c7,
4358 }
4359 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004360 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004361 .unlock = spi_disable_blockprotect,
4362 .write = spi_chip_write_256,
4363 .read = spi_chip_read,
4364 .voltage = {2700, 3600},
4365 },
4366
4367 {
4368 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004369 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004370 .bustype = BUS_SPI,
4371 .manufacture_id = GIGADEVICE_ID,
4372 .model_id = GIGADEVICE_GD25Q64,
4373 .total_size = 8192,
4374 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004375 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004376 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004377 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004378 .probe = probe_spi_rdid,
4379 .probe_timing = TIMING_ZERO,
4380 .block_erasers =
4381 {
4382 {
4383 .eraseblocks = { {4 * 1024, 2048} },
4384 .block_erase = spi_block_erase_20,
4385 }, {
4386 .eraseblocks = { {32 * 1024, 256} },
4387 .block_erase = spi_block_erase_52,
4388 }, {
4389 .eraseblocks = { {64 * 1024, 128} },
4390 .block_erase = spi_block_erase_d8,
4391 }, {
4392 .eraseblocks = { {8 * 1024 * 1024, 1} },
4393 .block_erase = spi_block_erase_60,
4394 }, {
4395 .eraseblocks = { {8 * 1024 * 1024, 1} },
4396 .block_erase = spi_block_erase_c7,
4397 }
4398 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004399 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004400 .unlock = spi_disable_blockprotect,
4401 .write = spi_chip_write_256,
4402 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004403 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004404 },
4405
4406 {
4407 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00004408 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004409 .bustype = BUS_SPI,
4410 .manufacture_id = GIGADEVICE_ID,
4411 .model_id = GIGADEVICE_GD25Q128,
4412 .total_size = 16384,
4413 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004414 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004415 .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 {
4422 .eraseblocks = { {4 * 1024, 4096} },
4423 .block_erase = spi_block_erase_20,
4424 }, {
4425 .eraseblocks = { {32 * 1024, 512} },
4426 .block_erase = spi_block_erase_52,
4427 }, {
4428 .eraseblocks = { {64 * 1024, 256} },
4429 .block_erase = spi_block_erase_d8,
4430 }, {
4431 .eraseblocks = { {16 * 1024 * 1024, 1} },
4432 .block_erase = spi_block_erase_60,
4433 }, {
4434 .eraseblocks = { {16 * 1024 * 1024, 1} },
4435 .block_erase = spi_block_erase_c7,
4436 }
4437 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004438 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004439 .unlock = spi_disable_blockprotect,
4440 .write = spi_chip_write_256,
4441 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004442 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004443 },
4444
4445 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004446 .vendor = "GigaDevice",
4447 .name = "GD25LQ32",
4448 .bustype = BUS_SPI,
4449 .manufacture_id = GIGADEVICE_ID,
4450 .model_id = GIGADEVICE_GD25LQ32,
4451 .total_size = 4096,
4452 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004453 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004455 .tested = TEST_OK_PREW,
4456 .probe = probe_spi_rdid,
4457 .probe_timing = TIMING_ZERO,
4458 .block_erasers =
4459 {
4460 {
4461 .eraseblocks = { {4 * 1024, 1024} },
4462 .block_erase = spi_block_erase_20,
4463 }, {
4464 .eraseblocks = { {32 * 1024, 128} },
4465 .block_erase = spi_block_erase_52,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 64} },
4468 .block_erase = spi_block_erase_d8,
4469 }, {
4470 .eraseblocks = { {4 * 1024 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { {4 * 1024 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner278ba6e2013-06-28 21:28:27 +00004477 .printlock = spi_prettyprint_status_register_default_bp4,
4478 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004479 .unlock = spi_disable_blockprotect,
4480 .write = spi_chip_write_256,
4481 .read = spi_chip_read,
4482 .voltage = {1700, 1950},
4483 },
4484
4485 {
David Borgc96a8bd2010-06-21 16:12:22 +00004486 .vendor = "Hyundai",
4487 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004488 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004489 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004490 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004491 .total_size = 256,
4492 .page_size = 256 * 1024,
4493 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004494 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004495 .probe = probe_jedec,
4496 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4497 .block_erasers =
4498 {
4499 {
4500 .eraseblocks = {
4501 {64 * 1024, 3},
4502 {32 * 1024, 1},
4503 {8 * 1024, 2},
4504 {16 * 1024, 1},
4505 },
4506 .block_erase = erase_sector_jedec,
4507 }, {
4508 .eraseblocks = { {256 * 1024, 1} },
4509 .block_erase = erase_chip_block_jedec,
4510 },
4511 },
4512 .write = write_jedec_1,
4513 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004514 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004515 },
4516
4517 {
4518 .vendor = "Hyundai",
4519 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004520 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004521 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004522 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004523 .total_size = 256,
4524 .page_size = 256 * 1024,
4525 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4526 .tested = TEST_UNTESTED,
4527 .probe = probe_jedec,
4528 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4529 .block_erasers =
4530 {
4531 {
4532 .eraseblocks = {
4533 {16 * 1024, 1},
4534 {8 * 1024, 2},
4535 {32 * 1024, 1},
4536 {64 * 1024, 3},
4537 },
4538 .block_erase = erase_sector_jedec,
4539 }, {
4540 .eraseblocks = { {256 * 1024, 1} },
4541 .block_erase = erase_chip_block_jedec,
4542 },
4543 },
4544 .write = write_jedec_1,
4545 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004546 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004547 },
4548
4549 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004550 .vendor = "Hyundai",
4551 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004552 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004553 .manufacture_id = HYUNDAI_ID,
4554 .model_id = HYUNDAI_HY29F040A,
4555 .total_size = 512,
4556 .page_size = 64 * 1024,
4557 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4558 .tested = TEST_UNTESTED,
4559 .probe = probe_jedec,
4560 .probe_timing = TIMING_ZERO,
4561 .block_erasers =
4562 {
4563 {
4564 .eraseblocks = { {64 * 1024, 8} },
4565 .block_erase = erase_sector_jedec,
4566 }, {
4567 .eraseblocks = { {512 * 1024, 1} },
4568 .block_erase = erase_chip_block_jedec,
4569 },
4570 },
4571 .write = write_jedec_1,
4572 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004573 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004574 },
4575
4576 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004577 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00004578 .name = "25F160S33B8",
4579 .bustype = BUS_SPI,
4580 .manufacture_id = INTEL_ID,
4581 .model_id = INTEL_25F160S33B8,
4582 .total_size = 2048,
4583 .page_size = 256,
4584 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4585 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4586 .tested = TEST_UNTESTED,
4587 .probe = probe_spi_rdid,
4588 .probe_timing = TIMING_ZERO,
4589 .block_erasers =
4590 {
4591 {
4592 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4593 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4594 * have no effect on the memory contents, but sets a flag in the SR.
4595 .eraseblocks = {
4596 {8 * 1024, 8},
4597 {64 * 1024, 31} // inaccessible
4598 },
4599 .block_erase = spi_block_erase_40,
4600 }, { */
4601 .eraseblocks = { {64 * 1024, 32} },
4602 .block_erase = spi_block_erase_d8,
4603 }, {
4604 .eraseblocks = { {2 * 1024 * 1024, 1} },
4605 .block_erase = spi_block_erase_c7,
4606 }
4607 },
4608 .printlock = spi_prettyprint_status_register_s33,
4609 .unlock = spi_disable_blockprotect_s33,
4610 .write = spi_chip_write_256,
4611 .read = spi_chip_read, /* also fast read 0x0B */
4612 .voltage = {2700, 3600},
4613 },
4614
4615 {
4616 .vendor = "Intel",
4617 .name = "25F160S33T8",
4618 .bustype = BUS_SPI,
4619 .manufacture_id = INTEL_ID,
4620 .model_id = INTEL_25F160S33T8,
4621 .total_size = 2048,
4622 .page_size = 256,
4623 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4624 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4625 .tested = TEST_UNTESTED,
4626 .probe = probe_spi_rdid,
4627 .probe_timing = TIMING_ZERO,
4628 .block_erasers =
4629 {
4630 {
4631 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4632 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4633 * have no effect on the memory contents, but sets a flag in the SR.
4634 .eraseblocks = {
4635 {64 * 1024, 31}, // inaccessible
4636 {8 * 1024, 8}
4637 },
4638 .block_erase = spi_block_erase_40,
4639 }, { */
4640 .eraseblocks = { {64 * 1024, 32} },
4641 .block_erase = spi_block_erase_d8,
4642 }, {
4643 .eraseblocks = { {2 * 1024 * 1024, 1} },
4644 .block_erase = spi_block_erase_c7,
4645 }
4646 },
4647 .printlock = spi_prettyprint_status_register_s33,
4648 .unlock = spi_disable_blockprotect_s33,
4649 .write = spi_chip_write_256,
4650 .read = spi_chip_read, /* also fast read 0x0B */
4651 .voltage = {2700, 3600},
4652 },
4653
4654 {
4655 .vendor = "Intel",
4656 .name = "25F320S33B8",
4657 .bustype = BUS_SPI,
4658 .manufacture_id = INTEL_ID,
4659 .model_id = INTEL_25F320S33B8,
4660 .total_size = 4096,
4661 .page_size = 256,
4662 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4663 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4664 .tested = TEST_UNTESTED,
4665 .probe = probe_spi_rdid,
4666 .probe_timing = TIMING_ZERO,
4667 .block_erasers =
4668 {
4669 {
4670 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4671 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4672 * have no effect on the memory contents, but sets a flag in the SR.
4673 .eraseblocks = {
4674 {8 * 1024, 8},
4675 {64 * 1024, 63} // inaccessible
4676 },
4677 .block_erase = spi_block_erase_40,
4678 }, { */
4679 .eraseblocks = { {64 * 1024, 64} },
4680 .block_erase = spi_block_erase_d8,
4681 }, {
4682 .eraseblocks = { {4 * 1024 * 1024, 1} },
4683 .block_erase = spi_block_erase_c7,
4684 }
4685 },
4686 .printlock = spi_prettyprint_status_register_s33,
4687 .unlock = spi_disable_blockprotect_s33,
4688 .write = spi_chip_write_256,
4689 .read = spi_chip_read, /* also fast read 0x0B */
4690 .voltage = {2700, 3600},
4691 },
4692
4693 {
4694 .vendor = "Intel",
4695 .name = "25F320S33T8",
4696 .bustype = BUS_SPI,
4697 .manufacture_id = INTEL_ID,
4698 .model_id = INTEL_25F320S33T8,
4699 .total_size = 4096,
4700 .page_size = 256,
4701 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4703 .tested = TEST_UNTESTED,
4704 .probe = probe_spi_rdid,
4705 .probe_timing = TIMING_ZERO,
4706 .block_erasers =
4707 {
4708 {
4709 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4710 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4711 * have no effect on the memory contents, but sets a flag in the SR.
4712 .eraseblocks = {
4713 {64 * 1024, 63}, // inaccessible
4714 {8 * 1024, 8}
4715 },
4716 .block_erase = spi_block_erase_40,
4717 }, { */
4718 .eraseblocks = { {64 * 1024, 64} },
4719 .block_erase = spi_block_erase_d8,
4720 }, {
4721 .eraseblocks = { {4 * 1024 * 1024, 1} },
4722 .block_erase = spi_block_erase_c7,
4723 }
4724 },
4725 .printlock = spi_prettyprint_status_register_s33,
4726 .unlock = spi_disable_blockprotect_s33,
4727 .write = spi_chip_write_256,
4728 .read = spi_chip_read, /* also fast read 0x0B */
4729 .voltage = {2700, 3600},
4730 },
4731
4732 {
4733 .vendor = "Intel",
4734 .name = "25F640S33B8",
4735 .bustype = BUS_SPI,
4736 .manufacture_id = INTEL_ID,
4737 .model_id = INTEL_25F640S33B8,
4738 .total_size = 8192,
4739 .page_size = 256,
4740 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4741 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4742 .tested = TEST_UNTESTED,
4743 .probe = probe_spi_rdid,
4744 .probe_timing = TIMING_ZERO,
4745 .block_erasers =
4746 {
4747 {
4748 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4749 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4750 * have no effect on the memory contents, but sets a flag in the SR.
4751 .eraseblocks = {
4752 {8 * 1024, 8},
4753 {64 * 1024, 127} // inaccessible
4754 },
4755 .block_erase = spi_block_erase_40,
4756 }, { */
4757 .eraseblocks = { {64 * 1024, 128} },
4758 .block_erase = spi_block_erase_d8,
4759 }, {
4760 .eraseblocks = { {8 * 1024 * 1024, 1} },
4761 .block_erase = spi_block_erase_c7,
4762 }
4763 },
4764 .printlock = spi_prettyprint_status_register_s33,
4765 .unlock = spi_disable_blockprotect_s33,
4766 .write = spi_chip_write_256,
4767 .read = spi_chip_read, /* also fast read 0x0B */
4768 .voltage = {2700, 3600},
4769 },
4770
4771 {
4772 .vendor = "Intel",
4773 .name = "25F640S33T8",
4774 .bustype = BUS_SPI,
4775 .manufacture_id = INTEL_ID,
4776 .model_id = INTEL_25F640S33T8,
4777 .total_size = 8192,
4778 .page_size = 256,
4779 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4780 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4781 .tested = TEST_UNTESTED,
4782 .probe = probe_spi_rdid,
4783 .probe_timing = TIMING_ZERO,
4784 .block_erasers =
4785 {
4786 {
4787 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4788 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4789 * have no effect on the memory contents, but sets a flag in the SR.
4790 .eraseblocks = {
4791 {64 * 1024, 127}, // inaccessible
4792 {8 * 1024, 8}
4793 },
4794 .block_erase = spi_block_erase_40,
4795 }, { */
4796 .eraseblocks = { {64 * 1024, 128} },
4797 .block_erase = spi_block_erase_d8,
4798 }, {
4799 .eraseblocks = { {8 * 1024 * 1024, 1} },
4800 .block_erase = spi_block_erase_c7,
4801 }
4802 },
4803 .printlock = spi_prettyprint_status_register_s33,
4804 .unlock = spi_disable_blockprotect_s33,
4805 .write = spi_chip_write_256,
4806 .read = spi_chip_read, /* also fast read 0x0B */
4807 .voltage = {2700, 3600},
4808 },
4809
4810 {
4811 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004812 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004813 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004814 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004815 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004816 .total_size = 128,
4817 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004818 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004819 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004820 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004821 .block_erasers =
4822 {
4823 {
4824 .eraseblocks = {
4825 {8 * 1024, 1},
4826 {4 * 1024, 2},
4827 {112 * 1024, 1},
4828 },
Sean Nelson28accc22010-03-19 18:47:06 +00004829 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004830 },
4831 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004832 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004834 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004835 },
4836
4837 {
4838 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004839 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004840 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004841 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004842 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004843 .total_size = 128,
4844 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004845 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004846 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004847 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004848 .block_erasers =
4849 {
4850 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004851 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004852 {112 * 1024, 1},
4853 {4 * 1024, 2},
4854 {8 * 1024, 1},
4855 },
Sean Nelson28accc22010-03-19 18:47:06 +00004856 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004857 },
4858 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004859 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004861 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004862 },
4863
4864 {
4865 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004866 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004867 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004868 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004869 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004870 .total_size = 256,
4871 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004872 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004873 .probe = probe_82802ab,
4874 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4875 .block_erasers =
4876 {
4877 {
4878 .eraseblocks = {
4879 {128 * 1024, 1},
4880 {96 * 1024, 1},
4881 {8 * 1024, 2},
4882 {16 * 1024, 1},
4883 },
4884 .block_erase = erase_block_82802ab,
4885 },
4886 },
4887 .write = write_82802ab,
4888 .read = read_memmapped,
4889 },
4890
4891 {
4892 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004893 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004894 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004895 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004896 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004897 .total_size = 512,
4898 .page_size = 256,
4899 .tested = TEST_UNTESTED,
4900 .probe = probe_82802ab,
4901 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004902 .block_erasers =
4903 {
4904 {
4905 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004906 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004907 },
4908 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004909 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004910 .write = write_82802ab,
4911 .read = read_memmapped,
4912 },
4913
4914 {
4915 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004916 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004917 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004918 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004919 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004920 .total_size = 512,
4921 .page_size = 128 * 1024, /* maximal block size */
4922 .tested = TEST_UNTESTED,
4923 .probe = probe_82802ab,
4924 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = {
4929 {16 * 1024, 1},
4930 {8 * 1024, 2},
4931 {96 * 1024, 1},
4932 {128 * 1024, 3},
4933 },
4934 .block_erase = erase_block_82802ab,
4935 },
4936 },
4937 .write = write_82802ab,
4938 .read = read_memmapped,
4939 },
4940
4941 {
4942 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004943 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004944 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004945 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004946 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004947 .total_size = 512,
4948 .page_size = 128 * 1024, /* maximal block size */
4949 .tested = TEST_UNTESTED,
4950 .probe = probe_82802ab,
4951 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4952 .block_erasers =
4953 {
4954 {
4955 .eraseblocks = {
4956 {128 * 1024, 3},
4957 {96 * 1024, 1},
4958 {8 * 1024, 2},
4959 {16 * 1024, 1},
4960 },
4961 .block_erase = erase_block_82802ab,
4962 },
4963 },
4964 .write = write_82802ab,
4965 .read = read_memmapped,
4966 },
4967
4968 {
4969 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004970 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004971 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004972 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004973 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004974 .total_size = 512,
4975 .page_size = 128 * 1024, /* maximal block size */
4976 .feature_bits = FEATURE_ADDR_SHIFTED,
4977 .tested = TEST_UNTESTED,
4978 .probe = probe_82802ab,
4979 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4980 .block_erasers =
4981 {
4982 {
4983 .eraseblocks = {
4984 {16 * 1024, 1},
4985 {8 * 1024, 2},
4986 {96 * 1024, 1},
4987 {128 * 1024, 3},
4988 },
4989 .block_erase = erase_block_82802ab,
4990 },
4991 },
4992 .write = write_82802ab,
4993 .read = read_memmapped,
4994 },
4995
4996 {
4997 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004998 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004999 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005000 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005001 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005002 .total_size = 512,
5003 .page_size = 128 * 1024, /* maximal block size */
5004 .feature_bits = FEATURE_ADDR_SHIFTED,
5005 .tested = TEST_UNTESTED,
5006 .probe = probe_82802ab,
5007 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5008 .block_erasers =
5009 {
5010 {
5011 .eraseblocks = {
5012 {128 * 1024, 3},
5013 {96 * 1024, 1},
5014 {8 * 1024, 2},
5015 {16 * 1024, 1},
5016 },
5017 .block_erase = erase_block_82802ab,
5018 },
5019 },
5020 .write = write_82802ab,
5021 .read = read_memmapped,
5022 },
5023
5024 {
5025 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005026 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005027 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005028 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005029 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005030 .total_size = 512,
5031 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005032 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005033 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005034 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005035 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005036 .block_erasers =
5037 {
5038 {
5039 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005040 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005041 },
5042 },
Sean Nelson28accc22010-03-19 18:47:06 +00005043 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005046 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005047 },
5048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005049 {
5050 .vendor = "Intel",
5051 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005052 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005053 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005054 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005055 .total_size = 1024,
5056 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005057 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005058 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005059 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005060 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005061 .block_erasers =
5062 {
5063 {
5064 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005065 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005066 },
5067 },
Sean Nelson28accc22010-03-19 18:47:06 +00005068 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005069 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005071 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005072 },
5073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005074 {
5075 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005076 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005077 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005078 .manufacture_id = MACRONIX_ID,
5079 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005080 .total_size = 64,
5081 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005082 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005083 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005084 .tested = TEST_UNTESTED,
5085 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005086 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005087 .block_erasers =
5088 {
5089 {
5090 .eraseblocks = { {4 * 1024, 16} },
5091 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005092 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005093 .eraseblocks = { {64 * 1024, 1} },
5094 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005095 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005096 .eraseblocks = { {64 * 1024, 1} },
5097 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005098 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005099 .eraseblocks = { {64 * 1024, 1} },
5100 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005101 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005102 .eraseblocks = { {64 * 1024, 1} },
5103 .block_erase = spi_block_erase_c7,
5104 },
5105 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005106 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005107 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005108 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005109 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5110 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005111 },
5112
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005113 {
5114 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005115 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005116 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005117 .manufacture_id = MACRONIX_ID,
5118 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005119 .total_size = 128,
5120 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005121 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005122 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005123 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005125 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005126 .block_erasers =
5127 {
5128 {
5129 .eraseblocks = { {4 * 1024, 32} },
5130 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005131 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005132 .eraseblocks = { {64 * 1024, 2} },
5133 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005134 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005135 .eraseblocks = { {128 * 1024, 1} },
5136 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005137 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005138 .eraseblocks = { {128 * 1024, 1} },
5139 .block_erase = spi_block_erase_c7,
5140 },
5141 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005142 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005143 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005144 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005145 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005146 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005147 },
5148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005149 {
5150 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005151 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005152 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005153 .manufacture_id = MACRONIX_ID,
5154 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005155 .total_size = 256,
5156 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005157 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 .tested = TEST_UNTESTED,
5159 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005160 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005161 .block_erasers =
5162 {
5163 {
5164 .eraseblocks = { {4 * 1024, 64} },
5165 .block_erase = spi_block_erase_20,
5166 }, {
5167 .eraseblocks = { {64 * 1024, 4} },
5168 .block_erase = spi_block_erase_52,
5169 }, {
5170 .eraseblocks = { {64 * 1024, 4} },
5171 .block_erase = spi_block_erase_d8,
5172 }, {
5173 .eraseblocks = { {256 * 1024, 1} },
5174 .block_erase = spi_block_erase_60,
5175 }, {
5176 .eraseblocks = { {256 * 1024, 1} },
5177 .block_erase = spi_block_erase_c7,
5178 },
5179 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005180 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005181 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005182 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005183 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005184 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005185 },
5186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005187 {
5188 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005189 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005190 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005191 .manufacture_id = MACRONIX_ID,
5192 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005193 .total_size = 512,
5194 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005195 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005196 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005197 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005198 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005199 .block_erasers =
5200 {
5201 {
5202 .eraseblocks = { {4 * 1024, 128} },
5203 .block_erase = spi_block_erase_20,
5204 }, {
5205 .eraseblocks = { {64 * 1024, 8} },
5206 .block_erase = spi_block_erase_52,
5207 }, {
5208 .eraseblocks = { {64 * 1024, 8} },
5209 .block_erase = spi_block_erase_d8,
5210 }, {
5211 .eraseblocks = { {512 * 1024, 1} },
5212 .block_erase = spi_block_erase_60,
5213 }, {
5214 .eraseblocks = { {512 * 1024, 1} },
5215 .block_erase = spi_block_erase_c7,
5216 },
5217 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005218 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005219 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005220 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005221 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005222 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005223 },
5224
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005225 {
5226 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005227 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005228 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005229 .manufacture_id = MACRONIX_ID,
5230 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005231 .total_size = 1024,
5232 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005233 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005234 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005236 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005237 .block_erasers =
5238 {
5239 {
5240 .eraseblocks = { {4 * 1024, 256} },
5241 .block_erase = spi_block_erase_20,
5242 }, {
5243 .eraseblocks = { {64 * 1024, 16} },
5244 .block_erase = spi_block_erase_52,
5245 }, {
5246 .eraseblocks = { {64 * 1024, 16} },
5247 .block_erase = spi_block_erase_d8,
5248 }, {
5249 .eraseblocks = { {1024 * 1024, 1} },
5250 .block_erase = spi_block_erase_60,
5251 }, {
5252 .eraseblocks = { {1024 * 1024, 1} },
5253 .block_erase = spi_block_erase_c7,
5254 },
5255 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005256 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005258 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005259 .read = spi_chip_read, /* Fast read (0x0B) supported */
5260 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00005261 },
5262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005263 {
5264 .vendor = "Macronix",
5265 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005266 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005267 .manufacture_id = MACRONIX_ID,
5268 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005269 .total_size = 2048,
5270 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005271 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005272 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005273 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005274 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005275 .block_erasers =
5276 {
5277 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005278 .eraseblocks = { {64 * 1024, 32} },
5279 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005280 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005281 .eraseblocks = { {64 * 1024, 32} },
5282 .block_erase = spi_block_erase_d8,
5283 }, {
5284 .eraseblocks = { {2 * 1024 * 1024, 1} },
5285 .block_erase = spi_block_erase_60,
5286 }, {
5287 .eraseblocks = { {2 * 1024 * 1024, 1} },
5288 .block_erase = spi_block_erase_c7,
5289 },
5290 },
5291 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
5292 .unlock = spi_disable_blockprotect,
5293 .write = spi_chip_write_256,
5294 .read = spi_chip_read, /* Fast read (0x0B) supported */
5295 .voltage = {2700, 3600},
5296 },
5297
5298 {
5299 .vendor = "Macronix",
5300 .name = "MX25L1605A/MX25L1606E",
5301 .bustype = BUS_SPI,
5302 .manufacture_id = MACRONIX_ID,
5303 .model_id = MACRONIX_MX25L1605,
5304 .total_size = 2048,
5305 .page_size = 256,
5306 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
5307 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5308 .tested = TEST_OK_PREW,
5309 .probe = probe_spi_rdid,
5310 .probe_timing = TIMING_ZERO,
5311 .block_erasers =
5312 {
5313 {
5314 .eraseblocks = { {4 * 1024, 512} },
5315 .block_erase = spi_block_erase_20,
5316 }, {
5317 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005318 .block_erase = spi_block_erase_52,
5319 }, {
5320 .eraseblocks = { {64 * 1024, 32} },
5321 .block_erase = spi_block_erase_d8,
5322 }, {
5323 .eraseblocks = { {2 * 1024 * 1024, 1} },
5324 .block_erase = spi_block_erase_60,
5325 }, {
5326 .eraseblocks = { {2 * 1024 * 1024, 1} },
5327 .block_erase = spi_block_erase_c7,
5328 },
5329 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005330 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005331 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005332 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005333 .read = spi_chip_read, /* Fast read (0x0B) supported */
5334 .voltage = {2700, 3600},
5335 },
5336
5337 {
5338 .vendor = "Macronix",
5339 .name = "MX25L1605D/MX25L1608D",
5340 .bustype = BUS_SPI,
5341 .manufacture_id = MACRONIX_ID,
5342 .model_id = MACRONIX_MX25L1605,
5343 .total_size = 2048,
5344 .page_size = 256,
5345 .feature_bits = FEATURE_WRSR_WREN,
5346 .tested = TEST_OK_PREW,
5347 .probe = probe_spi_rdid,
5348 .probe_timing = TIMING_ZERO,
5349 .block_erasers =
5350 {
5351 {
5352 .eraseblocks = { {4 * 1024, 512} },
5353 .block_erase = spi_block_erase_20,
5354 }, {
5355 .eraseblocks = { {64 * 1024, 32} },
5356 .block_erase = spi_block_erase_d8,
5357 }, {
5358 .eraseblocks = { {2 * 1024 * 1024, 1} },
5359 .block_erase = spi_block_erase_60,
5360 }, {
5361 .eraseblocks = { {2 * 1024 * 1024, 1} },
5362 .block_erase = spi_block_erase_c7,
5363 },
5364 },
5365 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
5366 .unlock = spi_disable_blockprotect,
5367 .write = spi_chip_write_256,
5368 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005369 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005370 },
5371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005372 {
5373 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005374 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005375 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005376 .manufacture_id = MACRONIX_ID,
5377 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005378 .total_size = 2048,
5379 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005380 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5381 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005382 .tested = TEST_UNTESTED,
5383 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005384 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005385 .block_erasers =
5386 {
5387 {
5388 .eraseblocks = { {4 * 1024, 512} },
5389 .block_erase = spi_block_erase_20,
5390 }, {
5391 .eraseblocks = { {64 * 1024, 32} },
5392 .block_erase = spi_block_erase_d8,
5393 }, {
5394 .eraseblocks = { {2 * 1024 * 1024, 1} },
5395 .block_erase = spi_block_erase_60,
5396 }, {
5397 .eraseblocks = { {2 * 1024 * 1024, 1} },
5398 .block_erase = spi_block_erase_c7,
5399 }
5400 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005401 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005402 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005403 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005404 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005405 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005406 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005407
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005408 {
5409 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005410 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005411 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005412 .manufacture_id = MACRONIX_ID,
5413 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005414 .total_size = 2048,
5415 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005416 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005418 .tested = TEST_UNTESTED,
5419 .probe = probe_spi_rdid,
5420 .probe_timing = TIMING_ZERO,
5421 .block_erasers =
5422 {
5423 {
5424 .eraseblocks = { {4 * 1024, 512} },
5425 .block_erase = spi_block_erase_20,
5426 }, {
5427 .eraseblocks = { {64 * 1024, 32} },
5428 .block_erase = spi_block_erase_d8,
5429 }, {
5430 .eraseblocks = { {2 * 1024 * 1024, 1} },
5431 .block_erase = spi_block_erase_60,
5432 }, {
5433 .eraseblocks = { {2 * 1024 * 1024, 1} },
5434 .block_erase = spi_block_erase_c7,
5435 }
5436 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005437 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005438 .unlock = spi_disable_blockprotect,
5439 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005440 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00005441 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005442 },
5443
5444 {
5445 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005446 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005447 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005448 .manufacture_id = MACRONIX_ID,
5449 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005450 .total_size = 4096,
5451 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005452 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005453 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005454 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005455 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005456 .block_erasers =
5457 {
5458 {
Stefan Tauner226037d2013-03-16 01:22:12 +00005459 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005460 .block_erase = spi_block_erase_20,
5461 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00005462 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00005463 .block_erase = spi_block_erase_d8,
5464 }, {
5465 .eraseblocks = { {4 * 1024 * 1024, 1} },
5466 .block_erase = spi_block_erase_60,
5467 }, {
5468 .eraseblocks = { {4 * 1024 * 1024, 1} },
5469 .block_erase = spi_block_erase_c7,
5470 },
5471 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005472 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005473 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005474 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005475 .read = spi_chip_read, /* Fast read (0x0B) supported */
5476 .voltage = {2700, 3600},
5477 },
5478
5479 {
5480 .vendor = "Macronix",
5481 .name = "MX25L3205D/MX25L3208D",
5482 .bustype = BUS_SPI,
5483 .manufacture_id = MACRONIX_ID,
5484 .model_id = MACRONIX_MX25L3205,
5485 .total_size = 4096,
5486 .page_size = 256,
5487 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5488 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5489 .tested = TEST_OK_PREW,
5490 .probe = probe_spi_rdid,
5491 .probe_timing = TIMING_ZERO,
5492 .block_erasers =
5493 {
5494 {
5495 .eraseblocks = { {4 * 1024, 1024} },
5496 .block_erase = spi_block_erase_20,
5497 }, {
5498 .eraseblocks = { {64 * 1024, 64} },
5499 .block_erase = spi_block_erase_d8,
5500 }, {
5501 .eraseblocks = { {4 * 1024 * 1024, 1} },
5502 .block_erase = spi_block_erase_60,
5503 }, {
5504 .eraseblocks = { {4 * 1024 * 1024, 1} },
5505 .block_erase = spi_block_erase_c7,
5506 },
5507 },
5508 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
5509 .unlock = spi_disable_blockprotect,
5510 .write = spi_chip_write_256,
5511 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
5512 .voltage = {2700, 3600},
5513 },
5514
5515 {
5516 .vendor = "Macronix",
5517 .name = "MX25L3206E",
5518 .bustype = BUS_SPI,
5519 .manufacture_id = MACRONIX_ID,
5520 .model_id = MACRONIX_MX25L3205,
5521 .total_size = 4096,
5522 .page_size = 256,
5523 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
5524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5525 .tested = TEST_OK_PREW,
5526 .probe = probe_spi_rdid,
5527 .probe_timing = TIMING_ZERO,
5528 .block_erasers =
5529 {
5530 {
5531 .eraseblocks = { {4 * 1024, 1024} },
5532 .block_erase = spi_block_erase_20,
5533 }, {
5534 .eraseblocks = { {64 * 1024, 64} },
5535 .block_erase = spi_block_erase_d8,
5536 }, {
5537 .eraseblocks = { {64 * 1024, 64} },
5538 .block_erase = spi_block_erase_52,
5539 }, {
5540 .eraseblocks = { {4 * 1024 * 1024, 1} },
5541 .block_erase = spi_block_erase_60,
5542 }, {
5543 .eraseblocks = { {4 * 1024 * 1024, 1} },
5544 .block_erase = spi_block_erase_c7,
5545 },
5546 },
5547 .printlock = spi_prettyprint_status_register_default_bp3,
5548 .unlock = spi_disable_blockprotect,
5549 .write = spi_chip_write_256,
5550 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005552 },
5553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 {
5555 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005556 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005557 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005558 .manufacture_id = MACRONIX_ID,
5559 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005560 .total_size = 4096,
5561 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005562 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
5563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005564 .tested = TEST_UNTESTED,
5565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005566 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005567 .block_erasers =
5568 {
5569 {
5570 .eraseblocks = { {4 * 1024, 1024} },
5571 .block_erase = spi_block_erase_20,
5572 }, {
5573 .eraseblocks = { {64 * 1024, 64} },
5574 .block_erase = spi_block_erase_d8,
5575 }, {
5576 .eraseblocks = { {4 * 1024 * 1024, 1} },
5577 .block_erase = spi_block_erase_60,
5578 }, {
5579 .eraseblocks = { {4 * 1024 * 1024, 1} },
5580 .block_erase = spi_block_erase_c7,
5581 }
5582 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005583 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005584 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005585 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005586 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005587 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005588 },
5589
5590 {
5591 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005592 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005593 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005594 .manufacture_id = MACRONIX_ID,
5595 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005596 .total_size = 8192,
5597 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005598 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
5599 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00005600 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005602 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005603 .block_erasers =
5604 {
5605 {
5606 .eraseblocks = { {64 * 1024, 128} },
5607 .block_erase = spi_block_erase_20,
5608 }, {
5609 .eraseblocks = { {64 * 1024, 128} },
5610 .block_erase = spi_block_erase_d8,
5611 }, {
5612 .eraseblocks = { {8 * 1024 * 1024, 1} },
5613 .block_erase = spi_block_erase_60,
5614 }, {
5615 .eraseblocks = { {8 * 1024 * 1024, 1} },
5616 .block_erase = spi_block_erase_c7,
5617 }
5618 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005619 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005620 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005621 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005622 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005623 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005624 },
5625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005626 {
5627 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00005628 .name = "MX25L6406E/MX25L6436E",
5629 .bustype = BUS_SPI,
5630 .manufacture_id = MACRONIX_ID,
5631 .model_id = MACRONIX_MX25L6405,
5632 .total_size = 8192,
5633 .page_size = 256,
5634 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
5635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5636 .tested = TEST_OK_PREW,
5637 .probe = probe_spi_rdid,
5638 .probe_timing = TIMING_ZERO,
5639 .block_erasers =
5640 {
5641 {
5642 .eraseblocks = { {4 * 1024, 2048} },
5643 .block_erase = spi_block_erase_20,
5644 }, {
5645 .eraseblocks = { {64 * 1024, 128} },
5646 .block_erase = spi_block_erase_d8,
5647 }, {
5648 .eraseblocks = { {8 * 1024 * 1024, 1} },
5649 .block_erase = spi_block_erase_60,
5650 }, {
5651 .eraseblocks = { {8 * 1024 * 1024, 1} },
5652 .block_erase = spi_block_erase_c7,
5653 }
5654 },
5655 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
5656 .unlock = spi_disable_blockprotect,
5657 .write = spi_chip_write_256,
5658 .read = spi_chip_read,
5659 .voltage = {2700, 3600},
5660 },
5661
5662 {
5663 .vendor = "Macronix",
5664 .name = "MX25L6445E",
5665 .bustype = BUS_SPI,
5666 .manufacture_id = MACRONIX_ID,
5667 .model_id = MACRONIX_MX25L6405,
5668 .total_size = 8192,
5669 .page_size = 256,
5670 /* supports SFDP */
5671 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5673 .tested = TEST_OK_PREW,
5674 .probe = probe_spi_rdid,
5675 .probe_timing = TIMING_ZERO,
5676 .block_erasers =
5677 {
5678 {
5679 .eraseblocks = { {4 * 1024, 2048} },
5680 .block_erase = spi_block_erase_20,
5681 }, {
5682 .eraseblocks = { {32 * 1024, 256} },
5683 .block_erase = spi_block_erase_52,
5684 }, {
5685 .eraseblocks = { {64 * 1024, 128} },
5686 .block_erase = spi_block_erase_d8,
5687 }, {
5688 .eraseblocks = { {8 * 1024 * 1024, 1} },
5689 .block_erase = spi_block_erase_60,
5690 }, {
5691 .eraseblocks = { {8 * 1024 * 1024, 1} },
5692 .block_erase = spi_block_erase_c7,
5693 }
5694 },
5695 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5696 .unlock = spi_disable_blockprotect,
5697 .write = spi_chip_write_256,
5698 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5699 .voltage = {2700, 3600},
5700 },
5701
5702 {
5703 .vendor = "Macronix",
5704 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005705 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005706 .manufacture_id = MACRONIX_ID,
5707 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005708 .total_size = 16384,
5709 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005710 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
5711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005712 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005714 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005715 .block_erasers =
5716 {
5717 {
5718 .eraseblocks = { {4 * 1024, 4096} },
5719 .block_erase = spi_block_erase_20,
5720 }, {
5721 .eraseblocks = { {64 * 1024, 256} },
5722 .block_erase = spi_block_erase_d8,
5723 }, {
5724 .eraseblocks = { {16 * 1024 * 1024, 1} },
5725 .block_erase = spi_block_erase_60,
5726 }, {
5727 .eraseblocks = { {16 * 1024 * 1024, 1} },
5728 .block_erase = spi_block_erase_c7,
5729 }
5730 },
Stefan Tauner226037d2013-03-16 01:22:12 +00005731 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005732 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005733 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00005734 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005735 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005736 },
5737
5738 {
5739 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00005740 .name = "MX25U1635E",
5741 .bustype = BUS_SPI,
5742 .manufacture_id = MACRONIX_ID,
5743 .model_id = MACRONIX_MX25U1635E,
5744 .total_size = 2048,
5745 .page_size = 256,
5746 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5747 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5748 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5749 .tested = TEST_UNTESTED,
5750 .probe = probe_spi_rdid,
5751 .probe_timing = TIMING_ZERO,
5752 .block_erasers =
5753 {
5754 {
5755 .eraseblocks = { {4 * 1024, 512} },
5756 .block_erase = spi_block_erase_20,
5757 }, {
5758 .eraseblocks = { {32 * 1024, 64} },
5759 .block_erase = spi_block_erase_52,
5760 }, {
5761 .eraseblocks = { {64 * 1024, 32} },
5762 .block_erase = spi_block_erase_d8,
5763 }, {
5764 .eraseblocks = { {2 * 1024 * 1024, 1} },
5765 .block_erase = spi_block_erase_60,
5766 }, {
5767 .eraseblocks = { {2 * 1024 * 1024, 1} },
5768 .block_erase = spi_block_erase_c7,
5769 }
5770 },
5771 /* TODO: security register */
5772 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5773 .unlock = spi_disable_blockprotect,
5774 .write = spi_chip_write_256,
5775 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5776 .voltage = {1650, 2000},
5777 },
5778
5779 {
5780 .vendor = "Macronix",
5781 .name = "MX25U3235E/F",
5782 .bustype = BUS_SPI,
5783 .manufacture_id = MACRONIX_ID,
5784 .model_id = MACRONIX_MX25U3235E,
5785 .total_size = 4096,
5786 .page_size = 256,
5787 /* F model supports SFDP */
5788 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5789 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5790 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5791 .tested = TEST_OK_PREW,
5792 .probe = probe_spi_rdid,
5793 .probe_timing = TIMING_ZERO,
5794 .block_erasers =
5795 {
5796 {
5797 .eraseblocks = { {4 * 1024, 1024} },
5798 .block_erase = spi_block_erase_20,
5799 }, {
5800 .eraseblocks = { {32 * 1024, 128} },
5801 .block_erase = spi_block_erase_52,
5802 }, {
5803 .eraseblocks = { {64 * 1024, 64} },
5804 .block_erase = spi_block_erase_d8,
5805 }, {
5806 .eraseblocks = { {4 * 1024 * 1024, 1} },
5807 .block_erase = spi_block_erase_60,
5808 }, {
5809 .eraseblocks = { {4 * 1024 * 1024, 1} },
5810 .block_erase = spi_block_erase_c7,
5811 }
5812 },
5813 /* TODO: security register */
5814 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5815 .unlock = spi_disable_blockprotect,
5816 .write = spi_chip_write_256,
5817 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5818 .voltage = {1650, 2000},
5819 },
5820
5821 {
5822 .vendor = "Macronix",
5823 .name = "MX25U6435E/F",
5824 .bustype = BUS_SPI,
5825 .manufacture_id = MACRONIX_ID,
5826 .model_id = MACRONIX_MX25U6435E,
5827 .total_size = 8192,
5828 .page_size = 256,
5829 /* F model supports SFDP */
5830 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
5831 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
5832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5833 .tested = TEST_UNTESTED,
5834 .probe = probe_spi_rdid,
5835 .probe_timing = TIMING_ZERO,
5836 .block_erasers =
5837 {
5838 {
5839 .eraseblocks = { {4 * 1024, 2048} },
5840 .block_erase = spi_block_erase_20,
5841 }, {
5842 .eraseblocks = { {32 * 1024, 256} },
5843 .block_erase = spi_block_erase_52,
5844 }, {
5845 .eraseblocks = { {64 * 1024, 128} },
5846 .block_erase = spi_block_erase_d8,
5847 }, {
5848 .eraseblocks = { {8 * 1024 * 1024, 1} },
5849 .block_erase = spi_block_erase_60,
5850 }, {
5851 .eraseblocks = { {8 * 1024 * 1024, 1} },
5852 .block_erase = spi_block_erase_c7,
5853 }
5854 },
5855 /* TODO: security register */
5856 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
5857 .unlock = spi_disable_blockprotect,
5858 .write = spi_chip_write_256,
5859 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5860 .voltage = {1650, 2000},
5861 },
5862
5863 {
5864 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005865 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005866 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005867 .manufacture_id = MACRONIX_ID,
5868 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005869 .total_size = 128,
5870 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005871 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5872 .tested = TEST_UNTESTED,
5873 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005874 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005875 .block_erasers =
5876 {
5877 {
5878 .eraseblocks = {
5879 {8 * 1024, 1},
5880 {4 * 1024, 2},
5881 {8 * 1024, 2},
5882 {32 * 1024, 1},
5883 {64 * 1024, 1},
5884 },
Sean Nelson35727f72010-01-28 23:55:12 +00005885 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005886 }, {
5887 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005888 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005889 }
5890 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005891 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005893 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005894 },
5895
5896 {
5897 .vendor = "Macronix",
5898 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005899 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005900 .manufacture_id = MACRONIX_ID,
5901 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005902 .total_size = 128,
5903 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005904 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005905 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005906 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005907 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005908 .block_erasers =
5909 {
5910 {
5911 .eraseblocks = {
5912 {64 * 1024, 1},
5913 {32 * 1024, 1},
5914 {8 * 1024, 2},
5915 {4 * 1024, 2},
5916 {8 * 1024, 1},
5917 },
Sean Nelson35727f72010-01-28 23:55:12 +00005918 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005919 }, {
5920 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005921 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005922 }
5923 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005924 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005925 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005926 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005927 },
5928
5929 {
5930 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005931 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005932 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005933 .manufacture_id = MACRONIX_ID,
5934 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005935 .total_size = 256,
5936 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005937 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005938 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005939 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005940 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005941 .block_erasers =
5942 {
5943 {
5944 .eraseblocks = {
5945 {16 * 1024, 1},
5946 {8 * 1024, 2},
5947 {32 * 1024, 1},
5948 {64 * 1024, 3},
5949 },
Sean Nelson35727f72010-01-28 23:55:12 +00005950 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005951 }, {
5952 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005953 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005954 },
5955 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005958 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005959 },
5960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005961 {
5962 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005963 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005964 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005965 .manufacture_id = MACRONIX_ID,
5966 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005967 .total_size = 256,
5968 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005969 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005970 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005971 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005972 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005973 .block_erasers =
5974 {
5975 {
5976 .eraseblocks = {
5977 {64 * 1024, 3},
5978 {32 * 1024, 1},
5979 {8 * 1024, 2},
5980 {16 * 1024, 1},
5981 },
Sean Nelson35727f72010-01-28 23:55:12 +00005982 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005983 }, {
5984 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005985 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005986 },
5987 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005988 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005989 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005990 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005991 },
5992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005993 {
5994 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005995 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005996 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005997 .manufacture_id = MACRONIX_ID,
5998 .model_id = MACRONIX_MX29F040,
5999 .total_size = 512,
6000 .page_size = 64 * 1024,
6001 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6002 .tested = TEST_UNTESTED,
6003 .probe = probe_jedec,
6004 .probe_timing = TIMING_ZERO,
6005 .block_erasers =
6006 {
6007 {
6008 .eraseblocks = { {64 * 1024, 8} },
6009 .block_erase = erase_sector_jedec,
6010 }, {
6011 .eraseblocks = { {512 * 1024, 1} },
6012 .block_erase = erase_chip_block_jedec,
6013 },
6014 },
6015 .write = write_jedec_1,
6016 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006017 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006018 },
6019
6020 {
6021 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006022 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006023 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006024 .manufacture_id = MACRONIX_ID,
6025 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006026 .total_size = 512,
6027 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006028 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6029 .tested = TEST_UNTESTED,
6030 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006031 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006032 .block_erasers =
6033 {
6034 {
6035 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006036 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006037 }, {
6038 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006039 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006040 },
6041 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006042 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006043 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006044 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006045 },
6046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006047 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006048 .vendor = "MoselVitelic",
6049 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006050 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006051 .manufacture_id = SYNCMOS_MVC_ID,
6052 .model_id = MVC_V29C51000B,
6053 .total_size = 64,
6054 .page_size = 512,
6055 .feature_bits = FEATURE_EITHER_RESET,
6056 .tested = TEST_UNTESTED,
6057 .probe = probe_jedec,
6058 .probe_timing = TIMING_ZERO,
6059 .block_erasers =
6060 {
6061 {
6062 .eraseblocks = { {512, 128} },
6063 .block_erase = erase_sector_jedec,
6064 }, {
6065 .eraseblocks = { {64 * 1024, 1} },
6066 .block_erase = erase_chip_block_jedec,
6067 },
6068 },
6069 .write = write_jedec_1,
6070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006071 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006072 },
6073
6074 {
6075 .vendor = "MoselVitelic",
6076 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006077 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006078 .manufacture_id = SYNCMOS_MVC_ID,
6079 .model_id = MVC_V29C51000T,
6080 .total_size = 64,
6081 .page_size = 512,
6082 .feature_bits = FEATURE_EITHER_RESET,
6083 .tested = TEST_UNTESTED,
6084 .probe = probe_jedec,
6085 .probe_timing = TIMING_ZERO,
6086 .block_erasers =
6087 {
6088 {
6089 .eraseblocks = { {512, 128} },
6090 .block_erase = erase_sector_jedec,
6091 }, {
6092 .eraseblocks = { {64 * 1024, 1} },
6093 .block_erase = erase_chip_block_jedec,
6094 },
6095 },
6096 .write = write_jedec_1,
6097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006098 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006099 },
6100
6101 {
6102 .vendor = "MoselVitelic",
6103 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006104 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006105 .manufacture_id = SYNCMOS_MVC_ID,
6106 .model_id = MVC_V29C51400B,
6107 .total_size = 512,
6108 .page_size = 1024,
6109 .feature_bits = FEATURE_EITHER_RESET,
6110 .tested = TEST_UNTESTED,
6111 .probe = probe_jedec,
6112 .probe_timing = TIMING_ZERO,
6113 .block_erasers =
6114 {
6115 {
6116 .eraseblocks = { {1024, 512} },
6117 .block_erase = erase_sector_jedec,
6118 }, {
6119 .eraseblocks = { {512 * 1024, 1} },
6120 .block_erase = erase_chip_block_jedec,
6121 },
6122 },
6123 .write = write_jedec_1,
6124 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006125 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006126 },
6127
6128 {
6129 .vendor = "MoselVitelic",
6130 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006131 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006132 .manufacture_id = SYNCMOS_MVC_ID,
6133 .model_id = MVC_V29C51400T,
6134 .total_size = 512,
6135 .page_size = 1024,
6136 .feature_bits = FEATURE_EITHER_RESET,
6137 .tested = TEST_UNTESTED,
6138 .probe = probe_jedec,
6139 .probe_timing = TIMING_ZERO,
6140 .block_erasers =
6141 {
6142 {
6143 .eraseblocks = { {1024, 512} },
6144 .block_erase = erase_sector_jedec,
6145 }, {
6146 .eraseblocks = { {512 * 1024, 1} },
6147 .block_erase = erase_chip_block_jedec,
6148 },
6149 },
6150 .write = write_jedec_1,
6151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006152 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006153 },
6154
6155 {
6156 .vendor = "MoselVitelic",
6157 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006158 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006159 .manufacture_id = SYNCMOS_MVC_ID,
6160 .model_id = MVC_V29LC51000,
6161 .total_size = 64,
6162 .page_size = 512,
6163 .feature_bits = FEATURE_EITHER_RESET,
6164 .tested = TEST_UNTESTED,
6165 .probe = probe_jedec,
6166 .probe_timing = TIMING_ZERO,
6167 .block_erasers =
6168 {
6169 {
6170 .eraseblocks = { {512, 128} },
6171 .block_erase = erase_sector_jedec,
6172 }, {
6173 .eraseblocks = { {64 * 1024, 1} },
6174 .block_erase = erase_chip_block_jedec,
6175 },
6176 },
6177 .write = write_jedec_1,
6178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006179 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006180 },
6181
6182 {
6183 .vendor = "MoselVitelic",
6184 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006185 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006186 .manufacture_id = SYNCMOS_MVC_ID,
6187 .model_id = MVC_V29LC51001,
6188 .total_size = 128,
6189 .page_size = 512,
6190 .feature_bits = FEATURE_EITHER_RESET,
6191 .tested = TEST_UNTESTED,
6192 .probe = probe_jedec,
6193 .probe_timing = TIMING_ZERO,
6194 .block_erasers =
6195 {
6196 {
6197 .eraseblocks = { {512, 256} },
6198 .block_erase = erase_sector_jedec,
6199 }, {
6200 .eraseblocks = { {128 * 1024, 1} },
6201 .block_erase = erase_chip_block_jedec,
6202 },
6203 },
6204 .write = write_jedec_1,
6205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006206 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006207 },
6208
6209 {
6210 .vendor = "MoselVitelic",
6211 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006212 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006213 .manufacture_id = SYNCMOS_MVC_ID,
6214 .model_id = MVC_V29LC51002,
6215 .total_size = 256,
6216 .page_size = 512,
6217 .feature_bits = FEATURE_EITHER_RESET,
6218 .tested = TEST_UNTESTED,
6219 .probe = probe_jedec,
6220 .probe_timing = TIMING_ZERO,
6221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = { {512, 512} },
6225 .block_erase = erase_sector_jedec,
6226 }, {
6227 .eraseblocks = { {256 * 1024, 1} },
6228 .block_erase = erase_chip_block_jedec,
6229 },
6230 },
6231 .write = write_jedec_1,
6232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006233 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00006234 },
6235
6236 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00006237 .vendor = "Nantronics",
6238 .name = "N25S10",
6239 .bustype = BUS_SPI,
6240 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6241 .model_id = NANTRONICS_N25S10,
6242 .total_size = 128,
6243 .page_size = 256,
6244 .feature_bits = FEATURE_WRSR_WREN,
6245 .tested = TEST_UNTESTED,
6246 .probe = probe_spi_rdid,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = { {4 * 1024, 32} },
6252 .block_erase = spi_block_erase_20,
6253 }, {
6254 .eraseblocks = { {4 * 1024, 32} },
6255 .block_erase = spi_block_erase_d7,
6256 }, {
6257 .eraseblocks = { {32 * 1024, 4} },
6258 .block_erase = spi_block_erase_52,
6259 }, {
6260 .eraseblocks = { {64 * 1024, 2} },
6261 .block_erase = spi_block_erase_d8,
6262 }, {
6263 .eraseblocks = { {128 * 1024, 1} },
6264 .block_erase = spi_block_erase_60,
6265 }, {
6266 .eraseblocks = { {128 * 1024, 1} },
6267 .block_erase = spi_block_erase_c7,
6268 }
6269 },
6270 .printlock = spi_prettyprint_status_register_default_bp3,
6271 .unlock = spi_disable_blockprotect_bp3_srwd,
6272 .write = spi_chip_write_256,
6273 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6274 .voltage = {2700, 3600},
6275 },
6276
6277 {
6278 .vendor = "Nantronics",
6279 .name = "N25S20",
6280 .bustype = BUS_SPI,
6281 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6282 .model_id = NANTRONICS_N25S20,
6283 .total_size = 256,
6284 .page_size = 256,
6285 .feature_bits = FEATURE_WRSR_WREN,
6286 .tested = TEST_UNTESTED,
6287 .probe = probe_spi_rdid,
6288 .probe_timing = TIMING_ZERO,
6289 .block_erasers =
6290 {
6291 {
6292 .eraseblocks = { {4 * 1024, 64} },
6293 .block_erase = spi_block_erase_20,
6294 }, {
6295 .eraseblocks = { {4 * 1024, 64} },
6296 .block_erase = spi_block_erase_d7,
6297 }, {
6298 .eraseblocks = { {32 * 1024, 8} },
6299 .block_erase = spi_block_erase_52,
6300 }, {
6301 .eraseblocks = { {64 * 1024, 4} },
6302 .block_erase = spi_block_erase_d8,
6303 }, {
6304 .eraseblocks = { {256 * 1024, 1} },
6305 .block_erase = spi_block_erase_60,
6306 }, {
6307 .eraseblocks = { {256 * 1024, 1} },
6308 .block_erase = spi_block_erase_c7,
6309 }
6310 },
6311 .printlock = spi_prettyprint_status_register_default_bp3,
6312 .unlock = spi_disable_blockprotect_bp3_srwd,
6313 .write = spi_chip_write_256,
6314 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6315 .voltage = {2700, 3600},
6316 },
6317
6318 {
6319 .vendor = "Nantronics",
6320 .name = "N25S40",
6321 .bustype = BUS_SPI,
6322 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6323 .model_id = NANTRONICS_N25S40,
6324 .total_size = 512,
6325 .page_size = 256,
6326 .feature_bits = FEATURE_WRSR_WREN,
6327 .tested = TEST_UNTESTED,
6328 .probe = probe_spi_rdid,
6329 .probe_timing = TIMING_ZERO,
6330 .block_erasers =
6331 {
6332 {
6333 .eraseblocks = { {4 * 1024, 128} },
6334 .block_erase = spi_block_erase_20,
6335 }, {
6336 .eraseblocks = { {4 * 1024, 128} },
6337 .block_erase = spi_block_erase_d7,
6338 }, {
6339 .eraseblocks = { {32 * 1024, 16} },
6340 .block_erase = spi_block_erase_52,
6341 }, {
6342 .eraseblocks = { {64 * 1024, 8} },
6343 .block_erase = spi_block_erase_d8,
6344 }, {
6345 .eraseblocks = { {512 * 1024, 1} },
6346 .block_erase = spi_block_erase_60,
6347 }, {
6348 .eraseblocks = { {512 * 1024, 1} },
6349 .block_erase = spi_block_erase_c7,
6350 }
6351 },
6352 .printlock = spi_prettyprint_status_register_default_bp3,
6353 .unlock = spi_disable_blockprotect_bp3_srwd,
6354 .write = spi_chip_write_256,
6355 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6356 .voltage = {2700, 3600},
6357 },
6358
6359 {
6360 .vendor = "Nantronics",
6361 .name = "N25S80",
6362 .bustype = BUS_SPI,
6363 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6364 .model_id = NANTRONICS_N25S80,
6365 .total_size = 1024,
6366 .page_size = 256,
6367 .feature_bits = FEATURE_WRSR_WREN,
6368 .tested = TEST_UNTESTED,
6369 .probe = probe_spi_rdid,
6370 .probe_timing = TIMING_ZERO,
6371 .block_erasers =
6372 {
6373 {
6374 .eraseblocks = { {4 * 1024, 256} },
6375 .block_erase = spi_block_erase_20,
6376 }, {
6377 .eraseblocks = { {32 * 1024, 32} },
6378 .block_erase = spi_block_erase_52,
6379 }, {
6380 .eraseblocks = { {64 * 1024, 16} },
6381 .block_erase = spi_block_erase_d8,
6382 }, {
6383 .eraseblocks = { {1024 * 1024, 1} },
6384 .block_erase = spi_block_erase_60,
6385 }, {
6386 .eraseblocks = { {1024 * 1024, 1} },
6387 .block_erase = spi_block_erase_c7,
6388 }
6389 },
6390 .printlock = spi_prettyprint_status_register_default_bp3,
6391 .unlock = spi_disable_blockprotect_bp3_srwd,
6392 .write = spi_chip_write_256,
6393 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6394 .voltage = {2700, 3600},
6395 },
6396
6397 {
6398 .vendor = "Nantronics",
6399 .name = "N25S16",
6400 .bustype = BUS_SPI,
6401 .manufacture_id = NANTRONICS_ID_NOPREFIX,
6402 .model_id = NANTRONICS_N25S16,
6403 .total_size = 2048,
6404 .page_size = 256,
6405 .feature_bits = FEATURE_WRSR_WREN,
6406 .tested = TEST_UNTESTED,
6407 .probe = probe_spi_rdid,
6408 .probe_timing = TIMING_ZERO,
6409 .block_erasers =
6410 {
6411 {
6412 .eraseblocks = { {4 * 1024, 512} },
6413 .block_erase = spi_block_erase_20,
6414 }, {
6415 .eraseblocks = { {64 * 1024, 32} },
6416 .block_erase = spi_block_erase_d8,
6417 }, {
6418 .eraseblocks = { {2048 * 1024, 1} },
6419 .block_erase = spi_block_erase_60,
6420 }, {
6421 .eraseblocks = { {2048 * 1024, 1} },
6422 .block_erase = spi_block_erase_c7,
6423 }
6424 },
6425 .printlock = spi_prettyprint_status_register_default_bp3,
6426 .unlock = spi_disable_blockprotect_bp3_srwd,
6427 .write = spi_chip_write_256,
6428 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
6429 .voltage = {2700, 3600},
6430 },
6431
6432 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006433 .vendor = "Numonyx",
6434 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006435 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006436 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006437 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006438 .total_size = 128,
6439 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006440 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006441 .tested = TEST_UNTESTED,
6442 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006443 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006444 .block_erasers =
6445 {
6446 {
6447 .eraseblocks = { {4 * 1024, 32} },
6448 .block_erase = spi_block_erase_20,
6449 }, {
6450 .eraseblocks = { {64 * 1024, 2} },
6451 .block_erase = spi_block_erase_d8,
6452 }, {
6453 .eraseblocks = { {128 * 1024, 1} },
6454 .block_erase = spi_block_erase_c7,
6455 }
6456 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006457 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006458 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006459 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006460 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006461 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006462 },
6463
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006464 {
6465 .vendor = "Numonyx",
6466 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006467 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006468 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006469 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006470 .total_size = 256,
6471 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006472 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006473 .tested = TEST_UNTESTED,
6474 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006475 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006476 .block_erasers =
6477 {
6478 {
6479 .eraseblocks = { {4 * 1024, 64} },
6480 .block_erase = spi_block_erase_20,
6481 }, {
6482 .eraseblocks = { {64 * 1024, 4} },
6483 .block_erase = spi_block_erase_d8,
6484 }, {
6485 .eraseblocks = { {256 * 1024, 1} },
6486 .block_erase = spi_block_erase_c7,
6487 }
6488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006490 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006491 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006492 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006493 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006494 },
6495
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006496 {
6497 .vendor = "Numonyx",
6498 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006499 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006500 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006501 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00006502 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006503 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006504 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006505 .tested = TEST_UNTESTED,
6506 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006507 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006508 .block_erasers =
6509 {
6510 {
6511 .eraseblocks = { {4 * 1024, 128} },
6512 .block_erase = spi_block_erase_20,
6513 }, {
6514 .eraseblocks = { {64 * 1024, 8} },
6515 .block_erase = spi_block_erase_d8,
6516 }, {
6517 .eraseblocks = { {512 * 1024, 1} },
6518 .block_erase = spi_block_erase_c7,
6519 }
6520 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006521 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006522 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006523 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006524 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006525 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006526 },
6527
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006528 {
6529 .vendor = "Numonyx",
6530 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006531 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006532 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006533 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006534 .total_size = 1024,
6535 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006536 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00006537 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006538 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006539 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006540 .block_erasers =
6541 {
6542 {
6543 .eraseblocks = { {4 * 1024, 256} },
6544 .block_erase = spi_block_erase_20,
6545 }, {
6546 .eraseblocks = { {64 * 1024, 16} },
6547 .block_erase = spi_block_erase_d8,
6548 }, {
6549 .eraseblocks = { {1024 * 1024, 1} },
6550 .block_erase = spi_block_erase_c7,
6551 }
6552 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006553 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006554 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006555 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006556 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006557 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006558 },
6559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006560 {
6561 .vendor = "Numonyx",
6562 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006563 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006564 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006565 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006566 .total_size = 2048,
6567 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006568 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006569 .tested = TEST_UNTESTED,
6570 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006571 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006572 .block_erasers =
6573 {
6574 {
6575 .eraseblocks = { {4 * 1024, 512} },
6576 .block_erase = spi_block_erase_20,
6577 }, {
6578 .eraseblocks = { {64 * 1024, 32} },
6579 .block_erase = spi_block_erase_d8,
6580 }, {
6581 .eraseblocks = { {2 * 1024 * 1024, 1} },
6582 .block_erase = spi_block_erase_c7,
6583 }
6584 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006586 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006587 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006590 },
6591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006592 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006593 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00006594 .name = "N25Q016",
6595 .bustype = BUS_SPI,
6596 .manufacture_id = ST_ID,
6597 .model_id = ST_N25Q016__1E,
6598 .total_size = 2048,
6599 .page_size = 256,
6600 /* supports SFDP */
6601 /* OTP: 64B total; read 0x4B, write 0x42 */
6602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6603 .tested = TEST_UNTESTED,
6604 .probe = probe_spi_rdid,
6605 .probe_timing = TIMING_ZERO,
6606 .block_erasers =
6607 {
6608 {
6609 .eraseblocks = { {4 * 1024, 512} },
6610 .block_erase = spi_block_erase_20,
6611 }, {
6612 .eraseblocks = { {32 * 1024, 64} },
6613 .block_erase = spi_block_erase_52,
6614 }, {
6615 .eraseblocks = { {64 * 1024, 32} },
6616 .block_erase = spi_block_erase_d8,
6617 }, {
6618 .eraseblocks = { {2 * 1024 * 1024, 1} },
6619 .block_erase = spi_block_erase_c7,
6620 }
6621 },
6622 .unlock = spi_disable_blockprotect,
6623 .write = spi_chip_write_256,
6624 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6625 .voltage = {1700, 2000},
6626 },
6627
6628 {
6629 .vendor = "Numonyx",
6630 .name = "N25Q032..1E",
6631 .bustype = BUS_SPI,
6632 .manufacture_id = ST_ID,
6633 .model_id = ST_N25Q032__1E,
6634 .total_size = 4096,
6635 .page_size = 256,
6636 /* supports SFDP */
6637 /* OTP: 64B total; read 0x4B, write 0x42 */
6638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6639 .tested = TEST_UNTESTED,
6640 .probe = probe_spi_rdid,
6641 .probe_timing = TIMING_ZERO,
6642 .block_erasers =
6643 {
6644 {
6645 .eraseblocks = { {4 * 1024, 1024} },
6646 .block_erase = spi_block_erase_20,
6647 }, {
6648 .eraseblocks = { {64 * 1024, 64} },
6649 .block_erase = spi_block_erase_d8,
6650 }, {
6651 .eraseblocks = { {4 * 1024 * 1024, 1} },
6652 .block_erase = spi_block_erase_c7,
6653 }
6654 },
6655 .unlock = spi_disable_blockprotect,
6656 .write = spi_chip_write_256,
6657 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6658 .voltage = {1700, 2000},
6659 },
6660
6661 {
6662 .vendor = "Numonyx",
6663 .name = "N25Q032..3E",
6664 .bustype = BUS_SPI,
6665 .manufacture_id = ST_ID,
6666 .model_id = ST_N25Q032__3E,
6667 .total_size = 4096,
6668 .page_size = 256,
6669 /* supports SFDP */
6670 /* OTP: 64B total; read 0x4B, write 0x42 */
6671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6672 .tested = TEST_UNTESTED,
6673 .probe = probe_spi_rdid,
6674 .probe_timing = TIMING_ZERO,
6675 .block_erasers =
6676 {
6677 {
6678 .eraseblocks = { {4 * 1024, 1024} },
6679 .block_erase = spi_block_erase_20,
6680 }, {
6681 .eraseblocks = { {64 * 1024, 64} },
6682 .block_erase = spi_block_erase_d8,
6683 }, {
6684 .eraseblocks = { {4 * 1024 * 1024, 1} },
6685 .block_erase = spi_block_erase_c7,
6686 }
6687 },
6688 .unlock = spi_disable_blockprotect,
6689 .write = spi_chip_write_256,
6690 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6691 .voltage = {2700, 3600},
6692 },
6693
6694 {
6695 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00006696 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006697 .bustype = BUS_SPI,
6698 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00006699 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006700 .total_size = 8192,
6701 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00006702 /* supports SFDP */
6703 /* OTP: 64B total; read 0x4B, write 0x42 */
6704 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6705 .tested = TEST_UNTESTED,
6706 .probe = probe_spi_rdid,
6707 .probe_timing = TIMING_ZERO,
6708 .block_erasers =
6709 {
6710 {
6711 .eraseblocks = { {4 * 1024, 2048 } },
6712 .block_erase = spi_block_erase_20,
6713 }, {
6714 .eraseblocks = { {64 * 1024, 128} },
6715 .block_erase = spi_block_erase_d8,
6716 }, {
6717 .eraseblocks = { {8 * 1024 * 1024, 1} },
6718 .block_erase = spi_block_erase_c7,
6719 }
6720 },
6721 .unlock = spi_disable_blockprotect,
6722 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006723 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006724 .voltage = {1700, 2000},
6725 },
6726
6727 {
6728 .vendor = "Numonyx",
6729 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
6730 .bustype = BUS_SPI,
6731 .manufacture_id = ST_ID,
6732 .model_id = ST_N25Q064__3E,
6733 .total_size = 8192,
6734 .page_size = 256,
6735 /* supports SFDP */
6736 /* OTP: 64B total; read 0x4B, write 0x42 */
6737 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006738 .tested = TEST_OK_PREW,
6739 .probe = probe_spi_rdid,
6740 .probe_timing = TIMING_ZERO,
6741 .block_erasers =
6742 {
6743 {
6744 .eraseblocks = { {4 * 1024, 2048 } },
6745 .block_erase = spi_block_erase_20,
6746 }, {
6747 .eraseblocks = { {64 * 1024, 128} },
6748 .block_erase = spi_block_erase_d8,
6749 }, {
6750 .eraseblocks = { {8 * 1024 * 1024, 1} },
6751 .block_erase = spi_block_erase_c7,
6752 }
6753 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006754 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006755 .unlock = spi_disable_blockprotect,
6756 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006757 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006758 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006759 },
6760
6761 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006762 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00006763 .name = "Pm25LD256C",
6764 .bustype = BUS_SPI,
6765 .manufacture_id = PMC_ID,
6766 .model_id = PMC_PM25LD256C,
6767 .total_size = 32,
6768 .page_size = 256,
6769 .feature_bits = FEATURE_WRSR_WREN,
6770 .tested = TEST_UNTESTED,
6771 .probe = probe_spi_rdid,
6772 .probe_timing = TIMING_ZERO,
6773 .block_erasers =
6774 {
6775 {
6776 .eraseblocks = { {4 * 1024, 8} },
6777 .block_erase = spi_block_erase_20,
6778 }, {
6779 .eraseblocks = { {4 * 1024, 8} },
6780 .block_erase = spi_block_erase_d7,
6781 }, {
6782 .eraseblocks = { {32 * 1024, 1} },
6783 .block_erase = spi_block_erase_d8,
6784 }, {
6785 .eraseblocks = { {32 * 1024, 1} },
6786 .block_erase = spi_block_erase_60,
6787 }, {
6788 .eraseblocks = { {32 * 1024, 1} },
6789 .block_erase = spi_block_erase_c7,
6790 }
6791 },
6792 .printlock = spi_prettyprint_status_register_default_bp2,
6793 .unlock = spi_disable_blockprotect,
6794 .write = spi_chip_write_256,
6795 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
6796 .voltage = {2700, 3600},
6797 },
6798 {
6799 .vendor = "PMC",
6800 .name = "Pm25LD512(C)",
6801 .bustype = BUS_SPI,
6802 .manufacture_id = PMC_ID,
6803 .model_id = PMC_PM25LD512,
6804 .total_size = 64,
6805 .page_size = 256,
6806 .feature_bits = FEATURE_WRSR_WREN,
6807 .tested = TEST_OK_PREW,
6808 .probe = probe_spi_rdid,
6809 .probe_timing = TIMING_ZERO,
6810 .block_erasers =
6811 {
6812 {
6813 .eraseblocks = { {4 * 1024, 16} },
6814 .block_erase = spi_block_erase_20,
6815 }, {
6816 .eraseblocks = { {4 * 1024, 16} },
6817 .block_erase = spi_block_erase_d7,
6818 }, {
6819 .eraseblocks = { {32 * 1024, 2} },
6820 .block_erase = spi_block_erase_d8,
6821 }, {
6822 .eraseblocks = { {64 * 1024, 1} },
6823 .block_erase = spi_block_erase_60,
6824 }, {
6825 .eraseblocks = { {64 * 1024, 1} },
6826 .block_erase = spi_block_erase_c7,
6827 }
6828 },
6829 .printlock = spi_prettyprint_status_register_default_bp2,
6830 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
6831 .write = spi_chip_write_256,
6832 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
6833 .voltage = {2300, 3600},
6834 },
6835
6836 {
6837 .vendor = "PMC",
6838 .name = "Pm25LD010(C)",
6839 .bustype = BUS_SPI,
6840 .manufacture_id = PMC_ID,
6841 .model_id = PMC_PM25LD010,
6842 .total_size = 128,
6843 .page_size = 256,
6844 .feature_bits = FEATURE_WRSR_WREN,
6845 .tested = TEST_UNTESTED,
6846 .probe = probe_spi_rdid,
6847 .probe_timing = TIMING_ZERO,
6848 .block_erasers =
6849 {
6850 {
6851 .eraseblocks = { {4 * 1024, 32} },
6852 .block_erase = spi_block_erase_20,
6853 }, {
6854 .eraseblocks = { {4 * 1024, 32} },
6855 .block_erase = spi_block_erase_d7,
6856 }, {
6857 .eraseblocks = { {32 * 1024, 4} },
6858 .block_erase = spi_block_erase_d8,
6859 }, {
6860 .eraseblocks = { {128 * 1024, 1} },
6861 .block_erase = spi_block_erase_60,
6862 }, {
6863 .eraseblocks = { {128 * 1024, 1} },
6864 .block_erase = spi_block_erase_c7,
6865 }
6866 },
6867 .printlock = spi_prettyprint_status_register_default_bp2,
6868 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
6869 .write = spi_chip_write_256,
6870 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
6871 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
6872 },
6873
6874 {
6875 .vendor = "PMC",
6876 .name = "Pm25LD020(C)",
6877 .bustype = BUS_SPI,
6878 .manufacture_id = PMC_ID,
6879 .model_id = PMC_PM25LD020,
6880 .total_size = 256,
6881 .page_size = 256,
6882 .feature_bits = FEATURE_WRSR_WREN,
6883 .tested = TEST_UNTESTED,
6884 .probe = probe_spi_rdid,
6885 .probe_timing = TIMING_ZERO,
6886 .block_erasers =
6887 {
6888 {
6889 .eraseblocks = { {4 * 1024, 64} },
6890 .block_erase = spi_block_erase_20,
6891 }, {
6892 .eraseblocks = { {4 * 1024, 64} },
6893 .block_erase = spi_block_erase_d7,
6894 }, {
6895 .eraseblocks = { {64 * 1024, 4} },
6896 .block_erase = spi_block_erase_d8,
6897 }, {
6898 .eraseblocks = { {256 * 1024, 1} },
6899 .block_erase = spi_block_erase_60,
6900 }, {
6901 .eraseblocks = { {256 * 1024, 1} },
6902 .block_erase = spi_block_erase_c7,
6903 }
6904 },
6905 .printlock = spi_prettyprint_status_register_default_bp2,
6906 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
6907 .write = spi_chip_write_256,
6908 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
6909 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
6910 },
6911
6912 {
6913 .vendor = "PMC",
6914 .name = "Pm25LD040(C)",
6915 .bustype = BUS_SPI,
6916 .manufacture_id = PMC_ID,
6917 .model_id = PMC_PM25LV040,
6918 .total_size = 512,
6919 .page_size = 256,
6920 .feature_bits = FEATURE_WRSR_WREN,
6921 .tested = TEST_UNTESTED,
6922 .probe = probe_spi_rdid,
6923 .probe_timing = TIMING_ZERO,
6924 .block_erasers =
6925 {
6926 {
6927 .eraseblocks = { {4 * 1024, 128} },
6928 .block_erase = spi_block_erase_20,
6929 }, {
6930 .eraseblocks = { {4 * 1024, 128} },
6931 .block_erase = spi_block_erase_d7,
6932 }, {
6933 .eraseblocks = { {64 * 1024, 8} },
6934 .block_erase = spi_block_erase_d8,
6935 }, {
6936 .eraseblocks = { {512 * 1024, 1} },
6937 .block_erase = spi_block_erase_60,
6938 }, {
6939 .eraseblocks = { {512 * 1024, 1} },
6940 .block_erase = spi_block_erase_c7,
6941 }
6942 },
6943 .printlock = spi_prettyprint_status_register_default_bp2,
6944 .unlock = spi_disable_blockprotect,
6945 .write = spi_chip_write_256,
6946 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
6947 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
6948 },
6949
6950{
6951 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006952 .name = "Pm25LV512(A)",
6953 .bustype = BUS_SPI,
6954 .manufacture_id = PMC_ID,
6955 .model_id = PMC_PM25LV512,
6956 .total_size = 64,
6957 .page_size = 256,
6958 .feature_bits = FEATURE_WRSR_WREN,
6959 .tested = TEST_UNTESTED,
6960 .probe = probe_spi_res3,
6961 .probe_timing = TIMING_ZERO,
6962 .block_erasers =
6963 {
6964 {
6965 .eraseblocks = { {4 * 1024, 16} },
6966 .block_erase = spi_block_erase_d7,
6967 }, {
6968 .eraseblocks = { {32 * 1024, 2} },
6969 .block_erase = spi_block_erase_d8,
6970 }, {
6971 .eraseblocks = { {64 * 1024, 1} },
6972 .block_erase = spi_block_erase_c7,
6973 }
6974 },
6975 .printlock = spi_prettyprint_status_register_default_bp1,
6976 .unlock = spi_disable_blockprotect,
6977 .write = spi_chip_write_256,
6978 .read = spi_chip_read, /* Fast read (0x0B) supported */
6979 .voltage = {2700, 3600},
6980 },
6981
6982 {
6983 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006984 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006985 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006986 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006987 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006988 .total_size = 128,
6989 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006990 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006991 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00006992 .probe = probe_spi_res3,
6993 .probe_timing = TIMING_ZERO,
6994 .block_erasers =
6995 {
6996 {
6997 .eraseblocks = { {4 * 1024, 32} },
6998 .block_erase = spi_block_erase_d7,
6999 }, {
7000 .eraseblocks = { {32 * 1024, 4} },
7001 .block_erase = spi_block_erase_d8,
7002 }, {
7003 .eraseblocks = { {128 * 1024, 1} },
7004 .block_erase = spi_block_erase_c7,
7005 }
7006 },
7007 .printlock = spi_prettyprint_status_register_default_bp1,
7008 .unlock = spi_disable_blockprotect,
7009 .write = spi_chip_write_256,
7010 .read = spi_chip_read, /* Fast read (0x0B) supported */
7011 .voltage = {2700, 3600},
7012 },
7013
7014 {
7015 .vendor = "PMC",
7016 .name = "Pm25LV010A",
7017 .bustype = BUS_SPI,
7018 .manufacture_id = PMC_ID,
7019 .model_id = PMC_PM25LV010,
7020 .total_size = 128,
7021 .page_size = 256,
7022 .feature_bits = FEATURE_WRSR_WREN,
7023 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007024 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007025 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007026 .block_erasers =
7027 {
7028 {
7029 .eraseblocks = { {4 * 1024, 32} },
7030 .block_erase = spi_block_erase_d7,
7031 }, {
7032 .eraseblocks = { {32 * 1024, 4} },
7033 .block_erase = spi_block_erase_d8,
7034 }, {
7035 .eraseblocks = { {128 * 1024, 1} },
7036 .block_erase = spi_block_erase_c7,
7037 }
7038 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007039 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007040 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007041 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007042 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007043 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007044 },
7045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007046 {
7047 .vendor = "PMC",
7048 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007049 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007050 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007051 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007052 .total_size = 256,
7053 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007054 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007055 .tested = TEST_UNTESTED,
7056 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007057 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007058 .block_erasers =
7059 {
7060 {
7061 .eraseblocks = { {4 * 1024, 64} },
7062 .block_erase = spi_block_erase_d7,
7063 }, {
7064 .eraseblocks = { {64 * 1024, 4} },
7065 .block_erase = spi_block_erase_d8,
7066 }, {
7067 .eraseblocks = { {256 * 1024, 1} },
7068 .block_erase = spi_block_erase_c7,
7069 }
7070 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007071 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007073 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007074 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007075 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007076 },
7077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 {
7079 .vendor = "PMC",
7080 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007081 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007082 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007083 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007084 .total_size = 512,
7085 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007086 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007087 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007088 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007089 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007090 .block_erasers =
7091 {
7092 {
7093 .eraseblocks = { {4 * 1024, 128} },
7094 .block_erase = spi_block_erase_d7,
7095 }, {
7096 .eraseblocks = { {64 * 1024, 8} },
7097 .block_erase = spi_block_erase_d8,
7098 }, {
7099 .eraseblocks = { {512 * 1024, 1} },
7100 .block_erase = spi_block_erase_c7,
7101 }
7102 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007103 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007104 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007105 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007106 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007107 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007108 },
7109
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007110 {
7111 .vendor = "PMC",
7112 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007113 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007115 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007116 .total_size = 1024,
7117 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007118 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007119 .tested = TEST_UNTESTED,
7120 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007121 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007122 .block_erasers =
7123 {
7124 {
7125 .eraseblocks = { {4 * 1024, 256} },
7126 .block_erase = spi_block_erase_d7,
7127 }, {
7128 .eraseblocks = { {4 * 1024, 256} },
7129 .block_erase = spi_block_erase_20,
7130 }, {
7131 .eraseblocks = { {64 * 1024, 16} },
7132 .block_erase = spi_block_erase_d8,
7133 }, {
7134 .eraseblocks = { {1024 * 1024, 1} },
7135 .block_erase = spi_block_erase_60,
7136 }, {
7137 .eraseblocks = { {1024 * 1024, 1} },
7138 .block_erase = spi_block_erase_c7,
7139 }
7140 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007141 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007142 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007143 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007144 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007145 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007146 },
7147
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007148 {
7149 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007150 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007151 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007152 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007153 .model_id = PMC_PM25LV016B,
7154 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007155 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007156 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007157 .tested = TEST_UNTESTED,
7158 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007159 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007160 .block_erasers =
7161 {
7162 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007163 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00007164 .block_erase = spi_block_erase_d7,
7165 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007166 .eraseblocks = { {4 * 1024, 512} },
7167 .block_erase = spi_block_erase_20,
7168 }, {
7169 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00007170 .block_erase = spi_block_erase_d8,
7171 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007172 .eraseblocks = { {2 * 1024 * 1024, 1} },
7173 .block_erase = spi_block_erase_60,
7174 }, {
7175 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007176 .block_erase = spi_block_erase_c7,
7177 }
7178 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007179 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007180 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007181 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00007182 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007183 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007184 },
7185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007186 {
7187 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007188 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007189 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007190 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007191 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007192 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007193 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007194 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007195 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007196 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00007197 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007198 .block_erasers =
7199 {
7200 {
7201 .eraseblocks = {
7202 {128 * 1024, 1},
7203 {96 * 1024, 1},
7204 {8 * 1024, 2},
7205 {16 * 1024, 1},
7206 },
Sean Nelson35727f72010-01-28 23:55:12 +00007207 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007208 }, {
7209 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007210 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007211 },
7212 },
Sean Nelson35727f72010-01-28 23:55:12 +00007213 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007215 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007216 },
7217
7218 {
7219 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00007220 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007221 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007222 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007223 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007224 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00007225 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007226 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007227 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007228 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007229 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00007230 .block_erasers =
7231 {
7232 {
7233 .eraseblocks = {
7234 {16 * 1024, 1},
7235 {8 * 1024, 2},
7236 {96 * 1024, 1},
7237 {128 * 1024, 1},
7238 },
Sean Nelson35727f72010-01-28 23:55:12 +00007239 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007240 }, {
7241 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007242 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00007243 },
7244 },
Sean Nelson35727f72010-01-28 23:55:12 +00007245 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007246 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007247 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00007248 },
7249
7250 {
7251 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007252 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007253 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007254 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007255 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007256 .total_size = 128,
7257 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007258 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007259 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007260 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007261 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00007262 .block_erasers =
7263 {
7264 {
7265 .eraseblocks = { {4 * 1024, 32} },
7266 .block_erase = erase_sector_jedec,
7267 }, {
7268 .eraseblocks = { {64 * 1024, 2} },
7269 .block_erase = erase_block_jedec,
7270 }, {
7271 .eraseblocks = { {128 * 1024, 1} },
7272 .block_erase = erase_chip_block_jedec,
7273 }
7274 },
Sean Nelson35727f72010-01-28 23:55:12 +00007275 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007276 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007277 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00007278 },
7279
7280 {
7281 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007282 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007283 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007284 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007285 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007286 .total_size = 256,
7287 .page_size = 4096,
7288 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7289 .tested = TEST_UNTESTED,
7290 .probe = probe_jedec,
7291 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7292 .block_erasers =
7293 {
7294 {
7295 .eraseblocks = { {4 * 1024, 64} },
7296 .block_erase = erase_sector_jedec,
7297 }, {
7298 .eraseblocks = { {64 * 1024, 4} },
7299 .block_erase = erase_block_jedec,
7300 }, {
7301 .eraseblocks = { {256 * 1024, 1} },
7302 .block_erase = erase_chip_block_jedec,
7303 }
7304 },
7305 .write = write_jedec_1,
7306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007307 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007308 },
7309
7310 {
7311 .vendor = "PMC",
7312 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007313 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007314 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007315 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007316 .total_size = 512,
7317 .page_size = 4096,
7318 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007319 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007320 .probe = probe_jedec,
7321 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7322 .block_erasers =
7323 {
7324 {
7325 .eraseblocks = { {4 * 1024, 128} },
7326 .block_erase = erase_sector_jedec,
7327 }, {
7328 .eraseblocks = { {64 * 1024, 8} },
7329 .block_erase = erase_block_jedec,
7330 }, {
7331 .eraseblocks = { {512 * 1024, 1} },
7332 .block_erase = erase_chip_block_jedec,
7333 }
7334 },
7335 .write = write_jedec_1,
7336 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007337 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007338 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00007339
7340 {
7341 .vendor = "PMC",
7342 .name = "Pm39LV512",
7343 .bustype = BUS_PARALLEL,
7344 .manufacture_id = PMC_ID_NOPREFIX,
7345 .model_id = PMC_PM39LV512,
7346 .total_size = 64,
7347 .page_size = 4096,
7348 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7349 .tested = TEST_OK_PREW,
7350 .probe = probe_jedec,
7351 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7352 .block_erasers =
7353 {
7354 {
7355 .eraseblocks = { {4 * 1024, 16} },
7356 .block_erase = erase_sector_jedec,
7357 }, {
7358 .eraseblocks = { {64 * 1024, 1} },
7359 .block_erase = erase_block_jedec,
7360 }, {
7361 .eraseblocks = { {64 * 1024, 1} },
7362 .block_erase = erase_chip_block_jedec,
7363 }
7364 },
7365 .write = write_jedec_1,
7366 .read = read_memmapped,
7367 .voltage = {2700, 3600},
7368 },
7369
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00007370 {
7371 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007372 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007373 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007374 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007375 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007376 .total_size = 256,
7377 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007378 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00007379 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007380 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007381 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007382 .block_erasers =
7383 {
7384 {
7385 .eraseblocks = { {4 * 1024, 64} },
7386 .block_erase = erase_sector_jedec,
7387 }, {
7388 .eraseblocks = { {16 * 1024, 16} },
7389 .block_erase = erase_block_jedec,
7390 }, {
7391 .eraseblocks = { {256 * 1024, 1} },
7392 .block_erase = erase_chip_block_jedec,
7393 }
7394 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007395 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007396 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007398 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007399 },
7400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007401 {
7402 .vendor = "PMC",
7403 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007404 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007405 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007406 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007407 .total_size = 512,
7408 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007409 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007410 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007411 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007412 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00007413 .block_erasers =
7414 {
7415 {
7416 .eraseblocks = { {4 * 1024, 128} },
7417 .block_erase = erase_sector_jedec,
7418 }, {
7419 .eraseblocks = { {64 * 1024, 8} },
7420 .block_erase = erase_block_jedec,
7421 }, {
7422 .eraseblocks = { {512 * 1024, 1} },
7423 .block_erase = erase_chip_block_jedec,
7424 }
7425 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007426 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00007427 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007428 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007429 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007430 },
7431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007432 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00007433 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007434 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007435 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007436 .manufacture_id = SANYO_ID,
7437 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007438 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00007439 .page_size = 256,
7440 .tested = TEST_UNTESTED,
7441 .probe = probe_spi_rdid,
7442 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007443 .block_erasers =
7444 {
7445 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007446 .eraseblocks = { {256, 1024} },
7447 .block_erase = spi_block_erase_db,
7448 }, {
7449 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00007450 .block_erase = spi_block_erase_d8,
7451 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007452 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00007453 .block_erase = spi_block_erase_c7,
7454 }
7455 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007456 .printlock = spi_prettyprint_status_register_default_welwip,
7457 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00007458 .write = spi_chip_write_256,
7459 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00007460 .voltage = {2700, 3600},
7461 },
7462
7463 {
7464 .vendor = "Sanyo",
7465 .name = "LE25FW403A",
7466 .bustype = BUS_SPI,
7467 .manufacture_id = SANYO_ID,
7468 .model_id = SANYO_LE25FW403A,
7469 .total_size = 512,
7470 .page_size = 256,
7471 .tested = TEST_UNTESTED,
7472 .probe = probe_spi_rdid,
7473 .probe_timing = TIMING_ZERO,
7474 .block_erasers = {
7475 {
7476 .eraseblocks = { {256, 2 * 1024} },
7477 .block_erase = spi_block_erase_db,
7478 }, {
7479 .eraseblocks = { {64 * 1024, 8} },
7480 .block_erase = spi_block_erase_d8,
7481 }, {
7482 .eraseblocks = { {512 * 1024, 1} },
7483 .block_erase = spi_block_erase_c7,
7484 }
7485 },
7486 .printlock = spi_prettyprint_status_register_default_welwip,
7487 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7488 .write = spi_chip_write_256,
7489 .read = spi_chip_read,
7490 .voltage = {2700, 3600},
7491 },
7492
7493 {
7494 .vendor = "Sanyo",
7495 .name = "LE25FW418A",
7496 .bustype = BUS_SPI,
7497 .manufacture_id = SANYO_ID,
7498 .model_id = SANYO_LE25FW418A,
7499 .total_size = 512,
7500 .page_size = 256,
7501 .feature_bits = FEATURE_WRSR_WREN,
7502 .tested = TEST_UNTESTED,
7503 .probe = probe_spi_res2,
7504 .probe_timing = TIMING_ZERO,
7505 .block_erasers = {
7506 {
7507 .eraseblocks = { {4 * 1024, 128} },
7508 .block_erase = spi_block_erase_d7,
7509 }, {
7510 .eraseblocks = { {64 * 1024, 8} },
7511 .block_erase = spi_block_erase_d8,
7512 }, {
7513 .eraseblocks = { {512 * 1024, 1} },
7514 .block_erase = spi_block_erase_c7,
7515 }
7516 },
7517 .printlock = spi_prettyprint_status_register_default_bp2,
7518 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
7519 .write = spi_chip_write_256,
7520 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
7521 .voltage = {2700, 3600},
7522 },
7523
7524 {
7525 .vendor = "Sanyo",
7526 .name = "LE25FW806",
7527 .bustype = BUS_SPI,
7528 .manufacture_id = SANYO_ID,
7529 .model_id = SANYO_LE25FW806,
7530 .total_size = 1024,
7531 .page_size = 256,
7532 .feature_bits = FEATURE_WRSR_WREN,
7533 .tested = TEST_UNTESTED,
7534 .probe = probe_spi_res2,
7535 .probe_timing = TIMING_ZERO,
7536 .block_erasers = {
7537 {
7538 .eraseblocks = { {4 * 1024, 256} },
7539 .block_erase = spi_block_erase_20,
7540 }, {
7541 .eraseblocks = { {4 * 1024, 256} },
7542 .block_erase = spi_block_erase_d7,
7543 }, {
7544 .eraseblocks = { {64 * 1024, 16} },
7545 .block_erase = spi_block_erase_d8,
7546 }, {
7547 .eraseblocks = { {1024 * 1024, 1} },
7548 .block_erase = spi_block_erase_c7,
7549 }
7550 },
7551 .printlock = spi_prettyprint_status_register_default_bp2,
7552 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
7553 .write = spi_chip_write_256,
7554 .read = spi_chip_read,
7555 .voltage = {2700, 3600},
7556 },
7557
7558 {
7559 .vendor = "Sanyo",
7560 .name = "LE25FW808",
7561 .bustype = BUS_SPI,
7562 .manufacture_id = SANYO_ID,
7563 .model_id = SANYO_LE25FW808,
7564 .total_size = 1024,
7565 .page_size = 256,
7566 .feature_bits = FEATURE_WRSR_WREN,
7567 .tested = TEST_UNTESTED,
7568 .probe = probe_spi_res2,
7569 .probe_timing = TIMING_ZERO,
7570 .block_erasers = {
7571 {
7572 .eraseblocks = { {8 * 1024, 128} },
7573 .block_erase = spi_block_erase_d7,
7574 }, {
7575 .eraseblocks = { {64 * 1024, 16} },
7576 .block_erase = spi_block_erase_d8,
7577 }, {
7578 .eraseblocks = { {1024 * 1024, 1} },
7579 .block_erase = spi_block_erase_c7,
7580 }
7581 },
7582 .printlock = spi_prettyprint_status_register_default_bp2,
7583 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
7584 .write = spi_chip_write_256,
7585 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
7586 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00007587 },
7588
7589 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007590 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00007591 .name = "LH28F008BJT-BTLZ1",
7592 .bustype = BUS_PARALLEL,
7593 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007594 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00007595 .total_size = 1024,
7596 .page_size = 64 * 1024,
7597 .tested = TEST_OK_PREW,
7598 .probe = probe_82802ab,
7599 .probe_timing = TIMING_ZERO,
7600 .block_erasers =
7601 {
7602 {
7603 .eraseblocks = {
7604 {8 * 1024, 8},
7605 {64 * 1024, 15}
7606 },
7607 .block_erase = erase_block_82802ab,
7608 }, {
7609 .eraseblocks = { {1024 * 1024, 1} },
7610 .block_erase = erase_sector_49lfxxxc,
7611 }
7612 },
7613 .unlock = unlock_lh28f008bjt,
7614 .write = write_82802ab,
7615 .read = read_memmapped,
7616 .voltage = {2700, 3600},
7617 },
7618
7619 {
7620 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007621 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007622 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007623 .manufacture_id = SHARP_ID,
7624 .model_id = SHARP_LHF00L04,
7625 .total_size = 1024,
7626 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007627 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007628 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007629 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007630 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007631 .block_erasers =
7632 {
7633 {
7634 .eraseblocks = {
7635 {64 * 1024, 15},
7636 {8 * 1024, 8}
7637 },
Sean Nelson28accc22010-03-19 18:47:06 +00007638 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007639 }, {
7640 .eraseblocks = {
7641 {1024 * 1024, 1}
7642 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007643 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00007644 },
7645 },
Sean Nelson28accc22010-03-19 18:47:06 +00007646 .unlock = unlock_82802ab,
7647 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007648 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007649 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007650 },
7651
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007652 {
7653 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00007654 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007655 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007656 .manufacture_id = SPANSION_ID,
7657 .model_id = SPANSION_S25FL004A,
7658 .total_size = 512,
7659 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007660 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00007661 .tested = TEST_UNTESTED,
7662 .probe = probe_spi_rdid,
7663 .probe_timing = TIMING_ZERO,
7664 .block_erasers =
7665 {
7666 {
7667 .eraseblocks = { {64 * 1024, 8} },
7668 .block_erase = spi_block_erase_d8,
7669 }, {
7670 .eraseblocks = { {512 * 1024, 1} },
7671 .block_erase = spi_block_erase_c7,
7672 }
7673 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007675 .unlock = spi_disable_blockprotect,
7676 .write = spi_chip_write_256,
7677 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007678 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007679 },
7680
7681 {
7682 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00007683 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007684 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00007685 .manufacture_id = SPANSION_ID,
7686 .model_id = SPANSION_S25FL008A,
7687 .total_size = 1024,
7688 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007689 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007690 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00007691 .probe = probe_spi_rdid,
7692 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00007693 .block_erasers =
7694 {
7695 {
7696 .eraseblocks = { {64 * 1024, 16} },
7697 .block_erase = spi_block_erase_d8,
7698 }, {
7699 .eraseblocks = { {1024 * 1024, 1} },
7700 .block_erase = spi_block_erase_c7,
7701 }
7702 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007703 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007704 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00007705 .write = spi_chip_write_256,
7706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007707 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00007708 },
7709
7710 {
7711 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007712 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007714 .manufacture_id = SPANSION_ID,
7715 .model_id = SPANSION_S25FL016A,
7716 .total_size = 2048,
7717 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007718 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007719 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007720 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007721 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00007722 .block_erasers =
7723 {
7724 {
7725 .eraseblocks = { {64 * 1024, 32} },
7726 .block_erase = spi_block_erase_d8,
7727 }, {
7728 .eraseblocks = { {2 * 1024 * 1024, 1} },
7729 .block_erase = spi_block_erase_c7,
7730 }
7731 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007732 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007733 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007734 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007735 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007736 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007737 },
7738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007739 {
Rudy Hostf4e57772010-11-29 00:37:49 +00007740 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007741 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007742 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007743 .manufacture_id = SPANSION_ID,
7744 .model_id = SPANSION_S25FL032A,
7745 .total_size = 4096,
7746 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007747 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007748 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00007749 .probe = probe_spi_rdid,
7750 .probe_timing = TIMING_ZERO,
7751 .block_erasers =
7752 {
7753 {
7754 .eraseblocks = { {64 * 1024, 64} },
7755 .block_erase = spi_block_erase_d8,
7756 }, {
7757 .eraseblocks = { {4 * 1024 * 1024, 1} },
7758 .block_erase = spi_block_erase_c7,
7759 }
7760 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007761 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007762 .unlock = spi_disable_blockprotect,
7763 .write = spi_chip_write_256,
7764 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007765 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007766 },
7767
7768 {
7769 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007770 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007771 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00007772 .manufacture_id = SPANSION_ID,
7773 .model_id = SPANSION_S25FL064A,
7774 .total_size = 8192,
7775 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007776 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00007777 .tested = TEST_OK_PREW,
7778 .probe = probe_spi_rdid,
7779 .probe_timing = TIMING_ZERO,
7780 .block_erasers =
7781 {
7782 {
7783 .eraseblocks = { {64 * 1024, 128} },
7784 .block_erase = spi_block_erase_d8,
7785 }, {
7786 .eraseblocks = { {8 * 1024 * 1024, 1} },
7787 .block_erase = spi_block_erase_c7,
7788 }
7789 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00007791 .unlock = spi_disable_blockprotect,
7792 .write = spi_chip_write_256,
7793 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007794 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00007795 },
7796
7797 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007798 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00007799 .name = "SST25LF040A",
7800 .bustype = BUS_SPI,
7801 .manufacture_id = SST_ID,
7802 .model_id = SST_SST25VF040_REMS,
7803 .total_size = 512,
7804 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007805 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00007806 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00007807 .probe = probe_spi_res2,
7808 .probe_timing = TIMING_ZERO,
7809 .block_erasers =
7810 {
7811 {
7812 .eraseblocks = { {4 * 1024, 128} },
7813 .block_erase = spi_block_erase_20,
7814 }, {
7815 .eraseblocks = { {32 * 1024, 16} },
7816 .block_erase = spi_block_erase_52,
7817 }, {
7818 .eraseblocks = { {512 * 1024, 1} },
7819 .block_erase = spi_block_erase_60,
7820 },
7821 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007822 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00007823 .unlock = spi_disable_blockprotect,
7824 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
7825 .read = spi_chip_read,
7826 .voltage = {3000, 3600},
7827 },
7828
7829 {
7830 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00007831 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00007832 .bustype = BUS_SPI,
7833 .manufacture_id = SST_ID,
7834 .model_id = SST_SST25VF080_REMS,
7835 .total_size = 1024,
7836 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007837 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00007838 .tested = TEST_UNTESTED,
7839 .probe = probe_spi_res2,
7840 .probe_timing = TIMING_ZERO,
7841 .block_erasers =
7842 {
7843 {
7844 .eraseblocks = { {4 * 1024, 256} },
7845 .block_erase = spi_block_erase_20,
7846 }, {
7847 .eraseblocks = { {32 * 1024, 32} },
7848 .block_erase = spi_block_erase_52,
7849 }, {
7850 .eraseblocks = { {1024 * 1024, 1} },
7851 .block_erase = spi_block_erase_60,
7852 },
7853 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007854 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00007855 .unlock = spi_disable_blockprotect,
7856 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
7857 .read = spi_chip_read,
7858 .voltage = {3000, 3600},
7859 },
7860
7861 {
7862 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007863 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007864 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00007865 .manufacture_id = SST_ID,
7866 .model_id = SST_SST25VF010_REMS,
7867 .total_size = 128,
7868 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007869 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00007870 .tested = TEST_OK_PREW,
7871 .probe = probe_spi_rems,
7872 .probe_timing = TIMING_ZERO,
7873 .block_erasers =
7874 {
7875 {
7876 .eraseblocks = { {4 * 1024, 32} },
7877 .block_erase = spi_block_erase_20,
7878 }, {
7879 .eraseblocks = { {32 * 1024, 4} },
7880 .block_erase = spi_block_erase_52,
7881 }, {
7882 .eraseblocks = { {128 * 1024, 1} },
7883 .block_erase = spi_block_erase_60,
7884 },
7885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007886 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00007887 .unlock = spi_disable_blockprotect,
7888 .write = spi_chip_write_1,
7889 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007890 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00007891 },
7892
7893 {
7894 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007895 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007896 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007897 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007898 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 .total_size = 2048,
7900 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00007901 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00007902 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007903 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007904 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007905 .block_erasers =
7906 {
7907 {
7908 .eraseblocks = { {4 * 1024, 512} },
7909 .block_erase = spi_block_erase_20,
7910 }, {
7911 .eraseblocks = { {32 * 1024, 64} },
7912 .block_erase = spi_block_erase_52,
7913 }, {
7914 .eraseblocks = { {64 * 1024, 32} },
7915 .block_erase = spi_block_erase_d8,
7916 }, {
7917 .eraseblocks = { {2 * 1024 * 1024, 1} },
7918 .block_erase = spi_block_erase_60,
7919 }, {
7920 .eraseblocks = { {2 * 1024 * 1024, 1} },
7921 .block_erase = spi_block_erase_c7,
7922 },
7923 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007924 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007925 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007926 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007927 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007928 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007929 },
7930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007931 {
7932 .vendor = "SST",
7933 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007934 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007936 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007937 .total_size = 4096,
7938 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007939 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00007940 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007941 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007942 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007943 .block_erasers =
7944 {
7945 {
7946 .eraseblocks = { {4 * 1024, 1024} },
7947 .block_erase = spi_block_erase_20,
7948 }, {
7949 .eraseblocks = { {32 * 1024, 128} },
7950 .block_erase = spi_block_erase_52,
7951 }, {
7952 .eraseblocks = { {64 * 1024, 64} },
7953 .block_erase = spi_block_erase_d8,
7954 }, {
7955 .eraseblocks = { {4 * 1024 * 1024, 1} },
7956 .block_erase = spi_block_erase_60,
7957 }, {
7958 .eraseblocks = { {4 * 1024 * 1024, 1} },
7959 .block_erase = spi_block_erase_c7,
7960 },
7961 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007962 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007963 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00007964 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007966 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007967 },
7968
7969 {
7970 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007971 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007972 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007973 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007974 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007975 .total_size = 8192,
7976 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007977 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00007978 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00007979 .probe = probe_spi_rdid,
7980 .probe_timing = TIMING_ZERO,
7981 .block_erasers =
7982 {
7983 {
7984 .eraseblocks = { {4 * 1024, 2048} },
7985 .block_erase = spi_block_erase_20,
7986 }, {
7987 .eraseblocks = { {32 * 1024, 256} },
7988 .block_erase = spi_block_erase_52,
7989 }, {
7990 .eraseblocks = { {64 * 1024, 128} },
7991 .block_erase = spi_block_erase_d8,
7992 }, {
7993 .eraseblocks = { {8 * 1024 * 1024, 1} },
7994 .block_erase = spi_block_erase_60,
7995 }, {
7996 .eraseblocks = { {8 * 1024 * 1024, 1} },
7997 .block_erase = spi_block_erase_c7,
7998 },
7999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008000 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008001 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00008002 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008003 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008004 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00008005 },
8006
8007 {
8008 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008009 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008010 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008011 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008012 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008013 .total_size = 512,
8014 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008015 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008016 .tested = TEST_OK_PR,
8017 .probe = probe_spi_rems,
8018 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008019 .block_erasers =
8020 {
8021 {
8022 .eraseblocks = { {4 * 1024, 128} },
8023 .block_erase = spi_block_erase_20,
8024 }, {
8025 .eraseblocks = { {32 * 1024, 16} },
8026 .block_erase = spi_block_erase_52,
8027 }, {
8028 .eraseblocks = { {512 * 1024, 1} },
8029 .block_erase = spi_block_erase_60,
8030 },
8031 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008032 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008033 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008034 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008035 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008036 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008037 },
8038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008039 {
8040 .vendor = "SST",
8041 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008042 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008043 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008044 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008045 .total_size = 512,
8046 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008047 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008048 .tested = TEST_UNTESTED,
8049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008051 .block_erasers =
8052 {
8053 {
8054 .eraseblocks = { {4 * 1024, 128} },
8055 .block_erase = spi_block_erase_20,
8056 }, {
8057 .eraseblocks = { {32 * 1024, 16} },
8058 .block_erase = spi_block_erase_52,
8059 }, {
8060 .eraseblocks = { {64 * 1024, 8} },
8061 .block_erase = spi_block_erase_d8,
8062 }, {
8063 .eraseblocks = { {512 * 1024, 1} },
8064 .block_erase = spi_block_erase_60,
8065 }, {
8066 .eraseblocks = { {512 * 1024, 1} },
8067 .block_erase = spi_block_erase_c7,
8068 },
8069 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008070 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008071 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008072 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00008073 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008074 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00008075 },
8076
8077 {
8078 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00008079 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008080 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008081 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008082 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00008083 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008084 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008085 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00008086 .tested = TEST_OK_PR,
8087 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008088 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008089 .block_erasers =
8090 {
8091 {
8092 .eraseblocks = { {4 * 1024, 128} },
8093 .block_erase = spi_block_erase_20,
8094 }, {
8095 .eraseblocks = { {32 * 1024, 16} },
8096 .block_erase = spi_block_erase_52,
8097 }, {
8098 .eraseblocks = { {64 * 1024, 8} },
8099 .block_erase = spi_block_erase_d8,
8100 }, {
8101 .eraseblocks = { {512 * 1024, 1} },
8102 .block_erase = spi_block_erase_60,
8103 }, {
8104 .eraseblocks = { {512 * 1024, 1} },
8105 .block_erase = spi_block_erase_c7,
8106 },
8107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008108 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008109 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008110 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00008111 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008112 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00008113 },
8114
8115 {
8116 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008117 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008118 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008119 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008120 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 .total_size = 1024,
8122 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008123 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00008124 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008125 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008126 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00008127 .block_erasers =
8128 {
8129 {
8130 .eraseblocks = { {4 * 1024, 256} },
8131 .block_erase = spi_block_erase_20,
8132 }, {
8133 .eraseblocks = { {32 * 1024, 32} },
8134 .block_erase = spi_block_erase_52,
8135 }, {
8136 .eraseblocks = { {64 * 1024, 16} },
8137 .block_erase = spi_block_erase_d8,
8138 }, {
8139 .eraseblocks = { {1024 * 1024, 1} },
8140 .block_erase = spi_block_erase_60,
8141 }, {
8142 .eraseblocks = { {1024 * 1024, 1} },
8143 .block_erase = spi_block_erase_c7,
8144 },
8145 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008146 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008147 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00008148 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008149 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008150 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008151 },
8152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008153 {
8154 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00008155 .name = "SST25WF512",
8156 .bustype = BUS_SPI,
8157 .manufacture_id = SST_ID,
8158 .model_id = SST_SST25WF512,
8159 .total_size = 64,
8160 .page_size = 256,
8161 .feature_bits = FEATURE_WRSR_EITHER,
8162 .tested = TEST_UNTESTED,
8163 .probe = probe_spi_rdid,
8164 .probe_timing = TIMING_ZERO,
8165 .block_erasers =
8166 {
8167 {
8168 .eraseblocks = { {4 * 1024, 16} },
8169 .block_erase = spi_block_erase_20,
8170 }, {
8171 .eraseblocks = { {32 * 1024, 2} },
8172 .block_erase = spi_block_erase_52,
8173 }, {
8174 .eraseblocks = { {1024 * 64, 1} },
8175 .block_erase = spi_block_erase_60,
8176 }, {
8177 .eraseblocks = { {1024 * 64, 1} },
8178 .block_erase = spi_block_erase_c7,
8179 },
8180 },
8181 .unlock = spi_disable_blockprotect,
8182 .write = spi_aai_write,
8183 .read = spi_chip_read, /* Fast read (0x0B) supported */
8184 .voltage = {1650, 1950},
8185 },
8186
8187 {
8188 .vendor = "SST",
8189 .name = "SST25WF010",
8190 .bustype = BUS_SPI,
8191 .manufacture_id = SST_ID,
8192 .model_id = SST_SST25WF010,
8193 .total_size = 128,
8194 .page_size = 256,
8195 .feature_bits = FEATURE_WRSR_EITHER,
8196 .tested = TEST_UNTESTED,
8197 .probe = probe_spi_rdid,
8198 .probe_timing = TIMING_ZERO,
8199 .block_erasers =
8200 {
8201 {
8202 .eraseblocks = { {4 * 1024, 32} },
8203 .block_erase = spi_block_erase_20,
8204 }, {
8205 .eraseblocks = { {32 * 1024, 4} },
8206 .block_erase = spi_block_erase_52,
8207 }, {
8208 .eraseblocks = { {1024 * 128, 1} },
8209 .block_erase = spi_block_erase_60,
8210 }, {
8211 .eraseblocks = { {1024 * 128, 1} },
8212 .block_erase = spi_block_erase_c7,
8213 },
8214 },
8215 .unlock = spi_disable_blockprotect,
8216 .write = spi_aai_write,
8217 .read = spi_chip_read, /* Fast read (0x0B) supported */
8218 .voltage = {1650, 1950},
8219 },
8220
8221 {
8222 .vendor = "SST",
8223 .name = "SST25WF020",
8224 .bustype = BUS_SPI,
8225 .manufacture_id = SST_ID,
8226 .model_id = SST_SST25WF020,
8227 .total_size = 256,
8228 .page_size = 256,
8229 .feature_bits = FEATURE_WRSR_EITHER,
8230 .tested = TEST_UNTESTED,
8231 .probe = probe_spi_rdid,
8232 .probe_timing = TIMING_ZERO,
8233 .block_erasers =
8234 {
8235 {
8236 .eraseblocks = { {4 * 1024, 64} },
8237 .block_erase = spi_block_erase_20,
8238 }, {
8239 .eraseblocks = { {32 * 1024, 8} },
8240 .block_erase = spi_block_erase_52,
8241 }, {
8242 .eraseblocks = { {64 * 1024, 4} },
8243 .block_erase = spi_block_erase_d8,
8244 }, {
8245 .eraseblocks = { {1024 * 256, 1} },
8246 .block_erase = spi_block_erase_60,
8247 }, {
8248 .eraseblocks = { {1024 * 256, 1} },
8249 .block_erase = spi_block_erase_c7,
8250 },
8251 },
8252 .unlock = spi_disable_blockprotect,
8253 .write = spi_aai_write,
8254 .read = spi_chip_read, /* Fast read (0x0B) supported */
8255 .voltage = {1650, 1950},
8256 },
8257
8258 {
8259 .vendor = "SST",
8260 .name = "SST25WF040",
8261 .bustype = BUS_SPI,
8262 .manufacture_id = SST_ID,
8263 .model_id = SST_SST25WF040,
8264 .total_size = 512,
8265 .page_size = 256,
8266 .feature_bits = FEATURE_WRSR_EITHER,
8267 .tested = TEST_UNTESTED,
8268 .probe = probe_spi_rdid,
8269 .probe_timing = TIMING_ZERO,
8270 .block_erasers =
8271 {
8272 {
8273 .eraseblocks = { {4 * 1024, 128} },
8274 .block_erase = spi_block_erase_20,
8275 }, {
8276 .eraseblocks = { {32 * 1024, 16} },
8277 .block_erase = spi_block_erase_52,
8278 }, {
8279 .eraseblocks = { {64 * 1024, 8} },
8280 .block_erase = spi_block_erase_d8,
8281 }, {
8282 .eraseblocks = { {1024 * 512, 1} },
8283 .block_erase = spi_block_erase_60,
8284 }, {
8285 .eraseblocks = { {1024 * 512, 1} },
8286 .block_erase = spi_block_erase_c7,
8287 },
8288 },
8289 .unlock = spi_disable_blockprotect,
8290 .write = spi_aai_write,
8291 .read = spi_chip_read, /* Fast read (0x0B) supported */
8292 .voltage = {1650, 1950},
8293 },
8294
8295 {
8296 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008297 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008298 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008299 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008300 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008301 .total_size = 512,
8302 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008303 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008304 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008305 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008306 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008307 .block_erasers =
8308 {
8309 {
8310 .eraseblocks = { {128, 4096} },
8311 .block_erase = erase_sector_28sf040,
8312 }, {
8313 .eraseblocks = { {512 * 1024, 1} },
8314 .block_erase = erase_chip_28sf040,
8315 }
8316 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008317 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008318 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008320 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008321 },
8322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008323 {
8324 .vendor = "SST",
8325 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008326 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008327 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008328 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008329 .total_size = 128,
8330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008332 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008333 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008334 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008335 .block_erasers =
8336 {
8337 {
8338 .eraseblocks = { {128 * 1024, 1} },
8339 .block_erase = erase_chip_block_jedec,
8340 }
8341 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008342 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008344 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008345 },
8346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008347 {
8348 .vendor = "SST",
8349 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008351 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008352 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008353 .total_size = 128,
8354 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008355 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008356 .tested = TEST_UNTESTED,
8357 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008358 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008359 .block_erasers =
8360 {
8361 {
8362 .eraseblocks = { {128 * 1024, 1} },
8363 .block_erase = erase_chip_block_jedec,
8364 }
8365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008368 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008369 },
8370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008371 {
8372 .vendor = "SST",
8373 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008375 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008376 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008377 .total_size = 256,
8378 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008379 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008380 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008381 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008382 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008383 .block_erasers =
8384 {
8385 {
8386 .eraseblocks = { {256 * 1024, 1} },
8387 .block_erase = erase_chip_block_jedec,
8388 }
8389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008393 },
8394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008395 {
8396 .vendor = "SST",
8397 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008399 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008400 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008401 .total_size = 256,
8402 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008403 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008404 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008405 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008406 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008407 .block_erasers =
8408 {
8409 {
8410 .eraseblocks = { {256 * 1024, 1} },
8411 .block_erase = erase_chip_block_jedec,
8412 }
8413 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008414 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008416 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008417 },
8418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008419 {
8420 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00008421 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008422 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008424 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008425 .total_size = 64,
8426 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008427 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00008428 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008429 .probe = probe_jedec,
8430 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00008431 .block_erasers =
8432 {
8433 {
8434 .eraseblocks = { {4 * 1024, 16} },
8435 .block_erase = erase_sector_jedec,
8436 }, {
8437 .eraseblocks = { {64 * 1024, 1} },
8438 .block_erase = erase_chip_block_jedec,
8439 }
8440 },
Sean Nelson35727f72010-01-28 23:55:12 +00008441 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00008442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008443 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00008444 },
8445
8446 {
8447 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008448 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008449 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008450 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008451 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008452 .total_size = 128,
8453 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008454 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008455 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008456 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008457 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008458 .block_erasers =
8459 {
8460 {
8461 .eraseblocks = { {4 * 1024, 32} },
8462 .block_erase = erase_sector_jedec,
8463 }, {
8464 .eraseblocks = { {128 * 1024, 1} },
8465 .block_erase = erase_chip_block_jedec,
8466 }
8467 },
Sean Nelson35727f72010-01-28 23:55:12 +00008468 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008470 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008471 },
8472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008473 {
8474 .vendor = "SST",
8475 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008476 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008477 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008478 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008479 .total_size = 256,
8480 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008481 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008482 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008483 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008484 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008485 .block_erasers =
8486 {
8487 {
8488 .eraseblocks = { {4 * 1024, 64} },
8489 .block_erase = erase_sector_jedec,
8490 }, {
8491 .eraseblocks = { {256 * 1024, 1} },
8492 .block_erase = erase_chip_block_jedec,
8493 }
8494 },
Sean Nelson35727f72010-01-28 23:55:12 +00008495 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008497 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008498 },
8499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008500 {
8501 .vendor = "SST",
8502 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008503 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008504 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008505 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008506 .total_size = 512,
8507 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008508 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008510 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008511 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008512 .block_erasers =
8513 {
8514 {
8515 .eraseblocks = { {4 * 1024, 128} },
8516 .block_erase = erase_sector_jedec,
8517 }, {
8518 .eraseblocks = { {512 * 1024, 1} },
8519 .block_erase = erase_chip_block_jedec,
8520 }
8521 },
Sean Nelson35727f72010-01-28 23:55:12 +00008522 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008524 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008525 },
8526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008527 {
8528 .vendor = "SST",
8529 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008530 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008531 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008532 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008533 .total_size = 64,
8534 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008535 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008537 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008538 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008539 .block_erasers =
8540 {
8541 {
8542 .eraseblocks = { {4 * 1024, 16} },
8543 .block_erase = erase_sector_jedec,
8544 }, {
8545 .eraseblocks = { {64 * 1024, 1} },
8546 .block_erase = erase_chip_block_jedec,
8547 }
8548 },
Sean Nelson35727f72010-01-28 23:55:12 +00008549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008552 },
8553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008554 {
8555 .vendor = "SST",
8556 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008557 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008558 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008559 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008560 .total_size = 128,
8561 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008562 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008564 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008565 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008566 .block_erasers =
8567 {
8568 {
8569 .eraseblocks = { {4 * 1024, 32} },
8570 .block_erase = erase_sector_jedec,
8571 }, {
8572 .eraseblocks = { {128 * 1024, 1} },
8573 .block_erase = erase_chip_block_jedec,
8574 }
8575 },
Sean Nelson35727f72010-01-28 23:55:12 +00008576 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008578 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008579 },
8580
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008581 {
8582 .vendor = "SST",
8583 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008584 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008585 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008586 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008587 .total_size = 256,
8588 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008589 .feature_bits = FEATURE_EITHER_RESET,
8590 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008591 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008592 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008593 .block_erasers =
8594 {
8595 {
8596 .eraseblocks = { {4 * 1024, 64} },
8597 .block_erase = erase_sector_jedec,
8598 }, {
8599 .eraseblocks = { {256 * 1024, 1} },
8600 .block_erase = erase_chip_block_jedec,
8601 }
8602 },
Sean Nelson35727f72010-01-28 23:55:12 +00008603 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008604 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008605 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008606 },
8607
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008608 {
8609 .vendor = "SST",
8610 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008611 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008612 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008613 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008614 .total_size = 512,
8615 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008616 .feature_bits = FEATURE_EITHER_RESET,
8617 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008618 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008619 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008620 .block_erasers =
8621 {
8622 {
8623 .eraseblocks = { {4 * 1024, 128} },
8624 .block_erase = erase_sector_jedec,
8625 }, {
8626 .eraseblocks = { {512 * 1024, 1} },
8627 .block_erase = erase_chip_block_jedec,
8628 }
8629 },
Sean Nelson35727f72010-01-28 23:55:12 +00008630 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008632 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00008633 },
FENG yu ningff692fb2008-12-08 18:15:10 +00008634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008635 {
8636 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00008637 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008638 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00008639 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008640 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00008641 .total_size = 1024,
8642 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008643 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00008644 .tested = TEST_UNTESTED,
8645 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008646 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008647 .block_erasers =
8648 {
8649 {
8650 .eraseblocks = { {4 * 1024, 256} },
8651 .block_erase = erase_sector_jedec,
8652 }, {
8653 .eraseblocks = { {64 * 1024, 16} },
8654 .block_erase = erase_block_jedec,
8655 }, {
8656 .eraseblocks = { {1024 * 1024, 1} },
8657 .block_erase = erase_chip_block_jedec,
8658 }
8659 },
Sean Nelson35727f72010-01-28 23:55:12 +00008660 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008661 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008662 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00008663 },
8664
8665 {
8666 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008667 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008668 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008669 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008670 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008671 .total_size = 256,
8672 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008673 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008674 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008675 .probe = probe_jedec,
8676 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008677 .block_erasers =
8678 {
8679 {
8680 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008681 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008682 }, {
8683 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008684 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008685 }, {
8686 .eraseblocks = { {256 * 1024, 1} },
8687 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8688 }
8689 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008690 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008691 .unlock = unlock_sst_fwhub,
8692 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008694 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008695 },
8696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 {
8698 .vendor = "SST",
8699 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008700 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008701 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008702 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008703 .total_size = 384,
8704 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008705 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00008706 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008707 .probe = probe_jedec,
8708 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008709 .block_erasers =
8710 {
8711 {
8712 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008713 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008714 }, {
8715 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008716 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008717 }, {
8718 .eraseblocks = { {384 * 1024, 1} },
8719 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8720 }
8721 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008722 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008723 .unlock = unlock_sst_fwhub,
8724 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008726 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008727 },
8728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008729 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008730 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
8731 * and is only honored for 64k block erase, but not 4k sector erase.
8732 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008733 .vendor = "SST",
8734 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008735 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008736 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008737 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008738 .total_size = 512,
8739 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008740 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008741 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008742 .probe = probe_jedec,
8743 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008744 .block_erasers =
8745 {
8746 {
8747 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008748 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008749 }, {
8750 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008751 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008752 }, {
8753 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00008754 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00008755 },
8756 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008757 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008758 .unlock = unlock_sst_fwhub,
8759 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008760 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008761 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008762 },
8763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008764 {
8765 .vendor = "SST",
8766 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008767 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008768 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008769 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008770 .total_size = 512,
8771 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008772 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008773 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008774 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008775 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008776 .block_erasers =
8777 {
8778 {
8779 .eraseblocks = { {4 * 1024, 128} },
8780 .block_erase = erase_sector_49lfxxxc,
8781 }, {
8782 .eraseblocks = {
8783 {64 * 1024, 7},
8784 {32 * 1024, 1},
8785 {8 * 1024, 2},
8786 {16 * 1024, 1},
8787 },
Sean Nelson69e58112010-03-23 17:10:28 +00008788 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008789 }
8790 },
Sean Nelson69e58112010-03-23 17:10:28 +00008791 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008792 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008793 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008794 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008795 },
8796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008797 {
8798 .vendor = "SST",
8799 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008800 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008801 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008802 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008803 .total_size = 1024,
8804 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008805 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008806 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008807 .probe = probe_jedec,
8808 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008809 .block_erasers =
8810 {
8811 {
8812 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008813 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008814 }, {
8815 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008816 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008817 }, {
8818 .eraseblocks = { {1024 * 1024, 1} },
8819 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
8820 }
8821 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008822 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00008823 .unlock = unlock_sst_fwhub,
8824 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008826 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008827 },
8828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008829 {
8830 .vendor = "SST",
8831 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008832 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008833 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008834 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008835 .total_size = 1024,
8836 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008837 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008838 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008839 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008840 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008841 .block_erasers =
8842 {
8843 {
8844 .eraseblocks = { {4 * 1024, 256} },
8845 .block_erase = erase_sector_49lfxxxc,
8846 }, {
8847 .eraseblocks = {
8848 {64 * 1024, 15},
8849 {32 * 1024, 1},
8850 {8 * 1024, 2},
8851 {16 * 1024, 1},
8852 },
Sean Nelson69e58112010-03-23 17:10:28 +00008853 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008854 }
8855 },
Sean Nelson69e58112010-03-23 17:10:28 +00008856 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008857 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008859 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008860 },
8861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008862 {
8863 .vendor = "SST",
8864 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008865 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008866 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008867 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008868 .total_size = 2048,
8869 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008870 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00008871 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008872 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008873 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008874 .block_erasers =
8875 {
8876 {
8877 .eraseblocks = { {4 * 1024, 512} },
8878 .block_erase = erase_sector_49lfxxxc,
8879 }, {
8880 .eraseblocks = {
8881 {64 * 1024, 31},
8882 {32 * 1024, 1},
8883 {8 * 1024, 2},
8884 {16 * 1024, 1},
8885 },
Sean Nelson69e58112010-03-23 17:10:28 +00008886 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008887 }
8888 },
Sean Nelson69e58112010-03-23 17:10:28 +00008889 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008890 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008892 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008893 },
8894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008895 {
8896 .vendor = "SST",
8897 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008898 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008899 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008900 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008901 .total_size = 256,
8902 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008903 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00008904 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008905 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008906 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008907 .block_erasers =
8908 {
8909 {
8910 .eraseblocks = { {4 * 1024, 64} },
8911 .block_erase = erase_sector_jedec,
8912 }, {
8913 .eraseblocks = { {16 * 1024, 16} },
8914 .block_erase = erase_block_jedec,
8915 }, {
8916 .eraseblocks = { {256 * 1024, 1} },
8917 .block_erase = NULL,
8918 }
8919 },
Sean Nelson35727f72010-01-28 23:55:12 +00008920 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008922 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00008923 },
8924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008925 {
8926 .vendor = "SST",
8927 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008928 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008929 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008930 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008931 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00008932 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008933 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008934 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008935 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008936 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008937 .block_erasers =
8938 {
8939 {
8940 .eraseblocks = { {4 * 1024, 64} },
8941 .block_erase = erase_sector_jedec,
8942 }, {
8943 .eraseblocks = { {16 * 1024, 16} },
8944 .block_erase = erase_block_jedec,
8945 }, {
8946 .eraseblocks = { {256 * 1024, 1} },
8947 .block_erase = NULL,
8948 }
8949 },
Sean Nelson35727f72010-01-28 23:55:12 +00008950 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008952 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008953 },
8954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008955 {
8956 .vendor = "SST",
8957 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008958 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008959 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008960 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008961 .total_size = 512,
8962 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008963 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008964 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008965 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00008966 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008967 .block_erasers =
8968 {
8969 {
8970 .eraseblocks = { {4 * 1024, 128} },
8971 .block_erase = erase_sector_jedec,
8972 }, {
8973 .eraseblocks = { {64 * 1024, 8} },
8974 .block_erase = erase_block_jedec,
8975 }, {
8976 .eraseblocks = { {512 * 1024, 1} },
8977 .block_erase = NULL,
8978 }
8979 },
Sean Nelson35727f72010-01-28 23:55:12 +00008980 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008982 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008983 },
8984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 {
8986 .vendor = "SST",
8987 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008988 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008989 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008990 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008991 .total_size = 512,
8992 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00008993 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008994 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008995 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008996 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008997 .block_erasers =
8998 {
8999 {
9000 .eraseblocks = { {4 * 1024, 128} },
9001 .block_erase = erase_sector_jedec,
9002 }, {
9003 .eraseblocks = { {64 * 1024, 8} },
9004 .block_erase = erase_block_jedec,
9005 }, {
9006 .eraseblocks = { {512 * 1024, 1} },
9007 .block_erase = NULL,
9008 }
9009 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00009010 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00009011 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009012 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009013 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009014 },
9015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 {
9017 .vendor = "SST",
9018 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009019 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009020 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009021 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009022 .total_size = 1024,
9023 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009024 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00009025 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009026 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00009027 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009028 .block_erasers =
9029 {
9030 {
9031 .eraseblocks = { {4 * 1024, 256} },
9032 .block_erase = erase_sector_jedec,
9033 }, {
9034 .eraseblocks = { {64 * 1024, 16} },
9035 .block_erase = erase_block_jedec,
9036 }, {
9037 .eraseblocks = { {1024 * 1024, 1} },
9038 .block_erase = NULL,
9039 }
9040 },
Sean Nelson35727f72010-01-28 23:55:12 +00009041 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009043 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009044 },
9045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009046 {
9047 .vendor = "SST",
9048 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009049 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009050 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009051 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009052 .total_size = 2048,
9053 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009054 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009055 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009056 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009057 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009058 .block_erasers =
9059 {
9060 {
9061 .eraseblocks = { {4 * 1024, 512} },
9062 .block_erase = erase_sector_49lfxxxc,
9063 }, {
9064 .eraseblocks = {
9065 {64 * 1024, 31},
9066 {32 * 1024, 1},
9067 {8 * 1024, 2},
9068 {16 * 1024, 1},
9069 },
Sean Nelson69e58112010-03-23 17:10:28 +00009070 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009071 }
9072 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009073 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009074 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009076 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009077 },
9078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009079 {
9080 .vendor = "ST",
9081 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009082 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009083 .manufacture_id = ST_ID,
9084 .model_id = ST_M25P05A,
9085 .total_size = 64,
9086 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009087 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009088 .tested = TEST_UNTESTED,
9089 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009090 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009091 .block_erasers =
9092 {
9093 {
9094 .eraseblocks = { {32 * 1024, 2} },
9095 .block_erase = spi_block_erase_d8,
9096 }, {
9097 .eraseblocks = { {64 * 1024, 1} },
9098 .block_erase = spi_block_erase_c7,
9099 }
9100 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009101 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009106 },
9107
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009108 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9109 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009110 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009111 * only is successful if RDID does not work.
9112 */
9113 {
9114 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009115 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009116 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009117 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009118 .model_id = ST_M25P05_RES,
9119 .total_size = 64,
9120 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009121 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009122 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009123 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009124 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009125 .block_erasers =
9126 {
9127 {
9128 .eraseblocks = { {32 * 1024, 2} },
9129 .block_erase = spi_block_erase_d8,
9130 }, {
9131 .eraseblocks = { {64 * 1024, 1} },
9132 .block_erase = spi_block_erase_c7,
9133 }
9134 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009135 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009136 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009137 .write = spi_chip_write_1, /* 128 */
9138 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009139 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009140 },
9141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009142 {
9143 .vendor = "ST",
9144 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009145 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009146 .manufacture_id = ST_ID,
9147 .model_id = ST_M25P10A,
9148 .total_size = 128,
9149 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009150 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009151 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009152 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009153 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009154 .block_erasers =
9155 {
9156 {
9157 .eraseblocks = { {32 * 1024, 4} },
9158 .block_erase = spi_block_erase_d8,
9159 }, {
9160 .eraseblocks = { {128 * 1024, 1} },
9161 .block_erase = spi_block_erase_c7,
9162 }
9163 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009164 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009166 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009168 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009169 },
9170
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009171 /* The ST M25P10 has the same problem as the M25P05. */
9172 {
9173 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009174 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009175 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009176 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009177 .model_id = ST_M25P10_RES,
9178 .total_size = 128,
9179 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009180 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009181 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009182 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009183 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009184 .block_erasers =
9185 {
9186 {
9187 .eraseblocks = { {32 * 1024, 4} },
9188 .block_erase = spi_block_erase_d8,
9189 }, {
9190 .eraseblocks = { {128 * 1024, 1} },
9191 .block_erase = spi_block_erase_c7,
9192 }
9193 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009194 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009195 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009196 .write = spi_chip_write_1, /* 128 */
9197 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009198 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00009199 },
9200
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009201 {
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009202 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009203 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009204 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009205 .manufacture_id = ST_ID,
9206 .model_id = ST_M25P20,
9207 .total_size = 256,
9208 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009209 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009210 .tested = TEST_UNTESTED,
9211 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009212 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009213 .block_erasers =
9214 {
9215 {
9216 .eraseblocks = { {64 * 1024, 4} },
9217 .block_erase = spi_block_erase_d8,
9218 }, {
9219 .eraseblocks = { {256 * 1024, 1} },
9220 .block_erase = spi_block_erase_c7,
9221 }
9222 },
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009223 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009224 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009225 .write = spi_chip_write_256,
Kyösti Mälkkic54adc52013-03-04 01:20:28 +00009226 .read = spi_chip_read, /* Fast read (0x0B) supported */
9227 .voltage = {2700, 3600},
9228 },
9229
9230 {
9231 .vendor = "ST",
9232 .name = "M25P20-old",
9233 .bustype = BUS_SPI,
9234 .manufacture_id = 0, /* Not used. */
9235 .model_id = ST_M25P20_RES,
9236 .total_size = 256,
9237 .page_size = 256,
9238 .feature_bits = FEATURE_WRSR_WREN,
9239 .tested = TEST_OK_PREW,
9240 .probe = probe_spi_res1,
9241 .probe_timing = TIMING_ZERO,
9242 .block_erasers =
9243 {
9244 {
9245 .eraseblocks = { {64 * 1024, 4} },
9246 .block_erase = spi_block_erase_d8,
9247 }, {
9248 .eraseblocks = { {256 * 1024, 1} },
9249 .block_erase = spi_block_erase_c7,
9250 }
9251 },
9252 .printlock = spi_prettyprint_status_register_default_bp1,
9253 .unlock = spi_disable_blockprotect,
9254 .write = spi_chip_write_256,
9255 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009256 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009257 },
9258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009259 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009260 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009261 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009262 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009263 .manufacture_id = ST_ID,
9264 .model_id = ST_M25P40,
9265 .total_size = 512,
9266 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009267 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009268 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009269 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009270 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009271 .block_erasers =
9272 {
9273 {
9274 .eraseblocks = { {64 * 1024, 8} },
9275 .block_erase = spi_block_erase_d8,
9276 }, {
9277 .eraseblocks = { {512 * 1024, 1} },
9278 .block_erase = spi_block_erase_c7,
9279 }
9280 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009281 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009282 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009283 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009284 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009285 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009286 },
9287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009288 {
9289 .vendor = "ST",
9290 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009291 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009292 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009293 .model_id = ST_M25P40_RES,
9294 .total_size = 512,
9295 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009296 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009297 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00009298 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009299 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009300 .block_erasers =
9301 {
9302 {
9303 .eraseblocks = { {64 * 1024, 8} },
9304 .block_erase = spi_block_erase_d8,
9305 }, {
9306 .eraseblocks = { {512 * 1024, 1} },
9307 .block_erase = spi_block_erase_c7,
9308 }
9309 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009310 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009311 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009312 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009313 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00009314 },
9315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009316 {
9317 .vendor = "ST",
9318 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009319 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009320 .manufacture_id = ST_ID,
9321 .model_id = ST_M25P80,
9322 .total_size = 1024,
9323 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009324 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00009325 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009326 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009327 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009328 .block_erasers =
9329 {
9330 {
9331 .eraseblocks = { {64 * 1024, 16} },
9332 .block_erase = spi_block_erase_d8,
9333 }, {
9334 .eraseblocks = { {1024 * 1024, 1} },
9335 .block_erase = spi_block_erase_c7,
9336 }
9337 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009338 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009339 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009340 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009341 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009342 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009343 },
9344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009345 {
9346 .vendor = "ST",
9347 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009348 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009349 .manufacture_id = ST_ID,
9350 .model_id = ST_M25P16,
9351 .total_size = 2048,
9352 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009353 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009354 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009355 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009356 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009357 .block_erasers =
9358 {
9359 {
9360 .eraseblocks = { {64 * 1024, 32} },
9361 .block_erase = spi_block_erase_d8,
9362 }, {
9363 .eraseblocks = { {2 * 1024 * 1024, 1} },
9364 .block_erase = spi_block_erase_c7,
9365 }
9366 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009367 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009368 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009369 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009370 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009371 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009372 },
9373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009374 {
9375 .vendor = "ST",
9376 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009377 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009378 .manufacture_id = ST_ID,
9379 .model_id = ST_M25P32,
9380 .total_size = 4096,
9381 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009382 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009383 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009385 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009386 .block_erasers =
9387 {
9388 {
9389 .eraseblocks = { {64 * 1024, 64} },
9390 .block_erase = spi_block_erase_d8,
9391 }, {
9392 .eraseblocks = { {4 * 1024 * 1024, 1} },
9393 .block_erase = spi_block_erase_c7,
9394 }
9395 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009396 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009397 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009398 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009399 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009400 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009401 },
9402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009403 {
9404 .vendor = "ST",
9405 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009406 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009407 .manufacture_id = ST_ID,
9408 .model_id = ST_M25P64,
9409 .total_size = 8192,
9410 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009411 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00009412 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009413 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009414 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009415 .block_erasers =
9416 {
9417 {
9418 .eraseblocks = { {64 * 1024, 128} },
9419 .block_erase = spi_block_erase_d8,
9420 }, {
9421 .eraseblocks = { {8 * 1024 * 1024, 1} },
9422 .block_erase = spi_block_erase_c7,
9423 }
9424 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009425 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009426 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009427 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009428 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009429 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009430 },
9431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009432 {
9433 .vendor = "ST",
9434 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009435 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009436 .manufacture_id = ST_ID,
9437 .model_id = ST_M25P128,
9438 .total_size = 16384,
9439 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009440 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009441 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009442 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009443 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009444 .block_erasers =
9445 {
9446 {
9447 .eraseblocks = { {256 * 1024, 64} },
9448 .block_erase = spi_block_erase_d8,
9449 }, {
9450 .eraseblocks = { {16 * 1024 * 1024, 1} },
9451 .block_erase = spi_block_erase_c7,
9452 }
9453 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009454 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009455 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009456 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009457 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009458 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009459 },
9460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009461 {
9462 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00009463 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009464 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00009465 .manufacture_id = ST_ID,
9466 .model_id = ST_M25PX16,
9467 .total_size = 2048,
9468 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009469 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00009470 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00009471 .tested = TEST_OK_PREW,
9472 .probe = probe_spi_rdid,
9473 .probe_timing = TIMING_ZERO,
9474 .block_erasers =
9475 {
9476 {
9477 .eraseblocks = { { 4 * 1024, 512 } },
9478 .block_erase = spi_block_erase_20,
9479 }, {
9480 .eraseblocks = { {64 * 1024, 32} },
9481 .block_erase = spi_block_erase_d8,
9482 }, {
9483 .eraseblocks = { {2 * 1024 * 1024, 1} },
9484 .block_erase = spi_block_erase_c7,
9485 }
9486 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00009488 .unlock = spi_disable_blockprotect,
9489 .write = spi_chip_write_256,
9490 .read = spi_chip_read,
9491 },
9492
9493 {
9494 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00009495 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009496 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009497 .manufacture_id = ST_ID,
9498 .model_id = ST_M25PX32,
9499 .total_size = 4096,
9500 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009501 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009502 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009503 .probe = probe_spi_rdid,
9504 .probe_timing = TIMING_ZERO,
9505 .block_erasers =
9506 {
9507 {
9508 .eraseblocks = { { 4 * 1024, 1024 } },
9509 .block_erase = spi_block_erase_20,
9510 }, {
9511 .eraseblocks = { {64 * 1024, 64} },
9512 .block_erase = spi_block_erase_d8,
9513 }, {
9514 .eraseblocks = { {4 * 1024 * 1024, 1} },
9515 .block_erase = spi_block_erase_c7,
9516 }
9517 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009518 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00009519 .unlock = spi_disable_blockprotect,
9520 .write = spi_chip_write_256,
9521 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009522 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00009523 },
9524
9525 {
9526 .vendor = "ST",
9527 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009528 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009529 .manufacture_id = ST_ID,
9530 .model_id = ST_M25PX64,
9531 .total_size = 8192,
9532 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009533 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009534 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00009535 .probe = probe_spi_rdid,
9536 .probe_timing = TIMING_ZERO,
9537 .block_erasers =
9538 {
9539 {
9540 .eraseblocks = { { 4 * 1024, 2048 } },
9541 .block_erase = spi_block_erase_20,
9542 }, {
9543 .eraseblocks = { {64 * 1024, 128} },
9544 .block_erase = spi_block_erase_d8,
9545 }, {
9546 .eraseblocks = { {8 * 1024 * 1024, 1} },
9547 .block_erase = spi_block_erase_c7,
9548 }
9549 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009550 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00009551 .unlock = spi_disable_blockprotect,
9552 .write = spi_chip_write_256,
9553 .read = spi_chip_read,
9554 },
9555
9556 {
9557 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009558 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009559 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009560 .manufacture_id = ST_ID,
9561 .model_id = ST_M29F002B,
9562 .total_size = 256,
9563 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009564 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009565 .tested = TEST_UNTESTED,
9566 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009567 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009568 .block_erasers =
9569 {
9570 {
9571 .eraseblocks = {
9572 {16 * 1024, 1},
9573 {8 * 1024, 2},
9574 {32 * 1024, 1},
9575 {64 * 1024, 3},
9576 },
9577 .block_erase = erase_sector_jedec,
9578 }, {
9579 .eraseblocks = { {256 * 1024, 1} },
9580 .block_erase = erase_chip_block_jedec,
9581 }
9582 },
Sean Nelson35727f72010-01-28 23:55:12 +00009583 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009584 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009585 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00009586 },
9587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009588 {
9589 .vendor = "ST",
9590 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009591 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009592 .manufacture_id = ST_ID,
9593 .model_id = ST_M29F002T,
9594 .total_size = 256,
9595 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009596 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009597 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009598 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009599 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009600 .block_erasers =
9601 {
9602 {
9603 .eraseblocks = {
9604 {64 * 1024, 3},
9605 {32 * 1024, 1},
9606 {8 * 1024, 2},
9607 {16 * 1024, 1},
9608 },
9609 .block_erase = erase_sector_jedec,
9610 }, {
9611 .eraseblocks = { {256 * 1024, 1} },
9612 .block_erase = erase_chip_block_jedec,
9613 }
9614 },
Sean Nelson35727f72010-01-28 23:55:12 +00009615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009617 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00009618 },
9619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009620 {
9621 .vendor = "ST",
9622 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009623 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009624 .manufacture_id = ST_ID,
9625 .model_id = ST_M29F040B,
9626 .total_size = 512,
9627 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009628 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9629 .tested = TEST_UNTESTED,
9630 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009631 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00009632 .block_erasers =
9633 {
9634 {
9635 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00009636 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00009637 }, {
9638 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009639 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00009640 }
9641 },
Sean Nelson35727f72010-01-28 23:55:12 +00009642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009644 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009645 },
9646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009647 {
Sean Nelson35727f72010-01-28 23:55:12 +00009648 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009649 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009650 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009651 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009652 .manufacture_id = ST_ID,
9653 .model_id = ST_M29F400BB,
9654 .total_size = 512,
9655 .page_size = 64 * 1024,
9656 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009657 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009658 .probe = probe_m29f400bt,
9659 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
9660 .block_erasers =
9661 {
9662 {
9663 .eraseblocks = {
9664 {16 * 1024, 1},
9665 {8 * 1024, 2},
9666 {32 * 1024, 1},
9667 {64 * 1024, 7},
9668 },
9669 .block_erase = block_erase_m29f400bt,
9670 }, {
9671 .eraseblocks = { {512 * 1024, 1} },
9672 .block_erase = block_erase_chip_m29f400bt,
9673 }
9674 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009675 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009676 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009677 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009678 },
9679 {
9680 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
9681 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009682 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009683 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009684 .manufacture_id = ST_ID,
9685 .model_id = ST_M29F400BT,
9686 .total_size = 512,
9687 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009688 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009689 .tested = TEST_UNTESTED,
9690 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009691 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009692 .block_erasers =
9693 {
9694 {
9695 .eraseblocks = {
9696 {64 * 1024, 7},
9697 {32 * 1024, 1},
9698 {8 * 1024, 2},
9699 {16 * 1024, 1},
9700 },
9701 .block_erase = block_erase_m29f400bt,
9702 }, {
9703 .eraseblocks = { {512 * 1024, 1} },
9704 .block_erase = block_erase_chip_m29f400bt,
9705 }
9706 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00009707 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009709 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009710 },
9711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009712 {
9713 .vendor = "ST",
9714 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009715 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009716 .manufacture_id = ST_ID,
9717 .model_id = ST_M29W010B,
9718 .total_size = 128,
9719 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009720 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009721 .tested = TEST_UNTESTED,
9722 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009723 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009724 .block_erasers =
9725 {
9726 {
9727 .eraseblocks = { {16 * 1024, 8}, },
9728 .block_erase = erase_sector_jedec,
9729 }, {
9730 .eraseblocks = { {128 * 1024, 1} },
9731 .block_erase = erase_chip_block_jedec,
9732 }
9733 },
Sean Nelson35727f72010-01-28 23:55:12 +00009734 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009736 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009737 },
9738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009739 {
9740 .vendor = "ST",
9741 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009742 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009743 .manufacture_id = ST_ID,
9744 .model_id = ST_M29W040B,
9745 .total_size = 512,
9746 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009747 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009748 .tested = TEST_UNTESTED,
9749 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009751 .block_erasers =
9752 {
9753 {
9754 .eraseblocks = { {64 * 1024, 8}, },
9755 .block_erase = erase_sector_jedec,
9756 }, {
9757 .eraseblocks = { {512 * 1024, 1} },
9758 .block_erase = erase_chip_block_jedec,
9759 }
9760 },
Sean Nelson35727f72010-01-28 23:55:12 +00009761 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009762 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009763 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009764 },
9765
Stefan Taunereb582572012-09-21 12:52:50 +00009766 {
9767 .vendor = "ST",
9768 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009769 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00009770 .manufacture_id = ST_ID,
9771 .model_id = ST_M29W512B,
9772 .total_size = 64,
9773 .page_size = 64 * 1024,
9774 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009775 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00009776 .probe = probe_jedec,
9777 .probe_timing = TIMING_ZERO,
9778 .block_erasers =
9779 {
9780 {
9781 .eraseblocks = { {64 * 1024, 1} },
9782 .block_erase = erase_chip_block_jedec,
9783 }
9784 },
9785 .write = write_jedec_1,
9786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009787 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00009788 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00009789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009790 {
9791 .vendor = "ST",
9792 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009793 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009794 .manufacture_id = ST_ID,
9795 .model_id = ST_M50FLW040A,
9796 .total_size = 512,
9797 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009798 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009799 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009800 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009801 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009802 .block_erasers =
9803 {
9804 {
Sean Nelson329bde72010-01-19 16:39:19 +00009805 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009806 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009807 {64 * 1024, 5}, /* block */
9808 {4 * 1024, 16}, /* sector */
9809 {4 * 1024, 16}, /* sector */
9810 },
9811 .block_erase = NULL,
9812 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009813 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009814 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009815 }
9816 },
Sean Nelson28accc22010-03-19 18:47:06 +00009817 .unlock = unlock_stm50flw0x0x,
9818 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009819 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009820 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009821 },
9822
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009823 {
9824 .vendor = "ST",
9825 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009826 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009827 .manufacture_id = ST_ID,
9828 .model_id = ST_M50FLW040B,
9829 .total_size = 512,
9830 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009831 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009832 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009833 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009834 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009835 .block_erasers =
9836 {
9837 {
Sean Nelson329bde72010-01-19 16:39:19 +00009838 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009839 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009840 {4 * 1024, 16}, /* sector */
9841 {64 * 1024, 5}, /* block */
9842 {4 * 1024, 16}, /* sector */
9843 },
9844 .block_erase = NULL,
9845 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009846 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009847 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009848 }
9849 },
Sean Nelson28accc22010-03-19 18:47:06 +00009850 .unlock = unlock_stm50flw0x0x,
9851 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009853 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009854 },
9855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009856 {
9857 .vendor = "ST",
9858 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009859 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009860 .manufacture_id = ST_ID,
9861 .model_id = ST_M50FLW080A,
9862 .total_size = 1024,
9863 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009864 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009865 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00009866 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009867 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009868 .block_erasers =
9869 {
9870 {
Sean Nelson329bde72010-01-19 16:39:19 +00009871 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009872 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009873 {64 * 1024, 13}, /* block */
9874 {4 * 1024, 16}, /* sector */
9875 {4 * 1024, 16}, /* sector */
9876 },
9877 .block_erase = NULL,
9878 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009879 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009880 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009881 }
9882 },
Sean Nelson28accc22010-03-19 18:47:06 +00009883 .unlock = unlock_stm50flw0x0x,
9884 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009886 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009887 },
9888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009889 {
9890 .vendor = "ST",
9891 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009892 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009893 .manufacture_id = ST_ID,
9894 .model_id = ST_M50FLW080B,
9895 .total_size = 1024,
9896 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009897 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009898 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009899 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00009900 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00009901 .block_erasers =
9902 {
9903 {
Sean Nelson329bde72010-01-19 16:39:19 +00009904 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00009905 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00009906 {4 * 1024, 16}, /* sector */
9907 {64 * 1024, 13}, /* block */
9908 {4 * 1024, 16}, /* sector */
9909 },
9910 .block_erase = NULL,
9911 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00009912 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009913 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009914 }
9915 },
Sean Nelson28accc22010-03-19 18:47:06 +00009916 .unlock = unlock_stm50flw0x0x,
9917 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009919 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009920 },
9921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009922 {
9923 .vendor = "ST",
9924 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009925 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009926 .manufacture_id = ST_ID,
9927 .model_id = ST_M50FW002,
9928 .total_size = 256,
9929 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009930 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009931 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009932 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009933 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009934 .block_erasers =
9935 {
9936 {
9937 .eraseblocks = {
9938 {64 * 1024, 3},
9939 {32 * 1024, 1},
9940 {8 * 1024, 2},
9941 {16 * 1024, 1},
9942 },
Sean Nelson28accc22010-03-19 18:47:06 +00009943 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009944 }
9945 },
Sean Nelson28accc22010-03-19 18:47:06 +00009946 .unlock = unlock_stm50flw0x0x,
9947 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009949 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009950 },
9951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009952 {
9953 .vendor = "ST",
9954 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009955 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009956 .manufacture_id = ST_ID,
9957 .model_id = ST_M50FW016,
9958 .total_size = 2048,
9959 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009960 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009961 .tested = TEST_UNTESTED,
9962 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009963 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009964 .block_erasers =
9965 {
9966 {
9967 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009968 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009969 }
9970 },
Sean Nelson28accc22010-03-19 18:47:06 +00009971 .unlock = unlock_stm50flw0x0x,
9972 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009974 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00009975 },
9976
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009977 {
9978 .vendor = "ST",
9979 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009980 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009981 .manufacture_id = ST_ID,
9982 .model_id = ST_M50FW040,
9983 .total_size = 512,
9984 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009985 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00009986 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009987 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009988 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00009989 .block_erasers =
9990 {
9991 {
9992 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00009993 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00009994 }
9995 },
Sean Nelson28accc22010-03-19 18:47:06 +00009996 .unlock = unlock_stm50flw0x0x,
9997 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009999 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010000 },
10001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010002 {
10003 .vendor = "ST",
10004 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010005 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010006 .manufacture_id = ST_ID,
10007 .model_id = ST_M50FW080,
10008 .total_size = 1024,
10009 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010010 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010011 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010012 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010013 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010014 .block_erasers =
10015 {
10016 {
10017 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010018 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010019 }
10020 },
Sean Nelson28accc22010-03-19 18:47:06 +000010021 .unlock = unlock_stm50flw0x0x,
10022 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010024 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010025 },
10026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010027 {
10028 .vendor = "ST",
10029 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010030 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010031 .manufacture_id = ST_ID,
10032 .model_id = ST_M50LPW116,
10033 .total_size = 2048,
10034 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010035 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010036 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010037 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000010038 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010039 .block_erasers =
10040 {
10041 {
10042 .eraseblocks = {
10043 {4 * 1024, 16},
10044 {64 * 1024, 30},
10045 {32 * 1024, 1},
10046 {8 * 1024, 2},
10047 {16 * 1024, 1},
10048 },
Sean Nelson28accc22010-03-19 18:47:06 +000010049 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010050 }
10051 },
Sean Nelson28accc22010-03-19 18:47:06 +000010052 .unlock = unlock_stm50flw0x0x,
10053 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010055 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010056 },
10057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010058 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010059 .vendor = "SyncMOS/MoselVitelic",
10060 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010061 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010062 .manufacture_id = SYNCMOS_MVC_ID,
10063 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010064 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010065 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010066 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010067 .tested = TEST_UNTESTED,
10068 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010069 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010070 .block_erasers =
10071 {
10072 {
10073 .eraseblocks = { {512, 256} },
10074 .block_erase = erase_sector_jedec,
10075 }, {
10076 .eraseblocks = { {128 * 1024, 1} },
10077 .block_erase = erase_chip_block_jedec,
10078 },
10079 },
Sean Nelson35727f72010-01-28 23:55:12 +000010080 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010083 },
10084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010085 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010086 .vendor = "SyncMOS/MoselVitelic",
10087 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010088 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010089 .manufacture_id = SYNCMOS_MVC_ID,
10090 .model_id = SM_MVC_29C51001T,
10091 .total_size = 128,
10092 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000010093 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010094 .tested = TEST_UNTESTED,
10095 .probe = probe_jedec,
10096 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10097 .block_erasers =
10098 {
10099 {
10100 .eraseblocks = { {512, 256} },
10101 .block_erase = erase_sector_jedec,
10102 }, {
10103 .eraseblocks = { {128 * 1024, 1} },
10104 .block_erase = erase_chip_block_jedec,
10105 },
10106 },
10107 .write = write_jedec_1,
10108 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010109 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010110 },
10111
10112 {
10113 .vendor = "SyncMOS/MoselVitelic",
10114 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010115 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010116 .manufacture_id = SYNCMOS_MVC_ID,
10117 .model_id = SM_MVC_29C51002B,
10118 .total_size = 256,
10119 .page_size = 512,
10120 .feature_bits = FEATURE_EITHER_RESET,
10121 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010122 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010123 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010124 .block_erasers =
10125 {
10126 {
10127 .eraseblocks = { {512, 512} },
10128 .block_erase = erase_sector_jedec,
10129 }, {
10130 .eraseblocks = { {256 * 1024, 1} },
10131 .block_erase = erase_chip_block_jedec,
10132 },
10133 },
Sean Nelson35727f72010-01-28 23:55:12 +000010134 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010135 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000010136 },
10137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010138 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010139 .vendor = "SyncMOS/MoselVitelic",
10140 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010141 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010142 .manufacture_id = SYNCMOS_MVC_ID,
10143 .model_id = SM_MVC_29C51002T,
10144 .total_size = 256,
10145 .page_size = 512,
10146 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010147 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010148 .probe = probe_jedec,
10149 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10150 .block_erasers =
10151 {
10152 {
10153 .eraseblocks = { {512, 512} },
10154 .block_erase = erase_sector_jedec,
10155 }, {
10156 .eraseblocks = { {256 * 1024, 1} },
10157 .block_erase = erase_chip_block_jedec,
10158 },
10159 },
10160 .write = write_jedec_1,
10161 .read = read_memmapped,
10162 },
10163
10164 {
10165 .vendor = "SyncMOS/MoselVitelic",
10166 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010167 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010168 .manufacture_id = SYNCMOS_MVC_ID,
10169 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010170 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010171 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010172 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010173 .tested = TEST_UNTESTED,
10174 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010175 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000010176 .block_erasers =
10177 {
10178 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010179 .eraseblocks = { {1024, 512} },
10180 .block_erase = erase_sector_jedec,
10181 }, {
10182 .eraseblocks = { {512 * 1024, 1} },
10183 .block_erase = erase_chip_block_jedec,
10184 },
10185 },
10186 .write = write_jedec_1,
10187 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010188 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010189 },
10190
10191 {
10192 .vendor = "SyncMOS/MoselVitelic",
10193 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010194 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010195 .manufacture_id = SYNCMOS_MVC_ID,
10196 .model_id = SM_MVC_29C51004T,
10197 .total_size = 512,
10198 .page_size = 1024,
10199 .feature_bits = FEATURE_EITHER_RESET,
10200 .tested = TEST_UNTESTED,
10201 .probe = probe_jedec,
10202 .probe_timing = TIMING_ZERO,
10203 .block_erasers =
10204 {
10205 {
10206 .eraseblocks = { {1024, 512} },
10207 .block_erase = erase_sector_jedec,
10208 }, {
10209 .eraseblocks = { {512 * 1024, 1} },
10210 .block_erase = erase_chip_block_jedec,
10211 },
10212 },
10213 .write = write_jedec_1,
10214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010215 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010216 },
10217
10218 {
10219 .vendor = "SyncMOS/MoselVitelic",
10220 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010221 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010222 .manufacture_id = SYNCMOS_MVC_ID,
10223 .model_id = SM_MVC_29C31004B,
10224 .total_size = 512,
10225 .page_size = 1024,
10226 .feature_bits = FEATURE_EITHER_RESET,
10227 .tested = TEST_UNTESTED,
10228 .probe = probe_jedec,
10229 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10230 .block_erasers =
10231 {
10232 {
10233 .eraseblocks = { {1024, 512} },
10234 .block_erase = erase_sector_jedec,
10235 }, {
10236 .eraseblocks = { {512 * 1024, 1} },
10237 .block_erase = erase_chip_block_jedec,
10238 },
10239 },
10240 .write = write_jedec_1,
10241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010242 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010243 },
10244
10245 {
10246 .vendor = "SyncMOS/MoselVitelic",
10247 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010248 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010249 .manufacture_id = SYNCMOS_MVC_ID,
10250 .model_id = SM_MVC_29C31004T,
10251 .total_size = 512,
10252 .page_size = 1024,
10253 .feature_bits = FEATURE_EITHER_RESET,
10254 .tested = TEST_UNTESTED,
10255 .probe = probe_jedec,
10256 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
10257 .block_erasers =
10258 {
10259 {
10260 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000010261 .block_erase = erase_sector_jedec,
10262 }, {
10263 .eraseblocks = { {512 * 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 = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010270 },
10271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010272 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010273 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010274 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010275 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010276 .manufacture_id = TI_OLD_ID,
10277 .model_id = TI_TMS29F002RB,
10278 .total_size = 256,
10279 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010280 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010281 .tested = TEST_UNTESTED,
10282 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010283 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010284 .block_erasers =
10285 {
10286 {
10287 .eraseblocks = {
10288 {16 * 1024, 1},
10289 {8 * 1024, 2},
10290 {32 * 1024, 1},
10291 {64 * 1024, 3},
10292 },
10293 .block_erase = erase_sector_jedec,
10294 }, {
10295 .eraseblocks = { {256 * 1024, 1} },
10296 .block_erase = erase_chip_block_jedec,
10297 },
10298 },
Sean Nelson35727f72010-01-28 23:55:12 +000010299 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010300 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010301 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010302 },
10303
10304 {
Uwe Hermanna106d152009-05-27 23:17:40 +000010305 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010306 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010307 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010308 .manufacture_id = TI_OLD_ID,
10309 .model_id = TI_TMS29F002RT,
10310 .total_size = 256,
10311 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000010312 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010313 .tested = TEST_UNTESTED,
10314 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010315 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010316 .block_erasers =
10317 {
10318 {
10319 .eraseblocks = {
10320 {64 * 1024, 3},
10321 {32 * 1024, 1},
10322 {8 * 1024, 2},
10323 {16 * 1024, 1},
10324 },
10325 .block_erase = erase_sector_jedec,
10326 }, {
10327 .eraseblocks = { {256 * 1024, 1} },
10328 .block_erase = erase_chip_block_jedec,
10329 },
10330 },
Sean Nelson35727f72010-01-28 23:55:12 +000010331 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010332 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010333 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000010334 },
10335
10336 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010337 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010338 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010339 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010340 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010341 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010342 .total_size = 1024,
10343 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010344 /* supports SFDP */
10345 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010346 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010347 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010348 .probe = probe_spi_rdid,
10349 .probe_timing = TIMING_ZERO,
10350 .block_erasers =
10351 {
10352 {
10353 .eraseblocks = { {4 * 1024, 256} },
10354 .block_erase = spi_block_erase_20,
10355 }, {
10356 .eraseblocks = { {32 * 1024, 32} },
10357 .block_erase = spi_block_erase_52,
10358 }, {
10359 .eraseblocks = { {64 * 1024, 16} },
10360 .block_erase = spi_block_erase_d8,
10361 }, {
10362 .eraseblocks = { {1024 * 1024, 1} },
10363 .block_erase = spi_block_erase_60,
10364 }, {
10365 .eraseblocks = { {1024 * 1024, 1} },
10366 .block_erase = spi_block_erase_c7,
10367 }
10368 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010369 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010370 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010371 .write = spi_chip_write_256,
10372 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010373 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010374 },
10375
10376 {
10377 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010378 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010379 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010380 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010381 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010382 .total_size = 2048,
10383 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010384 /* supports SFDP */
10385 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000010387 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010388 .probe = probe_spi_rdid,
10389 .probe_timing = TIMING_ZERO,
10390 .block_erasers =
10391 {
10392 {
10393 .eraseblocks = { {4 * 1024, 512} },
10394 .block_erase = spi_block_erase_20,
10395 }, {
10396 .eraseblocks = { {32 * 1024, 64} },
10397 .block_erase = spi_block_erase_52,
10398 }, {
10399 .eraseblocks = { {64 * 1024, 32} },
10400 .block_erase = spi_block_erase_d8,
10401 }, {
10402 .eraseblocks = { {2 * 1024 * 1024, 1} },
10403 .block_erase = spi_block_erase_60,
10404 }, {
10405 .eraseblocks = { {2 * 1024 * 1024, 1} },
10406 .block_erase = spi_block_erase_c7,
10407 }
10408 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010410 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010411 .write = spi_chip_write_256,
10412 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010413 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010414 },
10415
10416 {
10417 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010418 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010419 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010420 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010421 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010422 .total_size = 4096,
10423 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010424 /* supports SFDP */
10425 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010426 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010427 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010428 .probe = probe_spi_rdid,
10429 .probe_timing = TIMING_ZERO,
10430 .block_erasers =
10431 {
10432 {
10433 .eraseblocks = { {4 * 1024, 1024} },
10434 .block_erase = spi_block_erase_20,
10435 }, {
10436 .eraseblocks = { {32 * 1024, 128} },
10437 .block_erase = spi_block_erase_52,
10438 }, {
10439 .eraseblocks = { {64 * 1024, 64} },
10440 .block_erase = spi_block_erase_d8,
10441 }, {
10442 .eraseblocks = { {4 * 1024 * 1024, 1} },
10443 .block_erase = spi_block_erase_60,
10444 }, {
10445 .eraseblocks = { {4 * 1024 * 1024, 1} },
10446 .block_erase = spi_block_erase_c7,
10447 }
10448 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010449 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010450 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000010451 .write = spi_chip_write_256,
10452 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010453 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000010454 },
10455
10456 {
10457 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010458 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010459 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000010460 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010461 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000010462 .total_size = 8192,
10463 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010464 /* supports SFDP */
10465 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000010467 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000010468 .probe = probe_spi_rdid,
10469 .probe_timing = TIMING_ZERO,
10470 .block_erasers =
10471 {
10472 {
10473 .eraseblocks = { {4 * 1024, 2048} },
10474 .block_erase = spi_block_erase_20,
10475 }, {
10476 .eraseblocks = { {32 * 1024, 256} },
10477 .block_erase = spi_block_erase_52,
10478 }, {
10479 .eraseblocks = { {64 * 1024, 128} },
10480 .block_erase = spi_block_erase_d8,
10481 }, {
10482 .eraseblocks = { {8 * 1024 * 1024, 1} },
10483 .block_erase = spi_block_erase_60,
10484 }, {
10485 .eraseblocks = { {8 * 1024 * 1024, 1} },
10486 .block_erase = spi_block_erase_c7,
10487 }
10488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010490 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000010491 .write = spi_chip_write_256,
10492 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010493 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000010494 },
10495
10496 {
10497 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010498 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010499 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010500 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010501 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010502 .total_size = 16384,
10503 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010504 /* supports SFDP */
10505 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000010506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010507 .tested = TEST_OK_PROBE,
10508 .probe = probe_spi_rdid,
10509 .probe_timing = TIMING_ZERO,
10510 .block_erasers =
10511 {
10512 {
10513 .eraseblocks = { {4 * 1024, 4096} },
10514 .block_erase = spi_block_erase_20,
10515 }, {
10516 .eraseblocks = { {32 * 1024, 512} },
10517 .block_erase = spi_block_erase_52,
10518 }, {
10519 .eraseblocks = { {64 * 1024, 256} },
10520 .block_erase = spi_block_erase_d8,
10521 }, {
10522 .eraseblocks = { {16 * 1024 * 1024, 1} },
10523 .block_erase = spi_block_erase_60,
10524 }, {
10525 .eraseblocks = { {16 * 1024 * 1024, 1} },
10526 .block_erase = spi_block_erase_c7,
10527 }
10528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000010530 .unlock = spi_disable_blockprotect,
10531 .write = spi_chip_write_256,
10532 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000010533 .voltage = {2700, 3600},
10534 },
10535
10536 {
10537 .vendor = "Winbond",
10538 .name = "W25Q20.W",
10539 .bustype = BUS_SPI,
10540 .manufacture_id = WINBOND_NEX_ID,
10541 .model_id = WINBOND_NEX_W25Q20_W,
10542 .total_size = 256,
10543 .page_size = 256,
10544 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10546 .tested = TEST_UNTESTED,
10547 .probe = probe_spi_rdid,
10548 .probe_timing = TIMING_ZERO,
10549 .block_erasers =
10550 {
10551 {
10552 .eraseblocks = { {4 * 1024, 64} },
10553 .block_erase = spi_block_erase_20,
10554 }, {
10555 .eraseblocks = { {32 * 1024, 8} },
10556 .block_erase = spi_block_erase_52,
10557 }, {
10558 .eraseblocks = { {64 * 1024, 4} },
10559 .block_erase = spi_block_erase_d8,
10560 }, {
10561 .eraseblocks = { {256 * 1024, 1} },
10562 .block_erase = spi_block_erase_60,
10563 }, {
10564 .eraseblocks = { {256 * 1024, 1} },
10565 .block_erase = spi_block_erase_c7,
10566 }
10567 },
10568 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10569 .unlock = spi_disable_blockprotect,
10570 .write = spi_chip_write_256,
10571 .read = spi_chip_read,
10572 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10573 },
10574
10575 {
10576 .vendor = "Winbond",
10577 .name = "W25Q40.W",
10578 .bustype = BUS_SPI,
10579 .manufacture_id = WINBOND_NEX_ID,
10580 .model_id = WINBOND_NEX_W25Q40_W,
10581 .total_size = 512,
10582 .page_size = 256,
10583 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10584 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10585 .tested = TEST_UNTESTED,
10586 .probe = probe_spi_rdid,
10587 .probe_timing = TIMING_ZERO,
10588 .block_erasers =
10589 {
10590 {
10591 .eraseblocks = { {4 * 1024, 128} },
10592 .block_erase = spi_block_erase_20,
10593 }, {
10594 .eraseblocks = { {32 * 1024, 16} },
10595 .block_erase = spi_block_erase_52,
10596 }, {
10597 .eraseblocks = { {64 * 1024, 8} },
10598 .block_erase = spi_block_erase_d8,
10599 }, {
10600 .eraseblocks = { {512 * 1024, 1} },
10601 .block_erase = spi_block_erase_60,
10602 }, {
10603 .eraseblocks = { {512 * 1024, 1} },
10604 .block_erase = spi_block_erase_c7,
10605 }
10606 },
10607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10608 .unlock = spi_disable_blockprotect,
10609 .write = spi_chip_write_256,
10610 .read = spi_chip_read,
10611 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10612 },
10613
10614 {
10615 .vendor = "Winbond",
10616 .name = "W25Q80.W",
10617 .bustype = BUS_SPI,
10618 .manufacture_id = WINBOND_NEX_ID,
10619 .model_id = WINBOND_NEX_W25Q80_W,
10620 .total_size = 1024,
10621 .page_size = 256,
10622 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10624 .tested = TEST_UNTESTED,
10625 .probe = probe_spi_rdid,
10626 .probe_timing = TIMING_ZERO,
10627 .block_erasers =
10628 {
10629 {
10630 .eraseblocks = { {4 * 1024, 256} },
10631 .block_erase = spi_block_erase_20,
10632 }, {
10633 .eraseblocks = { {32 * 1024, 32} },
10634 .block_erase = spi_block_erase_52,
10635 }, {
10636 .eraseblocks = { {64 * 1024, 16} },
10637 .block_erase = spi_block_erase_d8,
10638 }, {
10639 .eraseblocks = { {1 * 1024 * 1024, 1} },
10640 .block_erase = spi_block_erase_60,
10641 }, {
10642 .eraseblocks = { {1 * 1024 * 1024, 1} },
10643 .block_erase = spi_block_erase_c7,
10644 }
10645 },
10646 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10647 .unlock = spi_disable_blockprotect,
10648 .write = spi_chip_write_256,
10649 .read = spi_chip_read,
10650 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10651 },
10652
10653 {
10654 .vendor = "Winbond",
10655 .name = "W25Q16.W",
10656 .bustype = BUS_SPI,
10657 .manufacture_id = WINBOND_NEX_ID,
10658 .model_id = WINBOND_NEX_W25Q16_W,
10659 .total_size = 2048,
10660 .page_size = 256,
10661 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10662 /* QPI enable 0x38, disable 0xFF */
10663 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
10664 .tested = TEST_UNTESTED,
10665 .probe = probe_spi_rdid,
10666 .probe_timing = TIMING_ZERO,
10667 .block_erasers =
10668 {
10669 {
10670 .eraseblocks = { {4 * 1024, 512} },
10671 .block_erase = spi_block_erase_20,
10672 }, {
10673 .eraseblocks = { {32 * 1024, 64} },
10674 .block_erase = spi_block_erase_52,
10675 }, {
10676 .eraseblocks = { {64 * 1024, 32} },
10677 .block_erase = spi_block_erase_d8,
10678 }, {
10679 .eraseblocks = { {2 * 1024 * 1024, 1} },
10680 .block_erase = spi_block_erase_60,
10681 }, {
10682 .eraseblocks = { {2 * 1024 * 1024, 1} },
10683 .block_erase = spi_block_erase_c7,
10684 }
10685 },
10686 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10687 .unlock = spi_disable_blockprotect,
10688 .write = spi_chip_write_256,
10689 .read = spi_chip_read,
10690 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10691 },
10692
10693 {
10694 .vendor = "Winbond",
10695 .name = "W25Q32.W",
10696 .bustype = BUS_SPI,
10697 .manufacture_id = WINBOND_NEX_ID,
10698 .model_id = WINBOND_NEX_W25Q32_W,
10699 .total_size = 4096,
10700 .page_size = 256,
10701 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10702 /* QPI enable 0x38, disable 0xFF */
10703 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
10704 .tested = TEST_OK_PREW,
10705 .probe = probe_spi_rdid,
10706 .probe_timing = TIMING_ZERO,
10707 .block_erasers =
10708 {
10709 {
10710 .eraseblocks = { {4 * 1024, 1024} },
10711 .block_erase = spi_block_erase_20,
10712 }, {
10713 .eraseblocks = { {32 * 1024, 128} },
10714 .block_erase = spi_block_erase_52,
10715 }, {
10716 .eraseblocks = { {64 * 1024, 64} },
10717 .block_erase = spi_block_erase_d8,
10718 }, {
10719 .eraseblocks = { {4 * 1024 * 1024, 1} },
10720 .block_erase = spi_block_erase_60,
10721 }, {
10722 .eraseblocks = { {4 * 1024 * 1024, 1} },
10723 .block_erase = spi_block_erase_c7,
10724 }
10725 },
10726 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10727 .unlock = spi_disable_blockprotect,
10728 .write = spi_chip_write_256,
10729 .read = spi_chip_read,
10730 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
10731 },
10732
10733 {
10734 .vendor = "Winbond",
10735 .name = "W25Q64.W",
10736 .bustype = BUS_SPI,
10737 .manufacture_id = WINBOND_NEX_ID,
10738 .model_id = WINBOND_NEX_W25Q64_W,
10739 .total_size = 8192,
10740 .page_size = 256,
10741 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
10742 /* QPI enable 0x38, disable 0xFF */
10743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
10744 .tested = TEST_UNTESTED,
10745 .probe = probe_spi_rdid,
10746 .probe_timing = TIMING_ZERO,
10747 .block_erasers =
10748 {
10749 {
10750 .eraseblocks = { {4 * 1024, 2048} },
10751 .block_erase = spi_block_erase_20,
10752 }, {
10753 .eraseblocks = { {32 * 1024, 256} },
10754 .block_erase = spi_block_erase_52,
10755 }, {
10756 .eraseblocks = { {64 * 1024, 128} },
10757 .block_erase = spi_block_erase_d8,
10758 }, {
10759 .eraseblocks = { {8 * 1024 * 1024, 1} },
10760 .block_erase = spi_block_erase_60,
10761 }, {
10762 .eraseblocks = { {8 * 1024 * 1024, 1} },
10763 .block_erase = spi_block_erase_c7,
10764 }
10765 },
10766 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10767 .unlock = spi_disable_blockprotect,
10768 .write = spi_chip_write_256,
10769 .read = spi_chip_read,
10770 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000010771 },
10772
10773 {
10774 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010775 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010776 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010777 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010778 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010779 .total_size = 128,
10780 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010781 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010782 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010783 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010784 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010785 .block_erasers =
10786 {
10787 {
10788 .eraseblocks = { {4 * 1024, 32} },
10789 .block_erase = spi_block_erase_20,
10790 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010791 .eraseblocks = { {64 * 1024, 2} },
10792 .block_erase = spi_block_erase_d8,
10793 }, {
10794 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010795 .block_erase = spi_block_erase_c7,
10796 }
10797 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010798 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010799 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010800 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010801 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010802 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010803 },
10804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010805 {
10806 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010807 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010808 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010809 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010810 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010811 .total_size = 256,
10812 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010813 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010814 .tested = TEST_UNTESTED,
10815 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010816 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010817 .block_erasers =
10818 {
10819 {
10820 .eraseblocks = { {4 * 1024, 64} },
10821 .block_erase = spi_block_erase_20,
10822 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010823 .eraseblocks = { {64 * 1024, 4} },
10824 .block_erase = spi_block_erase_d8,
10825 }, {
10826 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010827 .block_erase = spi_block_erase_c7,
10828 }
10829 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010830 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010831 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010832 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010833 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010834 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010835 },
10836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010837 {
10838 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010839 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010840 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010841 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010842 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010843 .total_size = 512,
10844 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010845 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000010846 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010847 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010848 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010849 .block_erasers =
10850 {
10851 {
10852 .eraseblocks = { {4 * 1024, 128} },
10853 .block_erase = spi_block_erase_20,
10854 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010855 .eraseblocks = { {64 * 1024, 8} },
10856 .block_erase = spi_block_erase_d8,
10857 }, {
10858 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010859 .block_erase = spi_block_erase_c7,
10860 }
10861 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010863 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010864 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010865 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010866 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010867 },
10868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010869 {
10870 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010871 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010872 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010873 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010874 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010875 .total_size = 1024,
10876 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010877 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000010878 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010879 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010880 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010881 .block_erasers =
10882 {
10883 {
10884 .eraseblocks = { {4 * 1024, 256} },
10885 .block_erase = spi_block_erase_20,
10886 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010887 .eraseblocks = { {64 * 1024, 16} },
10888 .block_erase = spi_block_erase_d8,
10889 }, {
10890 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010891 .block_erase = spi_block_erase_c7,
10892 }
10893 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010894 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010895 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010896 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010897 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010898 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010899 },
10900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010901 {
10902 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010903 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010904 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000010905 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010906 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000010907 .total_size = 2048,
10908 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010909 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000010910 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000010911 .probe = probe_spi_rdid,
10912 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010913 .block_erasers =
10914 {
10915 {
10916 .eraseblocks = { {4 * 1024, 512} },
10917 .block_erase = spi_block_erase_20,
10918 }, {
10919 .eraseblocks = { {32 * 1024, 64} },
10920 .block_erase = spi_block_erase_52,
10921 }, {
10922 .eraseblocks = { {64 * 1024, 32} },
10923 .block_erase = spi_block_erase_d8,
10924 }, {
10925 .eraseblocks = { {2 * 1024 * 1024, 1} },
10926 .block_erase = spi_block_erase_60,
10927 }, {
10928 .eraseblocks = { {2 * 1024 * 1024, 1} },
10929 .block_erase = spi_block_erase_c7,
10930 }
10931 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010932 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010933 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000010934 .write = spi_chip_write_256,
10935 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010936 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000010937 },
10938
10939 {
10940 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010941 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010942 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000010943 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010944 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000010945 .total_size = 4096,
10946 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010947 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000010948 .tested = TEST_OK_PROBE,
10949 .probe = probe_spi_rdid,
10950 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010951 .block_erasers =
10952 {
10953 {
10954 .eraseblocks = { {4 * 1024, 1024} },
10955 .block_erase = spi_block_erase_20,
10956 }, {
10957 .eraseblocks = { {32 * 1024, 128} },
10958 .block_erase = spi_block_erase_52,
10959 }, {
10960 .eraseblocks = { {64 * 1024, 64} },
10961 .block_erase = spi_block_erase_d8,
10962 }, {
10963 .eraseblocks = { {4 * 1024 * 1024, 1} },
10964 .block_erase = spi_block_erase_60,
10965 }, {
10966 .eraseblocks = { {4 * 1024 * 1024, 1} },
10967 .block_erase = spi_block_erase_c7,
10968 }
10969 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010971 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000010972 .write = spi_chip_write_256,
10973 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010974 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000010975 },
10976
10977 {
10978 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010979 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010980 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000010981 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010982 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000010983 .total_size = 8192,
10984 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000010985 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000010986 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000010987 .probe = probe_spi_rdid,
10988 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010989 .block_erasers =
10990 {
10991 {
10992 .eraseblocks = { {4 * 1024, 2048} },
10993 .block_erase = spi_block_erase_20,
10994 }, {
10995 .eraseblocks = { {32 * 1024, 256} },
10996 .block_erase = spi_block_erase_52,
10997 }, {
10998 .eraseblocks = { {64 * 1024, 128} },
10999 .block_erase = spi_block_erase_d8,
11000 }, {
11001 .eraseblocks = { {8 * 1024 * 1024, 1} },
11002 .block_erase = spi_block_erase_60,
11003 }, {
11004 .eraseblocks = { {8 * 1024 * 1024, 1} },
11005 .block_erase = spi_block_erase_c7,
11006 }
11007 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011008 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011009 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000011010 .write = spi_chip_write_256,
11011 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011012 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000011013 },
11014
11015 {
11016 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011017 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011018 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000011019 .manufacture_id = WINBOND_ID,
11020 .model_id = WINBOND_W29C010,
11021 .total_size = 128,
11022 .page_size = 128,
11023 .feature_bits = FEATURE_LONG_RESET,
11024 .tested = TEST_OK_PRE,
11025 .probe = probe_w29ee011,
11026 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
11027 .block_erasers =
11028 {
11029 {
11030 .eraseblocks = { {128 * 1024, 1} },
11031 .block_erase = erase_chip_block_jedec,
11032 }
11033 },
11034 .write = write_jedec,
11035 .read = read_memmapped,
11036 },
11037
11038 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
11039 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011040 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011041 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011042 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011043 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011044 .total_size = 128,
11045 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011046 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000011047 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011048 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011049 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011050 .block_erasers =
11051 {
11052 {
11053 .eraseblocks = { {128 * 1024, 1} },
11054 .block_erase = erase_chip_block_jedec,
11055 }
11056 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011057 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011058 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011059 },
11060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011061 {
11062 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011063 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011064 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011065 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011066 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011067 .total_size = 256,
11068 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011069 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011070 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011071 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011072 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011073 .block_erasers =
11074 {
11075 {
11076 .eraseblocks = { {256 * 1024, 1} },
11077 .block_erase = erase_chip_block_jedec,
11078 }
11079 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011080 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011083 },
11084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011085 {
11086 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011087 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011088 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011089 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011090 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011091 .total_size = 512,
11092 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011093 .feature_bits = FEATURE_LONG_RESET,
11094 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011095 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +000011096 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011097 .block_erasers =
11098 {
11099 {
11100 .eraseblocks = { {512 * 1024, 1} },
11101 .block_erase = erase_chip_block_jedec,
11102 }
11103 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011104 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011106 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011107 },
11108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011109 {
11110 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000011111 .name = "W39F010",
11112 .bustype = BUS_PARALLEL,
11113 .manufacture_id = WINBOND_ID,
11114 .model_id = WINBOND_W39F010,
11115 .total_size = 128,
11116 .page_size = 4 * 1024,
11117 .feature_bits = FEATURE_EITHER_RESET,
11118 .tested = TEST_OK_PREW,
11119 .probe = probe_jedec,
11120 .probe_timing = 10,
11121 .block_erasers =
11122 {
11123 {
11124 .eraseblocks = { {4 * 1024, 32} },
11125 .block_erase = erase_block_jedec,
11126 }, {
11127 .eraseblocks = { {128 * 1024, 1} },
11128 .block_erase = erase_chip_block_jedec,
11129 }
11130 },
11131 .printlock = printlock_w39f010,
11132 .write = write_jedec_1,
11133 .read = read_memmapped,
11134 .voltage = {4500, 5500},
11135 },
11136
11137 {
11138 .vendor = "Winbond",
11139 .name = "W39L010",
11140 .bustype = BUS_PARALLEL,
11141 .manufacture_id = WINBOND_ID,
11142 .model_id = WINBOND_W39L010,
11143 .total_size = 128,
11144 .page_size = 4 * 1024,
11145 .feature_bits = FEATURE_EITHER_RESET,
11146 .tested = TEST_UNTESTED,
11147 .probe = probe_jedec,
11148 .probe_timing = 10,
11149 .block_erasers =
11150 {
11151 {
11152 .eraseblocks = { {4 * 1024, 32} },
11153 .block_erase = erase_block_jedec,
11154 }, {
11155 .eraseblocks = { {128 * 1024, 1} },
11156 .block_erase = erase_chip_block_jedec,
11157 }
11158 },
11159 .printlock = printlock_w39l010,
11160 .write = write_jedec_1,
11161 .read = read_memmapped,
11162 .voltage = {3000, 3600},
11163 },
11164
11165 {
11166 .vendor = "Winbond",
11167 .name = "W39L020",
11168 .bustype = BUS_PARALLEL,
11169 .manufacture_id = WINBOND_ID,
11170 .model_id = WINBOND_W39L020,
11171 .total_size = 256,
11172 .page_size = 4 * 1024,
11173 .feature_bits = FEATURE_EITHER_RESET,
11174 .tested = TEST_UNTESTED,
11175 .probe = probe_jedec,
11176 .probe_timing = 10,
11177 .block_erasers =
11178 {
11179 {
11180 .eraseblocks = { {4 * 1024, 64} },
11181 .block_erase = erase_block_jedec,
11182 }, {
11183 .eraseblocks = { {64 * 1024, 4} },
11184 .block_erase = erase_sector_jedec,
11185 }, {
11186 .eraseblocks = { {256 * 1024, 1} },
11187 .block_erase = erase_chip_block_jedec,
11188 }
11189 },
11190 .printlock = printlock_w39l020,
11191 .write = write_jedec_1,
11192 .read = read_memmapped,
11193 .voltage = {3000, 3600},
11194 },
11195
11196 {
11197 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000011198 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011199 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000011200 .manufacture_id = WINBOND_ID,
11201 .model_id = WINBOND_W39L040,
11202 .total_size = 512,
11203 .page_size = 64 * 1024,
11204 .feature_bits = FEATURE_EITHER_RESET,
11205 .tested = TEST_OK_PR,
11206 .probe = probe_jedec,
11207 .probe_timing = 10,
11208 .block_erasers =
11209 {
11210 {
11211 .eraseblocks = { {4 * 1024, 128} },
11212 .block_erase = erase_block_jedec,
11213 }, {
11214 .eraseblocks = { {64 * 1024, 8} },
11215 .block_erase = erase_sector_jedec,
11216 }, {
11217 .eraseblocks = { {512 * 1024, 1} },
11218 .block_erase = erase_chip_block_jedec,
11219 }
11220 },
11221 .printlock = printlock_w39l040,
11222 .write = write_jedec_1,
11223 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011224 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000011225 },
11226
11227 {
11228 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011229 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011230 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011231 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011232 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011233 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011234 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011235 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011236 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011237 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000011238 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011239 .block_erasers =
11240 {
11241 {
11242 .eraseblocks = { {64 * 1024, 8} },
11243 .block_erase = erase_sector_jedec,
11244 }, {
11245 .eraseblocks = { {512 * 1024, 1} },
11246 .block_erase = erase_chip_block_jedec,
11247 }
11248 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011249 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000011250 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011252 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011253 },
11254
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011255 {
11256 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011257 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011258 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011259 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011260 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011261 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011262 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011263 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011264 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011265 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000011266 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011267 .block_erasers =
11268 {
11269 {
11270 .eraseblocks = { {64 * 1024, 8} },
11271 .block_erase = erase_sector_jedec,
11272 }, {
11273 .eraseblocks = { {512 * 1024, 1} },
11274 .block_erase = erase_chip_block_jedec,
11275 }
11276 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011277 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000011278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011280 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011281 },
11282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011283 {
11284 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011285 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011286 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011287 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011288 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011289 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011290 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011291 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011292 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000011293 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011294 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011295 .block_erasers =
11296 {
11297 {
11298 .eraseblocks = { {64 * 1024, 8} },
11299 .block_erase = erase_sector_jedec,
11300 }, {
11301 .eraseblocks = { {512 * 1024, 1} },
11302 .block_erase = erase_chip_block_jedec,
11303 }
11304 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011305 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000011306 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011307 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011308 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011309 },
11310
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011311 {
11312 .vendor = "Winbond",
11313 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011314 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011315 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011316 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011317 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011318 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000011319 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011320 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011321 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011322 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011323 .block_erasers =
11324 {
11325 {
11326 .eraseblocks = { {4 * 1024, 128} },
11327 .block_erase = erase_block_jedec,
11328 }, {
11329 .eraseblocks = { {64 * 1024, 8} },
11330 .block_erase = erase_sector_jedec,
11331 }, {
11332 .eraseblocks = { {512 * 1024, 1} },
11333 .block_erase = erase_chip_block_jedec,
11334 }
11335 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011336 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000011337 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000011338 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011339 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011340 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011341 },
11342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011343 {
11344 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011345 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011346 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011347 .manufacture_id = WINBOND_ID,
11348 .model_id = WINBOND_W39V040B,
11349 .total_size = 512,
11350 .page_size = 64 * 1024,
11351 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011352 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011353 .probe = probe_jedec,
11354 .probe_timing = 10,
11355 .block_erasers =
11356 {
11357 {
11358 .eraseblocks = { {64 * 1024, 8} },
11359 .block_erase = erase_sector_jedec,
11360 }, {
11361 .eraseblocks = { {512 * 1024, 1} },
11362 .block_erase = erase_chip_block_jedec,
11363 }
11364 },
11365 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000011366 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011367 .write = write_jedec_1,
11368 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011369 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011370 },
11371
11372 {
11373 .vendor = "Winbond",
11374 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011375 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011376 .manufacture_id = WINBOND_ID,
11377 .model_id = WINBOND_W39V040C,
11378 .total_size = 512,
11379 .page_size = 64 * 1024,
11380 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000011381 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011382 .probe = probe_jedec,
11383 .probe_timing = 10,
11384 .block_erasers =
11385 {
11386 {
11387 .eraseblocks = { {64 * 1024, 8} },
11388 .block_erase = erase_sector_jedec,
11389 }, {
11390 .eraseblocks = { {512 * 1024, 1} },
11391 .block_erase = erase_chip_block_jedec,
11392 }
11393 },
11394 .printlock = printlock_w39v040fc,
11395 .write = write_jedec_1,
11396 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011397 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011398 },
11399
11400 {
11401 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011402 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011403 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011404 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011405 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011406 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000011407 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011408 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000011409 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011410 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000011411 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011412 .block_erasers =
11413 {
11414 {
11415 .eraseblocks = { {64 * 1024, 16} },
11416 .block_erase = erase_sector_jedec,
11417 }, {
11418 .eraseblocks = { {1024 * 1024, 1} },
11419 .block_erase = erase_chip_block_jedec,
11420 }
11421 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011422 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000011423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011425 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011426 },
11427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011428 {
11429 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000011430 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011432 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011433 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011434 .total_size = 256,
11435 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011436 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011438 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011439 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011440 .block_erasers =
11441 {
11442 {
11443 .eraseblocks = {
11444 {128 * 1024, 1},
11445 {96 * 1024, 1},
11446 {8 * 1024, 2},
11447 {16 * 1024, 1},
11448 },
11449 .block_erase = erase_sector_jedec,
11450 }, {
11451 .eraseblocks = { {256 * 1024, 1} },
11452 .block_erase = erase_chip_block_jedec,
11453 }
11454 },
Sean Nelson35727f72010-01-28 23:55:12 +000011455 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011457 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011458 },
11459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011460 {
11461 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011462 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011463 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011464 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011465 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011466 .total_size = 256,
11467 .page_size = 128,
11468 .feature_bits = FEATURE_EITHER_RESET,
11469 .tested = TEST_OK_PROBE,
11470 .probe = probe_jedec,
11471 .probe_timing = 10,
11472 .block_erasers =
11473 {
11474 {
11475 .eraseblocks = { {256 * 1024, 1} },
11476 .block_erase = erase_chip_block_jedec,
11477 }
11478 },
11479 .write = write_jedec_1,
11480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011481 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000011482 },
11483
11484 {
11485 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011487 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011488 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011489 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011490 .total_size = 256,
11491 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011492 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011493 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011494 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011495 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011496 .block_erasers =
11497 {
11498 {
11499 .eraseblocks = {
11500 {64 * 1024, 3},
11501 {32 * 1024, 1},
11502 {8 * 1024, 2},
11503 {16 * 1024, 1},
11504 },
11505 .block_erase = erase_sector_jedec,
11506 }, {
11507 .eraseblocks = { {256 * 1024, 1} },
11508 .block_erase = erase_chip_block_jedec,
11509 }
11510 },
Sean Nelson35727f72010-01-28 23:55:12 +000011511 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011513 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011514 },
11515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 {
11517 .vendor = "Winbond",
11518 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011519 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011520 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011521 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011522 .total_size = 256,
11523 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011524 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011525 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011527 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011528 .block_erasers =
11529 {
11530 {
11531 .eraseblocks = {
11532 {64 * 1024, 3},
11533 {32 * 1024, 1},
11534 {8 * 1024, 2},
11535 {16 * 1024, 1},
11536 },
11537 .block_erase = erase_sector_jedec,
11538 }, {
11539 .eraseblocks = { {256 * 1024, 1} },
11540 .block_erase = erase_chip_block_jedec,
11541 }
11542 },
Sean Nelson35727f72010-01-28 23:55:12 +000011543 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011545 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011546 },
11547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011548 {
11549 .vendor = "Winbond",
11550 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011551 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011552 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011553 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011554 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000011555 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011556 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000011557 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011558 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011559 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011560 .block_erasers =
11561 {
11562 {
11563 .eraseblocks = { {64 * 1024, 16}, },
11564 .block_erase = erase_sector_jedec,
11565 }, {
11566 .eraseblocks = { {1024 * 1024, 1} },
11567 .block_erase = erase_chip_block_jedec,
11568 }
11569 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011570 .printlock = printlock_w39v080fa,
11571 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000011572 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011573 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011574 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000011575 },
11576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011577 {
11578 .vendor = "Winbond",
11579 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011580 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011581 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011582 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011583 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000011584 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011585 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011586 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011587 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011588 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011589 .block_erasers =
11590 {
11591 {
11592 .eraseblocks = { {64 * 1024, 8}, },
11593 .block_erase = erase_sector_jedec,
11594 }, {
11595 .eraseblocks = { {512 * 1024, 1} },
11596 .block_erase = erase_chip_block_jedec,
11597 }
11598 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000011599 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000011600 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011601 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011602 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000011603 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000011604
11605 {
11606 .vendor = "Unknown",
11607 .name = "SFDP-capable chip",
11608 .bustype = BUS_SPI,
11609 .manufacture_id = GENERIC_MANUF_ID,
11610 .model_id = SFDP_DEVICE_ID,
11611 /* We present our own "report this" text hence we do not
11612 * want the default "This flash part has status UNTESTED..."
11613 * text to be printed. */
11614 .tested = TEST_OK_PREW,
11615 .probe = probe_spi_sfdp,
11616 .unlock = spi_disable_blockprotect, /* is this safe? */
11617 .read = spi_chip_read,
11618 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000011619 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000011620 /* Everything below will be set by the probing function. */
11621 .write = NULL,
11622 .total_size = 0,
11623 .page_size = 0,
11624 .feature_bits = 0,
11625 .block_erasers = {},
11626 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011627
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011628 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000011629 .vendor = "Programmer",
11630 .name = "Opaque flash chip",
11631 .bustype = BUS_PROG,
11632 .manufacture_id = PROGMANUF_ID,
11633 .model_id = PROGDEV_ID,
11634 .total_size = 0,
11635 .page_size = 256,
11636 /* probe is assumed to work, rest will be filled in by probe */
11637 .tested = TEST_OK_PROBE,
11638 .probe = probe_opaque,
11639 /* eraseblock sizes will be set by the probing function */
11640 .block_erasers =
11641 {
11642 {
11643 .block_erase = erase_opaque,
11644 }
11645 },
11646 .write = write_opaque,
11647 .read = read_opaque,
11648 },
11649
11650 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000011651 .vendor = "AMIC",
11652 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011653 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000011654 .manufacture_id = AMIC_ID,
11655 .model_id = GENERIC_DEVICE_ID,
11656 .total_size = 0,
11657 .page_size = 256,
11658 .tested = TEST_BAD_PREW,
11659 .probe = probe_spi_rdid4,
11660 .probe_timing = TIMING_ZERO,
11661 .write = NULL,
11662 .read = NULL,
11663 },
11664
11665 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011666 .vendor = "Atmel",
11667 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011668 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011669 .manufacture_id = ATMEL_ID,
11670 .model_id = GENERIC_DEVICE_ID,
11671 .total_size = 0,
11672 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011673 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011674 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011675 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011676 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011677 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011678 },
11679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011680 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000011681 .vendor = "Eon",
11682 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011684 .manufacture_id = EON_ID_NOPREFIX,
11685 .model_id = GENERIC_DEVICE_ID,
11686 .total_size = 0,
11687 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011688 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011689 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011690 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011691 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011692 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011693 },
11694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011695 {
11696 .vendor = "Macronix",
11697 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011698 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011699 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011700 .model_id = GENERIC_DEVICE_ID,
11701 .total_size = 0,
11702 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011703 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011704 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011705 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011706 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011707 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011708 },
11709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011710 {
11711 .vendor = "PMC",
11712 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011714 .manufacture_id = PMC_ID,
11715 .model_id = GENERIC_DEVICE_ID,
11716 .total_size = 0,
11717 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011718 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011719 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011720 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011721 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011722 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011723 },
11724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011725 {
11726 .vendor = "SST",
11727 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011728 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011729 .manufacture_id = SST_ID,
11730 .model_id = GENERIC_DEVICE_ID,
11731 .total_size = 0,
11732 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011733 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011734 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011735 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011736 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011737 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011738 },
11739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011740 {
11741 .vendor = "ST",
11742 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011743 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011744 .manufacture_id = ST_ID,
11745 .model_id = GENERIC_DEVICE_ID,
11746 .total_size = 0,
11747 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000011748 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011749 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011750 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011751 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011752 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000011753 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000011754
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011755 {
Sean Nelson118e1d62009-11-24 02:08:11 +000011756 .vendor = "Sanyo",
11757 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011758 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000011759 .manufacture_id = SANYO_ID,
11760 .model_id = GENERIC_DEVICE_ID,
11761 .total_size = 0,
11762 .page_size = 256,
11763 .tested = TEST_BAD_PREW,
11764 .probe = probe_spi_rdid,
11765 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000011766 .write = NULL,
11767 .read = NULL,
11768 },
11769
11770 {
Stefan Taunereb582572012-09-21 12:52:50 +000011771 .vendor = "Winbond",
11772 .name = "unknown Winbond (ex Nexcom) SPI chip",
11773 .bustype = BUS_SPI,
11774 .manufacture_id = WINBOND_NEX_ID,
11775 .model_id = GENERIC_DEVICE_ID,
11776 .total_size = 0,
11777 .page_size = 256,
11778 .tested = TEST_BAD_PREW,
11779 .probe = probe_spi_rdid,
11780 .probe_timing = TIMING_ZERO,
11781 .write = NULL,
11782 .read = NULL,
11783 },
11784
11785 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011786 .vendor = "Generic",
11787 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011788 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011789 .manufacture_id = GENERIC_MANUF_ID,
11790 .model_id = GENERIC_DEVICE_ID,
11791 .total_size = 0,
11792 .page_size = 256,
11793 .tested = TEST_BAD_PREW,
11794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011795 .write = NULL,
11796 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000011797
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011798 {
11799 .vendor = "Generic",
11800 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011801 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011802 .manufacture_id = GENERIC_MANUF_ID,
11803 .model_id = GENERIC_DEVICE_ID,
11804 .total_size = 0,
11805 .page_size = 256,
11806 .tested = TEST_BAD_PREW,
11807 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000011808 .write = NULL,
11809 },
11810
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011811 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000011812};