blob: 9dd045eb8979a1fb7d15518ec63c38d0cb189cd2 [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",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00004425 .name = "25F160S33B8",
4426 .bustype = BUS_SPI,
4427 .manufacture_id = INTEL_ID,
4428 .model_id = INTEL_25F160S33B8,
4429 .total_size = 2048,
4430 .page_size = 256,
4431 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4432 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4433 .tested = TEST_UNTESTED,
4434 .probe = probe_spi_rdid,
4435 .probe_timing = TIMING_ZERO,
4436 .block_erasers =
4437 {
4438 {
4439 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4440 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4441 * have no effect on the memory contents, but sets a flag in the SR.
4442 .eraseblocks = {
4443 {8 * 1024, 8},
4444 {64 * 1024, 31} // inaccessible
4445 },
4446 .block_erase = spi_block_erase_40,
4447 }, { */
4448 .eraseblocks = { {64 * 1024, 32} },
4449 .block_erase = spi_block_erase_d8,
4450 }, {
4451 .eraseblocks = { {2 * 1024 * 1024, 1} },
4452 .block_erase = spi_block_erase_c7,
4453 }
4454 },
4455 .printlock = spi_prettyprint_status_register_s33,
4456 .unlock = spi_disable_blockprotect_s33,
4457 .write = spi_chip_write_256,
4458 .read = spi_chip_read, /* also fast read 0x0B */
4459 .voltage = {2700, 3600},
4460 },
4461
4462 {
4463 .vendor = "Intel",
4464 .name = "25F160S33T8",
4465 .bustype = BUS_SPI,
4466 .manufacture_id = INTEL_ID,
4467 .model_id = INTEL_25F160S33T8,
4468 .total_size = 2048,
4469 .page_size = 256,
4470 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4471 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4472 .tested = TEST_UNTESTED,
4473 .probe = probe_spi_rdid,
4474 .probe_timing = TIMING_ZERO,
4475 .block_erasers =
4476 {
4477 {
4478 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4479 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4480 * have no effect on the memory contents, but sets a flag in the SR.
4481 .eraseblocks = {
4482 {64 * 1024, 31}, // inaccessible
4483 {8 * 1024, 8}
4484 },
4485 .block_erase = spi_block_erase_40,
4486 }, { */
4487 .eraseblocks = { {64 * 1024, 32} },
4488 .block_erase = spi_block_erase_d8,
4489 }, {
4490 .eraseblocks = { {2 * 1024 * 1024, 1} },
4491 .block_erase = spi_block_erase_c7,
4492 }
4493 },
4494 .printlock = spi_prettyprint_status_register_s33,
4495 .unlock = spi_disable_blockprotect_s33,
4496 .write = spi_chip_write_256,
4497 .read = spi_chip_read, /* also fast read 0x0B */
4498 .voltage = {2700, 3600},
4499 },
4500
4501 {
4502 .vendor = "Intel",
4503 .name = "25F320S33B8",
4504 .bustype = BUS_SPI,
4505 .manufacture_id = INTEL_ID,
4506 .model_id = INTEL_25F320S33B8,
4507 .total_size = 4096,
4508 .page_size = 256,
4509 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4511 .tested = TEST_UNTESTED,
4512 .probe = probe_spi_rdid,
4513 .probe_timing = TIMING_ZERO,
4514 .block_erasers =
4515 {
4516 {
4517 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4518 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4519 * have no effect on the memory contents, but sets a flag in the SR.
4520 .eraseblocks = {
4521 {8 * 1024, 8},
4522 {64 * 1024, 63} // inaccessible
4523 },
4524 .block_erase = spi_block_erase_40,
4525 }, { */
4526 .eraseblocks = { {64 * 1024, 64} },
4527 .block_erase = spi_block_erase_d8,
4528 }, {
4529 .eraseblocks = { {4 * 1024 * 1024, 1} },
4530 .block_erase = spi_block_erase_c7,
4531 }
4532 },
4533 .printlock = spi_prettyprint_status_register_s33,
4534 .unlock = spi_disable_blockprotect_s33,
4535 .write = spi_chip_write_256,
4536 .read = spi_chip_read, /* also fast read 0x0B */
4537 .voltage = {2700, 3600},
4538 },
4539
4540 {
4541 .vendor = "Intel",
4542 .name = "25F320S33T8",
4543 .bustype = BUS_SPI,
4544 .manufacture_id = INTEL_ID,
4545 .model_id = INTEL_25F320S33T8,
4546 .total_size = 4096,
4547 .page_size = 256,
4548 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4549 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4550 .tested = TEST_UNTESTED,
4551 .probe = probe_spi_rdid,
4552 .probe_timing = TIMING_ZERO,
4553 .block_erasers =
4554 {
4555 {
4556 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4557 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4558 * have no effect on the memory contents, but sets a flag in the SR.
4559 .eraseblocks = {
4560 {64 * 1024, 63}, // inaccessible
4561 {8 * 1024, 8}
4562 },
4563 .block_erase = spi_block_erase_40,
4564 }, { */
4565 .eraseblocks = { {64 * 1024, 64} },
4566 .block_erase = spi_block_erase_d8,
4567 }, {
4568 .eraseblocks = { {4 * 1024 * 1024, 1} },
4569 .block_erase = spi_block_erase_c7,
4570 }
4571 },
4572 .printlock = spi_prettyprint_status_register_s33,
4573 .unlock = spi_disable_blockprotect_s33,
4574 .write = spi_chip_write_256,
4575 .read = spi_chip_read, /* also fast read 0x0B */
4576 .voltage = {2700, 3600},
4577 },
4578
4579 {
4580 .vendor = "Intel",
4581 .name = "25F640S33B8",
4582 .bustype = BUS_SPI,
4583 .manufacture_id = INTEL_ID,
4584 .model_id = INTEL_25F640S33B8,
4585 .total_size = 8192,
4586 .page_size = 256,
4587 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4588 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4589 .tested = TEST_UNTESTED,
4590 .probe = probe_spi_rdid,
4591 .probe_timing = TIMING_ZERO,
4592 .block_erasers =
4593 {
4594 {
4595 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4596 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4597 * have no effect on the memory contents, but sets a flag in the SR.
4598 .eraseblocks = {
4599 {8 * 1024, 8},
4600 {64 * 1024, 127} // inaccessible
4601 },
4602 .block_erase = spi_block_erase_40,
4603 }, { */
4604 .eraseblocks = { {64 * 1024, 128} },
4605 .block_erase = spi_block_erase_d8,
4606 }, {
4607 .eraseblocks = { {8 * 1024 * 1024, 1} },
4608 .block_erase = spi_block_erase_c7,
4609 }
4610 },
4611 .printlock = spi_prettyprint_status_register_s33,
4612 .unlock = spi_disable_blockprotect_s33,
4613 .write = spi_chip_write_256,
4614 .read = spi_chip_read, /* also fast read 0x0B */
4615 .voltage = {2700, 3600},
4616 },
4617
4618 {
4619 .vendor = "Intel",
4620 .name = "25F640S33T8",
4621 .bustype = BUS_SPI,
4622 .manufacture_id = INTEL_ID,
4623 .model_id = INTEL_25F640S33T8,
4624 .total_size = 8192,
4625 .page_size = 256,
4626 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
4627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4628 .tested = TEST_UNTESTED,
4629 .probe = probe_spi_rdid,
4630 .probe_timing = TIMING_ZERO,
4631 .block_erasers =
4632 {
4633 {
4634 /* This chip supports erasing of the 8 so-called "parameter blocks" with
4635 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
4636 * have no effect on the memory contents, but sets a flag in the SR.
4637 .eraseblocks = {
4638 {64 * 1024, 127}, // inaccessible
4639 {8 * 1024, 8}
4640 },
4641 .block_erase = spi_block_erase_40,
4642 }, { */
4643 .eraseblocks = { {64 * 1024, 128} },
4644 .block_erase = spi_block_erase_d8,
4645 }, {
4646 .eraseblocks = { {8 * 1024 * 1024, 1} },
4647 .block_erase = spi_block_erase_c7,
4648 }
4649 },
4650 .printlock = spi_prettyprint_status_register_s33,
4651 .unlock = spi_disable_blockprotect_s33,
4652 .write = spi_chip_write_256,
4653 .read = spi_chip_read, /* also fast read 0x0B */
4654 .voltage = {2700, 3600},
4655 },
4656
4657 {
4658 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004659 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004660 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004661 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004662 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004663 .total_size = 128,
4664 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004665 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004666 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004667 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004668 .block_erasers =
4669 {
4670 {
4671 .eraseblocks = {
4672 {8 * 1024, 1},
4673 {4 * 1024, 2},
4674 {112 * 1024, 1},
4675 },
Sean Nelson28accc22010-03-19 18:47:06 +00004676 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004677 },
4678 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004679 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004681 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004682 },
4683
4684 {
4685 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004686 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004687 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004688 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004689 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004690 .total_size = 128,
4691 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004692 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004693 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004695 .block_erasers =
4696 {
4697 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004698 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004699 {112 * 1024, 1},
4700 {4 * 1024, 2},
4701 {8 * 1024, 1},
4702 },
Sean Nelson28accc22010-03-19 18:47:06 +00004703 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004704 },
4705 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004706 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004708 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004709 },
4710
4711 {
4712 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004713 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004714 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004715 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004716 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004717 .total_size = 256,
4718 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004719 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004720 .probe = probe_82802ab,
4721 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4722 .block_erasers =
4723 {
4724 {
4725 .eraseblocks = {
4726 {128 * 1024, 1},
4727 {96 * 1024, 1},
4728 {8 * 1024, 2},
4729 {16 * 1024, 1},
4730 },
4731 .block_erase = erase_block_82802ab,
4732 },
4733 },
4734 .write = write_82802ab,
4735 .read = read_memmapped,
4736 },
4737
4738 {
4739 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004740 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004741 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004742 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004743 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004744 .total_size = 512,
4745 .page_size = 256,
4746 .tested = TEST_UNTESTED,
4747 .probe = probe_82802ab,
4748 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004749 .block_erasers =
4750 {
4751 {
4752 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004753 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004754 },
4755 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004756 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004757 .write = write_82802ab,
4758 .read = read_memmapped,
4759 },
4760
4761 {
4762 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004763 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004764 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004765 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004766 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004767 .total_size = 512,
4768 .page_size = 128 * 1024, /* maximal block size */
4769 .tested = TEST_UNTESTED,
4770 .probe = probe_82802ab,
4771 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4772 .block_erasers =
4773 {
4774 {
4775 .eraseblocks = {
4776 {16 * 1024, 1},
4777 {8 * 1024, 2},
4778 {96 * 1024, 1},
4779 {128 * 1024, 3},
4780 },
4781 .block_erase = erase_block_82802ab,
4782 },
4783 },
4784 .write = write_82802ab,
4785 .read = read_memmapped,
4786 },
4787
4788 {
4789 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004790 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004791 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004792 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004793 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004794 .total_size = 512,
4795 .page_size = 128 * 1024, /* maximal block size */
4796 .tested = TEST_UNTESTED,
4797 .probe = probe_82802ab,
4798 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4799 .block_erasers =
4800 {
4801 {
4802 .eraseblocks = {
4803 {128 * 1024, 3},
4804 {96 * 1024, 1},
4805 {8 * 1024, 2},
4806 {16 * 1024, 1},
4807 },
4808 .block_erase = erase_block_82802ab,
4809 },
4810 },
4811 .write = write_82802ab,
4812 .read = read_memmapped,
4813 },
4814
4815 {
4816 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004817 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004818 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004819 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004820 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004821 .total_size = 512,
4822 .page_size = 128 * 1024, /* maximal block size */
4823 .feature_bits = FEATURE_ADDR_SHIFTED,
4824 .tested = TEST_UNTESTED,
4825 .probe = probe_82802ab,
4826 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4827 .block_erasers =
4828 {
4829 {
4830 .eraseblocks = {
4831 {16 * 1024, 1},
4832 {8 * 1024, 2},
4833 {96 * 1024, 1},
4834 {128 * 1024, 3},
4835 },
4836 .block_erase = erase_block_82802ab,
4837 },
4838 },
4839 .write = write_82802ab,
4840 .read = read_memmapped,
4841 },
4842
4843 {
4844 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004845 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004846 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004847 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004848 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004849 .total_size = 512,
4850 .page_size = 128 * 1024, /* maximal block size */
4851 .feature_bits = FEATURE_ADDR_SHIFTED,
4852 .tested = TEST_UNTESTED,
4853 .probe = probe_82802ab,
4854 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4855 .block_erasers =
4856 {
4857 {
4858 .eraseblocks = {
4859 {128 * 1024, 3},
4860 {96 * 1024, 1},
4861 {8 * 1024, 2},
4862 {16 * 1024, 1},
4863 },
4864 .block_erase = erase_block_82802ab,
4865 },
4866 },
4867 .write = write_82802ab,
4868 .read = read_memmapped,
4869 },
4870
4871 {
4872 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004873 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004874 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004875 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004876 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004877 .total_size = 512,
4878 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004879 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004880 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004881 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004882 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004883 .block_erasers =
4884 {
4885 {
4886 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004887 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004888 },
4889 },
Sean Nelson28accc22010-03-19 18:47:06 +00004890 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004891 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004893 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004894 },
4895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004896 {
4897 .vendor = "Intel",
4898 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004899 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004900 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004901 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004902 .total_size = 1024,
4903 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004904 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004905 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004906 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004907 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004908 .block_erasers =
4909 {
4910 {
4911 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004912 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004913 },
4914 },
Sean Nelson28accc22010-03-19 18:47:06 +00004915 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004916 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004917 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004918 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004919 },
4920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004921 {
4922 .vendor = "Macronix",
4923 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004924 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004925 .manufacture_id = MACRONIX_ID,
4926 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004927 .total_size = 64,
4928 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004929 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004930 .tested = TEST_UNTESTED,
4931 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004932 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = { {4 * 1024, 16} },
4937 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004938 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004939 .eraseblocks = { {64 * 1024, 1} },
4940 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004941 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004942 .eraseblocks = { {64 * 1024, 1} },
4943 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004944 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004945 .eraseblocks = { {64 * 1024, 1} },
4946 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004947 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004948 .eraseblocks = { {64 * 1024, 1} },
4949 .block_erase = spi_block_erase_c7,
4950 },
4951 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004952 .printlock = spi_prettyprint_status_register_default_bp1, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004953 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004954 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004955 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004956 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004957 },
4958
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004959 {
4960 .vendor = "Macronix",
4961 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004962 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004963 .manufacture_id = MACRONIX_ID,
4964 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004965 .total_size = 128,
4966 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004967 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004968 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004969 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004970 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004971 .block_erasers =
4972 {
4973 {
4974 .eraseblocks = { {4 * 1024, 32} },
4975 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004976 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004977 .eraseblocks = { {64 * 1024, 2} },
4978 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004979 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004980 .eraseblocks = { {128 * 1024, 1} },
4981 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004982 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004983 .eraseblocks = { {128 * 1024, 1} },
4984 .block_erase = spi_block_erase_c7,
4985 },
4986 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004987 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004988 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004989 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004990 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004991 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004992 },
4993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004994 {
4995 .vendor = "Macronix",
4996 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004997 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004998 .manufacture_id = MACRONIX_ID,
4999 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005000 .total_size = 256,
5001 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005002 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005003 .tested = TEST_UNTESTED,
5004 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005005 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005006 .block_erasers =
5007 {
5008 {
5009 .eraseblocks = { {4 * 1024, 64} },
5010 .block_erase = spi_block_erase_20,
5011 }, {
5012 .eraseblocks = { {64 * 1024, 4} },
5013 .block_erase = spi_block_erase_52,
5014 }, {
5015 .eraseblocks = { {64 * 1024, 4} },
5016 .block_erase = spi_block_erase_d8,
5017 }, {
5018 .eraseblocks = { {256 * 1024, 1} },
5019 .block_erase = spi_block_erase_60,
5020 }, {
5021 .eraseblocks = { {256 * 1024, 1} },
5022 .block_erase = spi_block_erase_c7,
5023 },
5024 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005025 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005026 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005027 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005028 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005029 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005030 },
5031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005032 {
5033 .vendor = "Macronix",
5034 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005035 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005036 .manufacture_id = MACRONIX_ID,
5037 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005038 .total_size = 512,
5039 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005040 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005041 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005043 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005044 .block_erasers =
5045 {
5046 {
5047 .eraseblocks = { {4 * 1024, 128} },
5048 .block_erase = spi_block_erase_20,
5049 }, {
5050 .eraseblocks = { {64 * 1024, 8} },
5051 .block_erase = spi_block_erase_52,
5052 }, {
5053 .eraseblocks = { {64 * 1024, 8} },
5054 .block_erase = spi_block_erase_d8,
5055 }, {
5056 .eraseblocks = { {512 * 1024, 1} },
5057 .block_erase = spi_block_erase_60,
5058 }, {
5059 .eraseblocks = { {512 * 1024, 1} },
5060 .block_erase = spi_block_erase_c7,
5061 },
5062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005063 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005064 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005065 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005066 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005067 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005068 },
5069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005070 {
5071 .vendor = "Macronix",
5072 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005073 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005074 .manufacture_id = MACRONIX_ID,
5075 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .total_size = 1024,
5077 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005078 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00005079 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005080 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005081 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005082 .block_erasers =
5083 {
5084 {
5085 .eraseblocks = { {4 * 1024, 256} },
5086 .block_erase = spi_block_erase_20,
5087 }, {
5088 .eraseblocks = { {64 * 1024, 16} },
5089 .block_erase = spi_block_erase_52,
5090 }, {
5091 .eraseblocks = { {64 * 1024, 16} },
5092 .block_erase = spi_block_erase_d8,
5093 }, {
5094 .eraseblocks = { {1024 * 1024, 1} },
5095 .block_erase = spi_block_erase_60,
5096 }, {
5097 .eraseblocks = { {1024 * 1024, 1} },
5098 .block_erase = spi_block_erase_c7,
5099 },
5100 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005101 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005106 },
5107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005108 {
5109 .vendor = "Macronix",
5110 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005112 .manufacture_id = MACRONIX_ID,
5113 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .total_size = 2048,
5115 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005116 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00005117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005119 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005120 .block_erasers =
5121 {
5122 {
5123 .eraseblocks = { {4 * 1024, 512} },
5124 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
5125 }, {
5126 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
5127 .block_erase = spi_block_erase_52,
5128 }, {
5129 .eraseblocks = { {64 * 1024, 32} },
5130 .block_erase = spi_block_erase_d8,
5131 }, {
5132 .eraseblocks = { {2 * 1024 * 1024, 1} },
5133 .block_erase = spi_block_erase_60,
5134 }, {
5135 .eraseblocks = { {2 * 1024 * 1024, 1} },
5136 .block_erase = spi_block_erase_c7,
5137 },
5138 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005139 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005140 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005141 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005142 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005143 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005144 },
5145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005146 {
5147 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005148 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005149 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005150 .manufacture_id = MACRONIX_ID,
5151 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005152 .total_size = 2048,
5153 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005154 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005155 .tested = TEST_UNTESTED,
5156 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005157 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005158 .block_erasers =
5159 {
5160 {
5161 .eraseblocks = { {4 * 1024, 512} },
5162 .block_erase = spi_block_erase_20,
5163 }, {
5164 .eraseblocks = { {64 * 1024, 32} },
5165 .block_erase = spi_block_erase_d8,
5166 }, {
5167 .eraseblocks = { {2 * 1024 * 1024, 1} },
5168 .block_erase = spi_block_erase_60,
5169 }, {
5170 .eraseblocks = { {2 * 1024 * 1024, 1} },
5171 .block_erase = spi_block_erase_c7,
5172 }
5173 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005174 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005175 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005176 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005177 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005178 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005179 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00005180
Stephan Guillouxf5c70902009-04-19 23:04:00 +00005181 {
5182 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00005183 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005184 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005185 .manufacture_id = MACRONIX_ID,
5186 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00005187 .total_size = 2048,
5188 .page_size = 256,
5189 .feature_bits = FEATURE_WRSR_WREN,
5190 .tested = TEST_UNTESTED,
5191 .probe = probe_spi_rdid,
5192 .probe_timing = TIMING_ZERO,
5193 .block_erasers =
5194 {
5195 {
5196 .eraseblocks = { {4 * 1024, 512} },
5197 .block_erase = spi_block_erase_20,
5198 }, {
5199 .eraseblocks = { {64 * 1024, 32} },
5200 .block_erase = spi_block_erase_d8,
5201 }, {
5202 .eraseblocks = { {2 * 1024 * 1024, 1} },
5203 .block_erase = spi_block_erase_60,
5204 }, {
5205 .eraseblocks = { {2 * 1024 * 1024, 1} },
5206 .block_erase = spi_block_erase_c7,
5207 }
5208 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005209 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Stephan Guilloux3611b802010-09-13 19:59:28 +00005210 .unlock = spi_disable_blockprotect,
5211 .write = spi_chip_write_256,
5212 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005213 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00005214 },
5215
5216 {
5217 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005218 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005219 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005220 .manufacture_id = MACRONIX_ID,
5221 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005222 .total_size = 4096,
5223 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005224 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00005225 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005226 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005227 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005228 .block_erasers =
5229 {
5230 {
5231 .eraseblocks = { {4 * 1024, 1024} },
5232 .block_erase = spi_block_erase_20,
5233 }, {
5234 .eraseblocks = { {4 * 1024, 1024} },
5235 .block_erase = spi_block_erase_d8,
5236 }, {
5237 .eraseblocks = { {4 * 1024 * 1024, 1} },
5238 .block_erase = spi_block_erase_60,
5239 }, {
5240 .eraseblocks = { {4 * 1024 * 1024, 1} },
5241 .block_erase = spi_block_erase_c7,
5242 },
5243 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005244 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005245 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005246 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005247 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005248 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005249 },
5250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005251 {
5252 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005253 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005254 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005255 .manufacture_id = MACRONIX_ID,
5256 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005257 .total_size = 4096,
5258 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005259 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005260 .tested = TEST_UNTESTED,
5261 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005262 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005263 .block_erasers =
5264 {
5265 {
5266 .eraseblocks = { {4 * 1024, 1024} },
5267 .block_erase = spi_block_erase_20,
5268 }, {
5269 .eraseblocks = { {64 * 1024, 64} },
5270 .block_erase = spi_block_erase_d8,
5271 }, {
5272 .eraseblocks = { {4 * 1024 * 1024, 1} },
5273 .block_erase = spi_block_erase_60,
5274 }, {
5275 .eraseblocks = { {4 * 1024 * 1024, 1} },
5276 .block_erase = spi_block_erase_c7,
5277 }
5278 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005279 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005280 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005281 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005282 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005283 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00005284 },
5285
5286 {
5287 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005288 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005289 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005290 .manufacture_id = MACRONIX_ID,
5291 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005292 .total_size = 8192,
5293 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005294 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005297 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005298 .block_erasers =
5299 {
5300 {
5301 .eraseblocks = { {64 * 1024, 128} },
5302 .block_erase = spi_block_erase_20,
5303 }, {
5304 .eraseblocks = { {64 * 1024, 128} },
5305 .block_erase = spi_block_erase_d8,
5306 }, {
5307 .eraseblocks = { {8 * 1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_60,
5309 }, {
5310 .eraseblocks = { {8 * 1024 * 1024, 1} },
5311 .block_erase = spi_block_erase_c7,
5312 }
5313 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005314 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005315 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005316 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005317 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005318 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005319 },
5320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005321 {
5322 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005323 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005324 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005325 .manufacture_id = MACRONIX_ID,
5326 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005327 .total_size = 16384,
5328 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005329 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunereb582572012-09-21 12:52:50 +00005330 .tested = TEST_OK_PROBE,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005331 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005332 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005333 .block_erasers =
5334 {
5335 {
5336 .eraseblocks = { {4 * 1024, 4096} },
5337 .block_erase = spi_block_erase_20,
5338 }, {
5339 .eraseblocks = { {64 * 1024, 256} },
5340 .block_erase = spi_block_erase_d8,
5341 }, {
5342 .eraseblocks = { {16 * 1024 * 1024, 1} },
5343 .block_erase = spi_block_erase_60,
5344 }, {
5345 .eraseblocks = { {16 * 1024 * 1024, 1} },
5346 .block_erase = spi_block_erase_c7,
5347 }
5348 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005349 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005350 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005351 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005352 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005353 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00005354 },
5355
5356 {
5357 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00005358 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005359 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005360 .manufacture_id = MACRONIX_ID,
5361 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005362 .total_size = 128,
5363 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005364 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5365 .tested = TEST_UNTESTED,
5366 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005367 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005368 .block_erasers =
5369 {
5370 {
5371 .eraseblocks = {
5372 {8 * 1024, 1},
5373 {4 * 1024, 2},
5374 {8 * 1024, 2},
5375 {32 * 1024, 1},
5376 {64 * 1024, 1},
5377 },
Sean Nelson35727f72010-01-28 23:55:12 +00005378 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005379 }, {
5380 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005381 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005382 }
5383 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005384 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005385 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005386 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005387 },
5388
5389 {
5390 .vendor = "Macronix",
5391 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005392 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005393 .manufacture_id = MACRONIX_ID,
5394 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005395 .total_size = 128,
5396 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005397 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00005398 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005399 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005401 .block_erasers =
5402 {
5403 {
5404 .eraseblocks = {
5405 {64 * 1024, 1},
5406 {32 * 1024, 1},
5407 {8 * 1024, 2},
5408 {4 * 1024, 2},
5409 {8 * 1024, 1},
5410 },
Sean Nelson35727f72010-01-28 23:55:12 +00005411 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005412 }, {
5413 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005414 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005415 }
5416 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005417 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00005418 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005419 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00005420 },
5421
5422 {
5423 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005424 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005425 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005426 .manufacture_id = MACRONIX_ID,
5427 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005428 .total_size = 256,
5429 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005431 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005432 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005433 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005434 .block_erasers =
5435 {
5436 {
5437 .eraseblocks = {
5438 {16 * 1024, 1},
5439 {8 * 1024, 2},
5440 {32 * 1024, 1},
5441 {64 * 1024, 3},
5442 },
Sean Nelson35727f72010-01-28 23:55:12 +00005443 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005444 }, {
5445 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005446 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005447 },
5448 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005449 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005450 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005451 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005452 },
5453
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005454 {
5455 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005456 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005457 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005458 .manufacture_id = MACRONIX_ID,
5459 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005460 .total_size = 256,
5461 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005463 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005464 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005465 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005466 .block_erasers =
5467 {
5468 {
5469 .eraseblocks = {
5470 {64 * 1024, 3},
5471 {32 * 1024, 1},
5472 {8 * 1024, 2},
5473 {16 * 1024, 1},
5474 },
Sean Nelson35727f72010-01-28 23:55:12 +00005475 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005476 }, {
5477 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005478 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005479 },
5480 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005481 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005482 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005483 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005484 },
5485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005486 {
5487 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005488 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005489 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005490 .manufacture_id = MACRONIX_ID,
5491 .model_id = MACRONIX_MX29F040,
5492 .total_size = 512,
5493 .page_size = 64 * 1024,
5494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5495 .tested = TEST_UNTESTED,
5496 .probe = probe_jedec,
5497 .probe_timing = TIMING_ZERO,
5498 .block_erasers =
5499 {
5500 {
5501 .eraseblocks = { {64 * 1024, 8} },
5502 .block_erase = erase_sector_jedec,
5503 }, {
5504 .eraseblocks = { {512 * 1024, 1} },
5505 .block_erase = erase_chip_block_jedec,
5506 },
5507 },
5508 .write = write_jedec_1,
5509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005510 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005511 },
5512
5513 {
5514 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005515 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005516 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005517 .manufacture_id = MACRONIX_ID,
5518 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .total_size = 512,
5520 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5522 .tested = TEST_UNTESTED,
5523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005524 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005525 .block_erasers =
5526 {
5527 {
5528 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005529 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005530 }, {
5531 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005532 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005533 },
5534 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005537 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005538 },
5539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005540 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005541 .vendor = "MoselVitelic",
5542 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005543 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005544 .manufacture_id = SYNCMOS_MVC_ID,
5545 .model_id = MVC_V29C51000B,
5546 .total_size = 64,
5547 .page_size = 512,
5548 .feature_bits = FEATURE_EITHER_RESET,
5549 .tested = TEST_UNTESTED,
5550 .probe = probe_jedec,
5551 .probe_timing = TIMING_ZERO,
5552 .block_erasers =
5553 {
5554 {
5555 .eraseblocks = { {512, 128} },
5556 .block_erase = erase_sector_jedec,
5557 }, {
5558 .eraseblocks = { {64 * 1024, 1} },
5559 .block_erase = erase_chip_block_jedec,
5560 },
5561 },
5562 .write = write_jedec_1,
5563 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005564 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005565 },
5566
5567 {
5568 .vendor = "MoselVitelic",
5569 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005570 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005571 .manufacture_id = SYNCMOS_MVC_ID,
5572 .model_id = MVC_V29C51000T,
5573 .total_size = 64,
5574 .page_size = 512,
5575 .feature_bits = FEATURE_EITHER_RESET,
5576 .tested = TEST_UNTESTED,
5577 .probe = probe_jedec,
5578 .probe_timing = TIMING_ZERO,
5579 .block_erasers =
5580 {
5581 {
5582 .eraseblocks = { {512, 128} },
5583 .block_erase = erase_sector_jedec,
5584 }, {
5585 .eraseblocks = { {64 * 1024, 1} },
5586 .block_erase = erase_chip_block_jedec,
5587 },
5588 },
5589 .write = write_jedec_1,
5590 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005591 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005592 },
5593
5594 {
5595 .vendor = "MoselVitelic",
5596 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005597 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005598 .manufacture_id = SYNCMOS_MVC_ID,
5599 .model_id = MVC_V29C51400B,
5600 .total_size = 512,
5601 .page_size = 1024,
5602 .feature_bits = FEATURE_EITHER_RESET,
5603 .tested = TEST_UNTESTED,
5604 .probe = probe_jedec,
5605 .probe_timing = TIMING_ZERO,
5606 .block_erasers =
5607 {
5608 {
5609 .eraseblocks = { {1024, 512} },
5610 .block_erase = erase_sector_jedec,
5611 }, {
5612 .eraseblocks = { {512 * 1024, 1} },
5613 .block_erase = erase_chip_block_jedec,
5614 },
5615 },
5616 .write = write_jedec_1,
5617 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005618 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005619 },
5620
5621 {
5622 .vendor = "MoselVitelic",
5623 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005624 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005625 .manufacture_id = SYNCMOS_MVC_ID,
5626 .model_id = MVC_V29C51400T,
5627 .total_size = 512,
5628 .page_size = 1024,
5629 .feature_bits = FEATURE_EITHER_RESET,
5630 .tested = TEST_UNTESTED,
5631 .probe = probe_jedec,
5632 .probe_timing = TIMING_ZERO,
5633 .block_erasers =
5634 {
5635 {
5636 .eraseblocks = { {1024, 512} },
5637 .block_erase = erase_sector_jedec,
5638 }, {
5639 .eraseblocks = { {512 * 1024, 1} },
5640 .block_erase = erase_chip_block_jedec,
5641 },
5642 },
5643 .write = write_jedec_1,
5644 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005645 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005646 },
5647
5648 {
5649 .vendor = "MoselVitelic",
5650 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005651 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005652 .manufacture_id = SYNCMOS_MVC_ID,
5653 .model_id = MVC_V29LC51000,
5654 .total_size = 64,
5655 .page_size = 512,
5656 .feature_bits = FEATURE_EITHER_RESET,
5657 .tested = TEST_UNTESTED,
5658 .probe = probe_jedec,
5659 .probe_timing = TIMING_ZERO,
5660 .block_erasers =
5661 {
5662 {
5663 .eraseblocks = { {512, 128} },
5664 .block_erase = erase_sector_jedec,
5665 }, {
5666 .eraseblocks = { {64 * 1024, 1} },
5667 .block_erase = erase_chip_block_jedec,
5668 },
5669 },
5670 .write = write_jedec_1,
5671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005672 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005673 },
5674
5675 {
5676 .vendor = "MoselVitelic",
5677 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005678 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005679 .manufacture_id = SYNCMOS_MVC_ID,
5680 .model_id = MVC_V29LC51001,
5681 .total_size = 128,
5682 .page_size = 512,
5683 .feature_bits = FEATURE_EITHER_RESET,
5684 .tested = TEST_UNTESTED,
5685 .probe = probe_jedec,
5686 .probe_timing = TIMING_ZERO,
5687 .block_erasers =
5688 {
5689 {
5690 .eraseblocks = { {512, 256} },
5691 .block_erase = erase_sector_jedec,
5692 }, {
5693 .eraseblocks = { {128 * 1024, 1} },
5694 .block_erase = erase_chip_block_jedec,
5695 },
5696 },
5697 .write = write_jedec_1,
5698 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005699 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005700 },
5701
5702 {
5703 .vendor = "MoselVitelic",
5704 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005705 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005706 .manufacture_id = SYNCMOS_MVC_ID,
5707 .model_id = MVC_V29LC51002,
5708 .total_size = 256,
5709 .page_size = 512,
5710 .feature_bits = FEATURE_EITHER_RESET,
5711 .tested = TEST_UNTESTED,
5712 .probe = probe_jedec,
5713 .probe_timing = TIMING_ZERO,
5714 .block_erasers =
5715 {
5716 {
5717 .eraseblocks = { {512, 512} },
5718 .block_erase = erase_sector_jedec,
5719 }, {
5720 .eraseblocks = { {256 * 1024, 1} },
5721 .block_erase = erase_chip_block_jedec,
5722 },
5723 },
5724 .write = write_jedec_1,
5725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005726 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005727 },
5728
5729 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005730 .vendor = "Numonyx",
5731 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005732 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005733 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005734 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005735 .total_size = 128,
5736 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005737 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005738 .tested = TEST_UNTESTED,
5739 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005740 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005741 .block_erasers =
5742 {
5743 {
5744 .eraseblocks = { {4 * 1024, 32} },
5745 .block_erase = spi_block_erase_20,
5746 }, {
5747 .eraseblocks = { {64 * 1024, 2} },
5748 .block_erase = spi_block_erase_d8,
5749 }, {
5750 .eraseblocks = { {128 * 1024, 1} },
5751 .block_erase = spi_block_erase_c7,
5752 }
5753 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005754 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005755 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005756 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005757 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005758 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005759 },
5760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005761 {
5762 .vendor = "Numonyx",
5763 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005764 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005765 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005766 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005767 .total_size = 256,
5768 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005769 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005770 .tested = TEST_UNTESTED,
5771 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005772 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005773 .block_erasers =
5774 {
5775 {
5776 .eraseblocks = { {4 * 1024, 64} },
5777 .block_erase = spi_block_erase_20,
5778 }, {
5779 .eraseblocks = { {64 * 1024, 4} },
5780 .block_erase = spi_block_erase_d8,
5781 }, {
5782 .eraseblocks = { {256 * 1024, 1} },
5783 .block_erase = spi_block_erase_c7,
5784 }
5785 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005786 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005787 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005791 },
5792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005793 {
5794 .vendor = "Numonyx",
5795 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005797 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005798 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005799 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005800 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005801 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005802 .tested = TEST_UNTESTED,
5803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005804 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005805 .block_erasers =
5806 {
5807 {
5808 .eraseblocks = { {4 * 1024, 128} },
5809 .block_erase = spi_block_erase_20,
5810 }, {
5811 .eraseblocks = { {64 * 1024, 8} },
5812 .block_erase = spi_block_erase_d8,
5813 }, {
5814 .eraseblocks = { {512 * 1024, 1} },
5815 .block_erase = spi_block_erase_c7,
5816 }
5817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005820 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005822 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005823 },
5824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005825 {
5826 .vendor = "Numonyx",
5827 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005828 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005829 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005830 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005831 .total_size = 1024,
5832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005833 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005834 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005835 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005836 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005837 .block_erasers =
5838 {
5839 {
5840 .eraseblocks = { {4 * 1024, 256} },
5841 .block_erase = spi_block_erase_20,
5842 }, {
5843 .eraseblocks = { {64 * 1024, 16} },
5844 .block_erase = spi_block_erase_d8,
5845 }, {
5846 .eraseblocks = { {1024 * 1024, 1} },
5847 .block_erase = spi_block_erase_c7,
5848 }
5849 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005850 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005851 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005852 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005853 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005854 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005855 },
5856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005857 {
5858 .vendor = "Numonyx",
5859 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005860 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005861 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005862 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005863 .total_size = 2048,
5864 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005865 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 .tested = TEST_UNTESTED,
5867 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005868 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005869 .block_erasers =
5870 {
5871 {
5872 .eraseblocks = { {4 * 1024, 512} },
5873 .block_erase = spi_block_erase_20,
5874 }, {
5875 .eraseblocks = { {64 * 1024, 32} },
5876 .block_erase = spi_block_erase_d8,
5877 }, {
5878 .eraseblocks = { {2 * 1024 * 1024, 1} },
5879 .block_erase = spi_block_erase_c7,
5880 }
5881 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005882 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005883 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005884 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005885 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005886 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005887 },
5888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005889 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005890 .vendor = "Numonyx",
Stefan Taunerd956f822012-10-26 16:49:15 +00005891 .name = "N25Q016",
5892 .bustype = BUS_SPI,
5893 .manufacture_id = ST_ID,
5894 .model_id = ST_N25Q016__1E,
5895 .total_size = 2048,
5896 .page_size = 256,
5897 /* supports SFDP */
5898 /* OTP: 64B total; read 0x4B, write 0x42 */
5899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5900 .tested = TEST_UNTESTED,
5901 .probe = probe_spi_rdid,
5902 .probe_timing = TIMING_ZERO,
5903 .block_erasers =
5904 {
5905 {
5906 .eraseblocks = { {4 * 1024, 512} },
5907 .block_erase = spi_block_erase_20,
5908 }, {
5909 .eraseblocks = { {32 * 1024, 64} },
5910 .block_erase = spi_block_erase_52,
5911 }, {
5912 .eraseblocks = { {64 * 1024, 32} },
5913 .block_erase = spi_block_erase_d8,
5914 }, {
5915 .eraseblocks = { {2 * 1024 * 1024, 1} },
5916 .block_erase = spi_block_erase_c7,
5917 }
5918 },
5919 .unlock = spi_disable_blockprotect,
5920 .write = spi_chip_write_256,
5921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5922 .voltage = {1700, 2000},
5923 },
5924
5925 {
5926 .vendor = "Numonyx",
5927 .name = "N25Q032..1E",
5928 .bustype = BUS_SPI,
5929 .manufacture_id = ST_ID,
5930 .model_id = ST_N25Q032__1E,
5931 .total_size = 4096,
5932 .page_size = 256,
5933 /* supports SFDP */
5934 /* OTP: 64B total; read 0x4B, write 0x42 */
5935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5936 .tested = TEST_UNTESTED,
5937 .probe = probe_spi_rdid,
5938 .probe_timing = TIMING_ZERO,
5939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 1024} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {64 * 1024, 64} },
5946 .block_erase = spi_block_erase_d8,
5947 }, {
5948 .eraseblocks = { {4 * 1024 * 1024, 1} },
5949 .block_erase = spi_block_erase_c7,
5950 }
5951 },
5952 .unlock = spi_disable_blockprotect,
5953 .write = spi_chip_write_256,
5954 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5955 .voltage = {1700, 2000},
5956 },
5957
5958 {
5959 .vendor = "Numonyx",
5960 .name = "N25Q032..3E",
5961 .bustype = BUS_SPI,
5962 .manufacture_id = ST_ID,
5963 .model_id = ST_N25Q032__3E,
5964 .total_size = 4096,
5965 .page_size = 256,
5966 /* supports SFDP */
5967 /* OTP: 64B total; read 0x4B, write 0x42 */
5968 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5969 .tested = TEST_UNTESTED,
5970 .probe = probe_spi_rdid,
5971 .probe_timing = TIMING_ZERO,
5972 .block_erasers =
5973 {
5974 {
5975 .eraseblocks = { {4 * 1024, 1024} },
5976 .block_erase = spi_block_erase_20,
5977 }, {
5978 .eraseblocks = { {64 * 1024, 64} },
5979 .block_erase = spi_block_erase_d8,
5980 }, {
5981 .eraseblocks = { {4 * 1024 * 1024, 1} },
5982 .block_erase = spi_block_erase_c7,
5983 }
5984 },
5985 .unlock = spi_disable_blockprotect,
5986 .write = spi_chip_write_256,
5987 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5988 .voltage = {2700, 3600},
5989 },
5990
5991 {
5992 .vendor = "Numonyx",
David Hendricks99f947d2012-10-04 14:41:20 +00005993 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005994 .bustype = BUS_SPI,
5995 .manufacture_id = ST_ID,
David Hendricks99f947d2012-10-04 14:41:20 +00005996 .model_id = ST_N25Q064__1E,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005997 .total_size = 8192,
5998 .page_size = 256,
David Hendricks99f947d2012-10-04 14:41:20 +00005999 /* supports SFDP */
6000 /* OTP: 64B total; read 0x4B, write 0x42 */
6001 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6002 .tested = TEST_UNTESTED,
6003 .probe = probe_spi_rdid,
6004 .probe_timing = TIMING_ZERO,
6005 .block_erasers =
6006 {
6007 {
6008 .eraseblocks = { {4 * 1024, 2048 } },
6009 .block_erase = spi_block_erase_20,
6010 }, {
6011 .eraseblocks = { {64 * 1024, 128} },
6012 .block_erase = spi_block_erase_d8,
6013 }, {
6014 .eraseblocks = { {8 * 1024 * 1024, 1} },
6015 .block_erase = spi_block_erase_c7,
6016 }
6017 },
6018 .unlock = spi_disable_blockprotect,
6019 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006020 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006021 .voltage = {1700, 2000},
6022 },
6023
6024 {
6025 .vendor = "Numonyx",
6026 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
6027 .bustype = BUS_SPI,
6028 .manufacture_id = ST_ID,
6029 .model_id = ST_N25Q064__3E,
6030 .total_size = 8192,
6031 .page_size = 256,
6032 /* supports SFDP */
6033 /* OTP: 64B total; read 0x4B, write 0x42 */
6034 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006035 .tested = TEST_OK_PREW,
6036 .probe = probe_spi_rdid,
6037 .probe_timing = TIMING_ZERO,
6038 .block_erasers =
6039 {
6040 {
6041 .eraseblocks = { {4 * 1024, 2048 } },
6042 .block_erase = spi_block_erase_20,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 128} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {8 * 1024 * 1024, 1} },
6048 .block_erase = spi_block_erase_c7,
6049 }
6050 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006051 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006052 .unlock = spi_disable_blockprotect,
6053 .write = spi_chip_write_256,
Stefan Taunerd956f822012-10-26 16:49:15 +00006054 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
David Hendricks99f947d2012-10-04 14:41:20 +00006055 .voltage = {2700, 3600},
Niklas Söderlundae4294f2012-04-14 21:04:03 +00006056 },
6057
6058 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006059 .vendor = "PMC",
6060 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006061 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006062 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006063 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006064 .total_size = 128,
6065 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006066 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 .tested = TEST_UNTESTED,
6068 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006069 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006070 .block_erasers =
6071 {
6072 {
6073 .eraseblocks = { {4 * 1024, 32} },
6074 .block_erase = spi_block_erase_d7,
6075 }, {
6076 .eraseblocks = { {32 * 1024, 4} },
6077 .block_erase = spi_block_erase_d8,
6078 }, {
6079 .eraseblocks = { {128 * 1024, 1} },
6080 .block_erase = spi_block_erase_c7,
6081 }
6082 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006083 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006084 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006085 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006086 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006087 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006088 },
6089
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006090 {
6091 .vendor = "PMC",
6092 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006093 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006094 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006095 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006096 .total_size = 2048,
6097 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006098 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006099 .tested = TEST_UNTESTED,
6100 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006101 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006102 .block_erasers =
6103 {
6104 {
6105 .eraseblocks = { {4 * 1024, 512} },
6106 .block_erase = spi_block_erase_d7,
6107 }, {
6108 .eraseblocks = { {4 * 1024, 512} },
6109 .block_erase = spi_block_erase_20,
6110 }, {
6111 .eraseblocks = { {64 * 1024, 32} },
6112 .block_erase = spi_block_erase_d8,
6113 }, {
6114 .eraseblocks = { {2 * 1024 * 1024, 1} },
6115 .block_erase = spi_block_erase_60,
6116 }, {
6117 .eraseblocks = { {2 * 1024 * 1024, 1} },
6118 .block_erase = spi_block_erase_c7,
6119 }
6120 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006122 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006123 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006124 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006125 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006126 },
6127
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006128 {
6129 .vendor = "PMC",
6130 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006131 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006132 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006133 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006134 .total_size = 256,
6135 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006136 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006137 .tested = TEST_UNTESTED,
6138 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006139 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006140 .block_erasers =
6141 {
6142 {
6143 .eraseblocks = { {4 * 1024, 64} },
6144 .block_erase = spi_block_erase_d7,
6145 }, {
6146 .eraseblocks = { {64 * 1024, 4} },
6147 .block_erase = spi_block_erase_d8,
6148 }, {
6149 .eraseblocks = { {256 * 1024, 1} },
6150 .block_erase = spi_block_erase_c7,
6151 }
6152 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006153 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006154 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006155 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006156 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006157 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006158 },
6159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006160 {
6161 .vendor = "PMC",
6162 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006163 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006164 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006165 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006166 .total_size = 512,
6167 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006168 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00006169 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006170 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006171 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006172 .block_erasers =
6173 {
6174 {
6175 .eraseblocks = { {4 * 1024, 128} },
6176 .block_erase = spi_block_erase_d7,
6177 }, {
6178 .eraseblocks = { {64 * 1024, 8} },
6179 .block_erase = spi_block_erase_d8,
6180 }, {
6181 .eraseblocks = { {512 * 1024, 1} },
6182 .block_erase = spi_block_erase_c7,
6183 }
6184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006185 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006186 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006187 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006189 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006190 },
6191
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 {
6193 .vendor = "PMC",
6194 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006195 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006197 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006198 .total_size = 1024,
6199 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006200 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006201 .tested = TEST_UNTESTED,
6202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006203 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006204 .block_erasers =
6205 {
6206 {
6207 .eraseblocks = { {4 * 1024, 256} },
6208 .block_erase = spi_block_erase_d7,
6209 }, {
6210 .eraseblocks = { {4 * 1024, 256} },
6211 .block_erase = spi_block_erase_20,
6212 }, {
6213 .eraseblocks = { {64 * 1024, 16} },
6214 .block_erase = spi_block_erase_d8,
6215 }, {
6216 .eraseblocks = { {1024 * 1024, 1} },
6217 .block_erase = spi_block_erase_60,
6218 }, {
6219 .eraseblocks = { {1024 * 1024, 1} },
6220 .block_erase = spi_block_erase_c7,
6221 }
6222 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006223 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006224 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006225 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006226 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006227 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006228 },
6229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006230 {
6231 .vendor = "PMC",
6232 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006233 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006234 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006235 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006236 .total_size = 64,
6237 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006238 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006239 .tested = TEST_UNTESTED,
6240 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006241 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006242 .block_erasers =
6243 {
6244 {
6245 .eraseblocks = { {4 * 1024, 16} },
6246 .block_erase = spi_block_erase_d7,
6247 }, {
6248 .eraseblocks = { {32 * 1024, 2} },
6249 .block_erase = spi_block_erase_d8,
6250 }, {
6251 .eraseblocks = { {64 * 1024, 1} },
6252 .block_erase = spi_block_erase_c7,
6253 }
6254 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006255 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006256 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006257 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006258 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006259 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006260 },
6261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006262 {
6263 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006264 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006265 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006266 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006267 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006268 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006269 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006271 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006272 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00006273 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006274 .block_erasers =
6275 {
6276 {
6277 .eraseblocks = {
6278 {128 * 1024, 1},
6279 {96 * 1024, 1},
6280 {8 * 1024, 2},
6281 {16 * 1024, 1},
6282 },
Sean Nelson35727f72010-01-28 23:55:12 +00006283 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006284 }, {
6285 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006286 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006287 },
6288 },
Sean Nelson35727f72010-01-28 23:55:12 +00006289 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006291 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006292 },
6293
6294 {
6295 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00006296 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006297 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006298 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006299 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006300 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00006301 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006303 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006304 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006305 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00006306 .block_erasers =
6307 {
6308 {
6309 .eraseblocks = {
6310 {16 * 1024, 1},
6311 {8 * 1024, 2},
6312 {96 * 1024, 1},
6313 {128 * 1024, 1},
6314 },
Sean Nelson35727f72010-01-28 23:55:12 +00006315 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006316 }, {
6317 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006318 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00006319 },
6320 },
Sean Nelson35727f72010-01-28 23:55:12 +00006321 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006323 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00006324 },
6325
6326 {
6327 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006328 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006329 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006330 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006331 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006332 .total_size = 128,
6333 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006335 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006336 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006337 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00006338 .block_erasers =
6339 {
6340 {
6341 .eraseblocks = { {4 * 1024, 32} },
6342 .block_erase = erase_sector_jedec,
6343 }, {
6344 .eraseblocks = { {64 * 1024, 2} },
6345 .block_erase = erase_block_jedec,
6346 }, {
6347 .eraseblocks = { {128 * 1024, 1} },
6348 .block_erase = erase_chip_block_jedec,
6349 }
6350 },
Sean Nelson35727f72010-01-28 23:55:12 +00006351 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006352 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006353 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00006354 },
6355
6356 {
6357 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006358 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006359 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006360 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006361 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006362 .total_size = 256,
6363 .page_size = 4096,
6364 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6365 .tested = TEST_UNTESTED,
6366 .probe = probe_jedec,
6367 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6368 .block_erasers =
6369 {
6370 {
6371 .eraseblocks = { {4 * 1024, 64} },
6372 .block_erase = erase_sector_jedec,
6373 }, {
6374 .eraseblocks = { {64 * 1024, 4} },
6375 .block_erase = erase_block_jedec,
6376 }, {
6377 .eraseblocks = { {256 * 1024, 1} },
6378 .block_erase = erase_chip_block_jedec,
6379 }
6380 },
6381 .write = write_jedec_1,
6382 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006383 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006384 },
6385
6386 {
6387 .vendor = "PMC",
6388 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006389 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006390 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006391 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006392 .total_size = 512,
6393 .page_size = 4096,
6394 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006395 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006396 .probe = probe_jedec,
6397 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6398 .block_erasers =
6399 {
6400 {
6401 .eraseblocks = { {4 * 1024, 128} },
6402 .block_erase = erase_sector_jedec,
6403 }, {
6404 .eraseblocks = { {64 * 1024, 8} },
6405 .block_erase = erase_block_jedec,
6406 }, {
6407 .eraseblocks = { {512 * 1024, 1} },
6408 .block_erase = erase_chip_block_jedec,
6409 }
6410 },
6411 .write = write_jedec_1,
6412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006413 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006414 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00006415
6416 {
6417 .vendor = "PMC",
6418 .name = "Pm39LV512",
6419 .bustype = BUS_PARALLEL,
6420 .manufacture_id = PMC_ID_NOPREFIX,
6421 .model_id = PMC_PM39LV512,
6422 .total_size = 64,
6423 .page_size = 4096,
6424 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6425 .tested = TEST_OK_PREW,
6426 .probe = probe_jedec,
6427 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6428 .block_erasers =
6429 {
6430 {
6431 .eraseblocks = { {4 * 1024, 16} },
6432 .block_erase = erase_sector_jedec,
6433 }, {
6434 .eraseblocks = { {64 * 1024, 1} },
6435 .block_erase = erase_block_jedec,
6436 }, {
6437 .eraseblocks = { {64 * 1024, 1} },
6438 .block_erase = erase_chip_block_jedec,
6439 }
6440 },
6441 .write = write_jedec_1,
6442 .read = read_memmapped,
6443 .voltage = {2700, 3600},
6444 },
6445
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00006446 {
6447 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006448 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006449 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006450 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006451 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006452 .total_size = 256,
6453 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006454 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00006455 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006456 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006457 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006458 .block_erasers =
6459 {
6460 {
6461 .eraseblocks = { {4 * 1024, 64} },
6462 .block_erase = erase_sector_jedec,
6463 }, {
6464 .eraseblocks = { {16 * 1024, 16} },
6465 .block_erase = erase_block_jedec,
6466 }, {
6467 .eraseblocks = { {256 * 1024, 1} },
6468 .block_erase = erase_chip_block_jedec,
6469 }
6470 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006471 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006472 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006474 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006475 },
6476
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006477 {
6478 .vendor = "PMC",
6479 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006480 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006481 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006482 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006483 .total_size = 512,
6484 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006485 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006486 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00006487 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006488 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00006489 .block_erasers =
6490 {
6491 {
6492 .eraseblocks = { {4 * 1024, 128} },
6493 .block_erase = erase_sector_jedec,
6494 }, {
6495 .eraseblocks = { {64 * 1024, 8} },
6496 .block_erase = erase_block_jedec,
6497 }, {
6498 .eraseblocks = { {512 * 1024, 1} },
6499 .block_erase = erase_chip_block_jedec,
6500 }
6501 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006502 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00006503 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006505 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006506 },
6507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006508 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00006509 .vendor = "Sanyo",
6510 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006511 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006512 .manufacture_id = SANYO_ID,
6513 .model_id = SANYO_LE25FW203A,
6514 .total_size = 2048,
6515 .page_size = 256,
6516 .tested = TEST_UNTESTED,
6517 .probe = probe_spi_rdid,
6518 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006519 .block_erasers =
6520 {
6521 {
6522 .eraseblocks = { {64 * 1024, 32} },
6523 .block_erase = spi_block_erase_d8,
6524 }, {
6525 .eraseblocks = { {2 * 1024 * 1024, 1} },
6526 .block_erase = spi_block_erase_c7,
6527 }
6528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006530 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00006531 .write = spi_chip_write_256,
6532 .read = spi_chip_read,
6533 },
6534
6535 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006536 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00006537 .name = "LH28F008BJT-BTLZ1",
6538 .bustype = BUS_PARALLEL,
6539 .manufacture_id = SHARP_ID,
6540 .model_id = SHARP_LH28F008BJxxPB,
6541 .total_size = 1024,
6542 .page_size = 64 * 1024,
6543 .tested = TEST_OK_PREW,
6544 .probe = probe_82802ab,
6545 .probe_timing = TIMING_ZERO,
6546 .block_erasers =
6547 {
6548 {
6549 .eraseblocks = {
6550 {8 * 1024, 8},
6551 {64 * 1024, 15}
6552 },
6553 .block_erase = erase_block_82802ab,
6554 }, {
6555 .eraseblocks = { {1024 * 1024, 1} },
6556 .block_erase = erase_sector_49lfxxxc,
6557 }
6558 },
6559 .unlock = unlock_lh28f008bjt,
6560 .write = write_82802ab,
6561 .read = read_memmapped,
6562 .voltage = {2700, 3600},
6563 },
6564
6565 {
6566 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006567 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006568 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006569 .manufacture_id = SHARP_ID,
6570 .model_id = SHARP_LHF00L04,
6571 .total_size = 1024,
6572 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006573 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006574 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006575 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006576 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006577 .block_erasers =
6578 {
6579 {
6580 .eraseblocks = {
6581 {64 * 1024, 15},
6582 {8 * 1024, 8}
6583 },
Sean Nelson28accc22010-03-19 18:47:06 +00006584 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006585 }, {
6586 .eraseblocks = {
6587 {1024 * 1024, 1}
6588 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006589 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00006590 },
6591 },
Sean Nelson28accc22010-03-19 18:47:06 +00006592 .unlock = unlock_82802ab,
6593 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006595 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006596 },
6597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006598 {
6599 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00006600 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006601 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006602 .manufacture_id = SPANSION_ID,
6603 .model_id = SPANSION_S25FL004A,
6604 .total_size = 512,
6605 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006606 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006607 .tested = TEST_UNTESTED,
6608 .probe = probe_spi_rdid,
6609 .probe_timing = TIMING_ZERO,
6610 .block_erasers =
6611 {
6612 {
6613 .eraseblocks = { {64 * 1024, 8} },
6614 .block_erase = spi_block_erase_d8,
6615 }, {
6616 .eraseblocks = { {512 * 1024, 1} },
6617 .block_erase = spi_block_erase_c7,
6618 }
6619 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006621 .unlock = spi_disable_blockprotect,
6622 .write = spi_chip_write_256,
6623 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006624 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006625 },
6626
6627 {
6628 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00006629 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006630 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00006631 .manufacture_id = SPANSION_ID,
6632 .model_id = SPANSION_S25FL008A,
6633 .total_size = 1024,
6634 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006635 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006636 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00006637 .probe = probe_spi_rdid,
6638 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00006639 .block_erasers =
6640 {
6641 {
6642 .eraseblocks = { {64 * 1024, 16} },
6643 .block_erase = spi_block_erase_d8,
6644 }, {
6645 .eraseblocks = { {1024 * 1024, 1} },
6646 .block_erase = spi_block_erase_c7,
6647 }
6648 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006650 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006651 .write = spi_chip_write_256,
6652 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006653 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006654 },
6655
6656 {
6657 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006658 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006659 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006660 .manufacture_id = SPANSION_ID,
6661 .model_id = SPANSION_S25FL016A,
6662 .total_size = 2048,
6663 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006664 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006665 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006667 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006668 .block_erasers =
6669 {
6670 {
6671 .eraseblocks = { {64 * 1024, 32} },
6672 .block_erase = spi_block_erase_d8,
6673 }, {
6674 .eraseblocks = { {2 * 1024 * 1024, 1} },
6675 .block_erase = spi_block_erase_c7,
6676 }
6677 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006678 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006679 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006680 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006681 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006682 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006683 },
6684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006685 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006686 .vendor = "Spansion",
6687 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006688 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006689 .manufacture_id = SPANSION_ID,
6690 .model_id = SPANSION_S25FL032A,
6691 .total_size = 4096,
6692 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006693 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006694 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006695 .probe = probe_spi_rdid,
6696 .probe_timing = TIMING_ZERO,
6697 .block_erasers =
6698 {
6699 {
6700 .eraseblocks = { {64 * 1024, 64} },
6701 .block_erase = spi_block_erase_d8,
6702 }, {
6703 .eraseblocks = { {4 * 1024 * 1024, 1} },
6704 .block_erase = spi_block_erase_c7,
6705 }
6706 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006707 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006708 .unlock = spi_disable_blockprotect,
6709 .write = spi_chip_write_256,
6710 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006711 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006712 },
6713
6714 {
6715 .vendor = "Spansion",
6716 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006717 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006718 .manufacture_id = SPANSION_ID,
6719 .model_id = SPANSION_S25FL064A,
6720 .total_size = 8192,
6721 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006722 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006723 .tested = TEST_OK_PREW,
6724 .probe = probe_spi_rdid,
6725 .probe_timing = TIMING_ZERO,
6726 .block_erasers =
6727 {
6728 {
6729 .eraseblocks = { {64 * 1024, 128} },
6730 .block_erase = spi_block_erase_d8,
6731 }, {
6732 .eraseblocks = { {8 * 1024 * 1024, 1} },
6733 .block_erase = spi_block_erase_c7,
6734 }
6735 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006736 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00006737 .unlock = spi_disable_blockprotect,
6738 .write = spi_chip_write_256,
6739 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006740 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006741 },
6742
6743 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006744 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006745 .name = "SST25LF040A",
6746 .bustype = BUS_SPI,
6747 .manufacture_id = SST_ID,
6748 .model_id = SST_SST25VF040_REMS,
6749 .total_size = 512,
6750 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006751 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006752 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006753 .probe = probe_spi_res2,
6754 .probe_timing = TIMING_ZERO,
6755 .block_erasers =
6756 {
6757 {
6758 .eraseblocks = { {4 * 1024, 128} },
6759 .block_erase = spi_block_erase_20,
6760 }, {
6761 .eraseblocks = { {32 * 1024, 16} },
6762 .block_erase = spi_block_erase_52,
6763 }, {
6764 .eraseblocks = { {512 * 1024, 1} },
6765 .block_erase = spi_block_erase_60,
6766 },
6767 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006768 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00006769 .unlock = spi_disable_blockprotect,
6770 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6771 .read = spi_chip_read,
6772 .voltage = {3000, 3600},
6773 },
6774
6775 {
6776 .vendor = "SST",
6777 .name = "SST25LF080A",
6778 .bustype = BUS_SPI,
6779 .manufacture_id = SST_ID,
6780 .model_id = SST_SST25VF080_REMS,
6781 .total_size = 1024,
6782 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006783 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006784 .tested = TEST_UNTESTED,
6785 .probe = probe_spi_res2,
6786 .probe_timing = TIMING_ZERO,
6787 .block_erasers =
6788 {
6789 {
6790 .eraseblocks = { {4 * 1024, 256} },
6791 .block_erase = spi_block_erase_20,
6792 }, {
6793 .eraseblocks = { {32 * 1024, 32} },
6794 .block_erase = spi_block_erase_52,
6795 }, {
6796 .eraseblocks = { {1024 * 1024, 1} },
6797 .block_erase = spi_block_erase_60,
6798 },
6799 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006800 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00006801 .unlock = spi_disable_blockprotect,
6802 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6803 .read = spi_chip_read,
6804 .voltage = {3000, 3600},
6805 },
6806
6807 {
6808 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006809 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006810 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006811 .manufacture_id = SST_ID,
6812 .model_id = SST_SST25VF010_REMS,
6813 .total_size = 128,
6814 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006815 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006816 .tested = TEST_OK_PREW,
6817 .probe = probe_spi_rems,
6818 .probe_timing = TIMING_ZERO,
6819 .block_erasers =
6820 {
6821 {
6822 .eraseblocks = { {4 * 1024, 32} },
6823 .block_erase = spi_block_erase_20,
6824 }, {
6825 .eraseblocks = { {32 * 1024, 4} },
6826 .block_erase = spi_block_erase_52,
6827 }, {
6828 .eraseblocks = { {128 * 1024, 1} },
6829 .block_erase = spi_block_erase_60,
6830 },
6831 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006832 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00006833 .unlock = spi_disable_blockprotect,
6834 .write = spi_chip_write_1,
6835 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006836 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006837 },
6838
6839 {
6840 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006841 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006842 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006843 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006844 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006845 .total_size = 2048,
6846 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006847 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006848 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006849 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006850 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006851 .block_erasers =
6852 {
6853 {
6854 .eraseblocks = { {4 * 1024, 512} },
6855 .block_erase = spi_block_erase_20,
6856 }, {
6857 .eraseblocks = { {32 * 1024, 64} },
6858 .block_erase = spi_block_erase_52,
6859 }, {
6860 .eraseblocks = { {64 * 1024, 32} },
6861 .block_erase = spi_block_erase_d8,
6862 }, {
6863 .eraseblocks = { {2 * 1024 * 1024, 1} },
6864 .block_erase = spi_block_erase_60,
6865 }, {
6866 .eraseblocks = { {2 * 1024 * 1024, 1} },
6867 .block_erase = spi_block_erase_c7,
6868 },
6869 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006870 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006871 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006872 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006873 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006874 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006875 },
6876
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006877 {
6878 .vendor = "SST",
6879 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006880 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006881 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006882 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006883 .total_size = 4096,
6884 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006885 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006886 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006887 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006888 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006889 .block_erasers =
6890 {
6891 {
6892 .eraseblocks = { {4 * 1024, 1024} },
6893 .block_erase = spi_block_erase_20,
6894 }, {
6895 .eraseblocks = { {32 * 1024, 128} },
6896 .block_erase = spi_block_erase_52,
6897 }, {
6898 .eraseblocks = { {64 * 1024, 64} },
6899 .block_erase = spi_block_erase_d8,
6900 }, {
6901 .eraseblocks = { {4 * 1024 * 1024, 1} },
6902 .block_erase = spi_block_erase_60,
6903 }, {
6904 .eraseblocks = { {4 * 1024 * 1024, 1} },
6905 .block_erase = spi_block_erase_c7,
6906 },
6907 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006908 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006909 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006910 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006911 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006912 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006913 },
6914
6915 {
6916 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006917 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006918 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006919 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006920 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006921 .total_size = 8192,
6922 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006923 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006924 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006925 .probe = probe_spi_rdid,
6926 .probe_timing = TIMING_ZERO,
6927 .block_erasers =
6928 {
6929 {
6930 .eraseblocks = { {4 * 1024, 2048} },
6931 .block_erase = spi_block_erase_20,
6932 }, {
6933 .eraseblocks = { {32 * 1024, 256} },
6934 .block_erase = spi_block_erase_52,
6935 }, {
6936 .eraseblocks = { {64 * 1024, 128} },
6937 .block_erase = spi_block_erase_d8,
6938 }, {
6939 .eraseblocks = { {8 * 1024 * 1024, 1} },
6940 .block_erase = spi_block_erase_60,
6941 }, {
6942 .eraseblocks = { {8 * 1024 * 1024, 1} },
6943 .block_erase = spi_block_erase_c7,
6944 },
6945 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006946 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006947 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006948 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006949 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006950 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006951 },
6952
6953 {
6954 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006955 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006956 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006957 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006958 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006959 .total_size = 512,
6960 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006961 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006962 .tested = TEST_OK_PR,
6963 .probe = probe_spi_rems,
6964 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006965 .block_erasers =
6966 {
6967 {
6968 .eraseblocks = { {4 * 1024, 128} },
6969 .block_erase = spi_block_erase_20,
6970 }, {
6971 .eraseblocks = { {32 * 1024, 16} },
6972 .block_erase = spi_block_erase_52,
6973 }, {
6974 .eraseblocks = { {512 * 1024, 1} },
6975 .block_erase = spi_block_erase_60,
6976 },
6977 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006978 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006979 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006980 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006981 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006982 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006983 },
6984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006985 {
6986 .vendor = "SST",
6987 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006988 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006989 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006990 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006991 .total_size = 512,
6992 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006993 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006994 .tested = TEST_UNTESTED,
6995 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006996 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006997 .block_erasers =
6998 {
6999 {
7000 .eraseblocks = { {4 * 1024, 128} },
7001 .block_erase = spi_block_erase_20,
7002 }, {
7003 .eraseblocks = { {32 * 1024, 16} },
7004 .block_erase = spi_block_erase_52,
7005 }, {
7006 .eraseblocks = { {64 * 1024, 8} },
7007 .block_erase = spi_block_erase_d8,
7008 }, {
7009 .eraseblocks = { {512 * 1024, 1} },
7010 .block_erase = spi_block_erase_60,
7011 }, {
7012 .eraseblocks = { {512 * 1024, 1} },
7013 .block_erase = spi_block_erase_c7,
7014 },
7015 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007016 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007017 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007018 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00007019 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007020 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00007021 },
7022
7023 {
7024 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00007025 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007026 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007027 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007028 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00007029 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007030 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007031 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00007032 .tested = TEST_OK_PR,
7033 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007034 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007035 .block_erasers =
7036 {
7037 {
7038 .eraseblocks = { {4 * 1024, 128} },
7039 .block_erase = spi_block_erase_20,
7040 }, {
7041 .eraseblocks = { {32 * 1024, 16} },
7042 .block_erase = spi_block_erase_52,
7043 }, {
7044 .eraseblocks = { {64 * 1024, 8} },
7045 .block_erase = spi_block_erase_d8,
7046 }, {
7047 .eraseblocks = { {512 * 1024, 1} },
7048 .block_erase = spi_block_erase_60,
7049 }, {
7050 .eraseblocks = { {512 * 1024, 1} },
7051 .block_erase = spi_block_erase_c7,
7052 },
7053 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007054 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007055 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007056 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00007057 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007058 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00007059 },
7060
7061 {
7062 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007063 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007064 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007065 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007066 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007067 .total_size = 1024,
7068 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007069 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00007070 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007071 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007072 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00007073 .block_erasers =
7074 {
7075 {
7076 .eraseblocks = { {4 * 1024, 256} },
7077 .block_erase = spi_block_erase_20,
7078 }, {
7079 .eraseblocks = { {32 * 1024, 32} },
7080 .block_erase = spi_block_erase_52,
7081 }, {
7082 .eraseblocks = { {64 * 1024, 16} },
7083 .block_erase = spi_block_erase_d8,
7084 }, {
7085 .eraseblocks = { {1024 * 1024, 1} },
7086 .block_erase = spi_block_erase_60,
7087 }, {
7088 .eraseblocks = { {1024 * 1024, 1} },
7089 .block_erase = spi_block_erase_c7,
7090 },
7091 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007092 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007093 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00007094 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007095 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007096 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007097 },
7098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007099 {
7100 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00007101 .name = "SST25WF512",
7102 .bustype = BUS_SPI,
7103 .manufacture_id = SST_ID,
7104 .model_id = SST_SST25WF512,
7105 .total_size = 64,
7106 .page_size = 256,
7107 .feature_bits = FEATURE_WRSR_EITHER,
7108 .tested = TEST_UNTESTED,
7109 .probe = probe_spi_rdid,
7110 .probe_timing = TIMING_ZERO,
7111 .block_erasers =
7112 {
7113 {
7114 .eraseblocks = { {4 * 1024, 16} },
7115 .block_erase = spi_block_erase_20,
7116 }, {
7117 .eraseblocks = { {32 * 1024, 2} },
7118 .block_erase = spi_block_erase_52,
7119 }, {
7120 .eraseblocks = { {1024 * 64, 1} },
7121 .block_erase = spi_block_erase_60,
7122 }, {
7123 .eraseblocks = { {1024 * 64, 1} },
7124 .block_erase = spi_block_erase_c7,
7125 },
7126 },
7127 .unlock = spi_disable_blockprotect,
7128 .write = spi_aai_write,
7129 .read = spi_chip_read, /* Fast read (0x0B) supported */
7130 .voltage = {1650, 1950},
7131 },
7132
7133 {
7134 .vendor = "SST",
7135 .name = "SST25WF010",
7136 .bustype = BUS_SPI,
7137 .manufacture_id = SST_ID,
7138 .model_id = SST_SST25WF010,
7139 .total_size = 128,
7140 .page_size = 256,
7141 .feature_bits = FEATURE_WRSR_EITHER,
7142 .tested = TEST_UNTESTED,
7143 .probe = probe_spi_rdid,
7144 .probe_timing = TIMING_ZERO,
7145 .block_erasers =
7146 {
7147 {
7148 .eraseblocks = { {4 * 1024, 32} },
7149 .block_erase = spi_block_erase_20,
7150 }, {
7151 .eraseblocks = { {32 * 1024, 4} },
7152 .block_erase = spi_block_erase_52,
7153 }, {
7154 .eraseblocks = { {1024 * 128, 1} },
7155 .block_erase = spi_block_erase_60,
7156 }, {
7157 .eraseblocks = { {1024 * 128, 1} },
7158 .block_erase = spi_block_erase_c7,
7159 },
7160 },
7161 .unlock = spi_disable_blockprotect,
7162 .write = spi_aai_write,
7163 .read = spi_chip_read, /* Fast read (0x0B) supported */
7164 .voltage = {1650, 1950},
7165 },
7166
7167 {
7168 .vendor = "SST",
7169 .name = "SST25WF020",
7170 .bustype = BUS_SPI,
7171 .manufacture_id = SST_ID,
7172 .model_id = SST_SST25WF020,
7173 .total_size = 256,
7174 .page_size = 256,
7175 .feature_bits = FEATURE_WRSR_EITHER,
7176 .tested = TEST_UNTESTED,
7177 .probe = probe_spi_rdid,
7178 .probe_timing = TIMING_ZERO,
7179 .block_erasers =
7180 {
7181 {
7182 .eraseblocks = { {4 * 1024, 64} },
7183 .block_erase = spi_block_erase_20,
7184 }, {
7185 .eraseblocks = { {32 * 1024, 8} },
7186 .block_erase = spi_block_erase_52,
7187 }, {
7188 .eraseblocks = { {64 * 1024, 4} },
7189 .block_erase = spi_block_erase_d8,
7190 }, {
7191 .eraseblocks = { {1024 * 256, 1} },
7192 .block_erase = spi_block_erase_60,
7193 }, {
7194 .eraseblocks = { {1024 * 256, 1} },
7195 .block_erase = spi_block_erase_c7,
7196 },
7197 },
7198 .unlock = spi_disable_blockprotect,
7199 .write = spi_aai_write,
7200 .read = spi_chip_read, /* Fast read (0x0B) supported */
7201 .voltage = {1650, 1950},
7202 },
7203
7204 {
7205 .vendor = "SST",
7206 .name = "SST25WF040",
7207 .bustype = BUS_SPI,
7208 .manufacture_id = SST_ID,
7209 .model_id = SST_SST25WF040,
7210 .total_size = 512,
7211 .page_size = 256,
7212 .feature_bits = FEATURE_WRSR_EITHER,
7213 .tested = TEST_UNTESTED,
7214 .probe = probe_spi_rdid,
7215 .probe_timing = TIMING_ZERO,
7216 .block_erasers =
7217 {
7218 {
7219 .eraseblocks = { {4 * 1024, 128} },
7220 .block_erase = spi_block_erase_20,
7221 }, {
7222 .eraseblocks = { {32 * 1024, 16} },
7223 .block_erase = spi_block_erase_52,
7224 }, {
7225 .eraseblocks = { {64 * 1024, 8} },
7226 .block_erase = spi_block_erase_d8,
7227 }, {
7228 .eraseblocks = { {1024 * 512, 1} },
7229 .block_erase = spi_block_erase_60,
7230 }, {
7231 .eraseblocks = { {1024 * 512, 1} },
7232 .block_erase = spi_block_erase_c7,
7233 },
7234 },
7235 .unlock = spi_disable_blockprotect,
7236 .write = spi_aai_write,
7237 .read = spi_chip_read, /* Fast read (0x0B) supported */
7238 .voltage = {1650, 1950},
7239 },
7240
7241 {
7242 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007243 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007244 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007245 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007246 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007247 .total_size = 512,
7248 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007249 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007250 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007251 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007252 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007253 .block_erasers =
7254 {
7255 {
7256 .eraseblocks = { {128, 4096} },
7257 .block_erase = erase_sector_28sf040,
7258 }, {
7259 .eraseblocks = { {512 * 1024, 1} },
7260 .block_erase = erase_chip_28sf040,
7261 }
7262 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007263 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007264 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007266 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007267 },
7268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007269 {
7270 .vendor = "SST",
7271 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007273 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007274 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007275 .total_size = 128,
7276 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007277 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007278 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007279 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007280 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007281 .block_erasers =
7282 {
7283 {
7284 .eraseblocks = { {128 * 1024, 1} },
7285 .block_erase = erase_chip_block_jedec,
7286 }
7287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007291 },
7292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 {
7294 .vendor = "SST",
7295 .name = "SST29LE010",
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_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007299 .total_size = 128,
7300 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007302 .tested = TEST_UNTESTED,
7303 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007304 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007305 .block_erasers =
7306 {
7307 {
7308 .eraseblocks = { {128 * 1024, 1} },
7309 .block_erase = erase_chip_block_jedec,
7310 }
7311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007314 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007315 },
7316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007317 {
7318 .vendor = "SST",
7319 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007320 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007321 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007322 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007323 .total_size = 256,
7324 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007325 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007326 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007327 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007328 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007329 .block_erasers =
7330 {
7331 {
7332 .eraseblocks = { {256 * 1024, 1} },
7333 .block_erase = erase_chip_block_jedec,
7334 }
7335 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007336 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007338 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007339 },
7340
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007341 {
7342 .vendor = "SST",
7343 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007344 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007345 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007346 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007347 .total_size = 256,
7348 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007349 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007350 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007351 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007352 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007353 .block_erasers =
7354 {
7355 {
7356 .eraseblocks = { {256 * 1024, 1} },
7357 .block_erase = erase_chip_block_jedec,
7358 }
7359 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007360 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007361 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007362 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007363 },
7364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007365 {
7366 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00007367 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007368 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007369 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007370 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007371 .total_size = 64,
7372 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007373 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00007374 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007375 .probe = probe_jedec,
7376 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00007377 .block_erasers =
7378 {
7379 {
7380 .eraseblocks = { {4 * 1024, 16} },
7381 .block_erase = erase_sector_jedec,
7382 }, {
7383 .eraseblocks = { {64 * 1024, 1} },
7384 .block_erase = erase_chip_block_jedec,
7385 }
7386 },
Sean Nelson35727f72010-01-28 23:55:12 +00007387 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00007388 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007389 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00007390 },
7391
7392 {
7393 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007394 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007395 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007396 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007397 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007398 .total_size = 128,
7399 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007400 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007401 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007402 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007403 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007404 .block_erasers =
7405 {
7406 {
7407 .eraseblocks = { {4 * 1024, 32} },
7408 .block_erase = erase_sector_jedec,
7409 }, {
7410 .eraseblocks = { {128 * 1024, 1} },
7411 .block_erase = erase_chip_block_jedec,
7412 }
7413 },
Sean Nelson35727f72010-01-28 23:55:12 +00007414 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007416 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007417 },
7418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007419 {
7420 .vendor = "SST",
7421 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007422 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007424 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007425 .total_size = 256,
7426 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007427 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007428 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007429 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007430 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007431 .block_erasers =
7432 {
7433 {
7434 .eraseblocks = { {4 * 1024, 64} },
7435 .block_erase = erase_sector_jedec,
7436 }, {
7437 .eraseblocks = { {256 * 1024, 1} },
7438 .block_erase = erase_chip_block_jedec,
7439 }
7440 },
Sean Nelson35727f72010-01-28 23:55:12 +00007441 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007443 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007444 },
7445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007446 {
7447 .vendor = "SST",
7448 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007449 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007450 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007451 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007452 .total_size = 512,
7453 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007454 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007455 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007456 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007457 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007458 .block_erasers =
7459 {
7460 {
7461 .eraseblocks = { {4 * 1024, 128} },
7462 .block_erase = erase_sector_jedec,
7463 }, {
7464 .eraseblocks = { {512 * 1024, 1} },
7465 .block_erase = erase_chip_block_jedec,
7466 }
7467 },
Sean Nelson35727f72010-01-28 23:55:12 +00007468 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007470 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007471 },
7472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007473 {
7474 .vendor = "SST",
7475 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007476 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007477 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007478 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007479 .total_size = 64,
7480 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007481 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007482 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007483 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007484 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007485 .block_erasers =
7486 {
7487 {
7488 .eraseblocks = { {4 * 1024, 16} },
7489 .block_erase = erase_sector_jedec,
7490 }, {
7491 .eraseblocks = { {64 * 1024, 1} },
7492 .block_erase = erase_chip_block_jedec,
7493 }
7494 },
Sean Nelson35727f72010-01-28 23:55:12 +00007495 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007497 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007498 },
7499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007500 {
7501 .vendor = "SST",
7502 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007503 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007504 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007505 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007506 .total_size = 128,
7507 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007508 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00007509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007510 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007511 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007512 .block_erasers =
7513 {
7514 {
7515 .eraseblocks = { {4 * 1024, 32} },
7516 .block_erase = erase_sector_jedec,
7517 }, {
7518 .eraseblocks = { {128 * 1024, 1} },
7519 .block_erase = erase_chip_block_jedec,
7520 }
7521 },
Sean Nelson35727f72010-01-28 23:55:12 +00007522 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007525 },
7526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007527 {
7528 .vendor = "SST",
7529 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007530 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007531 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007532 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007533 .total_size = 256,
7534 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007535 .feature_bits = FEATURE_EITHER_RESET,
7536 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007537 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007538 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007539 .block_erasers =
7540 {
7541 {
7542 .eraseblocks = { {4 * 1024, 64} },
7543 .block_erase = erase_sector_jedec,
7544 }, {
7545 .eraseblocks = { {256 * 1024, 1} },
7546 .block_erase = erase_chip_block_jedec,
7547 }
7548 },
Sean Nelson35727f72010-01-28 23:55:12 +00007549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007552 },
7553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007554 {
7555 .vendor = "SST",
7556 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007557 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007558 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007559 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007560 .total_size = 512,
7561 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007562 .feature_bits = FEATURE_EITHER_RESET,
7563 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007564 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007565 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007566 .block_erasers =
7567 {
7568 {
7569 .eraseblocks = { {4 * 1024, 128} },
7570 .block_erase = erase_sector_jedec,
7571 }, {
7572 .eraseblocks = { {512 * 1024, 1} },
7573 .block_erase = erase_chip_block_jedec,
7574 }
7575 },
Sean Nelson35727f72010-01-28 23:55:12 +00007576 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00007579 },
FENG yu ningff692fb2008-12-08 18:15:10 +00007580
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007581 {
7582 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00007583 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007584 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007585 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007586 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00007587 .total_size = 1024,
7588 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007589 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00007590 .tested = TEST_UNTESTED,
7591 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007592 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007593 .block_erasers =
7594 {
7595 {
7596 .eraseblocks = { {4 * 1024, 256} },
7597 .block_erase = erase_sector_jedec,
7598 }, {
7599 .eraseblocks = { {64 * 1024, 16} },
7600 .block_erase = erase_block_jedec,
7601 }, {
7602 .eraseblocks = { {1024 * 1024, 1} },
7603 .block_erase = erase_chip_block_jedec,
7604 }
7605 },
Sean Nelson35727f72010-01-28 23:55:12 +00007606 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007608 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00007609 },
7610
7611 {
7612 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007613 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007614 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007615 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007616 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007617 .total_size = 256,
7618 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007619 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007620 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007621 .probe = probe_jedec,
7622 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007623 .block_erasers =
7624 {
7625 {
7626 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007627 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007628 }, {
7629 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007630 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007631 }, {
7632 .eraseblocks = { {256 * 1024, 1} },
7633 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7634 }
7635 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007636 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007637 .unlock = unlock_sst_fwhub,
7638 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007640 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007641 },
7642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007643 {
7644 .vendor = "SST",
7645 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007646 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007647 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007648 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007649 .total_size = 384,
7650 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007651 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +00007652 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007653 .probe = probe_jedec,
7654 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007655 .block_erasers =
7656 {
7657 {
7658 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007659 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007660 }, {
7661 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007662 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007663 }, {
7664 .eraseblocks = { {384 * 1024, 1} },
7665 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7666 }
7667 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007668 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007669 .unlock = unlock_sst_fwhub,
7670 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007672 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007673 },
7674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007675 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007676 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
7677 * and is only honored for 64k block erase, but not 4k sector erase.
7678 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007679 .vendor = "SST",
7680 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007681 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007682 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007683 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007684 .total_size = 512,
7685 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007686 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00007687 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007688 .probe = probe_jedec,
7689 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007690 .block_erasers =
7691 {
7692 {
7693 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007694 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007695 }, {
7696 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007697 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007698 }, {
7699 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00007700 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00007701 },
7702 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007703 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007704 .unlock = unlock_sst_fwhub,
7705 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007707 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007708 },
7709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007710 {
7711 .vendor = "SST",
7712 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007713 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007714 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007715 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007716 .total_size = 512,
7717 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007718 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007719 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007720 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007721 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007722 .block_erasers =
7723 {
7724 {
7725 .eraseblocks = { {4 * 1024, 128} },
7726 .block_erase = erase_sector_49lfxxxc,
7727 }, {
7728 .eraseblocks = {
7729 {64 * 1024, 7},
7730 {32 * 1024, 1},
7731 {8 * 1024, 2},
7732 {16 * 1024, 1},
7733 },
Sean Nelson69e58112010-03-23 17:10:28 +00007734 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007735 }
7736 },
Sean Nelson69e58112010-03-23 17:10:28 +00007737 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007738 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007740 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007741 },
7742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007743 {
7744 .vendor = "SST",
7745 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007746 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007747 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007748 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007749 .total_size = 1024,
7750 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007751 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007752 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007753 .probe = probe_jedec,
7754 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007755 .block_erasers =
7756 {
7757 {
7758 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007759 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007760 }, {
7761 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007762 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007763 }, {
7764 .eraseblocks = { {1024 * 1024, 1} },
7765 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
7766 }
7767 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007768 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00007769 .unlock = unlock_sst_fwhub,
7770 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007772 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007773 },
7774
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007775 {
7776 .vendor = "SST",
7777 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007778 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007779 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007780 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007781 .total_size = 1024,
7782 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007783 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007784 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007785 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007786 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007787 .block_erasers =
7788 {
7789 {
7790 .eraseblocks = { {4 * 1024, 256} },
7791 .block_erase = erase_sector_49lfxxxc,
7792 }, {
7793 .eraseblocks = {
7794 {64 * 1024, 15},
7795 {32 * 1024, 1},
7796 {8 * 1024, 2},
7797 {16 * 1024, 1},
7798 },
Sean Nelson69e58112010-03-23 17:10:28 +00007799 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007800 }
7801 },
Sean Nelson69e58112010-03-23 17:10:28 +00007802 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007803 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007805 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007806 },
7807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007808 {
7809 .vendor = "SST",
7810 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007811 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007812 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007813 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007814 .total_size = 2048,
7815 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007816 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007817 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007818 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007819 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007820 .block_erasers =
7821 {
7822 {
7823 .eraseblocks = { {4 * 1024, 512} },
7824 .block_erase = erase_sector_49lfxxxc,
7825 }, {
7826 .eraseblocks = {
7827 {64 * 1024, 31},
7828 {32 * 1024, 1},
7829 {8 * 1024, 2},
7830 {16 * 1024, 1},
7831 },
Sean Nelson69e58112010-03-23 17:10:28 +00007832 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007833 }
7834 },
Sean Nelson69e58112010-03-23 17:10:28 +00007835 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007836 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007837 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007838 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007839 },
7840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007841 {
7842 .vendor = "SST",
7843 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007844 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007845 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007846 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007847 .total_size = 256,
7848 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007849 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007850 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007851 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007852 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007853 .block_erasers =
7854 {
7855 {
7856 .eraseblocks = { {4 * 1024, 64} },
7857 .block_erase = erase_sector_jedec,
7858 }, {
7859 .eraseblocks = { {16 * 1024, 16} },
7860 .block_erase = erase_block_jedec,
7861 }, {
7862 .eraseblocks = { {256 * 1024, 1} },
7863 .block_erase = NULL,
7864 }
7865 },
Sean Nelson35727f72010-01-28 23:55:12 +00007866 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007868 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007869 },
7870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007871 {
7872 .vendor = "SST",
7873 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007874 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007875 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007876 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007877 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007878 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007879 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007880 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007881 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007882 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007883 .block_erasers =
7884 {
7885 {
7886 .eraseblocks = { {4 * 1024, 64} },
7887 .block_erase = erase_sector_jedec,
7888 }, {
7889 .eraseblocks = { {16 * 1024, 16} },
7890 .block_erase = erase_block_jedec,
7891 }, {
7892 .eraseblocks = { {256 * 1024, 1} },
7893 .block_erase = NULL,
7894 }
7895 },
Sean Nelson35727f72010-01-28 23:55:12 +00007896 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007898 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007899 },
7900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007901 {
7902 .vendor = "SST",
7903 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007904 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007905 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007906 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007907 .total_size = 512,
7908 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007909 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007910 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007911 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007912 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007913 .block_erasers =
7914 {
7915 {
7916 .eraseblocks = { {4 * 1024, 128} },
7917 .block_erase = erase_sector_jedec,
7918 }, {
7919 .eraseblocks = { {64 * 1024, 8} },
7920 .block_erase = erase_block_jedec,
7921 }, {
7922 .eraseblocks = { {512 * 1024, 1} },
7923 .block_erase = NULL,
7924 }
7925 },
Sean Nelson35727f72010-01-28 23:55:12 +00007926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007928 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007929 },
7930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007931 {
7932 .vendor = "SST",
7933 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007934 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007936 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007937 .total_size = 512,
7938 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007939 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007940 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007941 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007942 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007943 .block_erasers =
7944 {
7945 {
7946 .eraseblocks = { {4 * 1024, 128} },
7947 .block_erase = erase_sector_jedec,
7948 }, {
7949 .eraseblocks = { {64 * 1024, 8} },
7950 .block_erase = erase_block_jedec,
7951 }, {
7952 .eraseblocks = { {512 * 1024, 1} },
7953 .block_erase = NULL,
7954 }
7955 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007956 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007959 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007960 },
7961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007962 {
7963 .vendor = "SST",
7964 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007965 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007966 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007967 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007968 .total_size = 1024,
7969 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007970 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007971 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007972 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007973 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007974 .block_erasers =
7975 {
7976 {
7977 .eraseblocks = { {4 * 1024, 256} },
7978 .block_erase = erase_sector_jedec,
7979 }, {
7980 .eraseblocks = { {64 * 1024, 16} },
7981 .block_erase = erase_block_jedec,
7982 }, {
7983 .eraseblocks = { {1024 * 1024, 1} },
7984 .block_erase = NULL,
7985 }
7986 },
Sean Nelson35727f72010-01-28 23:55:12 +00007987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007990 },
7991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007992 {
7993 .vendor = "SST",
7994 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007995 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007996 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007997 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007998 .total_size = 2048,
7999 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008000 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008001 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008002 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008003 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00008004 .block_erasers =
8005 {
8006 {
8007 .eraseblocks = { {4 * 1024, 512} },
8008 .block_erase = erase_sector_49lfxxxc,
8009 }, {
8010 .eraseblocks = {
8011 {64 * 1024, 31},
8012 {32 * 1024, 1},
8013 {8 * 1024, 2},
8014 {16 * 1024, 1},
8015 },
Sean Nelson69e58112010-03-23 17:10:28 +00008016 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00008017 }
8018 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008019 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008020 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008022 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008023 },
8024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008025 {
8026 .vendor = "ST",
8027 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008028 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008029 .manufacture_id = ST_ID,
8030 .model_id = ST_M25P05A,
8031 .total_size = 64,
8032 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008033 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008034 .tested = TEST_UNTESTED,
8035 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008036 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008037 .block_erasers =
8038 {
8039 {
8040 .eraseblocks = { {32 * 1024, 2} },
8041 .block_erase = spi_block_erase_d8,
8042 }, {
8043 .eraseblocks = { {64 * 1024, 1} },
8044 .block_erase = spi_block_erase_c7,
8045 }
8046 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008047 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008048 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008049 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008050 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008051 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008052 },
8053
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008054 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8055 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008056 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008057 * only is successful if RDID does not work.
8058 */
8059 {
8060 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008061 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008062 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008063 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008064 .model_id = ST_M25P05_RES,
8065 .total_size = 64,
8066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008067 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008068 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008069 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008070 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008071 .block_erasers =
8072 {
8073 {
8074 .eraseblocks = { {32 * 1024, 2} },
8075 .block_erase = spi_block_erase_d8,
8076 }, {
8077 .eraseblocks = { {64 * 1024, 1} },
8078 .block_erase = spi_block_erase_c7,
8079 }
8080 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008081 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008082 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008083 .write = spi_chip_write_1, /* 128 */
8084 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008085 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008086 },
8087
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008088 {
8089 .vendor = "ST",
8090 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008091 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008092 .manufacture_id = ST_ID,
8093 .model_id = ST_M25P10A,
8094 .total_size = 128,
8095 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008096 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008097 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008099 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008100 .block_erasers =
8101 {
8102 {
8103 .eraseblocks = { {32 * 1024, 4} },
8104 .block_erase = spi_block_erase_d8,
8105 }, {
8106 .eraseblocks = { {128 * 1024, 1} },
8107 .block_erase = spi_block_erase_c7,
8108 }
8109 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008110 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008111 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008112 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008113 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008114 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008115 },
8116
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008117 /* The ST M25P10 has the same problem as the M25P05. */
8118 {
8119 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008120 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008121 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008122 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008123 .model_id = ST_M25P10_RES,
8124 .total_size = 128,
8125 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008126 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008127 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008128 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008129 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008130 .block_erasers =
8131 {
8132 {
8133 .eraseblocks = { {32 * 1024, 4} },
8134 .block_erase = spi_block_erase_d8,
8135 }, {
8136 .eraseblocks = { {128 * 1024, 1} },
8137 .block_erase = spi_block_erase_c7,
8138 }
8139 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008140 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008141 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008142 .write = spi_chip_write_1, /* 128 */
8143 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008144 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00008145 },
8146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008147 {
8148 .vendor = "ST",
8149 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008150 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008151 .manufacture_id = ST_ID,
8152 .model_id = ST_M25P20,
8153 .total_size = 256,
8154 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008155 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008156 .tested = TEST_UNTESTED,
8157 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008158 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = { {64 * 1024, 4} },
8163 .block_erase = spi_block_erase_d8,
8164 }, {
8165 .eraseblocks = { {256 * 1024, 1} },
8166 .block_erase = spi_block_erase_c7,
8167 }
8168 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008169 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008170 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008171 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008172 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008173 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008174 },
8175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008176 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008177 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008178 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008179 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008180 .manufacture_id = ST_ID,
8181 .model_id = ST_M25P40,
8182 .total_size = 512,
8183 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008184 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008185 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008186 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008187 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008188 .block_erasers =
8189 {
8190 {
8191 .eraseblocks = { {64 * 1024, 8} },
8192 .block_erase = spi_block_erase_d8,
8193 }, {
8194 .eraseblocks = { {512 * 1024, 1} },
8195 .block_erase = spi_block_erase_c7,
8196 }
8197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008198 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008203 },
8204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008205 {
8206 .vendor = "ST",
8207 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008208 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008209 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008210 .model_id = ST_M25P40_RES,
8211 .total_size = 512,
8212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008213 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008214 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00008215 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008216 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008217 .block_erasers =
8218 {
8219 {
8220 .eraseblocks = { {64 * 1024, 8} },
8221 .block_erase = spi_block_erase_d8,
8222 }, {
8223 .eraseblocks = { {512 * 1024, 1} },
8224 .block_erase = spi_block_erase_c7,
8225 }
8226 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008227 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008228 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008229 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008230 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00008231 },
8232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008233 {
8234 .vendor = "ST",
8235 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008236 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008237 .manufacture_id = ST_ID,
8238 .model_id = ST_M25P80,
8239 .total_size = 1024,
8240 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008241 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00008242 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008243 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008244 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008245 .block_erasers =
8246 {
8247 {
8248 .eraseblocks = { {64 * 1024, 16} },
8249 .block_erase = spi_block_erase_d8,
8250 }, {
8251 .eraseblocks = { {1024 * 1024, 1} },
8252 .block_erase = spi_block_erase_c7,
8253 }
8254 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008255 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008256 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008257 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008258 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008259 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008260 },
8261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008262 {
8263 .vendor = "ST",
8264 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008266 .manufacture_id = ST_ID,
8267 .model_id = ST_M25P16,
8268 .total_size = 2048,
8269 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008270 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008271 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008273 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008274 .block_erasers =
8275 {
8276 {
8277 .eraseblocks = { {64 * 1024, 32} },
8278 .block_erase = spi_block_erase_d8,
8279 }, {
8280 .eraseblocks = { {2 * 1024 * 1024, 1} },
8281 .block_erase = spi_block_erase_c7,
8282 }
8283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008284 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008285 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008286 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008288 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008289 },
8290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008291 {
8292 .vendor = "ST",
8293 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008294 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008295 .manufacture_id = ST_ID,
8296 .model_id = ST_M25P32,
8297 .total_size = 4096,
8298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008299 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008300 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008301 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008302 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008303 .block_erasers =
8304 {
8305 {
8306 .eraseblocks = { {64 * 1024, 64} },
8307 .block_erase = spi_block_erase_d8,
8308 }, {
8309 .eraseblocks = { {4 * 1024 * 1024, 1} },
8310 .block_erase = spi_block_erase_c7,
8311 }
8312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008313 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008314 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008315 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008317 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008318 },
8319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008320 {
8321 .vendor = "ST",
8322 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008323 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008324 .manufacture_id = ST_ID,
8325 .model_id = ST_M25P64,
8326 .total_size = 8192,
8327 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008328 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00008329 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008331 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008332 .block_erasers =
8333 {
8334 {
8335 .eraseblocks = { {64 * 1024, 128} },
8336 .block_erase = spi_block_erase_d8,
8337 }, {
8338 .eraseblocks = { {8 * 1024 * 1024, 1} },
8339 .block_erase = spi_block_erase_c7,
8340 }
8341 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008342 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008343 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008344 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008345 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008346 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008347 },
8348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008349 {
8350 .vendor = "ST",
8351 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008352 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008353 .manufacture_id = ST_ID,
8354 .model_id = ST_M25P128,
8355 .total_size = 16384,
8356 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008357 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008358 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008359 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008360 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008361 .block_erasers =
8362 {
8363 {
8364 .eraseblocks = { {256 * 1024, 64} },
8365 .block_erase = spi_block_erase_d8,
8366 }, {
8367 .eraseblocks = { {16 * 1024 * 1024, 1} },
8368 .block_erase = spi_block_erase_c7,
8369 }
8370 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008371 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008372 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008373 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008374 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008375 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008376 },
8377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008378 {
8379 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00008380 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008381 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008382 .manufacture_id = ST_ID,
8383 .model_id = ST_M25PX16,
8384 .total_size = 2048,
8385 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008386 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00008387 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00008388 .tested = TEST_OK_PREW,
8389 .probe = probe_spi_rdid,
8390 .probe_timing = TIMING_ZERO,
8391 .block_erasers =
8392 {
8393 {
8394 .eraseblocks = { { 4 * 1024, 512 } },
8395 .block_erase = spi_block_erase_20,
8396 }, {
8397 .eraseblocks = { {64 * 1024, 32} },
8398 .block_erase = spi_block_erase_d8,
8399 }, {
8400 .eraseblocks = { {2 * 1024 * 1024, 1} },
8401 .block_erase = spi_block_erase_c7,
8402 }
8403 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008404 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl Worthd1dd72c2011-03-06 18:45:40 +00008405 .unlock = spi_disable_blockprotect,
8406 .write = spi_chip_write_256,
8407 .read = spi_chip_read,
8408 },
8409
8410 {
8411 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00008412 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008413 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008414 .manufacture_id = ST_ID,
8415 .model_id = ST_M25PX32,
8416 .total_size = 4096,
8417 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008418 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008419 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008420 .probe = probe_spi_rdid,
8421 .probe_timing = TIMING_ZERO,
8422 .block_erasers =
8423 {
8424 {
8425 .eraseblocks = { { 4 * 1024, 1024 } },
8426 .block_erase = spi_block_erase_20,
8427 }, {
8428 .eraseblocks = { {64 * 1024, 64} },
8429 .block_erase = spi_block_erase_d8,
8430 }, {
8431 .eraseblocks = { {4 * 1024 * 1024, 1} },
8432 .block_erase = spi_block_erase_c7,
8433 }
8434 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008435 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00008436 .unlock = spi_disable_blockprotect,
8437 .write = spi_chip_write_256,
8438 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008439 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00008440 },
8441
8442 {
8443 .vendor = "ST",
8444 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008445 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008446 .manufacture_id = ST_ID,
8447 .model_id = ST_M25PX64,
8448 .total_size = 8192,
8449 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008450 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008451 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00008452 .probe = probe_spi_rdid,
8453 .probe_timing = TIMING_ZERO,
8454 .block_erasers =
8455 {
8456 {
8457 .eraseblocks = { { 4 * 1024, 2048 } },
8458 .block_erase = spi_block_erase_20,
8459 }, {
8460 .eraseblocks = { {64 * 1024, 128} },
8461 .block_erase = spi_block_erase_d8,
8462 }, {
8463 .eraseblocks = { {8 * 1024 * 1024, 1} },
8464 .block_erase = spi_block_erase_c7,
8465 }
8466 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00008467 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Jason Shriver4119e9b2010-09-14 13:16:01 +00008468 .unlock = spi_disable_blockprotect,
8469 .write = spi_chip_write_256,
8470 .read = spi_chip_read,
8471 },
8472
8473 {
8474 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008475 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008476 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008477 .manufacture_id = ST_ID,
8478 .model_id = ST_M29F002B,
8479 .total_size = 256,
8480 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008481 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008482 .tested = TEST_UNTESTED,
8483 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008484 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008485 .block_erasers =
8486 {
8487 {
8488 .eraseblocks = {
8489 {16 * 1024, 1},
8490 {8 * 1024, 2},
8491 {32 * 1024, 1},
8492 {64 * 1024, 3},
8493 },
8494 .block_erase = erase_sector_jedec,
8495 }, {
8496 .eraseblocks = { {256 * 1024, 1} },
8497 .block_erase = erase_chip_block_jedec,
8498 }
8499 },
Sean Nelson35727f72010-01-28 23:55:12 +00008500 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008501 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008502 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008503 },
8504
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008505 {
8506 .vendor = "ST",
8507 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008508 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008509 .manufacture_id = ST_ID,
8510 .model_id = ST_M29F002T,
8511 .total_size = 256,
8512 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008513 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
8514 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008515 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008516 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008517 .block_erasers =
8518 {
8519 {
8520 .eraseblocks = {
8521 {64 * 1024, 3},
8522 {32 * 1024, 1},
8523 {8 * 1024, 2},
8524 {16 * 1024, 1},
8525 },
8526 .block_erase = erase_sector_jedec,
8527 }, {
8528 .eraseblocks = { {256 * 1024, 1} },
8529 .block_erase = erase_chip_block_jedec,
8530 }
8531 },
Sean Nelson35727f72010-01-28 23:55:12 +00008532 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008533 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008534 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00008535 },
8536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008537 {
8538 .vendor = "ST",
8539 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008540 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008541 .manufacture_id = ST_ID,
8542 .model_id = ST_M29F040B,
8543 .total_size = 512,
8544 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008545 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8546 .tested = TEST_UNTESTED,
8547 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008548 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00008549 .block_erasers =
8550 {
8551 {
8552 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00008553 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008554 }, {
8555 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008556 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00008557 }
8558 },
Sean Nelson35727f72010-01-28 23:55:12 +00008559 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008561 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008562 },
8563
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008564 {
Sean Nelson35727f72010-01-28 23:55:12 +00008565 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008566 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008567 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008568 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008569 .manufacture_id = ST_ID,
8570 .model_id = ST_M29F400BB,
8571 .total_size = 512,
8572 .page_size = 64 * 1024,
8573 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008574 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008575 .probe = probe_m29f400bt,
8576 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
8577 .block_erasers =
8578 {
8579 {
8580 .eraseblocks = {
8581 {16 * 1024, 1},
8582 {8 * 1024, 2},
8583 {32 * 1024, 1},
8584 {64 * 1024, 7},
8585 },
8586 .block_erase = block_erase_m29f400bt,
8587 }, {
8588 .eraseblocks = { {512 * 1024, 1} },
8589 .block_erase = block_erase_chip_m29f400bt,
8590 }
8591 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00008592 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008593 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008594 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008595 },
8596 {
8597 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
8598 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008599 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008600 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008601 .manufacture_id = ST_ID,
8602 .model_id = ST_M29F400BT,
8603 .total_size = 512,
8604 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008605 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008606 .tested = TEST_UNTESTED,
8607 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008608 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008609 .block_erasers =
8610 {
8611 {
8612 .eraseblocks = {
8613 {64 * 1024, 7},
8614 {32 * 1024, 1},
8615 {8 * 1024, 2},
8616 {16 * 1024, 1},
8617 },
8618 .block_erase = block_erase_m29f400bt,
8619 }, {
8620 .eraseblocks = { {512 * 1024, 1} },
8621 .block_erase = block_erase_chip_m29f400bt,
8622 }
8623 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00008624 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008626 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008627 },
8628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008629 {
8630 .vendor = "ST",
8631 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008632 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .manufacture_id = ST_ID,
8634 .model_id = ST_M29W010B,
8635 .total_size = 128,
8636 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008637 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008638 .tested = TEST_UNTESTED,
8639 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008640 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008641 .block_erasers =
8642 {
8643 {
8644 .eraseblocks = { {16 * 1024, 8}, },
8645 .block_erase = erase_sector_jedec,
8646 }, {
8647 .eraseblocks = { {128 * 1024, 1} },
8648 .block_erase = erase_chip_block_jedec,
8649 }
8650 },
Sean Nelson35727f72010-01-28 23:55:12 +00008651 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008653 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008654 },
8655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008656 {
8657 .vendor = "ST",
8658 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008659 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008660 .manufacture_id = ST_ID,
8661 .model_id = ST_M29W040B,
8662 .total_size = 512,
8663 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008664 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008665 .tested = TEST_UNTESTED,
8666 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008667 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008668 .block_erasers =
8669 {
8670 {
8671 .eraseblocks = { {64 * 1024, 8}, },
8672 .block_erase = erase_sector_jedec,
8673 }, {
8674 .eraseblocks = { {512 * 1024, 1} },
8675 .block_erase = erase_chip_block_jedec,
8676 }
8677 },
Sean Nelson35727f72010-01-28 23:55:12 +00008678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008679 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008680 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008681 },
8682
Stefan Taunereb582572012-09-21 12:52:50 +00008683 {
8684 .vendor = "ST",
8685 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008686 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +00008687 .manufacture_id = ST_ID,
8688 .model_id = ST_M29W512B,
8689 .total_size = 64,
8690 .page_size = 64 * 1024,
8691 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008692 .tested = TEST_OK_PRE,
Stefan Taunereb582572012-09-21 12:52:50 +00008693 .probe = probe_jedec,
8694 .probe_timing = TIMING_ZERO,
8695 .block_erasers =
8696 {
8697 {
8698 .eraseblocks = { {64 * 1024, 1} },
8699 .block_erase = erase_chip_block_jedec,
8700 }
8701 },
8702 .write = write_jedec_1,
8703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008704 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +00008705 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00008706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008707 {
8708 .vendor = "ST",
8709 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008710 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008711 .manufacture_id = ST_ID,
8712 .model_id = ST_M50FLW040A,
8713 .total_size = 512,
8714 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008715 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008716 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008717 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008718 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008719 .block_erasers =
8720 {
8721 {
Sean Nelson329bde72010-01-19 16:39:19 +00008722 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008723 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008724 {64 * 1024, 5}, /* block */
8725 {4 * 1024, 16}, /* sector */
8726 {4 * 1024, 16}, /* sector */
8727 },
8728 .block_erase = NULL,
8729 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008730 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008731 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008732 }
8733 },
Sean Nelson28accc22010-03-19 18:47:06 +00008734 .unlock = unlock_stm50flw0x0x,
8735 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008736 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008737 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008738 },
8739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008740 {
8741 .vendor = "ST",
8742 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008743 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008744 .manufacture_id = ST_ID,
8745 .model_id = ST_M50FLW040B,
8746 .total_size = 512,
8747 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008748 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008749 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008750 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008751 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008752 .block_erasers =
8753 {
8754 {
Sean Nelson329bde72010-01-19 16:39:19 +00008755 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008756 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008757 {4 * 1024, 16}, /* sector */
8758 {64 * 1024, 5}, /* block */
8759 {4 * 1024, 16}, /* sector */
8760 },
8761 .block_erase = NULL,
8762 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008763 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008764 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008765 }
8766 },
Sean Nelson28accc22010-03-19 18:47:06 +00008767 .unlock = unlock_stm50flw0x0x,
8768 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008770 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008771 },
8772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008773 {
8774 .vendor = "ST",
8775 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008776 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008777 .manufacture_id = ST_ID,
8778 .model_id = ST_M50FLW080A,
8779 .total_size = 1024,
8780 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008781 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008782 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00008783 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008784 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008785 .block_erasers =
8786 {
8787 {
Sean Nelson329bde72010-01-19 16:39:19 +00008788 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008789 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008790 {64 * 1024, 13}, /* block */
8791 {4 * 1024, 16}, /* sector */
8792 {4 * 1024, 16}, /* sector */
8793 },
8794 .block_erase = NULL,
8795 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008796 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008797 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008798 }
8799 },
Sean Nelson28accc22010-03-19 18:47:06 +00008800 .unlock = unlock_stm50flw0x0x,
8801 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008803 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008804 },
8805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 {
8807 .vendor = "ST",
8808 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008809 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .manufacture_id = ST_ID,
8811 .model_id = ST_M50FLW080B,
8812 .total_size = 1024,
8813 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008814 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008815 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008816 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008817 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008818 .block_erasers =
8819 {
8820 {
Sean Nelson329bde72010-01-19 16:39:19 +00008821 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008822 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008823 {4 * 1024, 16}, /* sector */
8824 {64 * 1024, 13}, /* block */
8825 {4 * 1024, 16}, /* sector */
8826 },
8827 .block_erase = NULL,
8828 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008829 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008830 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008831 }
8832 },
Sean Nelson28accc22010-03-19 18:47:06 +00008833 .unlock = unlock_stm50flw0x0x,
8834 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008835 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008836 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008837 },
8838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008839 {
8840 .vendor = "ST",
8841 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008842 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008843 .manufacture_id = ST_ID,
8844 .model_id = ST_M50FW002,
8845 .total_size = 256,
8846 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008847 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008848 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008849 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008850 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008851 .block_erasers =
8852 {
8853 {
8854 .eraseblocks = {
8855 {64 * 1024, 3},
8856 {32 * 1024, 1},
8857 {8 * 1024, 2},
8858 {16 * 1024, 1},
8859 },
Sean Nelson28accc22010-03-19 18:47:06 +00008860 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008861 }
8862 },
Sean Nelson28accc22010-03-19 18:47:06 +00008863 .unlock = unlock_stm50flw0x0x,
8864 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008866 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008867 },
8868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008869 {
8870 .vendor = "ST",
8871 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008872 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008873 .manufacture_id = ST_ID,
8874 .model_id = ST_M50FW016,
8875 .total_size = 2048,
8876 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008877 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 .tested = TEST_UNTESTED,
8879 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008880 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008881 .block_erasers =
8882 {
8883 {
8884 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008885 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008886 }
8887 },
Sean Nelson28accc22010-03-19 18:47:06 +00008888 .unlock = unlock_stm50flw0x0x,
8889 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008891 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008892 },
8893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008894 {
8895 .vendor = "ST",
8896 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008897 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008898 .manufacture_id = ST_ID,
8899 .model_id = ST_M50FW040,
8900 .total_size = 512,
8901 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008902 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008903 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008904 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008905 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008906 .block_erasers =
8907 {
8908 {
8909 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008910 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008911 }
8912 },
Sean Nelson28accc22010-03-19 18:47:06 +00008913 .unlock = unlock_stm50flw0x0x,
8914 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008916 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008917 },
8918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008919 {
8920 .vendor = "ST",
8921 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008922 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008923 .manufacture_id = ST_ID,
8924 .model_id = ST_M50FW080,
8925 .total_size = 1024,
8926 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008927 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008928 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008929 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008930 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008931 .block_erasers =
8932 {
8933 {
8934 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008935 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008936 }
8937 },
Sean Nelson28accc22010-03-19 18:47:06 +00008938 .unlock = unlock_stm50flw0x0x,
8939 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008940 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008941 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008942 },
8943
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008944 {
8945 .vendor = "ST",
8946 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008947 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008948 .manufacture_id = ST_ID,
8949 .model_id = ST_M50LPW116,
8950 .total_size = 2048,
8951 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008952 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008953 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008954 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008955 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008956 .block_erasers =
8957 {
8958 {
8959 .eraseblocks = {
8960 {4 * 1024, 16},
8961 {64 * 1024, 30},
8962 {32 * 1024, 1},
8963 {8 * 1024, 2},
8964 {16 * 1024, 1},
8965 },
Sean Nelson28accc22010-03-19 18:47:06 +00008966 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008967 }
8968 },
Sean Nelson28accc22010-03-19 18:47:06 +00008969 .unlock = unlock_stm50flw0x0x,
8970 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008972 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008973 },
8974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008975 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008976 .vendor = "SyncMOS/MoselVitelic",
8977 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008978 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008979 .manufacture_id = SYNCMOS_MVC_ID,
8980 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008982 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008983 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008984 .tested = TEST_UNTESTED,
8985 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008987 .block_erasers =
8988 {
8989 {
8990 .eraseblocks = { {512, 256} },
8991 .block_erase = erase_sector_jedec,
8992 }, {
8993 .eraseblocks = { {128 * 1024, 1} },
8994 .block_erase = erase_chip_block_jedec,
8995 },
8996 },
Sean Nelson35727f72010-01-28 23:55:12 +00008997 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008999 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009000 },
9001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009002 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009003 .vendor = "SyncMOS/MoselVitelic",
9004 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009005 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009006 .manufacture_id = SYNCMOS_MVC_ID,
9007 .model_id = SM_MVC_29C51001T,
9008 .total_size = 128,
9009 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00009010 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009011 .tested = TEST_UNTESTED,
9012 .probe = probe_jedec,
9013 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9014 .block_erasers =
9015 {
9016 {
9017 .eraseblocks = { {512, 256} },
9018 .block_erase = erase_sector_jedec,
9019 }, {
9020 .eraseblocks = { {128 * 1024, 1} },
9021 .block_erase = erase_chip_block_jedec,
9022 },
9023 },
9024 .write = write_jedec_1,
9025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009026 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009027 },
9028
9029 {
9030 .vendor = "SyncMOS/MoselVitelic",
9031 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009032 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009033 .manufacture_id = SYNCMOS_MVC_ID,
9034 .model_id = SM_MVC_29C51002B,
9035 .total_size = 256,
9036 .page_size = 512,
9037 .feature_bits = FEATURE_EITHER_RESET,
9038 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009039 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009040 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009041 .block_erasers =
9042 {
9043 {
9044 .eraseblocks = { {512, 512} },
9045 .block_erase = erase_sector_jedec,
9046 }, {
9047 .eraseblocks = { {256 * 1024, 1} },
9048 .block_erase = erase_chip_block_jedec,
9049 },
9050 },
Sean Nelson35727f72010-01-28 23:55:12 +00009051 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009052 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009053 },
9054
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009055 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009056 .vendor = "SyncMOS/MoselVitelic",
9057 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009058 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009059 .manufacture_id = SYNCMOS_MVC_ID,
9060 .model_id = SM_MVC_29C51002T,
9061 .total_size = 256,
9062 .page_size = 512,
9063 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009064 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009065 .probe = probe_jedec,
9066 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9067 .block_erasers =
9068 {
9069 {
9070 .eraseblocks = { {512, 512} },
9071 .block_erase = erase_sector_jedec,
9072 }, {
9073 .eraseblocks = { {256 * 1024, 1} },
9074 .block_erase = erase_chip_block_jedec,
9075 },
9076 },
9077 .write = write_jedec_1,
9078 .read = read_memmapped,
9079 },
9080
9081 {
9082 .vendor = "SyncMOS/MoselVitelic",
9083 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009084 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009085 .manufacture_id = SYNCMOS_MVC_ID,
9086 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009087 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009088 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009089 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009090 .tested = TEST_UNTESTED,
9091 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009092 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00009093 .block_erasers =
9094 {
9095 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009096 .eraseblocks = { {1024, 512} },
9097 .block_erase = erase_sector_jedec,
9098 }, {
9099 .eraseblocks = { {512 * 1024, 1} },
9100 .block_erase = erase_chip_block_jedec,
9101 },
9102 },
9103 .write = write_jedec_1,
9104 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009105 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009106 },
9107
9108 {
9109 .vendor = "SyncMOS/MoselVitelic",
9110 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009112 .manufacture_id = SYNCMOS_MVC_ID,
9113 .model_id = SM_MVC_29C51004T,
9114 .total_size = 512,
9115 .page_size = 1024,
9116 .feature_bits = FEATURE_EITHER_RESET,
9117 .tested = TEST_UNTESTED,
9118 .probe = probe_jedec,
9119 .probe_timing = TIMING_ZERO,
9120 .block_erasers =
9121 {
9122 {
9123 .eraseblocks = { {1024, 512} },
9124 .block_erase = erase_sector_jedec,
9125 }, {
9126 .eraseblocks = { {512 * 1024, 1} },
9127 .block_erase = erase_chip_block_jedec,
9128 },
9129 },
9130 .write = write_jedec_1,
9131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009132 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009133 },
9134
9135 {
9136 .vendor = "SyncMOS/MoselVitelic",
9137 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009138 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009139 .manufacture_id = SYNCMOS_MVC_ID,
9140 .model_id = SM_MVC_29C31004B,
9141 .total_size = 512,
9142 .page_size = 1024,
9143 .feature_bits = FEATURE_EITHER_RESET,
9144 .tested = TEST_UNTESTED,
9145 .probe = probe_jedec,
9146 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9147 .block_erasers =
9148 {
9149 {
9150 .eraseblocks = { {1024, 512} },
9151 .block_erase = erase_sector_jedec,
9152 }, {
9153 .eraseblocks = { {512 * 1024, 1} },
9154 .block_erase = erase_chip_block_jedec,
9155 },
9156 },
9157 .write = write_jedec_1,
9158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009159 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009160 },
9161
9162 {
9163 .vendor = "SyncMOS/MoselVitelic",
9164 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009165 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009166 .manufacture_id = SYNCMOS_MVC_ID,
9167 .model_id = SM_MVC_29C31004T,
9168 .total_size = 512,
9169 .page_size = 1024,
9170 .feature_bits = FEATURE_EITHER_RESET,
9171 .tested = TEST_UNTESTED,
9172 .probe = probe_jedec,
9173 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9174 .block_erasers =
9175 {
9176 {
9177 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00009178 .block_erase = erase_sector_jedec,
9179 }, {
9180 .eraseblocks = { {512 * 1024, 1} },
9181 .block_erase = erase_chip_block_jedec,
9182 },
9183 },
Sean Nelson35727f72010-01-28 23:55:12 +00009184 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009185 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009186 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009187 },
9188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009189 {
Uwe Hermanna106d152009-05-27 23:17:40 +00009190 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009191 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009192 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009193 .manufacture_id = TI_OLD_ID,
9194 .model_id = TI_TMS29F002RB,
9195 .total_size = 256,
9196 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00009197 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009198 .tested = TEST_UNTESTED,
9199 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009200 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009201 .block_erasers =
9202 {
9203 {
9204 .eraseblocks = {
9205 {16 * 1024, 1},
9206 {8 * 1024, 2},
9207 {32 * 1024, 1},
9208 {64 * 1024, 3},
9209 },
9210 .block_erase = erase_sector_jedec,
9211 }, {
9212 .eraseblocks = { {256 * 1024, 1} },
9213 .block_erase = erase_chip_block_jedec,
9214 },
9215 },
Sean Nelson35727f72010-01-28 23:55:12 +00009216 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009217 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009218 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009219 },
9220
9221 {
Uwe Hermanna106d152009-05-27 23:17:40 +00009222 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009223 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009224 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009225 .manufacture_id = TI_OLD_ID,
9226 .model_id = TI_TMS29F002RT,
9227 .total_size = 256,
9228 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00009229 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009230 .tested = TEST_UNTESTED,
9231 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009232 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00009233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = {
9237 {64 * 1024, 3},
9238 {32 * 1024, 1},
9239 {8 * 1024, 2},
9240 {16 * 1024, 1},
9241 },
9242 .block_erase = erase_sector_jedec,
9243 }, {
9244 .eraseblocks = { {256 * 1024, 1} },
9245 .block_erase = erase_chip_block_jedec,
9246 },
9247 },
Sean Nelson35727f72010-01-28 23:55:12 +00009248 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009249 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009250 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00009251 },
9252
9253 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009254 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00009255 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009256 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009257 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009258 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009259 .total_size = 1024,
9260 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009261 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9262 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009263 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009264 .probe = probe_spi_rdid,
9265 .probe_timing = TIMING_ZERO,
9266 .block_erasers =
9267 {
9268 {
9269 .eraseblocks = { {4 * 1024, 256} },
9270 .block_erase = spi_block_erase_20,
9271 }, {
9272 .eraseblocks = { {32 * 1024, 32} },
9273 .block_erase = spi_block_erase_52,
9274 }, {
9275 .eraseblocks = { {64 * 1024, 16} },
9276 .block_erase = spi_block_erase_d8,
9277 }, {
9278 .eraseblocks = { {1024 * 1024, 1} },
9279 .block_erase = spi_block_erase_60,
9280 }, {
9281 .eraseblocks = { {1024 * 1024, 1} },
9282 .block_erase = spi_block_erase_c7,
9283 }
9284 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009285 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009286 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009287 .write = spi_chip_write_256,
9288 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009289 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009290 },
9291
9292 {
9293 .vendor = "Winbond",
9294 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009295 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009296 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009297 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009298 .total_size = 2048,
9299 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009300 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00009302 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009303 .probe = probe_spi_rdid,
9304 .probe_timing = TIMING_ZERO,
9305 .block_erasers =
9306 {
9307 {
9308 .eraseblocks = { {4 * 1024, 512} },
9309 .block_erase = spi_block_erase_20,
9310 }, {
9311 .eraseblocks = { {32 * 1024, 64} },
9312 .block_erase = spi_block_erase_52,
9313 }, {
9314 .eraseblocks = { {64 * 1024, 32} },
9315 .block_erase = spi_block_erase_d8,
9316 }, {
9317 .eraseblocks = { {2 * 1024 * 1024, 1} },
9318 .block_erase = spi_block_erase_60,
9319 }, {
9320 .eraseblocks = { {2 * 1024 * 1024, 1} },
9321 .block_erase = spi_block_erase_c7,
9322 }
9323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009324 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009325 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009326 .write = spi_chip_write_256,
9327 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009328 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009329 },
9330
9331 {
9332 .vendor = "Winbond",
9333 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009334 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009335 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009336 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009337 .total_size = 4096,
9338 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009339 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009341 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009342 .probe = probe_spi_rdid,
9343 .probe_timing = TIMING_ZERO,
9344 .block_erasers =
9345 {
9346 {
9347 .eraseblocks = { {4 * 1024, 1024} },
9348 .block_erase = spi_block_erase_20,
9349 }, {
9350 .eraseblocks = { {32 * 1024, 128} },
9351 .block_erase = spi_block_erase_52,
9352 }, {
9353 .eraseblocks = { {64 * 1024, 64} },
9354 .block_erase = spi_block_erase_d8,
9355 }, {
9356 .eraseblocks = { {4 * 1024 * 1024, 1} },
9357 .block_erase = spi_block_erase_60,
9358 }, {
9359 .eraseblocks = { {4 * 1024 * 1024, 1} },
9360 .block_erase = spi_block_erase_c7,
9361 }
9362 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009363 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009364 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00009365 .write = spi_chip_write_256,
9366 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009367 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00009368 },
9369
9370 {
9371 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00009372 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009373 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00009374 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009375 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00009376 .total_size = 8192,
9377 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009378 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00009380 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00009381 .probe = probe_spi_rdid,
9382 .probe_timing = TIMING_ZERO,
9383 .block_erasers =
9384 {
9385 {
9386 .eraseblocks = { {4 * 1024, 2048} },
9387 .block_erase = spi_block_erase_20,
9388 }, {
9389 .eraseblocks = { {32 * 1024, 256} },
9390 .block_erase = spi_block_erase_52,
9391 }, {
9392 .eraseblocks = { {64 * 1024, 128} },
9393 .block_erase = spi_block_erase_d8,
9394 }, {
9395 .eraseblocks = { {8 * 1024 * 1024, 1} },
9396 .block_erase = spi_block_erase_60,
9397 }, {
9398 .eraseblocks = { {8 * 1024 * 1024, 1} },
9399 .block_erase = spi_block_erase_c7,
9400 }
9401 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009403 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00009404 .write = spi_chip_write_256,
9405 .read = spi_chip_read,
9406 },
9407
9408 {
9409 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00009410 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009411 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009412 .manufacture_id = WINBOND_NEX_ID,
9413 .model_id = WINBOND_NEX_W25Q128,
9414 .total_size = 16384,
9415 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00009416 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
9417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009418 .tested = TEST_OK_PROBE,
9419 .probe = probe_spi_rdid,
9420 .probe_timing = TIMING_ZERO,
9421 .block_erasers =
9422 {
9423 {
9424 .eraseblocks = { {4 * 1024, 4096} },
9425 .block_erase = spi_block_erase_20,
9426 }, {
9427 .eraseblocks = { {32 * 1024, 512} },
9428 .block_erase = spi_block_erase_52,
9429 }, {
9430 .eraseblocks = { {64 * 1024, 256} },
9431 .block_erase = spi_block_erase_d8,
9432 }, {
9433 .eraseblocks = { {16 * 1024 * 1024, 1} },
9434 .block_erase = spi_block_erase_60,
9435 }, {
9436 .eraseblocks = { {16 * 1024 * 1024, 1} },
9437 .block_erase = spi_block_erase_c7,
9438 }
9439 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009440 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +00009441 .unlock = spi_disable_blockprotect,
9442 .write = spi_chip_write_256,
9443 .read = spi_chip_read,
9444 },
9445
9446 {
9447 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009448 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009449 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009450 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009451 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009452 .total_size = 128,
9453 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009454 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009455 .tested = TEST_UNTESTED,
9456 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009457 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009458 .block_erasers =
9459 {
9460 {
9461 .eraseblocks = { {4 * 1024, 32} },
9462 .block_erase = spi_block_erase_20,
9463 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009464 .eraseblocks = { {64 * 1024, 2} },
9465 .block_erase = spi_block_erase_d8,
9466 }, {
9467 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009468 .block_erase = spi_block_erase_c7,
9469 }
9470 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009471 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009472 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009473 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009474 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009475 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009476 },
9477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009478 {
9479 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009480 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009481 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009482 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009483 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009484 .total_size = 256,
9485 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009486 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009487 .tested = TEST_UNTESTED,
9488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009489 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009490 .block_erasers =
9491 {
9492 {
9493 .eraseblocks = { {4 * 1024, 64} },
9494 .block_erase = spi_block_erase_20,
9495 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009496 .eraseblocks = { {64 * 1024, 4} },
9497 .block_erase = spi_block_erase_d8,
9498 }, {
9499 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009500 .block_erase = spi_block_erase_c7,
9501 }
9502 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009503 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009505 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009507 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009508 },
9509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009510 {
9511 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009512 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009513 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009514 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009515 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009516 .total_size = 512,
9517 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009518 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00009519 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009520 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009521 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009522 .block_erasers =
9523 {
9524 {
9525 .eraseblocks = { {4 * 1024, 128} },
9526 .block_erase = spi_block_erase_20,
9527 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009528 .eraseblocks = { {64 * 1024, 8} },
9529 .block_erase = spi_block_erase_d8,
9530 }, {
9531 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009532 .block_erase = spi_block_erase_c7,
9533 }
9534 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009535 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009536 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009537 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009538 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009539 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009540 },
9541
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009542 {
9543 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009544 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009545 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009546 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009547 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009548 .total_size = 1024,
9549 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009550 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00009551 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009552 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009553 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009554 .block_erasers =
9555 {
9556 {
9557 .eraseblocks = { {4 * 1024, 256} },
9558 .block_erase = spi_block_erase_20,
9559 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009560 .eraseblocks = { {64 * 1024, 16} },
9561 .block_erase = spi_block_erase_d8,
9562 }, {
9563 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009564 .block_erase = spi_block_erase_c7,
9565 }
9566 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009567 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009568 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009569 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009571 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009572 },
9573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009574 {
9575 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009576 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009577 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00009578 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009579 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00009580 .total_size = 2048,
9581 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009582 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00009583 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00009584 .probe = probe_spi_rdid,
9585 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009586 .block_erasers =
9587 {
9588 {
9589 .eraseblocks = { {4 * 1024, 512} },
9590 .block_erase = spi_block_erase_20,
9591 }, {
9592 .eraseblocks = { {32 * 1024, 64} },
9593 .block_erase = spi_block_erase_52,
9594 }, {
9595 .eraseblocks = { {64 * 1024, 32} },
9596 .block_erase = spi_block_erase_d8,
9597 }, {
9598 .eraseblocks = { {2 * 1024 * 1024, 1} },
9599 .block_erase = spi_block_erase_60,
9600 }, {
9601 .eraseblocks = { {2 * 1024 * 1024, 1} },
9602 .block_erase = spi_block_erase_c7,
9603 }
9604 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009605 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009606 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00009607 .write = spi_chip_write_256,
9608 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009609 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00009610 },
9611
9612 {
9613 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009614 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009615 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009616 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009617 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00009618 .total_size = 4096,
9619 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009620 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00009621 .tested = TEST_OK_PROBE,
9622 .probe = probe_spi_rdid,
9623 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009624 .block_erasers =
9625 {
9626 {
9627 .eraseblocks = { {4 * 1024, 1024} },
9628 .block_erase = spi_block_erase_20,
9629 }, {
9630 .eraseblocks = { {32 * 1024, 128} },
9631 .block_erase = spi_block_erase_52,
9632 }, {
9633 .eraseblocks = { {64 * 1024, 64} },
9634 .block_erase = spi_block_erase_d8,
9635 }, {
9636 .eraseblocks = { {4 * 1024 * 1024, 1} },
9637 .block_erase = spi_block_erase_60,
9638 }, {
9639 .eraseblocks = { {4 * 1024 * 1024, 1} },
9640 .block_erase = spi_block_erase_c7,
9641 }
9642 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009643 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009644 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009645 .write = spi_chip_write_256,
9646 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009647 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009648 },
9649
9650 {
9651 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009652 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009653 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00009654 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009655 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00009656 .total_size = 8192,
9657 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00009658 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009659 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00009660 .probe = probe_spi_rdid,
9661 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009662 .block_erasers =
9663 {
9664 {
9665 .eraseblocks = { {4 * 1024, 2048} },
9666 .block_erase = spi_block_erase_20,
9667 }, {
9668 .eraseblocks = { {32 * 1024, 256} },
9669 .block_erase = spi_block_erase_52,
9670 }, {
9671 .eraseblocks = { {64 * 1024, 128} },
9672 .block_erase = spi_block_erase_d8,
9673 }, {
9674 .eraseblocks = { {8 * 1024 * 1024, 1} },
9675 .block_erase = spi_block_erase_60,
9676 }, {
9677 .eraseblocks = { {8 * 1024 * 1024, 1} },
9678 .block_erase = spi_block_erase_c7,
9679 }
9680 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009681 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009682 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00009683 .write = spi_chip_write_256,
9684 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009685 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00009686 },
9687
9688 {
9689 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009690 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009691 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00009692 .manufacture_id = WINBOND_ID,
9693 .model_id = WINBOND_W29C010,
9694 .total_size = 128,
9695 .page_size = 128,
9696 .feature_bits = FEATURE_LONG_RESET,
9697 .tested = TEST_OK_PRE,
9698 .probe = probe_w29ee011,
9699 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
9700 .block_erasers =
9701 {
9702 {
9703 .eraseblocks = { {128 * 1024, 1} },
9704 .block_erase = erase_chip_block_jedec,
9705 }
9706 },
9707 .write = write_jedec,
9708 .read = read_memmapped,
9709 },
9710
9711 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
9712 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009713 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009714 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009715 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009716 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009717 .total_size = 128,
9718 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009719 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00009720 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009721 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009722 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009723 .block_erasers =
9724 {
9725 {
9726 .eraseblocks = { {128 * 1024, 1} },
9727 .block_erase = erase_chip_block_jedec,
9728 }
9729 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009730 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009731 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00009732 },
9733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009734 {
9735 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009736 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009737 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009738 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009739 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009740 .total_size = 256,
9741 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009742 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009743 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009744 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009745 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009746 .block_erasers =
9747 {
9748 {
9749 .eraseblocks = { {256 * 1024, 1} },
9750 .block_erase = erase_chip_block_jedec,
9751 }
9752 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009753 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009755 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009756 },
9757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009758 {
9759 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009760 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009761 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009762 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009763 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009764 .total_size = 512,
9765 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009766 .feature_bits = FEATURE_LONG_RESET,
9767 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009768 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00009769 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009770 .block_erasers =
9771 {
9772 {
9773 .eraseblocks = { {512 * 1024, 1} },
9774 .block_erase = erase_chip_block_jedec,
9775 }
9776 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009777 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009778 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009779 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009780 },
9781
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009782 {
9783 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +00009784 .name = "W39F010",
9785 .bustype = BUS_PARALLEL,
9786 .manufacture_id = WINBOND_ID,
9787 .model_id = WINBOND_W39F010,
9788 .total_size = 128,
9789 .page_size = 4 * 1024,
9790 .feature_bits = FEATURE_EITHER_RESET,
9791 .tested = TEST_OK_PREW,
9792 .probe = probe_jedec,
9793 .probe_timing = 10,
9794 .block_erasers =
9795 {
9796 {
9797 .eraseblocks = { {4 * 1024, 32} },
9798 .block_erase = erase_block_jedec,
9799 }, {
9800 .eraseblocks = { {128 * 1024, 1} },
9801 .block_erase = erase_chip_block_jedec,
9802 }
9803 },
9804 .printlock = printlock_w39f010,
9805 .write = write_jedec_1,
9806 .read = read_memmapped,
9807 .voltage = {4500, 5500},
9808 },
9809
9810 {
9811 .vendor = "Winbond",
9812 .name = "W39L010",
9813 .bustype = BUS_PARALLEL,
9814 .manufacture_id = WINBOND_ID,
9815 .model_id = WINBOND_W39L010,
9816 .total_size = 128,
9817 .page_size = 4 * 1024,
9818 .feature_bits = FEATURE_EITHER_RESET,
9819 .tested = TEST_UNTESTED,
9820 .probe = probe_jedec,
9821 .probe_timing = 10,
9822 .block_erasers =
9823 {
9824 {
9825 .eraseblocks = { {4 * 1024, 32} },
9826 .block_erase = erase_block_jedec,
9827 }, {
9828 .eraseblocks = { {128 * 1024, 1} },
9829 .block_erase = erase_chip_block_jedec,
9830 }
9831 },
9832 .printlock = printlock_w39l010,
9833 .write = write_jedec_1,
9834 .read = read_memmapped,
9835 .voltage = {3000, 3600},
9836 },
9837
9838 {
9839 .vendor = "Winbond",
9840 .name = "W39L020",
9841 .bustype = BUS_PARALLEL,
9842 .manufacture_id = WINBOND_ID,
9843 .model_id = WINBOND_W39L020,
9844 .total_size = 256,
9845 .page_size = 4 * 1024,
9846 .feature_bits = FEATURE_EITHER_RESET,
9847 .tested = TEST_UNTESTED,
9848 .probe = probe_jedec,
9849 .probe_timing = 10,
9850 .block_erasers =
9851 {
9852 {
9853 .eraseblocks = { {4 * 1024, 64} },
9854 .block_erase = erase_block_jedec,
9855 }, {
9856 .eraseblocks = { {64 * 1024, 4} },
9857 .block_erase = erase_sector_jedec,
9858 }, {
9859 .eraseblocks = { {256 * 1024, 1} },
9860 .block_erase = erase_chip_block_jedec,
9861 }
9862 },
9863 .printlock = printlock_w39l020,
9864 .write = write_jedec_1,
9865 .read = read_memmapped,
9866 .voltage = {3000, 3600},
9867 },
9868
9869 {
9870 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00009871 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009872 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00009873 .manufacture_id = WINBOND_ID,
9874 .model_id = WINBOND_W39L040,
9875 .total_size = 512,
9876 .page_size = 64 * 1024,
9877 .feature_bits = FEATURE_EITHER_RESET,
9878 .tested = TEST_OK_PR,
9879 .probe = probe_jedec,
9880 .probe_timing = 10,
9881 .block_erasers =
9882 {
9883 {
9884 .eraseblocks = { {4 * 1024, 128} },
9885 .block_erase = erase_block_jedec,
9886 }, {
9887 .eraseblocks = { {64 * 1024, 8} },
9888 .block_erase = erase_sector_jedec,
9889 }, {
9890 .eraseblocks = { {512 * 1024, 1} },
9891 .block_erase = erase_chip_block_jedec,
9892 }
9893 },
9894 .printlock = printlock_w39l040,
9895 .write = write_jedec_1,
9896 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009897 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00009898 },
9899
9900 {
9901 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009902 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009903 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009904 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009905 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009906 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009907 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009908 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009909 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009910 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009911 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009912 .block_erasers =
9913 {
9914 {
9915 .eraseblocks = { {64 * 1024, 8} },
9916 .block_erase = erase_sector_jedec,
9917 }, {
9918 .eraseblocks = { {512 * 1024, 1} },
9919 .block_erase = erase_chip_block_jedec,
9920 }
9921 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009922 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009923 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009925 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009926 },
9927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009928 {
9929 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009930 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009931 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009932 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009933 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009934 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009935 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009936 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009937 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009938 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009939 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009940 .block_erasers =
9941 {
9942 {
9943 .eraseblocks = { {64 * 1024, 8} },
9944 .block_erase = erase_sector_jedec,
9945 }, {
9946 .eraseblocks = { {512 * 1024, 1} },
9947 .block_erase = erase_chip_block_jedec,
9948 }
9949 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009950 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009951 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009953 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009954 },
9955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009956 {
9957 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009958 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009959 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009960 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009961 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009962 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009963 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009964 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009965 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009966 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009967 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009968 .block_erasers =
9969 {
9970 {
9971 .eraseblocks = { {64 * 1024, 8} },
9972 .block_erase = erase_sector_jedec,
9973 }, {
9974 .eraseblocks = { {512 * 1024, 1} },
9975 .block_erase = erase_chip_block_jedec,
9976 }
9977 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009978 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009979 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009980 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009981 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009982 },
9983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009984 {
9985 .vendor = "Winbond",
9986 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009987 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009988 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009989 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009990 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009991 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009992 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009993 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009994 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009995 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009996 .block_erasers =
9997 {
9998 {
9999 .eraseblocks = { {4 * 1024, 128} },
10000 .block_erase = erase_block_jedec,
10001 }, {
10002 .eraseblocks = { {64 * 1024, 8} },
10003 .block_erase = erase_sector_jedec,
10004 }, {
10005 .eraseblocks = { {512 * 1024, 1} },
10006 .block_erase = erase_chip_block_jedec,
10007 }
10008 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010009 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000010010 .unlock = unlock_sst_fwhub,
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 Zakuleccbe370e2011-06-03 07:26:31 +000010013 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010014 },
10015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010016 {
10017 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010018 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010019 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010020 .manufacture_id = WINBOND_ID,
10021 .model_id = WINBOND_W39V040B,
10022 .total_size = 512,
10023 .page_size = 64 * 1024,
10024 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010025 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010026 .probe = probe_jedec,
10027 .probe_timing = 10,
10028 .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 },
10038 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000010039 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010040 .write = write_jedec_1,
10041 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010042 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010043 },
10044
10045 {
10046 .vendor = "Winbond",
10047 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010048 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010049 .manufacture_id = WINBOND_ID,
10050 .model_id = WINBOND_W39V040C,
10051 .total_size = 512,
10052 .page_size = 64 * 1024,
10053 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010055 .probe = probe_jedec,
10056 .probe_timing = 10,
10057 .block_erasers =
10058 {
10059 {
10060 .eraseblocks = { {64 * 1024, 8} },
10061 .block_erase = erase_sector_jedec,
10062 }, {
10063 .eraseblocks = { {512 * 1024, 1} },
10064 .block_erase = erase_chip_block_jedec,
10065 }
10066 },
10067 .printlock = printlock_w39v040fc,
10068 .write = write_jedec_1,
10069 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010070 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010071 },
10072
10073 {
10074 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010075 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010076 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010077 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010078 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010079 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000010080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010081 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000010082 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010083 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000010084 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010085 .block_erasers =
10086 {
10087 {
10088 .eraseblocks = { {64 * 1024, 16} },
10089 .block_erase = erase_sector_jedec,
10090 }, {
10091 .eraseblocks = { {1024 * 1024, 1} },
10092 .block_erase = erase_chip_block_jedec,
10093 }
10094 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010095 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000010096 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010098 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010099 },
10100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010101 {
10102 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000010103 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010104 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010105 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010106 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010107 .total_size = 256,
10108 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010109 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010110 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010111 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010112 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010113 .block_erasers =
10114 {
10115 {
10116 .eraseblocks = {
10117 {128 * 1024, 1},
10118 {96 * 1024, 1},
10119 {8 * 1024, 2},
10120 {16 * 1024, 1},
10121 },
10122 .block_erase = erase_sector_jedec,
10123 }, {
10124 .eraseblocks = { {256 * 1024, 1} },
10125 .block_erase = erase_chip_block_jedec,
10126 }
10127 },
Sean Nelson35727f72010-01-28 23:55:12 +000010128 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010129 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010130 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010131 },
10132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010133 {
10134 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010135 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010136 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010137 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010138 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010139 .total_size = 256,
10140 .page_size = 128,
10141 .feature_bits = FEATURE_EITHER_RESET,
10142 .tested = TEST_OK_PROBE,
10143 .probe = probe_jedec,
10144 .probe_timing = 10,
10145 .block_erasers =
10146 {
10147 {
10148 .eraseblocks = { {256 * 1024, 1} },
10149 .block_erase = erase_chip_block_jedec,
10150 }
10151 },
10152 .write = write_jedec_1,
10153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010154 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000010155 },
10156
10157 {
10158 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010159 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010160 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010161 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010162 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010163 .total_size = 256,
10164 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010165 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010166 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010167 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010168 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010169 .block_erasers =
10170 {
10171 {
10172 .eraseblocks = {
10173 {64 * 1024, 3},
10174 {32 * 1024, 1},
10175 {8 * 1024, 2},
10176 {16 * 1024, 1},
10177 },
10178 .block_erase = erase_sector_jedec,
10179 }, {
10180 .eraseblocks = { {256 * 1024, 1} },
10181 .block_erase = erase_chip_block_jedec,
10182 }
10183 },
Sean Nelson35727f72010-01-28 23:55:12 +000010184 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010185 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010186 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010187 },
10188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010189 {
10190 .vendor = "Winbond",
10191 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010192 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010193 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010194 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010195 .total_size = 256,
10196 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010197 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010198 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010199 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010200 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010201 .block_erasers =
10202 {
10203 {
10204 .eraseblocks = {
10205 {64 * 1024, 3},
10206 {32 * 1024, 1},
10207 {8 * 1024, 2},
10208 {16 * 1024, 1},
10209 },
10210 .block_erase = erase_sector_jedec,
10211 }, {
10212 .eraseblocks = { {256 * 1024, 1} },
10213 .block_erase = erase_chip_block_jedec,
10214 }
10215 },
Sean Nelson35727f72010-01-28 23:55:12 +000010216 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010217 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010218 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010219 },
10220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010221 {
10222 .vendor = "Winbond",
10223 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010224 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010225 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010226 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010227 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000010228 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010229 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000010230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010231 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010232 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010233 .block_erasers =
10234 {
10235 {
10236 .eraseblocks = { {64 * 1024, 16}, },
10237 .block_erase = erase_sector_jedec,
10238 }, {
10239 .eraseblocks = { {1024 * 1024, 1} },
10240 .block_erase = erase_chip_block_jedec,
10241 }
10242 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010243 .printlock = printlock_w39v080fa,
10244 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000010245 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010246 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010247 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010248 },
10249
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010250 {
10251 .vendor = "Winbond",
10252 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010253 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010254 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000010255 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010256 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000010257 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010258 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010259 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000010260 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010261 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000010262 .block_erasers =
10263 {
10264 {
10265 .eraseblocks = { {64 * 1024, 8}, },
10266 .block_erase = erase_sector_jedec,
10267 }, {
10268 .eraseblocks = { {512 * 1024, 1} },
10269 .block_erase = erase_chip_block_jedec,
10270 }
10271 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000010272 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000010273 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010274 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010275 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000010276 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010277
10278 {
10279 .vendor = "Unknown",
10280 .name = "SFDP-capable chip",
10281 .bustype = BUS_SPI,
10282 .manufacture_id = GENERIC_MANUF_ID,
10283 .model_id = SFDP_DEVICE_ID,
10284 /* We present our own "report this" text hence we do not
10285 * want the default "This flash part has status UNTESTED..."
10286 * text to be printed. */
10287 .tested = TEST_OK_PREW,
10288 .probe = probe_spi_sfdp,
10289 .unlock = spi_disable_blockprotect, /* is this safe? */
10290 .read = spi_chip_read,
10291 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000010292 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000010293 /* Everything below will be set by the probing function. */
10294 .write = NULL,
10295 .total_size = 0,
10296 .page_size = 0,
10297 .feature_bits = 0,
10298 .block_erasers = {},
10299 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010300
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010301 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000010302 .vendor = "Programmer",
10303 .name = "Opaque flash chip",
10304 .bustype = BUS_PROG,
10305 .manufacture_id = PROGMANUF_ID,
10306 .model_id = PROGDEV_ID,
10307 .total_size = 0,
10308 .page_size = 256,
10309 /* probe is assumed to work, rest will be filled in by probe */
10310 .tested = TEST_OK_PROBE,
10311 .probe = probe_opaque,
10312 /* eraseblock sizes will be set by the probing function */
10313 .block_erasers =
10314 {
10315 {
10316 .block_erase = erase_opaque,
10317 }
10318 },
10319 .write = write_opaque,
10320 .read = read_opaque,
10321 },
10322
10323 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010324 .vendor = "AMIC",
10325 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010326 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000010327 .manufacture_id = AMIC_ID,
10328 .model_id = GENERIC_DEVICE_ID,
10329 .total_size = 0,
10330 .page_size = 256,
10331 .tested = TEST_BAD_PREW,
10332 .probe = probe_spi_rdid4,
10333 .probe_timing = TIMING_ZERO,
10334 .write = NULL,
10335 .read = NULL,
10336 },
10337
10338 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010339 .vendor = "Atmel",
10340 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010341 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010342 .manufacture_id = ATMEL_ID,
10343 .model_id = GENERIC_DEVICE_ID,
10344 .total_size = 0,
10345 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010346 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010347 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010348 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010349 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010350 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010351 },
10352
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010353 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000010354 .vendor = "Eon",
10355 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010356 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010357 .manufacture_id = EON_ID_NOPREFIX,
10358 .model_id = GENERIC_DEVICE_ID,
10359 .total_size = 0,
10360 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010361 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010362 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010363 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010364 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010365 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010366 },
10367
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010368 {
10369 .vendor = "Macronix",
10370 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010371 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010372 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010373 .model_id = GENERIC_DEVICE_ID,
10374 .total_size = 0,
10375 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010376 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010377 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010378 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010379 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010380 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010381 },
10382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010383 {
10384 .vendor = "PMC",
10385 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010386 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010387 .manufacture_id = PMC_ID,
10388 .model_id = GENERIC_DEVICE_ID,
10389 .total_size = 0,
10390 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010391 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010392 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010393 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010394 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010395 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010396 },
10397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010398 {
10399 .vendor = "SST",
10400 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010401 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010402 .manufacture_id = SST_ID,
10403 .model_id = GENERIC_DEVICE_ID,
10404 .total_size = 0,
10405 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010406 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010408 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010409 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010410 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010411 },
10412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010413 {
10414 .vendor = "ST",
10415 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010416 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010417 .manufacture_id = ST_ID,
10418 .model_id = GENERIC_DEVICE_ID,
10419 .total_size = 0,
10420 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000010421 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010422 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010423 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010424 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010425 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000010426 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000010427
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010428 {
Sean Nelson118e1d62009-11-24 02:08:11 +000010429 .vendor = "Sanyo",
10430 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010431 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000010432 .manufacture_id = SANYO_ID,
10433 .model_id = GENERIC_DEVICE_ID,
10434 .total_size = 0,
10435 .page_size = 256,
10436 .tested = TEST_BAD_PREW,
10437 .probe = probe_spi_rdid,
10438 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000010439 .write = NULL,
10440 .read = NULL,
10441 },
10442
10443 {
Stefan Taunereb582572012-09-21 12:52:50 +000010444 .vendor = "Winbond",
10445 .name = "unknown Winbond (ex Nexcom) SPI chip",
10446 .bustype = BUS_SPI,
10447 .manufacture_id = WINBOND_NEX_ID,
10448 .model_id = GENERIC_DEVICE_ID,
10449 .total_size = 0,
10450 .page_size = 256,
10451 .tested = TEST_BAD_PREW,
10452 .probe = probe_spi_rdid,
10453 .probe_timing = TIMING_ZERO,
10454 .write = NULL,
10455 .read = NULL,
10456 },
10457
10458 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010459 .vendor = "Generic",
10460 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010461 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010462 .manufacture_id = GENERIC_MANUF_ID,
10463 .model_id = GENERIC_DEVICE_ID,
10464 .total_size = 0,
10465 .page_size = 256,
10466 .tested = TEST_BAD_PREW,
10467 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010468 .write = NULL,
10469 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000010470
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010471 {
10472 .vendor = "Generic",
10473 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010474 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010475 .manufacture_id = GENERIC_MANUF_ID,
10476 .model_id = GENERIC_DEVICE_ID,
10477 .total_size = 0,
10478 .page_size = 256,
10479 .tested = TEST_BAD_PREW,
10480 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000010481 .write = NULL,
10482 },
10483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010484 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000010485};