blob: 8059374004aaf83a73e745b4ca403b1ee32b1422 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */
1279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
1712 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001716 .total_size = 2048,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 512} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 64} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 32} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {2 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {2 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001751 .name = "AT25F512",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25F512,
1755 .total_size = 64,
1756 .page_size = 256,
1757 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001758 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001759 .probe = probe_spi_at25f,
1760 .probe_timing = TIMING_ZERO,
1761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {32 * 1024, 2} },
1765 .block_erase = spi_block_erase_52,
1766 }, {
1767 .eraseblocks = { {64 * 1024, 1} },
1768 .block_erase = spi_block_erase_62,
1769 }
1770 },
1771 .printlock = spi_prettyprint_status_register_at25f,
1772 .unlock = spi_disable_blockprotect_at25f,
1773 .write = spi_chip_write_256,
1774 .read = spi_chip_read,
1775 .voltage = {2700, 3600},
1776 },
1777
1778 {
1779 .vendor = "Atmel",
1780 .name = "AT25F512A",
1781 .bustype = BUS_SPI,
1782 .manufacture_id = ATMEL_ID,
1783 .model_id = ATMEL_AT25F512A,
1784 .total_size = 64,
1785 .page_size = 128,
1786 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001787 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001788 .probe = probe_spi_at25f,
1789 .probe_timing = TIMING_ZERO,
1790 .block_erasers =
1791 {
1792 {
1793 .eraseblocks = { {32 * 1024, 2} },
1794 .block_erase = spi_block_erase_52,
1795 }, {
1796 .eraseblocks = { {64 * 1024, 1} },
1797 .block_erase = spi_block_erase_62,
1798 }
1799 },
1800 .printlock = spi_prettyprint_status_register_at25f512a,
1801 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1802 .unlock = spi_disable_blockprotect_at25f512a,
1803 .write = spi_chip_write_256,
1804 .read = spi_chip_read,
1805 .voltage = {2700, 3600},
1806 },
1807
1808 {
1809 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 64,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001818 .tested = TEST_UNTESTED,
1819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 16} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 2} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {32 * 1024, 2} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {64 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {64 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001838 }, {
1839 .eraseblocks = { {64 * 1024, 1} },
1840 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001841 }
1842 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001843 .printlock = spi_prettyprint_status_register_at25f512b,
1844 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001848 },
1849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 {
1851 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001852 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1853 * All other properties seem to be the same.*/
1854 .name = "AT25F1024(A)",
1855 .bustype = BUS_SPI,
1856 .manufacture_id = ATMEL_ID,
1857 .model_id = ATMEL_AT25F1024,
1858 .total_size = 128,
1859 .page_size = 256,
1860 .feature_bits = FEATURE_WRSR_WREN,
1861 .tested = TEST_OK_PREW,
1862 .probe = probe_spi_at25f,
1863 .probe_timing = TIMING_ZERO,
1864 .block_erasers =
1865 {
1866 {
1867 .eraseblocks = { {32 * 1024, 4} },
1868 .block_erase = spi_block_erase_52,
1869 }, {
1870 .eraseblocks = { {128 * 1024, 1} },
1871 .block_erase = spi_block_erase_62,
1872 }
1873 },
1874 .printlock = spi_prettyprint_status_register_at25f,
1875 .unlock = spi_disable_blockprotect_at25f,
1876 .write = spi_chip_write_256,
1877 .read = spi_chip_read,
1878 .voltage = {2700, 3600},
1879 },
1880
1881 {
1882 .vendor = "Atmel",
1883 .name = "AT25F2048",
1884 .bustype = BUS_SPI,
1885 .manufacture_id = ATMEL_ID,
1886 .model_id = ATMEL_AT25F2048,
1887 .total_size = 256,
1888 .page_size = 256,
1889 .feature_bits = FEATURE_WRSR_WREN,
1890 .tested = TEST_UNTESTED,
1891 .probe = probe_spi_at25f,
1892 .probe_timing = TIMING_ZERO,
1893 .block_erasers =
1894 {
1895 {
1896 .eraseblocks = { {64 * 1024, 4} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {256 * 1024, 1} },
1900 .block_erase = spi_block_erase_62,
1901 }
1902 },
1903 .printlock = spi_prettyprint_status_register_at25f,
1904 .unlock = spi_disable_blockprotect_at25f,
1905 .write = spi_chip_write_256,
1906 .read = spi_chip_read,
1907 .voltage = {2700, 3600},
1908 },
1909
1910 {
1911 .vendor = "Atmel",
1912 .name = "AT25F4096",
1913 .bustype = BUS_SPI,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = ATMEL_AT25F4096,
1916 .total_size = 512,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_WRSR_WREN,
1919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_at25f,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {64 * 1024, 8} },
1926 .block_erase = spi_block_erase_52,
1927 }, {
1928 .eraseblocks = { {512 * 1024, 1} },
1929 .block_erase = spi_block_erase_62,
1930 }
1931 },
1932 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001933 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1934 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001935 .write = spi_chip_write_256,
1936 .read = spi_chip_read,
1937 .voltage = {2700, 3600},
1938 },
1939
1940 {
1941 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001945 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 .total_size = 128,
1947 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001948 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001951 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001952 .block_erasers =
1953 {
1954 {
1955 .eraseblocks = { {4 * 1024, 32} },
1956 .block_erase = spi_block_erase_20,
1957 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001958 .eraseblocks = { {4 * 1024, 32} },
1959 .block_erase = spi_block_erase_d7,
1960 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001961 .eraseblocks = { {32 * 1024, 4} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 4} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {128 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {128 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001974 .printlock = spi_prettyprint_status_register_at25fs010,
1975 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001976 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001979 },
1980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001981 {
1982 .vendor = "Atmel",
1983 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001985 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001986 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .total_size = 512,
1988 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001989 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .tested = TEST_UNTESTED,
1991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001992 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001993 .block_erasers =
1994 {
1995 {
1996 .eraseblocks = { {4 * 1024, 128} },
1997 .block_erase = spi_block_erase_20,
1998 }, {
1999 .eraseblocks = { {64 * 1024, 8} },
2000 .block_erase = spi_block_erase_52,
2001 }, {
2002 .eraseblocks = { {64 * 1024, 8} },
2003 .block_erase = spi_block_erase_d8,
2004 }, {
2005 .eraseblocks = { {512 * 1024, 1} },
2006 .block_erase = spi_block_erase_60,
2007 }, {
2008 .eraseblocks = { {512 * 1024, 1} },
2009 .block_erase = spi_block_erase_c7,
2010 }
2011 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002012 .printlock = spi_prettyprint_status_register_at25fs040,
2013 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002017 },
2018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 {
2020 .vendor = "Atmel",
2021 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002024 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002025 .total_size = 512,
2026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002030 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002031 .block_erasers =
2032 {
2033 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002034 .eraseblocks = { {256, 2048} },
2035 .block_erase = spi_block_erase_81,
2036 }, {
2037 .eraseblocks = { {2 * 1024, 256} },
2038 .block_erase = spi_block_erase_50,
2039 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002040 .eraseblocks = { {4 * 1024, 128} },
2041 .block_erase = spi_block_erase_20,
2042 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002043 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002044 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002045 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002046 .write = spi_chip_write_1,
2047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002048 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 1024,
2058 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002059 .feature_bits = FEATURE_WRSR_WREN,
2060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002062 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {4 * 1024, 256} },
2067 .block_erase = spi_block_erase_20,
2068 }, {
2069 .eraseblocks = { {32 * 1024, 32} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {64 * 1024, 16} },
2073 .block_erase = spi_block_erase_d8,
2074 }, {
2075 .eraseblocks = { {1024 * 1024, 1} },
2076 .block_erase = spi_block_erase_60,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_c7,
2080 }
2081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002082 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002083 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002087 },
2088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 .total_size = 2048,
2096 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002097 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002098 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002100 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002101 .block_erasers =
2102 {
2103 {
2104 .eraseblocks = { {4 * 1024, 512} },
2105 .block_erase = spi_block_erase_20,
2106 }, {
2107 .eraseblocks = { {32 * 1024, 64} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 32} },
2111 .block_erase = spi_block_erase_d8,
2112 }, {
2113 .eraseblocks = { {2 * 1024 * 1024, 1} },
2114 .block_erase = spi_block_erase_60,
2115 }, {
2116 .eraseblocks = { {2 * 1024 * 1024, 1} },
2117 .block_erase = spi_block_erase_c7,
2118 }
2119 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002120 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002121 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002125 },
2126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 {
2128 .vendor = "Atmel",
2129 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002130 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002132 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .total_size = 2048,
2134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002138 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002139 .block_erasers =
2140 {
2141 {
2142 .eraseblocks = { {4 * 1024, 512} },
2143 .block_erase = spi_block_erase_20,
2144 }, {
2145 .eraseblocks = { {32 * 1024, 64} },
2146 .block_erase = spi_block_erase_52,
2147 }, {
2148 .eraseblocks = { {64 * 1024, 32} },
2149 .block_erase = spi_block_erase_d8,
2150 }, {
2151 .eraseblocks = { {2 * 1024 * 1024, 1} },
2152 .block_erase = spi_block_erase_60,
2153 }, {
2154 .eraseblocks = { {2 * 1024 * 1024, 1} },
2155 .block_erase = spi_block_erase_c7,
2156 }
2157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002158 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002159 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002160 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002163 },
2164
2165 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002166 /*{
2167 .vendor = "Atmel",
2168 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002171 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .total_size = 4096,
2173 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002174 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .tested = TEST_UNTESTED,
2176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002177 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002178 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
2182 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 {
2185 .vendor = "Atmel",
2186 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002189 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .total_size = 512,
2191 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002192 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002196 .block_erasers =
2197 {
2198 {
2199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }, {
2202 .eraseblocks = { {32 * 1024, 16} },
2203 .block_erase = spi_block_erase_52,
2204 }, {
2205 .eraseblocks = { {64 * 1024, 8} },
2206 .block_erase = spi_block_erase_d8,
2207 }, {
2208 .eraseblocks = { {512 * 1024, 1} },
2209 .block_erase = spi_block_erase_60,
2210 }, {
2211 .eraseblocks = { {512 * 1024, 1} },
2212 .block_erase = spi_block_erase_c7,
2213 }
2214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .write = NULL /* Incompatible Page write */,
2217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002218 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002219 },
2220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 {
2222 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002223 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002224 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002225 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002226 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002227 .total_size = 64,
2228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002229 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002231 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002232 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002233 .block_erasers =
2234 {
2235 {
2236 .eraseblocks = { {64 * 1024, 1} },
2237 .block_erase = erase_chip_block_jedec,
2238 }
2239 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002240 .write = write_jedec,
2241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002242 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002243 },
2244
2245 {
2246 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002247 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002248 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002249 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002250 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002251 .total_size = 128,
2252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002254 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002255 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002256 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = { {128 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002264 .write = write_jedec, /* FIXME */
2265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002267 },
2268
2269 {
2270 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .total_size = 256,
2276 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002277 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002278 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002280 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002281 .block_erasers =
2282 {
2283 {
2284 .eraseblocks = { {256 * 1024, 1} },
2285 .block_erase = erase_chip_block_jedec,
2286 }
2287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002291 },
2292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 {
2294 .vendor = "Atmel",
2295 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002298 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .total_size = 512,
2300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .tested = TEST_UNTESTED,
2303 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002304 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002305 .block_erasers =
2306 {
2307 {
2308 .eraseblocks = { {512 * 1024, 1} },
2309 .block_erase = erase_chip_block_jedec,
2310 }
2311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002315 },
2316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002317 {
2318 .vendor = "Atmel",
2319 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002322 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002323 .total_size = 16896 /* No power of two sizes */,
2324 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002325 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002326 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2327 .feature_bits = FEATURE_OTP,
2328 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002330 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002331 .block_erasers =
2332 {
2333 {
2334 .eraseblocks = {
2335 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2336 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2337 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2338 },
2339 .block_erase = spi_erase_at45cs_sector,
2340 }
2341 },
2342 .printlock = spi_prettyprint_status_register_plain,
2343 .gran = write_gran_1056bytes,
2344 .write = spi_write_at45db,
2345 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002346 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002347 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 {
2350 .vendor = "Atmel",
2351 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002352 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002354 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002355 .total_size = 128 /* or 132, determined from status register */,
2356 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002357 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002358 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2359 .feature_bits = FEATURE_OTP,
2360 .tested = TEST_UNTESTED,
2361 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002362 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {256, 512} },
2367 .block_erase = spi_erase_at45db_page,
2368 }, {
2369 .eraseblocks = { {8 * 256, 512/8} },
2370 .block_erase = spi_erase_at45db_block,
2371 }, {
2372 .eraseblocks = {
2373 {8 * 256, 1},
2374 {120 * 256, 1},
2375 {128 * 256, 3},
2376 },
2377 .block_erase = spi_erase_at45db_sector
2378 }, {
2379 .eraseblocks = { {128 * 1024, 1} },
2380 .block_erase = spi_erase_at45db_chip,
2381 }
2382 },
2383 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2384 .printlock = spi_prettyprint_status_register_at45db,
2385 /* granularity will be set by the probing function. */
2386 .write = spi_write_at45db,
2387 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002388 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002389 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002391 {
2392 .vendor = "Atmel",
2393 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002396 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002397 .total_size = 256 /* or 264, determined from status register */,
2398 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002399 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002400 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2401 .feature_bits = FEATURE_OTP,
2402 .tested = TEST_UNTESTED,
2403 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002404 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002405 .block_erasers =
2406 {
2407 {
2408 .eraseblocks = { {256, 1024} },
2409 .block_erase = spi_erase_at45db_page,
2410 }, {
2411 .eraseblocks = { {8 * 256, 1024/8} },
2412 .block_erase = spi_erase_at45db_block,
2413 }, {
2414 .eraseblocks = {
2415 {8 * 256, 1},
2416 {120 * 256, 1},
2417 {128 * 256, 7},
2418 },
2419 .block_erase = spi_erase_at45db_sector
2420 }, {
2421 .eraseblocks = { {256 * 1024, 1} },
2422 .block_erase = spi_erase_at45db_chip,
2423 }
2424 },
2425 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2426 .printlock = spi_prettyprint_status_register_at45db,
2427 /* granularity will be set by the probing function. */
2428 .write = spi_write_at45db,
2429 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002430 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002431 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002433 {
2434 .vendor = "Atmel",
2435 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002436 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002437 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002438 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002439 .total_size = 512 /* or 528, determined from status register */,
2440 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002441 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002442 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2443 .feature_bits = FEATURE_OTP,
2444 .tested = TEST_OK_PREW,
2445 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002446 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002447 .block_erasers =
2448 {
2449 {
2450 .eraseblocks = { {256, 2048} },
2451 .block_erase = spi_erase_at45db_page,
2452 }, {
2453 .eraseblocks = { {8 * 256, 2048/8} },
2454 .block_erase = spi_erase_at45db_block,
2455 }, {
2456 .eraseblocks = {
2457 {8 * 256, 1},
2458 {248 * 256, 1},
2459 {256 * 256, 7},
2460 },
2461 .block_erase = spi_erase_at45db_sector
2462 }, {
2463 .eraseblocks = { {512 * 1024, 1} },
2464 .block_erase = spi_erase_at45db_chip,
2465 }
2466 },
2467 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2468 .printlock = spi_prettyprint_status_register_at45db,
2469 /* granularity will be set by the probing function. */
2470 .write = spi_write_at45db,
2471 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2472 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002473 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 {
2476 .vendor = "Atmel",
2477 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002478 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002480 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .total_size = 1024 /* or 1056, determined from status register */,
2482 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002483 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002484 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2485 .feature_bits = FEATURE_OTP,
2486 .tested = TEST_UNTESTED,
2487 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002488 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002489 .block_erasers =
2490 {
2491 {
2492 .eraseblocks = { {256, 4096} },
2493 .block_erase = spi_erase_at45db_page,
2494 }, {
2495 .eraseblocks = { {8 * 256, 4096/8} },
2496 .block_erase = spi_erase_at45db_block,
2497 }, {
2498 .eraseblocks = {
2499 {8 * 256, 1},
2500 {248 * 256, 1},
2501 {256 * 256, 15},
2502 },
2503 .block_erase = spi_erase_at45db_sector
2504 }, {
2505 .eraseblocks = { {1024 * 1024, 1} },
2506 .block_erase = spi_erase_at45db_chip,
2507 }
2508 },
2509 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2510 .printlock = spi_prettyprint_status_register_at45db,
2511 /* granularity will be set by the probing function. */
2512 .write = spi_write_at45db,
2513 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002514 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002515 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002523 .total_size = 2048 /* or 2112, determined from status register */,
2524 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002526 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2527 .feature_bits = FEATURE_OTP,
2528 .tested = TEST_OK_PREW,
2529 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002530 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002531 .block_erasers =
2532 {
2533 {
2534 .eraseblocks = { {512, 4096} },
2535 .block_erase = spi_erase_at45db_page,
2536 }, {
2537 .eraseblocks = { {8 * 512, 4096/8} },
2538 .block_erase = spi_erase_at45db_block,
2539 }, {
2540 .eraseblocks = {
2541 {8 * 512, 1},
2542 {248 * 512, 1},
2543 {256 * 512, 15},
2544 },
2545 .block_erase = spi_erase_at45db_sector
2546 }, {
2547 .eraseblocks = { {2048 * 1024, 1} },
2548 .block_erase = spi_erase_at45db_chip,
2549 }
2550 },
2551 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2552 .printlock = spi_prettyprint_status_register_at45db,
2553 /* granularity will be set by the probing function. */
2554 .write = spi_write_at45db,
2555 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002556 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002557 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002558
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 {
2560 .vendor = "Atmel",
2561 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002563 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002564 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002565 .total_size = 4224 /* No power of two sizes */,
2566 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002567 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002568 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2569 .feature_bits = FEATURE_OTP,
2570 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002572 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002573 .block_erasers =
2574 {
2575 {
2576 .eraseblocks = { {528, 8192} },
2577 .block_erase = spi_erase_at45db_page,
2578 }, {
2579 .eraseblocks = { {8 * 528, 8192/8} },
2580 .block_erase = spi_erase_at45db_block,
2581 }, /* Although the datasheets describes sectors (which can be write protected)
2582 * there seems to be no erase functions for them.
2583 {
2584 .eraseblocks = {
2585 {8 * 528, 1},
2586 {120 * 528, 1},
2587 {128 * 528, 63},
2588 },
2589 .block_erase = spi_erase_at45db_sector
2590 }, */ {
2591 .eraseblocks = { {4224 * 1024, 1} },
2592 .block_erase = spi_erase_at45db_chip,
2593 }
2594 },
2595 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2596 .gran = write_gran_528bytes,
2597 .write = spi_write_at45db,
2598 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002600 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
2604 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002608 .total_size = 4096 /* or 4224, determined from status register */,
2609 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002610 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002611 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002612 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002613 .tested = TEST_UNTESTED,
2614 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002615 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002616 .block_erasers =
2617 {
2618 {
2619 .eraseblocks = { {512, 8192} },
2620 .block_erase = spi_erase_at45db_page,
2621 }, {
2622 .eraseblocks = { {8 * 512, 8192/8} },
2623 .block_erase = spi_erase_at45db_block,
2624 }, {
2625 .eraseblocks = {
2626 {8 * 512, 1},
2627 {120 * 512, 1},
2628 {128 * 512, 63},
2629 },
2630 .block_erase = spi_erase_at45db_sector
2631 }, {
2632 .eraseblocks = { {4096 * 1024, 1} },
2633 .block_erase = spi_erase_at45db_chip,
2634 }
2635 },
2636 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2637 .printlock = spi_prettyprint_status_register_at45db,
2638 /* granularity will be set by the probing function. */
2639 .write = spi_write_at45db,
2640 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2641 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2642 },
2643
2644 {
2645 .vendor = "Atmel",
2646 .name = "AT45DB321E",
2647 .bustype = BUS_SPI,
2648 .manufacture_id = ATMEL_ID,
2649 .model_id = ATMEL_AT45DB321C,
2650 .total_size = 4096 /* or 4224, determined from status register */,
2651 .page_size = 512 /* or 528, determined from status register */,
2652 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2653 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2654 .feature_bits = FEATURE_OTP,
2655 .tested = TEST_UNTESTED,
2656 .probe = probe_spi_at45db,
2657 .probe_timing = TIMING_ZERO,
2658 .block_erasers =
2659 {
2660 {
2661 .eraseblocks = { {512, 8192} },
2662 .block_erase = spi_erase_at45db_page,
2663 }, {
2664 .eraseblocks = { {8 * 512, 8192/8} },
2665 .block_erase = spi_erase_at45db_block,
2666 }, {
2667 .eraseblocks = {
2668 {8 * 512, 1},
2669 {120 * 512, 1},
2670 {128 * 512, 63},
2671 },
2672 .block_erase = spi_erase_at45db_sector
2673 }, {
2674 .eraseblocks = { {4096 * 1024, 1} },
2675 .block_erase = spi_erase_at45db_chip,
2676 }
2677 },
2678 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2679 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2680 /* granularity will be set by the probing function. */
2681 .write = spi_write_at45db,
2682 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2683 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002684 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002686 {
2687 .vendor = "Atmel",
2688 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002692 .total_size = 8192 /* or 8448, determined from status register */,
2693 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002694 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002695 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2696 .feature_bits = FEATURE_OTP,
2697 .tested = TEST_UNTESTED,
2698 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002699 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002700 .block_erasers =
2701 {
2702 {
2703 .eraseblocks = { {1024, 8192} },
2704 .block_erase = spi_erase_at45db_page,
2705 }, {
2706 .eraseblocks = { {8 * 1024, 8192/8} },
2707 .block_erase = spi_erase_at45db_block,
2708 }, {
2709 .eraseblocks = {
2710 {8 * 1024, 1},
2711 {248 * 1024, 1},
2712 {256 * 1024, 31},
2713 },
2714 .block_erase = spi_erase_at45db_sector
2715 }, {
2716 .eraseblocks = { {8192 * 1024, 1} },
2717 .block_erase = spi_erase_at45db_chip,
2718 }
2719 },
2720 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2721 .printlock = spi_prettyprint_status_register_at45db,
2722 /* granularity will be set by the probing function. */
2723 .write = spi_write_at45db,
2724 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002725 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002726 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002728 {
2729 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002730 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002731 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002732 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002733 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002734 .total_size = 64,
2735 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002736 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002737 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002738 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002740 .block_erasers =
2741 {
2742 {
2743 .eraseblocks = { {64 * 1024, 1} },
2744 .block_erase = erase_chip_block_jedec,
2745 }
2746 },
Sean Nelson35727f72010-01-28 23:55:12 +00002747 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002749 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002750 },
2751
2752 {
2753 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002754 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002758 .total_size = 256,
2759 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002760 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 .tested = TEST_UNTESTED,
2762 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002763 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002764 .block_erasers =
2765 {
2766 {
2767 .eraseblocks = {
2768 {16 * 1024, 1},
2769 {8 * 1024, 2},
2770 {96 * 1024, 1},
2771 {128 * 1024, 1},
2772 },
2773 .block_erase = erase_sector_jedec,
2774 }, {
2775 .eraseblocks = { {256 * 1024, 1} },
2776 .block_erase = erase_chip_block_jedec,
2777 }
2778 },
Sean Nelson35727f72010-01-28 23:55:12 +00002779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002781 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002782 },
2783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002784 {
2785 .vendor = "Atmel",
2786 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002787 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002788 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002789 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002790 .total_size = 256,
2791 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002792 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002793 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002794 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002795 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002796 .block_erasers =
2797 {
2798 {
2799 .eraseblocks = {
2800 {128 * 1024, 1},
2801 {96 * 1024, 1},
2802 {8 * 1024, 2},
2803 {16 * 1024, 1},
2804 },
2805 .block_erase = erase_sector_jedec,
2806 }, {
2807 .eraseblocks = { {256 * 1024, 1} },
2808 .block_erase = erase_chip_block_jedec,
2809 }
2810 },
Sean Nelson35727f72010-01-28 23:55:12 +00002811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002812 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002813 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002814 },
2815
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002816 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002817 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002818 .name = "AT49(H)F010",
2819 .bustype = BUS_PARALLEL,
2820 .manufacture_id = ATMEL_ID,
2821 .model_id = ATMEL_AT49F010,
2822 .total_size = 128,
2823 .page_size = 0, /* unused */
2824 .feature_bits = FEATURE_EITHER_RESET,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_jedec,
2827 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {128 * 1024, 1} },
2832 .block_erase = erase_chip_block_jedec,
2833 }
2834 },
2835 .printlock = printlock_at49f,
2836 .write = write_jedec_1,
2837 .read = read_memmapped,
2838 .voltage = {4500, 5500},
2839 },
2840
2841 {
2842 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002843 .name = "AT49F020",
2844 .bustype = BUS_PARALLEL,
2845 .manufacture_id = ATMEL_ID,
2846 .model_id = ATMEL_AT49F020,
2847 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002848 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002849 .feature_bits = FEATURE_EITHER_RESET,
2850 .tested = TEST_OK_PRE,
2851 .probe = probe_jedec,
2852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2853 .block_erasers =
2854 {
2855 {
2856 .eraseblocks = { {256 * 1024, 1} },
2857 .block_erase = erase_chip_block_jedec,
2858 }
2859 /* Chip features an optional permanent write protection
2860 * of the first 8 kB. The erase function is the same as
2861 * above, but 00000H to 01FFFH will not be erased.
2862 * FIXME: add another eraser when partial erasers are
2863 * supported.
2864 */
2865 },
2866 .printlock = printlock_at49f,
2867 .write = write_jedec_1,
2868 .read = read_memmapped,
2869 .voltage = {4500, 5500},
2870 },
2871
2872 {
2873 .vendor = "Atmel",
2874 .name = "AT49F040",
2875 .bustype = BUS_PARALLEL,
2876 .manufacture_id = ATMEL_ID,
2877 .model_id = ATMEL_AT49F040,
2878 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002879 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002880 .feature_bits = FEATURE_EITHER_RESET,
2881 .tested = TEST_UNTESTED,
2882 .probe = probe_jedec,
2883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2884 .block_erasers =
2885 {
2886 {
2887 .eraseblocks = { {512 * 1024, 1} },
2888 .block_erase = erase_chip_block_jedec,
2889 }
2890 /* Chip features an optional permanent write protection
2891 * of the first 16 kB. The erase function is the same as
2892 * above, but 00000H to 03FFFH will not be erased.
2893 * FIXME: add another eraser when partial erasers are
2894 * supported.
2895 */
2896 },
2897 .printlock = printlock_at49f,
2898 .write = write_jedec_1,
2899 .read = read_memmapped,
2900 .voltage = {4500, 5500},
2901 },
2902
2903 {
2904 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002905 .name = "AT49F080",
2906 .bustype = BUS_PARALLEL,
2907 .manufacture_id = ATMEL_ID,
2908 .model_id = ATMEL_AT49F080,
2909 .total_size = 1024,
2910 .page_size = 0, /* unused */
2911 .feature_bits = FEATURE_EITHER_RESET,
2912 .tested = TEST_UNTESTED,
2913 .probe = probe_jedec,
2914 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2915 .block_erasers =
2916 {
2917 {
2918 .eraseblocks = { {1024 * 1024, 1} },
2919 .block_erase = erase_chip_block_jedec,
2920 }
2921 /* Chip features an optional permanent write protection
2922 * of the first 16 kB. The erase function is the same as
2923 * above, but 00000H to 03FFFH will not be erased.
2924 * FIXME: add another eraser when partial erasers are
2925 * supported.
2926 */
2927 },
2928 .printlock = printlock_at49f,
2929 .write = write_jedec_1,
2930 .read = read_memmapped,
2931 .voltage = {4500, 5500},
2932 },
2933
2934 {
2935 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2936 .vendor = "Atmel",
2937 .name = "AT49F080T",
2938 .bustype = BUS_PARALLEL,
2939 .manufacture_id = ATMEL_ID,
2940 .model_id = ATMEL_AT49F080T,
2941 .total_size = 1024,
2942 .page_size = 0, /* unused */
2943 .feature_bits = FEATURE_EITHER_RESET,
2944 .tested = TEST_UNTESTED,
2945 .probe = probe_jedec,
2946 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2947 .block_erasers =
2948 {
2949 {
2950 .eraseblocks = { {1024 * 1024, 1} },
2951 .block_erase = erase_chip_block_jedec,
2952 }
2953 /* Chip features an optional permanent write protection
2954 * of the first 16 kB. The erase function is the same as
2955 * above, but FC000H to FFFFFH will not be erased.
2956 * FIXME: add another eraser when partial erasers are
2957 * supported.
2958 */
2959 },
2960 .printlock = printlock_at49f,
2961 .write = write_jedec_1,
2962 .read = read_memmapped,
2963 .voltage = {4500, 5500},
2964 },
2965
2966 {
2967 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002968 .name = "AT49LH002",
2969 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2970 .manufacture_id = ATMEL_ID,
2971 .model_id = ATMEL_AT49LH002,
2972 .total_size = 256,
2973 .page_size = 0, /* unused */
2974 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2975 .tested = TEST_UNTESTED,
2976 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2977 .probe_timing = TIMING_FIXME,
2978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = {
2982 {64 * 1024, 3},
2983 {32 * 1024, 1},
2984 {8 * 1024, 2},
2985 {16 * 1024, 1},
2986 },
2987 .block_erase = erase_block_82802ab,
2988 }, {
2989 .eraseblocks = {
2990 {64 * 1024, 4},
2991 },
2992 .block_erase = NULL, /* TODO: Implement. */
2993 },
2994 },
2995 .printlock = NULL, /* TODO */
2996 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2997 .write = write_82802ab,
2998 .read = read_memmapped,
2999 .voltage = {3000, 3600},
3000 },
3001
3002 {
Andrew Morganca081462011-09-13 22:05:44 +00003003 .vendor = "Catalyst",
3004 .name = "CAT28F512",
3005 .bustype = BUS_PARALLEL,
3006 .manufacture_id = CATALYST_ID,
3007 .model_id = CATALYST_CAT28F512,
3008 .total_size = 64,
3009 .page_size = 0, /* unused */
3010 .feature_bits = 0,
3011 .tested = TEST_OK_PR,
3012 .probe = probe_jedec, /* FIXME! */
3013 .probe_timing = TIMING_ZERO,
3014 .block_erasers =
3015 {
3016 {
3017 .eraseblocks = { {64 * 1024, 1} },
3018 .block_erase = NULL, /* TODO */
3019 },
3020 },
3021 .write = NULL, /* TODO */
3022 .read = read_memmapped,
3023 .voltage = {4500, 5500},
3024 },
3025
3026 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003027 .vendor = "Bright",
3028 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003029 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003030 .manufacture_id = BRIGHT_ID,
3031 .model_id = BRIGHT_BM29F040,
3032 .total_size = 512,
3033 .page_size = 64 * 1024,
3034 .feature_bits = FEATURE_EITHER_RESET,
3035 .tested = TEST_OK_PR,
3036 .probe = probe_jedec,
3037 .probe_timing = TIMING_ZERO,
3038 .block_erasers =
3039 {
3040 {
3041 .eraseblocks = { {64 * 1024, 8} },
3042 .block_erase = erase_sector_jedec,
3043 }, {
3044 .eraseblocks = { {512 * 1024, 1} },
3045 .block_erase = erase_chip_block_jedec,
3046 },
3047 },
3048 .write = write_jedec_1,
3049 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003050 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003051 },
3052
3053 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003054 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003055 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003056 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003057 .manufacture_id = ESMT_ID,
3058 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003059 .total_size = 256,
3060 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003061 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003062 .tested = TEST_UNTESTED,
3063 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003064 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003065 .block_erasers =
3066 {
3067 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003068 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003069 {128 * 1024, 1},
3070 {96 * 1024, 1},
3071 {8 * 1024, 2},
3072 {16 * 1024, 1},
3073 },
3074 .block_erase = erase_sector_jedec,
3075 }, {
3076 .eraseblocks = { {256 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
Sean Nelson35727f72010-01-28 23:55:12 +00003080 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003082 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003083 },
3084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003085 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003086 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003087 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003088 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003089 .manufacture_id = ESMT_ID,
3090 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003091 .total_size = 1024,
3092 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003093 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003094 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003095 .probe = probe_spi_rdid,
3096 .probe_timing = TIMING_ZERO,
3097 .block_erasers =
3098 {
3099 {
3100 .eraseblocks = { {4 * 1024, 256} },
3101 .block_erase = spi_block_erase_20,
3102 }, {
3103 .eraseblocks = { {64 * 1024, 16} },
3104 .block_erase = spi_block_erase_d8,
3105 }, {
3106 .eraseblocks = { {1024 * 1024, 1} },
3107 .block_erase = spi_block_erase_60,
3108 }, {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = spi_block_erase_c7,
3111 }
3112 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003114 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003115 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003116 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003117 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003118 },
3119
3120 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003121 .vendor = "Eon",
3122 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003123 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003124 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003125 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003126 .total_size = 64,
3127 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003128 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003129 .tested = TEST_UNTESTED,
3130 .probe = probe_spi_rdid,
3131 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003132 .block_erasers =
3133 {
3134 {
3135 .eraseblocks = {
3136 {4 * 1024, 2},
3137 {8 * 1024, 1},
3138 {16 * 1024, 1},
3139 {32 * 1024, 1},
3140 },
3141 .block_erase = spi_block_erase_d8,
3142 }, {
3143 .eraseblocks = { {64 * 1024, 1} },
3144 .block_erase = spi_block_erase_c7,
3145 }
3146 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003147 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003148 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .write = spi_chip_write_256,
3150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003151 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003152 },
3153
3154 {
3155 .vendor = "Eon",
3156 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003157 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003158 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003159 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003160 .total_size = 64,
3161 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003162 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003163 .tested = TEST_UNTESTED,
3164 .probe = probe_spi_rdid,
3165 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003166 .block_erasers =
3167 {
3168 {
3169 .eraseblocks = {
3170 {32 * 1024, 1},
3171 {16 * 1024, 1},
3172 {8 * 1024, 1},
3173 {4 * 1024, 2},
3174 },
3175 .block_erase = spi_block_erase_d8,
3176 }, {
3177 .eraseblocks = { {64 * 1024, 1} },
3178 .block_erase = spi_block_erase_c7,
3179 }
3180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003182 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003183 .write = spi_chip_write_256,
3184 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003185 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003186 },
3187
3188 {
3189 .vendor = "Eon",
3190 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003191 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003192 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003193 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .total_size = 128,
3195 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003196 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003197 .tested = TEST_UNTESTED,
3198 .probe = probe_spi_rdid,
3199 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003200 .block_erasers =
3201 {
3202 {
3203 .eraseblocks = {
3204 {4 * 1024, 2},
3205 {8 * 1024, 1},
3206 {16 * 1024, 1},
3207 {32 * 1024, 3},
3208 },
3209 .block_erase = spi_block_erase_d8,
3210 }, {
3211 .eraseblocks = { {128 * 1024, 1} },
3212 .block_erase = spi_block_erase_c7,
3213 }
3214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003216 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .write = spi_chip_write_256,
3218 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003220 },
3221
3222 {
3223 .vendor = "Eon",
3224 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003225 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003226 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003227 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003228 .total_size = 128,
3229 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003230 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003231 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003232 .probe = probe_spi_rdid,
3233 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = {
3238 {32 * 1024, 3},
3239 {16 * 1024, 1},
3240 {8 * 1024, 1},
3241 {4 * 1024, 2},
3242 },
3243 .block_erase = spi_block_erase_d8,
3244 }, {
3245 .eraseblocks = { {128 * 1024, 1} },
3246 .block_erase = spi_block_erase_c7,
3247 }
3248 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003250 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003251 .write = spi_chip_write_256,
3252 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003253 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003254 },
3255
3256 {
3257 .vendor = "Eon",
3258 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003259 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003260 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003261 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003262 .total_size = 256,
3263 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003264 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003265 .tested = TEST_UNTESTED,
3266 .probe = probe_spi_rdid,
3267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003268 .block_erasers =
3269 {
3270 {
3271 .eraseblocks = {
3272 {4 * 1024, 2},
3273 {8 * 1024, 1},
3274 {16 * 1024, 1},
3275 {32 * 1024, 1},
3276 {64 * 1024, 3}
3277 },
3278 .block_erase = spi_block_erase_d8,
3279 }, {
3280 .eraseblocks = { {256 * 1024, 1} },
3281 .block_erase = spi_block_erase_c7,
3282 }
3283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003285 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003286 .write = spi_chip_write_256,
3287 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003288 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003289 },
3290
3291 {
3292 .vendor = "Eon",
3293 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003294 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003295 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003296 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003297 .total_size = 256,
3298 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003299 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003300 .tested = TEST_UNTESTED,
3301 .probe = probe_spi_rdid,
3302 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003303 .block_erasers =
3304 {
3305 {
3306 .eraseblocks = {
3307 {64 * 1024, 3},
3308 {32 * 1024, 1},
3309 {16 * 1024, 1},
3310 {8 * 1024, 1},
3311 {4 * 1024, 2},
3312 },
3313 .block_erase = spi_block_erase_d8,
3314 }, {
3315 .eraseblocks = { {256 * 1024, 1} },
3316 .block_erase = spi_block_erase_c7,
3317 }
3318 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003320 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003321 .write = spi_chip_write_256,
3322 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003323 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003324 },
3325
3326 {
3327 .vendor = "Eon",
3328 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003329 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003330 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003331 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003332 .total_size = 512,
3333 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003334 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003335 .tested = TEST_UNTESTED,
3336 .probe = probe_spi_rdid,
3337 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003338 .block_erasers =
3339 {
3340 {
3341 .eraseblocks = {
3342 {4 * 1024, 2},
3343 {8 * 1024, 1},
3344 {16 * 1024, 1},
3345 {32 * 1024, 1},
3346 {64 * 1024, 7}
3347 },
3348 .block_erase = spi_block_erase_d8,
3349 }, {
3350 .eraseblocks = { {512 * 1024, 1} },
3351 .block_erase = spi_block_erase_c7,
3352 }
3353 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003355 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003356 .write = spi_chip_write_256,
3357 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003358 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003359 },
3360
3361 {
3362 .vendor = "Eon",
3363 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003364 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003366 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003367 .total_size = 512,
3368 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003369 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003370 .tested = TEST_UNTESTED,
3371 .probe = probe_spi_rdid,
3372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003373 .block_erasers =
3374 {
3375 {
3376 .eraseblocks = {
3377 {64 * 1024, 7},
3378 {32 * 1024, 1},
3379 {16 * 1024, 1},
3380 {8 * 1024, 1},
3381 {4 * 1024, 2},
3382 },
3383 .block_erase = spi_block_erase_d8,
3384 }, {
3385 .eraseblocks = { {512 * 1024, 1} },
3386 .block_erase = spi_block_erase_c7,
3387 }
3388 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003389 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003390 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003391 .write = spi_chip_write_256,
3392 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003393 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003394 },
3395
3396 {
3397 .vendor = "Eon",
3398 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003399 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003400 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003401 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003402 .total_size = 1024,
3403 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003404 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003405 .tested = TEST_UNTESTED,
3406 .probe = probe_spi_rdid,
3407 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = {
3412 {4 * 1024, 2},
3413 {8 * 1024, 1},
3414 {16 * 1024, 1},
3415 {32 * 1024, 1},
3416 {64 * 1024, 15}
3417 },
3418 .block_erase = spi_block_erase_d8,
3419 }, {
3420 .eraseblocks = { {1024 * 1024, 1} },
3421 .block_erase = spi_block_erase_c7,
3422 }
3423 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003425 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003428 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003436 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003437 .total_size = 1024,
3438 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003439 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003440 .tested = TEST_UNTESTED,
3441 .probe = probe_spi_rdid,
3442 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003443 .block_erasers =
3444 {
3445 {
3446 .eraseblocks = {
3447 {64 * 1024, 15},
3448 {32 * 1024, 1},
3449 {16 * 1024, 1},
3450 {8 * 1024, 1},
3451 {4 * 1024, 2},
3452 },
3453 .block_erase = spi_block_erase_d8,
3454 }, {
3455 .eraseblocks = { {1024 * 1024, 1} },
3456 .block_erase = spi_block_erase_c7,
3457 }
3458 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003459 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003460 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003463 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003470 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003471 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003472 .total_size = 2048,
3473 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003474 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003475 .tested = TEST_UNTESTED,
3476 .probe = probe_spi_rdid,
3477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003478 .block_erasers =
3479 {
3480 {
3481 .eraseblocks = {
3482 {4 * 1024, 2},
3483 {8 * 1024, 1},
3484 {16 * 1024, 1},
3485 {32 * 1024, 1},
3486 {64 * 1024, 31},
3487 },
3488 .block_erase = spi_block_erase_d8,
3489 }, {
3490 .eraseblocks = { {2 * 1024 * 1024, 1} },
3491 .block_erase = spi_block_erase_c7,
3492 }
3493 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003494 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003495 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003498 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003505 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003506 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003507 .total_size = 2048,
3508 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003509 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003510 .tested = TEST_UNTESTED,
3511 .probe = probe_spi_rdid,
3512 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .block_erasers =
3514 {
3515 {
3516 .eraseblocks = {
3517 {64 * 1024, 31},
3518 {32 * 1024, 1},
3519 {16 * 1024, 1},
3520 {8 * 1024, 1},
3521 {4 * 1024, 2},
3522 },
3523 .block_erase = spi_block_erase_d8,
3524 }, {
3525 .eraseblocks = { {2 * 1024 * 1024, 1} },
3526 .block_erase = spi_block_erase_c7,
3527 }
3528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003530 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003533 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003534 },
3535
3536 {
3537 .vendor = "Eon",
3538 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003539 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003540 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003541 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003542 .total_size = 4096,
3543 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003544 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003545 .tested = TEST_UNTESTED,
3546 .probe = probe_spi_rdid,
3547 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003548 .block_erasers =
3549 {
3550 {
3551 .eraseblocks = {
3552 {4 * 1024, 2},
3553 {8 * 1024, 1},
3554 {16 * 1024, 1},
3555 {32 * 1024, 1},
3556 {64 * 1024, 63},
3557 },
3558 .block_erase = spi_block_erase_d8,
3559 }, {
3560 .eraseblocks = { {4 * 1024 * 1024, 1} },
3561 .block_erase = spi_block_erase_c7,
3562 }
3563 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003565 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003568 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003569 },
3570
3571 {
3572 .vendor = "Eon",
3573 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003574 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003575 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003576 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003577 .total_size = 4096,
3578 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003579 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003580 .tested = TEST_UNTESTED,
3581 .probe = probe_spi_rdid,
3582 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = {
3587 {64 * 1024, 63},
3588 {32 * 1024, 1},
3589 {16 * 1024, 1},
3590 {8 * 1024, 1},
3591 {4 * 1024, 2},
3592 },
3593 .block_erase = spi_block_erase_d8,
3594 }, {
3595 .eraseblocks = { {4 * 1024 * 1024, 1} },
3596 .block_erase = spi_block_erase_c7,
3597 }
3598 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003599 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003600 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003601 .write = spi_chip_write_256,
3602 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003603 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003604 },
3605
3606 {
3607 .vendor = "Eon",
3608 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003609 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003610 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003611 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003612 .total_size = 8192,
3613 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003614 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003615 .tested = TEST_UNTESTED,
3616 .probe = probe_spi_rdid,
3617 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003618 .block_erasers =
3619 {
3620 {
3621 .eraseblocks = {
3622 {4 * 1024, 2},
3623 {8 * 1024, 1},
3624 {16 * 1024, 1},
3625 {32 * 1024, 1},
3626 {64 * 1024, 127},
3627 },
3628 .block_erase = spi_block_erase_d8,
3629 }, {
3630 .eraseblocks = { {8 * 1024 * 1024, 1} },
3631 .block_erase = spi_block_erase_c7,
3632 }
3633 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003634 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003635 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003636 .write = spi_chip_write_256,
3637 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003638 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003639 },
3640
3641 {
3642 .vendor = "Eon",
3643 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003644 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003645 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003646 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003647 .total_size = 8192,
3648 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003649 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003650 .tested = TEST_UNTESTED,
3651 .probe = probe_spi_rdid,
3652 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003653 .block_erasers =
3654 {
3655 {
3656 .eraseblocks = {
3657 {64 * 1024, 127},
3658 {32 * 1024, 1},
3659 {16 * 1024, 1},
3660 {8 * 1024, 1},
3661 {4 * 1024, 2},
3662 },
3663 .block_erase = spi_block_erase_d8,
3664 }, {
3665 .eraseblocks = { {8 * 1024 * 1024, 1} },
3666 .block_erase = spi_block_erase_c7,
3667 }
3668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003670 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003671 .write = spi_chip_write_256,
3672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003673 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003674 },
3675
3676 {
3677 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003678 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003679 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003680 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003681 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003682 .total_size = 64,
3683 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003685 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003686 .probe = probe_spi_rdid,
3687 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003688 .block_erasers =
3689 {
3690 {
3691 .eraseblocks = { {4 * 1024, 16} },
3692 .block_erase = spi_block_erase_20,
3693 }, {
3694 .eraseblocks = { {32 * 1024, 2} },
3695 .block_erase = spi_block_erase_d8,
3696 }, {
3697 .eraseblocks = { {32 * 1024, 2} },
3698 .block_erase = spi_block_erase_52,
3699 }, {
3700 .eraseblocks = { {64 * 1024, 1} },
3701 .block_erase = spi_block_erase_60,
3702 }, {
3703 .eraseblocks = { {64 * 1024, 1} },
3704 .block_erase = spi_block_erase_c7,
3705 }
3706 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003707 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003708 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003709 .write = spi_chip_write_256,
3710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003711 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003712 },
3713
3714 {
3715 .vendor = "Eon",
3716 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003717 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003718 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003719 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003720 .total_size = 128,
3721 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003722 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003723 .tested = TEST_UNTESTED,
3724 .probe = probe_spi_rdid,
3725 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003726 .block_erasers =
3727 {
3728 {
3729 .eraseblocks = { {4 * 1024, 32} },
3730 .block_erase = spi_block_erase_20,
3731 }, {
3732 .eraseblocks = { {32 * 1024, 4} },
3733 .block_erase = spi_block_erase_d8,
3734 }, {
3735 .eraseblocks = { {32 * 1024, 4} },
3736 .block_erase = spi_block_erase_52,
3737 }, {
3738 .eraseblocks = { {128 * 1024, 1} },
3739 .block_erase = spi_block_erase_60,
3740 }, {
3741 .eraseblocks = { {128 * 1024, 1} },
3742 .block_erase = spi_block_erase_c7,
3743 }
3744 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003745 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003747 .write = spi_chip_write_256,
3748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003749 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003750 },
3751
3752 {
3753 .vendor = "Eon",
3754 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003755 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003756 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003757 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003758 .total_size = 256,
3759 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003760 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003761 .tested = TEST_UNTESTED,
3762 .probe = probe_spi_rdid,
3763 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003764 .block_erasers =
3765 {
3766 {
3767 .eraseblocks = { {4 * 1024, 64} },
3768 .block_erase = spi_block_erase_20,
3769 }, {
3770 .eraseblocks = { {64 * 1024, 4} },
3771 .block_erase = spi_block_erase_d8,
3772 }, {
3773 .eraseblocks = { {64 * 1024, 4} },
3774 .block_erase = spi_block_erase_52,
3775 }, {
3776 .eraseblocks = { {256 * 1024, 1} },
3777 .block_erase = spi_block_erase_60,
3778 }, {
3779 .eraseblocks = { {256 * 1024, 1} },
3780 .block_erase = spi_block_erase_c7,
3781 }
3782 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003784 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003785 .write = spi_chip_write_256,
3786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003787 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003788 },
3789
3790 {
3791 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003793 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003794 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003795 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003796 .total_size = 512,
3797 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003798 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003799 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .probe = probe_spi_rdid,
3801 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003802 .block_erasers =
3803 {
3804 {
Sean Nelson54596372010-01-09 05:30:14 +00003805 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003806 .block_erase = spi_block_erase_20,
3807 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003808 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003809 .block_erase = spi_block_erase_d8,
3810 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003811 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003812 .block_erase = spi_block_erase_60,
3813 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003814 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003815 .block_erase = spi_block_erase_c7,
3816 },
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003820 .write = spi_chip_write_256,
3821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003831 .total_size = 1024,
3832 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003834 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = { {4 * 1024, 256} },
3841 .block_erase = spi_block_erase_20,
3842 }, {
3843 .eraseblocks = { {64 * 1024, 16} },
3844 .block_erase = spi_block_erase_d8,
3845 }, {
3846 .eraseblocks = { {1024 * 1024, 1} },
3847 .block_erase = spi_block_erase_60,
3848 }, {
3849 .eraseblocks = { {1024 * 1024, 1} },
3850 .block_erase = spi_block_erase_c7,
3851 }
3852 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003853 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003854 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003855 .write = spi_chip_write_256,
3856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003857 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003858 },
3859
3860 {
3861 .vendor = "Eon",
3862 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003863 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003864 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003865 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003866 .total_size = 2048,
3867 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003868 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003869 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003870 .probe = probe_spi_rdid,
3871 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003872 .block_erasers =
3873 {
3874 {
3875 .eraseblocks = { {4 * 1024, 512} },
3876 .block_erase = spi_block_erase_20,
3877 }, {
3878 .eraseblocks = { {64 * 1024, 32} },
3879 .block_erase = spi_block_erase_d8,
3880 }, {
3881 .eraseblocks = { {2 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_60,
3883 }, {
3884 .eraseblocks = { {2 * 1024 * 1024, 1} },
3885 .block_erase = spi_block_erase_c7,
3886 }
3887 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003889 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003892 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003893 },
3894
3895 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003896 .vendor = "Eon",
3897 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003898 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003899 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003900 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003901 .total_size = 4096,
3902 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003903 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003904 .tested = TEST_UNTESTED,
3905 .probe = probe_spi_rdid,
3906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .block_erasers =
3908 {
3909 {
3910 .eraseblocks = { {4 * 1024, 1024} },
3911 .block_erase = spi_block_erase_20,
3912 }, {
3913 .eraseblocks = { {64 * 1024, 64} },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {4 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_60,
3918 }, {
3919 .eraseblocks = { {4 * 1024 * 1024, 1} },
3920 .block_erase = spi_block_erase_c7,
3921 }
3922 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003924 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003925 .write = spi_chip_write_256,
3926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003927 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003928 },
3929
3930 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003931 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003932 .name = "EN25F64",
3933 .bustype = BUS_SPI,
3934 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003935 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003936 .total_size = 8192,
3937 .page_size = 256,
3938 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003939 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003940 .probe = probe_spi_rdid,
3941 .probe_timing = TIMING_ZERO,
3942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = { {4 * 1024, 2048} },
3946 .block_erase = spi_block_erase_20,
3947 }, {
3948 .eraseblocks = { {64 * 1024, 128} },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {8 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_60,
3953 }, {
3954 .eraseblocks = { {8 * 1024 * 1024, 1} },
3955 .block_erase = spi_block_erase_c7,
3956 }
3957 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003958 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003959 .unlock = spi_disable_blockprotect,
3960 .write = spi_chip_write_256,
3961 .read = spi_chip_read,
3962 .voltage = {2700, 3600},
3963 },
3964
3965 {
3966 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003967 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003968 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003969 .manufacture_id = EON_ID_NOPREFIX,
3970 .model_id = EON_EN25Q40,
3971 .total_size = 512,
3972 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003973 /* OTP: 256B total; enter 0x3A */
3974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003975 .tested = TEST_UNTESTED,
3976 .probe = probe_spi_rdid,
3977 .probe_timing = TIMING_ZERO,
3978 .block_erasers =
3979 {
3980 {
3981 .eraseblocks = { {4 * 1024, 128} },
3982 .block_erase = spi_block_erase_20,
3983 }, {
3984 .eraseblocks = { {64 * 1024, 8} },
3985 .block_erase = spi_block_erase_d8,
3986 }, {
3987 .eraseblocks = { {512 * 1024, 1} },
3988 .block_erase = spi_block_erase_60,
3989 }, {
3990 .eraseblocks = { {512 * 1024, 1} },
3991 .block_erase = spi_block_erase_c7,
3992 }
3993 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003995 .unlock = spi_disable_blockprotect,
3996 .write = spi_chip_write_256,
3997 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003998 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003999 },
4000
4001 {
4002 .vendor = "Eon",
4003 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004004 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004005 .manufacture_id = EON_ID_NOPREFIX,
4006 .model_id = EON_EN25Q80,
4007 .total_size = 1024,
4008 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004009 /* OTP: 256B total; enter 0x3A */
4010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004011 .tested = TEST_UNTESTED,
4012 .probe = probe_spi_rdid,
4013 .probe_timing = TIMING_ZERO,
4014 .block_erasers =
4015 {
4016 {
4017 .eraseblocks = { {4 * 1024, 256} },
4018 .block_erase = spi_block_erase_20,
4019 }, {
4020 .eraseblocks = { {64 * 1024, 16} },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { {1024 * 1024, 1} },
4024 .block_erase = spi_block_erase_60,
4025 }, {
4026 .eraseblocks = { {1024 * 1024, 1} },
4027 .block_erase = spi_block_erase_c7,
4028 }
4029 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004030 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004031 .unlock = spi_disable_blockprotect,
4032 .write = spi_chip_write_256,
4033 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004034 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004035 },
4036
4037 {
4038 /* Note: EN25D16 is an evil twin which shares the model ID
4039 but has different write protection capabilities */
4040 .vendor = "Eon",
4041 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004042 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004043 .manufacture_id = EON_ID_NOPREFIX,
4044 .model_id = EON_EN25Q16,
4045 .total_size = 2048,
4046 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004047 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004049 .tested = TEST_UNTESTED,
4050 .probe = probe_spi_rdid,
4051 .probe_timing = TIMING_ZERO,
4052 .block_erasers =
4053 {
4054 {
4055 .eraseblocks = { {4 * 1024, 512} },
4056 .block_erase = spi_block_erase_20,
4057 }, {
4058 .eraseblocks = { {64 * 1024, 32} },
4059 .block_erase = spi_block_erase_d8,
4060 }, {
4061 /* not supported by Q16 version */
4062 .eraseblocks = { {64 * 1024, 32} },
4063 .block_erase = spi_block_erase_52,
4064 }, {
4065 .eraseblocks = { {2 * 1024 * 1024, 1} },
4066 .block_erase = spi_block_erase_60,
4067 }, {
4068 .eraseblocks = { {2 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read,
4076 .voltage = {2700, 3600},
4077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
4084 .model_id = EON_EN25Q32,
4085 .total_size = 4096,
4086 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004089 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
4092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = { {4 * 1024, 1024} },
4096 .block_erase = spi_block_erase_20,
4097 }, {
4098 .eraseblocks = { {64 * 1024, 64} },
4099 .block_erase = spi_block_erase_d8,
4100 }, {
4101 .eraseblocks = { {4 * 1024 * 1024, 1} },
4102 .block_erase = spi_block_erase_60,
4103 }, {
4104 .eraseblocks = { {4 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004109 .unlock = spi_disable_blockprotect,
4110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004112 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004119 .manufacture_id = EON_ID_NOPREFIX,
4120 .model_id = EON_EN25Q64,
4121 .total_size = 8192,
4122 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004125 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
4128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = { {4 * 1024, 2048} },
4132 .block_erase = spi_block_erase_20,
4133 }, {
4134 .eraseblocks = { {64 * 1024, 128} },
4135 .block_erase = spi_block_erase_d8,
4136 }, {
4137 .eraseblocks = { {8 * 1024 * 1024, 1} },
4138 .block_erase = spi_block_erase_60,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004145 .unlock = spi_disable_blockprotect,
4146 .write = spi_chip_write_256,
4147 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004148 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25Q128,
4157 .total_size = 16384,
4158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {4 * 1024, 4096} },
4168 .block_erase = spi_block_erase_20,
4169 }, {
4170 .eraseblocks = { {64 * 1024, 256} },
4171 .block_erase = spi_block_erase_d8,
4172 }, {
4173 .eraseblocks = { {16 * 1024 * 1024, 1} },
4174 .block_erase = spi_block_erase_60,
4175 }, {
4176 .eraseblocks = { {16 * 1024 * 1024, 1} },
4177 .block_erase = spi_block_erase_c7,
4178 }
4179 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004180 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004181 .unlock = spi_disable_blockprotect,
4182 .write = spi_chip_write_256,
4183 .read = spi_chip_read,
4184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004189 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004190 .manufacture_id = EON_ID_NOPREFIX,
4191 .model_id = EON_EN25QH16,
4192 .total_size = 2048,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* supports SFDP */
4195 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004196 /* QPI enable 0x38, disable 0xFF */
4197 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004198 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004199 .probe = probe_spi_rdid,
4200 .probe_timing = TIMING_ZERO,
4201 .block_erasers =
4202 {
4203 {
4204 .eraseblocks = { {4 * 1024, 512} },
4205 .block_erase = spi_block_erase_20,
4206 }, {
4207 .eraseblocks = { {64 * 1024, 32} },
4208 .block_erase = spi_block_erase_d8,
4209 }, {
4210 .eraseblocks = { {1024 * 2048, 1} },
4211 .block_erase = spi_block_erase_60,
4212 }, {
4213 .eraseblocks = { {1024 * 2048, 1} },
4214 .block_erase = spi_block_erase_c7,
4215 }
4216 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4218 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004219 .write = spi_chip_write_256,
4220 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004221 .voltage = {2700, 3600},
4222 },
4223
4224 {
4225 .vendor = "Eon",
4226 .name = "EN25QH32",
4227 .bustype = BUS_SPI,
4228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25QH32,
4230 .total_size = 4096,
4231 .page_size = 256,
4232 /* supports SFDP */
4233 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004234 /* QPI enable 0x38, disable 0xFF */
4235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004236 .tested = TEST_UNTESTED,
4237 .probe = probe_spi_rdid,
4238 .probe_timing = TIMING_ZERO,
4239 .block_erasers =
4240 {
4241 {
4242 .eraseblocks = { {4 * 1024, 1024} },
4243 .block_erase = spi_block_erase_20,
4244 }, {
4245 .eraseblocks = { {64 * 1024, 64} },
4246 .block_erase = spi_block_erase_d8,
4247 }, {
4248 .eraseblocks = { {1024 * 4096, 1} },
4249 .block_erase = spi_block_erase_60,
4250 }, {
4251 .eraseblocks = { {1024 * 4096, 1} },
4252 .block_erase = spi_block_erase_c7,
4253 }
4254 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004255 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4256 .unlock = spi_disable_blockprotect_bp3_srwd,
4257 .write = spi_chip_write_256,
4258 .read = spi_chip_read,
4259 .voltage = {2700, 3600},
4260 },
4261
4262 {
4263 .vendor = "Eon",
4264 .name = "EN25QH64",
4265 .bustype = BUS_SPI,
4266 .manufacture_id = EON_ID_NOPREFIX,
4267 .model_id = EON_EN25QH64,
4268 .total_size = 8192,
4269 .page_size = 256,
4270 /* supports SFDP */
4271 /* OTP: 512B total; enter 0x3A */
4272 /* QPI enable 0x38, disable 0xFF */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004274 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers = {
4278 {
4279 .eraseblocks = { {4 * 1024, 2048} },
4280 .block_erase = spi_block_erase_20,
4281 }, {
4282 .eraseblocks = { {64 * 1024, 128} },
4283 .block_erase = spi_block_erase_d8,
4284 }, {
4285 .eraseblocks = { { 8192 * 1024, 1} },
4286 .block_erase = spi_block_erase_60,
4287 }, {
4288 .eraseblocks = { { 8192 * 1024, 1} },
4289 .block_erase = spi_block_erase_c7,
4290 }
4291 },
4292 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4293 .unlock = spi_disable_blockprotect_bp3_srwd,
4294 .write = spi_chip_write_256,
4295 .read = spi_chip_read,
4296 .voltage = {2700, 3600},
4297 },
4298
4299 {
4300 .vendor = "Eon",
4301 .name = "EN25QH128",
4302 .bustype = BUS_SPI,
4303 .manufacture_id = EON_ID_NOPREFIX,
4304 .model_id = EON_EN25QH128,
4305 .total_size = 16384,
4306 .page_size = 256,
4307 /* supports SFDP */
4308 /* OTP: 512B total; enter 0x3A */
4309 /* QPI enable 0x38, disable 0xFF */
4310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4311 .tested = TEST_UNTESTED,
4312 .probe = probe_spi_rdid,
4313 .probe_timing = TIMING_ZERO,
4314 .block_erasers = {
4315 {
4316 .eraseblocks = { {4 * 1024, 4096} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 256} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { { 16384 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { { 16384 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
4329 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4330 .unlock = spi_disable_blockprotect_bp3_srwd,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
4333 .voltage = {2700, 3600},
4334 },
4335
4336 {
4337 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004338 .name = "EN25S10",
4339 .bustype = BUS_SPI,
4340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25S10,
4342 .total_size = 128,
4343 .page_size = 256,
4344 /* OTP: 256B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers = {
4350 {
4351 .eraseblocks = { {4 * 1024, 32} },
4352 .block_erase = spi_block_erase_20,
4353 }, {
4354 .eraseblocks = { {32 * 1024, 4} },
4355 .block_erase = spi_block_erase_52,
4356 }, {
4357 .eraseblocks = { {128 * 1024, 1} },
4358 .block_erase = spi_block_erase_60,
4359 }, {
4360 .eraseblocks = { {128 * 1024, 1} },
4361 .block_erase = spi_block_erase_c7,
4362 }
4363 },
4364 .printlock = spi_prettyprint_status_register_default_bp2,
4365 .unlock = spi_disable_blockprotect,
4366 .write = spi_chip_write_256,
4367 .read = spi_chip_read,
4368 .voltage = {1650, 1950},
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25S20",
4374 .bustype = BUS_SPI,
4375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25S20,
4377 .total_size = 256,
4378 .page_size = 256,
4379 /* OTP: 256B total; enter 0x3A */
4380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4381 .tested = TEST_UNTESTED,
4382 .probe = probe_spi_rdid,
4383 .probe_timing = TIMING_ZERO,
4384 .block_erasers = {
4385 {
4386 .eraseblocks = { {4 * 1024, 64} },
4387 .block_erase = spi_block_erase_20,
4388 }, {
4389 .eraseblocks = { {64 * 1024, 4} },
4390 .block_erase = spi_block_erase_d8,
4391 }, {
4392 .eraseblocks = { {256 * 1024, 1} },
4393 .block_erase = spi_block_erase_60,
4394 }, {
4395 .eraseblocks = { {256 * 1024, 1} },
4396 .block_erase = spi_block_erase_c7,
4397 }
4398 },
4399 .printlock = spi_prettyprint_status_register_default_bp2,
4400 .unlock = spi_disable_blockprotect,
4401 .write = spi_chip_write_256,
4402 .read = spi_chip_read,
4403 .voltage = {1650, 1950},
4404 },
4405
4406 {
4407 .vendor = "Eon",
4408 .name = "EN25S40",
4409 .bustype = BUS_SPI,
4410 .manufacture_id = EON_ID_NOPREFIX,
4411 .model_id = EON_EN25S40,
4412 .total_size = 512,
4413 .page_size = 256,
4414 /* OTP: 256B total; enter 0x3A */
4415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4416 .tested = TEST_UNTESTED,
4417 .probe = probe_spi_rdid,
4418 .probe_timing = TIMING_ZERO,
4419 .block_erasers = {
4420 {
4421 .eraseblocks = { {4 * 1024, 128} },
4422 .block_erase = spi_block_erase_20,
4423 }, {
4424 .eraseblocks = { {64 * 1024, 8} },
4425 .block_erase = spi_block_erase_d8,
4426 }, {
4427 .eraseblocks = { {512 * 1024, 1} },
4428 .block_erase = spi_block_erase_60,
4429 }, {
4430 .eraseblocks = { {512 * 1024, 1} },
4431 .block_erase = spi_block_erase_c7,
4432 }
4433 },
4434 .printlock = spi_prettyprint_status_register_default_bp2,
4435 .unlock = spi_disable_blockprotect,
4436 .write = spi_chip_write_256,
4437 .read = spi_chip_read,
4438 .voltage = {1650, 1950},
4439 },
4440
4441 {
4442 .vendor = "Eon",
4443 .name = "EN25S80",
4444 .bustype = BUS_SPI,
4445 .manufacture_id = EON_ID_NOPREFIX,
4446 .model_id = EON_EN25S80,
4447 .total_size = 1024,
4448 .page_size = 256,
4449 /* OTP: 256B total; enter 0x3A */
4450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4451 .tested = TEST_UNTESTED,
4452 .probe = probe_spi_rdid,
4453 .probe_timing = TIMING_ZERO,
4454 .block_erasers = {
4455 {
4456 .eraseblocks = { {4 * 1024, 256} },
4457 .block_erase = spi_block_erase_20,
4458 }, {
4459 .eraseblocks = { {64 * 1024, 16} },
4460 .block_erase = spi_block_erase_d8,
4461 }, {
4462 .eraseblocks = { {1024 * 1024, 1} },
4463 .block_erase = spi_block_erase_60,
4464 }, {
4465 .eraseblocks = { {1024 * 1024, 1} },
4466 .block_erase = spi_block_erase_c7,
4467 }
4468 },
4469 .printlock = spi_prettyprint_status_register_default_bp2,
4470 .unlock = spi_disable_blockprotect,
4471 .write = spi_chip_write_256,
4472 .read = spi_chip_read,
4473 .voltage = {1650, 1950},
4474 },
4475
4476 {
4477 .vendor = "Eon",
4478 .name = "EN25S16",
4479 .bustype = BUS_SPI,
4480 .manufacture_id = EON_ID_NOPREFIX,
4481 .model_id = EON_EN25S16,
4482 .total_size = 2048,
4483 .page_size = 256,
4484 /* OTP: 512B total; enter 0x3A */
4485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4486 .tested = TEST_UNTESTED,
4487 .probe = probe_spi_rdid,
4488 .probe_timing = TIMING_ZERO,
4489 .block_erasers = {
4490 {
4491 .eraseblocks = { {4 * 1024, 512} },
4492 .block_erase = spi_block_erase_20,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 32} },
4495 .block_erase = spi_block_erase_52,
4496 }, {
4497 .eraseblocks = { {32 * 1024, 64} },
4498 .block_erase = spi_block_erase_d8,
4499 }, {
4500 .eraseblocks = { {2048 * 1024, 1} },
4501 .block_erase = spi_block_erase_60,
4502 }, {
4503 .eraseblocks = { {2048 * 1024, 1} },
4504 .block_erase = spi_block_erase_c7,
4505 }
4506 },
4507 .printlock = spi_prettyprint_status_register_en25s_wp,
4508 .unlock = spi_disable_blockprotect_bp3_srwd,
4509 .write = spi_chip_write_256,
4510 .read = spi_chip_read,
4511 .voltage = {1650, 1950},
4512 },
4513
4514 {
4515 .vendor = "Eon",
4516 .name = "EN25S32",
4517 .bustype = BUS_SPI,
4518 .manufacture_id = EON_ID_NOPREFIX,
4519 .model_id = EON_EN25S32,
4520 .total_size = 4096,
4521 .page_size = 256,
4522 /* OTP: 512B total; enter 0x3A */
4523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4524 .tested = TEST_UNTESTED,
4525 .probe = probe_spi_rdid,
4526 .probe_timing = TIMING_ZERO,
4527 .block_erasers = {
4528 {
4529 .eraseblocks = { {4 * 1024, 1024} },
4530 .block_erase = spi_block_erase_20,
4531 }, {
4532 .eraseblocks = { {32 * 1024, 128} },
4533 .block_erase = spi_block_erase_52,
4534 }, {
4535 .eraseblocks = { {64 * 1024, 64} },
4536 .block_erase = spi_block_erase_d8,
4537 }, {
4538 .eraseblocks = { {4096 * 1024, 1} },
4539 .block_erase = spi_block_erase_60,
4540 }, {
4541 .eraseblocks = { {4096 * 1024, 1} },
4542 .block_erase = spi_block_erase_c7,
4543 }
4544 },
4545 .printlock = spi_prettyprint_status_register_en25s_wp,
4546 .unlock = spi_disable_blockprotect_bp3_srwd,
4547 .write = spi_chip_write_256,
4548 .read = spi_chip_read,
4549 .voltage = {1650, 1950},
4550 },
4551
4552 {
4553 .vendor = "Eon",
4554 .name = "EN25S64",
4555 .bustype = BUS_SPI,
4556 .manufacture_id = EON_ID_NOPREFIX,
4557 .model_id = EON_EN25S64,
4558 .total_size = 8192,
4559 .page_size = 256,
4560 /* OTP: 512B total; enter 0x3A */
4561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_spi_rdid,
4564 .probe_timing = TIMING_ZERO,
4565 .block_erasers = {
4566 {
4567 .eraseblocks = { {4 * 1024, 2048} },
4568 .block_erase = spi_block_erase_20,
4569 }, {
4570 .eraseblocks = { {64 * 1024, 128} },
4571 .block_erase = spi_block_erase_d8,
4572 }, {
4573 .eraseblocks = { {8192 * 1024, 1} },
4574 .block_erase = spi_block_erase_60,
4575 }, {
4576 .eraseblocks = { {8192 * 1024, 1} },
4577 .block_erase = spi_block_erase_c7,
4578 }
4579 },
4580 .printlock = spi_prettyprint_status_register_en25s_wp,
4581 .unlock = spi_disable_blockprotect_bp3_srwd,
4582 .write = spi_chip_write_256,
4583 .read = spi_chip_read,
4584 .voltage = {1650, 1950},
4585 },
4586
4587 {
4588 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004589 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004590 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004591 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004592 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004593 .total_size = 128,
4594 .page_size = 128,
4595 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004596 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004597 .probe = probe_jedec,
4598 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4599 .block_erasers =
4600 {
4601 {
4602 .eraseblocks = { {16 * 1024, 8} },
4603 .block_erase = erase_sector_jedec,
4604 },
4605 {
4606 .eraseblocks = { {128 * 1024, 1} },
4607 .block_erase = erase_chip_block_jedec,
4608 },
4609 },
4610 .write = write_jedec_1,
4611 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004612 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004613 },
4614
4615 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004616 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004617 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004620 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004621 .total_size = 256,
4622 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004623 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004624 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004625 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004626 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004627 .block_erasers =
4628 {
4629 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004630 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004631 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004632 {8 * 1024, 2},
4633 {32 * 1024, 1},
4634 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004635 },
4636 .block_erase = erase_sector_jedec,
4637 }, {
4638 .eraseblocks = { {256 * 1024, 1} },
4639 .block_erase = erase_chip_block_jedec,
4640 },
4641 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004642 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004644 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004645 },
4646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004648 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004651 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004652 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004653 .total_size = 256,
4654 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004655 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004656 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004659 .block_erasers =
4660 {
4661 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004662 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004663 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004664 {32 * 1024, 1},
4665 {8 * 1024, 2},
4666 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004667 },
4668 .block_erase = erase_sector_jedec,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = erase_chip_block_jedec,
4672 },
4673 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004674 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004676 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004677 },
4678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004679 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004680 .vendor = "Eon",
4681 .name = "EN29LV640B",
4682 .bustype = BUS_PARALLEL,
4683 .manufacture_id = EON_ID,
4684 .model_id = EON_EN29LV640B,
4685 .total_size = 8192,
4686 .page_size = 8192,
4687 .feature_bits = 0,
4688 .tested = TEST_OK_PREW,
4689 .probe = probe_en29lv640b,
4690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4691 .block_erasers =
4692 {
4693 {
4694 .eraseblocks = {
4695 {8 * 1024, 8},
4696 {64 * 1024, 127},
4697 },
4698 .block_erase = block_erase_en29lv640b,
4699 }, {
4700 .eraseblocks = { {8 * 1024 * 1024, 1} },
4701 .block_erase = block_erase_chip_en29lv640b,
4702 },
4703 },
4704 .write = write_en29lv640b,
4705 .read = read_memmapped,
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004710 .vendor = "Fujitsu",
4711 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004713 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004714 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004715 .total_size = 512,
4716 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004717 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004718 .tested = TEST_UNTESTED,
4719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004720 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004721 .block_erasers =
4722 {
4723 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004724 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004725 {16 * 1024, 1},
4726 {8 * 1024, 2},
4727 {32 * 1024, 1},
4728 {64 * 1024, 7},
4729 },
Sean Nelson35727f72010-01-28 23:55:12 +00004730 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004731 }, {
4732 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004733 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004734 },
4735 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004736 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004738 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004739 },
4740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004741 {
4742 .vendor = "Fujitsu",
4743 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004744 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004746 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004747 .total_size = 512,
4748 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004750 .tested = TEST_UNTESTED,
4751 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004752 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004753 .block_erasers =
4754 {
4755 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004756 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004757 {64 * 1024, 7},
4758 {32 * 1024, 1},
4759 {8 * 1024, 2},
4760 {16 * 1024, 1},
4761 },
Sean Nelson35727f72010-01-28 23:55:12 +00004762 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004763 }, {
4764 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004765 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004766 },
4767 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004768 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004770 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004771 },
4772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004773 {
Sean Nelson35727f72010-01-28 23:55:12 +00004774 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004775 .vendor = "Fujitsu",
4776 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004777 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004778 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004779 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004780 .total_size = 512,
4781 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004782 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004783 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004784 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004785 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004786 .block_erasers =
4787 {
4788 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004789 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004790 {16 * 1024, 1},
4791 {8 * 1024, 2},
4792 {32 * 1024, 1},
4793 {64 * 1024, 7},
4794 },
4795 .block_erase = block_erase_m29f400bt,
4796 }, {
4797 .eraseblocks = { {512 * 1024, 1} },
4798 .block_erase = block_erase_chip_m29f400bt,
4799 },
4800 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004801 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004802 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004803 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004804 },
4805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 {
4807 .vendor = "Fujitsu",
4808 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004809 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004811 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004812 .total_size = 512,
4813 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004814 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004815 .tested = TEST_UNTESTED,
4816 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004818 .block_erasers =
4819 {
4820 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004821 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004822 {64 * 1024, 7},
4823 {32 * 1024, 1},
4824 {8 * 1024, 2},
4825 {16 * 1024, 1},
4826 },
4827 .block_erase = block_erase_m29f400bt,
4828 }, {
4829 .eraseblocks = { {512 * 1024, 1} },
4830 .block_erase = block_erase_chip_m29f400bt,
4831 },
4832 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004833 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004834 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004835 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004836 },
4837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004839 .vendor = "Fujitsu",
4840 .name = "MBM29LV160BE",
4841 .bustype = BUS_PARALLEL,
4842 .manufacture_id = FUJITSU_ID,
4843 .model_id = FUJITSU_MBM29LV160BE,
4844 .total_size = 2 * 1024,
4845 .page_size = 0,
4846 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4847 .tested = TEST_UNTESTED,
4848 .probe = probe_m29f400bt,
4849 .probe_timing = TIMING_IGNORED,
4850 .block_erasers =
4851 {
4852 {
4853 .eraseblocks = {
4854 {16 * 1024, 1},
4855 {8 * 1024, 2},
4856 {32 * 1024, 1},
4857 {64 * 1024, 31},
4858 },
4859 .block_erase = block_erase_m29f400bt,
4860 }, {
4861 .eraseblocks = { {2048 * 1024, 1} },
4862 .block_erase = block_erase_chip_m29f400bt,
4863 },
4864 },
4865 .write = write_m29f400bt, /* Supports a fast mode too */
4866 .read = read_memmapped,
4867 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4868 },
4869
4870 {
4871 .vendor = "Fujitsu",
4872 .name = "MBM29LV160TE",
4873 .bustype = BUS_PARALLEL,
4874 .manufacture_id = FUJITSU_ID,
4875 .model_id = FUJITSU_MBM29LV160TE,
4876 .total_size = 2 * 1024,
4877 .page_size = 0,
4878 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4879 .tested = TEST_UNTESTED,
4880 .probe = probe_m29f400bt,
4881 .probe_timing = TIMING_IGNORED,
4882 .block_erasers =
4883 {
4884 {
4885 .eraseblocks = {
4886 {64 * 1024, 31},
4887 {32 * 1024, 1},
4888 {8 * 1024, 2},
4889 {16 * 1024, 1},
4890 },
4891 .block_erase = block_erase_m29f400bt,
4892 }, {
4893 .eraseblocks = { {2048 * 1024, 1} },
4894 .block_erase = block_erase_chip_m29f400bt,
4895 },
4896 },
4897 .write = write_m29f400bt, /* Supports a fast mode too */
4898 .read = read_memmapped,
4899 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4900 },
4901
4902 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004903 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004904 .name = "GD25LQ32",
4905 .bustype = BUS_SPI,
4906 .manufacture_id = GIGADEVICE_ID,
4907 .model_id = GIGADEVICE_GD25LQ32,
4908 .total_size = 4096,
4909 .page_size = 256,
4910 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4912 .tested = TEST_OK_PREW,
4913 .probe = probe_spi_rdid,
4914 .probe_timing = TIMING_ZERO,
4915 .block_erasers =
4916 {
4917 {
4918 .eraseblocks = { {4 * 1024, 1024} },
4919 .block_erase = spi_block_erase_20,
4920 }, {
4921 .eraseblocks = { {32 * 1024, 128} },
4922 .block_erase = spi_block_erase_52,
4923 }, {
4924 .eraseblocks = { {64 * 1024, 64} },
4925 .block_erase = spi_block_erase_d8,
4926 }, {
4927 .eraseblocks = { {4 * 1024 * 1024, 1} },
4928 .block_erase = spi_block_erase_60,
4929 }, {
4930 .eraseblocks = { {4 * 1024 * 1024, 1} },
4931 .block_erase = spi_block_erase_c7,
4932 }
4933 },
4934 .printlock = spi_prettyprint_status_register_default_bp4,
4935 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4936 .write = spi_chip_write_256,
4937 .read = spi_chip_read,
4938 .voltage = {1700, 1950},
4939 },
4940
4941 {
4942 .vendor = "GigaDevice",
4943 .name = "GD25Q512",
4944 .bustype = BUS_SPI,
4945 .manufacture_id = GIGADEVICE_ID,
4946 .model_id = GIGADEVICE_GD25Q512,
4947 .total_size = 64,
4948 .page_size = 256,
4949 .feature_bits = FEATURE_WRSR_WREN,
4950 .tested = TEST_UNTESTED,
4951 .probe = probe_spi_rdid,
4952 .probe_timing = TIMING_ZERO,
4953 .block_erasers = {
4954 {
4955 .eraseblocks = { {4 * 1024, 16} },
4956 .block_erase = spi_block_erase_20,
4957 }, {
4958 .eraseblocks = { {32 * 1024, 2} },
4959 .block_erase = spi_block_erase_52,
4960 }, {
4961 .eraseblocks = { {64 * 1024, 1} },
4962 .block_erase = spi_block_erase_60,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 1} },
4965 .block_erase = spi_block_erase_c7,
4966 }
4967 },
4968 .printlock = spi_prettyprint_status_register_default_bp4,
4969 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4970 .write = spi_chip_write_256,
4971 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4972 .voltage = {2700, 3600},
4973 },
4974
4975 {
4976 .vendor = "GigaDevice",
4977 .name = "GD25Q10",
4978 .bustype = BUS_SPI,
4979 .manufacture_id = GIGADEVICE_ID,
4980 .model_id = GIGADEVICE_GD25Q10,
4981 .total_size = 128,
4982 .page_size = 256,
4983 .feature_bits = FEATURE_WRSR_WREN,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
4986 .probe_timing = TIMING_ZERO,
4987 .block_erasers = {
4988 {
4989 .eraseblocks = { {4 * 1024, 32} },
4990 .block_erase = spi_block_erase_20,
4991 }, {
4992 .eraseblocks = { {32 * 1024, 4} },
4993 .block_erase = spi_block_erase_52,
4994 }, {
4995 .eraseblocks = { {64 * 1024, 2} },
4996 .block_erase = spi_block_erase_d8,
4997 }, {
4998 .eraseblocks = { {128 * 1024, 1} },
4999 .block_erase = spi_block_erase_60,
5000 }, {
5001 .eraseblocks = { {128 * 1024, 1} },
5002 .block_erase = spi_block_erase_c7,
5003 }
5004 },
5005 .printlock = spi_prettyprint_status_register_default_bp4,
5006 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5007 .write = spi_chip_write_256,
5008 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5009 .voltage = {2700, 3600},
5010 },
5011
5012 {
5013 .vendor = "GigaDevice",
5014 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005015 .bustype = BUS_SPI,
5016 .manufacture_id = GIGADEVICE_ID,
5017 .model_id = GIGADEVICE_GD25Q20,
5018 .total_size = 256,
5019 .page_size = 256,
5020 .feature_bits = FEATURE_WRSR_WREN,
5021 .tested = TEST_UNTESTED,
5022 .probe = probe_spi_rdid,
5023 .probe_timing = TIMING_ZERO,
5024 .block_erasers =
5025 {
5026 {
5027 .eraseblocks = { {4 * 1024, 64} },
5028 .block_erase = spi_block_erase_20,
5029 }, {
5030 .eraseblocks = { {32 * 1024, 8} },
5031 .block_erase = spi_block_erase_52,
5032 }, {
5033 .eraseblocks = { {64 * 1024, 4} },
5034 .block_erase = spi_block_erase_d8,
5035 }, {
5036 .eraseblocks = { {256 * 1024, 1} },
5037 .block_erase = spi_block_erase_60,
5038 }, {
5039 .eraseblocks = { {256 * 1024, 1} },
5040 .block_erase = spi_block_erase_c7,
5041 }
5042 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005043 .printlock = spi_prettyprint_status_register_default_bp4,
5044 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005045 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005046 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005047 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005048 },
5049
5050 {
5051 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005052 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005053 .bustype = BUS_SPI,
5054 .manufacture_id = GIGADEVICE_ID,
5055 .model_id = GIGADEVICE_GD25Q40,
5056 .total_size = 512,
5057 .page_size = 256,
5058 .feature_bits = FEATURE_WRSR_WREN,
5059 .tested = TEST_UNTESTED,
5060 .probe = probe_spi_rdid,
5061 .probe_timing = TIMING_ZERO,
5062 .block_erasers =
5063 {
5064 {
5065 .eraseblocks = { {4 * 1024, 128} },
5066 .block_erase = spi_block_erase_20,
5067 }, {
5068 .eraseblocks = { {32 * 1024, 16} },
5069 .block_erase = spi_block_erase_52,
5070 }, {
5071 .eraseblocks = { {64 * 1024, 8} },
5072 .block_erase = spi_block_erase_d8,
5073 }, {
5074 .eraseblocks = { {512 * 1024, 1} },
5075 .block_erase = spi_block_erase_60,
5076 }, {
5077 .eraseblocks = { {512 * 1024, 1} },
5078 .block_erase = spi_block_erase_c7,
5079 }
5080 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005081 .printlock = spi_prettyprint_status_register_default_bp4,
5082 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005083 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005084 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005085 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005086 },
5087
5088 {
5089 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005090 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005091 .bustype = BUS_SPI,
5092 .manufacture_id = GIGADEVICE_ID,
5093 .model_id = GIGADEVICE_GD25Q80,
5094 .total_size = 1024,
5095 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005096 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5098 .tested = TEST_OK_PREW,
5099 .probe = probe_spi_rdid,
5100 .probe_timing = TIMING_ZERO,
5101 .block_erasers =
5102 {
5103 {
5104 .eraseblocks = { {4 * 1024, 256} },
5105 .block_erase = spi_block_erase_20,
5106 }, {
5107 .eraseblocks = { {32 * 1024, 32} },
5108 .block_erase = spi_block_erase_52,
5109 }, {
5110 .eraseblocks = { {64 * 1024, 16} },
5111 .block_erase = spi_block_erase_d8,
5112 }, {
5113 .eraseblocks = { {1024 * 1024, 1} },
5114 .block_erase = spi_block_erase_60,
5115 }, {
5116 .eraseblocks = { {1024 * 1024, 1} },
5117 .block_erase = spi_block_erase_c7,
5118 }
5119 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005120 .printlock = spi_prettyprint_status_register_default_bp4,
5121 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005122 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005123 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005124 .voltage = {2700, 3600},
5125 },
5126
5127 {
5128 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005129 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005130 .bustype = BUS_SPI,
5131 .manufacture_id = GIGADEVICE_ID,
5132 .model_id = GIGADEVICE_GD25Q16,
5133 .total_size = 2048,
5134 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005135 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5137 .tested = TEST_UNTESTED,
5138 .probe = probe_spi_rdid,
5139 .probe_timing = TIMING_ZERO,
5140 .block_erasers =
5141 {
5142 {
5143 .eraseblocks = { {4 * 1024, 512} },
5144 .block_erase = spi_block_erase_20,
5145 }, {
5146 .eraseblocks = { {32 * 1024, 64} },
5147 .block_erase = spi_block_erase_52,
5148 }, {
5149 .eraseblocks = { {64 * 1024, 32} },
5150 .block_erase = spi_block_erase_d8,
5151 }, {
5152 .eraseblocks = { {2 * 1024 * 1024, 1} },
5153 .block_erase = spi_block_erase_60,
5154 }, {
5155 .eraseblocks = { {2 * 1024 * 1024, 1} },
5156 .block_erase = spi_block_erase_c7,
5157 }
5158 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005159 .printlock = spi_prettyprint_status_register_default_bp4,
5160 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005162 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005163 .voltage = {2700, 3600},
5164 },
5165
5166 {
5167 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005168 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005169 .bustype = BUS_SPI,
5170 .manufacture_id = GIGADEVICE_ID,
5171 .model_id = GIGADEVICE_GD25Q32,
5172 .total_size = 4096,
5173 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005174 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005176 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005177 .probe = probe_spi_rdid,
5178 .probe_timing = TIMING_ZERO,
5179 .block_erasers =
5180 {
5181 {
5182 .eraseblocks = { {4 * 1024, 1024} },
5183 .block_erase = spi_block_erase_20,
5184 }, {
5185 .eraseblocks = { {32 * 1024, 128} },
5186 .block_erase = spi_block_erase_52,
5187 }, {
5188 .eraseblocks = { {64 * 1024, 64} },
5189 .block_erase = spi_block_erase_d8,
5190 }, {
5191 .eraseblocks = { {4 * 1024 * 1024, 1} },
5192 .block_erase = spi_block_erase_60,
5193 }, {
5194 .eraseblocks = { {4 * 1024 * 1024, 1} },
5195 .block_erase = spi_block_erase_c7,
5196 }
5197 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005198 .printlock = spi_prettyprint_status_register_default_bp4,
5199 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005200 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005201 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005202 .voltage = {2700, 3600},
5203 },
5204
5205 {
5206 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005207 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005208 .bustype = BUS_SPI,
5209 .manufacture_id = GIGADEVICE_ID,
5210 .model_id = GIGADEVICE_GD25Q64,
5211 .total_size = 8192,
5212 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005213 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005215 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005216 .probe = probe_spi_rdid,
5217 .probe_timing = TIMING_ZERO,
5218 .block_erasers =
5219 {
5220 {
5221 .eraseblocks = { {4 * 1024, 2048} },
5222 .block_erase = spi_block_erase_20,
5223 }, {
5224 .eraseblocks = { {32 * 1024, 256} },
5225 .block_erase = spi_block_erase_52,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 128} },
5228 .block_erase = spi_block_erase_d8,
5229 }, {
5230 .eraseblocks = { {8 * 1024 * 1024, 1} },
5231 .block_erase = spi_block_erase_60,
5232 }, {
5233 .eraseblocks = { {8 * 1024 * 1024, 1} },
5234 .block_erase = spi_block_erase_c7,
5235 }
5236 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005237 .printlock = spi_prettyprint_status_register_default_bp4,
5238 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005239 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005240 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005241 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005242 },
5243
5244 {
5245 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005246 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005247 .bustype = BUS_SPI,
5248 .manufacture_id = GIGADEVICE_ID,
5249 .model_id = GIGADEVICE_GD25Q128,
5250 .total_size = 16384,
5251 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005252 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5254 .tested = TEST_UNTESTED,
5255 .probe = probe_spi_rdid,
5256 .probe_timing = TIMING_ZERO,
5257 .block_erasers =
5258 {
5259 {
5260 .eraseblocks = { {4 * 1024, 4096} },
5261 .block_erase = spi_block_erase_20,
5262 }, {
5263 .eraseblocks = { {32 * 1024, 512} },
5264 .block_erase = spi_block_erase_52,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 256} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {16 * 1024 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {16 * 1024 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005276 .printlock = spi_prettyprint_status_register_default_bp4,
5277 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5280 .voltage = {2700, 3600},
5281 },
5282
5283 {
5284 .vendor = "GigaDevice",
5285 .name = "GD25T80",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = GIGADEVICE_ID,
5288 .model_id = GIGADEVICE_GD25T80,
5289 .total_size = 1024,
5290 .page_size = 256,
5291 /* OTP: 256B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
5296 .block_erasers = {
5297 {
5298 .eraseblocks = { {4 * 1024, 256} },
5299 .block_erase = spi_block_erase_20,
5300 }, {
5301 .eraseblocks = { {64 * 1024, 16} },
5302 .block_erase = spi_block_erase_52,
5303 }, {
5304 .eraseblocks = { {64 * 1024, 16} },
5305 .block_erase = spi_block_erase_d8,
5306 }, {
5307 .eraseblocks = { {1024 * 1024, 1} },
5308 .block_erase = spi_block_erase_60,
5309 }, {
5310 .eraseblocks = { {1024 * 1024, 1} },
5311 .block_erase = spi_block_erase_c7,
5312 }
5313 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005314 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005315 .unlock = spi_disable_blockprotect,
5316 .write = spi_chip_write_256,
5317 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005318 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005319 },
5320
5321 {
David Borgc96a8bd2010-06-21 16:12:22 +00005322 .vendor = "Hyundai",
5323 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005324 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005325 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005326 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005327 .total_size = 256,
5328 .page_size = 256 * 1024,
5329 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005330 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005331 .probe = probe_jedec,
5332 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5333 .block_erasers =
5334 {
5335 {
5336 .eraseblocks = {
5337 {64 * 1024, 3},
5338 {32 * 1024, 1},
5339 {8 * 1024, 2},
5340 {16 * 1024, 1},
5341 },
5342 .block_erase = erase_sector_jedec,
5343 }, {
5344 .eraseblocks = { {256 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 },
5347 },
5348 .write = write_jedec_1,
5349 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005350 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005351 },
5352
5353 {
5354 .vendor = "Hyundai",
5355 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005356 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005357 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005358 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005359 .total_size = 256,
5360 .page_size = 256 * 1024,
5361 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5362 .tested = TEST_UNTESTED,
5363 .probe = probe_jedec,
5364 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5365 .block_erasers =
5366 {
5367 {
5368 .eraseblocks = {
5369 {16 * 1024, 1},
5370 {8 * 1024, 2},
5371 {32 * 1024, 1},
5372 {64 * 1024, 3},
5373 },
5374 .block_erase = erase_sector_jedec,
5375 }, {
5376 .eraseblocks = { {256 * 1024, 1} },
5377 .block_erase = erase_chip_block_jedec,
5378 },
5379 },
5380 .write = write_jedec_1,
5381 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005382 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005383 },
5384
5385 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005386 .vendor = "Hyundai",
5387 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005388 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005389 .manufacture_id = HYUNDAI_ID,
5390 .model_id = HYUNDAI_HY29F040A,
5391 .total_size = 512,
5392 .page_size = 64 * 1024,
5393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5394 .tested = TEST_UNTESTED,
5395 .probe = probe_jedec,
5396 .probe_timing = TIMING_ZERO,
5397 .block_erasers =
5398 {
5399 {
5400 .eraseblocks = { {64 * 1024, 8} },
5401 .block_erase = erase_sector_jedec,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = erase_chip_block_jedec,
5405 },
5406 },
5407 .write = write_jedec_1,
5408 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005409 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005410 },
5411
5412 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005413 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005414 .name = "25F160S33B8",
5415 .bustype = BUS_SPI,
5416 .manufacture_id = INTEL_ID,
5417 .model_id = INTEL_25F160S33B8,
5418 .total_size = 2048,
5419 .page_size = 256,
5420 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5422 .tested = TEST_UNTESTED,
5423 .probe = probe_spi_rdid,
5424 .probe_timing = TIMING_ZERO,
5425 .block_erasers =
5426 {
5427 {
5428 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5429 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5430 * have no effect on the memory contents, but sets a flag in the SR.
5431 .eraseblocks = {
5432 {8 * 1024, 8},
5433 {64 * 1024, 31} // inaccessible
5434 },
5435 .block_erase = spi_block_erase_40,
5436 }, { */
5437 .eraseblocks = { {64 * 1024, 32} },
5438 .block_erase = spi_block_erase_d8,
5439 }, {
5440 .eraseblocks = { {2 * 1024 * 1024, 1} },
5441 .block_erase = spi_block_erase_c7,
5442 }
5443 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005444 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5445 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005446 .write = spi_chip_write_256,
5447 .read = spi_chip_read, /* also fast read 0x0B */
5448 .voltage = {2700, 3600},
5449 },
5450
5451 {
5452 .vendor = "Intel",
5453 .name = "25F160S33T8",
5454 .bustype = BUS_SPI,
5455 .manufacture_id = INTEL_ID,
5456 .model_id = INTEL_25F160S33T8,
5457 .total_size = 2048,
5458 .page_size = 256,
5459 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5461 .tested = TEST_UNTESTED,
5462 .probe = probe_spi_rdid,
5463 .probe_timing = TIMING_ZERO,
5464 .block_erasers =
5465 {
5466 {
5467 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5468 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5469 * have no effect on the memory contents, but sets a flag in the SR.
5470 .eraseblocks = {
5471 {64 * 1024, 31}, // inaccessible
5472 {8 * 1024, 8}
5473 },
5474 .block_erase = spi_block_erase_40,
5475 }, { */
5476 .eraseblocks = { {64 * 1024, 32} },
5477 .block_erase = spi_block_erase_d8,
5478 }, {
5479 .eraseblocks = { {2 * 1024 * 1024, 1} },
5480 .block_erase = spi_block_erase_c7,
5481 }
5482 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005483 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5484 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005485 .write = spi_chip_write_256,
5486 .read = spi_chip_read, /* also fast read 0x0B */
5487 .voltage = {2700, 3600},
5488 },
5489
5490 {
5491 .vendor = "Intel",
5492 .name = "25F320S33B8",
5493 .bustype = BUS_SPI,
5494 .manufacture_id = INTEL_ID,
5495 .model_id = INTEL_25F320S33B8,
5496 .total_size = 4096,
5497 .page_size = 256,
5498 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5500 .tested = TEST_UNTESTED,
5501 .probe = probe_spi_rdid,
5502 .probe_timing = TIMING_ZERO,
5503 .block_erasers =
5504 {
5505 {
5506 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5507 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5508 * have no effect on the memory contents, but sets a flag in the SR.
5509 .eraseblocks = {
5510 {8 * 1024, 8},
5511 {64 * 1024, 63} // inaccessible
5512 },
5513 .block_erase = spi_block_erase_40,
5514 }, { */
5515 .eraseblocks = { {64 * 1024, 64} },
5516 .block_erase = spi_block_erase_d8,
5517 }, {
5518 .eraseblocks = { {4 * 1024 * 1024, 1} },
5519 .block_erase = spi_block_erase_c7,
5520 }
5521 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005522 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5523 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005524 .write = spi_chip_write_256,
5525 .read = spi_chip_read, /* also fast read 0x0B */
5526 .voltage = {2700, 3600},
5527 },
5528
5529 {
5530 .vendor = "Intel",
5531 .name = "25F320S33T8",
5532 .bustype = BUS_SPI,
5533 .manufacture_id = INTEL_ID,
5534 .model_id = INTEL_25F320S33T8,
5535 .total_size = 4096,
5536 .page_size = 256,
5537 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5539 .tested = TEST_UNTESTED,
5540 .probe = probe_spi_rdid,
5541 .probe_timing = TIMING_ZERO,
5542 .block_erasers =
5543 {
5544 {
5545 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5546 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5547 * have no effect on the memory contents, but sets a flag in the SR.
5548 .eraseblocks = {
5549 {64 * 1024, 63}, // inaccessible
5550 {8 * 1024, 8}
5551 },
5552 .block_erase = spi_block_erase_40,
5553 }, { */
5554 .eraseblocks = { {64 * 1024, 64} },
5555 .block_erase = spi_block_erase_d8,
5556 }, {
5557 .eraseblocks = { {4 * 1024 * 1024, 1} },
5558 .block_erase = spi_block_erase_c7,
5559 }
5560 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005561 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5562 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005563 .write = spi_chip_write_256,
5564 .read = spi_chip_read, /* also fast read 0x0B */
5565 .voltage = {2700, 3600},
5566 },
5567
5568 {
5569 .vendor = "Intel",
5570 .name = "25F640S33B8",
5571 .bustype = BUS_SPI,
5572 .manufacture_id = INTEL_ID,
5573 .model_id = INTEL_25F640S33B8,
5574 .total_size = 8192,
5575 .page_size = 256,
5576 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5578 .tested = TEST_UNTESTED,
5579 .probe = probe_spi_rdid,
5580 .probe_timing = TIMING_ZERO,
5581 .block_erasers =
5582 {
5583 {
5584 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5585 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5586 * have no effect on the memory contents, but sets a flag in the SR.
5587 .eraseblocks = {
5588 {8 * 1024, 8},
5589 {64 * 1024, 127} // inaccessible
5590 },
5591 .block_erase = spi_block_erase_40,
5592 }, { */
5593 .eraseblocks = { {64 * 1024, 128} },
5594 .block_erase = spi_block_erase_d8,
5595 }, {
5596 .eraseblocks = { {8 * 1024 * 1024, 1} },
5597 .block_erase = spi_block_erase_c7,
5598 }
5599 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005600 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5601 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005602 .write = spi_chip_write_256,
5603 .read = spi_chip_read, /* also fast read 0x0B */
5604 .voltage = {2700, 3600},
5605 },
5606
5607 {
5608 .vendor = "Intel",
5609 .name = "25F640S33T8",
5610 .bustype = BUS_SPI,
5611 .manufacture_id = INTEL_ID,
5612 .model_id = INTEL_25F640S33T8,
5613 .total_size = 8192,
5614 .page_size = 256,
5615 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5616 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5617 .tested = TEST_UNTESTED,
5618 .probe = probe_spi_rdid,
5619 .probe_timing = TIMING_ZERO,
5620 .block_erasers =
5621 {
5622 {
5623 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5624 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5625 * have no effect on the memory contents, but sets a flag in the SR.
5626 .eraseblocks = {
5627 {64 * 1024, 127}, // inaccessible
5628 {8 * 1024, 8}
5629 },
5630 .block_erase = spi_block_erase_40,
5631 }, { */
5632 .eraseblocks = { {64 * 1024, 128} },
5633 .block_erase = spi_block_erase_d8,
5634 }, {
5635 .eraseblocks = { {8 * 1024 * 1024, 1} },
5636 .block_erase = spi_block_erase_c7,
5637 }
5638 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005639 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5640 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005641 .write = spi_chip_write_256,
5642 .read = spi_chip_read, /* also fast read 0x0B */
5643 .voltage = {2700, 3600},
5644 },
5645
5646 {
5647 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005648 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005649 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005650 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005651 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005652 .total_size = 128,
5653 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005654 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005655 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005657 .block_erasers =
5658 {
5659 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005660 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005661 {8 * 1024, 1},
5662 {4 * 1024, 2},
5663 {112 * 1024, 1},
5664 },
Sean Nelson28accc22010-03-19 18:47:06 +00005665 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005666 },
5667 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005668 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005670 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005671 },
5672
5673 {
5674 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005675 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005676 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005677 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005678 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005679 .total_size = 128,
5680 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005681 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005682 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005683 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005684 .block_erasers =
5685 {
5686 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005687 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005688 {112 * 1024, 1},
5689 {4 * 1024, 2},
5690 {8 * 1024, 1},
5691 },
Sean Nelson28accc22010-03-19 18:47:06 +00005692 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005693 },
5694 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005695 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005697 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005698 },
5699
5700 {
5701 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005702 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005703 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005704 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005705 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005706 .total_size = 256,
5707 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005708 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005709 .probe = probe_82802ab,
5710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5711 .block_erasers =
5712 {
5713 {
5714 .eraseblocks = {
5715 {128 * 1024, 1},
5716 {96 * 1024, 1},
5717 {8 * 1024, 2},
5718 {16 * 1024, 1},
5719 },
5720 .block_erase = erase_block_82802ab,
5721 },
5722 },
5723 .write = write_82802ab,
5724 .read = read_memmapped,
5725 },
5726
5727 {
5728 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005729 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005730 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005731 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005732 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005733 .total_size = 512,
5734 .page_size = 256,
5735 .tested = TEST_UNTESTED,
5736 .probe = probe_82802ab,
5737 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005738 .block_erasers =
5739 {
5740 {
5741 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005742 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005743 },
5744 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005745 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005746 .write = write_82802ab,
5747 .read = read_memmapped,
5748 },
5749
5750 {
5751 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005752 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005753 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005754 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005755 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005756 .total_size = 512,
5757 .page_size = 128 * 1024, /* maximal block size */
5758 .tested = TEST_UNTESTED,
5759 .probe = probe_82802ab,
5760 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5761 .block_erasers =
5762 {
5763 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005764 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005765 {16 * 1024, 1},
5766 {8 * 1024, 2},
5767 {96 * 1024, 1},
5768 {128 * 1024, 3},
5769 },
5770 .block_erase = erase_block_82802ab,
5771 },
5772 },
5773 .write = write_82802ab,
5774 .read = read_memmapped,
5775 },
5776
5777 {
5778 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005779 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005780 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005781 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005782 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005783 .total_size = 512,
5784 .page_size = 128 * 1024, /* maximal block size */
5785 .tested = TEST_UNTESTED,
5786 .probe = probe_82802ab,
5787 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5788 .block_erasers =
5789 {
5790 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005791 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005792 {128 * 1024, 3},
5793 {96 * 1024, 1},
5794 {8 * 1024, 2},
5795 {16 * 1024, 1},
5796 },
5797 .block_erase = erase_block_82802ab,
5798 },
5799 },
5800 .write = write_82802ab,
5801 .read = read_memmapped,
5802 },
5803
5804 {
5805 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005806 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005807 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005808 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005809 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005810 .total_size = 512,
5811 .page_size = 128 * 1024, /* maximal block size */
5812 .feature_bits = FEATURE_ADDR_SHIFTED,
5813 .tested = TEST_UNTESTED,
5814 .probe = probe_82802ab,
5815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5816 .block_erasers =
5817 {
5818 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005819 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005820 {16 * 1024, 1},
5821 {8 * 1024, 2},
5822 {96 * 1024, 1},
5823 {128 * 1024, 3},
5824 },
5825 .block_erase = erase_block_82802ab,
5826 },
5827 },
5828 .write = write_82802ab,
5829 .read = read_memmapped,
5830 },
5831
5832 {
5833 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005834 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005835 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005836 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005837 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005838 .total_size = 512,
5839 .page_size = 128 * 1024, /* maximal block size */
5840 .feature_bits = FEATURE_ADDR_SHIFTED,
5841 .tested = TEST_UNTESTED,
5842 .probe = probe_82802ab,
5843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5844 .block_erasers =
5845 {
5846 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005847 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005848 {128 * 1024, 3},
5849 {96 * 1024, 1},
5850 {8 * 1024, 2},
5851 {16 * 1024, 1},
5852 },
5853 .block_erase = erase_block_82802ab,
5854 },
5855 },
5856 .write = write_82802ab,
5857 .read = read_memmapped,
5858 },
5859
5860 {
5861 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005863 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005864 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005865 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 .total_size = 512,
5867 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005868 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005869 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005870 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005871 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005872 .block_erasers =
5873 {
5874 {
5875 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005876 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005877 },
5878 },
Sean Nelson28accc22010-03-19 18:47:06 +00005879 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005880 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005882 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005883 },
5884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005885 {
5886 .vendor = "Intel",
5887 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005888 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005889 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005890 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005891 .total_size = 1024,
5892 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005893 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005894 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005895 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005896 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005897 .block_erasers =
5898 {
5899 {
5900 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005901 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005902 },
5903 },
Sean Nelson28accc22010-03-19 18:47:06 +00005904 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005905 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005907 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005908 },
5909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005910 {
5911 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00005912 .name = "MX23L3254",
5913 .bustype = BUS_SPI,
5914 .manufacture_id = MACRONIX_ID,
5915 .model_id = MACRONIX_MX23L3254,
5916 .total_size = 4096,
5917 .page_size = 256,
5918 .tested = TEST_OK_PR | TEST_BAD_EW,
5919 .probe = probe_spi_rdid,
5920 .probe_timing = TIMING_ZERO,
5921 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
5922 .read = spi_chip_read, /* Fast read (0x0B) supported */
5923 .voltage = {3000, 3600},
5924 },
5925
5926 {
5927 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005928 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005929 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005930 .manufacture_id = MACRONIX_ID,
5931 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005932 .total_size = 64,
5933 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005934 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005935 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005938 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 16} },
5943 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005944 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005945 .eraseblocks = { {64 * 1024, 1} },
5946 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005947 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005948 .eraseblocks = { {64 * 1024, 1} },
5949 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005950 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005951 .eraseblocks = { {64 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005953 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005954 .eraseblocks = { {64 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 },
5957 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005958 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005959 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005960 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005961 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5962 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005963 },
5964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005965 {
5966 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005967 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005968 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005969 .manufacture_id = MACRONIX_ID,
5970 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005971 .total_size = 128,
5972 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005973 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005974 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005975 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005976 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005977 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 32} },
5982 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005983 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005984 .eraseblocks = { {64 * 1024, 2} },
5985 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005986 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005987 .eraseblocks = { {128 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005989 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005990 .eraseblocks = { {128 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 },
5993 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005994 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005995 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005996 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005997 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005998 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005999 },
6000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006001 {
6002 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006003 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006004 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006005 .manufacture_id = MACRONIX_ID,
6006 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006007 .total_size = 256,
6008 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006009 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006013 .block_erasers =
6014 {
6015 {
6016 .eraseblocks = { {4 * 1024, 64} },
6017 .block_erase = spi_block_erase_20,
6018 }, {
6019 .eraseblocks = { {64 * 1024, 4} },
6020 .block_erase = spi_block_erase_52,
6021 }, {
6022 .eraseblocks = { {64 * 1024, 4} },
6023 .block_erase = spi_block_erase_d8,
6024 }, {
6025 .eraseblocks = { {256 * 1024, 1} },
6026 .block_erase = spi_block_erase_60,
6027 }, {
6028 .eraseblocks = { {256 * 1024, 1} },
6029 .block_erase = spi_block_erase_c7,
6030 },
6031 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006032 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006033 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006034 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006035 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006036 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006037 },
6038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006039 {
6040 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006041 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006042 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .manufacture_id = MACRONIX_ID,
6044 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 512,
6046 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006047 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006048 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006051 .block_erasers =
6052 {
6053 {
6054 .eraseblocks = { {4 * 1024, 128} },
6055 .block_erase = spi_block_erase_20,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 8} },
6058 .block_erase = spi_block_erase_52,
6059 }, {
6060 .eraseblocks = { {64 * 1024, 8} },
6061 .block_erase = spi_block_erase_d8,
6062 }, {
6063 .eraseblocks = { {512 * 1024, 1} },
6064 .block_erase = spi_block_erase_60,
6065 }, {
6066 .eraseblocks = { {512 * 1024, 1} },
6067 .block_erase = spi_block_erase_c7,
6068 },
6069 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006070 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006071 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006072 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006074 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006075 },
6076
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 {
6078 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006079 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006080 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006081 .manufacture_id = MACRONIX_ID,
6082 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006083 .total_size = 1024,
6084 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006085 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006086 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006087 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006088 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006089 .block_erasers =
6090 {
6091 {
6092 .eraseblocks = { {4 * 1024, 256} },
6093 .block_erase = spi_block_erase_20,
6094 }, {
6095 .eraseblocks = { {64 * 1024, 16} },
6096 .block_erase = spi_block_erase_52,
6097 }, {
6098 .eraseblocks = { {64 * 1024, 16} },
6099 .block_erase = spi_block_erase_d8,
6100 }, {
6101 .eraseblocks = { {1024 * 1024, 1} },
6102 .block_erase = spi_block_erase_60,
6103 }, {
6104 .eraseblocks = { {1024 * 1024, 1} },
6105 .block_erase = spi_block_erase_c7,
6106 },
6107 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006108 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006110 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006111 .read = spi_chip_read, /* Fast read (0x0B) supported */
6112 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006113 },
6114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006115 {
6116 .vendor = "Macronix",
6117 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006118 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006119 .manufacture_id = MACRONIX_ID,
6120 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006121 .total_size = 2048,
6122 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006123 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006124 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006125 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006126 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006127 .block_erasers =
6128 {
6129 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006130 .eraseblocks = { {64 * 1024, 32} },
6131 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006132 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006133 .eraseblocks = { {64 * 1024, 32} },
6134 .block_erase = spi_block_erase_d8,
6135 }, {
6136 .eraseblocks = { {2 * 1024 * 1024, 1} },
6137 .block_erase = spi_block_erase_60,
6138 }, {
6139 .eraseblocks = { {2 * 1024 * 1024, 1} },
6140 .block_erase = spi_block_erase_c7,
6141 },
6142 },
6143 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6144 .unlock = spi_disable_blockprotect,
6145 .write = spi_chip_write_256,
6146 .read = spi_chip_read, /* Fast read (0x0B) supported */
6147 .voltage = {2700, 3600},
6148 },
6149
6150 {
6151 .vendor = "Macronix",
6152 .name = "MX25L1605A/MX25L1606E",
6153 .bustype = BUS_SPI,
6154 .manufacture_id = MACRONIX_ID,
6155 .model_id = MACRONIX_MX25L1605,
6156 .total_size = 2048,
6157 .page_size = 256,
6158 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6160 .tested = TEST_OK_PREW,
6161 .probe = probe_spi_rdid,
6162 .probe_timing = TIMING_ZERO,
6163 .block_erasers =
6164 {
6165 {
6166 .eraseblocks = { {4 * 1024, 512} },
6167 .block_erase = spi_block_erase_20,
6168 }, {
6169 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006170 .block_erase = spi_block_erase_52,
6171 }, {
6172 .eraseblocks = { {64 * 1024, 32} },
6173 .block_erase = spi_block_erase_d8,
6174 }, {
6175 .eraseblocks = { {2 * 1024 * 1024, 1} },
6176 .block_erase = spi_block_erase_60,
6177 }, {
6178 .eraseblocks = { {2 * 1024 * 1024, 1} },
6179 .block_erase = spi_block_erase_c7,
6180 },
6181 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006182 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006183 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006184 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006185 .read = spi_chip_read, /* Fast read (0x0B) supported */
6186 .voltage = {2700, 3600},
6187 },
6188
6189 {
6190 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006191 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006192 .bustype = BUS_SPI,
6193 .manufacture_id = MACRONIX_ID,
6194 .model_id = MACRONIX_MX25L1605,
6195 .total_size = 2048,
6196 .page_size = 256,
6197 .feature_bits = FEATURE_WRSR_WREN,
6198 .tested = TEST_OK_PREW,
6199 .probe = probe_spi_rdid,
6200 .probe_timing = TIMING_ZERO,
6201 .block_erasers =
6202 {
6203 {
6204 .eraseblocks = { {4 * 1024, 512} },
6205 .block_erase = spi_block_erase_20,
6206 }, {
6207 .eraseblocks = { {64 * 1024, 32} },
6208 .block_erase = spi_block_erase_d8,
6209 }, {
6210 .eraseblocks = { {2 * 1024 * 1024, 1} },
6211 .block_erase = spi_block_erase_60,
6212 }, {
6213 .eraseblocks = { {2 * 1024 * 1024, 1} },
6214 .block_erase = spi_block_erase_c7,
6215 },
6216 },
6217 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6218 .unlock = spi_disable_blockprotect,
6219 .write = spi_chip_write_256,
6220 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006221 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006222 },
6223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006224 {
6225 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006226 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006227 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006228 .manufacture_id = MACRONIX_ID,
6229 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006230 .total_size = 2048,
6231 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006232 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006234 .tested = TEST_UNTESTED,
6235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006236 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006237 .block_erasers =
6238 {
6239 {
6240 .eraseblocks = { {4 * 1024, 512} },
6241 .block_erase = spi_block_erase_20,
6242 }, {
6243 .eraseblocks = { {64 * 1024, 32} },
6244 .block_erase = spi_block_erase_d8,
6245 }, {
6246 .eraseblocks = { {2 * 1024 * 1024, 1} },
6247 .block_erase = spi_block_erase_60,
6248 }, {
6249 .eraseblocks = { {2 * 1024 * 1024, 1} },
6250 .block_erase = spi_block_erase_c7,
6251 }
6252 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006253 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006254 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006255 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006256 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006257 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006258 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006259
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006260 {
6261 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006262 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006263 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006264 .manufacture_id = MACRONIX_ID,
6265 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006266 .total_size = 2048,
6267 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006268 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006270 .tested = TEST_UNTESTED,
6271 .probe = probe_spi_rdid,
6272 .probe_timing = TIMING_ZERO,
6273 .block_erasers =
6274 {
6275 {
6276 .eraseblocks = { {4 * 1024, 512} },
6277 .block_erase = spi_block_erase_20,
6278 }, {
6279 .eraseblocks = { {64 * 1024, 32} },
6280 .block_erase = spi_block_erase_d8,
6281 }, {
6282 .eraseblocks = { {2 * 1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_60,
6284 }, {
6285 .eraseblocks = { {2 * 1024 * 1024, 1} },
6286 .block_erase = spi_block_erase_c7,
6287 }
6288 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006289 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006290 .unlock = spi_disable_blockprotect,
6291 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006292 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006293 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006294 },
6295
6296 {
6297 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006298 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006299 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006300 .manufacture_id = MACRONIX_ID,
6301 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006302 .total_size = 4096,
6303 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006304 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006305 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006306 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006307 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006308 .block_erasers =
6309 {
6310 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006311 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006312 .block_erase = spi_block_erase_20,
6313 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006314 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006315 .block_erase = spi_block_erase_d8,
6316 }, {
6317 .eraseblocks = { {4 * 1024 * 1024, 1} },
6318 .block_erase = spi_block_erase_60,
6319 }, {
6320 .eraseblocks = { {4 * 1024 * 1024, 1} },
6321 .block_erase = spi_block_erase_c7,
6322 },
6323 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006324 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006325 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006326 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006327 .read = spi_chip_read, /* Fast read (0x0B) supported */
6328 .voltage = {2700, 3600},
6329 },
6330
6331 {
6332 .vendor = "Macronix",
6333 .name = "MX25L3205D/MX25L3208D",
6334 .bustype = BUS_SPI,
6335 .manufacture_id = MACRONIX_ID,
6336 .model_id = MACRONIX_MX25L3205,
6337 .total_size = 4096,
6338 .page_size = 256,
6339 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6341 .tested = TEST_OK_PREW,
6342 .probe = probe_spi_rdid,
6343 .probe_timing = TIMING_ZERO,
6344 .block_erasers =
6345 {
6346 {
6347 .eraseblocks = { {4 * 1024, 1024} },
6348 .block_erase = spi_block_erase_20,
6349 }, {
6350 .eraseblocks = { {64 * 1024, 64} },
6351 .block_erase = spi_block_erase_d8,
6352 }, {
6353 .eraseblocks = { {4 * 1024 * 1024, 1} },
6354 .block_erase = spi_block_erase_60,
6355 }, {
6356 .eraseblocks = { {4 * 1024 * 1024, 1} },
6357 .block_erase = spi_block_erase_c7,
6358 },
6359 },
6360 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6361 .unlock = spi_disable_blockprotect,
6362 .write = spi_chip_write_256,
6363 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6364 .voltage = {2700, 3600},
6365 },
6366
6367 {
6368 .vendor = "Macronix",
6369 .name = "MX25L3206E",
6370 .bustype = BUS_SPI,
6371 .manufacture_id = MACRONIX_ID,
6372 .model_id = MACRONIX_MX25L3205,
6373 .total_size = 4096,
6374 .page_size = 256,
6375 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6376 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6377 .tested = TEST_OK_PREW,
6378 .probe = probe_spi_rdid,
6379 .probe_timing = TIMING_ZERO,
6380 .block_erasers =
6381 {
6382 {
6383 .eraseblocks = { {4 * 1024, 1024} },
6384 .block_erase = spi_block_erase_20,
6385 }, {
6386 .eraseblocks = { {64 * 1024, 64} },
6387 .block_erase = spi_block_erase_d8,
6388 }, {
6389 .eraseblocks = { {64 * 1024, 64} },
6390 .block_erase = spi_block_erase_52,
6391 }, {
6392 .eraseblocks = { {4 * 1024 * 1024, 1} },
6393 .block_erase = spi_block_erase_60,
6394 }, {
6395 .eraseblocks = { {4 * 1024 * 1024, 1} },
6396 .block_erase = spi_block_erase_c7,
6397 },
6398 },
6399 .printlock = spi_prettyprint_status_register_default_bp3,
6400 .unlock = spi_disable_blockprotect,
6401 .write = spi_chip_write_256,
6402 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006403 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006404 },
6405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006406 {
6407 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006408 .name = "MX25L3273E",
6409 .bustype = BUS_SPI,
6410 .manufacture_id = MACRONIX_ID,
6411 .model_id = MACRONIX_MX25L3205,
6412 .total_size = 4096,
6413 .page_size = 256,
6414 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6416 .tested = TEST_UNTESTED,
6417 .probe = probe_spi_rdid,
6418 .probe_timing = TIMING_ZERO,
6419 .block_erasers =
6420 {
6421 {
6422 .eraseblocks = { {4 * 1024, 1024} },
6423 .block_erase = spi_block_erase_20,
6424 }, {
6425 .eraseblocks = { {32 * 1024, 128} },
6426 .block_erase = spi_block_erase_52,
6427 }, {
6428 .eraseblocks = { {64 * 1024, 64} },
6429 .block_erase = spi_block_erase_d8,
6430 }, {
6431 .eraseblocks = { {4 * 1024 * 1024, 1} },
6432 .block_erase = spi_block_erase_60,
6433 }, {
6434 .eraseblocks = { {4 * 1024 * 1024, 1} },
6435 .block_erase = spi_block_erase_c7,
6436 },
6437 },
6438 .printlock = spi_prettyprint_status_register_default_bp3,
6439 .unlock = spi_disable_blockprotect,
6440 .write = spi_chip_write_256,
6441 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6442 .voltage = {2700, 3600},
6443 },
6444
6445 {
6446 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006447 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006448 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006449 .manufacture_id = MACRONIX_ID,
6450 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006451 .total_size = 4096,
6452 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006453 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006455 .tested = TEST_UNTESTED,
6456 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006457 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006458 .block_erasers =
6459 {
6460 {
6461 .eraseblocks = { {4 * 1024, 1024} },
6462 .block_erase = spi_block_erase_20,
6463 }, {
6464 .eraseblocks = { {64 * 1024, 64} },
6465 .block_erase = spi_block_erase_d8,
6466 }, {
6467 .eraseblocks = { {4 * 1024 * 1024, 1} },
6468 .block_erase = spi_block_erase_60,
6469 }, {
6470 .eraseblocks = { {4 * 1024 * 1024, 1} },
6471 .block_erase = spi_block_erase_c7,
6472 }
6473 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006474 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006475 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006476 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006477 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006478 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006479 },
6480
6481 {
6482 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006483 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006484 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006485 .manufacture_id = MACRONIX_ID,
6486 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006487 .total_size = 8192,
6488 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006489 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006491 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006493 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006494 .block_erasers =
6495 {
6496 {
6497 .eraseblocks = { {64 * 1024, 128} },
6498 .block_erase = spi_block_erase_20,
6499 }, {
6500 .eraseblocks = { {64 * 1024, 128} },
6501 .block_erase = spi_block_erase_d8,
6502 }, {
6503 .eraseblocks = { {8 * 1024 * 1024, 1} },
6504 .block_erase = spi_block_erase_60,
6505 }, {
6506 .eraseblocks = { {8 * 1024 * 1024, 1} },
6507 .block_erase = spi_block_erase_c7,
6508 }
6509 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006510 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006511 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006515 },
6516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006517 {
6518 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006519 .name = "MX25L6406E/MX25L6436E",
6520 .bustype = BUS_SPI,
6521 .manufacture_id = MACRONIX_ID,
6522 .model_id = MACRONIX_MX25L6405,
6523 .total_size = 8192,
6524 .page_size = 256,
6525 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6526 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6527 .tested = TEST_OK_PREW,
6528 .probe = probe_spi_rdid,
6529 .probe_timing = TIMING_ZERO,
6530 .block_erasers =
6531 {
6532 {
6533 .eraseblocks = { {4 * 1024, 2048} },
6534 .block_erase = spi_block_erase_20,
6535 }, {
6536 .eraseblocks = { {64 * 1024, 128} },
6537 .block_erase = spi_block_erase_d8,
6538 }, {
6539 .eraseblocks = { {8 * 1024 * 1024, 1} },
6540 .block_erase = spi_block_erase_60,
6541 }, {
6542 .eraseblocks = { {8 * 1024 * 1024, 1} },
6543 .block_erase = spi_block_erase_c7,
6544 }
6545 },
6546 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6547 .unlock = spi_disable_blockprotect,
6548 .write = spi_chip_write_256,
6549 .read = spi_chip_read,
6550 .voltage = {2700, 3600},
6551 },
6552
6553 {
6554 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006555 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006556 .bustype = BUS_SPI,
6557 .manufacture_id = MACRONIX_ID,
6558 .model_id = MACRONIX_MX25L6405,
6559 .total_size = 8192,
6560 .page_size = 256,
6561 /* supports SFDP */
6562 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6564 .tested = TEST_OK_PREW,
6565 .probe = probe_spi_rdid,
6566 .probe_timing = TIMING_ZERO,
6567 .block_erasers =
6568 {
6569 {
6570 .eraseblocks = { {4 * 1024, 2048} },
6571 .block_erase = spi_block_erase_20,
6572 }, {
6573 .eraseblocks = { {32 * 1024, 256} },
6574 .block_erase = spi_block_erase_52,
6575 }, {
6576 .eraseblocks = { {64 * 1024, 128} },
6577 .block_erase = spi_block_erase_d8,
6578 }, {
6579 .eraseblocks = { {8 * 1024 * 1024, 1} },
6580 .block_erase = spi_block_erase_60,
6581 }, {
6582 .eraseblocks = { {8 * 1024 * 1024, 1} },
6583 .block_erase = spi_block_erase_c7,
6584 }
6585 },
6586 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6587 .unlock = spi_disable_blockprotect,
6588 .write = spi_chip_write_256,
6589 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6590 .voltage = {2700, 3600},
6591 },
6592
6593 {
6594 .vendor = "Macronix",
6595 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006596 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006597 .manufacture_id = MACRONIX_ID,
6598 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006599 .total_size = 16384,
6600 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006601 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006603 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006604 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006605 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006606 .block_erasers =
6607 {
6608 {
6609 .eraseblocks = { {4 * 1024, 4096} },
6610 .block_erase = spi_block_erase_20,
6611 }, {
6612 .eraseblocks = { {64 * 1024, 256} },
6613 .block_erase = spi_block_erase_d8,
6614 }, {
6615 .eraseblocks = { {16 * 1024 * 1024, 1} },
6616 .block_erase = spi_block_erase_60,
6617 }, {
6618 .eraseblocks = { {16 * 1024 * 1024, 1} },
6619 .block_erase = spi_block_erase_c7,
6620 }
6621 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006622 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006623 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006624 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006625 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006626 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006627 },
6628
6629 {
6630 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006631 .name = "MX25U1635E",
6632 .bustype = BUS_SPI,
6633 .manufacture_id = MACRONIX_ID,
6634 .model_id = MACRONIX_MX25U1635E,
6635 .total_size = 2048,
6636 .page_size = 256,
6637 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6638 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6640 .tested = TEST_UNTESTED,
6641 .probe = probe_spi_rdid,
6642 .probe_timing = TIMING_ZERO,
6643 .block_erasers =
6644 {
6645 {
6646 .eraseblocks = { {4 * 1024, 512} },
6647 .block_erase = spi_block_erase_20,
6648 }, {
6649 .eraseblocks = { {32 * 1024, 64} },
6650 .block_erase = spi_block_erase_52,
6651 }, {
6652 .eraseblocks = { {64 * 1024, 32} },
6653 .block_erase = spi_block_erase_d8,
6654 }, {
6655 .eraseblocks = { {2 * 1024 * 1024, 1} },
6656 .block_erase = spi_block_erase_60,
6657 }, {
6658 .eraseblocks = { {2 * 1024 * 1024, 1} },
6659 .block_erase = spi_block_erase_c7,
6660 }
6661 },
6662 /* TODO: security register */
6663 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6664 .unlock = spi_disable_blockprotect,
6665 .write = spi_chip_write_256,
6666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6667 .voltage = {1650, 2000},
6668 },
6669
6670 {
6671 .vendor = "Macronix",
6672 .name = "MX25U3235E/F",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = MACRONIX_ID,
6675 .model_id = MACRONIX_MX25U3235E,
6676 .total_size = 4096,
6677 .page_size = 256,
6678 /* F model supports SFDP */
6679 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6680 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6682 .tested = TEST_OK_PREW,
6683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
6685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 1024} },
6689 .block_erase = spi_block_erase_20,
6690 }, {
6691 .eraseblocks = { {32 * 1024, 128} },
6692 .block_erase = spi_block_erase_52,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 64} },
6695 .block_erase = spi_block_erase_d8,
6696 }, {
6697 .eraseblocks = { {4 * 1024 * 1024, 1} },
6698 .block_erase = spi_block_erase_60,
6699 }, {
6700 .eraseblocks = { {4 * 1024 * 1024, 1} },
6701 .block_erase = spi_block_erase_c7,
6702 }
6703 },
6704 /* TODO: security register */
6705 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6706 .unlock = spi_disable_blockprotect,
6707 .write = spi_chip_write_256,
6708 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6709 .voltage = {1650, 2000},
6710 },
6711
6712 {
6713 .vendor = "Macronix",
6714 .name = "MX25U6435E/F",
6715 .bustype = BUS_SPI,
6716 .manufacture_id = MACRONIX_ID,
6717 .model_id = MACRONIX_MX25U6435E,
6718 .total_size = 8192,
6719 .page_size = 256,
6720 /* F model supports SFDP */
6721 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6722 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6724 .tested = TEST_UNTESTED,
6725 .probe = probe_spi_rdid,
6726 .probe_timing = TIMING_ZERO,
6727 .block_erasers =
6728 {
6729 {
6730 .eraseblocks = { {4 * 1024, 2048} },
6731 .block_erase = spi_block_erase_20,
6732 }, {
6733 .eraseblocks = { {32 * 1024, 256} },
6734 .block_erase = spi_block_erase_52,
6735 }, {
6736 .eraseblocks = { {64 * 1024, 128} },
6737 .block_erase = spi_block_erase_d8,
6738 }, {
6739 .eraseblocks = { {8 * 1024 * 1024, 1} },
6740 .block_erase = spi_block_erase_60,
6741 }, {
6742 .eraseblocks = { {8 * 1024 * 1024, 1} },
6743 .block_erase = spi_block_erase_c7,
6744 }
6745 },
6746 /* TODO: security register */
6747 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6748 .unlock = spi_disable_blockprotect,
6749 .write = spi_chip_write_256,
6750 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6751 .voltage = {1650, 2000},
6752 },
6753
6754 {
6755 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006756 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006757 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006758 .manufacture_id = MACRONIX_ID,
6759 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006760 .total_size = 128,
6761 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006762 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6763 .tested = TEST_UNTESTED,
6764 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006765 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006766 .block_erasers =
6767 {
6768 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006769 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006770 {8 * 1024, 1},
6771 {4 * 1024, 2},
6772 {8 * 1024, 2},
6773 {32 * 1024, 1},
6774 {64 * 1024, 1},
6775 },
Sean Nelson35727f72010-01-28 23:55:12 +00006776 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006777 }, {
6778 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006779 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006780 }
6781 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006782 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006784 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006785 },
6786
6787 {
6788 .vendor = "Macronix",
6789 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006790 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006791 .manufacture_id = MACRONIX_ID,
6792 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006793 .total_size = 128,
6794 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006795 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006796 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006797 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006798 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006799 .block_erasers =
6800 {
6801 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006802 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006803 {64 * 1024, 1},
6804 {32 * 1024, 1},
6805 {8 * 1024, 2},
6806 {4 * 1024, 2},
6807 {8 * 1024, 1},
6808 },
Sean Nelson35727f72010-01-28 23:55:12 +00006809 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006810 }, {
6811 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006812 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006813 }
6814 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006815 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006817 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006818 },
6819
6820 {
6821 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006822 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006823 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006824 .manufacture_id = MACRONIX_ID,
6825 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006826 .total_size = 256,
6827 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006828 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006830 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006831 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = {
6836 {16 * 1024, 1},
6837 {8 * 1024, 2},
6838 {32 * 1024, 1},
6839 {64 * 1024, 3},
6840 },
Sean Nelson35727f72010-01-28 23:55:12 +00006841 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006842 }, {
6843 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006844 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006845 },
6846 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006849 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006850 },
6851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006852 {
6853 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006854 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006855 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006856 .manufacture_id = MACRONIX_ID,
6857 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006858 .total_size = 256,
6859 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006860 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006861 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006862 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006863 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006864 .block_erasers =
6865 {
6866 {
6867 .eraseblocks = {
6868 {64 * 1024, 3},
6869 {32 * 1024, 1},
6870 {8 * 1024, 2},
6871 {16 * 1024, 1},
6872 },
Sean Nelson35727f72010-01-28 23:55:12 +00006873 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006874 }, {
6875 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006876 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006877 },
6878 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006879 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006880 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006881 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006882 },
6883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006884 {
6885 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006886 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006887 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006888 .manufacture_id = MACRONIX_ID,
6889 .model_id = MACRONIX_MX29F040,
6890 .total_size = 512,
6891 .page_size = 64 * 1024,
6892 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6893 .tested = TEST_UNTESTED,
6894 .probe = probe_jedec,
6895 .probe_timing = TIMING_ZERO,
6896 .block_erasers =
6897 {
6898 {
6899 .eraseblocks = { {64 * 1024, 8} },
6900 .block_erase = erase_sector_jedec,
6901 }, {
6902 .eraseblocks = { {512 * 1024, 1} },
6903 .block_erase = erase_chip_block_jedec,
6904 },
6905 },
6906 .write = write_jedec_1,
6907 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006908 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006909 },
6910
6911 {
6912 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006913 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006914 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006915 .manufacture_id = MACRONIX_ID,
6916 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006917 .total_size = 512,
6918 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006919 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6920 .tested = TEST_UNTESTED,
6921 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006922 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006923 .block_erasers =
6924 {
6925 {
6926 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006927 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006928 }, {
6929 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006930 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006931 },
6932 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006933 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006935 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006936 },
6937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006938 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006939 .vendor = "Micron/Numonyx/ST",
6940 .name = "M25P05-A",
6941 .bustype = BUS_SPI,
6942 .manufacture_id = ST_ID,
6943 .model_id = ST_M25P05A,
6944 .total_size = 64,
6945 .page_size = 256,
6946 .feature_bits = FEATURE_WRSR_WREN,
6947 .tested = TEST_OK_PREW,
6948 .probe = probe_spi_rdid,
6949 .probe_timing = TIMING_ZERO,
6950 .block_erasers =
6951 {
6952 {
6953 .eraseblocks = { {32 * 1024, 2} },
6954 .block_erase = spi_block_erase_d8,
6955 }, {
6956 .eraseblocks = { {64 * 1024, 1} },
6957 .block_erase = spi_block_erase_c7,
6958 }
6959 },
6960 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6961 .unlock = spi_disable_blockprotect,
6962 .write = spi_chip_write_256,
6963 .read = spi_chip_read,
6964 .voltage = {2700, 3600},
6965 },
6966
6967 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6968 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
6969 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
6970 * only is successful if RDID does not work.
6971 */
6972 {
6973 .vendor = "Micron/Numonyx/ST",
6974 .name = "M25P05",
6975 .bustype = BUS_SPI,
6976 .manufacture_id = 0, /* Not used. */
6977 .model_id = ST_M25P05_RES,
6978 .total_size = 64,
6979 .page_size = 256,
6980 .feature_bits = FEATURE_WRSR_WREN,
6981 .tested = TEST_UNTESTED,
6982 .probe = probe_spi_res1,
6983 .probe_timing = TIMING_ZERO,
6984 .block_erasers =
6985 {
6986 {
6987 .eraseblocks = { {32 * 1024, 2} },
6988 .block_erase = spi_block_erase_d8,
6989 }, {
6990 .eraseblocks = { {64 * 1024, 1} },
6991 .block_erase = spi_block_erase_c7,
6992 }
6993 },
6994 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6995 .unlock = spi_disable_blockprotect,
6996 .write = spi_chip_write_1, /* 128 */
6997 .read = spi_chip_read,
6998 .voltage = {2700, 3600},
6999 },
7000
7001 {
7002 .vendor = "Micron/Numonyx/ST",
7003 .name = "M25P10-A",
7004 .bustype = BUS_SPI,
7005 .manufacture_id = ST_ID,
7006 .model_id = ST_M25P10A,
7007 .total_size = 128,
7008 .page_size = 256,
7009 .feature_bits = FEATURE_WRSR_WREN,
7010 .tested = TEST_OK_PRE,
7011 .probe = probe_spi_rdid,
7012 .probe_timing = TIMING_ZERO,
7013 .block_erasers =
7014 {
7015 {
7016 .eraseblocks = { {32 * 1024, 4} },
7017 .block_erase = spi_block_erase_d8,
7018 }, {
7019 .eraseblocks = { {128 * 1024, 1} },
7020 .block_erase = spi_block_erase_c7,
7021 }
7022 },
7023 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7024 .unlock = spi_disable_blockprotect,
7025 .write = spi_chip_write_256,
7026 .read = spi_chip_read,
7027 .voltage = {2700, 3600},
7028 },
7029
7030 /* The ST M25P10 has the same problem as the M25P05. */
7031 {
7032 .vendor = "Micron/Numonyx/ST",
7033 .name = "M25P10",
7034 .bustype = BUS_SPI,
7035 .manufacture_id = 0, /* Not used. */
7036 .model_id = ST_M25P10_RES,
7037 .total_size = 128,
7038 .page_size = 256,
7039 .feature_bits = FEATURE_WRSR_WREN,
7040 .tested = TEST_UNTESTED,
7041 .probe = probe_spi_res1,
7042 .probe_timing = TIMING_ZERO,
7043 .block_erasers =
7044 {
7045 {
7046 .eraseblocks = { {32 * 1024, 4} },
7047 .block_erase = spi_block_erase_d8,
7048 }, {
7049 .eraseblocks = { {128 * 1024, 1} },
7050 .block_erase = spi_block_erase_c7,
7051 }
7052 },
7053 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7054 .unlock = spi_disable_blockprotect,
7055 .write = spi_chip_write_1, /* 128 */
7056 .read = spi_chip_read,
7057 .voltage = {2700, 3600},
7058 },
7059
7060 {
7061 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7062 .name = "M25P20",
7063 .bustype = BUS_SPI,
7064 .manufacture_id = ST_ID,
7065 .model_id = ST_M25P20,
7066 .total_size = 256,
7067 .page_size = 256,
7068 .feature_bits = FEATURE_WRSR_WREN,
7069 .tested = TEST_UNTESTED,
7070 .probe = probe_spi_rdid,
7071 .probe_timing = TIMING_ZERO,
7072 .block_erasers =
7073 {
7074 {
7075 .eraseblocks = { {64 * 1024, 4} },
7076 .block_erase = spi_block_erase_d8,
7077 }, {
7078 .eraseblocks = { {256 * 1024, 1} },
7079 .block_erase = spi_block_erase_c7,
7080 }
7081 },
7082 .printlock = spi_prettyprint_status_register_default_bp1,
7083 .unlock = spi_disable_blockprotect,
7084 .write = spi_chip_write_256,
7085 .read = spi_chip_read, /* Fast read (0x0B) supported */
7086 .voltage = {2700, 3600},
7087 },
7088
7089 {
7090 .vendor = "Micron/Numonyx/ST",
7091 .name = "M25P20-old",
7092 .bustype = BUS_SPI,
7093 .manufacture_id = 0, /* Not used. */
7094 .model_id = ST_M25P20_RES,
7095 .total_size = 256,
7096 .page_size = 256,
7097 .feature_bits = FEATURE_WRSR_WREN,
7098 .tested = TEST_OK_PREW,
7099 .probe = probe_spi_res1,
7100 .probe_timing = TIMING_ZERO,
7101 .block_erasers =
7102 {
7103 {
7104 .eraseblocks = { {64 * 1024, 4} },
7105 .block_erase = spi_block_erase_d8,
7106 }, {
7107 .eraseblocks = { {256 * 1024, 1} },
7108 .block_erase = spi_block_erase_c7,
7109 }
7110 },
7111 .printlock = spi_prettyprint_status_register_default_bp1,
7112 .unlock = spi_disable_blockprotect,
7113 .write = spi_chip_write_256,
7114 .read = spi_chip_read, /* Fast read (0x0B) supported */
7115 .voltage = {2700, 3600},
7116 },
7117
7118 {
7119 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7120 .name = "M25P40",
7121 .bustype = BUS_SPI,
7122 .manufacture_id = ST_ID,
7123 .model_id = ST_M25P40,
7124 .total_size = 512,
7125 .page_size = 256,
7126 .feature_bits = FEATURE_WRSR_WREN,
7127 .tested = TEST_OK_PREW,
7128 .probe = probe_spi_rdid,
7129 .probe_timing = TIMING_ZERO,
7130 .block_erasers =
7131 {
7132 {
7133 .eraseblocks = { {64 * 1024, 8} },
7134 .block_erase = spi_block_erase_d8,
7135 }, {
7136 .eraseblocks = { {512 * 1024, 1} },
7137 .block_erase = spi_block_erase_c7,
7138 }
7139 },
7140 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7141 .unlock = spi_disable_blockprotect,
7142 .write = spi_chip_write_256,
7143 .read = spi_chip_read,
7144 .voltage = {2700, 3600},
7145 },
7146
7147 {
7148 .vendor = "Micron/Numonyx/ST",
7149 .name = "M25P40-old",
7150 .bustype = BUS_SPI,
7151 .manufacture_id = 0, /* Not used. */
7152 .model_id = ST_M25P40_RES,
7153 .total_size = 512,
7154 .page_size = 256,
7155 .feature_bits = FEATURE_WRSR_WREN,
7156 .tested = TEST_UNTESTED,
7157 .probe = probe_spi_res1,
7158 .probe_timing = TIMING_ZERO,
7159 .block_erasers =
7160 {
7161 {
7162 .eraseblocks = { {64 * 1024, 8} },
7163 .block_erase = spi_block_erase_d8,
7164 }, {
7165 .eraseblocks = { {512 * 1024, 1} },
7166 .block_erase = spi_block_erase_c7,
7167 }
7168 },
7169 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7170 .unlock = spi_disable_blockprotect,
7171 .write = spi_chip_write_256,
7172 .read = spi_chip_read,
7173 },
7174
7175 {
7176 .vendor = "Micron/Numonyx/ST",
7177 .name = "M25P80",
7178 .bustype = BUS_SPI,
7179 .manufacture_id = ST_ID,
7180 .model_id = ST_M25P80,
7181 .total_size = 1024,
7182 .page_size = 256,
7183 .feature_bits = FEATURE_WRSR_WREN,
7184 .tested = TEST_OK_PREW,
7185 .probe = probe_spi_rdid,
7186 .probe_timing = TIMING_ZERO,
7187 .block_erasers =
7188 {
7189 {
7190 .eraseblocks = { {64 * 1024, 16} },
7191 .block_erase = spi_block_erase_d8,
7192 }, {
7193 .eraseblocks = { {1024 * 1024, 1} },
7194 .block_erase = spi_block_erase_c7,
7195 }
7196 },
7197 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7198 .unlock = spi_disable_blockprotect,
7199 .write = spi_chip_write_256,
7200 .read = spi_chip_read,
7201 .voltage = {2700, 3600},
7202 },
7203
7204 {
7205 .vendor = "Micron/Numonyx/ST",
7206 .name = "M25P16",
7207 .bustype = BUS_SPI,
7208 .manufacture_id = ST_ID,
7209 .model_id = ST_M25P16,
7210 .total_size = 2048,
7211 .page_size = 256,
7212 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007213 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007214 .probe = probe_spi_rdid,
7215 .probe_timing = TIMING_ZERO,
7216 .block_erasers =
7217 {
7218 {
7219 .eraseblocks = { {64 * 1024, 32} },
7220 .block_erase = spi_block_erase_d8,
7221 }, {
7222 .eraseblocks = { {2 * 1024 * 1024, 1} },
7223 .block_erase = spi_block_erase_c7,
7224 }
7225 },
7226 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7227 .unlock = spi_disable_blockprotect,
7228 .write = spi_chip_write_256,
7229 .read = spi_chip_read,
7230 .voltage = {2700, 3600},
7231 },
7232
7233 {
7234 .vendor = "Micron/Numonyx/ST",
7235 .name = "M25P32",
7236 .bustype = BUS_SPI,
7237 .manufacture_id = ST_ID,
7238 .model_id = ST_M25P32,
7239 .total_size = 4096,
7240 .page_size = 256,
7241 .feature_bits = FEATURE_WRSR_WREN,
7242 .tested = TEST_OK_PREW,
7243 .probe = probe_spi_rdid,
7244 .probe_timing = TIMING_ZERO,
7245 .block_erasers =
7246 {
7247 {
7248 .eraseblocks = { {64 * 1024, 64} },
7249 .block_erase = spi_block_erase_d8,
7250 }, {
7251 .eraseblocks = { {4 * 1024 * 1024, 1} },
7252 .block_erase = spi_block_erase_c7,
7253 }
7254 },
7255 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7256 .unlock = spi_disable_blockprotect,
7257 .write = spi_chip_write_256,
7258 .read = spi_chip_read,
7259 .voltage = {2700, 3600},
7260 },
7261
7262 {
7263 .vendor = "Micron/Numonyx/ST",
7264 .name = "M25P64",
7265 .bustype = BUS_SPI,
7266 .manufacture_id = ST_ID,
7267 .model_id = ST_M25P64,
7268 .total_size = 8192,
7269 .page_size = 256,
7270 .feature_bits = FEATURE_WRSR_WREN,
7271 .tested = TEST_OK_PREW,
7272 .probe = probe_spi_rdid,
7273 .probe_timing = TIMING_ZERO,
7274 .block_erasers =
7275 {
7276 {
7277 .eraseblocks = { {64 * 1024, 128} },
7278 .block_erase = spi_block_erase_d8,
7279 }, {
7280 .eraseblocks = { {8 * 1024 * 1024, 1} },
7281 .block_erase = spi_block_erase_c7,
7282 }
7283 },
7284 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7285 .unlock = spi_disable_blockprotect,
7286 .write = spi_chip_write_256,
7287 .read = spi_chip_read,
7288 .voltage = {2700, 3600},
7289 },
7290
7291 {
7292 .vendor = "Micron/Numonyx/ST",
7293 .name = "M25P128",
7294 .bustype = BUS_SPI,
7295 .manufacture_id = ST_ID,
7296 .model_id = ST_M25P128,
7297 .total_size = 16384,
7298 .page_size = 256,
7299 .feature_bits = FEATURE_WRSR_WREN,
7300 .tested = TEST_OK_PREW,
7301 .probe = probe_spi_rdid,
7302 .probe_timing = TIMING_ZERO,
7303 .block_erasers =
7304 {
7305 {
7306 .eraseblocks = { {256 * 1024, 64} },
7307 .block_erase = spi_block_erase_d8,
7308 }, {
7309 .eraseblocks = { {16 * 1024 * 1024, 1} },
7310 .block_erase = spi_block_erase_c7,
7311 }
7312 },
7313 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7314 .unlock = spi_disable_blockprotect,
7315 .write = spi_chip_write_256,
7316 .read = spi_chip_read,
7317 .voltage = {2700, 3600},
7318 },
7319
7320 {
7321 .vendor = "Micron/Numonyx/ST",
7322 .name = "M25PE10",
7323 .bustype = BUS_SPI,
7324 .manufacture_id = ST_ID,
7325 .model_id = ST_M25PE10,
7326 .total_size = 128,
7327 .page_size = 256,
7328 .feature_bits = FEATURE_WRSR_WREN,
7329 .tested = TEST_UNTESTED,
7330 .probe = probe_spi_rdid,
7331 .probe_timing = TIMING_ZERO,
7332 .block_erasers =
7333 {
7334 {
7335 .eraseblocks = { {4 * 1024, 32} },
7336 .block_erase = spi_block_erase_20,
7337 }, {
7338 .eraseblocks = { {64 * 1024, 2} },
7339 .block_erase = spi_block_erase_d8,
7340 }, {
7341 .eraseblocks = { {128 * 1024, 1} },
7342 .block_erase = spi_block_erase_c7,
7343 }
7344 },
7345 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7346 .unlock = spi_disable_blockprotect,
7347 .write = spi_chip_write_256,
7348 .read = spi_chip_read,
7349 .voltage = {2700, 3600},
7350 },
7351
7352 {
7353 .vendor = "Micron/Numonyx/ST",
7354 .name = "M25PE20",
7355 .bustype = BUS_SPI,
7356 .manufacture_id = ST_ID,
7357 .model_id = ST_M25PE20,
7358 .total_size = 256,
7359 .page_size = 256,
7360 .feature_bits = FEATURE_WRSR_WREN,
7361 .tested = TEST_UNTESTED,
7362 .probe = probe_spi_rdid,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {4 * 1024, 64} },
7368 .block_erase = spi_block_erase_20,
7369 }, {
7370 .eraseblocks = { {64 * 1024, 4} },
7371 .block_erase = spi_block_erase_d8,
7372 }, {
7373 .eraseblocks = { {256 * 1024, 1} },
7374 .block_erase = spi_block_erase_c7,
7375 }
7376 },
7377 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7378 .unlock = spi_disable_blockprotect,
7379 .write = spi_chip_write_256,
7380 .read = spi_chip_read,
7381 .voltage = {2700, 3600},
7382 },
7383
7384 {
7385 .vendor = "Micron/Numonyx/ST",
7386 .name = "M25PE40",
7387 .bustype = BUS_SPI,
7388 .manufacture_id = ST_ID,
7389 .model_id = ST_M25PE40,
7390 .total_size = 512,
7391 .page_size = 256,
7392 .feature_bits = FEATURE_WRSR_WREN,
7393 .tested = TEST_UNTESTED,
7394 .probe = probe_spi_rdid,
7395 .probe_timing = TIMING_ZERO,
7396 .block_erasers =
7397 {
7398 {
7399 .eraseblocks = { {4 * 1024, 128} },
7400 .block_erase = spi_block_erase_20,
7401 }, {
7402 .eraseblocks = { {64 * 1024, 8} },
7403 .block_erase = spi_block_erase_d8,
7404 }, {
7405 .eraseblocks = { {512 * 1024, 1} },
7406 .block_erase = spi_block_erase_c7,
7407 }
7408 },
7409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7410 .unlock = spi_disable_blockprotect,
7411 .write = spi_chip_write_256,
7412 .read = spi_chip_read,
7413 .voltage = {2700, 3600},
7414 },
7415
7416 {
7417 .vendor = "Micron/Numonyx/ST",
7418 .name = "M25PE80",
7419 .bustype = BUS_SPI,
7420 .manufacture_id = ST_ID,
7421 .model_id = ST_M25PE80,
7422 .total_size = 1024,
7423 .page_size = 256,
7424 .feature_bits = FEATURE_WRSR_WREN,
7425 .tested = TEST_OK_PREW,
7426 .probe = probe_spi_rdid,
7427 .probe_timing = TIMING_ZERO,
7428 .block_erasers =
7429 {
7430 {
7431 .eraseblocks = { {4 * 1024, 256} },
7432 .block_erase = spi_block_erase_20,
7433 }, {
7434 .eraseblocks = { {64 * 1024, 16} },
7435 .block_erase = spi_block_erase_d8,
7436 }, {
7437 .eraseblocks = { {1024 * 1024, 1} },
7438 .block_erase = spi_block_erase_c7,
7439 }
7440 },
7441 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7442 .unlock = spi_disable_blockprotect,
7443 .write = spi_chip_write_256,
7444 .read = spi_chip_read,
7445 .voltage = {2700, 3600},
7446 },
7447
7448 {
7449 .vendor = "Micron/Numonyx/ST",
7450 .name = "M25PE16",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = ST_ID,
7453 .model_id = ST_M25PE16,
7454 .total_size = 2048,
7455 .page_size = 256,
7456 .feature_bits = FEATURE_WRSR_WREN,
7457 .tested = TEST_UNTESTED,
7458 .probe = probe_spi_rdid,
7459 .probe_timing = TIMING_ZERO,
7460 .block_erasers =
7461 {
7462 {
7463 .eraseblocks = { {4 * 1024, 512} },
7464 .block_erase = spi_block_erase_20,
7465 }, {
7466 .eraseblocks = { {64 * 1024, 32} },
7467 .block_erase = spi_block_erase_d8,
7468 }, {
7469 .eraseblocks = { {2 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_c7,
7471 }
7472 },
7473 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7474 .unlock = spi_disable_blockprotect,
7475 .write = spi_chip_write_256,
7476 .read = spi_chip_read,
7477 .voltage = {2700, 3600},
7478 },
7479
7480 {
7481 .vendor = "Micron/Numonyx/ST",
7482 .name = "M25PX80",
7483 .bustype = BUS_SPI,
7484 .manufacture_id = ST_ID,
7485 .model_id = ST_M25PX80,
7486 .total_size = 1024,
7487 .page_size = 256,
7488 /* OTP: 64B total; read 0x4B, write 0x42 */
7489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7490 .tested = TEST_OK_PREW,
7491 .probe = probe_spi_rdid,
7492 .probe_timing = TIMING_ZERO,
7493 .block_erasers = {
7494 {
7495 .eraseblocks = { { 4 * 1024, 256 } },
7496 .block_erase = spi_block_erase_20,
7497 }, {
7498 .eraseblocks = { {64 * 1024, 16} },
7499 .block_erase = spi_block_erase_d8,
7500 }, {
7501 .eraseblocks = { {1024 * 1024, 1} },
7502 .block_erase = spi_block_erase_c7,
7503 }
7504 },
7505 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7506 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7507 .write = spi_chip_write_256,
7508 .read = spi_chip_read,
7509 .voltage = {2700, 3600},
7510 },
7511
7512 {
7513 .vendor = "Micron/Numonyx/ST",
7514 .name = "M25PX16",
7515 .bustype = BUS_SPI,
7516 .manufacture_id = ST_ID,
7517 .model_id = ST_M25PX16,
7518 .total_size = 2048,
7519 .page_size = 256,
7520 /* OTP: 64B total; read 0x4B; write 0x42 */
7521 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7522 .tested = TEST_OK_PREW,
7523 .probe = probe_spi_rdid,
7524 .probe_timing = TIMING_ZERO,
7525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { { 4 * 1024, 512 } },
7529 .block_erase = spi_block_erase_20,
7530 }, {
7531 .eraseblocks = { {64 * 1024, 32} },
7532 .block_erase = spi_block_erase_d8,
7533 }, {
7534 .eraseblocks = { {2 * 1024 * 1024, 1} },
7535 .block_erase = spi_block_erase_c7,
7536 }
7537 },
7538 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7539 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7540 .write = spi_chip_write_256,
7541 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007542 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007543 },
7544
7545 {
7546 .vendor = "Micron/Numonyx/ST",
7547 .name = "M25PX32",
7548 .bustype = BUS_SPI,
7549 .manufacture_id = ST_ID,
7550 .model_id = ST_M25PX32,
7551 .total_size = 4096,
7552 .page_size = 256,
7553 /* OTP: 64B total; read 0x4B; write 0x42 */
7554 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7555 .tested = TEST_OK_PRE,
7556 .probe = probe_spi_rdid,
7557 .probe_timing = TIMING_ZERO,
7558 .block_erasers =
7559 {
7560 {
7561 .eraseblocks = { { 4 * 1024, 1024 } },
7562 .block_erase = spi_block_erase_20,
7563 }, {
7564 .eraseblocks = { {64 * 1024, 64} },
7565 .block_erase = spi_block_erase_d8,
7566 }, {
7567 .eraseblocks = { {4 * 1024 * 1024, 1} },
7568 .block_erase = spi_block_erase_c7,
7569 }
7570 },
7571 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7572 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7573 .write = spi_chip_write_256,
7574 .read = spi_chip_read,
7575 .voltage = {2700, 3600},
7576 },
7577
7578 {
7579 .vendor = "Micron/Numonyx/ST",
7580 .name = "M25PX64",
7581 .bustype = BUS_SPI,
7582 .manufacture_id = ST_ID,
7583 .model_id = ST_M25PX64,
7584 .total_size = 8192,
7585 .page_size = 256,
7586 /* OTP: 64B total; read 0x4B; write 0x42 */
7587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007588 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007589 .probe = probe_spi_rdid,
7590 .probe_timing = TIMING_ZERO,
7591 .block_erasers =
7592 {
7593 {
7594 .eraseblocks = { { 4 * 1024, 2048 } },
7595 .block_erase = spi_block_erase_20,
7596 }, {
7597 .eraseblocks = { {64 * 1024, 128} },
7598 .block_erase = spi_block_erase_d8,
7599 }, {
7600 .eraseblocks = { {8 * 1024 * 1024, 1} },
7601 .block_erase = spi_block_erase_c7,
7602 }
7603 },
7604 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7605 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7606 .write = spi_chip_write_256,
7607 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007608 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007609 },
7610
7611 {
7612 .vendor = "Micron/Numonyx/ST",
7613 .name = "M45PE10",
7614 .bustype = BUS_SPI,
7615 .manufacture_id = ST_ID,
7616 .model_id = ST_M45PE10,
7617 .total_size = 128,
7618 .page_size = 256,
7619 .tested = TEST_UNTESTED,
7620 .probe = probe_spi_rdid,
7621 .probe_timing = TIMING_ZERO,
7622 .block_erasers = {
7623 {
7624 .eraseblocks = { {256, 512} },
7625 .block_erase = spi_block_erase_db,
7626 }, {
7627 .eraseblocks = { {64 * 1024, 2} },
7628 .block_erase = spi_block_erase_d8,
7629 }
7630 },
7631 .printlock = spi_prettyprint_status_register_default_welwip,
7632 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7633 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7634 .read = spi_chip_read, /* Fast read (0x0B) supported */
7635 .voltage = {2700, 3600},
7636 },
7637
7638 {
7639 .vendor = "Micron/Numonyx/ST",
7640 .name = "M45PE20",
7641 .bustype = BUS_SPI,
7642 .manufacture_id = ST_ID,
7643 .model_id = ST_M45PE20,
7644 .total_size = 256,
7645 .page_size = 256,
7646 .tested = TEST_UNTESTED,
7647 .probe = probe_spi_rdid,
7648 .probe_timing = TIMING_ZERO,
7649 .block_erasers = {
7650 {
7651 .eraseblocks = { {256, 1024} },
7652 .block_erase = spi_block_erase_db,
7653 }, {
7654 .eraseblocks = { {64 * 1024, 4} },
7655 .block_erase = spi_block_erase_d8,
7656 }
7657 },
7658 .printlock = spi_prettyprint_status_register_default_welwip,
7659 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7660 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7661 .read = spi_chip_read, /* Fast read (0x0B) supported */
7662 .voltage = {2700, 3600},
7663 },
7664
7665 {
7666 .vendor = "Micron/Numonyx/ST",
7667 .name = "M45PE40",
7668 .bustype = BUS_SPI,
7669 .manufacture_id = ST_ID,
7670 .model_id = ST_M45PE40,
7671 .total_size = 512,
7672 .page_size = 256,
7673 .tested = TEST_UNTESTED,
7674 .probe = probe_spi_rdid,
7675 .probe_timing = TIMING_ZERO,
7676 .block_erasers = {
7677 {
7678 .eraseblocks = { {256, 2048} },
7679 .block_erase = spi_block_erase_db,
7680 }, {
7681 .eraseblocks = { {64 * 1024, 8} },
7682 .block_erase = spi_block_erase_d8,
7683 }
7684 },
7685 .printlock = spi_prettyprint_status_register_default_welwip,
7686 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7687 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7688 .read = spi_chip_read, /* Fast read (0x0B) supported */
7689 .voltage = {2700, 3600},
7690 },
7691
7692 {
7693 .vendor = "Micron/Numonyx/ST",
7694 .name = "M45PE80",
7695 .bustype = BUS_SPI,
7696 .manufacture_id = ST_ID,
7697 .model_id = ST_M45PE80,
7698 .total_size = 1024,
7699 .page_size = 256,
7700 .tested = TEST_UNTESTED,
7701 .probe = probe_spi_rdid,
7702 .probe_timing = TIMING_ZERO,
7703 .block_erasers = {
7704 {
7705 .eraseblocks = { {256, 4096} },
7706 .block_erase = spi_block_erase_db,
7707 }, {
7708 .eraseblocks = { {64 * 1024, 16} },
7709 .block_erase = spi_block_erase_d8,
7710 }
7711 },
7712 .printlock = spi_prettyprint_status_register_default_welwip,
7713 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7714 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7715 .read = spi_chip_read, /* Fast read (0x0B) supported */
7716 .voltage = {2700, 3600},
7717 },
7718
7719 {
7720 .vendor = "Micron/Numonyx/ST",
7721 .name = "M45PE16",
7722 .bustype = BUS_SPI,
7723 .manufacture_id = ST_ID,
7724 .model_id = ST_M45PE16,
7725 .total_size = 2048,
7726 .page_size = 256,
7727 .tested = TEST_UNTESTED,
7728 .probe = probe_spi_rdid,
7729 .probe_timing = TIMING_ZERO,
7730 .block_erasers = {
7731 {
7732 .eraseblocks = { {256, 8192} },
7733 .block_erase = spi_block_erase_db,
7734 }, {
7735 .eraseblocks = { {64 * 1024, 32} },
7736 .block_erase = spi_block_erase_d8,
7737 }
7738 },
7739 .printlock = spi_prettyprint_status_register_default_welwip,
7740 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7741 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7742 .read = spi_chip_read, /* Fast read (0x0B) supported */
7743 .voltage = {2700, 3600},
7744 },
7745
7746 {
7747 .vendor = "Micron/Numonyx/ST",
7748 .name = "N25Q016",
7749 .bustype = BUS_SPI,
7750 .manufacture_id = ST_ID,
7751 .model_id = ST_N25Q016__1E,
7752 .total_size = 2048,
7753 .page_size = 256,
7754 /* supports SFDP */
7755 /* OTP: 64B total; read 0x4B, write 0x42 */
7756 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7757 .tested = TEST_UNTESTED,
7758 .probe = probe_spi_rdid,
7759 .probe_timing = TIMING_ZERO,
7760 .block_erasers =
7761 {
7762 {
7763 .eraseblocks = { {4 * 1024, 512} },
7764 .block_erase = spi_block_erase_20,
7765 }, {
7766 .eraseblocks = { {32 * 1024, 64} },
7767 .block_erase = spi_block_erase_52,
7768 }, {
7769 .eraseblocks = { {64 * 1024, 32} },
7770 .block_erase = spi_block_erase_d8,
7771 }, {
7772 .eraseblocks = { {2 * 1024 * 1024, 1} },
7773 .block_erase = spi_block_erase_c7,
7774 }
7775 },
7776 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7777 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7778 .write = spi_chip_write_256, /* Multi I/O supported */
7779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7780 .voltage = {1700, 2000},
7781 },
7782
7783 {
7784 .vendor = "Micron/Numonyx/ST",
7785 .name = "N25Q032..1E",
7786 .bustype = BUS_SPI,
7787 .manufacture_id = ST_ID,
7788 .model_id = ST_N25Q032__1E,
7789 .total_size = 4096,
7790 .page_size = 256,
7791 /* supports SFDP */
7792 /* OTP: 64B total; read 0x4B, write 0x42 */
7793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7794 .tested = TEST_UNTESTED,
7795 .probe = probe_spi_rdid,
7796 .probe_timing = TIMING_ZERO,
7797 .block_erasers =
7798 {
7799 {
7800 .eraseblocks = { {4 * 1024, 1024} },
7801 .block_erase = spi_block_erase_20,
7802 }, {
7803 .eraseblocks = { {64 * 1024, 64} },
7804 .block_erase = spi_block_erase_d8,
7805 }, {
7806 .eraseblocks = { {4 * 1024 * 1024, 1} },
7807 .block_erase = spi_block_erase_c7,
7808 }
7809 },
7810 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7811 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7812 .write = spi_chip_write_256, /* Multi I/O supported */
7813 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7814 .voltage = {1700, 2000},
7815 },
7816
7817 {
7818 .vendor = "Micron/Numonyx/ST",
7819 .name = "N25Q032..3E",
7820 .bustype = BUS_SPI,
7821 .manufacture_id = ST_ID,
7822 .model_id = ST_N25Q032__3E,
7823 .total_size = 4096,
7824 .page_size = 256,
7825 /* supports SFDP */
7826 /* OTP: 64B total; read 0x4B, write 0x42 */
7827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7828 .tested = TEST_OK_PREW,
7829 .probe = probe_spi_rdid,
7830 .probe_timing = TIMING_ZERO,
7831 .block_erasers =
7832 {
7833 {
7834 .eraseblocks = { {4 * 1024, 1024} },
7835 .block_erase = spi_block_erase_20,
7836 }, {
7837 .eraseblocks = { {64 * 1024, 64} },
7838 .block_erase = spi_block_erase_d8,
7839 }, {
7840 .eraseblocks = { {4 * 1024 * 1024, 1} },
7841 .block_erase = spi_block_erase_c7,
7842 }
7843 },
7844 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7845 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7846 .write = spi_chip_write_256, /* Multi I/O supported */
7847 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7848 .voltage = {2700, 3600},
7849 },
7850
7851 {
7852 .vendor = "Micron/Numonyx/ST",
7853 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7854 .bustype = BUS_SPI,
7855 .manufacture_id = ST_ID,
7856 .model_id = ST_N25Q064__1E,
7857 .total_size = 8192,
7858 .page_size = 256,
7859 /* supports SFDP */
7860 /* OTP: 64B total; read 0x4B, write 0x42 */
7861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007862 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007863 .probe = probe_spi_rdid,
7864 .probe_timing = TIMING_ZERO,
7865 .block_erasers =
7866 {
7867 {
7868 .eraseblocks = { {4 * 1024, 2048 } },
7869 .block_erase = spi_block_erase_20,
7870 }, {
7871 .eraseblocks = { {64 * 1024, 128} },
7872 .block_erase = spi_block_erase_d8,
7873 }, {
7874 .eraseblocks = { {8 * 1024 * 1024, 1} },
7875 .block_erase = spi_block_erase_c7,
7876 }
7877 },
7878 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7879 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7880 .write = spi_chip_write_256, /* Multi I/O supported */
7881 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7882 .voltage = {1700, 2000},
7883 },
7884
7885 {
7886 .vendor = "Micron/Numonyx/ST",
7887 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7888 .bustype = BUS_SPI,
7889 .manufacture_id = ST_ID,
7890 .model_id = ST_N25Q064__3E,
7891 .total_size = 8192,
7892 .page_size = 256,
7893 /* supports SFDP */
7894 /* OTP: 64B total; read 0x4B, write 0x42 */
7895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7896 .tested = TEST_OK_PREW,
7897 .probe = probe_spi_rdid,
7898 .probe_timing = TIMING_ZERO,
7899 .block_erasers =
7900 {
7901 {
7902 .eraseblocks = { {4 * 1024, 2048 } },
7903 .block_erase = spi_block_erase_20,
7904 }, {
7905 .eraseblocks = { {64 * 1024, 128} },
7906 .block_erase = spi_block_erase_d8,
7907 }, {
7908 .eraseblocks = { {8 * 1024 * 1024, 1} },
7909 .block_erase = spi_block_erase_c7,
7910 }
7911 },
7912 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7913 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7914 .write = spi_chip_write_256, /* Multi I/O supported */
7915 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7916 .voltage = {2700, 3600},
7917 },
7918
7919 {
7920 .vendor = "Micron/Numonyx/ST",
7921 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7922 .bustype = BUS_SPI,
7923 .manufacture_id = ST_ID,
7924 .model_id = ST_N25Q128__1E,
7925 .total_size = 16384,
7926 .page_size = 256,
7927 /* supports SFDP */
7928 /* OTP: 64B total; read 0x4B, write 0x42 */
7929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7930 .tested = TEST_UNTESTED,
7931 .probe = probe_spi_rdid,
7932 .probe_timing = TIMING_ZERO,
7933 .block_erasers = {
7934 {
7935 .eraseblocks = { {4 * 1024, 4096 } },
7936 .block_erase = spi_block_erase_20,
7937 }, {
7938 .eraseblocks = { {64 * 1024, 256} },
7939 .block_erase = spi_block_erase_d8,
7940 }, {
7941 .eraseblocks = { {16384 * 1024, 1} },
7942 .block_erase = spi_block_erase_c7,
7943 }
7944 },
7945 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7946 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7947 .write = spi_chip_write_256, /* Multi I/O supported */
7948 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7949 .voltage = {1700, 2000},
7950 },
7951
7952 {
7953 .vendor = "Micron/Numonyx/ST",
7954 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7955 .bustype = BUS_SPI,
7956 .manufacture_id = ST_ID,
7957 .model_id = ST_N25Q128__3E,
7958 .total_size = 16384,
7959 .page_size = 256,
7960 /* supports SFDP */
7961 /* OTP: 64B total; read 0x4B, write 0x42 */
7962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7963 .tested = TEST_OK_PREW,
7964 .probe = probe_spi_rdid,
7965 .probe_timing = TIMING_ZERO,
7966 .block_erasers = {
7967 {
7968 .eraseblocks = { {4 * 1024, 4096 } },
7969 .block_erase = spi_block_erase_20,
7970 }, {
7971 .eraseblocks = { {64 * 1024, 256} },
7972 .block_erase = spi_block_erase_d8,
7973 }, {
7974 .eraseblocks = { {16384 * 1024, 1} },
7975 .block_erase = spi_block_erase_c7,
7976 }
7977 },
7978 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7979 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7980 .write = spi_chip_write_256, /* Multi I/O supported */
7981 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7982 .voltage = {2700, 3600},
7983 },
7984
7985 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007986 .vendor = "MoselVitelic",
7987 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007988 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007989 .manufacture_id = SYNCMOS_MVC_ID,
7990 .model_id = MVC_V29C51000B,
7991 .total_size = 64,
7992 .page_size = 512,
7993 .feature_bits = FEATURE_EITHER_RESET,
7994 .tested = TEST_UNTESTED,
7995 .probe = probe_jedec,
7996 .probe_timing = TIMING_ZERO,
7997 .block_erasers =
7998 {
7999 {
8000 .eraseblocks = { {512, 128} },
8001 .block_erase = erase_sector_jedec,
8002 }, {
8003 .eraseblocks = { {64 * 1024, 1} },
8004 .block_erase = erase_chip_block_jedec,
8005 },
8006 },
8007 .write = write_jedec_1,
8008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008009 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008010 },
8011
8012 {
8013 .vendor = "MoselVitelic",
8014 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008015 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008016 .manufacture_id = SYNCMOS_MVC_ID,
8017 .model_id = MVC_V29C51000T,
8018 .total_size = 64,
8019 .page_size = 512,
8020 .feature_bits = FEATURE_EITHER_RESET,
8021 .tested = TEST_UNTESTED,
8022 .probe = probe_jedec,
8023 .probe_timing = TIMING_ZERO,
8024 .block_erasers =
8025 {
8026 {
8027 .eraseblocks = { {512, 128} },
8028 .block_erase = erase_sector_jedec,
8029 }, {
8030 .eraseblocks = { {64 * 1024, 1} },
8031 .block_erase = erase_chip_block_jedec,
8032 },
8033 },
8034 .write = write_jedec_1,
8035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008036 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008037 },
8038
8039 {
8040 .vendor = "MoselVitelic",
8041 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008042 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008043 .manufacture_id = SYNCMOS_MVC_ID,
8044 .model_id = MVC_V29C51400B,
8045 .total_size = 512,
8046 .page_size = 1024,
8047 .feature_bits = FEATURE_EITHER_RESET,
8048 .tested = TEST_UNTESTED,
8049 .probe = probe_jedec,
8050 .probe_timing = TIMING_ZERO,
8051 .block_erasers =
8052 {
8053 {
8054 .eraseblocks = { {1024, 512} },
8055 .block_erase = erase_sector_jedec,
8056 }, {
8057 .eraseblocks = { {512 * 1024, 1} },
8058 .block_erase = erase_chip_block_jedec,
8059 },
8060 },
8061 .write = write_jedec_1,
8062 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008063 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008064 },
8065
8066 {
8067 .vendor = "MoselVitelic",
8068 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008069 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008070 .manufacture_id = SYNCMOS_MVC_ID,
8071 .model_id = MVC_V29C51400T,
8072 .total_size = 512,
8073 .page_size = 1024,
8074 .feature_bits = FEATURE_EITHER_RESET,
8075 .tested = TEST_UNTESTED,
8076 .probe = probe_jedec,
8077 .probe_timing = TIMING_ZERO,
8078 .block_erasers =
8079 {
8080 {
8081 .eraseblocks = { {1024, 512} },
8082 .block_erase = erase_sector_jedec,
8083 }, {
8084 .eraseblocks = { {512 * 1024, 1} },
8085 .block_erase = erase_chip_block_jedec,
8086 },
8087 },
8088 .write = write_jedec_1,
8089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008090 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008091 },
8092
8093 {
8094 .vendor = "MoselVitelic",
8095 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008096 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008097 .manufacture_id = SYNCMOS_MVC_ID,
8098 .model_id = MVC_V29LC51000,
8099 .total_size = 64,
8100 .page_size = 512,
8101 .feature_bits = FEATURE_EITHER_RESET,
8102 .tested = TEST_UNTESTED,
8103 .probe = probe_jedec,
8104 .probe_timing = TIMING_ZERO,
8105 .block_erasers =
8106 {
8107 {
8108 .eraseblocks = { {512, 128} },
8109 .block_erase = erase_sector_jedec,
8110 }, {
8111 .eraseblocks = { {64 * 1024, 1} },
8112 .block_erase = erase_chip_block_jedec,
8113 },
8114 },
8115 .write = write_jedec_1,
8116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008117 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008118 },
8119
8120 {
8121 .vendor = "MoselVitelic",
8122 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008123 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008124 .manufacture_id = SYNCMOS_MVC_ID,
8125 .model_id = MVC_V29LC51001,
8126 .total_size = 128,
8127 .page_size = 512,
8128 .feature_bits = FEATURE_EITHER_RESET,
8129 .tested = TEST_UNTESTED,
8130 .probe = probe_jedec,
8131 .probe_timing = TIMING_ZERO,
8132 .block_erasers =
8133 {
8134 {
8135 .eraseblocks = { {512, 256} },
8136 .block_erase = erase_sector_jedec,
8137 }, {
8138 .eraseblocks = { {128 * 1024, 1} },
8139 .block_erase = erase_chip_block_jedec,
8140 },
8141 },
8142 .write = write_jedec_1,
8143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008144 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008145 },
8146
8147 {
8148 .vendor = "MoselVitelic",
8149 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008150 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008151 .manufacture_id = SYNCMOS_MVC_ID,
8152 .model_id = MVC_V29LC51002,
8153 .total_size = 256,
8154 .page_size = 512,
8155 .feature_bits = FEATURE_EITHER_RESET,
8156 .tested = TEST_UNTESTED,
8157 .probe = probe_jedec,
8158 .probe_timing = TIMING_ZERO,
8159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = { {512, 512} },
8163 .block_erase = erase_sector_jedec,
8164 }, {
8165 .eraseblocks = { {256 * 1024, 1} },
8166 .block_erase = erase_chip_block_jedec,
8167 },
8168 },
8169 .write = write_jedec_1,
8170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008171 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008172 },
8173
8174 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008175 .vendor = "Nantronics",
8176 .name = "N25S10",
8177 .bustype = BUS_SPI,
8178 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8179 .model_id = NANTRONICS_N25S10,
8180 .total_size = 128,
8181 .page_size = 256,
8182 .feature_bits = FEATURE_WRSR_WREN,
8183 .tested = TEST_UNTESTED,
8184 .probe = probe_spi_rdid,
8185 .probe_timing = TIMING_ZERO,
8186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = { {4 * 1024, 32} },
8190 .block_erase = spi_block_erase_20,
8191 }, {
8192 .eraseblocks = { {4 * 1024, 32} },
8193 .block_erase = spi_block_erase_d7,
8194 }, {
8195 .eraseblocks = { {32 * 1024, 4} },
8196 .block_erase = spi_block_erase_52,
8197 }, {
8198 .eraseblocks = { {64 * 1024, 2} },
8199 .block_erase = spi_block_erase_d8,
8200 }, {
8201 .eraseblocks = { {128 * 1024, 1} },
8202 .block_erase = spi_block_erase_60,
8203 }, {
8204 .eraseblocks = { {128 * 1024, 1} },
8205 .block_erase = spi_block_erase_c7,
8206 }
8207 },
8208 .printlock = spi_prettyprint_status_register_default_bp3,
8209 .unlock = spi_disable_blockprotect_bp3_srwd,
8210 .write = spi_chip_write_256,
8211 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8212 .voltage = {2700, 3600},
8213 },
8214
8215 {
8216 .vendor = "Nantronics",
8217 .name = "N25S20",
8218 .bustype = BUS_SPI,
8219 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8220 .model_id = NANTRONICS_N25S20,
8221 .total_size = 256,
8222 .page_size = 256,
8223 .feature_bits = FEATURE_WRSR_WREN,
8224 .tested = TEST_UNTESTED,
8225 .probe = probe_spi_rdid,
8226 .probe_timing = TIMING_ZERO,
8227 .block_erasers =
8228 {
8229 {
8230 .eraseblocks = { {4 * 1024, 64} },
8231 .block_erase = spi_block_erase_20,
8232 }, {
8233 .eraseblocks = { {4 * 1024, 64} },
8234 .block_erase = spi_block_erase_d7,
8235 }, {
8236 .eraseblocks = { {32 * 1024, 8} },
8237 .block_erase = spi_block_erase_52,
8238 }, {
8239 .eraseblocks = { {64 * 1024, 4} },
8240 .block_erase = spi_block_erase_d8,
8241 }, {
8242 .eraseblocks = { {256 * 1024, 1} },
8243 .block_erase = spi_block_erase_60,
8244 }, {
8245 .eraseblocks = { {256 * 1024, 1} },
8246 .block_erase = spi_block_erase_c7,
8247 }
8248 },
8249 .printlock = spi_prettyprint_status_register_default_bp3,
8250 .unlock = spi_disable_blockprotect_bp3_srwd,
8251 .write = spi_chip_write_256,
8252 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8253 .voltage = {2700, 3600},
8254 },
8255
8256 {
8257 .vendor = "Nantronics",
8258 .name = "N25S40",
8259 .bustype = BUS_SPI,
8260 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8261 .model_id = NANTRONICS_N25S40,
8262 .total_size = 512,
8263 .page_size = 256,
8264 .feature_bits = FEATURE_WRSR_WREN,
8265 .tested = TEST_UNTESTED,
8266 .probe = probe_spi_rdid,
8267 .probe_timing = TIMING_ZERO,
8268 .block_erasers =
8269 {
8270 {
8271 .eraseblocks = { {4 * 1024, 128} },
8272 .block_erase = spi_block_erase_20,
8273 }, {
8274 .eraseblocks = { {4 * 1024, 128} },
8275 .block_erase = spi_block_erase_d7,
8276 }, {
8277 .eraseblocks = { {32 * 1024, 16} },
8278 .block_erase = spi_block_erase_52,
8279 }, {
8280 .eraseblocks = { {64 * 1024, 8} },
8281 .block_erase = spi_block_erase_d8,
8282 }, {
8283 .eraseblocks = { {512 * 1024, 1} },
8284 .block_erase = spi_block_erase_60,
8285 }, {
8286 .eraseblocks = { {512 * 1024, 1} },
8287 .block_erase = spi_block_erase_c7,
8288 }
8289 },
8290 .printlock = spi_prettyprint_status_register_default_bp3,
8291 .unlock = spi_disable_blockprotect_bp3_srwd,
8292 .write = spi_chip_write_256,
8293 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8294 .voltage = {2700, 3600},
8295 },
8296
8297 {
8298 .vendor = "Nantronics",
8299 .name = "N25S80",
8300 .bustype = BUS_SPI,
8301 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8302 .model_id = NANTRONICS_N25S80,
8303 .total_size = 1024,
8304 .page_size = 256,
8305 .feature_bits = FEATURE_WRSR_WREN,
8306 .tested = TEST_UNTESTED,
8307 .probe = probe_spi_rdid,
8308 .probe_timing = TIMING_ZERO,
8309 .block_erasers =
8310 {
8311 {
8312 .eraseblocks = { {4 * 1024, 256} },
8313 .block_erase = spi_block_erase_20,
8314 }, {
8315 .eraseblocks = { {32 * 1024, 32} },
8316 .block_erase = spi_block_erase_52,
8317 }, {
8318 .eraseblocks = { {64 * 1024, 16} },
8319 .block_erase = spi_block_erase_d8,
8320 }, {
8321 .eraseblocks = { {1024 * 1024, 1} },
8322 .block_erase = spi_block_erase_60,
8323 }, {
8324 .eraseblocks = { {1024 * 1024, 1} },
8325 .block_erase = spi_block_erase_c7,
8326 }
8327 },
8328 .printlock = spi_prettyprint_status_register_default_bp3,
8329 .unlock = spi_disable_blockprotect_bp3_srwd,
8330 .write = spi_chip_write_256,
8331 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8332 .voltage = {2700, 3600},
8333 },
8334
8335 {
8336 .vendor = "Nantronics",
8337 .name = "N25S16",
8338 .bustype = BUS_SPI,
8339 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8340 .model_id = NANTRONICS_N25S16,
8341 .total_size = 2048,
8342 .page_size = 256,
8343 .feature_bits = FEATURE_WRSR_WREN,
8344 .tested = TEST_UNTESTED,
8345 .probe = probe_spi_rdid,
8346 .probe_timing = TIMING_ZERO,
8347 .block_erasers =
8348 {
8349 {
8350 .eraseblocks = { {4 * 1024, 512} },
8351 .block_erase = spi_block_erase_20,
8352 }, {
8353 .eraseblocks = { {64 * 1024, 32} },
8354 .block_erase = spi_block_erase_d8,
8355 }, {
8356 .eraseblocks = { {2048 * 1024, 1} },
8357 .block_erase = spi_block_erase_60,
8358 }, {
8359 .eraseblocks = { {2048 * 1024, 1} },
8360 .block_erase = spi_block_erase_c7,
8361 }
8362 },
8363 .printlock = spi_prettyprint_status_register_default_bp3,
8364 .unlock = spi_disable_blockprotect_bp3_srwd,
8365 .write = spi_chip_write_256,
8366 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8367 .voltage = {2700, 3600},
8368 },
8369
8370 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008371 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008372 .name = "Pm25LD256C",
8373 .bustype = BUS_SPI,
8374 .manufacture_id = PMC_ID,
8375 .model_id = PMC_PM25LD256C,
8376 .total_size = 32,
8377 .page_size = 256,
8378 .feature_bits = FEATURE_WRSR_WREN,
8379 .tested = TEST_UNTESTED,
8380 .probe = probe_spi_rdid,
8381 .probe_timing = TIMING_ZERO,
8382 .block_erasers =
8383 {
8384 {
8385 .eraseblocks = { {4 * 1024, 8} },
8386 .block_erase = spi_block_erase_20,
8387 }, {
8388 .eraseblocks = { {4 * 1024, 8} },
8389 .block_erase = spi_block_erase_d7,
8390 }, {
8391 .eraseblocks = { {32 * 1024, 1} },
8392 .block_erase = spi_block_erase_d8,
8393 }, {
8394 .eraseblocks = { {32 * 1024, 1} },
8395 .block_erase = spi_block_erase_60,
8396 }, {
8397 .eraseblocks = { {32 * 1024, 1} },
8398 .block_erase = spi_block_erase_c7,
8399 }
8400 },
8401 .printlock = spi_prettyprint_status_register_default_bp2,
8402 .unlock = spi_disable_blockprotect,
8403 .write = spi_chip_write_256,
8404 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8405 .voltage = {2700, 3600},
8406 },
8407 {
8408 .vendor = "PMC",
8409 .name = "Pm25LD512(C)",
8410 .bustype = BUS_SPI,
8411 .manufacture_id = PMC_ID,
8412 .model_id = PMC_PM25LD512,
8413 .total_size = 64,
8414 .page_size = 256,
8415 .feature_bits = FEATURE_WRSR_WREN,
8416 .tested = TEST_OK_PREW,
8417 .probe = probe_spi_rdid,
8418 .probe_timing = TIMING_ZERO,
8419 .block_erasers =
8420 {
8421 {
8422 .eraseblocks = { {4 * 1024, 16} },
8423 .block_erase = spi_block_erase_20,
8424 }, {
8425 .eraseblocks = { {4 * 1024, 16} },
8426 .block_erase = spi_block_erase_d7,
8427 }, {
8428 .eraseblocks = { {32 * 1024, 2} },
8429 .block_erase = spi_block_erase_d8,
8430 }, {
8431 .eraseblocks = { {64 * 1024, 1} },
8432 .block_erase = spi_block_erase_60,
8433 }, {
8434 .eraseblocks = { {64 * 1024, 1} },
8435 .block_erase = spi_block_erase_c7,
8436 }
8437 },
8438 .printlock = spi_prettyprint_status_register_default_bp2,
8439 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8440 .write = spi_chip_write_256,
8441 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8442 .voltage = {2300, 3600},
8443 },
8444
8445 {
8446 .vendor = "PMC",
8447 .name = "Pm25LD010(C)",
8448 .bustype = BUS_SPI,
8449 .manufacture_id = PMC_ID,
8450 .model_id = PMC_PM25LD010,
8451 .total_size = 128,
8452 .page_size = 256,
8453 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008454 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00008455 .probe = probe_spi_rdid,
8456 .probe_timing = TIMING_ZERO,
8457 .block_erasers =
8458 {
8459 {
8460 .eraseblocks = { {4 * 1024, 32} },
8461 .block_erase = spi_block_erase_20,
8462 }, {
8463 .eraseblocks = { {4 * 1024, 32} },
8464 .block_erase = spi_block_erase_d7,
8465 }, {
8466 .eraseblocks = { {32 * 1024, 4} },
8467 .block_erase = spi_block_erase_d8,
8468 }, {
8469 .eraseblocks = { {128 * 1024, 1} },
8470 .block_erase = spi_block_erase_60,
8471 }, {
8472 .eraseblocks = { {128 * 1024, 1} },
8473 .block_erase = spi_block_erase_c7,
8474 }
8475 },
8476 .printlock = spi_prettyprint_status_register_default_bp2,
8477 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8478 .write = spi_chip_write_256,
8479 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8480 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8481 },
8482
8483 {
8484 .vendor = "PMC",
8485 .name = "Pm25LD020(C)",
8486 .bustype = BUS_SPI,
8487 .manufacture_id = PMC_ID,
8488 .model_id = PMC_PM25LD020,
8489 .total_size = 256,
8490 .page_size = 256,
8491 .feature_bits = FEATURE_WRSR_WREN,
8492 .tested = TEST_UNTESTED,
8493 .probe = probe_spi_rdid,
8494 .probe_timing = TIMING_ZERO,
8495 .block_erasers =
8496 {
8497 {
8498 .eraseblocks = { {4 * 1024, 64} },
8499 .block_erase = spi_block_erase_20,
8500 }, {
8501 .eraseblocks = { {4 * 1024, 64} },
8502 .block_erase = spi_block_erase_d7,
8503 }, {
8504 .eraseblocks = { {64 * 1024, 4} },
8505 .block_erase = spi_block_erase_d8,
8506 }, {
8507 .eraseblocks = { {256 * 1024, 1} },
8508 .block_erase = spi_block_erase_60,
8509 }, {
8510 .eraseblocks = { {256 * 1024, 1} },
8511 .block_erase = spi_block_erase_c7,
8512 }
8513 },
8514 .printlock = spi_prettyprint_status_register_default_bp2,
8515 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8516 .write = spi_chip_write_256,
8517 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8518 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8519 },
8520
8521 {
8522 .vendor = "PMC",
8523 .name = "Pm25LD040(C)",
8524 .bustype = BUS_SPI,
8525 .manufacture_id = PMC_ID,
8526 .model_id = PMC_PM25LV040,
8527 .total_size = 512,
8528 .page_size = 256,
8529 .feature_bits = FEATURE_WRSR_WREN,
8530 .tested = TEST_UNTESTED,
8531 .probe = probe_spi_rdid,
8532 .probe_timing = TIMING_ZERO,
8533 .block_erasers =
8534 {
8535 {
8536 .eraseblocks = { {4 * 1024, 128} },
8537 .block_erase = spi_block_erase_20,
8538 }, {
8539 .eraseblocks = { {4 * 1024, 128} },
8540 .block_erase = spi_block_erase_d7,
8541 }, {
8542 .eraseblocks = { {64 * 1024, 8} },
8543 .block_erase = spi_block_erase_d8,
8544 }, {
8545 .eraseblocks = { {512 * 1024, 1} },
8546 .block_erase = spi_block_erase_60,
8547 }, {
8548 .eraseblocks = { {512 * 1024, 1} },
8549 .block_erase = spi_block_erase_c7,
8550 }
8551 },
8552 .printlock = spi_prettyprint_status_register_default_bp2,
8553 .unlock = spi_disable_blockprotect,
8554 .write = spi_chip_write_256,
8555 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8556 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8557 },
8558
8559{
8560 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008561 .name = "Pm25LV512(A)",
8562 .bustype = BUS_SPI,
8563 .manufacture_id = PMC_ID,
8564 .model_id = PMC_PM25LV512,
8565 .total_size = 64,
8566 .page_size = 256,
8567 .feature_bits = FEATURE_WRSR_WREN,
8568 .tested = TEST_UNTESTED,
8569 .probe = probe_spi_res3,
8570 .probe_timing = TIMING_ZERO,
8571 .block_erasers =
8572 {
8573 {
8574 .eraseblocks = { {4 * 1024, 16} },
8575 .block_erase = spi_block_erase_d7,
8576 }, {
8577 .eraseblocks = { {32 * 1024, 2} },
8578 .block_erase = spi_block_erase_d8,
8579 }, {
8580 .eraseblocks = { {64 * 1024, 1} },
8581 .block_erase = spi_block_erase_c7,
8582 }
8583 },
8584 .printlock = spi_prettyprint_status_register_default_bp1,
8585 .unlock = spi_disable_blockprotect,
8586 .write = spi_chip_write_256,
8587 .read = spi_chip_read, /* Fast read (0x0B) supported */
8588 .voltage = {2700, 3600},
8589 },
8590
8591 {
8592 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008593 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008595 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008596 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008597 .total_size = 128,
8598 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008600 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008601 .probe = probe_spi_res3,
8602 .probe_timing = TIMING_ZERO,
8603 .block_erasers =
8604 {
8605 {
8606 .eraseblocks = { {4 * 1024, 32} },
8607 .block_erase = spi_block_erase_d7,
8608 }, {
8609 .eraseblocks = { {32 * 1024, 4} },
8610 .block_erase = spi_block_erase_d8,
8611 }, {
8612 .eraseblocks = { {128 * 1024, 1} },
8613 .block_erase = spi_block_erase_c7,
8614 }
8615 },
8616 .printlock = spi_prettyprint_status_register_default_bp1,
8617 .unlock = spi_disable_blockprotect,
8618 .write = spi_chip_write_256,
8619 .read = spi_chip_read, /* Fast read (0x0B) supported */
8620 .voltage = {2700, 3600},
8621 },
8622
8623 {
8624 .vendor = "PMC",
8625 .name = "Pm25LV010A",
8626 .bustype = BUS_SPI,
8627 .manufacture_id = PMC_ID,
8628 .model_id = PMC_PM25LV010,
8629 .total_size = 128,
8630 .page_size = 256,
8631 .feature_bits = FEATURE_WRSR_WREN,
8632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008634 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008635 .block_erasers =
8636 {
8637 {
8638 .eraseblocks = { {4 * 1024, 32} },
8639 .block_erase = spi_block_erase_d7,
8640 }, {
8641 .eraseblocks = { {32 * 1024, 4} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {128 * 1024, 1} },
8645 .block_erase = spi_block_erase_c7,
8646 }
8647 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008648 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008649 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008650 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008651 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008652 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008653 },
8654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008655 {
8656 .vendor = "PMC",
8657 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008660 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008661 .total_size = 256,
8662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008663 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008664 .tested = TEST_UNTESTED,
8665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008666 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008667 .block_erasers =
8668 {
8669 {
8670 .eraseblocks = { {4 * 1024, 64} },
8671 .block_erase = spi_block_erase_d7,
8672 }, {
8673 .eraseblocks = { {64 * 1024, 4} },
8674 .block_erase = spi_block_erase_d8,
8675 }, {
8676 .eraseblocks = { {256 * 1024, 1} },
8677 .block_erase = spi_block_erase_c7,
8678 }
8679 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008680 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008681 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008682 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008683 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008684 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008685 },
8686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008687 {
8688 .vendor = "PMC",
8689 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008690 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008691 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008692 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008693 .total_size = 512,
8694 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008695 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008696 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008698 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = { {4 * 1024, 128} },
8703 .block_erase = spi_block_erase_d7,
8704 }, {
8705 .eraseblocks = { {64 * 1024, 8} },
8706 .block_erase = spi_block_erase_d8,
8707 }, {
8708 .eraseblocks = { {512 * 1024, 1} },
8709 .block_erase = spi_block_erase_c7,
8710 }
8711 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008712 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008713 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008714 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008715 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008716 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008717 },
8718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008719 {
8720 .vendor = "PMC",
8721 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008722 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008723 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008724 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008725 .total_size = 1024,
8726 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008727 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 .tested = TEST_UNTESTED,
8729 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008730 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008731 .block_erasers =
8732 {
8733 {
8734 .eraseblocks = { {4 * 1024, 256} },
8735 .block_erase = spi_block_erase_d7,
8736 }, {
8737 .eraseblocks = { {4 * 1024, 256} },
8738 .block_erase = spi_block_erase_20,
8739 }, {
8740 .eraseblocks = { {64 * 1024, 16} },
8741 .block_erase = spi_block_erase_d8,
8742 }, {
8743 .eraseblocks = { {1024 * 1024, 1} },
8744 .block_erase = spi_block_erase_60,
8745 }, {
8746 .eraseblocks = { {1024 * 1024, 1} },
8747 .block_erase = spi_block_erase_c7,
8748 }
8749 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008750 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008751 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008752 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008753 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008754 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008755 },
8756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 {
8758 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008759 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008760 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008761 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008762 .model_id = PMC_PM25LV016B,
8763 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008764 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008765 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008766 .tested = TEST_UNTESTED,
8767 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008768 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008769 .block_erasers =
8770 {
8771 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008772 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008773 .block_erase = spi_block_erase_d7,
8774 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008775 .eraseblocks = { {4 * 1024, 512} },
8776 .block_erase = spi_block_erase_20,
8777 }, {
8778 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008779 .block_erase = spi_block_erase_d8,
8780 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008781 .eraseblocks = { {2 * 1024 * 1024, 1} },
8782 .block_erase = spi_block_erase_60,
8783 }, {
8784 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008785 .block_erase = spi_block_erase_c7,
8786 }
8787 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008788 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008789 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008790 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008791 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008792 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008793 },
8794
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008795 {
8796 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008797 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008798 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008799 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008800 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008801 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008802 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008803 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008804 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008805 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008806 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = {
8811 {128 * 1024, 1},
8812 {96 * 1024, 1},
8813 {8 * 1024, 2},
8814 {16 * 1024, 1},
8815 },
Sean Nelson35727f72010-01-28 23:55:12 +00008816 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008817 }, {
8818 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008819 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008820 },
8821 },
Sean Nelson35727f72010-01-28 23:55:12 +00008822 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008824 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008825 },
8826
8827 {
8828 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008829 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008830 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008831 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008832 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008833 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008834 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008835 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008836 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008837 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008838 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008839 .block_erasers =
8840 {
8841 {
8842 .eraseblocks = {
8843 {16 * 1024, 1},
8844 {8 * 1024, 2},
8845 {96 * 1024, 1},
8846 {128 * 1024, 1},
8847 },
Sean Nelson35727f72010-01-28 23:55:12 +00008848 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008849 }, {
8850 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008852 },
8853 },
Sean Nelson35727f72010-01-28 23:55:12 +00008854 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008856 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008857 },
8858
8859 {
8860 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008861 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008862 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008863 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008864 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008865 .total_size = 128,
8866 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008867 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008868 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008869 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008870 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008871 .block_erasers =
8872 {
8873 {
8874 .eraseblocks = { {4 * 1024, 32} },
8875 .block_erase = erase_sector_jedec,
8876 }, {
8877 .eraseblocks = { {64 * 1024, 2} },
8878 .block_erase = erase_block_jedec,
8879 }, {
8880 .eraseblocks = { {128 * 1024, 1} },
8881 .block_erase = erase_chip_block_jedec,
8882 }
8883 },
Sean Nelson35727f72010-01-28 23:55:12 +00008884 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008886 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008887 },
8888
8889 {
8890 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008891 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008892 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008893 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008894 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008895 .total_size = 256,
8896 .page_size = 4096,
8897 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8898 .tested = TEST_UNTESTED,
8899 .probe = probe_jedec,
8900 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8901 .block_erasers =
8902 {
8903 {
8904 .eraseblocks = { {4 * 1024, 64} },
8905 .block_erase = erase_sector_jedec,
8906 }, {
8907 .eraseblocks = { {64 * 1024, 4} },
8908 .block_erase = erase_block_jedec,
8909 }, {
8910 .eraseblocks = { {256 * 1024, 1} },
8911 .block_erase = erase_chip_block_jedec,
8912 }
8913 },
8914 .write = write_jedec_1,
8915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008916 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008917 },
8918
8919 {
8920 .vendor = "PMC",
8921 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008922 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008923 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008924 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008925 .total_size = 512,
8926 .page_size = 4096,
8927 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008928 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008929 .probe = probe_jedec,
8930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8931 .block_erasers =
8932 {
8933 {
8934 .eraseblocks = { {4 * 1024, 128} },
8935 .block_erase = erase_sector_jedec,
8936 }, {
8937 .eraseblocks = { {64 * 1024, 8} },
8938 .block_erase = erase_block_jedec,
8939 }, {
8940 .eraseblocks = { {512 * 1024, 1} },
8941 .block_erase = erase_chip_block_jedec,
8942 }
8943 },
8944 .write = write_jedec_1,
8945 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008946 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008947 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008948
8949 {
8950 .vendor = "PMC",
8951 .name = "Pm39LV512",
8952 .bustype = BUS_PARALLEL,
8953 .manufacture_id = PMC_ID_NOPREFIX,
8954 .model_id = PMC_PM39LV512,
8955 .total_size = 64,
8956 .page_size = 4096,
8957 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8958 .tested = TEST_OK_PREW,
8959 .probe = probe_jedec,
8960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8961 .block_erasers =
8962 {
8963 {
8964 .eraseblocks = { {4 * 1024, 16} },
8965 .block_erase = erase_sector_jedec,
8966 }, {
8967 .eraseblocks = { {64 * 1024, 1} },
8968 .block_erase = erase_block_jedec,
8969 }, {
8970 .eraseblocks = { {64 * 1024, 1} },
8971 .block_erase = erase_chip_block_jedec,
8972 }
8973 },
8974 .write = write_jedec_1,
8975 .read = read_memmapped,
8976 .voltage = {2700, 3600},
8977 },
8978
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008979 {
8980 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008982 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008983 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008984 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 .total_size = 256,
8986 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008987 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008988 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008989 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008990 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008991 .block_erasers =
8992 {
8993 {
8994 .eraseblocks = { {4 * 1024, 64} },
8995 .block_erase = erase_sector_jedec,
8996 }, {
8997 .eraseblocks = { {16 * 1024, 16} },
8998 .block_erase = erase_block_jedec,
8999 }, {
9000 .eraseblocks = { {256 * 1024, 1} },
9001 .block_erase = erase_chip_block_jedec,
9002 }
9003 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009004 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009005 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009006 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009007 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009008 },
9009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009010 {
9011 .vendor = "PMC",
9012 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009013 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009014 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009015 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009016 .total_size = 512,
9017 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009018 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009020 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009021 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009022 .block_erasers =
9023 {
9024 {
9025 .eraseblocks = { {4 * 1024, 128} },
9026 .block_erase = erase_sector_jedec,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 8} },
9029 .block_erase = erase_block_jedec,
9030 }, {
9031 .eraseblocks = { {512 * 1024, 1} },
9032 .block_erase = erase_chip_block_jedec,
9033 }
9034 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009035 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00009036 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009038 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009039 },
9040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009041 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009042 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009043 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009044 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009045 .manufacture_id = SANYO_ID,
9046 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009047 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009048 .page_size = 256,
9049 .tested = TEST_UNTESTED,
9050 .probe = probe_spi_rdid,
9051 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009052 .block_erasers =
9053 {
9054 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009055 .eraseblocks = { {256, 1024} },
9056 .block_erase = spi_block_erase_db,
9057 }, {
9058 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009059 .block_erase = spi_block_erase_d8,
9060 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009061 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009062 .block_erase = spi_block_erase_c7,
9063 }
9064 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009065 .printlock = spi_prettyprint_status_register_default_welwip,
9066 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009067 .write = spi_chip_write_256,
9068 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009069 .voltage = {2700, 3600},
9070 },
9071
9072 {
9073 .vendor = "Sanyo",
9074 .name = "LE25FW403A",
9075 .bustype = BUS_SPI,
9076 .manufacture_id = SANYO_ID,
9077 .model_id = SANYO_LE25FW403A,
9078 .total_size = 512,
9079 .page_size = 256,
9080 .tested = TEST_UNTESTED,
9081 .probe = probe_spi_rdid,
9082 .probe_timing = TIMING_ZERO,
9083 .block_erasers = {
9084 {
9085 .eraseblocks = { {256, 2 * 1024} },
9086 .block_erase = spi_block_erase_db,
9087 }, {
9088 .eraseblocks = { {64 * 1024, 8} },
9089 .block_erase = spi_block_erase_d8,
9090 }, {
9091 .eraseblocks = { {512 * 1024, 1} },
9092 .block_erase = spi_block_erase_c7,
9093 }
9094 },
9095 .printlock = spi_prettyprint_status_register_default_welwip,
9096 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9097 .write = spi_chip_write_256,
9098 .read = spi_chip_read,
9099 .voltage = {2700, 3600},
9100 },
9101
9102 {
9103 .vendor = "Sanyo",
9104 .name = "LE25FW418A",
9105 .bustype = BUS_SPI,
9106 .manufacture_id = SANYO_ID,
9107 .model_id = SANYO_LE25FW418A,
9108 .total_size = 512,
9109 .page_size = 256,
9110 .feature_bits = FEATURE_WRSR_WREN,
9111 .tested = TEST_UNTESTED,
9112 .probe = probe_spi_res2,
9113 .probe_timing = TIMING_ZERO,
9114 .block_erasers = {
9115 {
9116 .eraseblocks = { {4 * 1024, 128} },
9117 .block_erase = spi_block_erase_d7,
9118 }, {
9119 .eraseblocks = { {64 * 1024, 8} },
9120 .block_erase = spi_block_erase_d8,
9121 }, {
9122 .eraseblocks = { {512 * 1024, 1} },
9123 .block_erase = spi_block_erase_c7,
9124 }
9125 },
9126 .printlock = spi_prettyprint_status_register_default_bp2,
9127 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9128 .write = spi_chip_write_256,
9129 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9130 .voltage = {2700, 3600},
9131 },
9132
9133 {
9134 .vendor = "Sanyo",
9135 .name = "LE25FW806",
9136 .bustype = BUS_SPI,
9137 .manufacture_id = SANYO_ID,
9138 .model_id = SANYO_LE25FW806,
9139 .total_size = 1024,
9140 .page_size = 256,
9141 .feature_bits = FEATURE_WRSR_WREN,
9142 .tested = TEST_UNTESTED,
9143 .probe = probe_spi_res2,
9144 .probe_timing = TIMING_ZERO,
9145 .block_erasers = {
9146 {
9147 .eraseblocks = { {4 * 1024, 256} },
9148 .block_erase = spi_block_erase_20,
9149 }, {
9150 .eraseblocks = { {4 * 1024, 256} },
9151 .block_erase = spi_block_erase_d7,
9152 }, {
9153 .eraseblocks = { {64 * 1024, 16} },
9154 .block_erase = spi_block_erase_d8,
9155 }, {
9156 .eraseblocks = { {1024 * 1024, 1} },
9157 .block_erase = spi_block_erase_c7,
9158 }
9159 },
9160 .printlock = spi_prettyprint_status_register_default_bp2,
9161 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9162 .write = spi_chip_write_256,
9163 .read = spi_chip_read,
9164 .voltage = {2700, 3600},
9165 },
9166
9167 {
9168 .vendor = "Sanyo",
9169 .name = "LE25FW808",
9170 .bustype = BUS_SPI,
9171 .manufacture_id = SANYO_ID,
9172 .model_id = SANYO_LE25FW808,
9173 .total_size = 1024,
9174 .page_size = 256,
9175 .feature_bits = FEATURE_WRSR_WREN,
9176 .tested = TEST_UNTESTED,
9177 .probe = probe_spi_res2,
9178 .probe_timing = TIMING_ZERO,
9179 .block_erasers = {
9180 {
9181 .eraseblocks = { {8 * 1024, 128} },
9182 .block_erase = spi_block_erase_d7,
9183 }, {
9184 .eraseblocks = { {64 * 1024, 16} },
9185 .block_erase = spi_block_erase_d8,
9186 }, {
9187 .eraseblocks = { {1024 * 1024, 1} },
9188 .block_erase = spi_block_erase_c7,
9189 }
9190 },
9191 .printlock = spi_prettyprint_status_register_default_bp2,
9192 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9193 .write = spi_chip_write_256,
9194 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9195 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009196 },
9197
9198 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009199 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009200 .name = "LH28F008BJT-BTLZ1",
9201 .bustype = BUS_PARALLEL,
9202 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009203 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009204 .total_size = 1024,
9205 .page_size = 64 * 1024,
9206 .tested = TEST_OK_PREW,
9207 .probe = probe_82802ab,
9208 .probe_timing = TIMING_ZERO,
9209 .block_erasers =
9210 {
9211 {
9212 .eraseblocks = {
9213 {8 * 1024, 8},
9214 {64 * 1024, 15}
9215 },
9216 .block_erase = erase_block_82802ab,
9217 }, {
9218 .eraseblocks = { {1024 * 1024, 1} },
9219 .block_erase = erase_sector_49lfxxxc,
9220 }
9221 },
9222 .unlock = unlock_lh28f008bjt,
9223 .write = write_82802ab,
9224 .read = read_memmapped,
9225 .voltage = {2700, 3600},
9226 },
9227
9228 {
9229 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009230 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009231 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009232 .manufacture_id = SHARP_ID,
9233 .model_id = SHARP_LHF00L04,
9234 .total_size = 1024,
9235 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009236 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009237 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009238 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009239 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009240 .block_erasers =
9241 {
9242 {
9243 .eraseblocks = {
9244 {64 * 1024, 15},
9245 {8 * 1024, 8}
9246 },
Sean Nelson28accc22010-03-19 18:47:06 +00009247 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009248 }, {
9249 .eraseblocks = {
9250 {1024 * 1024, 1}
9251 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009252 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009253 },
9254 },
Sean Nelson28accc22010-03-19 18:47:06 +00009255 .unlock = unlock_82802ab,
9256 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009258 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009259 },
9260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009261 {
9262 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009263 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009264 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009265 .manufacture_id = SPANSION_ID,
9266 .model_id = SPANSION_S25FL004A,
9267 .total_size = 512,
9268 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009269 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009270 .tested = TEST_UNTESTED,
9271 .probe = probe_spi_rdid,
9272 .probe_timing = TIMING_ZERO,
9273 .block_erasers =
9274 {
9275 {
9276 .eraseblocks = { {64 * 1024, 8} },
9277 .block_erase = spi_block_erase_d8,
9278 }, {
9279 .eraseblocks = { {512 * 1024, 1} },
9280 .block_erase = spi_block_erase_c7,
9281 }
9282 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009283 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009284 .unlock = spi_disable_blockprotect,
9285 .write = spi_chip_write_256,
9286 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009287 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009288 },
9289
9290 {
9291 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009292 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009293 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009294 .manufacture_id = SPANSION_ID,
9295 .model_id = SPANSION_S25FL008A,
9296 .total_size = 1024,
9297 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009298 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009299 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009300 .probe = probe_spi_rdid,
9301 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009302 .block_erasers =
9303 {
9304 {
9305 .eraseblocks = { {64 * 1024, 16} },
9306 .block_erase = spi_block_erase_d8,
9307 }, {
9308 .eraseblocks = { {1024 * 1024, 1} },
9309 .block_erase = spi_block_erase_c7,
9310 }
9311 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009312 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009313 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009314 .write = spi_chip_write_256,
9315 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009316 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009317 },
9318
9319 {
9320 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009321 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009322 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009323 .manufacture_id = SPANSION_ID,
9324 .model_id = SPANSION_S25FL016A,
9325 .total_size = 2048,
9326 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009327 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009328 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009329 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009330 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009331 .block_erasers =
9332 {
9333 {
9334 .eraseblocks = { {64 * 1024, 32} },
9335 .block_erase = spi_block_erase_d8,
9336 }, {
9337 .eraseblocks = { {2 * 1024 * 1024, 1} },
9338 .block_erase = spi_block_erase_c7,
9339 }
9340 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009341 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009342 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009343 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009344 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009345 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009346 },
9347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009348 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009349 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009350 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009351 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009352 .manufacture_id = SPANSION_ID,
9353 .model_id = SPANSION_S25FL032A,
9354 .total_size = 4096,
9355 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009356 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009357 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009358 .probe = probe_spi_rdid,
9359 .probe_timing = TIMING_ZERO,
9360 .block_erasers =
9361 {
9362 {
9363 .eraseblocks = { {64 * 1024, 64} },
9364 .block_erase = spi_block_erase_d8,
9365 }, {
9366 .eraseblocks = { {4 * 1024 * 1024, 1} },
9367 .block_erase = spi_block_erase_c7,
9368 }
9369 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009370 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009371 .unlock = spi_disable_blockprotect,
9372 .write = spi_chip_write_256,
9373 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009374 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009375 },
9376
9377 {
9378 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009379 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009380 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009381 .manufacture_id = SPANSION_ID,
9382 .model_id = SPANSION_S25FL064A,
9383 .total_size = 8192,
9384 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009385 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009386 .tested = TEST_OK_PREW,
9387 .probe = probe_spi_rdid,
9388 .probe_timing = TIMING_ZERO,
9389 .block_erasers =
9390 {
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_c7,
9397 }
9398 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009399 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009400 .unlock = spi_disable_blockprotect,
9401 .write = spi_chip_write_256,
9402 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009403 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009404 },
9405
9406 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009407 .vendor = "Spansion",
9408 .name = "S25FL204K",
9409 .bustype = BUS_SPI,
9410 .manufacture_id = SPANSION_ID,
9411 .model_id = SPANSION_S25FL204,
9412 .total_size = 512,
9413 .page_size = 256,
9414 .feature_bits = FEATURE_WRSR_WREN,
9415 .tested = TEST_UNTESTED,
9416 .probe = probe_spi_rdid,
9417 .probe_timing = TIMING_ZERO,
9418 .block_erasers = {
9419 {
9420 .eraseblocks = { {4 * 1024, 128} },
9421 .block_erase = spi_block_erase_20,
9422 }, {
9423 .eraseblocks = { {64 * 1024, 8} },
9424 .block_erase = spi_block_erase_d8,
9425 }, {
9426 .eraseblocks = { { 512 * 1024, 1} },
9427 .block_erase = spi_block_erase_60,
9428 }, {
9429 .eraseblocks = { { 512 * 1024, 1} },
9430 .block_erase = spi_block_erase_c7,
9431 }
9432 },
9433 .printlock = spi_prettyprint_status_register_default_bp3,
9434 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9435 .write = spi_chip_write_256,
9436 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9437 .voltage = {2700, 3600},
9438 },
9439
9440 {
9441 .vendor = "Spansion",
9442 .name = "S25FL208K",
9443 .bustype = BUS_SPI,
9444 .manufacture_id = SPANSION_ID,
9445 .model_id = SPANSION_S25FL208,
9446 .total_size = 1024,
9447 .page_size = 256,
9448 .feature_bits = FEATURE_WRSR_WREN,
9449 .tested = TEST_UNTESTED,
9450 .probe = probe_spi_rdid,
9451 .probe_timing = TIMING_ZERO,
9452 .block_erasers = {
9453 {
9454 .eraseblocks = { {4 * 1024, 256} },
9455 .block_erase = spi_block_erase_20,
9456 }, {
9457 .eraseblocks = { {64 * 1024, 16} },
9458 .block_erase = spi_block_erase_d8,
9459 }, {
9460 .eraseblocks = { { 1024 * 1024, 1} },
9461 .block_erase = spi_block_erase_60,
9462 }, {
9463 .eraseblocks = { { 1024 * 1024, 1} },
9464 .block_erase = spi_block_erase_c7,
9465 }
9466 },
9467 .printlock = spi_prettyprint_status_register_default_bp3,
9468 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9469 .write = spi_chip_write_256,
9470 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9471 .voltage = {2700, 3600},
9472 },
9473
9474 {
9475 .vendor = "Spansion",
9476 .name = "S25FL116K/S25FL216K",
9477 .bustype = BUS_SPI,
9478 .manufacture_id = SPANSION_ID,
9479 .model_id = SPANSION_S25FL216,
9480 .total_size = 2048,
9481 .page_size = 256,
9482 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9483 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9484 .tested = TEST_UNTESTED,
9485 .probe = probe_spi_rdid,
9486 .probe_timing = TIMING_ZERO,
9487 .block_erasers = {
9488 {
9489 .eraseblocks = { {4 * 1024, 512} },
9490 .block_erase = spi_block_erase_20,
9491 }, {
9492 .eraseblocks = { {64 * 1024, 32} },
9493 .block_erase = spi_block_erase_d8,
9494 }, {
9495 .eraseblocks = { { 2048 * 1024, 1} },
9496 .block_erase = spi_block_erase_60,
9497 }, {
9498 .eraseblocks = { { 2048 * 1024, 1} },
9499 .block_erase = spi_block_erase_c7,
9500 }
9501 },
9502 .printlock = spi_prettyprint_status_register_default_bp3,
9503 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9504 .write = spi_chip_write_256,
9505 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9506 .voltage = {2700, 3600},
9507 },
9508
9509 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009510 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +00009511 .name = "S25FL132K",
9512 .bustype = BUS_SPI,
9513 .manufacture_id = SPANSION_ID,
9514 .model_id = SPANSION_S25FL132K,
9515 .total_size = 4096,
9516 .page_size = 256,
9517 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9518 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9519 .tested = TEST_UNTESTED,
9520 .probe = probe_spi_rdid,
9521 .probe_timing = TIMING_ZERO,
9522 .block_erasers = {
9523 {
9524 .eraseblocks = { {4 * 1024, 1024} },
9525 .block_erase = spi_block_erase_20,
9526 }, {
9527 .eraseblocks = { {64 * 1024, 64} },
9528 .block_erase = spi_block_erase_d8,
9529 }, {
9530 .eraseblocks = { { 4096 * 1024, 1} },
9531 .block_erase = spi_block_erase_60,
9532 }, {
9533 .eraseblocks = { { 4096 * 1024, 1} },
9534 .block_erase = spi_block_erase_c7,
9535 }
9536 },
9537 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9538 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9539 .write = spi_chip_write_256,
9540 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9541 .voltage = {2700, 3600},
9542 },
9543
9544 {
9545 .vendor = "Spansion",
9546 .name = "S25FL164K",
9547 .bustype = BUS_SPI,
9548 .manufacture_id = SPANSION_ID,
9549 .model_id = SPANSION_S25FL164K,
9550 .total_size = 8192,
9551 .page_size = 256,
9552 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
9553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9554 .tested = TEST_OK_PREW,
9555 .probe = probe_spi_rdid,
9556 .probe_timing = TIMING_ZERO,
9557 .block_erasers = {
9558 {
9559 .eraseblocks = { {4 * 1024, 2048} },
9560 .block_erase = spi_block_erase_20,
9561 }, {
9562 .eraseblocks = { {64 * 1024, 128} },
9563 .block_erase = spi_block_erase_d8,
9564 }, {
9565 .eraseblocks = { { 8192 * 1024, 1} },
9566 .block_erase = spi_block_erase_60,
9567 }, {
9568 .eraseblocks = { { 8192 * 1024, 1} },
9569 .block_erase = spi_block_erase_c7,
9570 }
9571 },
9572 .printlock = spi_prettyprint_status_register_default_bp2, /* TODO: improve */
9573 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
9574 .write = spi_chip_write_256,
9575 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9576 .voltage = {2700, 3600},
9577 },
9578
9579 {
9580 .vendor = "Spansion",
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009581 .name = "S25FL128S......0", /* uniform 256kB sectors */
9582 .bustype = BUS_SPI,
9583 .manufacture_id = SPANSION_ID,
9584 .model_id = SPANSION_S25FL128,
9585 .total_size = 16384,
9586 .page_size = 256,
9587 /* supports 4B addressing */
9588 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9589 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9590 .tested = TEST_UNTESTED,
9591 .probe = probe_spi_rdid,
9592 .probe_timing = TIMING_ZERO,
9593 .block_erasers = {
9594 {
9595 .eraseblocks = { {4 * 1024, 4096} },
9596 .block_erase = spi_block_erase_20,
9597 }, {
9598 .eraseblocks = { {256 * 1024, 64} },
9599 .block_erase = spi_block_erase_d8,
9600 }, {
9601 .eraseblocks = { { 16384 * 1024, 1} },
9602 .block_erase = spi_block_erase_60,
9603 }, {
9604 .eraseblocks = { { 16384 * 1024, 1} },
9605 .block_erase = spi_block_erase_c7,
9606 }
9607 },
9608 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9609 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9610 .write = spi_chip_write_256, /* Multi I/O supported */
9611 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9612 .voltage = {2700, 3600},
9613 },
9614
9615 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009616 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +00009617 .name = "SST25LF020A",
9618 .bustype = BUS_SPI,
9619 .manufacture_id = SST_ID,
9620 .model_id = SST_SST25VF020_REMS,
9621 .total_size = 256,
9622 .page_size = 256,
9623 .feature_bits = FEATURE_WRSR_EWSR,
9624 .tested = TEST_OK_PREW,
9625 .probe = probe_spi_rems,
9626 .probe_timing = TIMING_ZERO,
9627 .block_erasers =
9628 {
9629 {
9630 .eraseblocks = { {4 * 1024, 64} },
9631 .block_erase = spi_block_erase_20,
9632 }, {
9633 .eraseblocks = { {32 * 1024, 8} },
9634 .block_erase = spi_block_erase_52,
9635 }, {
9636 .eraseblocks = { {256 * 1024, 1} },
9637 .block_erase = spi_block_erase_60,
9638 },
9639 },
9640 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9641 .unlock = spi_disable_blockprotect,
9642 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9643 .read = spi_chip_read, /* Fast read (0x0B) supported */
9644 .voltage = {2700, 3600},
9645 },
9646
9647 {
9648 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009649 .name = "SST25LF040A",
9650 .bustype = BUS_SPI,
9651 .manufacture_id = SST_ID,
9652 .model_id = SST_SST25VF040_REMS,
9653 .total_size = 512,
9654 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009655 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009656 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009657 .probe = probe_spi_res2,
9658 .probe_timing = TIMING_ZERO,
9659 .block_erasers =
9660 {
9661 {
9662 .eraseblocks = { {4 * 1024, 128} },
9663 .block_erase = spi_block_erase_20,
9664 }, {
9665 .eraseblocks = { {32 * 1024, 16} },
9666 .block_erase = spi_block_erase_52,
9667 }, {
9668 .eraseblocks = { {512 * 1024, 1} },
9669 .block_erase = spi_block_erase_60,
9670 },
9671 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009672 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009673 .unlock = spi_disable_blockprotect,
9674 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9675 .read = spi_chip_read,
9676 .voltage = {3000, 3600},
9677 },
9678
9679 {
9680 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009681 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009682 .bustype = BUS_SPI,
9683 .manufacture_id = SST_ID,
9684 .model_id = SST_SST25VF080_REMS,
9685 .total_size = 1024,
9686 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009687 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009688 .tested = TEST_UNTESTED,
9689 .probe = probe_spi_res2,
9690 .probe_timing = TIMING_ZERO,
9691 .block_erasers =
9692 {
9693 {
9694 .eraseblocks = { {4 * 1024, 256} },
9695 .block_erase = spi_block_erase_20,
9696 }, {
9697 .eraseblocks = { {32 * 1024, 32} },
9698 .block_erase = spi_block_erase_52,
9699 }, {
9700 .eraseblocks = { {1024 * 1024, 1} },
9701 .block_erase = spi_block_erase_60,
9702 },
9703 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009704 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009705 .unlock = spi_disable_blockprotect,
9706 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9707 .read = spi_chip_read,
9708 .voltage = {3000, 3600},
9709 },
9710
9711 {
9712 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +00009713 .name = "SST25VF512A",
9714 .bustype = BUS_SPI,
9715 .manufacture_id = SST_ID,
9716 .model_id = SST_SST25VF512A_REMS,
9717 .total_size = 64,
9718 .page_size = 256,
9719 .feature_bits = FEATURE_WRSR_EWSR,
9720 .tested = TEST_OK_PREW,
9721 .probe = probe_spi_rems,
9722 .probe_timing = TIMING_ZERO,
9723 .block_erasers =
9724 {
9725 {
9726 .eraseblocks = { {4 * 1024, 16} },
9727 .block_erase = spi_block_erase_20,
9728 }, {
9729 .eraseblocks = { {32 * 1024, 2} },
9730 .block_erase = spi_block_erase_52,
9731 }, {
9732 .eraseblocks = { {32 * 1024, 2} },
9733 .block_erase = spi_block_erase_d8,
9734 }, {
9735 .eraseblocks = { {64 * 1024, 1} },
9736 .block_erase = spi_block_erase_60,
9737 }, {
9738 .eraseblocks = { {64 * 1024, 1} },
9739 .block_erase = spi_block_erase_c7,
9740 },
9741 },
9742 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9743 .unlock = spi_disable_blockprotect,
9744 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9745 .read = spi_chip_read, /* Fast read (0x0B) supported */
9746 .voltage = {2700, 3600},
9747 },
9748
9749 {
9750 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009751 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009752 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009753 .manufacture_id = SST_ID,
9754 .model_id = SST_SST25VF010_REMS,
9755 .total_size = 128,
9756 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009757 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009758 .tested = TEST_OK_PREW,
9759 .probe = probe_spi_rems,
9760 .probe_timing = TIMING_ZERO,
9761 .block_erasers =
9762 {
9763 {
9764 .eraseblocks = { {4 * 1024, 32} },
9765 .block_erase = spi_block_erase_20,
9766 }, {
9767 .eraseblocks = { {32 * 1024, 4} },
9768 .block_erase = spi_block_erase_52,
9769 }, {
Cory Henderson370f5822013-10-19 23:09:16 +00009770 .eraseblocks = { {32 * 1024, 4} },
9771 .block_erase = spi_block_erase_d8,
9772 }, {
Mark Marshall90021f22010-12-03 14:48:11 +00009773 .eraseblocks = { {128 * 1024, 1} },
9774 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +00009775 }, {
9776 .eraseblocks = { {128 * 1024, 1} },
9777 .block_erase = spi_block_erase_c7,
9778 },
9779 },
9780 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9781 .unlock = spi_disable_blockprotect,
9782 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9783 .read = spi_chip_read, /* Fast read (0x0B) supported */
9784 .voltage = {2700, 3600},
9785 },
9786
9787 {
9788 .vendor = "SST",
9789 .name = "SST25VF020",
9790 .bustype = BUS_SPI,
9791 .manufacture_id = SST_ID,
9792 .model_id = SST_SST25VF020_REMS,
9793 .total_size = 256,
9794 .page_size = 256,
9795 .feature_bits = FEATURE_WRSR_EWSR,
9796 .tested = TEST_UNTESTED,
9797 .probe = probe_spi_rems,
9798 .probe_timing = TIMING_ZERO,
9799 .block_erasers =
9800 {
9801 {
9802 .eraseblocks = { {4 * 1024, 64} },
9803 .block_erase = spi_block_erase_20,
9804 }, {
9805 .eraseblocks = { {32 * 1024, 8} },
9806 .block_erase = spi_block_erase_52,
9807 }, {
9808 .eraseblocks = { {256 * 1024, 1} },
9809 .block_erase = spi_block_erase_60,
9810 },
9811 },
9812 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
9813 .unlock = spi_disable_blockprotect,
9814 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9815 .read = spi_chip_read, /* only */
9816 .voltage = {2700, 3600},
9817 },
9818
9819 {
9820 .vendor = "SST",
9821 .name = "SST25VF020B",
9822 .bustype = BUS_SPI,
9823 .manufacture_id = SST_ID,
9824 .model_id = SST_SST25VF020B,
9825 .total_size = 256,
9826 .page_size = 256,
9827 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009828 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +00009829 .probe = probe_spi_rdid,
9830 .probe_timing = TIMING_ZERO,
9831 .block_erasers =
9832 {
9833 {
9834 .eraseblocks = { {4 * 1024, 64} },
9835 .block_erase = spi_block_erase_20,
9836 }, {
9837 .eraseblocks = { {32 * 1024, 8} },
9838 .block_erase = spi_block_erase_52,
9839 }, {
9840 .eraseblocks = { {64 * 1024, 4} },
9841 .block_erase = spi_block_erase_d8,
9842 }, {
9843 .eraseblocks = { {256 * 1024, 1} },
9844 .block_erase = spi_block_erase_60,
9845 }, {
9846 .eraseblocks = { {256 * 1024, 1} },
9847 .block_erase = spi_block_erase_c7,
9848 },
9849 },
9850 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
9851 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
9852 .write = spi_aai_write, /* AAI supported (0xAD) */
9853 .read = spi_chip_read, /* Fast read (0x0B) supported */
9854 .voltage = {2700, 3600},
9855 },
9856
9857 {
9858 .vendor = "SST",
9859 .name = "SST25VF040",
9860 .bustype = BUS_SPI,
9861 .manufacture_id = SST_ID,
9862 .model_id = SST_SST25VF040_REMS,
9863 .total_size = 512,
9864 .page_size = 256,
9865 .feature_bits = FEATURE_WRSR_EWSR,
9866 .tested = TEST_OK_PR,
9867 .probe = probe_spi_rems,
9868 .probe_timing = TIMING_ZERO,
9869 .block_erasers =
9870 {
9871 {
9872 .eraseblocks = { {4 * 1024, 128} },
9873 .block_erase = spi_block_erase_20,
9874 }, {
9875 .eraseblocks = { {32 * 1024, 16} },
9876 .block_erase = spi_block_erase_52,
9877 }, {
9878 .eraseblocks = { {512 * 1024, 1} },
9879 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +00009880 },
9881 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009882 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009883 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +00009884 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9885 .read = spi_chip_read,
9886 .voltage = {2700, 3600},
9887 },
9888
9889 {
9890 .vendor = "SST",
9891 .name = "SST25VF040B",
9892 .bustype = BUS_SPI,
9893 .manufacture_id = SST_ID,
9894 .model_id = SST_SST25VF040B,
9895 .total_size = 512,
9896 .page_size = 256,
9897 .feature_bits = FEATURE_WRSR_EWSR,
9898 .tested = TEST_OK_PREW,
9899 .probe = probe_spi_rdid,
9900 .probe_timing = TIMING_ZERO,
9901 .block_erasers =
9902 {
9903 {
9904 .eraseblocks = { {4 * 1024, 128} },
9905 .block_erase = spi_block_erase_20,
9906 }, {
9907 .eraseblocks = { {32 * 1024, 16} },
9908 .block_erase = spi_block_erase_52,
9909 }, {
9910 .eraseblocks = { {64 * 1024, 8} },
9911 .block_erase = spi_block_erase_d8,
9912 }, {
9913 .eraseblocks = { {512 * 1024, 1} },
9914 .block_erase = spi_block_erase_60,
9915 }, {
9916 .eraseblocks = { {512 * 1024, 1} },
9917 .block_erase = spi_block_erase_c7,
9918 },
9919 },
9920 .printlock = spi_prettyprint_status_register_sst25vf040b,
9921 .unlock = spi_disable_blockprotect,
9922 .write = spi_aai_write, /* AAI supported (0xAD) */
9923 .read = spi_chip_read, /* Fast read (0x0B) supported */
9924 .voltage = {2700, 3600},
9925 },
9926
9927 {
9928 .vendor = "SST",
9929 .name = "SST25VF040B.REMS",
9930 .bustype = BUS_SPI,
9931 .manufacture_id = SST_ID,
9932 .model_id = SST_SST25VF040B_REMS,
9933 .total_size = 512,
9934 .page_size = 256,
9935 .feature_bits = FEATURE_WRSR_EWSR,
9936 .tested = TEST_OK_PREW,
9937 .probe = probe_spi_rems,
9938 .probe_timing = TIMING_ZERO,
9939 .block_erasers =
9940 {
9941 {
9942 .eraseblocks = { {4 * 1024, 128} },
9943 .block_erase = spi_block_erase_20,
9944 }, {
9945 .eraseblocks = { {32 * 1024, 16} },
9946 .block_erase = spi_block_erase_52,
9947 }, {
9948 .eraseblocks = { {64 * 1024, 8} },
9949 .block_erase = spi_block_erase_d8,
9950 }, {
9951 .eraseblocks = { {512 * 1024, 1} },
9952 .block_erase = spi_block_erase_60,
9953 }, {
9954 .eraseblocks = { {512 * 1024, 1} },
9955 .block_erase = spi_block_erase_c7,
9956 },
9957 },
9958 .printlock = spi_prettyprint_status_register_sst25vf040b,
9959 .unlock = spi_disable_blockprotect,
9960 .write = spi_aai_write,
9961 .read = spi_chip_read,
9962 .voltage = {2700, 3600},
9963 },
9964
9965 {
9966 .vendor = "SST",
9967 .name = "SST25VF080B",
9968 .bustype = BUS_SPI,
9969 .manufacture_id = SST_ID,
9970 .model_id = SST_SST25VF080B,
9971 .total_size = 1024,
9972 .page_size = 256,
9973 .feature_bits = FEATURE_WRSR_EWSR,
9974 .tested = TEST_OK_PREW,
9975 .probe = probe_spi_rdid,
9976 .probe_timing = TIMING_ZERO,
9977 .block_erasers =
9978 {
9979 {
9980 .eraseblocks = { {4 * 1024, 256} },
9981 .block_erase = spi_block_erase_20,
9982 }, {
9983 .eraseblocks = { {32 * 1024, 32} },
9984 .block_erase = spi_block_erase_52,
9985 }, {
9986 .eraseblocks = { {64 * 1024, 16} },
9987 .block_erase = spi_block_erase_d8,
9988 }, {
9989 .eraseblocks = { {1024 * 1024, 1} },
9990 .block_erase = spi_block_erase_60,
9991 }, {
9992 .eraseblocks = { {1024 * 1024, 1} },
9993 .block_erase = spi_block_erase_c7,
9994 },
9995 },
9996 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
9997 .unlock = spi_disable_blockprotect,
9998 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +00009999 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010000 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000010001 },
10002
10003 {
10004 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010005 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010006 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010007 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010008 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010009 .total_size = 2048,
10010 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010011 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000010012 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010013 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010014 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010015 .block_erasers =
10016 {
10017 {
10018 .eraseblocks = { {4 * 1024, 512} },
10019 .block_erase = spi_block_erase_20,
10020 }, {
10021 .eraseblocks = { {32 * 1024, 64} },
10022 .block_erase = spi_block_erase_52,
10023 }, {
10024 .eraseblocks = { {64 * 1024, 32} },
10025 .block_erase = spi_block_erase_d8,
10026 }, {
10027 .eraseblocks = { {2 * 1024 * 1024, 1} },
10028 .block_erase = spi_block_erase_60,
10029 }, {
10030 .eraseblocks = { {2 * 1024 * 1024, 1} },
10031 .block_erase = spi_block_erase_c7,
10032 },
10033 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010034 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010035 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000010036 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010037 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010038 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010039 },
10040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010041 {
10042 .vendor = "SST",
10043 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010044 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010045 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010046 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010047 .total_size = 4096,
10048 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010049 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000010050 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010051 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010052 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010053 .block_erasers =
10054 {
10055 {
10056 .eraseblocks = { {4 * 1024, 1024} },
10057 .block_erase = spi_block_erase_20,
10058 }, {
10059 .eraseblocks = { {32 * 1024, 128} },
10060 .block_erase = spi_block_erase_52,
10061 }, {
10062 .eraseblocks = { {64 * 1024, 64} },
10063 .block_erase = spi_block_erase_d8,
10064 }, {
10065 .eraseblocks = { {4 * 1024 * 1024, 1} },
10066 .block_erase = spi_block_erase_60,
10067 }, {
10068 .eraseblocks = { {4 * 1024 * 1024, 1} },
10069 .block_erase = spi_block_erase_c7,
10070 },
10071 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010072 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010073 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010074 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010075 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010076 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000010077 },
10078
10079 {
10080 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010081 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010082 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010083 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010084 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010085 .total_size = 8192,
10086 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010087 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000010088 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010089 .probe = probe_spi_rdid,
10090 .probe_timing = TIMING_ZERO,
10091 .block_erasers =
10092 {
10093 {
10094 .eraseblocks = { {4 * 1024, 2048} },
10095 .block_erase = spi_block_erase_20,
10096 }, {
10097 .eraseblocks = { {32 * 1024, 256} },
10098 .block_erase = spi_block_erase_52,
10099 }, {
10100 .eraseblocks = { {64 * 1024, 128} },
10101 .block_erase = spi_block_erase_d8,
10102 }, {
10103 .eraseblocks = { {8 * 1024 * 1024, 1} },
10104 .block_erase = spi_block_erase_60,
10105 }, {
10106 .eraseblocks = { {8 * 1024 * 1024, 1} },
10107 .block_erase = spi_block_erase_c7,
10108 },
10109 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010110 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010111 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000010112 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010113 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010114 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000010115 },
10116
10117 {
10118 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000010119 .name = "SST25WF512",
10120 .bustype = BUS_SPI,
10121 .manufacture_id = SST_ID,
10122 .model_id = SST_SST25WF512,
10123 .total_size = 64,
10124 .page_size = 256,
10125 .feature_bits = FEATURE_WRSR_EITHER,
10126 .tested = TEST_UNTESTED,
10127 .probe = probe_spi_rdid,
10128 .probe_timing = TIMING_ZERO,
10129 .block_erasers =
10130 {
10131 {
10132 .eraseblocks = { {4 * 1024, 16} },
10133 .block_erase = spi_block_erase_20,
10134 }, {
10135 .eraseblocks = { {32 * 1024, 2} },
10136 .block_erase = spi_block_erase_52,
10137 }, {
10138 .eraseblocks = { {1024 * 64, 1} },
10139 .block_erase = spi_block_erase_60,
10140 }, {
10141 .eraseblocks = { {1024 * 64, 1} },
10142 .block_erase = spi_block_erase_c7,
10143 },
10144 },
Jason Harper43ddef02014-05-04 00:55:24 +000010145 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10146 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010147 .write = spi_aai_write,
10148 .read = spi_chip_read, /* Fast read (0x0B) supported */
10149 .voltage = {1650, 1950},
10150 },
10151
10152 {
10153 .vendor = "SST",
10154 .name = "SST25WF010",
10155 .bustype = BUS_SPI,
10156 .manufacture_id = SST_ID,
10157 .model_id = SST_SST25WF010,
10158 .total_size = 128,
10159 .page_size = 256,
10160 .feature_bits = FEATURE_WRSR_EITHER,
10161 .tested = TEST_UNTESTED,
10162 .probe = probe_spi_rdid,
10163 .probe_timing = TIMING_ZERO,
10164 .block_erasers =
10165 {
10166 {
10167 .eraseblocks = { {4 * 1024, 32} },
10168 .block_erase = spi_block_erase_20,
10169 }, {
10170 .eraseblocks = { {32 * 1024, 4} },
10171 .block_erase = spi_block_erase_52,
10172 }, {
10173 .eraseblocks = { {1024 * 128, 1} },
10174 .block_erase = spi_block_erase_60,
10175 }, {
10176 .eraseblocks = { {1024 * 128, 1} },
10177 .block_erase = spi_block_erase_c7,
10178 },
10179 },
Jason Harper43ddef02014-05-04 00:55:24 +000010180 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10181 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010182 .write = spi_aai_write,
10183 .read = spi_chip_read, /* Fast read (0x0B) supported */
10184 .voltage = {1650, 1950},
10185 },
10186
10187 {
10188 .vendor = "SST",
10189 .name = "SST25WF020",
10190 .bustype = BUS_SPI,
10191 .manufacture_id = SST_ID,
10192 .model_id = SST_SST25WF020,
10193 .total_size = 256,
10194 .page_size = 256,
10195 .feature_bits = FEATURE_WRSR_EITHER,
10196 .tested = TEST_UNTESTED,
10197 .probe = probe_spi_rdid,
10198 .probe_timing = TIMING_ZERO,
10199 .block_erasers =
10200 {
10201 {
10202 .eraseblocks = { {4 * 1024, 64} },
10203 .block_erase = spi_block_erase_20,
10204 }, {
10205 .eraseblocks = { {32 * 1024, 8} },
10206 .block_erase = spi_block_erase_52,
10207 }, {
10208 .eraseblocks = { {64 * 1024, 4} },
10209 .block_erase = spi_block_erase_d8,
10210 }, {
10211 .eraseblocks = { {1024 * 256, 1} },
10212 .block_erase = spi_block_erase_60,
10213 }, {
10214 .eraseblocks = { {1024 * 256, 1} },
10215 .block_erase = spi_block_erase_c7,
10216 },
10217 },
Jason Harper43ddef02014-05-04 00:55:24 +000010218 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10219 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010220 .write = spi_aai_write,
10221 .read = spi_chip_read, /* Fast read (0x0B) supported */
10222 .voltage = {1650, 1950},
10223 },
10224
10225 {
10226 .vendor = "SST",
10227 .name = "SST25WF040",
10228 .bustype = BUS_SPI,
10229 .manufacture_id = SST_ID,
10230 .model_id = SST_SST25WF040,
10231 .total_size = 512,
10232 .page_size = 256,
10233 .feature_bits = FEATURE_WRSR_EITHER,
10234 .tested = TEST_UNTESTED,
10235 .probe = probe_spi_rdid,
10236 .probe_timing = TIMING_ZERO,
10237 .block_erasers =
10238 {
10239 {
10240 .eraseblocks = { {4 * 1024, 128} },
10241 .block_erase = spi_block_erase_20,
10242 }, {
10243 .eraseblocks = { {32 * 1024, 16} },
10244 .block_erase = spi_block_erase_52,
10245 }, {
10246 .eraseblocks = { {64 * 1024, 8} },
10247 .block_erase = spi_block_erase_d8,
10248 }, {
10249 .eraseblocks = { {1024 * 512, 1} },
10250 .block_erase = spi_block_erase_60,
10251 }, {
10252 .eraseblocks = { {1024 * 512, 1} },
10253 .block_erase = spi_block_erase_c7,
10254 },
10255 },
Jason Harper43ddef02014-05-04 00:55:24 +000010256 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
10257 .unlock = spi_disable_blockprotect_bp2_srwd,
10258 .write = spi_aai_write,
10259 .read = spi_chip_read, /* Fast read (0x0B) supported */
10260 .voltage = {1650, 1950},
10261 },
10262
10263 {
10264 .vendor = "SST",
10265 .name = "SST25WF080",
10266 .bustype = BUS_SPI,
10267 .manufacture_id = SST_ID,
10268 .model_id = SST_SST25WF080,
10269 .total_size = 1024,
10270 .page_size = 256,
10271 .feature_bits = FEATURE_WRSR_EITHER,
10272 .tested = TEST_OK_PREW,
10273 .probe = probe_spi_rdid,
10274 .probe_timing = TIMING_ZERO,
10275 .block_erasers =
10276 {
10277 {
10278 .eraseblocks = { {4 * 1024, 256} },
10279 .block_erase = spi_block_erase_20,
10280 }, {
10281 .eraseblocks = { {32 * 1024, 32} },
10282 .block_erase = spi_block_erase_52,
10283 }, {
10284 .eraseblocks = { {64 * 1024, 16} },
10285 .block_erase = spi_block_erase_d8,
10286 }, {
10287 .eraseblocks = { {1024 * 1024, 1} },
10288 .block_erase = spi_block_erase_60,
10289 }, {
10290 .eraseblocks = { {1024 * 1024, 1} },
10291 .block_erase = spi_block_erase_c7,
10292 },
10293 },
10294 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
10295 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000010296 .write = spi_aai_write,
10297 .read = spi_chip_read, /* Fast read (0x0B) supported */
10298 .voltage = {1650, 1950},
10299 },
10300
10301 {
10302 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010303 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010304 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010305 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010306 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010307 .total_size = 512,
10308 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000010309 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010310 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010311 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010312 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010313 .block_erasers =
10314 {
10315 {
10316 .eraseblocks = { {128, 4096} },
10317 .block_erase = erase_sector_28sf040,
10318 }, {
10319 .eraseblocks = { {512 * 1024, 1} },
10320 .block_erase = erase_chip_28sf040,
10321 }
10322 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010323 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010324 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010325 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010326 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010327 },
10328
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010329 {
10330 .vendor = "SST",
10331 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010332 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010333 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010334 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010335 .total_size = 128,
10336 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010337 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010338 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010339 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010340 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010341 .block_erasers =
10342 {
10343 {
10344 .eraseblocks = { {128 * 1024, 1} },
10345 .block_erase = erase_chip_block_jedec,
10346 }
10347 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010348 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010350 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010351 },
10352
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010353 {
10354 .vendor = "SST",
10355 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010356 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010357 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010358 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010359 .total_size = 128,
10360 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010361 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010362 .tested = TEST_UNTESTED,
10363 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010364 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010365 .block_erasers =
10366 {
10367 {
10368 .eraseblocks = { {128 * 1024, 1} },
10369 .block_erase = erase_chip_block_jedec,
10370 }
10371 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010372 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010374 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010375 },
10376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010377 {
10378 .vendor = "SST",
10379 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010380 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010381 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010382 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010383 .total_size = 256,
10384 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010385 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010386 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010387 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010388 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010389 .block_erasers =
10390 {
10391 {
10392 .eraseblocks = { {256 * 1024, 1} },
10393 .block_erase = erase_chip_block_jedec,
10394 }
10395 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010396 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010398 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010399 },
10400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010401 {
10402 .vendor = "SST",
10403 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010404 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010405 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010406 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010407 .total_size = 256,
10408 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010409 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010410 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010411 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010412 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010413 .block_erasers =
10414 {
10415 {
10416 .eraseblocks = { {256 * 1024, 1} },
10417 .block_erase = erase_chip_block_jedec,
10418 }
10419 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010420 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010421 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010422 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010423 },
10424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010425 {
10426 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010427 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010428 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010429 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010430 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010431 .total_size = 64,
10432 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010433 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010434 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010435 .probe = probe_jedec,
10436 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010437 .block_erasers =
10438 {
10439 {
10440 .eraseblocks = { {4 * 1024, 16} },
10441 .block_erase = erase_sector_jedec,
10442 }, {
10443 .eraseblocks = { {64 * 1024, 1} },
10444 .block_erase = erase_chip_block_jedec,
10445 }
10446 },
Sean Nelson35727f72010-01-28 23:55:12 +000010447 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010449 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010450 },
10451
10452 {
10453 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010454 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010456 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010457 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010458 .total_size = 128,
10459 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010460 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010462 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010463 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010464 .block_erasers =
10465 {
10466 {
10467 .eraseblocks = { {4 * 1024, 32} },
10468 .block_erase = erase_sector_jedec,
10469 }, {
10470 .eraseblocks = { {128 * 1024, 1} },
10471 .block_erase = erase_chip_block_jedec,
10472 }
10473 },
Sean Nelson35727f72010-01-28 23:55:12 +000010474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010476 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010477 },
10478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010479 {
10480 .vendor = "SST",
10481 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010482 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010483 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010484 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010485 .total_size = 256,
10486 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010487 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010489 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010490 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010491 .block_erasers =
10492 {
10493 {
10494 .eraseblocks = { {4 * 1024, 64} },
10495 .block_erase = erase_sector_jedec,
10496 }, {
10497 .eraseblocks = { {256 * 1024, 1} },
10498 .block_erase = erase_chip_block_jedec,
10499 }
10500 },
Sean Nelson35727f72010-01-28 23:55:12 +000010501 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010503 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010504 },
10505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010506 {
10507 .vendor = "SST",
10508 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010510 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010511 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010512 .total_size = 512,
10513 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010514 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010515 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010517 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010518 .block_erasers =
10519 {
10520 {
10521 .eraseblocks = { {4 * 1024, 128} },
10522 .block_erase = erase_sector_jedec,
10523 }, {
10524 .eraseblocks = { {512 * 1024, 1} },
10525 .block_erase = erase_chip_block_jedec,
10526 }
10527 },
Sean Nelson35727f72010-01-28 23:55:12 +000010528 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010530 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010531 },
10532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010533 {
10534 .vendor = "SST",
10535 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010536 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010537 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010538 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010539 .total_size = 64,
10540 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010541 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010542 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010543 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010544 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010545 .block_erasers =
10546 {
10547 {
10548 .eraseblocks = { {4 * 1024, 16} },
10549 .block_erase = erase_sector_jedec,
10550 }, {
10551 .eraseblocks = { {64 * 1024, 1} },
10552 .block_erase = erase_chip_block_jedec,
10553 }
10554 },
Sean Nelson35727f72010-01-28 23:55:12 +000010555 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010556 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010557 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010558 },
10559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010560 {
10561 .vendor = "SST",
10562 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010563 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010564 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010565 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010566 .total_size = 128,
10567 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010568 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010569 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010570 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010571 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010572 .block_erasers =
10573 {
10574 {
10575 .eraseblocks = { {4 * 1024, 32} },
10576 .block_erase = erase_sector_jedec,
10577 }, {
10578 .eraseblocks = { {128 * 1024, 1} },
10579 .block_erase = erase_chip_block_jedec,
10580 }
10581 },
Sean Nelson35727f72010-01-28 23:55:12 +000010582 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010584 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010585 },
10586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010587 {
10588 .vendor = "SST",
10589 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010590 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010591 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010592 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010593 .total_size = 256,
10594 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010595 .feature_bits = FEATURE_EITHER_RESET,
10596 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010597 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010598 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010599 .block_erasers =
10600 {
10601 {
10602 .eraseblocks = { {4 * 1024, 64} },
10603 .block_erase = erase_sector_jedec,
10604 }, {
10605 .eraseblocks = { {256 * 1024, 1} },
10606 .block_erase = erase_chip_block_jedec,
10607 }
10608 },
Sean Nelson35727f72010-01-28 23:55:12 +000010609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010611 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010612 },
10613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010614 {
10615 .vendor = "SST",
10616 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010619 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010620 .total_size = 512,
10621 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010622 .feature_bits = FEATURE_EITHER_RESET,
10623 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010624 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010625 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010626 .block_erasers =
10627 {
10628 {
10629 .eraseblocks = { {4 * 1024, 128} },
10630 .block_erase = erase_sector_jedec,
10631 }, {
10632 .eraseblocks = { {512 * 1024, 1} },
10633 .block_erase = erase_chip_block_jedec,
10634 }
10635 },
Sean Nelson35727f72010-01-28 23:55:12 +000010636 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010638 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010639 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010641 {
10642 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010643 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010644 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010645 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010646 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010647 .total_size = 1024,
10648 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010649 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010650 .tested = TEST_UNTESTED,
10651 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010652 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010653 .block_erasers =
10654 {
10655 {
10656 .eraseblocks = { {4 * 1024, 256} },
10657 .block_erase = erase_sector_jedec,
10658 }, {
10659 .eraseblocks = { {64 * 1024, 16} },
10660 .block_erase = erase_block_jedec,
10661 }, {
10662 .eraseblocks = { {1024 * 1024, 1} },
10663 .block_erase = erase_chip_block_jedec,
10664 }
10665 },
Sean Nelson35727f72010-01-28 23:55:12 +000010666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010668 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010669 },
10670
10671 {
10672 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010673 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010674 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010675 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010676 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010677 .total_size = 256,
10678 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010679 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010680 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010681 .probe = probe_jedec,
10682 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010683 .block_erasers =
10684 {
10685 {
10686 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010687 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010688 }, {
10689 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010690 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010691 }, {
10692 .eraseblocks = { {256 * 1024, 1} },
10693 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10694 }
10695 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010696 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010697 .unlock = unlock_sst_fwhub,
10698 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010700 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010701 },
10702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010703 {
10704 .vendor = "SST",
10705 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010706 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010708 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010709 .total_size = 384,
10710 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010711 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010712 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010713 .probe = probe_jedec,
10714 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010715 .block_erasers =
10716 {
10717 {
10718 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010719 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010720 }, {
10721 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010722 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010723 }, {
10724 .eraseblocks = { {384 * 1024, 1} },
10725 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10726 }
10727 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010728 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010729 .unlock = unlock_sst_fwhub,
10730 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010732 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010733 },
10734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010735 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010736 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10737 * and is only honored for 64k block erase, but not 4k sector erase.
10738 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010739 .vendor = "SST",
10740 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010741 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010742 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010743 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010744 .total_size = 512,
10745 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010746 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010747 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010748 .probe = probe_jedec,
10749 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010750 .block_erasers =
10751 {
10752 {
10753 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010754 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010755 }, {
10756 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010757 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010758 }, {
10759 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010760 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010761 },
10762 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010763 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010764 .unlock = unlock_sst_fwhub,
10765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010767 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010768 },
10769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010770 {
10771 .vendor = "SST",
10772 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010773 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010774 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010775 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010776 .total_size = 512,
10777 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010778 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010779 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010780 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010781 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010782 .block_erasers =
10783 {
10784 {
10785 .eraseblocks = { {4 * 1024, 128} },
10786 .block_erase = erase_sector_49lfxxxc,
10787 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010788 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010789 {64 * 1024, 7},
10790 {32 * 1024, 1},
10791 {8 * 1024, 2},
10792 {16 * 1024, 1},
10793 },
Sean Nelson69e58112010-03-23 17:10:28 +000010794 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010795 }
10796 },
Sean Nelson69e58112010-03-23 17:10:28 +000010797 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010798 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010800 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010801 },
10802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010803 {
10804 .vendor = "SST",
10805 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010806 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010807 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010808 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010809 .total_size = 1024,
10810 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010811 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010812 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010813 .probe = probe_jedec,
10814 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010815 .block_erasers =
10816 {
10817 {
10818 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010819 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010820 }, {
10821 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010822 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010823 }, {
10824 .eraseblocks = { {1024 * 1024, 1} },
10825 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10826 }
10827 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010828 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010829 .unlock = unlock_sst_fwhub,
10830 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010832 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010833 },
10834
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010835 {
10836 .vendor = "SST",
10837 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010838 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010839 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010840 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010841 .total_size = 1024,
10842 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010843 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010844 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010845 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010846 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010847 .block_erasers =
10848 {
10849 {
10850 .eraseblocks = { {4 * 1024, 256} },
10851 .block_erase = erase_sector_49lfxxxc,
10852 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010853 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010854 {64 * 1024, 15},
10855 {32 * 1024, 1},
10856 {8 * 1024, 2},
10857 {16 * 1024, 1},
10858 },
Sean Nelson69e58112010-03-23 17:10:28 +000010859 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010860 }
10861 },
Sean Nelson69e58112010-03-23 17:10:28 +000010862 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010863 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010865 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010866 },
10867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010868 {
10869 .vendor = "SST",
10870 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010871 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010872 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010873 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010874 .total_size = 2048,
10875 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010876 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010877 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010878 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010879 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010880 .block_erasers =
10881 {
10882 {
10883 .eraseblocks = { {4 * 1024, 512} },
10884 .block_erase = erase_sector_49lfxxxc,
10885 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010886 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010887 {64 * 1024, 31},
10888 {32 * 1024, 1},
10889 {8 * 1024, 2},
10890 {16 * 1024, 1},
10891 },
Sean Nelson69e58112010-03-23 17:10:28 +000010892 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010893 }
10894 },
Sean Nelson69e58112010-03-23 17:10:28 +000010895 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010896 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010898 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010899 },
10900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010901 {
10902 .vendor = "SST",
10903 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010904 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010905 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010906 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010907 .total_size = 256,
10908 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010909 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010910 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010911 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010912 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010913 .block_erasers =
10914 {
10915 {
10916 .eraseblocks = { {4 * 1024, 64} },
10917 .block_erase = erase_sector_jedec,
10918 }, {
10919 .eraseblocks = { {16 * 1024, 16} },
10920 .block_erase = erase_block_jedec,
10921 }, {
10922 .eraseblocks = { {256 * 1024, 1} },
10923 .block_erase = NULL,
10924 }
10925 },
Sean Nelson35727f72010-01-28 23:55:12 +000010926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010928 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010929 },
10930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010931 {
10932 .vendor = "SST",
10933 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010934 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010936 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010937 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000010938 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010939 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010940 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010941 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010942 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010943 .block_erasers =
10944 {
10945 {
10946 .eraseblocks = { {4 * 1024, 64} },
10947 .block_erase = erase_sector_jedec,
10948 }, {
10949 .eraseblocks = { {16 * 1024, 16} },
10950 .block_erase = erase_block_jedec,
10951 }, {
10952 .eraseblocks = { {256 * 1024, 1} },
10953 .block_erase = NULL,
10954 }
10955 },
Sean Nelson35727f72010-01-28 23:55:12 +000010956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010958 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010959 },
10960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010961 {
10962 .vendor = "SST",
10963 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010964 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010965 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010966 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010967 .total_size = 512,
10968 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010969 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010970 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010971 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010972 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010973 .block_erasers =
10974 {
10975 {
10976 .eraseblocks = { {4 * 1024, 128} },
10977 .block_erase = erase_sector_jedec,
10978 }, {
10979 .eraseblocks = { {64 * 1024, 8} },
10980 .block_erase = erase_block_jedec,
10981 }, {
10982 .eraseblocks = { {512 * 1024, 1} },
10983 .block_erase = NULL,
10984 }
10985 },
Sean Nelson35727f72010-01-28 23:55:12 +000010986 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010988 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010989 },
10990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010991 {
10992 .vendor = "SST",
10993 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010994 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010995 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010996 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010997 .total_size = 512,
10998 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010999 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011000 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011001 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011002 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011003 .block_erasers =
11004 {
11005 {
11006 .eraseblocks = { {4 * 1024, 128} },
11007 .block_erase = erase_sector_jedec,
11008 }, {
11009 .eraseblocks = { {64 * 1024, 8} },
11010 .block_erase = erase_block_jedec,
11011 }, {
11012 .eraseblocks = { {512 * 1024, 1} },
11013 .block_erase = NULL,
11014 }
11015 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000011016 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000011017 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011018 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011019 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011020 },
11021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011022 {
11023 .vendor = "SST",
11024 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011025 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011026 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011027 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011028 .total_size = 1024,
11029 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011030 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000011031 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011032 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011033 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011034 .block_erasers =
11035 {
11036 {
11037 .eraseblocks = { {4 * 1024, 256} },
11038 .block_erase = erase_sector_jedec,
11039 }, {
11040 .eraseblocks = { {64 * 1024, 16} },
11041 .block_erase = erase_block_jedec,
11042 }, {
11043 .eraseblocks = { {1024 * 1024, 1} },
11044 .block_erase = NULL,
11045 }
11046 },
Sean Nelson35727f72010-01-28 23:55:12 +000011047 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011049 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011050 },
11051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011052 {
11053 .vendor = "SST",
11054 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011055 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011056 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011057 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011058 .total_size = 2048,
11059 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011060 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011061 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011062 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011063 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011064 .block_erasers =
11065 {
11066 {
11067 .eraseblocks = { {4 * 1024, 512} },
11068 .block_erase = erase_sector_49lfxxxc,
11069 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011070 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011071 {64 * 1024, 31},
11072 {32 * 1024, 1},
11073 {8 * 1024, 2},
11074 {16 * 1024, 1},
11075 },
Sean Nelson69e58112010-03-23 17:10:28 +000011076 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011077 }
11078 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000011079 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011080 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011082 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011083 },
11084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011085 {
11086 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011087 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011088 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011089 .manufacture_id = ST_ID,
11090 .model_id = ST_M29F002B,
11091 .total_size = 256,
11092 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011093 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011094 .tested = TEST_UNTESTED,
11095 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011096 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011097 .block_erasers =
11098 {
11099 {
11100 .eraseblocks = {
11101 {16 * 1024, 1},
11102 {8 * 1024, 2},
11103 {32 * 1024, 1},
11104 {64 * 1024, 3},
11105 },
11106 .block_erase = erase_sector_jedec,
11107 }, {
11108 .eraseblocks = { {256 * 1024, 1} },
11109 .block_erase = erase_chip_block_jedec,
11110 }
11111 },
Sean Nelson35727f72010-01-28 23:55:12 +000011112 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011113 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011114 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011115 },
11116
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011117 {
11118 .vendor = "ST",
11119 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011120 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011121 .manufacture_id = ST_ID,
11122 .model_id = ST_M29F002T,
11123 .total_size = 256,
11124 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011125 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011126 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011127 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011128 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011129 .block_erasers =
11130 {
11131 {
11132 .eraseblocks = {
11133 {64 * 1024, 3},
11134 {32 * 1024, 1},
11135 {8 * 1024, 2},
11136 {16 * 1024, 1},
11137 },
11138 .block_erase = erase_sector_jedec,
11139 }, {
11140 .eraseblocks = { {256 * 1024, 1} },
11141 .block_erase = erase_chip_block_jedec,
11142 }
11143 },
Sean Nelson35727f72010-01-28 23:55:12 +000011144 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011145 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011146 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000011147 },
11148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011149 {
11150 .vendor = "ST",
11151 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011152 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011153 .manufacture_id = ST_ID,
11154 .model_id = ST_M29F040B,
11155 .total_size = 512,
11156 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011157 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11158 .tested = TEST_UNTESTED,
11159 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000011160 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000011161 .block_erasers =
11162 {
11163 {
11164 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000011165 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011166 }, {
11167 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011168 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000011169 }
11170 },
Sean Nelson35727f72010-01-28 23:55:12 +000011171 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011172 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011173 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011174 },
11175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011176 {
Sean Nelson35727f72010-01-28 23:55:12 +000011177 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011178 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011179 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011180 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011181 .manufacture_id = ST_ID,
11182 .model_id = ST_M29F400BB,
11183 .total_size = 512,
11184 .page_size = 64 * 1024,
11185 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011186 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011187 .probe = probe_m29f400bt,
11188 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
11189 .block_erasers =
11190 {
11191 {
11192 .eraseblocks = {
11193 {16 * 1024, 1},
11194 {8 * 1024, 2},
11195 {32 * 1024, 1},
11196 {64 * 1024, 7},
11197 },
11198 .block_erase = block_erase_m29f400bt,
11199 }, {
11200 .eraseblocks = { {512 * 1024, 1} },
11201 .block_erase = block_erase_chip_m29f400bt,
11202 }
11203 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011204 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011206 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011207 },
11208 {
11209 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
11210 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011211 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011212 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011213 .manufacture_id = ST_ID,
11214 .model_id = ST_M29F400BT,
11215 .total_size = 512,
11216 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011217 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011218 .tested = TEST_UNTESTED,
11219 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011220 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011221 .block_erasers =
11222 {
11223 {
11224 .eraseblocks = {
11225 {64 * 1024, 7},
11226 {32 * 1024, 1},
11227 {8 * 1024, 2},
11228 {16 * 1024, 1},
11229 },
11230 .block_erase = block_erase_m29f400bt,
11231 }, {
11232 .eraseblocks = { {512 * 1024, 1} },
11233 .block_erase = block_erase_chip_m29f400bt,
11234 }
11235 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000011236 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011238 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011239 },
11240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011241 {
11242 .vendor = "ST",
11243 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011244 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011245 .manufacture_id = ST_ID,
11246 .model_id = ST_M29W010B,
11247 .total_size = 128,
11248 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011249 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011250 .tested = TEST_UNTESTED,
11251 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011252 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011253 .block_erasers =
11254 {
11255 {
11256 .eraseblocks = { {16 * 1024, 8}, },
11257 .block_erase = erase_sector_jedec,
11258 }, {
11259 .eraseblocks = { {128 * 1024, 1} },
11260 .block_erase = erase_chip_block_jedec,
11261 }
11262 },
Sean Nelson35727f72010-01-28 23:55:12 +000011263 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011265 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011266 },
11267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011268 {
11269 .vendor = "ST",
11270 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011271 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011272 .manufacture_id = ST_ID,
11273 .model_id = ST_M29W040B,
11274 .total_size = 512,
11275 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011277 .tested = TEST_UNTESTED,
11278 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011279 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011280 .block_erasers =
11281 {
11282 {
11283 .eraseblocks = { {64 * 1024, 8}, },
11284 .block_erase = erase_sector_jedec,
11285 }, {
11286 .eraseblocks = { {512 * 1024, 1} },
11287 .block_erase = erase_chip_block_jedec,
11288 }
11289 },
Sean Nelson35727f72010-01-28 23:55:12 +000011290 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011292 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011293 },
11294
Stefan Taunereb582572012-09-21 12:52:50 +000011295 {
11296 .vendor = "ST",
11297 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011298 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000011299 .manufacture_id = ST_ID,
11300 .model_id = ST_M29W512B,
11301 .total_size = 64,
11302 .page_size = 64 * 1024,
11303 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011304 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000011305 .probe = probe_jedec,
11306 .probe_timing = TIMING_ZERO,
11307 .block_erasers =
11308 {
11309 {
11310 .eraseblocks = { {64 * 1024, 1} },
11311 .block_erase = erase_chip_block_jedec,
11312 }
11313 },
11314 .write = write_jedec_1,
11315 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011316 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000011317 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000011318
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011319 {
11320 .vendor = "ST",
11321 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011322 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011323 .manufacture_id = ST_ID,
11324 .model_id = ST_M50FLW040A,
11325 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011326 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011327 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011328 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011329 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011330 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011331 .block_erasers =
11332 {
11333 {
Sean Nelson329bde72010-01-19 16:39:19 +000011334 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011335 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011336 {64 * 1024, 5}, /* block */
11337 {4 * 1024, 16}, /* sector */
11338 {4 * 1024, 16}, /* sector */
11339 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011340 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011341 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011342 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011343 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011344 }
11345 },
Sean Nelson28accc22010-03-19 18:47:06 +000011346 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011347 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011349 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011350 },
11351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011352 {
11353 .vendor = "ST",
11354 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011355 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011356 .manufacture_id = ST_ID,
11357 .model_id = ST_M50FLW040B,
11358 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011359 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011360 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011361 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011362 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011363 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011364 .block_erasers =
11365 {
11366 {
Sean Nelson329bde72010-01-19 16:39:19 +000011367 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011368 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011369 {4 * 1024, 16}, /* sector */
11370 {64 * 1024, 5}, /* block */
11371 {4 * 1024, 16}, /* sector */
11372 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011373 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011374 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011375 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011376 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011377 }
11378 },
Sean Nelson28accc22010-03-19 18:47:06 +000011379 .write = write_82802ab,
Stefan Tauner4404f732013-09-12 08:28:56 +000011380 .unlock = unlock_stm50_uniform,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011382 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011383 },
11384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011385 {
11386 .vendor = "ST",
11387 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011388 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011389 .manufacture_id = ST_ID,
11390 .model_id = ST_M50FLW080A,
11391 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011392 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011393 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011394 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011395 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011396 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011397 .block_erasers =
11398 {
11399 {
Sean Nelson329bde72010-01-19 16:39:19 +000011400 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011401 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011402 {64 * 1024, 13}, /* block */
11403 {4 * 1024, 16}, /* sector */
11404 {4 * 1024, 16}, /* sector */
11405 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011406 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011407 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011408 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011409 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011410 }
11411 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011412 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011413 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011415 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011416 },
11417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011418 {
11419 .vendor = "ST",
11420 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011421 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011422 .manufacture_id = ST_ID,
11423 .model_id = ST_M50FLW080B,
11424 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011425 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011426 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011427 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011428 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011429 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011430 .block_erasers =
11431 {
11432 {
Sean Nelson329bde72010-01-19 16:39:19 +000011433 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011434 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011435 {4 * 1024, 16}, /* sector */
11436 {64 * 1024, 13}, /* block */
11437 {4 * 1024, 16}, /* sector */
11438 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000011439 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000011440 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011441 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011442 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011443 }
11444 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011445 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011446 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011448 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011449 },
11450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011451 {
11452 .vendor = "ST",
11453 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011454 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011455 .manufacture_id = ST_ID,
11456 .model_id = ST_M50FW002,
11457 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000011458 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011459 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011460 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011461 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011462 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011463 .block_erasers =
11464 {
11465 {
11466 .eraseblocks = {
11467 {64 * 1024, 3},
11468 {32 * 1024, 1},
11469 {8 * 1024, 2},
11470 {16 * 1024, 1},
11471 },
Sean Nelson28accc22010-03-19 18:47:06 +000011472 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011473 }
11474 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011475 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011476 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011478 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011479 },
11480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011481 {
11482 .vendor = "ST",
11483 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011484 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011485 .manufacture_id = ST_ID,
11486 .model_id = ST_M50FW016,
11487 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011488 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011489 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011490 .tested = TEST_UNTESTED,
11491 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011492 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011493 .block_erasers =
11494 {
11495 {
11496 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011497 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011498 }
11499 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011500 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011501 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011503 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011504 },
11505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011506 {
11507 .vendor = "ST",
11508 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011509 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011510 .manufacture_id = ST_ID,
11511 .model_id = ST_M50FW040,
11512 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000011513 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011514 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011515 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011517 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011518 .block_erasers =
11519 {
11520 {
11521 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011522 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011523 }
11524 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011525 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011526 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011527 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011528 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011529 },
11530
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011531 {
11532 .vendor = "ST",
11533 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011534 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011535 .manufacture_id = ST_ID,
11536 .model_id = ST_M50FW080,
11537 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000011538 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011539 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011540 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011541 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011542 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011543 .block_erasers =
11544 {
11545 {
11546 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011547 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011548 }
11549 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011550 .unlock = unlock_stm50_uniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011551 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011552 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011553 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011554 },
11555
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011556 {
11557 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000011558 .name = "M50LPW080",
11559 .bustype = BUS_LPC, /* A/A Mux */
11560 .manufacture_id = ST_ID,
11561 .model_id = ST_M50LPW080,
11562 .total_size = 1024,
11563 .page_size = 0,
11564 .feature_bits = FEATURE_REGISTERMAP,
11565 .tested = TEST_UNTESTED,
11566 .probe = probe_82802ab,
11567 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11568 .block_erasers =
11569 {
11570 {
11571 .eraseblocks = { {64 * 1024, 16}, },
11572 .block_erase = erase_block_82802ab,
11573 }
11574 },
11575 .unlock = unlock_stm50_uniform,
11576 .write = write_82802ab,
11577 .read = read_memmapped,
11578 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
11579 },
11580
11581 {
11582 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011583 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011584 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011585 .manufacture_id = ST_ID,
11586 .model_id = ST_M50LPW116,
11587 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000011588 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011589 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011590 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011591 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011592 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011593 .block_erasers =
11594 {
11595 {
11596 .eraseblocks = {
11597 {4 * 1024, 16},
11598 {64 * 1024, 30},
11599 {32 * 1024, 1},
11600 {8 * 1024, 2},
11601 {16 * 1024, 1},
11602 },
Sean Nelson28accc22010-03-19 18:47:06 +000011603 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011604 }
11605 },
Stefan Tauner4404f732013-09-12 08:28:56 +000011606 .unlock = unlock_stm50_nonuniform,
Sean Nelson28accc22010-03-19 18:47:06 +000011607 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011609 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011610 },
11611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011612 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011613 .vendor = "SyncMOS/MoselVitelic",
11614 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011615 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011616 .manufacture_id = SYNCMOS_MVC_ID,
11617 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011618 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011619 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011620 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011621 .tested = TEST_UNTESTED,
11622 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011623 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011624 .block_erasers =
11625 {
11626 {
11627 .eraseblocks = { {512, 256} },
11628 .block_erase = erase_sector_jedec,
11629 }, {
11630 .eraseblocks = { {128 * 1024, 1} },
11631 .block_erase = erase_chip_block_jedec,
11632 },
11633 },
Sean Nelson35727f72010-01-28 23:55:12 +000011634 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011637 },
11638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011639 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011640 .vendor = "SyncMOS/MoselVitelic",
11641 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011642 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011643 .manufacture_id = SYNCMOS_MVC_ID,
11644 .model_id = SM_MVC_29C51001T,
11645 .total_size = 128,
11646 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011647 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011648 .tested = TEST_UNTESTED,
11649 .probe = probe_jedec,
11650 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11651 .block_erasers =
11652 {
11653 {
11654 .eraseblocks = { {512, 256} },
11655 .block_erase = erase_sector_jedec,
11656 }, {
11657 .eraseblocks = { {128 * 1024, 1} },
11658 .block_erase = erase_chip_block_jedec,
11659 },
11660 },
11661 .write = write_jedec_1,
11662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011663 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011664 },
11665
11666 {
11667 .vendor = "SyncMOS/MoselVitelic",
11668 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011669 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011670 .manufacture_id = SYNCMOS_MVC_ID,
11671 .model_id = SM_MVC_29C51002B,
11672 .total_size = 256,
11673 .page_size = 512,
11674 .feature_bits = FEATURE_EITHER_RESET,
11675 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011676 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011677 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011678 .block_erasers =
11679 {
11680 {
11681 .eraseblocks = { {512, 512} },
11682 .block_erase = erase_sector_jedec,
11683 }, {
11684 .eraseblocks = { {256 * 1024, 1} },
11685 .block_erase = erase_chip_block_jedec,
11686 },
11687 },
Sean Nelson35727f72010-01-28 23:55:12 +000011688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011689 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011690 },
11691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011692 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011693 .vendor = "SyncMOS/MoselVitelic",
11694 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011695 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011696 .manufacture_id = SYNCMOS_MVC_ID,
11697 .model_id = SM_MVC_29C51002T,
11698 .total_size = 256,
11699 .page_size = 512,
11700 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011701 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011702 .probe = probe_jedec,
11703 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11704 .block_erasers =
11705 {
11706 {
11707 .eraseblocks = { {512, 512} },
11708 .block_erase = erase_sector_jedec,
11709 }, {
11710 .eraseblocks = { {256 * 1024, 1} },
11711 .block_erase = erase_chip_block_jedec,
11712 },
11713 },
11714 .write = write_jedec_1,
11715 .read = read_memmapped,
11716 },
11717
11718 {
11719 .vendor = "SyncMOS/MoselVitelic",
11720 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011721 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011722 .manufacture_id = SYNCMOS_MVC_ID,
11723 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011724 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011725 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011726 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011727 .tested = TEST_UNTESTED,
11728 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011729 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011730 .block_erasers =
11731 {
11732 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011733 .eraseblocks = { {1024, 512} },
11734 .block_erase = erase_sector_jedec,
11735 }, {
11736 .eraseblocks = { {512 * 1024, 1} },
11737 .block_erase = erase_chip_block_jedec,
11738 },
11739 },
11740 .write = write_jedec_1,
11741 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011742 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011743 },
11744
11745 {
11746 .vendor = "SyncMOS/MoselVitelic",
11747 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011748 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011749 .manufacture_id = SYNCMOS_MVC_ID,
11750 .model_id = SM_MVC_29C51004T,
11751 .total_size = 512,
11752 .page_size = 1024,
11753 .feature_bits = FEATURE_EITHER_RESET,
11754 .tested = TEST_UNTESTED,
11755 .probe = probe_jedec,
11756 .probe_timing = TIMING_ZERO,
11757 .block_erasers =
11758 {
11759 {
11760 .eraseblocks = { {1024, 512} },
11761 .block_erase = erase_sector_jedec,
11762 }, {
11763 .eraseblocks = { {512 * 1024, 1} },
11764 .block_erase = erase_chip_block_jedec,
11765 },
11766 },
11767 .write = write_jedec_1,
11768 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011769 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011770 },
11771
11772 {
11773 .vendor = "SyncMOS/MoselVitelic",
11774 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011775 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011776 .manufacture_id = SYNCMOS_MVC_ID,
11777 .model_id = SM_MVC_29C31004B,
11778 .total_size = 512,
11779 .page_size = 1024,
11780 .feature_bits = FEATURE_EITHER_RESET,
11781 .tested = TEST_UNTESTED,
11782 .probe = probe_jedec,
11783 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11784 .block_erasers =
11785 {
11786 {
11787 .eraseblocks = { {1024, 512} },
11788 .block_erase = erase_sector_jedec,
11789 }, {
11790 .eraseblocks = { {512 * 1024, 1} },
11791 .block_erase = erase_chip_block_jedec,
11792 },
11793 },
11794 .write = write_jedec_1,
11795 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011796 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011797 },
11798
11799 {
11800 .vendor = "SyncMOS/MoselVitelic",
11801 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011802 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011803 .manufacture_id = SYNCMOS_MVC_ID,
11804 .model_id = SM_MVC_29C31004T,
11805 .total_size = 512,
11806 .page_size = 1024,
11807 .feature_bits = FEATURE_EITHER_RESET,
11808 .tested = TEST_UNTESTED,
11809 .probe = probe_jedec,
11810 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11811 .block_erasers =
11812 {
11813 {
11814 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011815 .block_erase = erase_sector_jedec,
11816 }, {
11817 .eraseblocks = { {512 * 1024, 1} },
11818 .block_erase = erase_chip_block_jedec,
11819 },
11820 },
Sean Nelson35727f72010-01-28 23:55:12 +000011821 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011823 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011824 },
11825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011826 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011827 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011828 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011829 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011830 .manufacture_id = TI_OLD_ID,
11831 .model_id = TI_TMS29F002RB,
11832 .total_size = 256,
11833 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011834 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011835 .tested = TEST_UNTESTED,
11836 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011837 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011838 .block_erasers =
11839 {
11840 {
11841 .eraseblocks = {
11842 {16 * 1024, 1},
11843 {8 * 1024, 2},
11844 {32 * 1024, 1},
11845 {64 * 1024, 3},
11846 },
11847 .block_erase = erase_sector_jedec,
11848 }, {
11849 .eraseblocks = { {256 * 1024, 1} },
11850 .block_erase = erase_chip_block_jedec,
11851 },
11852 },
Sean Nelson35727f72010-01-28 23:55:12 +000011853 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011855 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011856 },
11857
11858 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011859 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011860 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011861 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011862 .manufacture_id = TI_OLD_ID,
11863 .model_id = TI_TMS29F002RT,
11864 .total_size = 256,
11865 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011866 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011867 .tested = TEST_UNTESTED,
11868 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011870 .block_erasers =
11871 {
11872 {
11873 .eraseblocks = {
11874 {64 * 1024, 3},
11875 {32 * 1024, 1},
11876 {8 * 1024, 2},
11877 {16 * 1024, 1},
11878 },
11879 .block_erase = erase_sector_jedec,
11880 }, {
11881 .eraseblocks = { {256 * 1024, 1} },
11882 .block_erase = erase_chip_block_jedec,
11883 },
11884 },
Sean Nelson35727f72010-01-28 23:55:12 +000011885 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011886 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011887 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011888 },
11889
11890 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011891 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011892 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011893 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011894 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011895 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011896 .total_size = 1024,
11897 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011898 /* supports SFDP */
11899 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011900 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011901 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011902 .probe = probe_spi_rdid,
11903 .probe_timing = TIMING_ZERO,
11904 .block_erasers =
11905 {
11906 {
11907 .eraseblocks = { {4 * 1024, 256} },
11908 .block_erase = spi_block_erase_20,
11909 }, {
11910 .eraseblocks = { {32 * 1024, 32} },
11911 .block_erase = spi_block_erase_52,
11912 }, {
11913 .eraseblocks = { {64 * 1024, 16} },
11914 .block_erase = spi_block_erase_d8,
11915 }, {
11916 .eraseblocks = { {1024 * 1024, 1} },
11917 .block_erase = spi_block_erase_60,
11918 }, {
11919 .eraseblocks = { {1024 * 1024, 1} },
11920 .block_erase = spi_block_erase_c7,
11921 }
11922 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011923 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011924 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011925 .write = spi_chip_write_256,
11926 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011927 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011928 },
11929
11930 {
11931 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011932 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011933 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011934 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011935 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011936 .total_size = 2048,
11937 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011938 /* supports SFDP */
11939 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011941 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011942 .probe = probe_spi_rdid,
11943 .probe_timing = TIMING_ZERO,
11944 .block_erasers =
11945 {
11946 {
11947 .eraseblocks = { {4 * 1024, 512} },
11948 .block_erase = spi_block_erase_20,
11949 }, {
11950 .eraseblocks = { {32 * 1024, 64} },
11951 .block_erase = spi_block_erase_52,
11952 }, {
11953 .eraseblocks = { {64 * 1024, 32} },
11954 .block_erase = spi_block_erase_d8,
11955 }, {
11956 .eraseblocks = { {2 * 1024 * 1024, 1} },
11957 .block_erase = spi_block_erase_60,
11958 }, {
11959 .eraseblocks = { {2 * 1024 * 1024, 1} },
11960 .block_erase = spi_block_erase_c7,
11961 }
11962 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011963 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011964 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011965 .write = spi_chip_write_256,
11966 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011967 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011968 },
11969
11970 {
11971 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011972 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011973 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011974 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011975 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011976 .total_size = 4096,
11977 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011978 /* supports SFDP */
11979 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011980 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011981 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011982 .probe = probe_spi_rdid,
11983 .probe_timing = TIMING_ZERO,
11984 .block_erasers =
11985 {
11986 {
11987 .eraseblocks = { {4 * 1024, 1024} },
11988 .block_erase = spi_block_erase_20,
11989 }, {
11990 .eraseblocks = { {32 * 1024, 128} },
11991 .block_erase = spi_block_erase_52,
11992 }, {
11993 .eraseblocks = { {64 * 1024, 64} },
11994 .block_erase = spi_block_erase_d8,
11995 }, {
11996 .eraseblocks = { {4 * 1024 * 1024, 1} },
11997 .block_erase = spi_block_erase_60,
11998 }, {
11999 .eraseblocks = { {4 * 1024 * 1024, 1} },
12000 .block_erase = spi_block_erase_c7,
12001 }
12002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012004 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000012005 .write = spi_chip_write_256,
12006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012007 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000012008 },
12009
12010 {
12011 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012012 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012013 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000012014 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012015 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000012016 .total_size = 8192,
12017 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012018 /* supports SFDP */
12019 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012020 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000012021 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000012022 .probe = probe_spi_rdid,
12023 .probe_timing = TIMING_ZERO,
12024 .block_erasers =
12025 {
12026 {
12027 .eraseblocks = { {4 * 1024, 2048} },
12028 .block_erase = spi_block_erase_20,
12029 }, {
12030 .eraseblocks = { {32 * 1024, 256} },
12031 .block_erase = spi_block_erase_52,
12032 }, {
12033 .eraseblocks = { {64 * 1024, 128} },
12034 .block_erase = spi_block_erase_d8,
12035 }, {
12036 .eraseblocks = { {8 * 1024 * 1024, 1} },
12037 .block_erase = spi_block_erase_60,
12038 }, {
12039 .eraseblocks = { {8 * 1024 * 1024, 1} },
12040 .block_erase = spi_block_erase_c7,
12041 }
12042 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012044 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000012045 .write = spi_chip_write_256,
12046 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012047 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000012048 },
12049
12050 {
12051 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012052 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012053 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012054 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012055 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012056 .total_size = 16384,
12057 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012058 /* supports SFDP */
12059 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000012060 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012061 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012062 .probe = probe_spi_rdid,
12063 .probe_timing = TIMING_ZERO,
12064 .block_erasers =
12065 {
12066 {
12067 .eraseblocks = { {4 * 1024, 4096} },
12068 .block_erase = spi_block_erase_20,
12069 }, {
12070 .eraseblocks = { {32 * 1024, 512} },
12071 .block_erase = spi_block_erase_52,
12072 }, {
12073 .eraseblocks = { {64 * 1024, 256} },
12074 .block_erase = spi_block_erase_d8,
12075 }, {
12076 .eraseblocks = { {16 * 1024 * 1024, 1} },
12077 .block_erase = spi_block_erase_60,
12078 }, {
12079 .eraseblocks = { {16 * 1024 * 1024, 1} },
12080 .block_erase = spi_block_erase_c7,
12081 }
12082 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012083 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012084 .unlock = spi_disable_blockprotect,
12085 .write = spi_chip_write_256,
12086 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012087 .voltage = {2700, 3600},
12088 },
12089
12090 {
12091 .vendor = "Winbond",
12092 .name = "W25Q20.W",
12093 .bustype = BUS_SPI,
12094 .manufacture_id = WINBOND_NEX_ID,
12095 .model_id = WINBOND_NEX_W25Q20_W,
12096 .total_size = 256,
12097 .page_size = 256,
12098 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12099 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12100 .tested = TEST_UNTESTED,
12101 .probe = probe_spi_rdid,
12102 .probe_timing = TIMING_ZERO,
12103 .block_erasers =
12104 {
12105 {
12106 .eraseblocks = { {4 * 1024, 64} },
12107 .block_erase = spi_block_erase_20,
12108 }, {
12109 .eraseblocks = { {32 * 1024, 8} },
12110 .block_erase = spi_block_erase_52,
12111 }, {
12112 .eraseblocks = { {64 * 1024, 4} },
12113 .block_erase = spi_block_erase_d8,
12114 }, {
12115 .eraseblocks = { {256 * 1024, 1} },
12116 .block_erase = spi_block_erase_60,
12117 }, {
12118 .eraseblocks = { {256 * 1024, 1} },
12119 .block_erase = spi_block_erase_c7,
12120 }
12121 },
12122 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12123 .unlock = spi_disable_blockprotect,
12124 .write = spi_chip_write_256,
12125 .read = spi_chip_read,
12126 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12127 },
12128
12129 {
12130 .vendor = "Winbond",
12131 .name = "W25Q40.W",
12132 .bustype = BUS_SPI,
12133 .manufacture_id = WINBOND_NEX_ID,
12134 .model_id = WINBOND_NEX_W25Q40_W,
12135 .total_size = 512,
12136 .page_size = 256,
12137 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12138 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12139 .tested = TEST_UNTESTED,
12140 .probe = probe_spi_rdid,
12141 .probe_timing = TIMING_ZERO,
12142 .block_erasers =
12143 {
12144 {
12145 .eraseblocks = { {4 * 1024, 128} },
12146 .block_erase = spi_block_erase_20,
12147 }, {
12148 .eraseblocks = { {32 * 1024, 16} },
12149 .block_erase = spi_block_erase_52,
12150 }, {
12151 .eraseblocks = { {64 * 1024, 8} },
12152 .block_erase = spi_block_erase_d8,
12153 }, {
12154 .eraseblocks = { {512 * 1024, 1} },
12155 .block_erase = spi_block_erase_60,
12156 }, {
12157 .eraseblocks = { {512 * 1024, 1} },
12158 .block_erase = spi_block_erase_c7,
12159 }
12160 },
12161 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12162 .unlock = spi_disable_blockprotect,
12163 .write = spi_chip_write_256,
12164 .read = spi_chip_read,
12165 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12166 },
12167
12168 {
12169 .vendor = "Winbond",
12170 .name = "W25Q80.W",
12171 .bustype = BUS_SPI,
12172 .manufacture_id = WINBOND_NEX_ID,
12173 .model_id = WINBOND_NEX_W25Q80_W,
12174 .total_size = 1024,
12175 .page_size = 256,
12176 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12177 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12178 .tested = TEST_UNTESTED,
12179 .probe = probe_spi_rdid,
12180 .probe_timing = TIMING_ZERO,
12181 .block_erasers =
12182 {
12183 {
12184 .eraseblocks = { {4 * 1024, 256} },
12185 .block_erase = spi_block_erase_20,
12186 }, {
12187 .eraseblocks = { {32 * 1024, 32} },
12188 .block_erase = spi_block_erase_52,
12189 }, {
12190 .eraseblocks = { {64 * 1024, 16} },
12191 .block_erase = spi_block_erase_d8,
12192 }, {
12193 .eraseblocks = { {1 * 1024 * 1024, 1} },
12194 .block_erase = spi_block_erase_60,
12195 }, {
12196 .eraseblocks = { {1 * 1024 * 1024, 1} },
12197 .block_erase = spi_block_erase_c7,
12198 }
12199 },
12200 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12201 .unlock = spi_disable_blockprotect,
12202 .write = spi_chip_write_256,
12203 .read = spi_chip_read,
12204 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12205 },
12206
12207 {
12208 .vendor = "Winbond",
12209 .name = "W25Q16.W",
12210 .bustype = BUS_SPI,
12211 .manufacture_id = WINBOND_NEX_ID,
12212 .model_id = WINBOND_NEX_W25Q16_W,
12213 .total_size = 2048,
12214 .page_size = 256,
12215 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12216 /* QPI enable 0x38, disable 0xFF */
12217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12218 .tested = TEST_UNTESTED,
12219 .probe = probe_spi_rdid,
12220 .probe_timing = TIMING_ZERO,
12221 .block_erasers =
12222 {
12223 {
12224 .eraseblocks = { {4 * 1024, 512} },
12225 .block_erase = spi_block_erase_20,
12226 }, {
12227 .eraseblocks = { {32 * 1024, 64} },
12228 .block_erase = spi_block_erase_52,
12229 }, {
12230 .eraseblocks = { {64 * 1024, 32} },
12231 .block_erase = spi_block_erase_d8,
12232 }, {
12233 .eraseblocks = { {2 * 1024 * 1024, 1} },
12234 .block_erase = spi_block_erase_60,
12235 }, {
12236 .eraseblocks = { {2 * 1024 * 1024, 1} },
12237 .block_erase = spi_block_erase_c7,
12238 }
12239 },
12240 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12241 .unlock = spi_disable_blockprotect,
12242 .write = spi_chip_write_256,
12243 .read = spi_chip_read,
12244 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12245 },
12246
12247 {
12248 .vendor = "Winbond",
12249 .name = "W25Q32.W",
12250 .bustype = BUS_SPI,
12251 .manufacture_id = WINBOND_NEX_ID,
12252 .model_id = WINBOND_NEX_W25Q32_W,
12253 .total_size = 4096,
12254 .page_size = 256,
12255 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12256 /* QPI enable 0x38, disable 0xFF */
12257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
12258 .tested = TEST_OK_PREW,
12259 .probe = probe_spi_rdid,
12260 .probe_timing = TIMING_ZERO,
12261 .block_erasers =
12262 {
12263 {
12264 .eraseblocks = { {4 * 1024, 1024} },
12265 .block_erase = spi_block_erase_20,
12266 }, {
12267 .eraseblocks = { {32 * 1024, 128} },
12268 .block_erase = spi_block_erase_52,
12269 }, {
12270 .eraseblocks = { {64 * 1024, 64} },
12271 .block_erase = spi_block_erase_d8,
12272 }, {
12273 .eraseblocks = { {4 * 1024 * 1024, 1} },
12274 .block_erase = spi_block_erase_60,
12275 }, {
12276 .eraseblocks = { {4 * 1024 * 1024, 1} },
12277 .block_erase = spi_block_erase_c7,
12278 }
12279 },
12280 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12281 .unlock = spi_disable_blockprotect,
12282 .write = spi_chip_write_256,
12283 .read = spi_chip_read,
12284 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
12285 },
12286
12287 {
12288 .vendor = "Winbond",
12289 .name = "W25Q64.W",
12290 .bustype = BUS_SPI,
12291 .manufacture_id = WINBOND_NEX_ID,
12292 .model_id = WINBOND_NEX_W25Q64_W,
12293 .total_size = 8192,
12294 .page_size = 256,
12295 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
12296 /* QPI enable 0x38, disable 0xFF */
12297 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012298 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000012299 .probe = probe_spi_rdid,
12300 .probe_timing = TIMING_ZERO,
12301 .block_erasers =
12302 {
12303 {
12304 .eraseblocks = { {4 * 1024, 2048} },
12305 .block_erase = spi_block_erase_20,
12306 }, {
12307 .eraseblocks = { {32 * 1024, 256} },
12308 .block_erase = spi_block_erase_52,
12309 }, {
12310 .eraseblocks = { {64 * 1024, 128} },
12311 .block_erase = spi_block_erase_d8,
12312 }, {
12313 .eraseblocks = { {8 * 1024 * 1024, 1} },
12314 .block_erase = spi_block_erase_60,
12315 }, {
12316 .eraseblocks = { {8 * 1024 * 1024, 1} },
12317 .block_erase = spi_block_erase_c7,
12318 }
12319 },
12320 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12321 .unlock = spi_disable_blockprotect,
12322 .write = spi_chip_write_256,
12323 .read = spi_chip_read,
12324 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000012325 },
12326
12327 {
12328 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012329 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012330 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012331 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012332 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012333 .total_size = 128,
12334 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012335 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012336 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012337 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012338 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012339 .block_erasers =
12340 {
12341 {
12342 .eraseblocks = { {4 * 1024, 32} },
12343 .block_erase = spi_block_erase_20,
12344 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012345 .eraseblocks = { {64 * 1024, 2} },
12346 .block_erase = spi_block_erase_d8,
12347 }, {
12348 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012349 .block_erase = spi_block_erase_c7,
12350 }
12351 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012352 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012353 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012354 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012355 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012356 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012357 },
12358
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012359 {
12360 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012361 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012362 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012363 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012364 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012365 .total_size = 256,
12366 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012367 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012368 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012369 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012370 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012371 .block_erasers =
12372 {
12373 {
12374 .eraseblocks = { {4 * 1024, 64} },
12375 .block_erase = spi_block_erase_20,
12376 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012377 .eraseblocks = { {64 * 1024, 4} },
12378 .block_erase = spi_block_erase_d8,
12379 }, {
12380 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012381 .block_erase = spi_block_erase_c7,
12382 }
12383 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012384 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012385 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012386 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012387 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012388 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012389 },
12390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012391 {
12392 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012393 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012395 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012396 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012397 .total_size = 512,
12398 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012399 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012400 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012402 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012403 .block_erasers =
12404 {
12405 {
12406 .eraseblocks = { {4 * 1024, 128} },
12407 .block_erase = spi_block_erase_20,
12408 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012409 .eraseblocks = { {64 * 1024, 8} },
12410 .block_erase = spi_block_erase_d8,
12411 }, {
12412 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012413 .block_erase = spi_block_erase_c7,
12414 }
12415 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012416 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012417 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012418 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012419 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012420 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012421 },
12422
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012423 {
12424 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012425 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012426 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012427 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012428 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012429 .total_size = 1024,
12430 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012431 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012432 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012433 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012434 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012435 .block_erasers =
12436 {
12437 {
12438 .eraseblocks = { {4 * 1024, 256} },
12439 .block_erase = spi_block_erase_20,
12440 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012441 .eraseblocks = { {64 * 1024, 16} },
12442 .block_erase = spi_block_erase_d8,
12443 }, {
12444 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012445 .block_erase = spi_block_erase_c7,
12446 }
12447 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012448 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012449 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012450 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012451 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012452 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012453 },
12454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012455 {
12456 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012457 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012458 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012459 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012460 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012461 .total_size = 2048,
12462 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012463 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012464 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012465 .probe = probe_spi_rdid,
12466 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012467 .block_erasers =
12468 {
12469 {
12470 .eraseblocks = { {4 * 1024, 512} },
12471 .block_erase = spi_block_erase_20,
12472 }, {
12473 .eraseblocks = { {32 * 1024, 64} },
12474 .block_erase = spi_block_erase_52,
12475 }, {
12476 .eraseblocks = { {64 * 1024, 32} },
12477 .block_erase = spi_block_erase_d8,
12478 }, {
12479 .eraseblocks = { {2 * 1024 * 1024, 1} },
12480 .block_erase = spi_block_erase_60,
12481 }, {
12482 .eraseblocks = { {2 * 1024 * 1024, 1} },
12483 .block_erase = spi_block_erase_c7,
12484 }
12485 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012486 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012487 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012488 .write = spi_chip_write_256,
12489 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012490 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012491 },
12492
12493 {
12494 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012495 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012496 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012497 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012498 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012499 .total_size = 4096,
12500 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012501 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012502 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000012503 .probe = probe_spi_rdid,
12504 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012505 .block_erasers =
12506 {
12507 {
12508 .eraseblocks = { {4 * 1024, 1024} },
12509 .block_erase = spi_block_erase_20,
12510 }, {
12511 .eraseblocks = { {32 * 1024, 128} },
12512 .block_erase = spi_block_erase_52,
12513 }, {
12514 .eraseblocks = { {64 * 1024, 64} },
12515 .block_erase = spi_block_erase_d8,
12516 }, {
12517 .eraseblocks = { {4 * 1024 * 1024, 1} },
12518 .block_erase = spi_block_erase_60,
12519 }, {
12520 .eraseblocks = { {4 * 1024 * 1024, 1} },
12521 .block_erase = spi_block_erase_c7,
12522 }
12523 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012524 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012525 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012526 .write = spi_chip_write_256,
12527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012528 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012529 },
12530
12531 {
12532 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012533 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012534 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012535 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012536 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012537 .total_size = 8192,
12538 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012539 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012540 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012541 .probe = probe_spi_rdid,
12542 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012543 .block_erasers =
12544 {
12545 {
12546 .eraseblocks = { {4 * 1024, 2048} },
12547 .block_erase = spi_block_erase_20,
12548 }, {
12549 .eraseblocks = { {32 * 1024, 256} },
12550 .block_erase = spi_block_erase_52,
12551 }, {
12552 .eraseblocks = { {64 * 1024, 128} },
12553 .block_erase = spi_block_erase_d8,
12554 }, {
12555 .eraseblocks = { {8 * 1024 * 1024, 1} },
12556 .block_erase = spi_block_erase_60,
12557 }, {
12558 .eraseblocks = { {8 * 1024 * 1024, 1} },
12559 .block_erase = spi_block_erase_c7,
12560 }
12561 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012562 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012563 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012564 .write = spi_chip_write_256,
12565 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012566 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012567 },
12568
12569 {
12570 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012571 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012572 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012573 .manufacture_id = WINBOND_ID,
12574 .model_id = WINBOND_W29C010,
12575 .total_size = 128,
12576 .page_size = 128,
12577 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012578 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012579 .probe = probe_w29ee011,
12580 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12581 .block_erasers =
12582 {
12583 {
12584 .eraseblocks = { {128 * 1024, 1} },
12585 .block_erase = erase_chip_block_jedec,
12586 }
12587 },
12588 .write = write_jedec,
12589 .read = read_memmapped,
12590 },
12591
12592 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12593 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012594 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012595 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012596 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012597 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012598 .total_size = 128,
12599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012600 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012601 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012602 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012603 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012604 .block_erasers =
12605 {
12606 {
12607 .eraseblocks = { {128 * 1024, 1} },
12608 .block_erase = erase_chip_block_jedec,
12609 }
12610 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012611 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012612 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012613 },
12614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012615 {
12616 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012617 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012618 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012619 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012620 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012621 .total_size = 256,
12622 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012623 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012624 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012625 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012626 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012627 .block_erasers =
12628 {
12629 {
12630 .eraseblocks = { {256 * 1024, 1} },
12631 .block_erase = erase_chip_block_jedec,
12632 }
12633 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012634 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012637 },
12638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012639 {
12640 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012641 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012642 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012643 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012644 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012645 .total_size = 512,
12646 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012647 .feature_bits = FEATURE_LONG_RESET,
12648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012649 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012650 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012651 .block_erasers =
12652 {
12653 {
12654 .eraseblocks = { {512 * 1024, 1} },
12655 .block_erase = erase_chip_block_jedec,
12656 }
12657 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012658 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012659 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012660 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012661 },
12662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012663 {
12664 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012665 .name = "W39F010",
12666 .bustype = BUS_PARALLEL,
12667 .manufacture_id = WINBOND_ID,
12668 .model_id = WINBOND_W39F010,
12669 .total_size = 128,
12670 .page_size = 4 * 1024,
12671 .feature_bits = FEATURE_EITHER_RESET,
12672 .tested = TEST_OK_PREW,
12673 .probe = probe_jedec,
12674 .probe_timing = 10,
12675 .block_erasers =
12676 {
12677 {
12678 .eraseblocks = { {4 * 1024, 32} },
12679 .block_erase = erase_block_jedec,
12680 }, {
12681 .eraseblocks = { {128 * 1024, 1} },
12682 .block_erase = erase_chip_block_jedec,
12683 }
12684 },
12685 .printlock = printlock_w39f010,
12686 .write = write_jedec_1,
12687 .read = read_memmapped,
12688 .voltage = {4500, 5500},
12689 },
12690
12691 {
12692 .vendor = "Winbond",
12693 .name = "W39L010",
12694 .bustype = BUS_PARALLEL,
12695 .manufacture_id = WINBOND_ID,
12696 .model_id = WINBOND_W39L010,
12697 .total_size = 128,
12698 .page_size = 4 * 1024,
12699 .feature_bits = FEATURE_EITHER_RESET,
12700 .tested = TEST_UNTESTED,
12701 .probe = probe_jedec,
12702 .probe_timing = 10,
12703 .block_erasers =
12704 {
12705 {
12706 .eraseblocks = { {4 * 1024, 32} },
12707 .block_erase = erase_block_jedec,
12708 }, {
12709 .eraseblocks = { {128 * 1024, 1} },
12710 .block_erase = erase_chip_block_jedec,
12711 }
12712 },
12713 .printlock = printlock_w39l010,
12714 .write = write_jedec_1,
12715 .read = read_memmapped,
12716 .voltage = {3000, 3600},
12717 },
12718
12719 {
12720 .vendor = "Winbond",
12721 .name = "W39L020",
12722 .bustype = BUS_PARALLEL,
12723 .manufacture_id = WINBOND_ID,
12724 .model_id = WINBOND_W39L020,
12725 .total_size = 256,
12726 .page_size = 4 * 1024,
12727 .feature_bits = FEATURE_EITHER_RESET,
12728 .tested = TEST_UNTESTED,
12729 .probe = probe_jedec,
12730 .probe_timing = 10,
12731 .block_erasers =
12732 {
12733 {
12734 .eraseblocks = { {4 * 1024, 64} },
12735 .block_erase = erase_block_jedec,
12736 }, {
12737 .eraseblocks = { {64 * 1024, 4} },
12738 .block_erase = erase_sector_jedec,
12739 }, {
12740 .eraseblocks = { {256 * 1024, 1} },
12741 .block_erase = erase_chip_block_jedec,
12742 }
12743 },
12744 .printlock = printlock_w39l020,
12745 .write = write_jedec_1,
12746 .read = read_memmapped,
12747 .voltage = {3000, 3600},
12748 },
12749
12750 {
12751 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012752 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012753 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012754 .manufacture_id = WINBOND_ID,
12755 .model_id = WINBOND_W39L040,
12756 .total_size = 512,
12757 .page_size = 64 * 1024,
12758 .feature_bits = FEATURE_EITHER_RESET,
12759 .tested = TEST_OK_PR,
12760 .probe = probe_jedec,
12761 .probe_timing = 10,
12762 .block_erasers =
12763 {
12764 {
12765 .eraseblocks = { {4 * 1024, 128} },
12766 .block_erase = erase_block_jedec,
12767 }, {
12768 .eraseblocks = { {64 * 1024, 8} },
12769 .block_erase = erase_sector_jedec,
12770 }, {
12771 .eraseblocks = { {512 * 1024, 1} },
12772 .block_erase = erase_chip_block_jedec,
12773 }
12774 },
12775 .printlock = printlock_w39l040,
12776 .write = write_jedec_1,
12777 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012778 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012779 },
12780
12781 {
12782 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012783 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012784 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012785 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012786 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012787 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012788 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012789 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012790 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012791 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012792 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012793 .block_erasers =
12794 {
12795 {
12796 .eraseblocks = { {64 * 1024, 8} },
12797 .block_erase = erase_sector_jedec,
12798 }, {
12799 .eraseblocks = { {512 * 1024, 1} },
12800 .block_erase = erase_chip_block_jedec,
12801 }
12802 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012803 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012804 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012805 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012806 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012807 },
12808
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012809 {
12810 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012811 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012812 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012813 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012814 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012815 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012816 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012817 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012818 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012819 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012820 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012821 .block_erasers =
12822 {
12823 {
12824 .eraseblocks = { {64 * 1024, 8} },
12825 .block_erase = erase_sector_jedec,
12826 }, {
12827 .eraseblocks = { {512 * 1024, 1} },
12828 .block_erase = erase_chip_block_jedec,
12829 }
12830 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012831 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012832 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012834 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012835 },
12836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012837 {
12838 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012839 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012840 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012841 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012842 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012843 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012844 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012845 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012846 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012847 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012848 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012849 .block_erasers =
12850 {
12851 {
12852 .eraseblocks = { {64 * 1024, 8} },
12853 .block_erase = erase_sector_jedec,
12854 }, {
12855 .eraseblocks = { {512 * 1024, 1} },
12856 .block_erase = erase_chip_block_jedec,
12857 }
12858 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012859 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012860 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012862 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012863 },
12864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012865 {
12866 .vendor = "Winbond",
12867 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012868 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012869 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012870 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012871 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012872 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012873 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012874 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012875 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012876 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012877 .block_erasers =
12878 {
12879 {
12880 .eraseblocks = { {4 * 1024, 128} },
12881 .block_erase = erase_block_jedec,
12882 }, {
12883 .eraseblocks = { {64 * 1024, 8} },
12884 .block_erase = erase_sector_jedec,
12885 }, {
12886 .eraseblocks = { {512 * 1024, 1} },
12887 .block_erase = erase_chip_block_jedec,
12888 }
12889 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012890 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012891 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012892 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012893 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012894 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012895 },
12896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012897 {
12898 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012899 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012900 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012901 .manufacture_id = WINBOND_ID,
12902 .model_id = WINBOND_W39V040B,
12903 .total_size = 512,
12904 .page_size = 64 * 1024,
12905 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012906 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012907 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012908 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012909 .block_erasers =
12910 {
12911 {
12912 .eraseblocks = { {64 * 1024, 8} },
12913 .block_erase = erase_sector_jedec,
12914 }, {
12915 .eraseblocks = { {512 * 1024, 1} },
12916 .block_erase = erase_chip_block_jedec,
12917 }
12918 },
12919 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012920 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012921 .write = write_jedec_1,
12922 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012923 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012924 },
12925
12926 {
12927 .vendor = "Winbond",
12928 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012929 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012930 .manufacture_id = WINBOND_ID,
12931 .model_id = WINBOND_W39V040C,
12932 .total_size = 512,
12933 .page_size = 64 * 1024,
12934 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012935 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012936 .probe = probe_jedec,
12937 .probe_timing = 10,
12938 .block_erasers =
12939 {
12940 {
12941 .eraseblocks = { {64 * 1024, 8} },
12942 .block_erase = erase_sector_jedec,
12943 }, {
12944 .eraseblocks = { {512 * 1024, 1} },
12945 .block_erase = erase_chip_block_jedec,
12946 }
12947 },
12948 .printlock = printlock_w39v040fc,
12949 .write = write_jedec_1,
12950 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012951 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012952 },
12953
12954 {
12955 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012956 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012957 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012958 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012959 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012960 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012961 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012962 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012963 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012964 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012965 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012966 .block_erasers =
12967 {
12968 {
12969 .eraseblocks = { {64 * 1024, 16} },
12970 .block_erase = erase_sector_jedec,
12971 }, {
12972 .eraseblocks = { {1024 * 1024, 1} },
12973 .block_erase = erase_chip_block_jedec,
12974 }
12975 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012976 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012977 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012978 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012979 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012980 },
12981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012982 {
12983 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012984 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012985 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012986 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012987 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012988 .total_size = 256,
12989 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012990 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012992 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012993 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012994 .block_erasers =
12995 {
12996 {
12997 .eraseblocks = {
12998 {128 * 1024, 1},
12999 {96 * 1024, 1},
13000 {8 * 1024, 2},
13001 {16 * 1024, 1},
13002 },
13003 .block_erase = erase_sector_jedec,
13004 }, {
13005 .eraseblocks = { {256 * 1024, 1} },
13006 .block_erase = erase_chip_block_jedec,
13007 }
13008 },
Sean Nelson35727f72010-01-28 23:55:12 +000013009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013011 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013012 },
13013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013014 {
13015 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013016 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013017 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013018 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013019 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013020 .total_size = 256,
13021 .page_size = 128,
13022 .feature_bits = FEATURE_EITHER_RESET,
13023 .tested = TEST_OK_PROBE,
13024 .probe = probe_jedec,
13025 .probe_timing = 10,
13026 .block_erasers =
13027 {
13028 {
13029 .eraseblocks = { {256 * 1024, 1} },
13030 .block_erase = erase_chip_block_jedec,
13031 }
13032 },
13033 .write = write_jedec_1,
13034 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013035 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000013036 },
13037
13038 {
13039 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013040 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013041 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013042 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013043 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013044 .total_size = 256,
13045 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013046 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013047 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013048 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013049 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013050 .block_erasers =
13051 {
13052 {
13053 .eraseblocks = {
13054 {64 * 1024, 3},
13055 {32 * 1024, 1},
13056 {8 * 1024, 2},
13057 {16 * 1024, 1},
13058 },
13059 .block_erase = erase_sector_jedec,
13060 }, {
13061 .eraseblocks = { {256 * 1024, 1} },
13062 .block_erase = erase_chip_block_jedec,
13063 }
13064 },
Sean Nelson35727f72010-01-28 23:55:12 +000013065 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013067 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013068 },
13069
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013070 {
13071 .vendor = "Winbond",
13072 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013073 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013074 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013075 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013076 .total_size = 256,
13077 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013078 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013079 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013080 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013081 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013082 .block_erasers =
13083 {
13084 {
13085 .eraseblocks = {
13086 {64 * 1024, 3},
13087 {32 * 1024, 1},
13088 {8 * 1024, 2},
13089 {16 * 1024, 1},
13090 },
13091 .block_erase = erase_sector_jedec,
13092 }, {
13093 .eraseblocks = { {256 * 1024, 1} },
13094 .block_erase = erase_chip_block_jedec,
13095 }
13096 },
Sean Nelson35727f72010-01-28 23:55:12 +000013097 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013099 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013100 },
13101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013102 {
13103 .vendor = "Winbond",
13104 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013105 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013106 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013107 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013108 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000013109 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013110 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000013111 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013112 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013113 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013114 .block_erasers =
13115 {
13116 {
13117 .eraseblocks = { {64 * 1024, 16}, },
13118 .block_erase = erase_sector_jedec,
13119 }, {
13120 .eraseblocks = { {1024 * 1024, 1} },
13121 .block_erase = erase_chip_block_jedec,
13122 }
13123 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013124 .printlock = printlock_w39v080fa,
13125 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000013126 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013127 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013128 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013129 },
13130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013131 {
13132 .vendor = "Winbond",
13133 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013134 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013135 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013136 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013137 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000013138 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013139 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013140 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013141 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013142 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013143 .block_erasers =
13144 {
13145 {
13146 .eraseblocks = { {64 * 1024, 8}, },
13147 .block_erase = erase_sector_jedec,
13148 }, {
13149 .eraseblocks = { {512 * 1024, 1} },
13150 .block_erase = erase_chip_block_jedec,
13151 }
13152 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000013153 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000013154 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013155 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013156 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000013157 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013158
13159 {
13160 .vendor = "Unknown",
13161 .name = "SFDP-capable chip",
13162 .bustype = BUS_SPI,
13163 .manufacture_id = GENERIC_MANUF_ID,
13164 .model_id = SFDP_DEVICE_ID,
13165 /* We present our own "report this" text hence we do not
13166 * want the default "This flash part has status UNTESTED..."
13167 * text to be printed. */
13168 .tested = TEST_OK_PREW,
13169 .probe = probe_spi_sfdp,
13170 .unlock = spi_disable_blockprotect, /* is this safe? */
13171 .read = spi_chip_read,
13172 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000013173 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000013174 /* Everything below will be set by the probing function. */
13175 .write = NULL,
13176 .total_size = 0,
13177 .page_size = 0,
13178 .feature_bits = 0,
13179 .block_erasers = {},
13180 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013182 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000013183 .vendor = "Programmer",
13184 .name = "Opaque flash chip",
13185 .bustype = BUS_PROG,
13186 .manufacture_id = PROGMANUF_ID,
13187 .model_id = PROGDEV_ID,
13188 .total_size = 0,
13189 .page_size = 256,
13190 /* probe is assumed to work, rest will be filled in by probe */
13191 .tested = TEST_OK_PROBE,
13192 .probe = probe_opaque,
13193 /* eraseblock sizes will be set by the probing function */
13194 .block_erasers =
13195 {
13196 {
13197 .block_erase = erase_opaque,
13198 }
13199 },
13200 .write = write_opaque,
13201 .read = read_opaque,
13202 },
13203
13204 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013205 .vendor = "AMIC",
13206 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013207 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000013208 .manufacture_id = AMIC_ID,
13209 .model_id = GENERIC_DEVICE_ID,
13210 .total_size = 0,
13211 .page_size = 256,
13212 .tested = TEST_BAD_PREW,
13213 .probe = probe_spi_rdid4,
13214 .probe_timing = TIMING_ZERO,
13215 .write = NULL,
13216 .read = NULL,
13217 },
13218
13219 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013220 .vendor = "Atmel",
13221 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013222 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013223 .manufacture_id = ATMEL_ID,
13224 .model_id = GENERIC_DEVICE_ID,
13225 .total_size = 0,
13226 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013227 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013228 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013229 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013230 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013231 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013232 },
13233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013234 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000013235 .vendor = "Eon",
13236 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013237 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013238 .manufacture_id = EON_ID_NOPREFIX,
13239 .model_id = GENERIC_DEVICE_ID,
13240 .total_size = 0,
13241 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013242 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013243 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013244 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013245 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013246 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013247 },
13248
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013249 {
13250 .vendor = "Macronix",
13251 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013252 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013253 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013254 .model_id = GENERIC_DEVICE_ID,
13255 .total_size = 0,
13256 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013257 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013259 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013260 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013261 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013262 },
13263
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013264 {
13265 .vendor = "PMC",
13266 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013267 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013268 .manufacture_id = PMC_ID,
13269 .model_id = GENERIC_DEVICE_ID,
13270 .total_size = 0,
13271 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013272 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013273 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013274 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013275 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013276 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013277 },
13278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013279 {
13280 .vendor = "SST",
13281 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013282 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013283 .manufacture_id = SST_ID,
13284 .model_id = GENERIC_DEVICE_ID,
13285 .total_size = 0,
13286 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013287 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013288 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013289 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013290 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013291 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013292 },
13293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013294 {
13295 .vendor = "ST",
13296 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013297 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013298 .manufacture_id = ST_ID,
13299 .model_id = GENERIC_DEVICE_ID,
13300 .total_size = 0,
13301 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000013302 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013303 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013304 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013305 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013306 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000013307 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000013308
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013309 {
Sean Nelson118e1d62009-11-24 02:08:11 +000013310 .vendor = "Sanyo",
13311 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013312 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000013313 .manufacture_id = SANYO_ID,
13314 .model_id = GENERIC_DEVICE_ID,
13315 .total_size = 0,
13316 .page_size = 256,
13317 .tested = TEST_BAD_PREW,
13318 .probe = probe_spi_rdid,
13319 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000013320 .write = NULL,
13321 .read = NULL,
13322 },
13323
13324 {
Stefan Taunereb582572012-09-21 12:52:50 +000013325 .vendor = "Winbond",
13326 .name = "unknown Winbond (ex Nexcom) SPI chip",
13327 .bustype = BUS_SPI,
13328 .manufacture_id = WINBOND_NEX_ID,
13329 .model_id = GENERIC_DEVICE_ID,
13330 .total_size = 0,
13331 .page_size = 256,
13332 .tested = TEST_BAD_PREW,
13333 .probe = probe_spi_rdid,
13334 .probe_timing = TIMING_ZERO,
13335 .write = NULL,
13336 .read = NULL,
13337 },
13338
13339 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013340 .vendor = "Generic",
13341 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013342 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013343 .manufacture_id = GENERIC_MANUF_ID,
13344 .model_id = GENERIC_DEVICE_ID,
13345 .total_size = 0,
13346 .page_size = 256,
13347 .tested = TEST_BAD_PREW,
13348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013349 .write = NULL,
13350 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000013351
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013352 {
13353 .vendor = "Generic",
13354 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013355 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013356 .manufacture_id = GENERIC_MANUF_ID,
13357 .model_id = GENERIC_DEVICE_ID,
13358 .total_size = 0,
13359 .page_size = 256,
13360 .tested = TEST_BAD_PREW,
13361 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000013362 .write = NULL,
13363 },
13364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013365 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000013366};