blob: 5e036aca0ea21995c076e20523b04211dfd73d15 [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,
1356 .unlock = spi_disable_blockprotect_at25df,
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,
1394 .unlock = spi_disable_blockprotect_at25df,
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,
1432 .unlock = spi_disable_blockprotect_at25df,
1433 .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,
1470 .unlock = spi_disable_blockprotect_at25df_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,
1508 .unlock = spi_disable_blockprotect_at25df_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,
1546 .unlock = spi_disable_blockprotect_at25df,
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,
1585 .unlock = spi_disable_blockprotect_at25df_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,
1623 .unlock = spi_disable_blockprotect_at25df_sec,
1624 .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,
1662 .unlock = spi_disable_blockprotect_at25df_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",
1670 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001673 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001674 .total_size = 64,
1675 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001676 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .tested = TEST_UNTESTED,
1679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001680 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001681 .block_erasers =
1682 {
1683 {
1684 .eraseblocks = { {4 * 1024, 16} },
1685 .block_erase = spi_block_erase_20,
1686 }, {
1687 .eraseblocks = { {32 * 1024, 2} },
1688 .block_erase = spi_block_erase_52,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 2} },
1691 .block_erase = spi_block_erase_d8,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 1} },
1694 .block_erase = spi_block_erase_60,
1695 }, {
1696 .eraseblocks = { {64 * 1024, 1} },
1697 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001698 }, {
1699 .eraseblocks = { {64 * 1024, 1} },
1700 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001701 }
1702 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001703 .printlock = spi_prettyprint_status_register_at25f512b,
1704 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001705 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001708 },
1709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 {
1711 .vendor = "Atmel",
1712 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .total_size = 128,
1717 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001718 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001719 .tested = TEST_UNTESTED,
1720 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001721 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001722 .block_erasers =
1723 {
1724 {
1725 .eraseblocks = { {4 * 1024, 32} },
1726 .block_erase = spi_block_erase_20,
1727 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001728 .eraseblocks = { {4 * 1024, 32} },
1729 .block_erase = spi_block_erase_d7,
1730 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001731 .eraseblocks = { {32 * 1024, 4} },
1732 .block_erase = spi_block_erase_52,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 4} },
1735 .block_erase = spi_block_erase_d8,
1736 }, {
1737 .eraseblocks = { {128 * 1024, 1} },
1738 .block_erase = spi_block_erase_60,
1739 }, {
1740 .eraseblocks = { {128 * 1024, 1} },
1741 .block_erase = spi_block_erase_c7,
1742 }
1743 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001744 .printlock = spi_prettyprint_status_register_at25fs010,
1745 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001746 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001747 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001748 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001749 },
1750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001751 {
1752 .vendor = "Atmel",
1753 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001754 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001755 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001756 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .total_size = 512,
1758 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001759 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .tested = TEST_UNTESTED,
1761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001762 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001763 .block_erasers =
1764 {
1765 {
1766 .eraseblocks = { {4 * 1024, 128} },
1767 .block_erase = spi_block_erase_20,
1768 }, {
1769 .eraseblocks = { {64 * 1024, 8} },
1770 .block_erase = spi_block_erase_52,
1771 }, {
1772 .eraseblocks = { {64 * 1024, 8} },
1773 .block_erase = spi_block_erase_d8,
1774 }, {
1775 .eraseblocks = { {512 * 1024, 1} },
1776 .block_erase = spi_block_erase_60,
1777 }, {
1778 .eraseblocks = { {512 * 1024, 1} },
1779 .block_erase = spi_block_erase_c7,
1780 }
1781 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001782 .printlock = spi_prettyprint_status_register_at25fs040,
1783 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001784 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001786 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001787 },
1788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 {
1790 .vendor = "Atmel",
1791 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001792 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001794 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .total_size = 512,
1796 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001797 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001798 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001800 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001801 .block_erasers =
1802 {
1803 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00001804 .eraseblocks = { {256, 2048} },
1805 .block_erase = spi_block_erase_81,
1806 }, {
1807 .eraseblocks = { {2 * 1024, 256} },
1808 .block_erase = spi_block_erase_50,
1809 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001810 .eraseblocks = { {4 * 1024, 128} },
1811 .block_erase = spi_block_erase_20,
1812 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001813 },
1814 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
1815 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00001816 .write = spi_chip_write_1,
1817 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00001818 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001819 },
1820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001821 {
1822 .vendor = "Atmel",
1823 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001824 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001825 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001826 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 .total_size = 1024,
1828 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001829 .feature_bits = FEATURE_WRSR_WREN,
1830 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001831 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001832 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001833 .block_erasers =
1834 {
1835 {
1836 .eraseblocks = { {4 * 1024, 256} },
1837 .block_erase = spi_block_erase_20,
1838 }, {
1839 .eraseblocks = { {32 * 1024, 32} },
1840 .block_erase = spi_block_erase_52,
1841 }, {
1842 .eraseblocks = { {64 * 1024, 16} },
1843 .block_erase = spi_block_erase_d8,
1844 }, {
1845 .eraseblocks = { {1024 * 1024, 1} },
1846 .block_erase = spi_block_erase_60,
1847 }, {
1848 .eraseblocks = { {1024 * 1024, 1} },
1849 .block_erase = spi_block_erase_c7,
1850 }
1851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001852 .printlock = spi_prettyprint_status_register_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001853 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001854 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001856 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001857 },
1858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001859 {
1860 .vendor = "Atmel",
1861 .name = "AT26DF161",
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_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 .total_size = 2048,
1866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001867 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001868 .tested = TEST_OK_PR,
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, 512} },
1875 .block_erase = spi_block_erase_20,
1876 }, {
1877 .eraseblocks = { {32 * 1024, 64} },
1878 .block_erase = spi_block_erase_52,
1879 }, {
1880 .eraseblocks = { {64 * 1024, 32} },
1881 .block_erase = spi_block_erase_d8,
1882 }, {
1883 .eraseblocks = { {2 * 1024 * 1024, 1} },
1884 .block_erase = spi_block_erase_60,
1885 }, {
1886 .eraseblocks = { {2 * 1024 * 1024, 1} },
1887 .block_erase = spi_block_erase_c7,
1888 }
1889 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001890 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001891 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001892 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001894 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001895 },
1896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001897 {
1898 .vendor = "Atmel",
1899 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001900 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001901 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001902 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 .total_size = 2048,
1904 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001905 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001906 .tested = TEST_UNTESTED,
1907 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001908 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001909 .block_erasers =
1910 {
1911 {
1912 .eraseblocks = { {4 * 1024, 512} },
1913 .block_erase = spi_block_erase_20,
1914 }, {
1915 .eraseblocks = { {32 * 1024, 64} },
1916 .block_erase = spi_block_erase_52,
1917 }, {
1918 .eraseblocks = { {64 * 1024, 32} },
1919 .block_erase = spi_block_erase_d8,
1920 }, {
1921 .eraseblocks = { {2 * 1024 * 1024, 1} },
1922 .block_erase = spi_block_erase_60,
1923 }, {
1924 .eraseblocks = { {2 * 1024 * 1024, 1} },
1925 .block_erase = spi_block_erase_c7,
1926 }
1927 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001928 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001929 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001930 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001931 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001932 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001933 },
1934
1935 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001936 /*{
1937 .vendor = "Atmel",
1938 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001939 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001940 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001941 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .total_size = 4096,
1943 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001944 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001945 .tested = TEST_UNTESTED,
1946 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001947 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001948 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001949 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001950 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001951 .read = spi_chip_read,
1952 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001954 {
1955 .vendor = "Atmel",
1956 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001957 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001958 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001959 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001960 .total_size = 512,
1961 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001962 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00001963 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001964 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001965 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001966 .block_erasers =
1967 {
1968 {
1969 .eraseblocks = { {4 * 1024, 128} },
1970 .block_erase = spi_block_erase_20,
1971 }, {
1972 .eraseblocks = { {32 * 1024, 16} },
1973 .block_erase = spi_block_erase_52,
1974 }, {
1975 .eraseblocks = { {64 * 1024, 8} },
1976 .block_erase = spi_block_erase_d8,
1977 }, {
1978 .eraseblocks = { {512 * 1024, 1} },
1979 .block_erase = spi_block_erase_60,
1980 }, {
1981 .eraseblocks = { {512 * 1024, 1} },
1982 .block_erase = spi_block_erase_c7,
1983 }
1984 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001985 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001986 .write = NULL /* Incompatible Page write */,
1987 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001988 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001989 },
1990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001991 {
1992 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001993 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001994 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001995 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001996 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001997 .total_size = 64,
1998 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001999 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002000 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002001 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002002 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002003 .block_erasers =
2004 {
2005 {
2006 .eraseblocks = { {64 * 1024, 1} },
2007 .block_erase = erase_chip_block_jedec,
2008 }
2009 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002010 .write = write_jedec,
2011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002012 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002013 },
2014
2015 {
2016 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002017 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002018 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002019 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002020 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002021 .total_size = 128,
2022 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002023 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002024 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002025 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002026 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002027 .block_erasers =
2028 {
2029 {
2030 .eraseblocks = { {128 * 1024, 1} },
2031 .block_erase = erase_chip_block_jedec,
2032 }
2033 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002034 .write = write_jedec, /* FIXME */
2035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002036 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002037 },
2038
2039 {
2040 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002041 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002042 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002043 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002044 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002045 .total_size = 256,
2046 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002047 .feature_bits = FEATURE_LONG_RESET,
2048 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002049 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002050 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002051 .block_erasers =
2052 {
2053 {
2054 .eraseblocks = { {256 * 1024, 1} },
2055 .block_erase = erase_chip_block_jedec,
2056 }
2057 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002058 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002059 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002060 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002061 },
2062
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 {
2064 .vendor = "Atmel",
2065 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002066 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002067 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002068 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002069 .total_size = 512,
2070 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002071 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002072 .tested = TEST_UNTESTED,
2073 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002074 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002075 .block_erasers =
2076 {
2077 {
2078 .eraseblocks = { {512 * 1024, 1} },
2079 .block_erase = erase_chip_block_jedec,
2080 }
2081 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002082 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002084 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002085 },
2086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 {
2088 .vendor = "Atmel",
2089 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002090 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002091 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002092 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002093 .total_size = 16896 /* No power of two sizes */,
2094 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002095 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002096 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002098 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .write = NULL /* Incompatible Page write */,
2100 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002101 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002102 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002104 {
2105 .vendor = "Atmel",
2106 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002107 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002108 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002109 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002110 .total_size = 128 /* Size can only be determined from status register */,
2111 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002112 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002113 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002115 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002116 .write = NULL,
2117 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002118 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002119 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 {
2122 .vendor = "Atmel",
2123 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002125 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002126 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002127 .total_size = 256 /* Size can only be determined from status register */,
2128 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002129 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002130 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002132 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .write = NULL,
2134 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002135 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002136 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 {
2139 .vendor = "Atmel",
2140 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002141 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002142 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002143 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002144 .total_size = 512 /* Size can only be determined from status register */,
2145 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002146 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002147 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002148 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002149 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002150 .write = NULL,
2151 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002152 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002153 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 {
2156 .vendor = "Atmel",
2157 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002158 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002159 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002160 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002161 .total_size = 1024 /* Size can only be determined from status register */,
2162 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002163 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002164 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002165 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002166 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 .write = NULL,
2168 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002169 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002170 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 {
2173 .vendor = "Atmel",
2174 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002175 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002177 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002178 .total_size = 2048 /* Size can only be determined from status register */,
2179 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002180 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002181 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002183 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .write = NULL,
2185 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002186 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002187 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 {
2190 .vendor = "Atmel",
2191 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002192 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002193 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002194 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002195 .total_size = 4224 /* No power of two sizes */,
2196 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002197 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002198 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002199 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002200 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .write = NULL,
2202 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002203 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002204 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002206 {
2207 .vendor = "Atmel",
2208 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002209 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002210 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002211 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002212 .total_size = 4096 /* Size can only be determined from status register */,
2213 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002214 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002215 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002216 .feature_bits = FEATURE_OTP,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002217 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002219 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .write = NULL,
2221 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002222 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002223 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002224
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002225 {
2226 .vendor = "Atmel",
2227 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002228 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002229 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002230 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002231 .total_size = 8192 /* Size can only be determined from status register */,
2232 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002233 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002234 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002236 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002237 .write = NULL,
2238 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002239 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002240 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002242 {
2243 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002244 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002245 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002246 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002247 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002248 .total_size = 64,
2249 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002250 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002251 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002252 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002253 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002254 .block_erasers =
2255 {
2256 {
2257 .eraseblocks = { {64 * 1024, 1} },
2258 .block_erase = erase_chip_block_jedec,
2259 }
2260 },
Sean Nelson35727f72010-01-28 23:55:12 +00002261 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002263 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002264 },
2265
2266 {
2267 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002269 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002270 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002271 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .total_size = 256,
2273 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002274 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .tested = TEST_UNTESTED,
2276 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002277 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002278 .block_erasers =
2279 {
2280 {
2281 .eraseblocks = {
2282 {16 * 1024, 1},
2283 {8 * 1024, 2},
2284 {96 * 1024, 1},
2285 {128 * 1024, 1},
2286 },
2287 .block_erase = erase_sector_jedec,
2288 }, {
2289 .eraseblocks = { {256 * 1024, 1} },
2290 .block_erase = erase_chip_block_jedec,
2291 }
2292 },
Sean Nelson35727f72010-01-28 23:55:12 +00002293 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002295 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002296 },
2297
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002298 {
2299 .vendor = "Atmel",
2300 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002301 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002303 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002304 .total_size = 256,
2305 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002306 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002307 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002308 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002310 .block_erasers =
2311 {
2312 {
2313 .eraseblocks = {
2314 {128 * 1024, 1},
2315 {96 * 1024, 1},
2316 {8 * 1024, 2},
2317 {16 * 1024, 1},
2318 },
2319 .block_erase = erase_sector_jedec,
2320 }, {
2321 .eraseblocks = { {256 * 1024, 1} },
2322 .block_erase = erase_chip_block_jedec,
2323 }
2324 },
Sean Nelson35727f72010-01-28 23:55:12 +00002325 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002326 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002327 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002328 },
2329
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002330 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002331 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002332 .name = "AT49(H)F010",
2333 .bustype = BUS_PARALLEL,
2334 .manufacture_id = ATMEL_ID,
2335 .model_id = ATMEL_AT49F010,
2336 .total_size = 128,
2337 .page_size = 0, /* unused */
2338 .feature_bits = FEATURE_EITHER_RESET,
2339 .tested = TEST_OK_PREW,
2340 .probe = probe_jedec,
2341 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2342 .block_erasers =
2343 {
2344 {
2345 .eraseblocks = { {128 * 1024, 1} },
2346 .block_erase = erase_chip_block_jedec,
2347 }
2348 },
2349 .printlock = printlock_at49f,
2350 .write = write_jedec_1,
2351 .read = read_memmapped,
2352 .voltage = {4500, 5500},
2353 },
2354
2355 {
2356 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002357 .name = "AT49F020",
2358 .bustype = BUS_PARALLEL,
2359 .manufacture_id = ATMEL_ID,
2360 .model_id = ATMEL_AT49F020,
2361 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002362 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002363 .feature_bits = FEATURE_EITHER_RESET,
2364 .tested = TEST_OK_PRE,
2365 .probe = probe_jedec,
2366 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2367 .block_erasers =
2368 {
2369 {
2370 .eraseblocks = { {256 * 1024, 1} },
2371 .block_erase = erase_chip_block_jedec,
2372 }
2373 /* Chip features an optional permanent write protection
2374 * of the first 8 kB. The erase function is the same as
2375 * above, but 00000H to 01FFFH will not be erased.
2376 * FIXME: add another eraser when partial erasers are
2377 * supported.
2378 */
2379 },
2380 .printlock = printlock_at49f,
2381 .write = write_jedec_1,
2382 .read = read_memmapped,
2383 .voltage = {4500, 5500},
2384 },
2385
2386 {
2387 .vendor = "Atmel",
2388 .name = "AT49F040",
2389 .bustype = BUS_PARALLEL,
2390 .manufacture_id = ATMEL_ID,
2391 .model_id = ATMEL_AT49F040,
2392 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002393 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002394 .feature_bits = FEATURE_EITHER_RESET,
2395 .tested = TEST_UNTESTED,
2396 .probe = probe_jedec,
2397 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2398 .block_erasers =
2399 {
2400 {
2401 .eraseblocks = { {512 * 1024, 1} },
2402 .block_erase = erase_chip_block_jedec,
2403 }
2404 /* Chip features an optional permanent write protection
2405 * of the first 16 kB. The erase function is the same as
2406 * above, but 00000H to 03FFFH will not be erased.
2407 * FIXME: add another eraser when partial erasers are
2408 * supported.
2409 */
2410 },
2411 .printlock = printlock_at49f,
2412 .write = write_jedec_1,
2413 .read = read_memmapped,
2414 .voltage = {4500, 5500},
2415 },
2416
2417 {
2418 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002419 .name = "AT49F080",
2420 .bustype = BUS_PARALLEL,
2421 .manufacture_id = ATMEL_ID,
2422 .model_id = ATMEL_AT49F080,
2423 .total_size = 1024,
2424 .page_size = 0, /* unused */
2425 .feature_bits = FEATURE_EITHER_RESET,
2426 .tested = TEST_UNTESTED,
2427 .probe = probe_jedec,
2428 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2429 .block_erasers =
2430 {
2431 {
2432 .eraseblocks = { {1024 * 1024, 1} },
2433 .block_erase = erase_chip_block_jedec,
2434 }
2435 /* Chip features an optional permanent write protection
2436 * of the first 16 kB. The erase function is the same as
2437 * above, but 00000H to 03FFFH will not be erased.
2438 * FIXME: add another eraser when partial erasers are
2439 * supported.
2440 */
2441 },
2442 .printlock = printlock_at49f,
2443 .write = write_jedec_1,
2444 .read = read_memmapped,
2445 .voltage = {4500, 5500},
2446 },
2447
2448 {
2449 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2450 .vendor = "Atmel",
2451 .name = "AT49F080T",
2452 .bustype = BUS_PARALLEL,
2453 .manufacture_id = ATMEL_ID,
2454 .model_id = ATMEL_AT49F080T,
2455 .total_size = 1024,
2456 .page_size = 0, /* unused */
2457 .feature_bits = FEATURE_EITHER_RESET,
2458 .tested = TEST_UNTESTED,
2459 .probe = probe_jedec,
2460 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2461 .block_erasers =
2462 {
2463 {
2464 .eraseblocks = { {1024 * 1024, 1} },
2465 .block_erase = erase_chip_block_jedec,
2466 }
2467 /* Chip features an optional permanent write protection
2468 * of the first 16 kB. The erase function is the same as
2469 * above, but FC000H to FFFFFH will not be erased.
2470 * FIXME: add another eraser when partial erasers are
2471 * supported.
2472 */
2473 },
2474 .printlock = printlock_at49f,
2475 .write = write_jedec_1,
2476 .read = read_memmapped,
2477 .voltage = {4500, 5500},
2478 },
2479
2480 {
2481 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002482 .name = "AT49LH002",
2483 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2484 .manufacture_id = ATMEL_ID,
2485 .model_id = ATMEL_AT49LH002,
2486 .total_size = 256,
2487 .page_size = 0, /* unused */
2488 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2489 .tested = TEST_UNTESTED,
2490 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2491 .probe_timing = TIMING_FIXME,
2492 .block_erasers =
2493 {
2494 {
2495 .eraseblocks = {
2496 {64 * 1024, 3},
2497 {32 * 1024, 1},
2498 {8 * 1024, 2},
2499 {16 * 1024, 1},
2500 },
2501 .block_erase = erase_block_82802ab,
2502 }, {
2503 .eraseblocks = {
2504 {64 * 1024, 4},
2505 },
2506 .block_erase = NULL, /* TODO: Implement. */
2507 },
2508 },
2509 .printlock = NULL, /* TODO */
2510 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2511 .write = write_82802ab,
2512 .read = read_memmapped,
2513 .voltage = {3000, 3600},
2514 },
2515
2516 {
Andrew Morganca081462011-09-13 22:05:44 +00002517 .vendor = "Catalyst",
2518 .name = "CAT28F512",
2519 .bustype = BUS_PARALLEL,
2520 .manufacture_id = CATALYST_ID,
2521 .model_id = CATALYST_CAT28F512,
2522 .total_size = 64,
2523 .page_size = 0, /* unused */
2524 .feature_bits = 0,
2525 .tested = TEST_OK_PR,
2526 .probe = probe_jedec, /* FIXME! */
2527 .probe_timing = TIMING_ZERO,
2528 .block_erasers =
2529 {
2530 {
2531 .eraseblocks = { {64 * 1024, 1} },
2532 .block_erase = NULL, /* TODO */
2533 },
2534 },
2535 .write = NULL, /* TODO */
2536 .read = read_memmapped,
2537 .voltage = {4500, 5500},
2538 },
2539
2540 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002541 .vendor = "Bright",
2542 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002543 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002544 .manufacture_id = BRIGHT_ID,
2545 .model_id = BRIGHT_BM29F040,
2546 .total_size = 512,
2547 .page_size = 64 * 1024,
2548 .feature_bits = FEATURE_EITHER_RESET,
2549 .tested = TEST_OK_PR,
2550 .probe = probe_jedec,
2551 .probe_timing = TIMING_ZERO,
2552 .block_erasers =
2553 {
2554 {
2555 .eraseblocks = { {64 * 1024, 8} },
2556 .block_erase = erase_sector_jedec,
2557 }, {
2558 .eraseblocks = { {512 * 1024, 1} },
2559 .block_erase = erase_chip_block_jedec,
2560 },
2561 },
2562 .write = write_jedec_1,
2563 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002564 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002565 },
2566
2567 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002568 .vendor = "EMST",
2569 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002570 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .manufacture_id = EMST_ID,
2572 .model_id = EMST_F49B002UA,
2573 .total_size = 256,
2574 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002575 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002576 .tested = TEST_UNTESTED,
2577 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002578 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002579 .block_erasers =
2580 {
2581 {
2582 .eraseblocks = {
2583 {128 * 1024, 1},
2584 {96 * 1024, 1},
2585 {8 * 1024, 2},
2586 {16 * 1024, 1},
2587 },
2588 .block_erase = erase_sector_jedec,
2589 }, {
2590 .eraseblocks = { {256 * 1024, 1} },
2591 .block_erase = erase_chip_block_jedec,
2592 }
2593 },
Sean Nelson35727f72010-01-28 23:55:12 +00002594 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002595 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002596 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002597 },
2598
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002600 .vendor = "EMST",
2601 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002602 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002603 .manufacture_id = EMST_ID,
2604 .model_id = EMST_F25L008A,
2605 .total_size = 1024,
2606 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002607 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00002608 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002609 .probe = probe_spi_rdid,
2610 .probe_timing = TIMING_ZERO,
2611 .block_erasers =
2612 {
2613 {
2614 .eraseblocks = { {4 * 1024, 256} },
2615 .block_erase = spi_block_erase_20,
2616 }, {
2617 .eraseblocks = { {64 * 1024, 16} },
2618 .block_erase = spi_block_erase_d8,
2619 }, {
2620 .eraseblocks = { {1024 * 1024, 1} },
2621 .block_erase = spi_block_erase_60,
2622 }, {
2623 .eraseblocks = { {1024 * 1024, 1} },
2624 .block_erase = spi_block_erase_c7,
2625 }
2626 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002627 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002628 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002629 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002630 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002631 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002632 },
2633
2634 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002635 .vendor = "Eon",
2636 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002637 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002638 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002639 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002640 .total_size = 64,
2641 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002642 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002643 .tested = TEST_UNTESTED,
2644 .probe = probe_spi_rdid,
2645 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002646 .block_erasers =
2647 {
2648 {
2649 .eraseblocks = {
2650 {4 * 1024, 2},
2651 {8 * 1024, 1},
2652 {16 * 1024, 1},
2653 {32 * 1024, 1},
2654 },
2655 .block_erase = spi_block_erase_d8,
2656 }, {
2657 .eraseblocks = { {64 * 1024, 1} },
2658 .block_erase = spi_block_erase_c7,
2659 }
2660 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002661 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002662 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002663 .write = spi_chip_write_256,
2664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002665 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002666 },
2667
2668 {
2669 .vendor = "Eon",
2670 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002671 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002672 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002673 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002674 .total_size = 64,
2675 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002676 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002677 .tested = TEST_UNTESTED,
2678 .probe = probe_spi_rdid,
2679 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002680 .block_erasers =
2681 {
2682 {
2683 .eraseblocks = {
2684 {32 * 1024, 1},
2685 {16 * 1024, 1},
2686 {8 * 1024, 1},
2687 {4 * 1024, 2},
2688 },
2689 .block_erase = spi_block_erase_d8,
2690 }, {
2691 .eraseblocks = { {64 * 1024, 1} },
2692 .block_erase = spi_block_erase_c7,
2693 }
2694 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002695 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002696 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002697 .write = spi_chip_write_256,
2698 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002699 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002700 },
2701
2702 {
2703 .vendor = "Eon",
2704 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002705 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002706 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002707 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002708 .total_size = 128,
2709 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002710 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002711 .tested = TEST_UNTESTED,
2712 .probe = probe_spi_rdid,
2713 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002714 .block_erasers =
2715 {
2716 {
2717 .eraseblocks = {
2718 {4 * 1024, 2},
2719 {8 * 1024, 1},
2720 {16 * 1024, 1},
2721 {32 * 1024, 3},
2722 },
2723 .block_erase = spi_block_erase_d8,
2724 }, {
2725 .eraseblocks = { {128 * 1024, 1} },
2726 .block_erase = spi_block_erase_c7,
2727 }
2728 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002729 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002730 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002731 .write = spi_chip_write_256,
2732 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002733 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002734 },
2735
2736 {
2737 .vendor = "Eon",
2738 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002739 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002740 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002741 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002742 .total_size = 128,
2743 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002744 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002745 .tested = TEST_UNTESTED,
2746 .probe = probe_spi_rdid,
2747 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002748 .block_erasers =
2749 {
2750 {
2751 .eraseblocks = {
2752 {32 * 1024, 3},
2753 {16 * 1024, 1},
2754 {8 * 1024, 1},
2755 {4 * 1024, 2},
2756 },
2757 .block_erase = spi_block_erase_d8,
2758 }, {
2759 .eraseblocks = { {128 * 1024, 1} },
2760 .block_erase = spi_block_erase_c7,
2761 }
2762 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002764 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002765 .write = spi_chip_write_256,
2766 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002767 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002768 },
2769
2770 {
2771 .vendor = "Eon",
2772 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002773 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002774 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002775 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002776 .total_size = 256,
2777 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002778 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002779 .tested = TEST_UNTESTED,
2780 .probe = probe_spi_rdid,
2781 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002782 .block_erasers =
2783 {
2784 {
2785 .eraseblocks = {
2786 {4 * 1024, 2},
2787 {8 * 1024, 1},
2788 {16 * 1024, 1},
2789 {32 * 1024, 1},
2790 {64 * 1024, 3}
2791 },
2792 .block_erase = spi_block_erase_d8,
2793 }, {
2794 .eraseblocks = { {256 * 1024, 1} },
2795 .block_erase = spi_block_erase_c7,
2796 }
2797 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002798 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002799 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002800 .write = spi_chip_write_256,
2801 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002802 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002803 },
2804
2805 {
2806 .vendor = "Eon",
2807 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002808 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002809 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002810 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002811 .total_size = 256,
2812 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002813 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002814 .tested = TEST_UNTESTED,
2815 .probe = probe_spi_rdid,
2816 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002817 .block_erasers =
2818 {
2819 {
2820 .eraseblocks = {
2821 {64 * 1024, 3},
2822 {32 * 1024, 1},
2823 {16 * 1024, 1},
2824 {8 * 1024, 1},
2825 {4 * 1024, 2},
2826 },
2827 .block_erase = spi_block_erase_d8,
2828 }, {
2829 .eraseblocks = { {256 * 1024, 1} },
2830 .block_erase = spi_block_erase_c7,
2831 }
2832 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002833 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002834 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002835 .write = spi_chip_write_256,
2836 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002837 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002838 },
2839
2840 {
2841 .vendor = "Eon",
2842 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002843 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002844 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002845 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002846 .total_size = 512,
2847 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002848 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002849 .tested = TEST_UNTESTED,
2850 .probe = probe_spi_rdid,
2851 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002852 .block_erasers =
2853 {
2854 {
2855 .eraseblocks = {
2856 {4 * 1024, 2},
2857 {8 * 1024, 1},
2858 {16 * 1024, 1},
2859 {32 * 1024, 1},
2860 {64 * 1024, 7}
2861 },
2862 .block_erase = spi_block_erase_d8,
2863 }, {
2864 .eraseblocks = { {512 * 1024, 1} },
2865 .block_erase = spi_block_erase_c7,
2866 }
2867 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002869 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002870 .write = spi_chip_write_256,
2871 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002872 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002873 },
2874
2875 {
2876 .vendor = "Eon",
2877 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002878 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002879 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002880 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002881 .total_size = 512,
2882 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002883 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002884 .tested = TEST_UNTESTED,
2885 .probe = probe_spi_rdid,
2886 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002887 .block_erasers =
2888 {
2889 {
2890 .eraseblocks = {
2891 {64 * 1024, 7},
2892 {32 * 1024, 1},
2893 {16 * 1024, 1},
2894 {8 * 1024, 1},
2895 {4 * 1024, 2},
2896 },
2897 .block_erase = spi_block_erase_d8,
2898 }, {
2899 .eraseblocks = { {512 * 1024, 1} },
2900 .block_erase = spi_block_erase_c7,
2901 }
2902 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002904 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002905 .write = spi_chip_write_256,
2906 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002907 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002908 },
2909
2910 {
2911 .vendor = "Eon",
2912 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002913 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002914 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002915 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002916 .total_size = 1024,
2917 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002918 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002919 .tested = TEST_UNTESTED,
2920 .probe = probe_spi_rdid,
2921 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002922 .block_erasers =
2923 {
2924 {
2925 .eraseblocks = {
2926 {4 * 1024, 2},
2927 {8 * 1024, 1},
2928 {16 * 1024, 1},
2929 {32 * 1024, 1},
2930 {64 * 1024, 15}
2931 },
2932 .block_erase = spi_block_erase_d8,
2933 }, {
2934 .eraseblocks = { {1024 * 1024, 1} },
2935 .block_erase = spi_block_erase_c7,
2936 }
2937 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002938 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002939 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002940 .write = spi_chip_write_256,
2941 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002942 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002943 },
2944
2945 {
2946 .vendor = "Eon",
2947 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002948 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002949 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002950 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002951 .total_size = 1024,
2952 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002953 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002954 .tested = TEST_UNTESTED,
2955 .probe = probe_spi_rdid,
2956 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002957 .block_erasers =
2958 {
2959 {
2960 .eraseblocks = {
2961 {64 * 1024, 15},
2962 {32 * 1024, 1},
2963 {16 * 1024, 1},
2964 {8 * 1024, 1},
2965 {4 * 1024, 2},
2966 },
2967 .block_erase = spi_block_erase_d8,
2968 }, {
2969 .eraseblocks = { {1024 * 1024, 1} },
2970 .block_erase = spi_block_erase_c7,
2971 }
2972 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002973 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002974 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002975 .write = spi_chip_write_256,
2976 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002977 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002978 },
2979
2980 {
2981 .vendor = "Eon",
2982 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002983 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002984 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002985 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002986 .total_size = 2048,
2987 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002988 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002989 .tested = TEST_UNTESTED,
2990 .probe = probe_spi_rdid,
2991 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002992 .block_erasers =
2993 {
2994 {
2995 .eraseblocks = {
2996 {4 * 1024, 2},
2997 {8 * 1024, 1},
2998 {16 * 1024, 1},
2999 {32 * 1024, 1},
3000 {64 * 1024, 31},
3001 },
3002 .block_erase = spi_block_erase_d8,
3003 }, {
3004 .eraseblocks = { {2 * 1024 * 1024, 1} },
3005 .block_erase = spi_block_erase_c7,
3006 }
3007 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003008 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003009 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003010 .write = spi_chip_write_256,
3011 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003012 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003013 },
3014
3015 {
3016 .vendor = "Eon",
3017 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003018 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003019 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003020 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003021 .total_size = 2048,
3022 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003023 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003024 .tested = TEST_UNTESTED,
3025 .probe = probe_spi_rdid,
3026 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003027 .block_erasers =
3028 {
3029 {
3030 .eraseblocks = {
3031 {64 * 1024, 31},
3032 {32 * 1024, 1},
3033 {16 * 1024, 1},
3034 {8 * 1024, 1},
3035 {4 * 1024, 2},
3036 },
3037 .block_erase = spi_block_erase_d8,
3038 }, {
3039 .eraseblocks = { {2 * 1024 * 1024, 1} },
3040 .block_erase = spi_block_erase_c7,
3041 }
3042 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003044 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003045 .write = spi_chip_write_256,
3046 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003047 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003048 },
3049
3050 {
3051 .vendor = "Eon",
3052 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003053 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003054 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003055 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003056 .total_size = 4096,
3057 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003058 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003059 .tested = TEST_UNTESTED,
3060 .probe = probe_spi_rdid,
3061 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003062 .block_erasers =
3063 {
3064 {
3065 .eraseblocks = {
3066 {4 * 1024, 2},
3067 {8 * 1024, 1},
3068 {16 * 1024, 1},
3069 {32 * 1024, 1},
3070 {64 * 1024, 63},
3071 },
3072 .block_erase = spi_block_erase_d8,
3073 }, {
3074 .eraseblocks = { {4 * 1024 * 1024, 1} },
3075 .block_erase = spi_block_erase_c7,
3076 }
3077 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003078 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003079 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003080 .write = spi_chip_write_256,
3081 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003082 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003083 },
3084
3085 {
3086 .vendor = "Eon",
3087 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003088 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003089 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003090 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003091 .total_size = 4096,
3092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003093 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003094 .tested = TEST_UNTESTED,
3095 .probe = probe_spi_rdid,
3096 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003097 .block_erasers =
3098 {
3099 {
3100 .eraseblocks = {
3101 {64 * 1024, 63},
3102 {32 * 1024, 1},
3103 {16 * 1024, 1},
3104 {8 * 1024, 1},
3105 {4 * 1024, 2},
3106 },
3107 .block_erase = spi_block_erase_d8,
3108 }, {
3109 .eraseblocks = { {4 * 1024 * 1024, 1} },
3110 .block_erase = spi_block_erase_c7,
3111 }
3112 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003115 .write = spi_chip_write_256,
3116 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003117 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003118 },
3119
3120 {
3121 .vendor = "Eon",
3122 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003123 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003124 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003125 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 .total_size = 8192,
3127 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003128 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003129 .tested = TEST_UNTESTED,
3130 .probe = probe_spi_rdid,
3131 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003132 .block_erasers =
3133 {
3134 {
3135 .eraseblocks = {
3136 {4 * 1024, 2},
3137 {8 * 1024, 1},
3138 {16 * 1024, 1},
3139 {32 * 1024, 1},
3140 {64 * 1024, 127},
3141 },
3142 .block_erase = spi_block_erase_d8,
3143 }, {
3144 .eraseblocks = { {8 * 1024 * 1024, 1} },
3145 .block_erase = spi_block_erase_c7,
3146 }
3147 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003148 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003149 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003150 .write = spi_chip_write_256,
3151 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003152 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003153 },
3154
3155 {
3156 .vendor = "Eon",
3157 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003158 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003159 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003160 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003161 .total_size = 8192,
3162 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003163 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003164 .tested = TEST_UNTESTED,
3165 .probe = probe_spi_rdid,
3166 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003167 .block_erasers =
3168 {
3169 {
3170 .eraseblocks = {
3171 {64 * 1024, 127},
3172 {32 * 1024, 1},
3173 {16 * 1024, 1},
3174 {8 * 1024, 1},
3175 {4 * 1024, 2},
3176 },
3177 .block_erase = spi_block_erase_d8,
3178 }, {
3179 .eraseblocks = { {8 * 1024 * 1024, 1} },
3180 .block_erase = spi_block_erase_c7,
3181 }
3182 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003183 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003184 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003185 .write = spi_chip_write_256,
3186 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003187 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003188 },
3189
3190 {
3191 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003192 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003193 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003194 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003195 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003196 .total_size = 64,
3197 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003198 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003199 .tested = TEST_UNTESTED,
3200 .probe = probe_spi_rdid,
3201 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003202 .block_erasers =
3203 {
3204 {
3205 .eraseblocks = { {4 * 1024, 16} },
3206 .block_erase = spi_block_erase_20,
3207 }, {
3208 .eraseblocks = { {32 * 1024, 2} },
3209 .block_erase = spi_block_erase_d8,
3210 }, {
3211 .eraseblocks = { {32 * 1024, 2} },
3212 .block_erase = spi_block_erase_52,
3213 }, {
3214 .eraseblocks = { {64 * 1024, 1} },
3215 .block_erase = spi_block_erase_60,
3216 }, {
3217 .eraseblocks = { {64 * 1024, 1} },
3218 .block_erase = spi_block_erase_c7,
3219 }
3220 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003221 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003222 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003223 .write = spi_chip_write_256,
3224 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003225 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003226 },
3227
3228 {
3229 .vendor = "Eon",
3230 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003231 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003232 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003233 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003234 .total_size = 128,
3235 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003236 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 .tested = TEST_UNTESTED,
3238 .probe = probe_spi_rdid,
3239 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003240 .block_erasers =
3241 {
3242 {
3243 .eraseblocks = { {4 * 1024, 32} },
3244 .block_erase = spi_block_erase_20,
3245 }, {
3246 .eraseblocks = { {32 * 1024, 4} },
3247 .block_erase = spi_block_erase_d8,
3248 }, {
3249 .eraseblocks = { {32 * 1024, 4} },
3250 .block_erase = spi_block_erase_52,
3251 }, {
3252 .eraseblocks = { {128 * 1024, 1} },
3253 .block_erase = spi_block_erase_60,
3254 }, {
3255 .eraseblocks = { {128 * 1024, 1} },
3256 .block_erase = spi_block_erase_c7,
3257 }
3258 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003259 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003260 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003261 .write = spi_chip_write_256,
3262 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003263 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003264 },
3265
3266 {
3267 .vendor = "Eon",
3268 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003269 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003270 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003271 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003272 .total_size = 256,
3273 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003274 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003275 .tested = TEST_UNTESTED,
3276 .probe = probe_spi_rdid,
3277 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003278 .block_erasers =
3279 {
3280 {
3281 .eraseblocks = { {4 * 1024, 64} },
3282 .block_erase = spi_block_erase_20,
3283 }, {
3284 .eraseblocks = { {64 * 1024, 4} },
3285 .block_erase = spi_block_erase_d8,
3286 }, {
3287 .eraseblocks = { {64 * 1024, 4} },
3288 .block_erase = spi_block_erase_52,
3289 }, {
3290 .eraseblocks = { {256 * 1024, 1} },
3291 .block_erase = spi_block_erase_60,
3292 }, {
3293 .eraseblocks = { {256 * 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,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003299 .write = spi_chip_write_256,
3300 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003301 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003302 },
3303
3304 {
3305 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003306 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003307 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003308 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003309 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003310 .total_size = 512,
3311 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003312 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003313 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003314 .probe = probe_spi_rdid,
3315 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003316 .block_erasers =
3317 {
3318 {
Sean Nelson54596372010-01-09 05:30:14 +00003319 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003320 .block_erase = spi_block_erase_20,
3321 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003322 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003323 .block_erase = spi_block_erase_d8,
3324 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003325 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003326 .block_erase = spi_block_erase_60,
3327 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003328 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003329 .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",
3341 .name = "EN25F80",
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_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003345 .total_size = 1024,
3346 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003348 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003349 .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, 256} },
3355 .block_erase = spi_block_erase_20,
3356 }, {
3357 .eraseblocks = { {64 * 1024, 16} },
3358 .block_erase = spi_block_erase_d8,
3359 }, {
3360 .eraseblocks = { {1024 * 1024, 1} },
3361 .block_erase = spi_block_erase_60,
3362 }, {
3363 .eraseblocks = { {1024 * 1024, 1} },
3364 .block_erase = spi_block_erase_c7,
3365 }
3366 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003367 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003368 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003369 .write = spi_chip_write_256,
3370 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003371 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003372 },
3373
3374 {
3375 .vendor = "Eon",
3376 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003377 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003378 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003379 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003380 .total_size = 2048,
3381 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003382 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003383 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003384 .probe = probe_spi_rdid,
3385 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003386 .block_erasers =
3387 {
3388 {
3389 .eraseblocks = { {4 * 1024, 512} },
3390 .block_erase = spi_block_erase_20,
3391 }, {
3392 .eraseblocks = { {64 * 1024, 32} },
3393 .block_erase = spi_block_erase_d8,
3394 }, {
3395 .eraseblocks = { {2 * 1024 * 1024, 1} },
3396 .block_erase = spi_block_erase_60,
3397 }, {
3398 .eraseblocks = { {2 * 1024 * 1024, 1} },
3399 .block_erase = spi_block_erase_c7,
3400 }
3401 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003403 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003404 .write = spi_chip_write_256,
3405 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003406 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003407 },
3408
3409 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003410 .vendor = "Eon",
3411 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003412 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003413 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003414 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003415 .total_size = 4096,
3416 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003417 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003418 .tested = TEST_UNTESTED,
3419 .probe = probe_spi_rdid,
3420 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003421 .block_erasers =
3422 {
3423 {
3424 .eraseblocks = { {4 * 1024, 1024} },
3425 .block_erase = spi_block_erase_20,
3426 }, {
3427 .eraseblocks = { {64 * 1024, 64} },
3428 .block_erase = spi_block_erase_d8,
3429 }, {
3430 .eraseblocks = { {4 * 1024 * 1024, 1} },
3431 .block_erase = spi_block_erase_60,
3432 }, {
3433 .eraseblocks = { {4 * 1024 * 1024, 1} },
3434 .block_erase = spi_block_erase_c7,
3435 }
3436 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003437 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003438 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003439 .write = spi_chip_write_256,
3440 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003441 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003442 },
3443
3444 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003445 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003446 .name = "EN25F64",
3447 .bustype = BUS_SPI,
3448 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003449 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003450 .total_size = 8192,
3451 .page_size = 256,
3452 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003453 .tested = TEST_OK_PR,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003454 .probe = probe_spi_rdid,
3455 .probe_timing = TIMING_ZERO,
3456 .block_erasers =
3457 {
3458 {
3459 .eraseblocks = { {4 * 1024, 2048} },
3460 .block_erase = spi_block_erase_20,
3461 }, {
3462 .eraseblocks = { {64 * 1024, 128} },
3463 .block_erase = spi_block_erase_d8,
3464 }, {
3465 .eraseblocks = { {8 * 1024 * 1024, 1} },
3466 .block_erase = spi_block_erase_60,
3467 }, {
3468 .eraseblocks = { {8 * 1024 * 1024, 1} },
3469 .block_erase = spi_block_erase_c7,
3470 }
3471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003472 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003473 .unlock = spi_disable_blockprotect,
3474 .write = spi_chip_write_256,
3475 .read = spi_chip_read,
3476 .voltage = {2700, 3600},
3477 },
3478
3479 {
3480 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003481 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003482 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003483 .manufacture_id = EON_ID_NOPREFIX,
3484 .model_id = EON_EN25Q40,
3485 .total_size = 512,
3486 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003487 /* OTP: 256B total; enter 0x3A */
3488 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003489 .tested = TEST_UNTESTED,
3490 .probe = probe_spi_rdid,
3491 .probe_timing = TIMING_ZERO,
3492 .block_erasers =
3493 {
3494 {
3495 .eraseblocks = { {4 * 1024, 128} },
3496 .block_erase = spi_block_erase_20,
3497 }, {
3498 .eraseblocks = { {64 * 1024, 8} },
3499 .block_erase = spi_block_erase_d8,
3500 }, {
3501 .eraseblocks = { {512 * 1024, 1} },
3502 .block_erase = spi_block_erase_60,
3503 }, {
3504 .eraseblocks = { {512 * 1024, 1} },
3505 .block_erase = spi_block_erase_c7,
3506 }
3507 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003508 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003509 .unlock = spi_disable_blockprotect,
3510 .write = spi_chip_write_256,
3511 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003512 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003513 },
3514
3515 {
3516 .vendor = "Eon",
3517 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003518 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003519 .manufacture_id = EON_ID_NOPREFIX,
3520 .model_id = EON_EN25Q80,
3521 .total_size = 1024,
3522 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003523 /* OTP: 256B total; enter 0x3A */
3524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003525 .tested = TEST_UNTESTED,
3526 .probe = probe_spi_rdid,
3527 .probe_timing = TIMING_ZERO,
3528 .block_erasers =
3529 {
3530 {
3531 .eraseblocks = { {4 * 1024, 256} },
3532 .block_erase = spi_block_erase_20,
3533 }, {
3534 .eraseblocks = { {64 * 1024, 16} },
3535 .block_erase = spi_block_erase_d8,
3536 }, {
3537 .eraseblocks = { {1024 * 1024, 1} },
3538 .block_erase = spi_block_erase_60,
3539 }, {
3540 .eraseblocks = { {1024 * 1024, 1} },
3541 .block_erase = spi_block_erase_c7,
3542 }
3543 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003544 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003545 .unlock = spi_disable_blockprotect,
3546 .write = spi_chip_write_256,
3547 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003548 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003549 },
3550
3551 {
3552 /* Note: EN25D16 is an evil twin which shares the model ID
3553 but has different write protection capabilities */
3554 .vendor = "Eon",
3555 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003556 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003557 .manufacture_id = EON_ID_NOPREFIX,
3558 .model_id = EON_EN25Q16,
3559 .total_size = 2048,
3560 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003561 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3562 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003563 .tested = TEST_UNTESTED,
3564 .probe = probe_spi_rdid,
3565 .probe_timing = TIMING_ZERO,
3566 .block_erasers =
3567 {
3568 {
3569 .eraseblocks = { {4 * 1024, 512} },
3570 .block_erase = spi_block_erase_20,
3571 }, {
3572 .eraseblocks = { {64 * 1024, 32} },
3573 .block_erase = spi_block_erase_d8,
3574 }, {
3575 /* not supported by Q16 version */
3576 .eraseblocks = { {64 * 1024, 32} },
3577 .block_erase = spi_block_erase_52,
3578 }, {
3579 .eraseblocks = { {2 * 1024 * 1024, 1} },
3580 .block_erase = spi_block_erase_60,
3581 }, {
3582 .eraseblocks = { {2 * 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 */
David Hendricks6d715302011-07-24 22:21:57 +00003587 .unlock = spi_disable_blockprotect,
3588 .write = spi_chip_write_256,
3589 .read = spi_chip_read,
3590 .voltage = {2700, 3600},
3591 },
3592
3593 {
3594 .vendor = "Eon",
3595 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003596 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003597 .manufacture_id = EON_ID_NOPREFIX,
3598 .model_id = EON_EN25Q32,
3599 .total_size = 4096,
3600 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003601 /* OTP: 512B total; enter 0x3A */
3602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003603 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003604 .probe = probe_spi_rdid,
3605 .probe_timing = TIMING_ZERO,
3606 .block_erasers =
3607 {
3608 {
3609 .eraseblocks = { {4 * 1024, 1024} },
3610 .block_erase = spi_block_erase_20,
3611 }, {
3612 .eraseblocks = { {64 * 1024, 64} },
3613 .block_erase = spi_block_erase_d8,
3614 }, {
3615 .eraseblocks = { {4 * 1024 * 1024, 1} },
3616 .block_erase = spi_block_erase_60,
3617 }, {
3618 .eraseblocks = { {4 * 1024 * 1024, 1} },
3619 .block_erase = spi_block_erase_c7,
3620 }
3621 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003623 .unlock = spi_disable_blockprotect,
3624 .write = spi_chip_write_256,
3625 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003626 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003627 },
3628
3629 {
3630 .vendor = "Eon",
3631 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003632 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003633 .manufacture_id = EON_ID_NOPREFIX,
3634 .model_id = EON_EN25Q64,
3635 .total_size = 8192,
3636 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003637 /* OTP: 512B total; enter 0x3A */
3638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003639 .tested = TEST_UNTESTED,
3640 .probe = probe_spi_rdid,
3641 .probe_timing = TIMING_ZERO,
3642 .block_erasers =
3643 {
3644 {
3645 .eraseblocks = { {4 * 1024, 2048} },
3646 .block_erase = spi_block_erase_20,
3647 }, {
3648 .eraseblocks = { {64 * 1024, 128} },
3649 .block_erase = spi_block_erase_d8,
3650 }, {
3651 .eraseblocks = { {8 * 1024 * 1024, 1} },
3652 .block_erase = spi_block_erase_60,
3653 }, {
3654 .eraseblocks = { {8 * 1024 * 1024, 1} },
3655 .block_erase = spi_block_erase_c7,
3656 }
3657 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003658 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003659 .unlock = spi_disable_blockprotect,
3660 .write = spi_chip_write_256,
3661 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003662 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003663 },
3664
3665 {
3666 .vendor = "Eon",
3667 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003668 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003669 .manufacture_id = EON_ID_NOPREFIX,
3670 .model_id = EON_EN25Q128,
3671 .total_size = 16384,
3672 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003673 /* OTP: 512B total; enter 0x3A */
3674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003675 .tested = TEST_UNTESTED,
3676 .probe = probe_spi_rdid,
3677 .probe_timing = TIMING_ZERO,
3678 .block_erasers =
3679 {
3680 {
3681 .eraseblocks = { {4 * 1024, 4096} },
3682 .block_erase = spi_block_erase_20,
3683 }, {
3684 .eraseblocks = { {64 * 1024, 256} },
3685 .block_erase = spi_block_erase_d8,
3686 }, {
3687 .eraseblocks = { {16 * 1024 * 1024, 1} },
3688 .block_erase = spi_block_erase_60,
3689 }, {
3690 .eraseblocks = { {16 * 1024 * 1024, 1} },
3691 .block_erase = spi_block_erase_c7,
3692 }
3693 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003694 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003695 .unlock = spi_disable_blockprotect,
3696 .write = spi_chip_write_256,
3697 .read = spi_chip_read,
3698 },
3699
3700 {
3701 .vendor = "Eon",
3702 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003703 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003704 .manufacture_id = EON_ID_NOPREFIX,
3705 .model_id = EON_EN25QH16,
3706 .total_size = 2048,
3707 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003708 /* supports SFDP */
3709 /* OTP: 512B total; enter 0x3A */
3710 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00003711 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00003712 .probe = probe_spi_rdid,
3713 .probe_timing = TIMING_ZERO,
3714 .block_erasers =
3715 {
3716 {
3717 .eraseblocks = { {4 * 1024, 512} },
3718 .block_erase = spi_block_erase_20,
3719 }, {
3720 .eraseblocks = { {64 * 1024, 32} },
3721 .block_erase = spi_block_erase_d8,
3722 }, {
3723 .eraseblocks = { {1024 * 2048, 1} },
3724 .block_erase = spi_block_erase_60,
3725 }, {
3726 .eraseblocks = { {1024 * 2048, 1} },
3727 .block_erase = spi_block_erase_c7,
3728 }
3729 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003730 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003731 .unlock = spi_disable_blockprotect,
3732 .write = spi_chip_write_256,
3733 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003734 .voltage = {2700, 3600},
3735 },
3736
3737 {
3738 .vendor = "Eon",
3739 .name = "EN25QH32",
3740 .bustype = BUS_SPI,
3741 .manufacture_id = EON_ID_NOPREFIX,
3742 .model_id = EON_EN25QH32,
3743 .total_size = 4096,
3744 .page_size = 256,
3745 /* supports SFDP */
3746 /* OTP: 512B total; enter 0x3A */
3747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3748 .tested = TEST_UNTESTED,
3749 .probe = probe_spi_rdid,
3750 .probe_timing = TIMING_ZERO,
3751 .block_erasers =
3752 {
3753 {
3754 .eraseblocks = { {4 * 1024, 1024} },
3755 .block_erase = spi_block_erase_20,
3756 }, {
3757 .eraseblocks = { {64 * 1024, 64} },
3758 .block_erase = spi_block_erase_d8,
3759 }, {
3760 .eraseblocks = { {1024 * 4096, 1} },
3761 .block_erase = spi_block_erase_60,
3762 }, {
3763 .eraseblocks = { {1024 * 4096, 1} },
3764 .block_erase = spi_block_erase_c7,
3765 }
3766 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003767 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Tauner2cef9162012-05-14 01:51:46 +00003768 .unlock = spi_disable_blockprotect,
3769 .write = spi_chip_write_256,
3770 .read = spi_chip_read,
3771 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003772 },
3773
3774 {
3775 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003776 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003777 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003778 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003779 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003780 .total_size = 128,
3781 .page_size = 128,
3782 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003783 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003784 .probe = probe_jedec,
3785 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3786 .block_erasers =
3787 {
3788 {
3789 .eraseblocks = { {16 * 1024, 8} },
3790 .block_erase = erase_sector_jedec,
3791 },
3792 {
3793 .eraseblocks = { {128 * 1024, 1} },
3794 .block_erase = erase_chip_block_jedec,
3795 },
3796 },
3797 .write = write_jedec_1,
3798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003799 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003800 },
3801
3802 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003803 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003804 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003805 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003806 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003807 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003808 .total_size = 256,
3809 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003810 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003811 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003812 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003813 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003814 .block_erasers =
3815 {
3816 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003817 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003818 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003819 {8 * 1024, 2},
3820 {32 * 1024, 1},
3821 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003822 },
3823 .block_erase = erase_sector_jedec,
3824 }, {
3825 .eraseblocks = { {256 * 1024, 1} },
3826 .block_erase = erase_chip_block_jedec,
3827 },
3828 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003829 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003831 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003832 },
3833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003834 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003835 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003836 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003837 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003838 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003839 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003840 .total_size = 256,
3841 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003842 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003843 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003844 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003845 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003846 .block_erasers =
3847 {
3848 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003849 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003850 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003851 {32 * 1024, 1},
3852 {8 * 1024, 2},
3853 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003854 },
3855 .block_erase = erase_sector_jedec,
3856 }, {
3857 .eraseblocks = { {256 * 1024, 1} },
3858 .block_erase = erase_chip_block_jedec,
3859 },
3860 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003861 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003862 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003863 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003864 },
3865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003866 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003867 .vendor = "Eon",
3868 .name = "EN29LV640B",
3869 .bustype = BUS_PARALLEL,
3870 .manufacture_id = EON_ID,
3871 .model_id = EON_EN29LV640B,
3872 .total_size = 8192,
3873 .page_size = 8192,
3874 .feature_bits = 0,
3875 .tested = TEST_OK_PREW,
3876 .probe = probe_en29lv640b,
3877 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3878 .block_erasers =
3879 {
3880 {
3881 .eraseblocks = {
3882 {8 * 1024, 8},
3883 {64 * 1024, 127},
3884 },
3885 .block_erase = block_erase_en29lv640b,
3886 }, {
3887 .eraseblocks = { {8 * 1024 * 1024, 1} },
3888 .block_erase = block_erase_chip_en29lv640b,
3889 },
3890 },
3891 .write = write_en29lv640b,
3892 .read = read_memmapped,
3893 .voltage = {2700, 3600},
3894 },
3895
3896 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003897 .vendor = "Fujitsu",
3898 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003899 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003900 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003901 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003902 .total_size = 512,
3903 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003904 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003905 .tested = TEST_UNTESTED,
3906 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003907 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003908 .block_erasers =
3909 {
3910 {
3911 .eraseblocks = {
3912 {16 * 1024, 1},
3913 {8 * 1024, 2},
3914 {32 * 1024, 1},
3915 {64 * 1024, 7},
3916 },
Sean Nelson35727f72010-01-28 23:55:12 +00003917 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003918 }, {
3919 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003920 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003921 },
3922 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003923 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003925 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003926 },
3927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003928 {
3929 .vendor = "Fujitsu",
3930 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003931 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003932 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003933 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003934 .total_size = 512,
3935 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003936 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003937 .tested = TEST_UNTESTED,
3938 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003939 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003940 .block_erasers =
3941 {
3942 {
3943 .eraseblocks = {
3944 {64 * 1024, 7},
3945 {32 * 1024, 1},
3946 {8 * 1024, 2},
3947 {16 * 1024, 1},
3948 },
Sean Nelson35727f72010-01-28 23:55:12 +00003949 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003950 }, {
3951 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003952 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003953 },
3954 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003955 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003957 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003958 },
3959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003960 {
Sean Nelson35727f72010-01-28 23:55:12 +00003961 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003962 .vendor = "Fujitsu",
3963 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003964 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003965 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003966 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003967 .total_size = 512,
3968 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003969 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003970 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003971 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003972 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003973 .block_erasers =
3974 {
3975 {
3976 .eraseblocks = {
3977 {16 * 1024, 1},
3978 {8 * 1024, 2},
3979 {32 * 1024, 1},
3980 {64 * 1024, 7},
3981 },
3982 .block_erase = block_erase_m29f400bt,
3983 }, {
3984 .eraseblocks = { {512 * 1024, 1} },
3985 .block_erase = block_erase_chip_m29f400bt,
3986 },
3987 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003988 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003989 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003990 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003991 },
3992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003993 {
3994 .vendor = "Fujitsu",
3995 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003996 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003997 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003998 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003999 .total_size = 512,
4000 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004001 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004002 .tested = TEST_UNTESTED,
4003 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004004 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004005 .block_erasers =
4006 {
4007 {
4008 .eraseblocks = {
4009 {64 * 1024, 7},
4010 {32 * 1024, 1},
4011 {8 * 1024, 2},
4012 {16 * 1024, 1},
4013 },
4014 .block_erase = block_erase_m29f400bt,
4015 }, {
4016 .eraseblocks = { {512 * 1024, 1} },
4017 .block_erase = block_erase_chip_m29f400bt,
4018 },
4019 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004020 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004021 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004022 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004023 },
4024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004025 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004026 .vendor = "GigaDevice",
4027 .name = "GD25Q20",
4028 .bustype = BUS_SPI,
4029 .manufacture_id = GIGADEVICE_ID,
4030 .model_id = GIGADEVICE_GD25Q20,
4031 .total_size = 256,
4032 .page_size = 256,
4033 .feature_bits = FEATURE_WRSR_WREN,
4034 .tested = TEST_UNTESTED,
4035 .probe = probe_spi_rdid,
4036 .probe_timing = TIMING_ZERO,
4037 .block_erasers =
4038 {
4039 {
4040 .eraseblocks = { {4 * 1024, 64} },
4041 .block_erase = spi_block_erase_20,
4042 }, {
4043 .eraseblocks = { {32 * 1024, 8} },
4044 .block_erase = spi_block_erase_52,
4045 }, {
4046 .eraseblocks = { {64 * 1024, 4} },
4047 .block_erase = spi_block_erase_d8,
4048 }, {
4049 .eraseblocks = { {256 * 1024, 1} },
4050 .block_erase = spi_block_erase_60,
4051 }, {
4052 .eraseblocks = { {256 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004057 .unlock = spi_disable_blockprotect,
4058 .write = spi_chip_write_256,
4059 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004060 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004061 },
4062
4063 {
4064 .vendor = "GigaDevice",
4065 .name = "GD25Q40",
4066 .bustype = BUS_SPI,
4067 .manufacture_id = GIGADEVICE_ID,
4068 .model_id = GIGADEVICE_GD25Q40,
4069 .total_size = 512,
4070 .page_size = 256,
4071 .feature_bits = FEATURE_WRSR_WREN,
4072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
4075 .block_erasers =
4076 {
4077 {
4078 .eraseblocks = { {4 * 1024, 128} },
4079 .block_erase = spi_block_erase_20,
4080 }, {
4081 .eraseblocks = { {32 * 1024, 16} },
4082 .block_erase = spi_block_erase_52,
4083 }, {
4084 .eraseblocks = { {64 * 1024, 8} },
4085 .block_erase = spi_block_erase_d8,
4086 }, {
4087 .eraseblocks = { {512 * 1024, 1} },
4088 .block_erase = spi_block_erase_60,
4089 }, {
4090 .eraseblocks = { {512 * 1024, 1} },
4091 .block_erase = spi_block_erase_c7,
4092 }
4093 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004095 .unlock = spi_disable_blockprotect,
4096 .write = spi_chip_write_256,
4097 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004098 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004099 },
4100
4101 {
4102 .vendor = "GigaDevice",
4103 .name = "GD25Q80",
4104 .bustype = BUS_SPI,
4105 .manufacture_id = GIGADEVICE_ID,
4106 .model_id = GIGADEVICE_GD25Q80,
4107 .total_size = 1024,
4108 .page_size = 256,
4109 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4110 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4111 .tested = TEST_OK_PREW,
4112 .probe = probe_spi_rdid,
4113 .probe_timing = TIMING_ZERO,
4114 .block_erasers =
4115 {
4116 {
4117 .eraseblocks = { {4 * 1024, 256} },
4118 .block_erase = spi_block_erase_20,
4119 }, {
4120 .eraseblocks = { {32 * 1024, 32} },
4121 .block_erase = spi_block_erase_52,
4122 }, {
4123 .eraseblocks = { {64 * 1024, 16} },
4124 .block_erase = spi_block_erase_d8,
4125 }, {
4126 .eraseblocks = { {1024 * 1024, 1} },
4127 .block_erase = spi_block_erase_60,
4128 }, {
4129 .eraseblocks = { {1024 * 1024, 1} },
4130 .block_erase = spi_block_erase_c7,
4131 }
4132 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004134 .unlock = spi_disable_blockprotect,
4135 .write = spi_chip_write_256,
4136 .read = spi_chip_read,
4137 .voltage = {2700, 3600},
4138 },
4139
4140 {
4141 .vendor = "GigaDevice",
4142 .name = "GD25Q16",
4143 .bustype = BUS_SPI,
4144 .manufacture_id = GIGADEVICE_ID,
4145 .model_id = GIGADEVICE_GD25Q16,
4146 .total_size = 2048,
4147 .page_size = 256,
4148 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4149 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4150 .tested = TEST_UNTESTED,
4151 .probe = probe_spi_rdid,
4152 .probe_timing = TIMING_ZERO,
4153 .block_erasers =
4154 {
4155 {
4156 .eraseblocks = { {4 * 1024, 512} },
4157 .block_erase = spi_block_erase_20,
4158 }, {
4159 .eraseblocks = { {32 * 1024, 64} },
4160 .block_erase = spi_block_erase_52,
4161 }, {
4162 .eraseblocks = { {64 * 1024, 32} },
4163 .block_erase = spi_block_erase_d8,
4164 }, {
4165 .eraseblocks = { {2 * 1024 * 1024, 1} },
4166 .block_erase = spi_block_erase_60,
4167 }, {
4168 .eraseblocks = { {2 * 1024 * 1024, 1} },
4169 .block_erase = spi_block_erase_c7,
4170 }
4171 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004172 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004173 .unlock = spi_disable_blockprotect,
4174 .write = spi_chip_write_256,
4175 .read = spi_chip_read,
4176 .voltage = {2700, 3600},
4177 },
4178
4179 {
4180 .vendor = "GigaDevice",
4181 .name = "GD25Q32",
4182 .bustype = BUS_SPI,
4183 .manufacture_id = GIGADEVICE_ID,
4184 .model_id = GIGADEVICE_GD25Q32,
4185 .total_size = 4096,
4186 .page_size = 256,
4187 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4189 .tested = TEST_UNTESTED,
4190 .probe = probe_spi_rdid,
4191 .probe_timing = TIMING_ZERO,
4192 .block_erasers =
4193 {
4194 {
4195 .eraseblocks = { {4 * 1024, 1024} },
4196 .block_erase = spi_block_erase_20,
4197 }, {
4198 .eraseblocks = { {32 * 1024, 128} },
4199 .block_erase = spi_block_erase_52,
4200 }, {
4201 .eraseblocks = { {64 * 1024, 64} },
4202 .block_erase = spi_block_erase_d8,
4203 }, {
4204 .eraseblocks = { {4 * 1024 * 1024, 1} },
4205 .block_erase = spi_block_erase_60,
4206 }, {
4207 .eraseblocks = { {4 * 1024 * 1024, 1} },
4208 .block_erase = spi_block_erase_c7,
4209 }
4210 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004211 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004212 .unlock = spi_disable_blockprotect,
4213 .write = spi_chip_write_256,
4214 .read = spi_chip_read,
4215 .voltage = {2700, 3600},
4216 },
4217
4218 {
4219 .vendor = "GigaDevice",
4220 .name = "GD25Q64",
4221 .bustype = BUS_SPI,
4222 .manufacture_id = GIGADEVICE_ID,
4223 .model_id = GIGADEVICE_GD25Q64,
4224 .total_size = 8192,
4225 .page_size = 256,
4226 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00004228 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004229 .probe = probe_spi_rdid,
4230 .probe_timing = TIMING_ZERO,
4231 .block_erasers =
4232 {
4233 {
4234 .eraseblocks = { {4 * 1024, 2048} },
4235 .block_erase = spi_block_erase_20,
4236 }, {
4237 .eraseblocks = { {32 * 1024, 256} },
4238 .block_erase = spi_block_erase_52,
4239 }, {
4240 .eraseblocks = { {64 * 1024, 128} },
4241 .block_erase = spi_block_erase_d8,
4242 }, {
4243 .eraseblocks = { {8 * 1024 * 1024, 1} },
4244 .block_erase = spi_block_erase_60,
4245 }, {
4246 .eraseblocks = { {8 * 1024 * 1024, 1} },
4247 .block_erase = spi_block_erase_c7,
4248 }
4249 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004251 .unlock = spi_disable_blockprotect,
4252 .write = spi_chip_write_256,
4253 .read = spi_chip_read,
4254 },
4255
4256 {
4257 .vendor = "GigaDevice",
4258 .name = "GD25Q128",
4259 .bustype = BUS_SPI,
4260 .manufacture_id = GIGADEVICE_ID,
4261 .model_id = GIGADEVICE_GD25Q128,
4262 .total_size = 16384,
4263 .page_size = 256,
4264 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4266 .tested = TEST_UNTESTED,
4267 .probe = probe_spi_rdid,
4268 .probe_timing = TIMING_ZERO,
4269 .block_erasers =
4270 {
4271 {
4272 .eraseblocks = { {4 * 1024, 4096} },
4273 .block_erase = spi_block_erase_20,
4274 }, {
4275 .eraseblocks = { {32 * 1024, 512} },
4276 .block_erase = spi_block_erase_52,
4277 }, {
4278 .eraseblocks = { {64 * 1024, 256} },
4279 .block_erase = spi_block_erase_d8,
4280 }, {
4281 .eraseblocks = { {16 * 1024 * 1024, 1} },
4282 .block_erase = spi_block_erase_60,
4283 }, {
4284 .eraseblocks = { {16 * 1024 * 1024, 1} },
4285 .block_erase = spi_block_erase_c7,
4286 }
4287 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004288 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004289 .unlock = spi_disable_blockprotect,
4290 .write = spi_chip_write_256,
4291 .read = spi_chip_read,
4292 },
4293
4294 {
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004295 .vendor = "GigaDevice",
4296 .name = "GD25LQ32",
4297 .bustype = BUS_SPI,
4298 .manufacture_id = GIGADEVICE_ID,
4299 .model_id = GIGADEVICE_GD25LQ32,
4300 .total_size = 4096,
4301 .page_size = 256,
4302 .feature_bits = FEATURE_WRSR_WREN,
4303 .tested = TEST_OK_PREW,
4304 .probe = probe_spi_rdid,
4305 .probe_timing = TIMING_ZERO,
4306 .block_erasers =
4307 {
4308 {
4309 .eraseblocks = { {4 * 1024, 1024} },
4310 .block_erase = spi_block_erase_20,
4311 }, {
4312 .eraseblocks = { {32 * 1024, 128} },
4313 .block_erase = spi_block_erase_52,
4314 }, {
4315 .eraseblocks = { {64 * 1024, 64} },
4316 .block_erase = spi_block_erase_d8,
4317 }, {
4318 .eraseblocks = { {4 * 1024 * 1024, 1} },
4319 .block_erase = spi_block_erase_60,
4320 }, {
4321 .eraseblocks = { {4 * 1024 * 1024, 1} },
4322 .block_erase = spi_block_erase_c7,
4323 }
4324 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004325 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Bryan Freed5bfef9d2012-09-17 00:05:44 +00004326 .unlock = spi_disable_blockprotect,
4327 .write = spi_chip_write_256,
4328 .read = spi_chip_read,
4329 .voltage = {1700, 1950},
4330 },
4331
4332 {
David Borgc96a8bd2010-06-21 16:12:22 +00004333 .vendor = "Hyundai",
4334 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004335 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004336 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004337 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004338 .total_size = 256,
4339 .page_size = 256 * 1024,
4340 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004341 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004342 .probe = probe_jedec,
4343 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4344 .block_erasers =
4345 {
4346 {
4347 .eraseblocks = {
4348 {64 * 1024, 3},
4349 {32 * 1024, 1},
4350 {8 * 1024, 2},
4351 {16 * 1024, 1},
4352 },
4353 .block_erase = erase_sector_jedec,
4354 }, {
4355 .eraseblocks = { {256 * 1024, 1} },
4356 .block_erase = erase_chip_block_jedec,
4357 },
4358 },
4359 .write = write_jedec_1,
4360 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004361 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004362 },
4363
4364 {
4365 .vendor = "Hyundai",
4366 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004367 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004368 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004369 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004370 .total_size = 256,
4371 .page_size = 256 * 1024,
4372 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4373 .tested = TEST_UNTESTED,
4374 .probe = probe_jedec,
4375 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4376 .block_erasers =
4377 {
4378 {
4379 .eraseblocks = {
4380 {16 * 1024, 1},
4381 {8 * 1024, 2},
4382 {32 * 1024, 1},
4383 {64 * 1024, 3},
4384 },
4385 .block_erase = erase_sector_jedec,
4386 }, {
4387 .eraseblocks = { {256 * 1024, 1} },
4388 .block_erase = erase_chip_block_jedec,
4389 },
4390 },
4391 .write = write_jedec_1,
4392 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004393 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004394 },
4395
4396 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004397 .vendor = "Hyundai",
4398 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004399 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004400 .manufacture_id = HYUNDAI_ID,
4401 .model_id = HYUNDAI_HY29F040A,
4402 .total_size = 512,
4403 .page_size = 64 * 1024,
4404 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4405 .tested = TEST_UNTESTED,
4406 .probe = probe_jedec,
4407 .probe_timing = TIMING_ZERO,
4408 .block_erasers =
4409 {
4410 {
4411 .eraseblocks = { {64 * 1024, 8} },
4412 .block_erase = erase_sector_jedec,
4413 }, {
4414 .eraseblocks = { {512 * 1024, 1} },
4415 .block_erase = erase_chip_block_jedec,
4416 },
4417 },
4418 .write = write_jedec_1,
4419 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004420 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004421 },
4422
4423 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004424 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004425 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004426 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004427 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004428 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004429 .total_size = 128,
4430 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004431 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004432 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004433 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004434 .block_erasers =
4435 {
4436 {
4437 .eraseblocks = {
4438 {8 * 1024, 1},
4439 {4 * 1024, 2},
4440 {112 * 1024, 1},
4441 },
Sean Nelson28accc22010-03-19 18:47:06 +00004442 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004443 },
4444 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004445 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004447 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004448 },
4449
4450 {
4451 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004452 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004453 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004454 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004455 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004456 .total_size = 128,
4457 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004458 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004459 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004460 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004461 .block_erasers =
4462 {
4463 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004464 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004465 {112 * 1024, 1},
4466 {4 * 1024, 2},
4467 {8 * 1024, 1},
4468 },
Sean Nelson28accc22010-03-19 18:47:06 +00004469 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004470 },
4471 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004472 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004474 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004475 },
4476
4477 {
4478 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004479 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004480 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004481 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004482 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004483 .total_size = 256,
4484 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004485 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004486 .probe = probe_82802ab,
4487 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4488 .block_erasers =
4489 {
4490 {
4491 .eraseblocks = {
4492 {128 * 1024, 1},
4493 {96 * 1024, 1},
4494 {8 * 1024, 2},
4495 {16 * 1024, 1},
4496 },
4497 .block_erase = erase_block_82802ab,
4498 },
4499 },
4500 .write = write_82802ab,
4501 .read = read_memmapped,
4502 },
4503
4504 {
4505 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004506 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004507 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004508 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004509 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004510 .total_size = 512,
4511 .page_size = 256,
4512 .tested = TEST_UNTESTED,
4513 .probe = probe_82802ab,
4514 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004515 .block_erasers =
4516 {
4517 {
4518 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004519 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004520 },
4521 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004522 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004523 .write = write_82802ab,
4524 .read = read_memmapped,
4525 },
4526
4527 {
4528 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004529 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004530 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004531 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004532 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004533 .total_size = 512,
4534 .page_size = 128 * 1024, /* maximal block size */
4535 .tested = TEST_UNTESTED,
4536 .probe = probe_82802ab,
4537 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4538 .block_erasers =
4539 {
4540 {
4541 .eraseblocks = {
4542 {16 * 1024, 1},
4543 {8 * 1024, 2},
4544 {96 * 1024, 1},
4545 {128 * 1024, 3},
4546 },
4547 .block_erase = erase_block_82802ab,
4548 },
4549 },
4550 .write = write_82802ab,
4551 .read = read_memmapped,
4552 },
4553
4554 {
4555 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004556 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004557 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004558 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004559 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004560 .total_size = 512,
4561 .page_size = 128 * 1024, /* maximal block size */
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_82802ab,
4564 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4565 .block_erasers =
4566 {
4567 {
4568 .eraseblocks = {
4569 {128 * 1024, 3},
4570 {96 * 1024, 1},
4571 {8 * 1024, 2},
4572 {16 * 1024, 1},
4573 },
4574 .block_erase = erase_block_82802ab,
4575 },
4576 },
4577 .write = write_82802ab,
4578 .read = read_memmapped,
4579 },
4580
4581 {
4582 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004583 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004584 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004585 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004586 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004587 .total_size = 512,
4588 .page_size = 128 * 1024, /* maximal block size */
4589 .feature_bits = FEATURE_ADDR_SHIFTED,
4590 .tested = TEST_UNTESTED,
4591 .probe = probe_82802ab,
4592 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4593 .block_erasers =
4594 {
4595 {
4596 .eraseblocks = {
4597 {16 * 1024, 1},
4598 {8 * 1024, 2},
4599 {96 * 1024, 1},
4600 {128 * 1024, 3},
4601 },
4602 .block_erase = erase_block_82802ab,
4603 },
4604 },
4605 .write = write_82802ab,
4606 .read = read_memmapped,
4607 },
4608
4609 {
4610 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004611 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004612 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004613 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004614 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004615 .total_size = 512,
4616 .page_size = 128 * 1024, /* maximal block size */
4617 .feature_bits = FEATURE_ADDR_SHIFTED,
4618 .tested = TEST_UNTESTED,
4619 .probe = probe_82802ab,
4620 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4621 .block_erasers =
4622 {
4623 {
4624 .eraseblocks = {
4625 {128 * 1024, 3},
4626 {96 * 1024, 1},
4627 {8 * 1024, 2},
4628 {16 * 1024, 1},
4629 },
4630 .block_erase = erase_block_82802ab,
4631 },
4632 },
4633 .write = write_82802ab,
4634 .read = read_memmapped,
4635 },
4636
4637 {
4638 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004639 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004640 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004641 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004642 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004643 .total_size = 512,
4644 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004645 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004646 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004648 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004649 .block_erasers =
4650 {
4651 {
4652 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004653 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004654 },
4655 },
Sean Nelson28accc22010-03-19 18:47:06 +00004656 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004658 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004659 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004660 },
4661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004662 {
4663 .vendor = "Intel",
4664 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004665 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004666 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004667 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004668 .total_size = 1024,
4669 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004670 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004671 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004672 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004673 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004674 .block_erasers =
4675 {
4676 {
4677 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004678 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004679 },
4680 },
Sean Nelson28accc22010-03-19 18:47:06 +00004681 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004682 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004684 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004685 },
4686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004687 {
4688 .vendor = "Macronix",
4689 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004690 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004691 .manufacture_id = MACRONIX_ID,
4692 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004693 .total_size = 64,
4694 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004695 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004696 .tested = TEST_UNTESTED,
4697 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004698 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004699 .block_erasers =
4700 {
4701 {
4702 .eraseblocks = { {4 * 1024, 16} },
4703 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004704 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004705 .eraseblocks = { {64 * 1024, 1} },
4706 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004707 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004708 .eraseblocks = { {64 * 1024, 1} },
4709 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004710 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004711 .eraseblocks = { {64 * 1024, 1} },
4712 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004713 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004714 .eraseblocks = { {64 * 1024, 1} },
4715 .block_erase = spi_block_erase_c7,
4716 },
4717 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004718 .printlock = spi_prettyprint_status_register_default_bp1, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004719 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004720 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004721 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004722 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004723 },
4724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004725 {
4726 .vendor = "Macronix",
4727 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004728 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004729 .manufacture_id = MACRONIX_ID,
4730 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004731 .total_size = 128,
4732 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004733 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004734 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004735 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004736 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004737 .block_erasers =
4738 {
4739 {
4740 .eraseblocks = { {4 * 1024, 32} },
4741 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004742 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004743 .eraseblocks = { {64 * 1024, 2} },
4744 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004745 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004746 .eraseblocks = { {128 * 1024, 1} },
4747 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004748 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004749 .eraseblocks = { {128 * 1024, 1} },
4750 .block_erase = spi_block_erase_c7,
4751 },
4752 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004753 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004754 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004755 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004756 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004757 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004758 },
4759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004760 {
4761 .vendor = "Macronix",
4762 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004763 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004764 .manufacture_id = MACRONIX_ID,
4765 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004766 .total_size = 256,
4767 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004768 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004769 .tested = TEST_UNTESTED,
4770 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004771 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004772 .block_erasers =
4773 {
4774 {
4775 .eraseblocks = { {4 * 1024, 64} },
4776 .block_erase = spi_block_erase_20,
4777 }, {
4778 .eraseblocks = { {64 * 1024, 4} },
4779 .block_erase = spi_block_erase_52,
4780 }, {
4781 .eraseblocks = { {64 * 1024, 4} },
4782 .block_erase = spi_block_erase_d8,
4783 }, {
4784 .eraseblocks = { {256 * 1024, 1} },
4785 .block_erase = spi_block_erase_60,
4786 }, {
4787 .eraseblocks = { {256 * 1024, 1} },
4788 .block_erase = spi_block_erase_c7,
4789 },
4790 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004791 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004792 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004793 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004794 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004795 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004796 },
4797
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004798 {
4799 .vendor = "Macronix",
4800 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004801 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004802 .manufacture_id = MACRONIX_ID,
4803 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004804 .total_size = 512,
4805 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004806 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004807 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004808 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004809 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004810 .block_erasers =
4811 {
4812 {
4813 .eraseblocks = { {4 * 1024, 128} },
4814 .block_erase = spi_block_erase_20,
4815 }, {
4816 .eraseblocks = { {64 * 1024, 8} },
4817 .block_erase = spi_block_erase_52,
4818 }, {
4819 .eraseblocks = { {64 * 1024, 8} },
4820 .block_erase = spi_block_erase_d8,
4821 }, {
4822 .eraseblocks = { {512 * 1024, 1} },
4823 .block_erase = spi_block_erase_60,
4824 }, {
4825 .eraseblocks = { {512 * 1024, 1} },
4826 .block_erase = spi_block_erase_c7,
4827 },
4828 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004829 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004830 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004831 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004833 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004834 },
4835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 {
4837 .vendor = "Macronix",
4838 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004839 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004840 .manufacture_id = MACRONIX_ID,
4841 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004842 .total_size = 1024,
4843 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004844 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004845 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004846 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004847 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004848 .block_erasers =
4849 {
4850 {
4851 .eraseblocks = { {4 * 1024, 256} },
4852 .block_erase = spi_block_erase_20,
4853 }, {
4854 .eraseblocks = { {64 * 1024, 16} },
4855 .block_erase = spi_block_erase_52,
4856 }, {
4857 .eraseblocks = { {64 * 1024, 16} },
4858 .block_erase = spi_block_erase_d8,
4859 }, {
4860 .eraseblocks = { {1024 * 1024, 1} },
4861 .block_erase = spi_block_erase_60,
4862 }, {
4863 .eraseblocks = { {1024 * 1024, 1} },
4864 .block_erase = spi_block_erase_c7,
4865 },
4866 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004867 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004868 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004869 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004870 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004871 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004872 },
4873
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004874 {
4875 .vendor = "Macronix",
4876 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004877 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004878 .manufacture_id = MACRONIX_ID,
4879 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004880 .total_size = 2048,
4881 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004882 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004883 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004884 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004885 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004886 .block_erasers =
4887 {
4888 {
4889 .eraseblocks = { {4 * 1024, 512} },
4890 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4891 }, {
4892 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4893 .block_erase = spi_block_erase_52,
4894 }, {
4895 .eraseblocks = { {64 * 1024, 32} },
4896 .block_erase = spi_block_erase_d8,
4897 }, {
4898 .eraseblocks = { {2 * 1024 * 1024, 1} },
4899 .block_erase = spi_block_erase_60,
4900 }, {
4901 .eraseblocks = { {2 * 1024 * 1024, 1} },
4902 .block_erase = spi_block_erase_c7,
4903 },
4904 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004905 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004906 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004907 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004908 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004909 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004910 },
4911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004912 {
4913 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004914 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004915 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004916 .manufacture_id = MACRONIX_ID,
4917 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004918 .total_size = 2048,
4919 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004920 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004921 .tested = TEST_UNTESTED,
4922 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004923 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004924 .block_erasers =
4925 {
4926 {
4927 .eraseblocks = { {4 * 1024, 512} },
4928 .block_erase = spi_block_erase_20,
4929 }, {
4930 .eraseblocks = { {64 * 1024, 32} },
4931 .block_erase = spi_block_erase_d8,
4932 }, {
4933 .eraseblocks = { {2 * 1024 * 1024, 1} },
4934 .block_erase = spi_block_erase_60,
4935 }, {
4936 .eraseblocks = { {2 * 1024 * 1024, 1} },
4937 .block_erase = spi_block_erase_c7,
4938 }
4939 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004940 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004941 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004942 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004943 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004944 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004945 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004946
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004947 {
4948 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004949 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004950 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004951 .manufacture_id = MACRONIX_ID,
4952 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004953 .total_size = 2048,
4954 .page_size = 256,
4955 .feature_bits = FEATURE_WRSR_WREN,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers =
4960 {
4961 {
4962 .eraseblocks = { {4 * 1024, 512} },
4963 .block_erase = spi_block_erase_20,
4964 }, {
4965 .eraseblocks = { {64 * 1024, 32} },
4966 .block_erase = spi_block_erase_d8,
4967 }, {
4968 .eraseblocks = { {2 * 1024 * 1024, 1} },
4969 .block_erase = spi_block_erase_60,
4970 }, {
4971 .eraseblocks = { {2 * 1024 * 1024, 1} },
4972 .block_erase = spi_block_erase_c7,
4973 }
4974 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004975 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Stephan Guilloux3611b802010-09-13 19:59:28 +00004976 .unlock = spi_disable_blockprotect,
4977 .write = spi_chip_write_256,
4978 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004979 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004980 },
4981
4982 {
4983 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004984 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004985 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004986 .manufacture_id = MACRONIX_ID,
4987 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004988 .total_size = 4096,
4989 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004990 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004992 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004993 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004994 .block_erasers =
4995 {
4996 {
4997 .eraseblocks = { {4 * 1024, 1024} },
4998 .block_erase = spi_block_erase_20,
4999 }, {
5000 .eraseblocks = { {4 * 1024, 1024} },
5001 .block_erase = spi_block_erase_d8,
5002 }, {
5003 .eraseblocks = { {4 * 1024 * 1024, 1} },
5004 .block_erase = spi_block_erase_60,
5005 }, {
5006 .eraseblocks = { {4 * 1024 * 1024, 1} },
5007 .block_erase = spi_block_erase_c7,
5008 },
5009 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005010 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005011 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005012 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005013 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005014 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005015 },
5016
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005017 {
5018 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005019 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005020 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005021 .manufacture_id = MACRONIX_ID,
5022 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005023 .total_size = 4096,
5024 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005025 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005026 .tested = TEST_UNTESTED,
5027 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005028 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005029 .block_erasers =
5030 {
5031 {
5032 .eraseblocks = { {4 * 1024, 1024} },
5033 .block_erase = spi_block_erase_20,
5034 }, {
5035 .eraseblocks = { {64 * 1024, 64} },
5036 .block_erase = spi_block_erase_d8,
5037 }, {
5038 .eraseblocks = { {4 * 1024 * 1024, 1} },
5039 .block_erase = spi_block_erase_60,
5040 }, {
5041 .eraseblocks = { {4 * 1024 * 1024, 1} },
5042 .block_erase = spi_block_erase_c7,
5043 }
5044 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005045 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005046 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005047 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005048 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005049 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005050 },
5051
5052 {
5053 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005054 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005055 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005056 .manufacture_id = MACRONIX_ID,
5057 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005058 .total_size = 8192,
5059 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005060 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005061 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005062 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005063 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005064 .block_erasers =
5065 {
5066 {
5067 .eraseblocks = { {64 * 1024, 128} },
5068 .block_erase = spi_block_erase_20,
5069 }, {
5070 .eraseblocks = { {64 * 1024, 128} },
5071 .block_erase = spi_block_erase_d8,
5072 }, {
5073 .eraseblocks = { {8 * 1024 * 1024, 1} },
5074 .block_erase = spi_block_erase_60,
5075 }, {
5076 .eraseblocks = { {8 * 1024 * 1024, 1} },
5077 .block_erase = spi_block_erase_c7,
5078 }
5079 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005080 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005081 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005082 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005083 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005084 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005085 },
5086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005087 {
5088 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005089 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005090 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005091 .manufacture_id = MACRONIX_ID,
5092 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005093 .total_size = 16384,
5094 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005095 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunereb582572012-09-21 12:52:50 +00005096 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005097 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005098 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005099 .block_erasers =
5100 {
5101 {
5102 .eraseblocks = { {4 * 1024, 4096} },
5103 .block_erase = spi_block_erase_20,
5104 }, {
5105 .eraseblocks = { {64 * 1024, 256} },
5106 .block_erase = spi_block_erase_d8,
5107 }, {
5108 .eraseblocks = { {16 * 1024 * 1024, 1} },
5109 .block_erase = spi_block_erase_60,
5110 }, {
5111 .eraseblocks = { {16 * 1024 * 1024, 1} },
5112 .block_erase = spi_block_erase_c7,
5113 }
5114 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005115 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005116 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005117 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005118 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005119 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005120 },
5121
5122 {
5123 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005124 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005125 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005126 .manufacture_id = MACRONIX_ID,
5127 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005128 .total_size = 128,
5129 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005130 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5131 .tested = TEST_UNTESTED,
5132 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005133 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005134 .block_erasers =
5135 {
5136 {
5137 .eraseblocks = {
5138 {8 * 1024, 1},
5139 {4 * 1024, 2},
5140 {8 * 1024, 2},
5141 {32 * 1024, 1},
5142 {64 * 1024, 1},
5143 },
Sean Nelson35727f72010-01-28 23:55:12 +00005144 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005145 }, {
5146 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005147 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005148 }
5149 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005150 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005152 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005153 },
5154
5155 {
5156 .vendor = "Macronix",
5157 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005158 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005159 .manufacture_id = MACRONIX_ID,
5160 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005161 .total_size = 128,
5162 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005163 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005164 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005165 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005166 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005167 .block_erasers =
5168 {
5169 {
5170 .eraseblocks = {
5171 {64 * 1024, 1},
5172 {32 * 1024, 1},
5173 {8 * 1024, 2},
5174 {4 * 1024, 2},
5175 {8 * 1024, 1},
5176 },
Sean Nelson35727f72010-01-28 23:55:12 +00005177 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005178 }, {
5179 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005180 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005181 }
5182 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005183 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005185 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005186 },
5187
5188 {
5189 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005190 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005191 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005192 .manufacture_id = MACRONIX_ID,
5193 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005194 .total_size = 256,
5195 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005197 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005198 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005199 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005200 .block_erasers =
5201 {
5202 {
5203 .eraseblocks = {
5204 {16 * 1024, 1},
5205 {8 * 1024, 2},
5206 {32 * 1024, 1},
5207 {64 * 1024, 3},
5208 },
Sean Nelson35727f72010-01-28 23:55:12 +00005209 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005210 }, {
5211 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005212 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005213 },
5214 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005215 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005217 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005218 },
5219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005220 {
5221 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005222 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005223 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005224 .manufacture_id = MACRONIX_ID,
5225 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005226 .total_size = 256,
5227 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005228 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005229 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005230 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005231 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005232 .block_erasers =
5233 {
5234 {
5235 .eraseblocks = {
5236 {64 * 1024, 3},
5237 {32 * 1024, 1},
5238 {8 * 1024, 2},
5239 {16 * 1024, 1},
5240 },
Sean Nelson35727f72010-01-28 23:55:12 +00005241 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005242 }, {
5243 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005244 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005245 },
5246 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005247 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005248 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005249 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005250 },
5251
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005252 {
5253 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005254 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005255 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005256 .manufacture_id = MACRONIX_ID,
5257 .model_id = MACRONIX_MX29F040,
5258 .total_size = 512,
5259 .page_size = 64 * 1024,
5260 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5261 .tested = TEST_UNTESTED,
5262 .probe = probe_jedec,
5263 .probe_timing = TIMING_ZERO,
5264 .block_erasers =
5265 {
5266 {
5267 .eraseblocks = { {64 * 1024, 8} },
5268 .block_erase = erase_sector_jedec,
5269 }, {
5270 .eraseblocks = { {512 * 1024, 1} },
5271 .block_erase = erase_chip_block_jedec,
5272 },
5273 },
5274 .write = write_jedec_1,
5275 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005276 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005277 },
5278
5279 {
5280 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005281 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005282 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005283 .manufacture_id = MACRONIX_ID,
5284 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005285 .total_size = 512,
5286 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005287 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5288 .tested = TEST_UNTESTED,
5289 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005290 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005291 .block_erasers =
5292 {
5293 {
5294 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005295 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005296 }, {
5297 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005298 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005299 },
5300 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005301 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005302 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005303 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005304 },
5305
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005306 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005307 .vendor = "MoselVitelic",
5308 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005309 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005310 .manufacture_id = SYNCMOS_MVC_ID,
5311 .model_id = MVC_V29C51000B,
5312 .total_size = 64,
5313 .page_size = 512,
5314 .feature_bits = FEATURE_EITHER_RESET,
5315 .tested = TEST_UNTESTED,
5316 .probe = probe_jedec,
5317 .probe_timing = TIMING_ZERO,
5318 .block_erasers =
5319 {
5320 {
5321 .eraseblocks = { {512, 128} },
5322 .block_erase = erase_sector_jedec,
5323 }, {
5324 .eraseblocks = { {64 * 1024, 1} },
5325 .block_erase = erase_chip_block_jedec,
5326 },
5327 },
5328 .write = write_jedec_1,
5329 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005330 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005331 },
5332
5333 {
5334 .vendor = "MoselVitelic",
5335 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005336 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005337 .manufacture_id = SYNCMOS_MVC_ID,
5338 .model_id = MVC_V29C51000T,
5339 .total_size = 64,
5340 .page_size = 512,
5341 .feature_bits = FEATURE_EITHER_RESET,
5342 .tested = TEST_UNTESTED,
5343 .probe = probe_jedec,
5344 .probe_timing = TIMING_ZERO,
5345 .block_erasers =
5346 {
5347 {
5348 .eraseblocks = { {512, 128} },
5349 .block_erase = erase_sector_jedec,
5350 }, {
5351 .eraseblocks = { {64 * 1024, 1} },
5352 .block_erase = erase_chip_block_jedec,
5353 },
5354 },
5355 .write = write_jedec_1,
5356 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005357 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005358 },
5359
5360 {
5361 .vendor = "MoselVitelic",
5362 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005363 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005364 .manufacture_id = SYNCMOS_MVC_ID,
5365 .model_id = MVC_V29C51400B,
5366 .total_size = 512,
5367 .page_size = 1024,
5368 .feature_bits = FEATURE_EITHER_RESET,
5369 .tested = TEST_UNTESTED,
5370 .probe = probe_jedec,
5371 .probe_timing = TIMING_ZERO,
5372 .block_erasers =
5373 {
5374 {
5375 .eraseblocks = { {1024, 512} },
5376 .block_erase = erase_sector_jedec,
5377 }, {
5378 .eraseblocks = { {512 * 1024, 1} },
5379 .block_erase = erase_chip_block_jedec,
5380 },
5381 },
5382 .write = write_jedec_1,
5383 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005384 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005385 },
5386
5387 {
5388 .vendor = "MoselVitelic",
5389 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005390 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005391 .manufacture_id = SYNCMOS_MVC_ID,
5392 .model_id = MVC_V29C51400T,
5393 .total_size = 512,
5394 .page_size = 1024,
5395 .feature_bits = FEATURE_EITHER_RESET,
5396 .tested = TEST_UNTESTED,
5397 .probe = probe_jedec,
5398 .probe_timing = TIMING_ZERO,
5399 .block_erasers =
5400 {
5401 {
5402 .eraseblocks = { {1024, 512} },
5403 .block_erase = erase_sector_jedec,
5404 }, {
5405 .eraseblocks = { {512 * 1024, 1} },
5406 .block_erase = erase_chip_block_jedec,
5407 },
5408 },
5409 .write = write_jedec_1,
5410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005411 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005412 },
5413
5414 {
5415 .vendor = "MoselVitelic",
5416 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005417 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005418 .manufacture_id = SYNCMOS_MVC_ID,
5419 .model_id = MVC_V29LC51000,
5420 .total_size = 64,
5421 .page_size = 512,
5422 .feature_bits = FEATURE_EITHER_RESET,
5423 .tested = TEST_UNTESTED,
5424 .probe = probe_jedec,
5425 .probe_timing = TIMING_ZERO,
5426 .block_erasers =
5427 {
5428 {
5429 .eraseblocks = { {512, 128} },
5430 .block_erase = erase_sector_jedec,
5431 }, {
5432 .eraseblocks = { {64 * 1024, 1} },
5433 .block_erase = erase_chip_block_jedec,
5434 },
5435 },
5436 .write = write_jedec_1,
5437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005438 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005439 },
5440
5441 {
5442 .vendor = "MoselVitelic",
5443 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005444 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005445 .manufacture_id = SYNCMOS_MVC_ID,
5446 .model_id = MVC_V29LC51001,
5447 .total_size = 128,
5448 .page_size = 512,
5449 .feature_bits = FEATURE_EITHER_RESET,
5450 .tested = TEST_UNTESTED,
5451 .probe = probe_jedec,
5452 .probe_timing = TIMING_ZERO,
5453 .block_erasers =
5454 {
5455 {
5456 .eraseblocks = { {512, 256} },
5457 .block_erase = erase_sector_jedec,
5458 }, {
5459 .eraseblocks = { {128 * 1024, 1} },
5460 .block_erase = erase_chip_block_jedec,
5461 },
5462 },
5463 .write = write_jedec_1,
5464 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005465 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005466 },
5467
5468 {
5469 .vendor = "MoselVitelic",
5470 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005471 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005472 .manufacture_id = SYNCMOS_MVC_ID,
5473 .model_id = MVC_V29LC51002,
5474 .total_size = 256,
5475 .page_size = 512,
5476 .feature_bits = FEATURE_EITHER_RESET,
5477 .tested = TEST_UNTESTED,
5478 .probe = probe_jedec,
5479 .probe_timing = TIMING_ZERO,
5480 .block_erasers =
5481 {
5482 {
5483 .eraseblocks = { {512, 512} },
5484 .block_erase = erase_sector_jedec,
5485 }, {
5486 .eraseblocks = { {256 * 1024, 1} },
5487 .block_erase = erase_chip_block_jedec,
5488 },
5489 },
5490 .write = write_jedec_1,
5491 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005492 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005493 },
5494
5495 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005496 .vendor = "Numonyx",
5497 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005498 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005500 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .total_size = 128,
5502 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005503 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005504 .tested = TEST_UNTESTED,
5505 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005506 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005507 .block_erasers =
5508 {
5509 {
5510 .eraseblocks = { {4 * 1024, 32} },
5511 .block_erase = spi_block_erase_20,
5512 }, {
5513 .eraseblocks = { {64 * 1024, 2} },
5514 .block_erase = spi_block_erase_d8,
5515 }, {
5516 .eraseblocks = { {128 * 1024, 1} },
5517 .block_erase = spi_block_erase_c7,
5518 }
5519 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005520 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005521 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005522 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005523 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005525 },
5526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005527 {
5528 .vendor = "Numonyx",
5529 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005530 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005531 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005532 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005533 .total_size = 256,
5534 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005535 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005536 .tested = TEST_UNTESTED,
5537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005538 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005539 .block_erasers =
5540 {
5541 {
5542 .eraseblocks = { {4 * 1024, 64} },
5543 .block_erase = spi_block_erase_20,
5544 }, {
5545 .eraseblocks = { {64 * 1024, 4} },
5546 .block_erase = spi_block_erase_d8,
5547 }, {
5548 .eraseblocks = { {256 * 1024, 1} },
5549 .block_erase = spi_block_erase_c7,
5550 }
5551 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005552 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005553 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005554 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005555 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005556 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005557 },
5558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005559 {
5560 .vendor = "Numonyx",
5561 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005563 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005564 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005565 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005566 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005567 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005568 .tested = TEST_UNTESTED,
5569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005570 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005571 .block_erasers =
5572 {
5573 {
5574 .eraseblocks = { {4 * 1024, 128} },
5575 .block_erase = spi_block_erase_20,
5576 }, {
5577 .eraseblocks = { {64 * 1024, 8} },
5578 .block_erase = spi_block_erase_d8,
5579 }, {
5580 .eraseblocks = { {512 * 1024, 1} },
5581 .block_erase = spi_block_erase_c7,
5582 }
5583 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005584 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005585 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005589 },
5590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005591 {
5592 .vendor = "Numonyx",
5593 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005595 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005596 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005597 .total_size = 1024,
5598 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005599 .feature_bits = FEATURE_WRSR_WREN,
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 Nelson5643c072010-01-19 03:23:07 +00005603 .block_erasers =
5604 {
5605 {
5606 .eraseblocks = { {4 * 1024, 256} },
5607 .block_erase = spi_block_erase_20,
5608 }, {
5609 .eraseblocks = { {64 * 1024, 16} },
5610 .block_erase = spi_block_erase_d8,
5611 }, {
5612 .eraseblocks = { {1024 * 1024, 1} },
5613 .block_erase = spi_block_erase_c7,
5614 }
5615 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005617 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005618 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005619 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005620 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005621 },
5622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 {
5624 .vendor = "Numonyx",
5625 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005626 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005627 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005628 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005629 .total_size = 2048,
5630 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005631 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005632 .tested = TEST_UNTESTED,
5633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005634 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005635 .block_erasers =
5636 {
5637 {
5638 .eraseblocks = { {4 * 1024, 512} },
5639 .block_erase = spi_block_erase_20,
5640 }, {
5641 .eraseblocks = { {64 * 1024, 32} },
5642 .block_erase = spi_block_erase_d8,
5643 }, {
5644 .eraseblocks = { {2 * 1024 * 1024, 1} },
5645 .block_erase = spi_block_erase_c7,
5646 }
5647 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005648 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005649 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005650 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005652 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005653 },
5654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005655 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005656 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00005657 .name = "N25Q016",
5658 .bustype = BUS_SPI,
5659 .manufacture_id = ST_ID,
5660 .model_id = ST_N25Q016__1E,
5661 .total_size = 2048,
5662 .page_size = 256,
5663 /* supports SFDP */
5664 /* OTP: 64B total; read 0x4B, write 0x42 */
5665 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5666 .tested = TEST_UNTESTED,
5667 .probe = probe_spi_rdid,
5668 .probe_timing = TIMING_ZERO,
5669 .block_erasers =
5670 {
5671 {
5672 .eraseblocks = { {4 * 1024, 512} },
5673 .block_erase = spi_block_erase_20,
5674 }, {
5675 .eraseblocks = { {32 * 1024, 64} },
5676 .block_erase = spi_block_erase_52,
5677 }, {
5678 .eraseblocks = { {64 * 1024, 32} },
5679 .block_erase = spi_block_erase_d8,
5680 }, {
5681 .eraseblocks = { {2 * 1024 * 1024, 1} },
5682 .block_erase = spi_block_erase_c7,
5683 }
5684 },
5685 .unlock = spi_disable_blockprotect,
5686 .write = spi_chip_write_256,
5687 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5688 .voltage = {1700, 2000},
5689 },
5690
5691 {
5692 .vendor = "Numonyx",
5693 .name = "N25Q032..1E",
5694 .bustype = BUS_SPI,
5695 .manufacture_id = ST_ID,
5696 .model_id = ST_N25Q032__1E,
5697 .total_size = 4096,
5698 .page_size = 256,
5699 /* supports SFDP */
5700 /* OTP: 64B total; read 0x4B, write 0x42 */
5701 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5702 .tested = TEST_UNTESTED,
5703 .probe = probe_spi_rdid,
5704 .probe_timing = TIMING_ZERO,
5705 .block_erasers =
5706 {
5707 {
5708 .eraseblocks = { {4 * 1024, 1024} },
5709 .block_erase = spi_block_erase_20,
5710 }, {
5711 .eraseblocks = { {64 * 1024, 64} },
5712 .block_erase = spi_block_erase_d8,
5713 }, {
5714 .eraseblocks = { {4 * 1024 * 1024, 1} },
5715 .block_erase = spi_block_erase_c7,
5716 }
5717 },
5718 .unlock = spi_disable_blockprotect,
5719 .write = spi_chip_write_256,
5720 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5721 .voltage = {1700, 2000},
5722 },
5723
5724 {
5725 .vendor = "Numonyx",
5726 .name = "N25Q032..3E",
5727 .bustype = BUS_SPI,
5728 .manufacture_id = ST_ID,
5729 .model_id = ST_N25Q032__3E,
5730 .total_size = 4096,
5731 .page_size = 256,
5732 /* supports SFDP */
5733 /* OTP: 64B total; read 0x4B, write 0x42 */
5734 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5735 .tested = TEST_UNTESTED,
5736 .probe = probe_spi_rdid,
5737 .probe_timing = TIMING_ZERO,
5738 .block_erasers =
5739 {
5740 {
5741 .eraseblocks = { {4 * 1024, 1024} },
5742 .block_erase = spi_block_erase_20,
5743 }, {
5744 .eraseblocks = { {64 * 1024, 64} },
5745 .block_erase = spi_block_erase_d8,
5746 }, {
5747 .eraseblocks = { {4 * 1024 * 1024, 1} },
5748 .block_erase = spi_block_erase_c7,
5749 }
5750 },
5751 .unlock = spi_disable_blockprotect,
5752 .write = spi_chip_write_256,
5753 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5754 .voltage = {2700, 3600},
5755 },
5756
5757 {
5758 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00005759 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005760 .bustype = BUS_SPI,
5761 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00005762 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005763 .total_size = 8192,
5764 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00005765 /* supports SFDP */
5766 /* OTP: 64B total; read 0x4B, write 0x42 */
5767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5768 .tested = TEST_UNTESTED,
5769 .probe = probe_spi_rdid,
5770 .probe_timing = TIMING_ZERO,
5771 .block_erasers =
5772 {
5773 {
5774 .eraseblocks = { {4 * 1024, 2048 } },
5775 .block_erase = spi_block_erase_20,
5776 }, {
5777 .eraseblocks = { {64 * 1024, 128} },
5778 .block_erase = spi_block_erase_d8,
5779 }, {
5780 .eraseblocks = { {8 * 1024 * 1024, 1} },
5781 .block_erase = spi_block_erase_c7,
5782 }
5783 },
5784 .unlock = spi_disable_blockprotect,
5785 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00005786 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00005787 .voltage = {1700, 2000},
5788 },
5789
5790 {
5791 .vendor = "Numonyx",
5792 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
5793 .bustype = BUS_SPI,
5794 .manufacture_id = ST_ID,
5795 .model_id = ST_N25Q064__3E,
5796 .total_size = 8192,
5797 .page_size = 256,
5798 /* supports SFDP */
5799 /* OTP: 64B total; read 0x4B, write 0x42 */
5800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005801 .tested = TEST_OK_PREW,
5802 .probe = probe_spi_rdid,
5803 .probe_timing = TIMING_ZERO,
5804 .block_erasers =
5805 {
5806 {
5807 .eraseblocks = { {4 * 1024, 2048 } },
5808 .block_erase = spi_block_erase_20,
5809 }, {
5810 .eraseblocks = { {64 * 1024, 128} },
5811 .block_erase = spi_block_erase_d8,
5812 }, {
5813 .eraseblocks = { {8 * 1024 * 1024, 1} },
5814 .block_erase = spi_block_erase_c7,
5815 }
5816 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005817 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005818 .unlock = spi_disable_blockprotect,
5819 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00005820 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00005821 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005822 },
5823
5824 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005825 .vendor = "PMC",
5826 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005827 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005828 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005829 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005830 .total_size = 128,
5831 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005832 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005833 .tested = TEST_UNTESTED,
5834 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005835 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005836 .block_erasers =
5837 {
5838 {
5839 .eraseblocks = { {4 * 1024, 32} },
5840 .block_erase = spi_block_erase_d7,
5841 }, {
5842 .eraseblocks = { {32 * 1024, 4} },
5843 .block_erase = spi_block_erase_d8,
5844 }, {
5845 .eraseblocks = { {128 * 1024, 1} },
5846 .block_erase = spi_block_erase_c7,
5847 }
5848 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005849 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005850 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005851 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005852 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005853 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005854 },
5855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005856 {
5857 .vendor = "PMC",
5858 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005859 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005860 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005861 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 .total_size = 2048,
5863 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005864 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005865 .tested = TEST_UNTESTED,
5866 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005867 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005868 .block_erasers =
5869 {
5870 {
5871 .eraseblocks = { {4 * 1024, 512} },
5872 .block_erase = spi_block_erase_d7,
5873 }, {
5874 .eraseblocks = { {4 * 1024, 512} },
5875 .block_erase = spi_block_erase_20,
5876 }, {
5877 .eraseblocks = { {64 * 1024, 32} },
5878 .block_erase = spi_block_erase_d8,
5879 }, {
5880 .eraseblocks = { {2 * 1024 * 1024, 1} },
5881 .block_erase = spi_block_erase_60,
5882 }, {
5883 .eraseblocks = { {2 * 1024 * 1024, 1} },
5884 .block_erase = spi_block_erase_c7,
5885 }
5886 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005887 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005888 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005889 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005890 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005891 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005892 },
5893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005894 {
5895 .vendor = "PMC",
5896 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005897 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005898 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005899 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005900 .total_size = 256,
5901 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005902 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005903 .tested = TEST_UNTESTED,
5904 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005905 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005906 .block_erasers =
5907 {
5908 {
5909 .eraseblocks = { {4 * 1024, 64} },
5910 .block_erase = spi_block_erase_d7,
5911 }, {
5912 .eraseblocks = { {64 * 1024, 4} },
5913 .block_erase = spi_block_erase_d8,
5914 }, {
5915 .eraseblocks = { {256 * 1024, 1} },
5916 .block_erase = spi_block_erase_c7,
5917 }
5918 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005919 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005920 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005921 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005922 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005923 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005924 },
5925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005926 {
5927 .vendor = "PMC",
5928 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005929 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005930 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005931 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005932 .total_size = 512,
5933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005934 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005935 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005936 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005937 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005938 .block_erasers =
5939 {
5940 {
5941 .eraseblocks = { {4 * 1024, 128} },
5942 .block_erase = spi_block_erase_d7,
5943 }, {
5944 .eraseblocks = { {64 * 1024, 8} },
5945 .block_erase = spi_block_erase_d8,
5946 }, {
5947 .eraseblocks = { {512 * 1024, 1} },
5948 .block_erase = spi_block_erase_c7,
5949 }
5950 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005951 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005952 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005953 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005954 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005955 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005956 },
5957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005958 {
5959 .vendor = "PMC",
5960 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005961 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005962 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005963 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005964 .total_size = 1024,
5965 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005966 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005967 .tested = TEST_UNTESTED,
5968 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005969 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005970 .block_erasers =
5971 {
5972 {
5973 .eraseblocks = { {4 * 1024, 256} },
5974 .block_erase = spi_block_erase_d7,
5975 }, {
5976 .eraseblocks = { {4 * 1024, 256} },
5977 .block_erase = spi_block_erase_20,
5978 }, {
5979 .eraseblocks = { {64 * 1024, 16} },
5980 .block_erase = spi_block_erase_d8,
5981 }, {
5982 .eraseblocks = { {1024 * 1024, 1} },
5983 .block_erase = spi_block_erase_60,
5984 }, {
5985 .eraseblocks = { {1024 * 1024, 1} },
5986 .block_erase = spi_block_erase_c7,
5987 }
5988 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005989 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005990 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005991 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005992 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005993 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005994 },
5995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005996 {
5997 .vendor = "PMC",
5998 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005999 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006000 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006001 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .total_size = 64,
6003 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006004 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006005 .tested = TEST_UNTESTED,
6006 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006007 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006008 .block_erasers =
6009 {
6010 {
6011 .eraseblocks = { {4 * 1024, 16} },
6012 .block_erase = spi_block_erase_d7,
6013 }, {
6014 .eraseblocks = { {32 * 1024, 2} },
6015 .block_erase = spi_block_erase_d8,
6016 }, {
6017 .eraseblocks = { {64 * 1024, 1} },
6018 .block_erase = spi_block_erase_c7,
6019 }
6020 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006021 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006023 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006024 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006025 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006026 },
6027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006028 {
6029 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006030 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006031 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006032 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006033 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006034 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006035 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006036 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006037 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006038 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006039 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006040 .block_erasers =
6041 {
6042 {
6043 .eraseblocks = {
6044 {128 * 1024, 1},
6045 {96 * 1024, 1},
6046 {8 * 1024, 2},
6047 {16 * 1024, 1},
6048 },
Sean Nelson35727f72010-01-28 23:55:12 +00006049 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006050 }, {
6051 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006052 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006053 },
6054 },
Sean Nelson35727f72010-01-28 23:55:12 +00006055 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006057 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006058 },
6059
6060 {
6061 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006062 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006063 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006064 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006065 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006066 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006067 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006069 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006070 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006071 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006072 .block_erasers =
6073 {
6074 {
6075 .eraseblocks = {
6076 {16 * 1024, 1},
6077 {8 * 1024, 2},
6078 {96 * 1024, 1},
6079 {128 * 1024, 1},
6080 },
Sean Nelson35727f72010-01-28 23:55:12 +00006081 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006082 }, {
6083 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006084 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006085 },
6086 },
Sean Nelson35727f72010-01-28 23:55:12 +00006087 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006089 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006090 },
6091
6092 {
6093 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006094 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006095 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006096 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006097 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006098 .total_size = 128,
6099 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006100 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006101 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006102 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006103 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00006104 .block_erasers =
6105 {
6106 {
6107 .eraseblocks = { {4 * 1024, 32} },
6108 .block_erase = erase_sector_jedec,
6109 }, {
6110 .eraseblocks = { {64 * 1024, 2} },
6111 .block_erase = erase_block_jedec,
6112 }, {
6113 .eraseblocks = { {128 * 1024, 1} },
6114 .block_erase = erase_chip_block_jedec,
6115 }
6116 },
Sean Nelson35727f72010-01-28 23:55:12 +00006117 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006118 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006119 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006120 },
6121
6122 {
6123 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006124 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006125 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006126 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006127 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006128 .total_size = 256,
6129 .page_size = 4096,
6130 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6131 .tested = TEST_UNTESTED,
6132 .probe = probe_jedec,
6133 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6134 .block_erasers =
6135 {
6136 {
6137 .eraseblocks = { {4 * 1024, 64} },
6138 .block_erase = erase_sector_jedec,
6139 }, {
6140 .eraseblocks = { {64 * 1024, 4} },
6141 .block_erase = erase_block_jedec,
6142 }, {
6143 .eraseblocks = { {256 * 1024, 1} },
6144 .block_erase = erase_chip_block_jedec,
6145 }
6146 },
6147 .write = write_jedec_1,
6148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006149 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006150 },
6151
6152 {
6153 .vendor = "PMC",
6154 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006155 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006156 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006157 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006158 .total_size = 512,
6159 .page_size = 4096,
6160 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006161 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006162 .probe = probe_jedec,
6163 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6164 .block_erasers =
6165 {
6166 {
6167 .eraseblocks = { {4 * 1024, 128} },
6168 .block_erase = erase_sector_jedec,
6169 }, {
6170 .eraseblocks = { {64 * 1024, 8} },
6171 .block_erase = erase_block_jedec,
6172 }, {
6173 .eraseblocks = { {512 * 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 = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006180 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00006181
6182 {
6183 .vendor = "PMC",
6184 .name = "Pm39LV512",
6185 .bustype = BUS_PARALLEL,
6186 .manufacture_id = PMC_ID_NOPREFIX,
6187 .model_id = PMC_PM39LV512,
6188 .total_size = 64,
6189 .page_size = 4096,
6190 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6191 .tested = TEST_OK_PREW,
6192 .probe = probe_jedec,
6193 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6194 .block_erasers =
6195 {
6196 {
6197 .eraseblocks = { {4 * 1024, 16} },
6198 .block_erase = erase_sector_jedec,
6199 }, {
6200 .eraseblocks = { {64 * 1024, 1} },
6201 .block_erase = erase_block_jedec,
6202 }, {
6203 .eraseblocks = { {64 * 1024, 1} },
6204 .block_erase = erase_chip_block_jedec,
6205 }
6206 },
6207 .write = write_jedec_1,
6208 .read = read_memmapped,
6209 .voltage = {2700, 3600},
6210 },
6211
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006212 {
6213 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006214 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006215 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006216 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006217 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006218 .total_size = 256,
6219 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006220 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006221 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006222 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006223 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006224 .block_erasers =
6225 {
6226 {
6227 .eraseblocks = { {4 * 1024, 64} },
6228 .block_erase = erase_sector_jedec,
6229 }, {
6230 .eraseblocks = { {16 * 1024, 16} },
6231 .block_erase = erase_block_jedec,
6232 }, {
6233 .eraseblocks = { {256 * 1024, 1} },
6234 .block_erase = erase_chip_block_jedec,
6235 }
6236 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006237 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006238 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006240 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006241 },
6242
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006243 {
6244 .vendor = "PMC",
6245 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006246 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006247 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006248 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006249 .total_size = 512,
6250 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006251 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006252 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006253 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006254 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006255 .block_erasers =
6256 {
6257 {
6258 .eraseblocks = { {4 * 1024, 128} },
6259 .block_erase = erase_sector_jedec,
6260 }, {
6261 .eraseblocks = { {64 * 1024, 8} },
6262 .block_erase = erase_block_jedec,
6263 }, {
6264 .eraseblocks = { {512 * 1024, 1} },
6265 .block_erase = erase_chip_block_jedec,
6266 }
6267 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006268 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006269 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006270 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006271 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006272 },
6273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006274 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00006275 .vendor = "Sanyo",
6276 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006277 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006278 .manufacture_id = SANYO_ID,
6279 .model_id = SANYO_LE25FW203A,
6280 .total_size = 2048,
6281 .page_size = 256,
6282 .tested = TEST_UNTESTED,
6283 .probe = probe_spi_rdid,
6284 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006285 .block_erasers =
6286 {
6287 {
6288 .eraseblocks = { {64 * 1024, 32} },
6289 .block_erase = spi_block_erase_d8,
6290 }, {
6291 .eraseblocks = { {2 * 1024 * 1024, 1} },
6292 .block_erase = spi_block_erase_c7,
6293 }
6294 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006295 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006296 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006297 .write = spi_chip_write_256,
6298 .read = spi_chip_read,
6299 },
6300
6301 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006302 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006303 .name = "LH28F008BJT-BTLZ1",
6304 .bustype = BUS_PARALLEL,
6305 .manufacture_id = SHARP_ID,
6306 .model_id = SHARP_LH28F008BJxxPB,
6307 .total_size = 1024,
6308 .page_size = 64 * 1024,
6309 .tested = TEST_OK_PREW,
6310 .probe = probe_82802ab,
6311 .probe_timing = TIMING_ZERO,
6312 .block_erasers =
6313 {
6314 {
6315 .eraseblocks = {
6316 {8 * 1024, 8},
6317 {64 * 1024, 15}
6318 },
6319 .block_erase = erase_block_82802ab,
6320 }, {
6321 .eraseblocks = { {1024 * 1024, 1} },
6322 .block_erase = erase_sector_49lfxxxc,
6323 }
6324 },
6325 .unlock = unlock_lh28f008bjt,
6326 .write = write_82802ab,
6327 .read = read_memmapped,
6328 .voltage = {2700, 3600},
6329 },
6330
6331 {
6332 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006333 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006334 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006335 .manufacture_id = SHARP_ID,
6336 .model_id = SHARP_LHF00L04,
6337 .total_size = 1024,
6338 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006339 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006340 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006341 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006342 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006343 .block_erasers =
6344 {
6345 {
6346 .eraseblocks = {
6347 {64 * 1024, 15},
6348 {8 * 1024, 8}
6349 },
Sean Nelson28accc22010-03-19 18:47:06 +00006350 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006351 }, {
6352 .eraseblocks = {
6353 {1024 * 1024, 1}
6354 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006355 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006356 },
6357 },
Sean Nelson28accc22010-03-19 18:47:06 +00006358 .unlock = unlock_82802ab,
6359 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006361 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006362 },
6363
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006364 {
6365 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006366 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006367 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006368 .manufacture_id = SPANSION_ID,
6369 .model_id = SPANSION_S25FL004A,
6370 .total_size = 512,
6371 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006372 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006373 .tested = TEST_UNTESTED,
6374 .probe = probe_spi_rdid,
6375 .probe_timing = TIMING_ZERO,
6376 .block_erasers =
6377 {
6378 {
6379 .eraseblocks = { {64 * 1024, 8} },
6380 .block_erase = spi_block_erase_d8,
6381 }, {
6382 .eraseblocks = { {512 * 1024, 1} },
6383 .block_erase = spi_block_erase_c7,
6384 }
6385 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006386 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006387 .unlock = spi_disable_blockprotect,
6388 .write = spi_chip_write_256,
6389 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006390 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006391 },
6392
6393 {
6394 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006395 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006396 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006397 .manufacture_id = SPANSION_ID,
6398 .model_id = SPANSION_S25FL008A,
6399 .total_size = 1024,
6400 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006401 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006402 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006403 .probe = probe_spi_rdid,
6404 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006405 .block_erasers =
6406 {
6407 {
6408 .eraseblocks = { {64 * 1024, 16} },
6409 .block_erase = spi_block_erase_d8,
6410 }, {
6411 .eraseblocks = { {1024 * 1024, 1} },
6412 .block_erase = spi_block_erase_c7,
6413 }
6414 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006415 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006416 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006417 .write = spi_chip_write_256,
6418 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006419 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006420 },
6421
6422 {
6423 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006424 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006425 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006426 .manufacture_id = SPANSION_ID,
6427 .model_id = SPANSION_S25FL016A,
6428 .total_size = 2048,
6429 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006430 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006431 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006432 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006433 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006434 .block_erasers =
6435 {
6436 {
6437 .eraseblocks = { {64 * 1024, 32} },
6438 .block_erase = spi_block_erase_d8,
6439 }, {
6440 .eraseblocks = { {2 * 1024 * 1024, 1} },
6441 .block_erase = spi_block_erase_c7,
6442 }
6443 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006444 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006445 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006446 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006447 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006448 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006449 },
6450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006451 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006452 .vendor = "Spansion",
6453 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006454 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006455 .manufacture_id = SPANSION_ID,
6456 .model_id = SPANSION_S25FL032A,
6457 .total_size = 4096,
6458 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006459 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006460 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006461 .probe = probe_spi_rdid,
6462 .probe_timing = TIMING_ZERO,
6463 .block_erasers =
6464 {
6465 {
6466 .eraseblocks = { {64 * 1024, 64} },
6467 .block_erase = spi_block_erase_d8,
6468 }, {
6469 .eraseblocks = { {4 * 1024 * 1024, 1} },
6470 .block_erase = spi_block_erase_c7,
6471 }
6472 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006474 .unlock = spi_disable_blockprotect,
6475 .write = spi_chip_write_256,
6476 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006477 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006478 },
6479
6480 {
6481 .vendor = "Spansion",
6482 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006483 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006484 .manufacture_id = SPANSION_ID,
6485 .model_id = SPANSION_S25FL064A,
6486 .total_size = 8192,
6487 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006488 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006489 .tested = TEST_OK_PREW,
6490 .probe = probe_spi_rdid,
6491 .probe_timing = TIMING_ZERO,
6492 .block_erasers =
6493 {
6494 {
6495 .eraseblocks = { {64 * 1024, 128} },
6496 .block_erase = spi_block_erase_d8,
6497 }, {
6498 .eraseblocks = { {8 * 1024 * 1024, 1} },
6499 .block_erase = spi_block_erase_c7,
6500 }
6501 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006503 .unlock = spi_disable_blockprotect,
6504 .write = spi_chip_write_256,
6505 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006506 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006507 },
6508
6509 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006510 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006511 .name = "SST25LF040A",
6512 .bustype = BUS_SPI,
6513 .manufacture_id = SST_ID,
6514 .model_id = SST_SST25VF040_REMS,
6515 .total_size = 512,
6516 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006517 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006518 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006519 .probe = probe_spi_res2,
6520 .probe_timing = TIMING_ZERO,
6521 .block_erasers =
6522 {
6523 {
6524 .eraseblocks = { {4 * 1024, 128} },
6525 .block_erase = spi_block_erase_20,
6526 }, {
6527 .eraseblocks = { {32 * 1024, 16} },
6528 .block_erase = spi_block_erase_52,
6529 }, {
6530 .eraseblocks = { {512 * 1024, 1} },
6531 .block_erase = spi_block_erase_60,
6532 },
6533 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006534 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00006535 .unlock = spi_disable_blockprotect,
6536 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6537 .read = spi_chip_read,
6538 .voltage = {3000, 3600},
6539 },
6540
6541 {
6542 .vendor = "SST",
6543 .name = "SST25LF080A",
6544 .bustype = BUS_SPI,
6545 .manufacture_id = SST_ID,
6546 .model_id = SST_SST25VF080_REMS,
6547 .total_size = 1024,
6548 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006549 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006550 .tested = TEST_UNTESTED,
6551 .probe = probe_spi_res2,
6552 .probe_timing = TIMING_ZERO,
6553 .block_erasers =
6554 {
6555 {
6556 .eraseblocks = { {4 * 1024, 256} },
6557 .block_erase = spi_block_erase_20,
6558 }, {
6559 .eraseblocks = { {32 * 1024, 32} },
6560 .block_erase = spi_block_erase_52,
6561 }, {
6562 .eraseblocks = { {1024 * 1024, 1} },
6563 .block_erase = spi_block_erase_60,
6564 },
6565 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006566 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00006567 .unlock = spi_disable_blockprotect,
6568 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6569 .read = spi_chip_read,
6570 .voltage = {3000, 3600},
6571 },
6572
6573 {
6574 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006575 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006576 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006577 .manufacture_id = SST_ID,
6578 .model_id = SST_SST25VF010_REMS,
6579 .total_size = 128,
6580 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006581 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006582 .tested = TEST_OK_PREW,
6583 .probe = probe_spi_rems,
6584 .probe_timing = TIMING_ZERO,
6585 .block_erasers =
6586 {
6587 {
6588 .eraseblocks = { {4 * 1024, 32} },
6589 .block_erase = spi_block_erase_20,
6590 }, {
6591 .eraseblocks = { {32 * 1024, 4} },
6592 .block_erase = spi_block_erase_52,
6593 }, {
6594 .eraseblocks = { {128 * 1024, 1} },
6595 .block_erase = spi_block_erase_60,
6596 },
6597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006598 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00006599 .unlock = spi_disable_blockprotect,
6600 .write = spi_chip_write_1,
6601 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006602 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006603 },
6604
6605 {
6606 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006607 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006608 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006610 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006611 .total_size = 2048,
6612 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006613 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006614 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006615 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006616 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006617 .block_erasers =
6618 {
6619 {
6620 .eraseblocks = { {4 * 1024, 512} },
6621 .block_erase = spi_block_erase_20,
6622 }, {
6623 .eraseblocks = { {32 * 1024, 64} },
6624 .block_erase = spi_block_erase_52,
6625 }, {
6626 .eraseblocks = { {64 * 1024, 32} },
6627 .block_erase = spi_block_erase_d8,
6628 }, {
6629 .eraseblocks = { {2 * 1024 * 1024, 1} },
6630 .block_erase = spi_block_erase_60,
6631 }, {
6632 .eraseblocks = { {2 * 1024 * 1024, 1} },
6633 .block_erase = spi_block_erase_c7,
6634 },
6635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006636 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006637 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006638 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006640 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006641 },
6642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006643 {
6644 .vendor = "SST",
6645 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006646 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006647 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006648 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006649 .total_size = 4096,
6650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006651 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006652 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006653 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006654 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006655 .block_erasers =
6656 {
6657 {
6658 .eraseblocks = { {4 * 1024, 1024} },
6659 .block_erase = spi_block_erase_20,
6660 }, {
6661 .eraseblocks = { {32 * 1024, 128} },
6662 .block_erase = spi_block_erase_52,
6663 }, {
6664 .eraseblocks = { {64 * 1024, 64} },
6665 .block_erase = spi_block_erase_d8,
6666 }, {
6667 .eraseblocks = { {4 * 1024 * 1024, 1} },
6668 .block_erase = spi_block_erase_60,
6669 }, {
6670 .eraseblocks = { {4 * 1024 * 1024, 1} },
6671 .block_erase = spi_block_erase_c7,
6672 },
6673 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006674 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006675 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006676 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006677 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006678 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006679 },
6680
6681 {
6682 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006683 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006684 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006685 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006686 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006687 .total_size = 8192,
6688 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006689 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006690 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006691 .probe = probe_spi_rdid,
6692 .probe_timing = TIMING_ZERO,
6693 .block_erasers =
6694 {
6695 {
6696 .eraseblocks = { {4 * 1024, 2048} },
6697 .block_erase = spi_block_erase_20,
6698 }, {
6699 .eraseblocks = { {32 * 1024, 256} },
6700 .block_erase = spi_block_erase_52,
6701 }, {
6702 .eraseblocks = { {64 * 1024, 128} },
6703 .block_erase = spi_block_erase_d8,
6704 }, {
6705 .eraseblocks = { {8 * 1024 * 1024, 1} },
6706 .block_erase = spi_block_erase_60,
6707 }, {
6708 .eraseblocks = { {8 * 1024 * 1024, 1} },
6709 .block_erase = spi_block_erase_c7,
6710 },
6711 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006712 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006713 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006714 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006715 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006716 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006717 },
6718
6719 {
6720 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006721 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006722 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006723 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006724 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006725 .total_size = 512,
6726 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006727 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006728 .tested = TEST_OK_PR,
6729 .probe = probe_spi_rems,
6730 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006731 .block_erasers =
6732 {
6733 {
6734 .eraseblocks = { {4 * 1024, 128} },
6735 .block_erase = spi_block_erase_20,
6736 }, {
6737 .eraseblocks = { {32 * 1024, 16} },
6738 .block_erase = spi_block_erase_52,
6739 }, {
6740 .eraseblocks = { {512 * 1024, 1} },
6741 .block_erase = spi_block_erase_60,
6742 },
6743 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006744 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006745 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006746 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006747 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006748 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006749 },
6750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006751 {
6752 .vendor = "SST",
6753 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006754 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006755 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006756 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006757 .total_size = 512,
6758 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006759 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006760 .tested = TEST_UNTESTED,
6761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006762 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006763 .block_erasers =
6764 {
6765 {
6766 .eraseblocks = { {4 * 1024, 128} },
6767 .block_erase = spi_block_erase_20,
6768 }, {
6769 .eraseblocks = { {32 * 1024, 16} },
6770 .block_erase = spi_block_erase_52,
6771 }, {
6772 .eraseblocks = { {64 * 1024, 8} },
6773 .block_erase = spi_block_erase_d8,
6774 }, {
6775 .eraseblocks = { {512 * 1024, 1} },
6776 .block_erase = spi_block_erase_60,
6777 }, {
6778 .eraseblocks = { {512 * 1024, 1} },
6779 .block_erase = spi_block_erase_c7,
6780 },
6781 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006782 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006783 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006784 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006785 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006786 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006787 },
6788
6789 {
6790 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006791 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006792 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006793 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006794 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006795 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006796 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006797 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006798 .tested = TEST_OK_PR,
6799 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006800 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006801 .block_erasers =
6802 {
6803 {
6804 .eraseblocks = { {4 * 1024, 128} },
6805 .block_erase = spi_block_erase_20,
6806 }, {
6807 .eraseblocks = { {32 * 1024, 16} },
6808 .block_erase = spi_block_erase_52,
6809 }, {
6810 .eraseblocks = { {64 * 1024, 8} },
6811 .block_erase = spi_block_erase_d8,
6812 }, {
6813 .eraseblocks = { {512 * 1024, 1} },
6814 .block_erase = spi_block_erase_60,
6815 }, {
6816 .eraseblocks = { {512 * 1024, 1} },
6817 .block_erase = spi_block_erase_c7,
6818 },
6819 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006820 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006821 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006822 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006823 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006824 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006825 },
6826
6827 {
6828 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006830 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006831 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006832 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006833 .total_size = 1024,
6834 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006835 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006836 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006837 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006838 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006839 .block_erasers =
6840 {
6841 {
6842 .eraseblocks = { {4 * 1024, 256} },
6843 .block_erase = spi_block_erase_20,
6844 }, {
6845 .eraseblocks = { {32 * 1024, 32} },
6846 .block_erase = spi_block_erase_52,
6847 }, {
6848 .eraseblocks = { {64 * 1024, 16} },
6849 .block_erase = spi_block_erase_d8,
6850 }, {
6851 .eraseblocks = { {1024 * 1024, 1} },
6852 .block_erase = spi_block_erase_60,
6853 }, {
6854 .eraseblocks = { {1024 * 1024, 1} },
6855 .block_erase = spi_block_erase_c7,
6856 },
6857 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006858 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006859 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006860 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006862 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006863 },
6864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006865 {
6866 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00006867 .name = "SST25WF512",
6868 .bustype = BUS_SPI,
6869 .manufacture_id = SST_ID,
6870 .model_id = SST_SST25WF512,
6871 .total_size = 64,
6872 .page_size = 256,
6873 .feature_bits = FEATURE_WRSR_EITHER,
6874 .tested = TEST_UNTESTED,
6875 .probe = probe_spi_rdid,
6876 .probe_timing = TIMING_ZERO,
6877 .block_erasers =
6878 {
6879 {
6880 .eraseblocks = { {4 * 1024, 16} },
6881 .block_erase = spi_block_erase_20,
6882 }, {
6883 .eraseblocks = { {32 * 1024, 2} },
6884 .block_erase = spi_block_erase_52,
6885 }, {
6886 .eraseblocks = { {1024 * 64, 1} },
6887 .block_erase = spi_block_erase_60,
6888 }, {
6889 .eraseblocks = { {1024 * 64, 1} },
6890 .block_erase = spi_block_erase_c7,
6891 },
6892 },
6893 .unlock = spi_disable_blockprotect,
6894 .write = spi_aai_write,
6895 .read = spi_chip_read, /* Fast read (0x0B) supported */
6896 .voltage = {1650, 1950},
6897 },
6898
6899 {
6900 .vendor = "SST",
6901 .name = "SST25WF010",
6902 .bustype = BUS_SPI,
6903 .manufacture_id = SST_ID,
6904 .model_id = SST_SST25WF010,
6905 .total_size = 128,
6906 .page_size = 256,
6907 .feature_bits = FEATURE_WRSR_EITHER,
6908 .tested = TEST_UNTESTED,
6909 .probe = probe_spi_rdid,
6910 .probe_timing = TIMING_ZERO,
6911 .block_erasers =
6912 {
6913 {
6914 .eraseblocks = { {4 * 1024, 32} },
6915 .block_erase = spi_block_erase_20,
6916 }, {
6917 .eraseblocks = { {32 * 1024, 4} },
6918 .block_erase = spi_block_erase_52,
6919 }, {
6920 .eraseblocks = { {1024 * 128, 1} },
6921 .block_erase = spi_block_erase_60,
6922 }, {
6923 .eraseblocks = { {1024 * 128, 1} },
6924 .block_erase = spi_block_erase_c7,
6925 },
6926 },
6927 .unlock = spi_disable_blockprotect,
6928 .write = spi_aai_write,
6929 .read = spi_chip_read, /* Fast read (0x0B) supported */
6930 .voltage = {1650, 1950},
6931 },
6932
6933 {
6934 .vendor = "SST",
6935 .name = "SST25WF020",
6936 .bustype = BUS_SPI,
6937 .manufacture_id = SST_ID,
6938 .model_id = SST_SST25WF020,
6939 .total_size = 256,
6940 .page_size = 256,
6941 .feature_bits = FEATURE_WRSR_EITHER,
6942 .tested = TEST_UNTESTED,
6943 .probe = probe_spi_rdid,
6944 .probe_timing = TIMING_ZERO,
6945 .block_erasers =
6946 {
6947 {
6948 .eraseblocks = { {4 * 1024, 64} },
6949 .block_erase = spi_block_erase_20,
6950 }, {
6951 .eraseblocks = { {32 * 1024, 8} },
6952 .block_erase = spi_block_erase_52,
6953 }, {
6954 .eraseblocks = { {64 * 1024, 4} },
6955 .block_erase = spi_block_erase_d8,
6956 }, {
6957 .eraseblocks = { {1024 * 256, 1} },
6958 .block_erase = spi_block_erase_60,
6959 }, {
6960 .eraseblocks = { {1024 * 256, 1} },
6961 .block_erase = spi_block_erase_c7,
6962 },
6963 },
6964 .unlock = spi_disable_blockprotect,
6965 .write = spi_aai_write,
6966 .read = spi_chip_read, /* Fast read (0x0B) supported */
6967 .voltage = {1650, 1950},
6968 },
6969
6970 {
6971 .vendor = "SST",
6972 .name = "SST25WF040",
6973 .bustype = BUS_SPI,
6974 .manufacture_id = SST_ID,
6975 .model_id = SST_SST25WF040,
6976 .total_size = 512,
6977 .page_size = 256,
6978 .feature_bits = FEATURE_WRSR_EITHER,
6979 .tested = TEST_UNTESTED,
6980 .probe = probe_spi_rdid,
6981 .probe_timing = TIMING_ZERO,
6982 .block_erasers =
6983 {
6984 {
6985 .eraseblocks = { {4 * 1024, 128} },
6986 .block_erase = spi_block_erase_20,
6987 }, {
6988 .eraseblocks = { {32 * 1024, 16} },
6989 .block_erase = spi_block_erase_52,
6990 }, {
6991 .eraseblocks = { {64 * 1024, 8} },
6992 .block_erase = spi_block_erase_d8,
6993 }, {
6994 .eraseblocks = { {1024 * 512, 1} },
6995 .block_erase = spi_block_erase_60,
6996 }, {
6997 .eraseblocks = { {1024 * 512, 1} },
6998 .block_erase = spi_block_erase_c7,
6999 },
7000 },
7001 .unlock = spi_disable_blockprotect,
7002 .write = spi_aai_write,
7003 .read = spi_chip_read, /* Fast read (0x0B) supported */
7004 .voltage = {1650, 1950},
7005 },
7006
7007 {
7008 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007009 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007010 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007012 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007013 .total_size = 512,
7014 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007015 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007016 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007017 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007018 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007019 .block_erasers =
7020 {
7021 {
7022 .eraseblocks = { {128, 4096} },
7023 .block_erase = erase_sector_28sf040,
7024 }, {
7025 .eraseblocks = { {512 * 1024, 1} },
7026 .block_erase = erase_chip_28sf040,
7027 }
7028 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007029 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007030 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007031 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007032 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007033 },
7034
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007035 {
7036 .vendor = "SST",
7037 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007038 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007040 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007041 .total_size = 128,
7042 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007043 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007044 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007045 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007046 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007047 .block_erasers =
7048 {
7049 {
7050 .eraseblocks = { {128 * 1024, 1} },
7051 .block_erase = erase_chip_block_jedec,
7052 }
7053 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007054 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007055 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007056 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007057 },
7058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007059 {
7060 .vendor = "SST",
7061 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007063 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007064 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007065 .total_size = 128,
7066 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007067 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007068 .tested = TEST_UNTESTED,
7069 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007070 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007071 .block_erasers =
7072 {
7073 {
7074 .eraseblocks = { {128 * 1024, 1} },
7075 .block_erase = erase_chip_block_jedec,
7076 }
7077 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007080 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007081 },
7082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007083 {
7084 .vendor = "SST",
7085 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007086 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007087 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007088 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007089 .total_size = 256,
7090 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007091 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007092 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007093 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007094 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007095 .block_erasers =
7096 {
7097 {
7098 .eraseblocks = { {256 * 1024, 1} },
7099 .block_erase = erase_chip_block_jedec,
7100 }
7101 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007102 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007103 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007104 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007105 },
7106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007107 {
7108 .vendor = "SST",
7109 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007110 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007111 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007112 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007113 .total_size = 256,
7114 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007115 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007116 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007117 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007118 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007119 .block_erasers =
7120 {
7121 {
7122 .eraseblocks = { {256 * 1024, 1} },
7123 .block_erase = erase_chip_block_jedec,
7124 }
7125 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007126 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007127 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007128 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007129 },
7130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007131 {
7132 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00007133 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007134 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007135 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007136 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007137 .total_size = 64,
7138 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007139 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00007140 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007141 .probe = probe_jedec,
7142 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00007143 .block_erasers =
7144 {
7145 {
7146 .eraseblocks = { {4 * 1024, 16} },
7147 .block_erase = erase_sector_jedec,
7148 }, {
7149 .eraseblocks = { {64 * 1024, 1} },
7150 .block_erase = erase_chip_block_jedec,
7151 }
7152 },
Sean Nelson35727f72010-01-28 23:55:12 +00007153 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007155 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00007156 },
7157
7158 {
7159 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007160 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007161 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007162 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007163 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007164 .total_size = 128,
7165 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007166 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007167 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007168 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007169 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007170 .block_erasers =
7171 {
7172 {
7173 .eraseblocks = { {4 * 1024, 32} },
7174 .block_erase = erase_sector_jedec,
7175 }, {
7176 .eraseblocks = { {128 * 1024, 1} },
7177 .block_erase = erase_chip_block_jedec,
7178 }
7179 },
Sean Nelson35727f72010-01-28 23:55:12 +00007180 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007181 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007182 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007183 },
7184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007185 {
7186 .vendor = "SST",
7187 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007188 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007189 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007190 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007191 .total_size = 256,
7192 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007193 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007195 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007196 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007197 .block_erasers =
7198 {
7199 {
7200 .eraseblocks = { {4 * 1024, 64} },
7201 .block_erase = erase_sector_jedec,
7202 }, {
7203 .eraseblocks = { {256 * 1024, 1} },
7204 .block_erase = erase_chip_block_jedec,
7205 }
7206 },
Sean Nelson35727f72010-01-28 23:55:12 +00007207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007210 },
7211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007212 {
7213 .vendor = "SST",
7214 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007216 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007217 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007218 .total_size = 512,
7219 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007220 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007221 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007222 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007223 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007224 .block_erasers =
7225 {
7226 {
7227 .eraseblocks = { {4 * 1024, 128} },
7228 .block_erase = erase_sector_jedec,
7229 }, {
7230 .eraseblocks = { {512 * 1024, 1} },
7231 .block_erase = erase_chip_block_jedec,
7232 }
7233 },
Sean Nelson35727f72010-01-28 23:55:12 +00007234 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007235 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007236 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007237 },
7238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007239 {
7240 .vendor = "SST",
7241 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007242 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007243 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007244 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007245 .total_size = 64,
7246 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007247 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007248 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007249 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007250 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007251 .block_erasers =
7252 {
7253 {
7254 .eraseblocks = { {4 * 1024, 16} },
7255 .block_erase = erase_sector_jedec,
7256 }, {
7257 .eraseblocks = { {64 * 1024, 1} },
7258 .block_erase = erase_chip_block_jedec,
7259 }
7260 },
Sean Nelson35727f72010-01-28 23:55:12 +00007261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007263 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007264 },
7265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007266 {
7267 .vendor = "SST",
7268 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007269 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007270 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007271 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007272 .total_size = 128,
7273 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007274 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007275 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007276 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007277 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007278 .block_erasers =
7279 {
7280 {
7281 .eraseblocks = { {4 * 1024, 32} },
7282 .block_erase = erase_sector_jedec,
7283 }, {
7284 .eraseblocks = { {128 * 1024, 1} },
7285 .block_erase = erase_chip_block_jedec,
7286 }
7287 },
Sean Nelson35727f72010-01-28 23:55:12 +00007288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007290 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007291 },
7292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 {
7294 .vendor = "SST",
7295 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007297 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007298 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007299 .total_size = 256,
7300 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007301 .feature_bits = FEATURE_EITHER_RESET,
7302 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007303 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007304 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007305 .block_erasers =
7306 {
7307 {
7308 .eraseblocks = { {4 * 1024, 64} },
7309 .block_erase = erase_sector_jedec,
7310 }, {
7311 .eraseblocks = { {256 * 1024, 1} },
7312 .block_erase = erase_chip_block_jedec,
7313 }
7314 },
Sean Nelson35727f72010-01-28 23:55:12 +00007315 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007317 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007318 },
7319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007320 {
7321 .vendor = "SST",
7322 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007323 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007324 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007325 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007326 .total_size = 512,
7327 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007328 .feature_bits = FEATURE_EITHER_RESET,
7329 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007330 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007331 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007332 .block_erasers =
7333 {
7334 {
7335 .eraseblocks = { {4 * 1024, 128} },
7336 .block_erase = erase_sector_jedec,
7337 }, {
7338 .eraseblocks = { {512 * 1024, 1} },
7339 .block_erase = erase_chip_block_jedec,
7340 }
7341 },
Sean Nelson35727f72010-01-28 23:55:12 +00007342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007344 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00007345 },
FENG yu ningff692fb2008-12-08 18:15:10 +00007346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007347 {
7348 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00007349 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007350 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007351 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007352 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00007353 .total_size = 1024,
7354 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007355 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00007356 .tested = TEST_UNTESTED,
7357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007358 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007359 .block_erasers =
7360 {
7361 {
7362 .eraseblocks = { {4 * 1024, 256} },
7363 .block_erase = erase_sector_jedec,
7364 }, {
7365 .eraseblocks = { {64 * 1024, 16} },
7366 .block_erase = erase_block_jedec,
7367 }, {
7368 .eraseblocks = { {1024 * 1024, 1} },
7369 .block_erase = erase_chip_block_jedec,
7370 }
7371 },
Sean Nelson35727f72010-01-28 23:55:12 +00007372 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007374 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00007375 },
7376
7377 {
7378 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007379 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007380 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007381 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007382 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007383 .total_size = 256,
7384 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007385 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007386 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007387 .probe = probe_jedec,
7388 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007389 .block_erasers =
7390 {
7391 {
7392 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007393 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007394 }, {
7395 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007396 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007397 }, {
7398 .eraseblocks = { {256 * 1024, 1} },
7399 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7400 }
7401 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007402 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007403 .unlock = unlock_sst_fwhub,
7404 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007405 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007406 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007407 },
7408
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007409 {
7410 .vendor = "SST",
7411 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007412 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007413 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007414 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007415 .total_size = 384,
7416 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007417 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00007418 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007419 .probe = probe_jedec,
7420 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007421 .block_erasers =
7422 {
7423 {
7424 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007425 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007426 }, {
7427 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007428 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007429 }, {
7430 .eraseblocks = { {384 * 1024, 1} },
7431 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7432 }
7433 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007434 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007435 .unlock = unlock_sst_fwhub,
7436 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007438 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007439 },
7440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007441 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007442 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
7443 * and is only honored for 64k block erase, but not 4k sector erase.
7444 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007445 .vendor = "SST",
7446 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007447 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007448 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007449 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007450 .total_size = 512,
7451 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007452 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007453 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007454 .probe = probe_jedec,
7455 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007460 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007461 }, {
7462 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007463 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007464 }, {
7465 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007466 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007467 },
7468 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007469 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007470 .unlock = unlock_sst_fwhub,
7471 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007473 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007474 },
7475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007476 {
7477 .vendor = "SST",
7478 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007479 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007480 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007481 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007482 .total_size = 512,
7483 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007484 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007485 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007486 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007487 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007488 .block_erasers =
7489 {
7490 {
7491 .eraseblocks = { {4 * 1024, 128} },
7492 .block_erase = erase_sector_49lfxxxc,
7493 }, {
7494 .eraseblocks = {
7495 {64 * 1024, 7},
7496 {32 * 1024, 1},
7497 {8 * 1024, 2},
7498 {16 * 1024, 1},
7499 },
Sean Nelson69e58112010-03-23 17:10:28 +00007500 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007501 }
7502 },
Sean Nelson69e58112010-03-23 17:10:28 +00007503 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007504 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007505 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007506 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007507 },
7508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007509 {
7510 .vendor = "SST",
7511 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007512 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007513 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007514 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007515 .total_size = 1024,
7516 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007517 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007518 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007519 .probe = probe_jedec,
7520 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007521 .block_erasers =
7522 {
7523 {
7524 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007525 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007526 }, {
7527 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007528 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007529 }, {
7530 .eraseblocks = { {1024 * 1024, 1} },
7531 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7532 }
7533 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007534 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007535 .unlock = unlock_sst_fwhub,
7536 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007537 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007538 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007539 },
7540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007541 {
7542 .vendor = "SST",
7543 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007544 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007545 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007546 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007547 .total_size = 1024,
7548 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007549 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007550 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007551 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007552 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007553 .block_erasers =
7554 {
7555 {
7556 .eraseblocks = { {4 * 1024, 256} },
7557 .block_erase = erase_sector_49lfxxxc,
7558 }, {
7559 .eraseblocks = {
7560 {64 * 1024, 15},
7561 {32 * 1024, 1},
7562 {8 * 1024, 2},
7563 {16 * 1024, 1},
7564 },
Sean Nelson69e58112010-03-23 17:10:28 +00007565 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007566 }
7567 },
Sean Nelson69e58112010-03-23 17:10:28 +00007568 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007569 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007571 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007572 },
7573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007574 {
7575 .vendor = "SST",
7576 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007577 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007578 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007579 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007580 .total_size = 2048,
7581 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007582 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007583 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007584 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007585 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007586 .block_erasers =
7587 {
7588 {
7589 .eraseblocks = { {4 * 1024, 512} },
7590 .block_erase = erase_sector_49lfxxxc,
7591 }, {
7592 .eraseblocks = {
7593 {64 * 1024, 31},
7594 {32 * 1024, 1},
7595 {8 * 1024, 2},
7596 {16 * 1024, 1},
7597 },
Sean Nelson69e58112010-03-23 17:10:28 +00007598 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007599 }
7600 },
Sean Nelson69e58112010-03-23 17:10:28 +00007601 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007602 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007604 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007605 },
7606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007607 {
7608 .vendor = "SST",
7609 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007610 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007611 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007612 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007613 .total_size = 256,
7614 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007615 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007616 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007617 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007618 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007619 .block_erasers =
7620 {
7621 {
7622 .eraseblocks = { {4 * 1024, 64} },
7623 .block_erase = erase_sector_jedec,
7624 }, {
7625 .eraseblocks = { {16 * 1024, 16} },
7626 .block_erase = erase_block_jedec,
7627 }, {
7628 .eraseblocks = { {256 * 1024, 1} },
7629 .block_erase = NULL,
7630 }
7631 },
Sean Nelson35727f72010-01-28 23:55:12 +00007632 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007633 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007634 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007635 },
7636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007637 {
7638 .vendor = "SST",
7639 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007640 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007641 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007642 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007643 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007644 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007645 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007646 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007647 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007648 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007649 .block_erasers =
7650 {
7651 {
7652 .eraseblocks = { {4 * 1024, 64} },
7653 .block_erase = erase_sector_jedec,
7654 }, {
7655 .eraseblocks = { {16 * 1024, 16} },
7656 .block_erase = erase_block_jedec,
7657 }, {
7658 .eraseblocks = { {256 * 1024, 1} },
7659 .block_erase = NULL,
7660 }
7661 },
Sean Nelson35727f72010-01-28 23:55:12 +00007662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007664 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007665 },
7666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007667 {
7668 .vendor = "SST",
7669 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007670 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007671 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007672 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007673 .total_size = 512,
7674 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007675 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007676 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007677 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007678 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007679 .block_erasers =
7680 {
7681 {
7682 .eraseblocks = { {4 * 1024, 128} },
7683 .block_erase = erase_sector_jedec,
7684 }, {
7685 .eraseblocks = { {64 * 1024, 8} },
7686 .block_erase = erase_block_jedec,
7687 }, {
7688 .eraseblocks = { {512 * 1024, 1} },
7689 .block_erase = NULL,
7690 }
7691 },
Sean Nelson35727f72010-01-28 23:55:12 +00007692 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007694 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007695 },
7696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007697 {
7698 .vendor = "SST",
7699 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007700 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007701 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007702 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007703 .total_size = 512,
7704 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007705 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007706 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007707 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007708 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007709 .block_erasers =
7710 {
7711 {
7712 .eraseblocks = { {4 * 1024, 128} },
7713 .block_erase = erase_sector_jedec,
7714 }, {
7715 .eraseblocks = { {64 * 1024, 8} },
7716 .block_erase = erase_block_jedec,
7717 }, {
7718 .eraseblocks = { {512 * 1024, 1} },
7719 .block_erase = NULL,
7720 }
7721 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007722 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007723 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007725 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007726 },
7727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007728 {
7729 .vendor = "SST",
7730 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007731 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007732 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007733 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007734 .total_size = 1024,
7735 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007736 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007737 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007738 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007739 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007740 .block_erasers =
7741 {
7742 {
7743 .eraseblocks = { {4 * 1024, 256} },
7744 .block_erase = erase_sector_jedec,
7745 }, {
7746 .eraseblocks = { {64 * 1024, 16} },
7747 .block_erase = erase_block_jedec,
7748 }, {
7749 .eraseblocks = { {1024 * 1024, 1} },
7750 .block_erase = NULL,
7751 }
7752 },
Sean Nelson35727f72010-01-28 23:55:12 +00007753 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007755 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007756 },
7757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007758 {
7759 .vendor = "SST",
7760 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007761 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007762 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007763 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007764 .total_size = 2048,
7765 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007766 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007767 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007768 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007769 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007770 .block_erasers =
7771 {
7772 {
7773 .eraseblocks = { {4 * 1024, 512} },
7774 .block_erase = erase_sector_49lfxxxc,
7775 }, {
7776 .eraseblocks = {
7777 {64 * 1024, 31},
7778 {32 * 1024, 1},
7779 {8 * 1024, 2},
7780 {16 * 1024, 1},
7781 },
Sean Nelson69e58112010-03-23 17:10:28 +00007782 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007783 }
7784 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007785 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007786 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007787 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007788 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007789 },
7790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007791 {
7792 .vendor = "ST",
7793 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007794 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007795 .manufacture_id = ST_ID,
7796 .model_id = ST_M25P05A,
7797 .total_size = 64,
7798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007799 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007800 .tested = TEST_UNTESTED,
7801 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007802 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007803 .block_erasers =
7804 {
7805 {
7806 .eraseblocks = { {32 * 1024, 2} },
7807 .block_erase = spi_block_erase_d8,
7808 }, {
7809 .eraseblocks = { {64 * 1024, 1} },
7810 .block_erase = spi_block_erase_c7,
7811 }
7812 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007813 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007814 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007815 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007816 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007817 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007818 },
7819
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007820 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7821 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007822 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007823 * only is successful if RDID does not work.
7824 */
7825 {
7826 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007827 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007828 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007829 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007830 .model_id = ST_M25P05_RES,
7831 .total_size = 64,
7832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007833 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007834 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007835 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007836 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007837 .block_erasers =
7838 {
7839 {
7840 .eraseblocks = { {32 * 1024, 2} },
7841 .block_erase = spi_block_erase_d8,
7842 }, {
7843 .eraseblocks = { {64 * 1024, 1} },
7844 .block_erase = spi_block_erase_c7,
7845 }
7846 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007847 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007848 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007849 .write = spi_chip_write_1, /* 128 */
7850 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007851 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007852 },
7853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007854 {
7855 .vendor = "ST",
7856 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007857 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007858 .manufacture_id = ST_ID,
7859 .model_id = ST_M25P10A,
7860 .total_size = 128,
7861 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007862 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007863 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007864 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007865 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007866 .block_erasers =
7867 {
7868 {
7869 .eraseblocks = { {32 * 1024, 4} },
7870 .block_erase = spi_block_erase_d8,
7871 }, {
7872 .eraseblocks = { {128 * 1024, 1} },
7873 .block_erase = spi_block_erase_c7,
7874 }
7875 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007876 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007877 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007878 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007879 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007880 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007881 },
7882
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007883 /* The ST M25P10 has the same problem as the M25P05. */
7884 {
7885 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007886 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007887 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007888 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007889 .model_id = ST_M25P10_RES,
7890 .total_size = 128,
7891 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007892 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007893 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007894 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007895 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007896 .block_erasers =
7897 {
7898 {
7899 .eraseblocks = { {32 * 1024, 4} },
7900 .block_erase = spi_block_erase_d8,
7901 }, {
7902 .eraseblocks = { {128 * 1024, 1} },
7903 .block_erase = spi_block_erase_c7,
7904 }
7905 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007906 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007907 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007908 .write = spi_chip_write_1, /* 128 */
7909 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007910 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007911 },
7912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007913 {
7914 .vendor = "ST",
7915 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007916 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007917 .manufacture_id = ST_ID,
7918 .model_id = ST_M25P20,
7919 .total_size = 256,
7920 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007921 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007922 .tested = TEST_UNTESTED,
7923 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007924 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007925 .block_erasers =
7926 {
7927 {
7928 .eraseblocks = { {64 * 1024, 4} },
7929 .block_erase = spi_block_erase_d8,
7930 }, {
7931 .eraseblocks = { {256 * 1024, 1} },
7932 .block_erase = spi_block_erase_c7,
7933 }
7934 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007935 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007936 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007937 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007938 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007939 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007940 },
7941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007942 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007943 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007944 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007945 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007946 .manufacture_id = ST_ID,
7947 .model_id = ST_M25P40,
7948 .total_size = 512,
7949 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007950 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007951 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007952 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007953 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007954 .block_erasers =
7955 {
7956 {
7957 .eraseblocks = { {64 * 1024, 8} },
7958 .block_erase = spi_block_erase_d8,
7959 }, {
7960 .eraseblocks = { {512 * 1024, 1} },
7961 .block_erase = spi_block_erase_c7,
7962 }
7963 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007964 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007965 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007966 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007967 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007968 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007969 },
7970
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007971 {
7972 .vendor = "ST",
7973 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007974 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007975 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007976 .model_id = ST_M25P40_RES,
7977 .total_size = 512,
7978 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007979 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007980 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007981 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007982 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007983 .block_erasers =
7984 {
7985 {
7986 .eraseblocks = { {64 * 1024, 8} },
7987 .block_erase = spi_block_erase_d8,
7988 }, {
7989 .eraseblocks = { {512 * 1024, 1} },
7990 .block_erase = spi_block_erase_c7,
7991 }
7992 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007993 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007994 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007995 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007996 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007997 },
7998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007999 {
8000 .vendor = "ST",
8001 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008002 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008003 .manufacture_id = ST_ID,
8004 .model_id = ST_M25P80,
8005 .total_size = 1024,
8006 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008007 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008008 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008009 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008010 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008011 .block_erasers =
8012 {
8013 {
8014 .eraseblocks = { {64 * 1024, 16} },
8015 .block_erase = spi_block_erase_d8,
8016 }, {
8017 .eraseblocks = { {1024 * 1024, 1} },
8018 .block_erase = spi_block_erase_c7,
8019 }
8020 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008021 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008023 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008024 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008025 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008026 },
8027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008028 {
8029 .vendor = "ST",
8030 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008031 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008032 .manufacture_id = ST_ID,
8033 .model_id = ST_M25P16,
8034 .total_size = 2048,
8035 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008036 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008037 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008038 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008039 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008040 .block_erasers =
8041 {
8042 {
8043 .eraseblocks = { {64 * 1024, 32} },
8044 .block_erase = spi_block_erase_d8,
8045 }, {
8046 .eraseblocks = { {2 * 1024 * 1024, 1} },
8047 .block_erase = spi_block_erase_c7,
8048 }
8049 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008050 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008051 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008052 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008053 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008054 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008055 },
8056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008057 {
8058 .vendor = "ST",
8059 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008061 .manufacture_id = ST_ID,
8062 .model_id = ST_M25P32,
8063 .total_size = 4096,
8064 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008065 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008066 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008067 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008068 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008069 .block_erasers =
8070 {
8071 {
8072 .eraseblocks = { {64 * 1024, 64} },
8073 .block_erase = spi_block_erase_d8,
8074 }, {
8075 .eraseblocks = { {4 * 1024 * 1024, 1} },
8076 .block_erase = spi_block_erase_c7,
8077 }
8078 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008079 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008080 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008081 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008082 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008083 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008084 },
8085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008086 {
8087 .vendor = "ST",
8088 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008089 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008090 .manufacture_id = ST_ID,
8091 .model_id = ST_M25P64,
8092 .total_size = 8192,
8093 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008094 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008095 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008096 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008097 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008098 .block_erasers =
8099 {
8100 {
8101 .eraseblocks = { {64 * 1024, 128} },
8102 .block_erase = spi_block_erase_d8,
8103 }, {
8104 .eraseblocks = { {8 * 1024 * 1024, 1} },
8105 .block_erase = spi_block_erase_c7,
8106 }
8107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008108 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008110 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008112 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008113 },
8114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008115 {
8116 .vendor = "ST",
8117 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008118 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008119 .manufacture_id = ST_ID,
8120 .model_id = ST_M25P128,
8121 .total_size = 16384,
8122 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008123 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +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,
Sean Nelson56358aa2010-01-19 16:08:51 +00008127 .block_erasers =
8128 {
8129 {
8130 .eraseblocks = { {256 * 1024, 64} },
8131 .block_erase = spi_block_erase_d8,
8132 }, {
8133 .eraseblocks = { {16 * 1024 * 1024, 1} },
8134 .block_erase = spi_block_erase_c7,
8135 }
8136 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008137 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008139 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008141 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008142 },
8143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008144 {
8145 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00008146 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008147 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008148 .manufacture_id = ST_ID,
8149 .model_id = ST_M25PX16,
8150 .total_size = 2048,
8151 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008152 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00008153 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008154 .tested = TEST_OK_PREW,
8155 .probe = probe_spi_rdid,
8156 .probe_timing = TIMING_ZERO,
8157 .block_erasers =
8158 {
8159 {
8160 .eraseblocks = { { 4 * 1024, 512 } },
8161 .block_erase = spi_block_erase_20,
8162 }, {
8163 .eraseblocks = { {64 * 1024, 32} },
8164 .block_erase = spi_block_erase_d8,
8165 }, {
8166 .eraseblocks = { {2 * 1024 * 1024, 1} },
8167 .block_erase = spi_block_erase_c7,
8168 }
8169 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008170 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00008171 .unlock = spi_disable_blockprotect,
8172 .write = spi_chip_write_256,
8173 .read = spi_chip_read,
8174 },
8175
8176 {
8177 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00008178 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008179 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008180 .manufacture_id = ST_ID,
8181 .model_id = ST_M25PX32,
8182 .total_size = 4096,
8183 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008184 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008185 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008186 .probe = probe_spi_rdid,
8187 .probe_timing = TIMING_ZERO,
8188 .block_erasers =
8189 {
8190 {
8191 .eraseblocks = { { 4 * 1024, 1024 } },
8192 .block_erase = spi_block_erase_20,
8193 }, {
8194 .eraseblocks = { {64 * 1024, 64} },
8195 .block_erase = spi_block_erase_d8,
8196 }, {
8197 .eraseblocks = { {4 * 1024 * 1024, 1} },
8198 .block_erase = spi_block_erase_c7,
8199 }
8200 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008201 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00008202 .unlock = spi_disable_blockprotect,
8203 .write = spi_chip_write_256,
8204 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008205 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00008206 },
8207
8208 {
8209 .vendor = "ST",
8210 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008211 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008212 .manufacture_id = ST_ID,
8213 .model_id = ST_M25PX64,
8214 .total_size = 8192,
8215 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008216 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008217 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008218 .probe = probe_spi_rdid,
8219 .probe_timing = TIMING_ZERO,
8220 .block_erasers =
8221 {
8222 {
8223 .eraseblocks = { { 4 * 1024, 2048 } },
8224 .block_erase = spi_block_erase_20,
8225 }, {
8226 .eraseblocks = { {64 * 1024, 128} },
8227 .block_erase = spi_block_erase_d8,
8228 }, {
8229 .eraseblocks = { {8 * 1024 * 1024, 1} },
8230 .block_erase = spi_block_erase_c7,
8231 }
8232 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00008234 .unlock = spi_disable_blockprotect,
8235 .write = spi_chip_write_256,
8236 .read = spi_chip_read,
8237 },
8238
8239 {
8240 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008241 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008242 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008243 .manufacture_id = ST_ID,
8244 .model_id = ST_M29F002B,
8245 .total_size = 256,
8246 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008247 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008248 .tested = TEST_UNTESTED,
8249 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008250 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008251 .block_erasers =
8252 {
8253 {
8254 .eraseblocks = {
8255 {16 * 1024, 1},
8256 {8 * 1024, 2},
8257 {32 * 1024, 1},
8258 {64 * 1024, 3},
8259 },
8260 .block_erase = erase_sector_jedec,
8261 }, {
8262 .eraseblocks = { {256 * 1024, 1} },
8263 .block_erase = erase_chip_block_jedec,
8264 }
8265 },
Sean Nelson35727f72010-01-28 23:55:12 +00008266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008267 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008268 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008269 },
8270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008271 {
8272 .vendor = "ST",
8273 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008274 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008275 .manufacture_id = ST_ID,
8276 .model_id = ST_M29F002T,
8277 .total_size = 256,
8278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008279 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
8280 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008281 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008282 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008283 .block_erasers =
8284 {
8285 {
8286 .eraseblocks = {
8287 {64 * 1024, 3},
8288 {32 * 1024, 1},
8289 {8 * 1024, 2},
8290 {16 * 1024, 1},
8291 },
8292 .block_erase = erase_sector_jedec,
8293 }, {
8294 .eraseblocks = { {256 * 1024, 1} },
8295 .block_erase = erase_chip_block_jedec,
8296 }
8297 },
Sean Nelson35727f72010-01-28 23:55:12 +00008298 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008299 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008300 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008301 },
8302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008303 {
8304 .vendor = "ST",
8305 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008306 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008307 .manufacture_id = ST_ID,
8308 .model_id = ST_M29F040B,
8309 .total_size = 512,
8310 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008311 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8312 .tested = TEST_UNTESTED,
8313 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008314 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00008315 .block_erasers =
8316 {
8317 {
8318 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00008319 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008320 }, {
8321 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008322 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008323 }
8324 },
Sean Nelson35727f72010-01-28 23:55:12 +00008325 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008326 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008327 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008328 },
8329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 {
Sean Nelson35727f72010-01-28 23:55:12 +00008331 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008332 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008333 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008334 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008335 .manufacture_id = ST_ID,
8336 .model_id = ST_M29F400BB,
8337 .total_size = 512,
8338 .page_size = 64 * 1024,
8339 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008340 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008341 .probe = probe_m29f400bt,
8342 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
8343 .block_erasers =
8344 {
8345 {
8346 .eraseblocks = {
8347 {16 * 1024, 1},
8348 {8 * 1024, 2},
8349 {32 * 1024, 1},
8350 {64 * 1024, 7},
8351 },
8352 .block_erase = block_erase_m29f400bt,
8353 }, {
8354 .eraseblocks = { {512 * 1024, 1} },
8355 .block_erase = block_erase_chip_m29f400bt,
8356 }
8357 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008358 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008359 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008360 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008361 },
8362 {
8363 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
8364 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008365 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008366 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008367 .manufacture_id = ST_ID,
8368 .model_id = ST_M29F400BT,
8369 .total_size = 512,
8370 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008371 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008372 .tested = TEST_UNTESTED,
8373 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008374 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008375 .block_erasers =
8376 {
8377 {
8378 .eraseblocks = {
8379 {64 * 1024, 7},
8380 {32 * 1024, 1},
8381 {8 * 1024, 2},
8382 {16 * 1024, 1},
8383 },
8384 .block_erase = block_erase_m29f400bt,
8385 }, {
8386 .eraseblocks = { {512 * 1024, 1} },
8387 .block_erase = block_erase_chip_m29f400bt,
8388 }
8389 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008390 .write = write_m29f400bt,
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 = "ST",
8397 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008399 .manufacture_id = ST_ID,
8400 .model_id = ST_M29W010B,
8401 .total_size = 128,
8402 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008403 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008404 .tested = TEST_UNTESTED,
8405 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008406 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008407 .block_erasers =
8408 {
8409 {
8410 .eraseblocks = { {16 * 1024, 8}, },
8411 .block_erase = erase_sector_jedec,
8412 }, {
8413 .eraseblocks = { {128 * 1024, 1} },
8414 .block_erase = erase_chip_block_jedec,
8415 }
8416 },
Sean Nelson35727f72010-01-28 23:55:12 +00008417 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008418 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008419 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008420 },
8421
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008422 {
8423 .vendor = "ST",
8424 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008425 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008426 .manufacture_id = ST_ID,
8427 .model_id = ST_M29W040B,
8428 .total_size = 512,
8429 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008431 .tested = TEST_UNTESTED,
8432 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008433 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008434 .block_erasers =
8435 {
8436 {
8437 .eraseblocks = { {64 * 1024, 8}, },
8438 .block_erase = erase_sector_jedec,
8439 }, {
8440 .eraseblocks = { {512 * 1024, 1} },
8441 .block_erase = erase_chip_block_jedec,
8442 }
8443 },
Sean Nelson35727f72010-01-28 23:55:12 +00008444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008446 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008447 },
8448
Stefan Taunereb582572012-09-21 12:52:50 +00008449 {
8450 .vendor = "ST",
8451 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008452 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00008453 .manufacture_id = ST_ID,
8454 .model_id = ST_M29W512B,
8455 .total_size = 64,
8456 .page_size = 64 * 1024,
8457 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008458 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00008459 .probe = probe_jedec,
8460 .probe_timing = TIMING_ZERO,
8461 .block_erasers =
8462 {
8463 {
8464 .eraseblocks = { {64 * 1024, 1} },
8465 .block_erase = erase_chip_block_jedec,
8466 }
8467 },
8468 .write = write_jedec_1,
8469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008470 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00008471 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008473 {
8474 .vendor = "ST",
8475 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008476 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008477 .manufacture_id = ST_ID,
8478 .model_id = ST_M50FLW040A,
8479 .total_size = 512,
8480 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008481 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008482 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008483 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008484 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008485 .block_erasers =
8486 {
8487 {
Sean Nelson329bde72010-01-19 16:39:19 +00008488 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008489 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008490 {64 * 1024, 5}, /* block */
8491 {4 * 1024, 16}, /* sector */
8492 {4 * 1024, 16}, /* sector */
8493 },
8494 .block_erase = NULL,
8495 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008496 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008497 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008498 }
8499 },
Sean Nelson28accc22010-03-19 18:47:06 +00008500 .unlock = unlock_stm50flw0x0x,
8501 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008503 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008504 },
8505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008506 {
8507 .vendor = "ST",
8508 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008509 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008510 .manufacture_id = ST_ID,
8511 .model_id = ST_M50FLW040B,
8512 .total_size = 512,
8513 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008514 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008515 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008516 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008517 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008518 .block_erasers =
8519 {
8520 {
Sean Nelson329bde72010-01-19 16:39:19 +00008521 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008522 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008523 {4 * 1024, 16}, /* sector */
8524 {64 * 1024, 5}, /* block */
8525 {4 * 1024, 16}, /* sector */
8526 },
8527 .block_erase = NULL,
8528 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008529 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008530 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008531 }
8532 },
Sean Nelson28accc22010-03-19 18:47:06 +00008533 .unlock = unlock_stm50flw0x0x,
8534 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008536 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008537 },
8538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 {
8540 .vendor = "ST",
8541 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008542 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008543 .manufacture_id = ST_ID,
8544 .model_id = ST_M50FLW080A,
8545 .total_size = 1024,
8546 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008547 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008548 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008549 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008550 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008551 .block_erasers =
8552 {
8553 {
Sean Nelson329bde72010-01-19 16:39:19 +00008554 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008555 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008556 {64 * 1024, 13}, /* block */
8557 {4 * 1024, 16}, /* sector */
8558 {4 * 1024, 16}, /* sector */
8559 },
8560 .block_erase = NULL,
8561 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008562 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008563 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008564 }
8565 },
Sean Nelson28accc22010-03-19 18:47:06 +00008566 .unlock = unlock_stm50flw0x0x,
8567 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008568 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008569 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008570 },
8571
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008572 {
8573 .vendor = "ST",
8574 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008575 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008576 .manufacture_id = ST_ID,
8577 .model_id = ST_M50FLW080B,
8578 .total_size = 1024,
8579 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008580 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008581 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008582 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008583 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008584 .block_erasers =
8585 {
8586 {
Sean Nelson329bde72010-01-19 16:39:19 +00008587 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008588 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008589 {4 * 1024, 16}, /* sector */
8590 {64 * 1024, 13}, /* block */
8591 {4 * 1024, 16}, /* sector */
8592 },
8593 .block_erase = NULL,
8594 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008595 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008596 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008597 }
8598 },
Sean Nelson28accc22010-03-19 18:47:06 +00008599 .unlock = unlock_stm50flw0x0x,
8600 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008602 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008603 },
8604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008605 {
8606 .vendor = "ST",
8607 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008608 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008609 .manufacture_id = ST_ID,
8610 .model_id = ST_M50FW002,
8611 .total_size = 256,
8612 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008613 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008614 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008615 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008616 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008617 .block_erasers =
8618 {
8619 {
8620 .eraseblocks = {
8621 {64 * 1024, 3},
8622 {32 * 1024, 1},
8623 {8 * 1024, 2},
8624 {16 * 1024, 1},
8625 },
Sean Nelson28accc22010-03-19 18:47:06 +00008626 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008627 }
8628 },
Sean Nelson28accc22010-03-19 18:47:06 +00008629 .unlock = unlock_stm50flw0x0x,
8630 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008632 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008633 },
8634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008635 {
8636 .vendor = "ST",
8637 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008638 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008639 .manufacture_id = ST_ID,
8640 .model_id = ST_M50FW016,
8641 .total_size = 2048,
8642 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008643 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008644 .tested = TEST_UNTESTED,
8645 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008646 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008647 .block_erasers =
8648 {
8649 {
8650 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008651 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008652 }
8653 },
Sean Nelson28accc22010-03-19 18:47:06 +00008654 .unlock = unlock_stm50flw0x0x,
8655 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008657 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008658 },
8659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008660 {
8661 .vendor = "ST",
8662 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008663 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008664 .manufacture_id = ST_ID,
8665 .model_id = ST_M50FW040,
8666 .total_size = 512,
8667 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008668 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008669 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008670 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008671 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008672 .block_erasers =
8673 {
8674 {
8675 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008676 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008677 }
8678 },
Sean Nelson28accc22010-03-19 18:47:06 +00008679 .unlock = unlock_stm50flw0x0x,
8680 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008682 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008683 },
8684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008685 {
8686 .vendor = "ST",
8687 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008688 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008689 .manufacture_id = ST_ID,
8690 .model_id = ST_M50FW080,
8691 .total_size = 1024,
8692 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008693 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008694 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008695 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008696 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008697 .block_erasers =
8698 {
8699 {
8700 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008701 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008702 }
8703 },
Sean Nelson28accc22010-03-19 18:47:06 +00008704 .unlock = unlock_stm50flw0x0x,
8705 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008707 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008708 },
8709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008710 {
8711 .vendor = "ST",
8712 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008713 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008714 .manufacture_id = ST_ID,
8715 .model_id = ST_M50LPW116,
8716 .total_size = 2048,
8717 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008718 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008719 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008720 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008721 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008722 .block_erasers =
8723 {
8724 {
8725 .eraseblocks = {
8726 {4 * 1024, 16},
8727 {64 * 1024, 30},
8728 {32 * 1024, 1},
8729 {8 * 1024, 2},
8730 {16 * 1024, 1},
8731 },
Sean Nelson28accc22010-03-19 18:47:06 +00008732 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008733 }
8734 },
Sean Nelson28accc22010-03-19 18:47:06 +00008735 .unlock = unlock_stm50flw0x0x,
8736 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008738 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008739 },
8740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008741 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008742 .vendor = "SyncMOS/MoselVitelic",
8743 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008744 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008745 .manufacture_id = SYNCMOS_MVC_ID,
8746 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008747 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008748 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008749 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008750 .tested = TEST_UNTESTED,
8751 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008753 .block_erasers =
8754 {
8755 {
8756 .eraseblocks = { {512, 256} },
8757 .block_erase = erase_sector_jedec,
8758 }, {
8759 .eraseblocks = { {128 * 1024, 1} },
8760 .block_erase = erase_chip_block_jedec,
8761 },
8762 },
Sean Nelson35727f72010-01-28 23:55:12 +00008763 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008765 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008766 },
8767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008768 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008769 .vendor = "SyncMOS/MoselVitelic",
8770 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008771 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008772 .manufacture_id = SYNCMOS_MVC_ID,
8773 .model_id = SM_MVC_29C51001T,
8774 .total_size = 128,
8775 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008776 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008777 .tested = TEST_UNTESTED,
8778 .probe = probe_jedec,
8779 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8780 .block_erasers =
8781 {
8782 {
8783 .eraseblocks = { {512, 256} },
8784 .block_erase = erase_sector_jedec,
8785 }, {
8786 .eraseblocks = { {128 * 1024, 1} },
8787 .block_erase = erase_chip_block_jedec,
8788 },
8789 },
8790 .write = write_jedec_1,
8791 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008792 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008793 },
8794
8795 {
8796 .vendor = "SyncMOS/MoselVitelic",
8797 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008798 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008799 .manufacture_id = SYNCMOS_MVC_ID,
8800 .model_id = SM_MVC_29C51002B,
8801 .total_size = 256,
8802 .page_size = 512,
8803 .feature_bits = FEATURE_EITHER_RESET,
8804 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008805 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008806 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = { {512, 512} },
8811 .block_erase = erase_sector_jedec,
8812 }, {
8813 .eraseblocks = { {256 * 1024, 1} },
8814 .block_erase = erase_chip_block_jedec,
8815 },
8816 },
Sean Nelson35727f72010-01-28 23:55:12 +00008817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008818 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008819 },
8820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008821 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008822 .vendor = "SyncMOS/MoselVitelic",
8823 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008824 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008825 .manufacture_id = SYNCMOS_MVC_ID,
8826 .model_id = SM_MVC_29C51002T,
8827 .total_size = 256,
8828 .page_size = 512,
8829 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008830 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008831 .probe = probe_jedec,
8832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8833 .block_erasers =
8834 {
8835 {
8836 .eraseblocks = { {512, 512} },
8837 .block_erase = erase_sector_jedec,
8838 }, {
8839 .eraseblocks = { {256 * 1024, 1} },
8840 .block_erase = erase_chip_block_jedec,
8841 },
8842 },
8843 .write = write_jedec_1,
8844 .read = read_memmapped,
8845 },
8846
8847 {
8848 .vendor = "SyncMOS/MoselVitelic",
8849 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008850 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008851 .manufacture_id = SYNCMOS_MVC_ID,
8852 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008853 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008854 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008855 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008856 .tested = TEST_UNTESTED,
8857 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008858 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008859 .block_erasers =
8860 {
8861 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008862 .eraseblocks = { {1024, 512} },
8863 .block_erase = erase_sector_jedec,
8864 }, {
8865 .eraseblocks = { {512 * 1024, 1} },
8866 .block_erase = erase_chip_block_jedec,
8867 },
8868 },
8869 .write = write_jedec_1,
8870 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008871 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008872 },
8873
8874 {
8875 .vendor = "SyncMOS/MoselVitelic",
8876 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008877 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008878 .manufacture_id = SYNCMOS_MVC_ID,
8879 .model_id = SM_MVC_29C51004T,
8880 .total_size = 512,
8881 .page_size = 1024,
8882 .feature_bits = FEATURE_EITHER_RESET,
8883 .tested = TEST_UNTESTED,
8884 .probe = probe_jedec,
8885 .probe_timing = TIMING_ZERO,
8886 .block_erasers =
8887 {
8888 {
8889 .eraseblocks = { {1024, 512} },
8890 .block_erase = erase_sector_jedec,
8891 }, {
8892 .eraseblocks = { {512 * 1024, 1} },
8893 .block_erase = erase_chip_block_jedec,
8894 },
8895 },
8896 .write = write_jedec_1,
8897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008898 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008899 },
8900
8901 {
8902 .vendor = "SyncMOS/MoselVitelic",
8903 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008904 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008905 .manufacture_id = SYNCMOS_MVC_ID,
8906 .model_id = SM_MVC_29C31004B,
8907 .total_size = 512,
8908 .page_size = 1024,
8909 .feature_bits = FEATURE_EITHER_RESET,
8910 .tested = TEST_UNTESTED,
8911 .probe = probe_jedec,
8912 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8913 .block_erasers =
8914 {
8915 {
8916 .eraseblocks = { {1024, 512} },
8917 .block_erase = erase_sector_jedec,
8918 }, {
8919 .eraseblocks = { {512 * 1024, 1} },
8920 .block_erase = erase_chip_block_jedec,
8921 },
8922 },
8923 .write = write_jedec_1,
8924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008925 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008926 },
8927
8928 {
8929 .vendor = "SyncMOS/MoselVitelic",
8930 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008931 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008932 .manufacture_id = SYNCMOS_MVC_ID,
8933 .model_id = SM_MVC_29C31004T,
8934 .total_size = 512,
8935 .page_size = 1024,
8936 .feature_bits = FEATURE_EITHER_RESET,
8937 .tested = TEST_UNTESTED,
8938 .probe = probe_jedec,
8939 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8940 .block_erasers =
8941 {
8942 {
8943 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008944 .block_erase = erase_sector_jedec,
8945 }, {
8946 .eraseblocks = { {512 * 1024, 1} },
8947 .block_erase = erase_chip_block_jedec,
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 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008956 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008957 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008958 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008959 .manufacture_id = TI_OLD_ID,
8960 .model_id = TI_TMS29F002RB,
8961 .total_size = 256,
8962 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008963 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008964 .tested = TEST_UNTESTED,
8965 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008966 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008967 .block_erasers =
8968 {
8969 {
8970 .eraseblocks = {
8971 {16 * 1024, 1},
8972 {8 * 1024, 2},
8973 {32 * 1024, 1},
8974 {64 * 1024, 3},
8975 },
8976 .block_erase = erase_sector_jedec,
8977 }, {
8978 .eraseblocks = { {256 * 1024, 1} },
8979 .block_erase = erase_chip_block_jedec,
8980 },
8981 },
Sean Nelson35727f72010-01-28 23:55:12 +00008982 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008984 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008985 },
8986
8987 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008988 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008989 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008990 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008991 .manufacture_id = TI_OLD_ID,
8992 .model_id = TI_TMS29F002RT,
8993 .total_size = 256,
8994 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008995 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008996 .tested = TEST_UNTESTED,
8997 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008998 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008999 .block_erasers =
9000 {
9001 {
9002 .eraseblocks = {
9003 {64 * 1024, 3},
9004 {32 * 1024, 1},
9005 {8 * 1024, 2},
9006 {16 * 1024, 1},
9007 },
9008 .block_erase = erase_sector_jedec,
9009 }, {
9010 .eraseblocks = { {256 * 1024, 1} },
9011 .block_erase = erase_chip_block_jedec,
9012 },
9013 },
Sean Nelson35727f72010-01-28 23:55:12 +00009014 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009016 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009017 },
9018
9019 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009020 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00009021 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009022 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009023 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009024 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009025 .total_size = 1024,
9026 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009027 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009029 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009030 .probe = probe_spi_rdid,
9031 .probe_timing = TIMING_ZERO,
9032 .block_erasers =
9033 {
9034 {
9035 .eraseblocks = { {4 * 1024, 256} },
9036 .block_erase = spi_block_erase_20,
9037 }, {
9038 .eraseblocks = { {32 * 1024, 32} },
9039 .block_erase = spi_block_erase_52,
9040 }, {
9041 .eraseblocks = { {64 * 1024, 16} },
9042 .block_erase = spi_block_erase_d8,
9043 }, {
9044 .eraseblocks = { {1024 * 1024, 1} },
9045 .block_erase = spi_block_erase_60,
9046 }, {
9047 .eraseblocks = { {1024 * 1024, 1} },
9048 .block_erase = spi_block_erase_c7,
9049 }
9050 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009051 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009052 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009053 .write = spi_chip_write_256,
9054 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009055 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009056 },
9057
9058 {
9059 .vendor = "Winbond",
9060 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009061 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009062 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009063 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009064 .total_size = 2048,
9065 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009066 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00009068 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009069 .probe = probe_spi_rdid,
9070 .probe_timing = TIMING_ZERO,
9071 .block_erasers =
9072 {
9073 {
9074 .eraseblocks = { {4 * 1024, 512} },
9075 .block_erase = spi_block_erase_20,
9076 }, {
9077 .eraseblocks = { {32 * 1024, 64} },
9078 .block_erase = spi_block_erase_52,
9079 }, {
9080 .eraseblocks = { {64 * 1024, 32} },
9081 .block_erase = spi_block_erase_d8,
9082 }, {
9083 .eraseblocks = { {2 * 1024 * 1024, 1} },
9084 .block_erase = spi_block_erase_60,
9085 }, {
9086 .eraseblocks = { {2 * 1024 * 1024, 1} },
9087 .block_erase = spi_block_erase_c7,
9088 }
9089 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009090 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009091 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009092 .write = spi_chip_write_256,
9093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009094 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009095 },
9096
9097 {
9098 .vendor = "Winbond",
9099 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009100 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009101 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009102 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009103 .total_size = 4096,
9104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009105 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009107 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009108 .probe = probe_spi_rdid,
9109 .probe_timing = TIMING_ZERO,
9110 .block_erasers =
9111 {
9112 {
9113 .eraseblocks = { {4 * 1024, 1024} },
9114 .block_erase = spi_block_erase_20,
9115 }, {
9116 .eraseblocks = { {32 * 1024, 128} },
9117 .block_erase = spi_block_erase_52,
9118 }, {
9119 .eraseblocks = { {64 * 1024, 64} },
9120 .block_erase = spi_block_erase_d8,
9121 }, {
9122 .eraseblocks = { {4 * 1024 * 1024, 1} },
9123 .block_erase = spi_block_erase_60,
9124 }, {
9125 .eraseblocks = { {4 * 1024 * 1024, 1} },
9126 .block_erase = spi_block_erase_c7,
9127 }
9128 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009129 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009130 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009131 .write = spi_chip_write_256,
9132 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009133 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009134 },
9135
9136 {
9137 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00009138 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009139 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00009140 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009141 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00009142 .total_size = 8192,
9143 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009144 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009146 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00009147 .probe = probe_spi_rdid,
9148 .probe_timing = TIMING_ZERO,
9149 .block_erasers =
9150 {
9151 {
9152 .eraseblocks = { {4 * 1024, 2048} },
9153 .block_erase = spi_block_erase_20,
9154 }, {
9155 .eraseblocks = { {32 * 1024, 256} },
9156 .block_erase = spi_block_erase_52,
9157 }, {
9158 .eraseblocks = { {64 * 1024, 128} },
9159 .block_erase = spi_block_erase_d8,
9160 }, {
9161 .eraseblocks = { {8 * 1024 * 1024, 1} },
9162 .block_erase = spi_block_erase_60,
9163 }, {
9164 .eraseblocks = { {8 * 1024 * 1024, 1} },
9165 .block_erase = spi_block_erase_c7,
9166 }
9167 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009168 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009169 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00009170 .write = spi_chip_write_256,
9171 .read = spi_chip_read,
9172 },
9173
9174 {
9175 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00009176 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009177 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009178 .manufacture_id = WINBOND_NEX_ID,
9179 .model_id = WINBOND_NEX_W25Q128,
9180 .total_size = 16384,
9181 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009182 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009184 .tested = TEST_OK_PROBE,
9185 .probe = probe_spi_rdid,
9186 .probe_timing = TIMING_ZERO,
9187 .block_erasers =
9188 {
9189 {
9190 .eraseblocks = { {4 * 1024, 4096} },
9191 .block_erase = spi_block_erase_20,
9192 }, {
9193 .eraseblocks = { {32 * 1024, 512} },
9194 .block_erase = spi_block_erase_52,
9195 }, {
9196 .eraseblocks = { {64 * 1024, 256} },
9197 .block_erase = spi_block_erase_d8,
9198 }, {
9199 .eraseblocks = { {16 * 1024 * 1024, 1} },
9200 .block_erase = spi_block_erase_60,
9201 }, {
9202 .eraseblocks = { {16 * 1024 * 1024, 1} },
9203 .block_erase = spi_block_erase_c7,
9204 }
9205 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009206 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +00009207 .unlock = spi_disable_blockprotect,
9208 .write = spi_chip_write_256,
9209 .read = spi_chip_read,
9210 },
9211
9212 {
9213 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009214 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009215 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009216 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009217 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009218 .total_size = 128,
9219 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009220 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009221 .tested = TEST_UNTESTED,
9222 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009223 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009224 .block_erasers =
9225 {
9226 {
9227 .eraseblocks = { {4 * 1024, 32} },
9228 .block_erase = spi_block_erase_20,
9229 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009230 .eraseblocks = { {64 * 1024, 2} },
9231 .block_erase = spi_block_erase_d8,
9232 }, {
9233 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009234 .block_erase = spi_block_erase_c7,
9235 }
9236 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009237 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009239 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009240 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009241 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009242 },
9243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009244 {
9245 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009246 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009248 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009249 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009250 .total_size = 256,
9251 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009253 .tested = TEST_UNTESTED,
9254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009255 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009256 .block_erasers =
9257 {
9258 {
9259 .eraseblocks = { {4 * 1024, 64} },
9260 .block_erase = spi_block_erase_20,
9261 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009262 .eraseblocks = { {64 * 1024, 4} },
9263 .block_erase = spi_block_erase_d8,
9264 }, {
9265 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009266 .block_erase = spi_block_erase_c7,
9267 }
9268 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009269 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009270 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009271 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009272 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009273 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009274 },
9275
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009276 {
9277 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009278 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009279 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009280 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009281 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009282 .total_size = 512,
9283 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009284 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00009285 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009286 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009287 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009288 .block_erasers =
9289 {
9290 {
9291 .eraseblocks = { {4 * 1024, 128} },
9292 .block_erase = spi_block_erase_20,
9293 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009294 .eraseblocks = { {64 * 1024, 8} },
9295 .block_erase = spi_block_erase_d8,
9296 }, {
9297 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009298 .block_erase = spi_block_erase_c7,
9299 }
9300 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009301 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009302 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009303 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009304 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009305 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009306 },
9307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009308 {
9309 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009310 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009311 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009312 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009313 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009314 .total_size = 1024,
9315 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009316 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00009317 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009318 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009319 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009320 .block_erasers =
9321 {
9322 {
9323 .eraseblocks = { {4 * 1024, 256} },
9324 .block_erase = spi_block_erase_20,
9325 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009326 .eraseblocks = { {64 * 1024, 16} },
9327 .block_erase = spi_block_erase_d8,
9328 }, {
9329 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009330 .block_erase = spi_block_erase_c7,
9331 }
9332 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009333 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009334 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009335 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009336 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009337 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009338 },
9339
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009340 {
9341 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009342 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009343 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00009344 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009345 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00009346 .total_size = 2048,
9347 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009348 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00009349 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00009350 .probe = probe_spi_rdid,
9351 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009352 .block_erasers =
9353 {
9354 {
9355 .eraseblocks = { {4 * 1024, 512} },
9356 .block_erase = spi_block_erase_20,
9357 }, {
9358 .eraseblocks = { {32 * 1024, 64} },
9359 .block_erase = spi_block_erase_52,
9360 }, {
9361 .eraseblocks = { {64 * 1024, 32} },
9362 .block_erase = spi_block_erase_d8,
9363 }, {
9364 .eraseblocks = { {2 * 1024 * 1024, 1} },
9365 .block_erase = spi_block_erase_60,
9366 }, {
9367 .eraseblocks = { {2 * 1024 * 1024, 1} },
9368 .block_erase = spi_block_erase_c7,
9369 }
9370 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009371 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009372 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00009373 .write = spi_chip_write_256,
9374 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009375 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00009376 },
9377
9378 {
9379 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009380 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009381 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009382 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009383 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00009384 .total_size = 4096,
9385 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009386 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00009387 .tested = TEST_OK_PROBE,
9388 .probe = probe_spi_rdid,
9389 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009390 .block_erasers =
9391 {
9392 {
9393 .eraseblocks = { {4 * 1024, 1024} },
9394 .block_erase = spi_block_erase_20,
9395 }, {
9396 .eraseblocks = { {32 * 1024, 128} },
9397 .block_erase = spi_block_erase_52,
9398 }, {
9399 .eraseblocks = { {64 * 1024, 64} },
9400 .block_erase = spi_block_erase_d8,
9401 }, {
9402 .eraseblocks = { {4 * 1024 * 1024, 1} },
9403 .block_erase = spi_block_erase_60,
9404 }, {
9405 .eraseblocks = { {4 * 1024 * 1024, 1} },
9406 .block_erase = spi_block_erase_c7,
9407 }
9408 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009410 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009411 .write = spi_chip_write_256,
9412 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009413 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009414 },
9415
9416 {
9417 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009418 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009419 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009420 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009421 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00009422 .total_size = 8192,
9423 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009424 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009425 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00009426 .probe = probe_spi_rdid,
9427 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009428 .block_erasers =
9429 {
9430 {
9431 .eraseblocks = { {4 * 1024, 2048} },
9432 .block_erase = spi_block_erase_20,
9433 }, {
9434 .eraseblocks = { {32 * 1024, 256} },
9435 .block_erase = spi_block_erase_52,
9436 }, {
9437 .eraseblocks = { {64 * 1024, 128} },
9438 .block_erase = spi_block_erase_d8,
9439 }, {
9440 .eraseblocks = { {8 * 1024 * 1024, 1} },
9441 .block_erase = spi_block_erase_60,
9442 }, {
9443 .eraseblocks = { {8 * 1024 * 1024, 1} },
9444 .block_erase = spi_block_erase_c7,
9445 }
9446 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009448 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009449 .write = spi_chip_write_256,
9450 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009451 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009452 },
9453
9454 {
9455 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009456 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009458 .manufacture_id = WINBOND_ID,
9459 .model_id = WINBOND_W29C010,
9460 .total_size = 128,
9461 .page_size = 128,
9462 .feature_bits = FEATURE_LONG_RESET,
9463 .tested = TEST_OK_PRE,
9464 .probe = probe_w29ee011,
9465 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
9466 .block_erasers =
9467 {
9468 {
9469 .eraseblocks = { {128 * 1024, 1} },
9470 .block_erase = erase_chip_block_jedec,
9471 }
9472 },
9473 .write = write_jedec,
9474 .read = read_memmapped,
9475 },
9476
9477 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9478 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009479 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009480 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009481 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009482 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009483 .total_size = 128,
9484 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009485 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009486 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009487 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009488 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009489 .block_erasers =
9490 {
9491 {
9492 .eraseblocks = { {128 * 1024, 1} },
9493 .block_erase = erase_chip_block_jedec,
9494 }
9495 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009496 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009497 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009498 },
9499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009500 {
9501 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009502 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009503 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009504 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009505 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .total_size = 256,
9507 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009508 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009510 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009511 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009512 .block_erasers =
9513 {
9514 {
9515 .eraseblocks = { {256 * 1024, 1} },
9516 .block_erase = erase_chip_block_jedec,
9517 }
9518 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009519 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009520 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009521 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009522 },
9523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009524 {
9525 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009526 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009527 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009528 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009529 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009530 .total_size = 512,
9531 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009532 .feature_bits = FEATURE_LONG_RESET,
9533 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009534 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009535 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009536 .block_erasers =
9537 {
9538 {
9539 .eraseblocks = { {512 * 1024, 1} },
9540 .block_erase = erase_chip_block_jedec,
9541 }
9542 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009543 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009545 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009546 },
9547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009548 {
9549 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +00009550 .name = "W39F010",
9551 .bustype = BUS_PARALLEL,
9552 .manufacture_id = WINBOND_ID,
9553 .model_id = WINBOND_W39F010,
9554 .total_size = 128,
9555 .page_size = 4 * 1024,
9556 .feature_bits = FEATURE_EITHER_RESET,
9557 .tested = TEST_OK_PREW,
9558 .probe = probe_jedec,
9559 .probe_timing = 10,
9560 .block_erasers =
9561 {
9562 {
9563 .eraseblocks = { {4 * 1024, 32} },
9564 .block_erase = erase_block_jedec,
9565 }, {
9566 .eraseblocks = { {128 * 1024, 1} },
9567 .block_erase = erase_chip_block_jedec,
9568 }
9569 },
9570 .printlock = printlock_w39f010,
9571 .write = write_jedec_1,
9572 .read = read_memmapped,
9573 .voltage = {4500, 5500},
9574 },
9575
9576 {
9577 .vendor = "Winbond",
9578 .name = "W39L010",
9579 .bustype = BUS_PARALLEL,
9580 .manufacture_id = WINBOND_ID,
9581 .model_id = WINBOND_W39L010,
9582 .total_size = 128,
9583 .page_size = 4 * 1024,
9584 .feature_bits = FEATURE_EITHER_RESET,
9585 .tested = TEST_UNTESTED,
9586 .probe = probe_jedec,
9587 .probe_timing = 10,
9588 .block_erasers =
9589 {
9590 {
9591 .eraseblocks = { {4 * 1024, 32} },
9592 .block_erase = erase_block_jedec,
9593 }, {
9594 .eraseblocks = { {128 * 1024, 1} },
9595 .block_erase = erase_chip_block_jedec,
9596 }
9597 },
9598 .printlock = printlock_w39l010,
9599 .write = write_jedec_1,
9600 .read = read_memmapped,
9601 .voltage = {3000, 3600},
9602 },
9603
9604 {
9605 .vendor = "Winbond",
9606 .name = "W39L020",
9607 .bustype = BUS_PARALLEL,
9608 .manufacture_id = WINBOND_ID,
9609 .model_id = WINBOND_W39L020,
9610 .total_size = 256,
9611 .page_size = 4 * 1024,
9612 .feature_bits = FEATURE_EITHER_RESET,
9613 .tested = TEST_UNTESTED,
9614 .probe = probe_jedec,
9615 .probe_timing = 10,
9616 .block_erasers =
9617 {
9618 {
9619 .eraseblocks = { {4 * 1024, 64} },
9620 .block_erase = erase_block_jedec,
9621 }, {
9622 .eraseblocks = { {64 * 1024, 4} },
9623 .block_erase = erase_sector_jedec,
9624 }, {
9625 .eraseblocks = { {256 * 1024, 1} },
9626 .block_erase = erase_chip_block_jedec,
9627 }
9628 },
9629 .printlock = printlock_w39l020,
9630 .write = write_jedec_1,
9631 .read = read_memmapped,
9632 .voltage = {3000, 3600},
9633 },
9634
9635 {
9636 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00009637 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009638 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00009639 .manufacture_id = WINBOND_ID,
9640 .model_id = WINBOND_W39L040,
9641 .total_size = 512,
9642 .page_size = 64 * 1024,
9643 .feature_bits = FEATURE_EITHER_RESET,
9644 .tested = TEST_OK_PR,
9645 .probe = probe_jedec,
9646 .probe_timing = 10,
9647 .block_erasers =
9648 {
9649 {
9650 .eraseblocks = { {4 * 1024, 128} },
9651 .block_erase = erase_block_jedec,
9652 }, {
9653 .eraseblocks = { {64 * 1024, 8} },
9654 .block_erase = erase_sector_jedec,
9655 }, {
9656 .eraseblocks = { {512 * 1024, 1} },
9657 .block_erase = erase_chip_block_jedec,
9658 }
9659 },
9660 .printlock = printlock_w39l040,
9661 .write = write_jedec_1,
9662 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009663 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00009664 },
9665
9666 {
9667 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009668 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009669 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009670 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009671 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009672 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009673 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009674 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009675 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009676 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009677 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009678 .block_erasers =
9679 {
9680 {
9681 .eraseblocks = { {64 * 1024, 8} },
9682 .block_erase = erase_sector_jedec,
9683 }, {
9684 .eraseblocks = { {512 * 1024, 1} },
9685 .block_erase = erase_chip_block_jedec,
9686 }
9687 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009688 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009689 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009690 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009691 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009692 },
9693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009694 {
9695 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009696 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009697 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009698 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009699 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009700 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009701 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009702 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009703 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009704 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009705 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009706 .block_erasers =
9707 {
9708 {
9709 .eraseblocks = { {64 * 1024, 8} },
9710 .block_erase = erase_sector_jedec,
9711 }, {
9712 .eraseblocks = { {512 * 1024, 1} },
9713 .block_erase = erase_chip_block_jedec,
9714 }
9715 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009716 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009717 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009718 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009719 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009720 },
9721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009722 {
9723 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009724 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009725 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009726 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009727 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009728 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009729 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009730 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009731 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009732 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009733 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009734 .block_erasers =
9735 {
9736 {
9737 .eraseblocks = { {64 * 1024, 8} },
9738 .block_erase = erase_sector_jedec,
9739 }, {
9740 .eraseblocks = { {512 * 1024, 1} },
9741 .block_erase = erase_chip_block_jedec,
9742 }
9743 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009744 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009745 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009746 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009747 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009748 },
9749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009750 {
9751 .vendor = "Winbond",
9752 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009753 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009754 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009755 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009756 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009757 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009758 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009759 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009760 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009761 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009762 .block_erasers =
9763 {
9764 {
9765 .eraseblocks = { {4 * 1024, 128} },
9766 .block_erase = erase_block_jedec,
9767 }, {
9768 .eraseblocks = { {64 * 1024, 8} },
9769 .block_erase = erase_sector_jedec,
9770 }, {
9771 .eraseblocks = { {512 * 1024, 1} },
9772 .block_erase = erase_chip_block_jedec,
9773 }
9774 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009775 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009776 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009777 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009778 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009779 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009780 },
9781
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009782 {
9783 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009784 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009785 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009786 .manufacture_id = WINBOND_ID,
9787 .model_id = WINBOND_W39V040B,
9788 .total_size = 512,
9789 .page_size = 64 * 1024,
9790 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009791 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009792 .probe = probe_jedec,
9793 .probe_timing = 10,
9794 .block_erasers =
9795 {
9796 {
9797 .eraseblocks = { {64 * 1024, 8} },
9798 .block_erase = erase_sector_jedec,
9799 }, {
9800 .eraseblocks = { {512 * 1024, 1} },
9801 .block_erase = erase_chip_block_jedec,
9802 }
9803 },
9804 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009805 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009806 .write = write_jedec_1,
9807 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009808 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009809 },
9810
9811 {
9812 .vendor = "Winbond",
9813 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009814 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009815 .manufacture_id = WINBOND_ID,
9816 .model_id = WINBOND_W39V040C,
9817 .total_size = 512,
9818 .page_size = 64 * 1024,
9819 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009820 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009821 .probe = probe_jedec,
9822 .probe_timing = 10,
9823 .block_erasers =
9824 {
9825 {
9826 .eraseblocks = { {64 * 1024, 8} },
9827 .block_erase = erase_sector_jedec,
9828 }, {
9829 .eraseblocks = { {512 * 1024, 1} },
9830 .block_erase = erase_chip_block_jedec,
9831 }
9832 },
9833 .printlock = printlock_w39v040fc,
9834 .write = write_jedec_1,
9835 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009836 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009837 },
9838
9839 {
9840 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009841 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009842 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009843 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009844 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009845 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009846 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009847 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009848 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009849 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009850 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009851 .block_erasers =
9852 {
9853 {
9854 .eraseblocks = { {64 * 1024, 16} },
9855 .block_erase = erase_sector_jedec,
9856 }, {
9857 .eraseblocks = { {1024 * 1024, 1} },
9858 .block_erase = erase_chip_block_jedec,
9859 }
9860 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009861 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009862 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009863 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009864 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009865 },
9866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009867 {
9868 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009869 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009870 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009871 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009872 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009873 .total_size = 256,
9874 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009875 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009876 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009877 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009878 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009879 .block_erasers =
9880 {
9881 {
9882 .eraseblocks = {
9883 {128 * 1024, 1},
9884 {96 * 1024, 1},
9885 {8 * 1024, 2},
9886 {16 * 1024, 1},
9887 },
9888 .block_erase = erase_sector_jedec,
9889 }, {
9890 .eraseblocks = { {256 * 1024, 1} },
9891 .block_erase = erase_chip_block_jedec,
9892 }
9893 },
Sean Nelson35727f72010-01-28 23:55:12 +00009894 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009896 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009897 },
9898
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009899 {
9900 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009901 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009902 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009903 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009904 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009905 .total_size = 256,
9906 .page_size = 128,
9907 .feature_bits = FEATURE_EITHER_RESET,
9908 .tested = TEST_OK_PROBE,
9909 .probe = probe_jedec,
9910 .probe_timing = 10,
9911 .block_erasers =
9912 {
9913 {
9914 .eraseblocks = { {256 * 1024, 1} },
9915 .block_erase = erase_chip_block_jedec,
9916 }
9917 },
9918 .write = write_jedec_1,
9919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009920 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009921 },
9922
9923 {
9924 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009925 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009926 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009927 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009928 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009929 .total_size = 256,
9930 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009931 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009932 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009933 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009934 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009935 .block_erasers =
9936 {
9937 {
9938 .eraseblocks = {
9939 {64 * 1024, 3},
9940 {32 * 1024, 1},
9941 {8 * 1024, 2},
9942 {16 * 1024, 1},
9943 },
9944 .block_erase = erase_sector_jedec,
9945 }, {
9946 .eraseblocks = { {256 * 1024, 1} },
9947 .block_erase = erase_chip_block_jedec,
9948 }
9949 },
Sean Nelson35727f72010-01-28 23:55:12 +00009950 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009951 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009952 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009953 },
9954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009955 {
9956 .vendor = "Winbond",
9957 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009958 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009959 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009960 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009961 .total_size = 256,
9962 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009963 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00009964 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009965 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009966 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009967 .block_erasers =
9968 {
9969 {
9970 .eraseblocks = {
9971 {64 * 1024, 3},
9972 {32 * 1024, 1},
9973 {8 * 1024, 2},
9974 {16 * 1024, 1},
9975 },
9976 .block_erase = erase_sector_jedec,
9977 }, {
9978 .eraseblocks = { {256 * 1024, 1} },
9979 .block_erase = erase_chip_block_jedec,
9980 }
9981 },
Sean Nelson35727f72010-01-28 23:55:12 +00009982 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009984 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009985 },
9986
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009987 {
9988 .vendor = "Winbond",
9989 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009990 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009991 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009992 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009993 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009994 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009995 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009996 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009997 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009998 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009999 .block_erasers =
10000 {
10001 {
10002 .eraseblocks = { {64 * 1024, 16}, },
10003 .block_erase = erase_sector_jedec,
10004 }, {
10005 .eraseblocks = { {1024 * 1024, 1} },
10006 .block_erase = erase_chip_block_jedec,
10007 }
10008 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010009 .printlock = printlock_w39v080fa,
10010 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000010011 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010012 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010013 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010014 },
10015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010016 {
10017 .vendor = "Winbond",
10018 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010019 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010020 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010021 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010022 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010023 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010024 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010025 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010026 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010027 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010028 .block_erasers =
10029 {
10030 {
10031 .eraseblocks = { {64 * 1024, 8}, },
10032 .block_erase = erase_sector_jedec,
10033 }, {
10034 .eraseblocks = { {512 * 1024, 1} },
10035 .block_erase = erase_chip_block_jedec,
10036 }
10037 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010038 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000010039 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010040 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010041 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010042 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010043
10044 {
10045 .vendor = "Unknown",
10046 .name = "SFDP-capable chip",
10047 .bustype = BUS_SPI,
10048 .manufacture_id = GENERIC_MANUF_ID,
10049 .model_id = SFDP_DEVICE_ID,
10050 /* We present our own "report this" text hence we do not
10051 * want the default "This flash part has status UNTESTED..."
10052 * text to be printed. */
10053 .tested = TEST_OK_PREW,
10054 .probe = probe_spi_sfdp,
10055 .unlock = spi_disable_blockprotect, /* is this safe? */
10056 .read = spi_chip_read,
10057 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000010058 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010059 /* Everything below will be set by the probing function. */
10060 .write = NULL,
10061 .total_size = 0,
10062 .page_size = 0,
10063 .feature_bits = 0,
10064 .block_erasers = {},
10065 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010067 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000010068 .vendor = "Programmer",
10069 .name = "Opaque flash chip",
10070 .bustype = BUS_PROG,
10071 .manufacture_id = PROGMANUF_ID,
10072 .model_id = PROGDEV_ID,
10073 .total_size = 0,
10074 .page_size = 256,
10075 /* probe is assumed to work, rest will be filled in by probe */
10076 .tested = TEST_OK_PROBE,
10077 .probe = probe_opaque,
10078 /* eraseblock sizes will be set by the probing function */
10079 .block_erasers =
10080 {
10081 {
10082 .block_erase = erase_opaque,
10083 }
10084 },
10085 .write = write_opaque,
10086 .read = read_opaque,
10087 },
10088
10089 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010090 .vendor = "AMIC",
10091 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010092 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010093 .manufacture_id = AMIC_ID,
10094 .model_id = GENERIC_DEVICE_ID,
10095 .total_size = 0,
10096 .page_size = 256,
10097 .tested = TEST_BAD_PREW,
10098 .probe = probe_spi_rdid4,
10099 .probe_timing = TIMING_ZERO,
10100 .write = NULL,
10101 .read = NULL,
10102 },
10103
10104 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010105 .vendor = "Atmel",
10106 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010107 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010108 .manufacture_id = ATMEL_ID,
10109 .model_id = GENERIC_DEVICE_ID,
10110 .total_size = 0,
10111 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010112 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010114 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010115 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010116 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010117 },
10118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010119 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000010120 .vendor = "Eon",
10121 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010122 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010123 .manufacture_id = EON_ID_NOPREFIX,
10124 .model_id = GENERIC_DEVICE_ID,
10125 .total_size = 0,
10126 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010127 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010128 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010129 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010130 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010131 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010132 },
10133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010134 {
10135 .vendor = "Macronix",
10136 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010137 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010138 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010139 .model_id = GENERIC_DEVICE_ID,
10140 .total_size = 0,
10141 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010142 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010143 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010144 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010145 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010146 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010147 },
10148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010149 {
10150 .vendor = "PMC",
10151 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010152 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010153 .manufacture_id = PMC_ID,
10154 .model_id = GENERIC_DEVICE_ID,
10155 .total_size = 0,
10156 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010157 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010158 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010159 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010160 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010161 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010162 },
10163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010164 {
10165 .vendor = "SST",
10166 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010167 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010168 .manufacture_id = SST_ID,
10169 .model_id = GENERIC_DEVICE_ID,
10170 .total_size = 0,
10171 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010172 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010173 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010174 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010175 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010176 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010177 },
10178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010179 {
10180 .vendor = "ST",
10181 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010182 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010183 .manufacture_id = ST_ID,
10184 .model_id = GENERIC_DEVICE_ID,
10185 .total_size = 0,
10186 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010187 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010189 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010190 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010191 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010192 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000010193
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010194 {
Sean Nelson118e1d62009-11-24 02:08:11 +000010195 .vendor = "Sanyo",
10196 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010197 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000010198 .manufacture_id = SANYO_ID,
10199 .model_id = GENERIC_DEVICE_ID,
10200 .total_size = 0,
10201 .page_size = 256,
10202 .tested = TEST_BAD_PREW,
10203 .probe = probe_spi_rdid,
10204 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000010205 .write = NULL,
10206 .read = NULL,
10207 },
10208
10209 {
Stefan Taunereb582572012-09-21 12:52:50 +000010210 .vendor = "Winbond",
10211 .name = "unknown Winbond (ex Nexcom) SPI chip",
10212 .bustype = BUS_SPI,
10213 .manufacture_id = WINBOND_NEX_ID,
10214 .model_id = GENERIC_DEVICE_ID,
10215 .total_size = 0,
10216 .page_size = 256,
10217 .tested = TEST_BAD_PREW,
10218 .probe = probe_spi_rdid,
10219 .probe_timing = TIMING_ZERO,
10220 .write = NULL,
10221 .read = NULL,
10222 },
10223
10224 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010225 .vendor = "Generic",
10226 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010227 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010228 .manufacture_id = GENERIC_MANUF_ID,
10229 .model_id = GENERIC_DEVICE_ID,
10230 .total_size = 0,
10231 .page_size = 256,
10232 .tested = TEST_BAD_PREW,
10233 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010234 .write = NULL,
10235 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000010236
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010237 {
10238 .vendor = "Generic",
10239 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010240 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010241 .manufacture_id = GENERIC_MANUF_ID,
10242 .model_id = GENERIC_DEVICE_ID,
10243 .total_size = 0,
10244 .page_size = 256,
10245 .tested = TEST_BAD_PREW,
10246 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010247 .write = NULL,
10248 },
10249
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010250 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000010251};