blob: 565b8fc8b5a6ae03bc7eabf733c7dbc1ae7957d4 [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 Tauner12f3d512014-05-27 21:27:27 +0000567 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000601 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000636 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000671 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000706 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000741 .printlock = spi_prettyprint_status_register_bp1_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000781 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000816 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000851 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000889 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000927 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000959 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +0000991 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001023 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001055 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001087 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 Tauner12f3d512014-05-27 21:27:27 +00001119 .printlock = spi_prettyprint_status_register_bp2_srwd,
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 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001278 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001279 .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,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001385 .tested = TEST_OK_PR,
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 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001398 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001399 .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",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001712 .name = "AT25DL081",
1713 .bustype = BUS_SPI,
1714 .manufacture_id = ATMEL_ID,
1715 .model_id = ATMEL_AT25DF081,
1716 .total_size = 1024,
1717 .page_size = 256,
1718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 256} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 32} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 16} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {1 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {1 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
1743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1744 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1745 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1746 .voltage = {1650, 1950},
1747 },
1748
1749 {
1750 .vendor = "Atmel",
1751 .name = "AT25DL161",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25DL161,
1755 .total_size = 2048,
1756 .page_size = 256,
1757 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1759 .tested = TEST_UNTESTED,
1760 .probe = probe_spi_rdid,
1761 .probe_timing = TIMING_ZERO,
1762 .block_erasers =
1763 {
1764 {
1765 .eraseblocks = { {4 * 1024, 512} },
1766 .block_erase = spi_block_erase_20,
1767 }, {
1768 .eraseblocks = { {32 * 1024, 64} },
1769 .block_erase = spi_block_erase_52,
1770 }, {
1771 .eraseblocks = { {64 * 1024, 32} },
1772 .block_erase = spi_block_erase_d8,
1773 }, {
1774 .eraseblocks = { {2 * 1024 * 1024, 1} },
1775 .block_erase = spi_block_erase_60,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_c7,
1779 }
1780 },
1781 .printlock = spi_prettyprint_status_register_at25df_sec,
1782 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1783 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1784 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1785 .voltage = {1650, 1950},
1786 },
1787
1788 {
1789 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001790 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001792 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001793 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001794 .total_size = 2048,
1795 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001796 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001798 .tested = TEST_UNTESTED,
1799 .probe = probe_spi_rdid,
1800 .probe_timing = TIMING_ZERO,
1801 .block_erasers =
1802 {
1803 {
1804 .eraseblocks = { {4 * 1024, 512} },
1805 .block_erase = spi_block_erase_20,
1806 }, {
1807 .eraseblocks = { {32 * 1024, 64} },
1808 .block_erase = spi_block_erase_52,
1809 }, {
1810 .eraseblocks = { {64 * 1024, 32} },
1811 .block_erase = spi_block_erase_d8,
1812 }, {
1813 .eraseblocks = { {2 * 1024 * 1024, 1} },
1814 .block_erase = spi_block_erase_60,
1815 }, {
1816 .eraseblocks = { {2 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_c7,
1818 }
1819 },
1820 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001821 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001822 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001824 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001825 },
1826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001829 .name = "AT25F512",
1830 .bustype = BUS_SPI,
1831 .manufacture_id = ATMEL_ID,
1832 .model_id = ATMEL_AT25F512,
1833 .total_size = 64,
1834 .page_size = 256,
1835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001836 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001837 .probe = probe_spi_at25f,
1838 .probe_timing = TIMING_ZERO,
1839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {32 * 1024, 2} },
1843 .block_erase = spi_block_erase_52,
1844 }, {
1845 .eraseblocks = { {64 * 1024, 1} },
1846 .block_erase = spi_block_erase_62,
1847 }
1848 },
1849 .printlock = spi_prettyprint_status_register_at25f,
1850 .unlock = spi_disable_blockprotect_at25f,
1851 .write = spi_chip_write_256,
1852 .read = spi_chip_read,
1853 .voltage = {2700, 3600},
1854 },
1855
1856 {
1857 .vendor = "Atmel",
1858 .name = "AT25F512A",
1859 .bustype = BUS_SPI,
1860 .manufacture_id = ATMEL_ID,
1861 .model_id = ATMEL_AT25F512A,
1862 .total_size = 64,
1863 .page_size = 128,
1864 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001865 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001866 .probe = probe_spi_at25f,
1867 .probe_timing = TIMING_ZERO,
1868 .block_erasers =
1869 {
1870 {
1871 .eraseblocks = { {32 * 1024, 2} },
1872 .block_erase = spi_block_erase_52,
1873 }, {
1874 .eraseblocks = { {64 * 1024, 1} },
1875 .block_erase = spi_block_erase_62,
1876 }
1877 },
1878 .printlock = spi_prettyprint_status_register_at25f512a,
1879 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1880 .unlock = spi_disable_blockprotect_at25f512a,
1881 .write = spi_chip_write_256,
1882 .read = spi_chip_read,
1883 .voltage = {2700, 3600},
1884 },
1885
1886 {
1887 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001888 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 64,
1893 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001894 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001896 .tested = TEST_UNTESTED,
1897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001898 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {4 * 1024, 16} },
1903 .block_erase = spi_block_erase_20,
1904 }, {
1905 .eraseblocks = { {32 * 1024, 2} },
1906 .block_erase = spi_block_erase_52,
1907 }, {
1908 .eraseblocks = { {32 * 1024, 2} },
1909 .block_erase = spi_block_erase_d8,
1910 }, {
1911 .eraseblocks = { {64 * 1024, 1} },
1912 .block_erase = spi_block_erase_60,
1913 }, {
1914 .eraseblocks = { {64 * 1024, 1} },
1915 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001916 }, {
1917 .eraseblocks = { {64 * 1024, 1} },
1918 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001919 }
1920 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001921 .printlock = spi_prettyprint_status_register_at25f512b,
1922 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001926 },
1927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 {
1929 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001930 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1931 * All other properties seem to be the same.*/
1932 .name = "AT25F1024(A)",
1933 .bustype = BUS_SPI,
1934 .manufacture_id = ATMEL_ID,
1935 .model_id = ATMEL_AT25F1024,
1936 .total_size = 128,
1937 .page_size = 256,
1938 .feature_bits = FEATURE_WRSR_WREN,
1939 .tested = TEST_OK_PREW,
1940 .probe = probe_spi_at25f,
1941 .probe_timing = TIMING_ZERO,
1942 .block_erasers =
1943 {
1944 {
1945 .eraseblocks = { {32 * 1024, 4} },
1946 .block_erase = spi_block_erase_52,
1947 }, {
1948 .eraseblocks = { {128 * 1024, 1} },
1949 .block_erase = spi_block_erase_62,
1950 }
1951 },
1952 .printlock = spi_prettyprint_status_register_at25f,
1953 .unlock = spi_disable_blockprotect_at25f,
1954 .write = spi_chip_write_256,
1955 .read = spi_chip_read,
1956 .voltage = {2700, 3600},
1957 },
1958
1959 {
1960 .vendor = "Atmel",
1961 .name = "AT25F2048",
1962 .bustype = BUS_SPI,
1963 .manufacture_id = ATMEL_ID,
1964 .model_id = ATMEL_AT25F2048,
1965 .total_size = 256,
1966 .page_size = 256,
1967 .feature_bits = FEATURE_WRSR_WREN,
1968 .tested = TEST_UNTESTED,
1969 .probe = probe_spi_at25f,
1970 .probe_timing = TIMING_ZERO,
1971 .block_erasers =
1972 {
1973 {
1974 .eraseblocks = { {64 * 1024, 4} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {256 * 1024, 1} },
1978 .block_erase = spi_block_erase_62,
1979 }
1980 },
1981 .printlock = spi_prettyprint_status_register_at25f,
1982 .unlock = spi_disable_blockprotect_at25f,
1983 .write = spi_chip_write_256,
1984 .read = spi_chip_read,
1985 .voltage = {2700, 3600},
1986 },
1987
1988 {
1989 .vendor = "Atmel",
1990 .name = "AT25F4096",
1991 .bustype = BUS_SPI,
1992 .manufacture_id = ATMEL_ID,
1993 .model_id = ATMEL_AT25F4096,
1994 .total_size = 512,
1995 .page_size = 256,
1996 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00001997 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001998 .probe = probe_spi_at25f,
1999 .probe_timing = TIMING_ZERO,
2000 .block_erasers =
2001 {
2002 {
2003 .eraseblocks = { {64 * 1024, 8} },
2004 .block_erase = spi_block_erase_52,
2005 }, {
2006 .eraseblocks = { {512 * 1024, 1} },
2007 .block_erase = spi_block_erase_62,
2008 }
2009 },
2010 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002011 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2012 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002013 .write = spi_chip_write_256,
2014 .read = spi_chip_read,
2015 .voltage = {2700, 3600},
2016 },
2017
2018 {
2019 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002020 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002021 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002023 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .total_size = 128,
2025 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002026 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002029 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002030 .block_erasers =
2031 {
2032 {
2033 .eraseblocks = { {4 * 1024, 32} },
2034 .block_erase = spi_block_erase_20,
2035 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002036 .eraseblocks = { {4 * 1024, 32} },
2037 .block_erase = spi_block_erase_d7,
2038 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002039 .eraseblocks = { {32 * 1024, 4} },
2040 .block_erase = spi_block_erase_52,
2041 }, {
2042 .eraseblocks = { {32 * 1024, 4} },
2043 .block_erase = spi_block_erase_d8,
2044 }, {
2045 .eraseblocks = { {128 * 1024, 1} },
2046 .block_erase = spi_block_erase_60,
2047 }, {
2048 .eraseblocks = { {128 * 1024, 1} },
2049 .block_erase = spi_block_erase_c7,
2050 }
2051 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002052 .printlock = spi_prettyprint_status_register_at25fs010,
2053 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002054 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002056 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002057 },
2058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 {
2060 .vendor = "Atmel",
2061 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002062 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002063 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002064 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .total_size = 512,
2066 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002067 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .tested = TEST_UNTESTED,
2069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002070 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002071 .block_erasers =
2072 {
2073 {
2074 .eraseblocks = { {4 * 1024, 128} },
2075 .block_erase = spi_block_erase_20,
2076 }, {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 8} },
2081 .block_erase = spi_block_erase_d8,
2082 }, {
2083 .eraseblocks = { {512 * 1024, 1} },
2084 .block_erase = spi_block_erase_60,
2085 }, {
2086 .eraseblocks = { {512 * 1024, 1} },
2087 .block_erase = spi_block_erase_c7,
2088 }
2089 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002090 .printlock = spi_prettyprint_status_register_at25fs040,
2091 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002092 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002094 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002095 },
2096
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 {
2098 .vendor = "Atmel",
2099 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 512,
2104 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002105 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002106 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002108 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002109 .block_erasers =
2110 {
2111 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002112 .eraseblocks = { {256, 2048} },
2113 .block_erase = spi_block_erase_81,
2114 }, {
2115 .eraseblocks = { {2 * 1024, 256} },
2116 .block_erase = spi_block_erase_50,
2117 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002118 .eraseblocks = { {4 * 1024, 128} },
2119 .block_erase = spi_block_erase_20,
2120 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002121 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002122 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002123 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002124 .write = spi_chip_write_1,
2125 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002126 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002127 },
2128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 {
2130 .vendor = "Atmel",
2131 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002132 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002134 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .total_size = 1024,
2136 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002137 .feature_bits = FEATURE_WRSR_WREN,
2138 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002140 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002141 .block_erasers =
2142 {
2143 {
2144 .eraseblocks = { {4 * 1024, 256} },
2145 .block_erase = spi_block_erase_20,
2146 }, {
2147 .eraseblocks = { {32 * 1024, 32} },
2148 .block_erase = spi_block_erase_52,
2149 }, {
2150 .eraseblocks = { {64 * 1024, 16} },
2151 .block_erase = spi_block_erase_d8,
2152 }, {
2153 .eraseblocks = { {1024 * 1024, 1} },
2154 .block_erase = spi_block_erase_60,
2155 }, {
2156 .eraseblocks = { {1024 * 1024, 1} },
2157 .block_erase = spi_block_erase_c7,
2158 }
2159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002160 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002161 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002165 },
2166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 {
2168 .vendor = "Atmel",
2169 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002170 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002172 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .total_size = 2048,
2174 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002176 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002178 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002179 .block_erasers =
2180 {
2181 {
2182 .eraseblocks = { {4 * 1024, 512} },
2183 .block_erase = spi_block_erase_20,
2184 }, {
2185 .eraseblocks = { {32 * 1024, 64} },
2186 .block_erase = spi_block_erase_52,
2187 }, {
2188 .eraseblocks = { {64 * 1024, 32} },
2189 .block_erase = spi_block_erase_d8,
2190 }, {
2191 .eraseblocks = { {2 * 1024 * 1024, 1} },
2192 .block_erase = spi_block_erase_60,
2193 }, {
2194 .eraseblocks = { {2 * 1024 * 1024, 1} },
2195 .block_erase = spi_block_erase_c7,
2196 }
2197 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002198 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002199 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002200 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002202 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002203 },
2204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 {
2206 .vendor = "Atmel",
2207 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002208 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002209 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002210 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002211 .total_size = 2048,
2212 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002215 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002216 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002217 .block_erasers =
2218 {
2219 {
2220 .eraseblocks = { {4 * 1024, 512} },
2221 .block_erase = spi_block_erase_20,
2222 }, {
2223 .eraseblocks = { {32 * 1024, 64} },
2224 .block_erase = spi_block_erase_52,
2225 }, {
2226 .eraseblocks = { {64 * 1024, 32} },
2227 .block_erase = spi_block_erase_d8,
2228 }, {
2229 .eraseblocks = { {2 * 1024 * 1024, 1} },
2230 .block_erase = spi_block_erase_60,
2231 }, {
2232 .eraseblocks = { {2 * 1024 * 1024, 1} },
2233 .block_erase = spi_block_erase_c7,
2234 }
2235 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002236 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002237 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002238 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002239 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002241 },
2242
2243 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 /*{
2245 .vendor = "Atmel",
2246 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002249 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002250 .total_size = 4096,
2251 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002252 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .tested = TEST_UNTESTED,
2254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002255 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002256 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002257 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002258 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002259 .read = spi_chip_read,
2260 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002262 {
2263 .vendor = "Atmel",
2264 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002265 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002267 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .total_size = 512,
2269 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002270 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002271 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002273 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002274 .block_erasers =
2275 {
2276 {
2277 .eraseblocks = { {4 * 1024, 128} },
2278 .block_erase = spi_block_erase_20,
2279 }, {
2280 .eraseblocks = { {32 * 1024, 16} },
2281 .block_erase = spi_block_erase_52,
2282 }, {
2283 .eraseblocks = { {64 * 1024, 8} },
2284 .block_erase = spi_block_erase_d8,
2285 }, {
2286 .eraseblocks = { {512 * 1024, 1} },
2287 .block_erase = spi_block_erase_60,
2288 }, {
2289 .eraseblocks = { {512 * 1024, 1} },
2290 .block_erase = spi_block_erase_c7,
2291 }
2292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002294 .write = NULL /* Incompatible Page write */,
2295 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002296 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002297 },
2298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 {
2300 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002301 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002302 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002303 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002304 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002305 .total_size = 64,
2306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002307 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002308 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002309 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002310 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = { {64 * 1024, 1} },
2315 .block_erase = erase_chip_block_jedec,
2316 }
2317 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002318 .write = write_jedec,
2319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002320 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002321 },
2322
2323 {
2324 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002325 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002326 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002328 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002329 .total_size = 128,
2330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002332 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002333 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002334 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002335 .block_erasers =
2336 {
2337 {
2338 .eraseblocks = { {128 * 1024, 1} },
2339 .block_erase = erase_chip_block_jedec,
2340 }
2341 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002342 .write = write_jedec, /* FIXME */
2343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002344 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002345 },
2346
2347 {
2348 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002351 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002352 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .total_size = 256,
2354 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002355 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002357 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002358 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002359 .block_erasers =
2360 {
2361 {
2362 .eraseblocks = { {256 * 1024, 1} },
2363 .block_erase = erase_chip_block_jedec,
2364 }
2365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002369 },
2370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 {
2372 .vendor = "Atmel",
2373 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002379 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .tested = TEST_UNTESTED,
2381 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002382 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {512 * 1024, 1} },
2387 .block_erase = erase_chip_block_jedec,
2388 }
2389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002392 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002393 },
2394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002395 {
2396 .vendor = "Atmel",
2397 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002399 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002400 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002401 .total_size = 16896 /* No power of two sizes */,
2402 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002403 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002404 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2405 .feature_bits = FEATURE_OTP,
2406 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002408 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002409 .block_erasers =
2410 {
2411 {
2412 .eraseblocks = {
2413 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2414 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2415 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2416 },
2417 .block_erase = spi_erase_at45cs_sector,
2418 }
2419 },
2420 .printlock = spi_prettyprint_status_register_plain,
2421 .gran = write_gran_1056bytes,
2422 .write = spi_write_at45db,
2423 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002424 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002425 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002427 {
2428 .vendor = "Atmel",
2429 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002432 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002433 .total_size = 128 /* or 132, determined from status register */,
2434 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002435 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002436 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2437 .feature_bits = FEATURE_OTP,
2438 .tested = TEST_UNTESTED,
2439 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002440 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002441 .block_erasers =
2442 {
2443 {
2444 .eraseblocks = { {256, 512} },
2445 .block_erase = spi_erase_at45db_page,
2446 }, {
2447 .eraseblocks = { {8 * 256, 512/8} },
2448 .block_erase = spi_erase_at45db_block,
2449 }, {
2450 .eraseblocks = {
2451 {8 * 256, 1},
2452 {120 * 256, 1},
2453 {128 * 256, 3},
2454 },
2455 .block_erase = spi_erase_at45db_sector
2456 }, {
2457 .eraseblocks = { {128 * 1024, 1} },
2458 .block_erase = spi_erase_at45db_chip,
2459 }
2460 },
2461 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2462 .printlock = spi_prettyprint_status_register_at45db,
2463 /* granularity will be set by the probing function. */
2464 .write = spi_write_at45db,
2465 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002466 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002467 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 {
2470 .vendor = "Atmel",
2471 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002472 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002473 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002474 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002475 .total_size = 256 /* or 264, determined from status register */,
2476 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002477 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002478 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2479 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002480 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002481 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002482 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002483 .block_erasers =
2484 {
2485 {
2486 .eraseblocks = { {256, 1024} },
2487 .block_erase = spi_erase_at45db_page,
2488 }, {
2489 .eraseblocks = { {8 * 256, 1024/8} },
2490 .block_erase = spi_erase_at45db_block,
2491 }, {
2492 .eraseblocks = {
2493 {8 * 256, 1},
2494 {120 * 256, 1},
2495 {128 * 256, 7},
2496 },
2497 .block_erase = spi_erase_at45db_sector
2498 }, {
2499 .eraseblocks = { {256 * 1024, 1} },
2500 .block_erase = spi_erase_at45db_chip,
2501 }
2502 },
2503 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2504 .printlock = spi_prettyprint_status_register_at45db,
2505 /* granularity will be set by the probing function. */
2506 .write = spi_write_at45db,
2507 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002509 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002511 {
2512 .vendor = "Atmel",
2513 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002514 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002516 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 .total_size = 512 /* or 528, determined from status register */,
2518 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002519 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2521 .feature_bits = FEATURE_OTP,
2522 .tested = TEST_OK_PREW,
2523 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002524 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002525 .block_erasers =
2526 {
2527 {
2528 .eraseblocks = { {256, 2048} },
2529 .block_erase = spi_erase_at45db_page,
2530 }, {
2531 .eraseblocks = { {8 * 256, 2048/8} },
2532 .block_erase = spi_erase_at45db_block,
2533 }, {
2534 .eraseblocks = {
2535 {8 * 256, 1},
2536 {248 * 256, 1},
2537 {256 * 256, 7},
2538 },
2539 .block_erase = spi_erase_at45db_sector
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_erase_at45db_chip,
2543 }
2544 },
2545 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2546 .printlock = spi_prettyprint_status_register_at45db,
2547 /* granularity will be set by the probing function. */
2548 .write = spi_write_at45db,
2549 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2550 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002551 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 {
2554 .vendor = "Atmel",
2555 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002556 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002558 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 .total_size = 1024 /* or 1056, determined from status register */,
2560 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002561 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2563 .feature_bits = FEATURE_OTP,
2564 .tested = TEST_UNTESTED,
2565 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {256, 4096} },
2571 .block_erase = spi_erase_at45db_page,
2572 }, {
2573 .eraseblocks = { {8 * 256, 4096/8} },
2574 .block_erase = spi_erase_at45db_block,
2575 }, {
2576 .eraseblocks = {
2577 {8 * 256, 1},
2578 {248 * 256, 1},
2579 {256 * 256, 15},
2580 },
2581 .block_erase = spi_erase_at45db_sector
2582 }, {
2583 .eraseblocks = { {1024 * 1024, 1} },
2584 .block_erase = spi_erase_at45db_chip,
2585 }
2586 },
2587 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2588 .printlock = spi_prettyprint_status_register_at45db,
2589 /* granularity will be set by the probing function. */
2590 .write = spi_write_at45db,
2591 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002592 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002593 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 {
2596 .vendor = "Atmel",
2597 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 .total_size = 2048 /* or 2112, determined from status register */,
2602 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002603 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002604 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2605 .feature_bits = FEATURE_OTP,
2606 .tested = TEST_OK_PREW,
2607 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002608 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002609 .block_erasers =
2610 {
2611 {
2612 .eraseblocks = { {512, 4096} },
2613 .block_erase = spi_erase_at45db_page,
2614 }, {
2615 .eraseblocks = { {8 * 512, 4096/8} },
2616 .block_erase = spi_erase_at45db_block,
2617 }, {
2618 .eraseblocks = {
2619 {8 * 512, 1},
2620 {248 * 512, 1},
2621 {256 * 512, 15},
2622 },
2623 .block_erase = spi_erase_at45db_sector
2624 }, {
2625 .eraseblocks = { {2048 * 1024, 1} },
2626 .block_erase = spi_erase_at45db_chip,
2627 }
2628 },
2629 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2630 .printlock = spi_prettyprint_status_register_at45db,
2631 /* granularity will be set by the probing function. */
2632 .write = spi_write_at45db,
2633 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002634 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002635 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002637 {
2638 .vendor = "Atmel",
2639 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002640 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002641 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002642 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 .total_size = 4224 /* No power of two sizes */,
2644 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002645 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002646 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2647 .feature_bits = FEATURE_OTP,
2648 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002650 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002651 .block_erasers =
2652 {
2653 {
2654 .eraseblocks = { {528, 8192} },
2655 .block_erase = spi_erase_at45db_page,
2656 }, {
2657 .eraseblocks = { {8 * 528, 8192/8} },
2658 .block_erase = spi_erase_at45db_block,
2659 }, /* Although the datasheets describes sectors (which can be write protected)
2660 * there seems to be no erase functions for them.
2661 {
2662 .eraseblocks = {
2663 {8 * 528, 1},
2664 {120 * 528, 1},
2665 {128 * 528, 63},
2666 },
2667 .block_erase = spi_erase_at45db_sector
2668 }, */ {
2669 .eraseblocks = { {4224 * 1024, 1} },
2670 .block_erase = spi_erase_at45db_chip,
2671 }
2672 },
2673 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2674 .gran = write_gran_528bytes,
2675 .write = spi_write_at45db,
2676 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002678 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 {
2681 .vendor = "Atmel",
2682 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002683 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002686 .total_size = 4096 /* or 4224, determined from status register */,
2687 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002688 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002689 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002690 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 .tested = TEST_UNTESTED,
2692 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002693 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .block_erasers =
2695 {
2696 {
2697 .eraseblocks = { {512, 8192} },
2698 .block_erase = spi_erase_at45db_page,
2699 }, {
2700 .eraseblocks = { {8 * 512, 8192/8} },
2701 .block_erase = spi_erase_at45db_block,
2702 }, {
2703 .eraseblocks = {
2704 {8 * 512, 1},
2705 {120 * 512, 1},
2706 {128 * 512, 63},
2707 },
2708 .block_erase = spi_erase_at45db_sector
2709 }, {
2710 .eraseblocks = { {4096 * 1024, 1} },
2711 .block_erase = spi_erase_at45db_chip,
2712 }
2713 },
2714 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2715 .printlock = spi_prettyprint_status_register_at45db,
2716 /* granularity will be set by the probing function. */
2717 .write = spi_write_at45db,
2718 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2719 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2720 },
2721
2722 {
2723 .vendor = "Atmel",
2724 .name = "AT45DB321E",
2725 .bustype = BUS_SPI,
2726 .manufacture_id = ATMEL_ID,
2727 .model_id = ATMEL_AT45DB321C,
2728 .total_size = 4096 /* or 4224, determined from status register */,
2729 .page_size = 512 /* or 528, determined from status register */,
2730 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2731 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2732 .feature_bits = FEATURE_OTP,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_at45db,
2735 .probe_timing = TIMING_ZERO,
2736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = { {512, 8192} },
2740 .block_erase = spi_erase_at45db_page,
2741 }, {
2742 .eraseblocks = { {8 * 512, 8192/8} },
2743 .block_erase = spi_erase_at45db_block,
2744 }, {
2745 .eraseblocks = {
2746 {8 * 512, 1},
2747 {120 * 512, 1},
2748 {128 * 512, 63},
2749 },
2750 .block_erase = spi_erase_at45db_sector
2751 }, {
2752 .eraseblocks = { {4096 * 1024, 1} },
2753 .block_erase = spi_erase_at45db_chip,
2754 }
2755 },
2756 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2757 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2758 /* granularity will be set by the probing function. */
2759 .write = spi_write_at45db,
2760 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2761 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002762 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 {
2765 .vendor = "Atmel",
2766 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 .total_size = 8192 /* or 8448, determined from status register */,
2771 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
2776 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = { {1024, 8192} },
2782 .block_erase = spi_erase_at45db_page,
2783 }, {
2784 .eraseblocks = { {8 * 1024, 8192/8} },
2785 .block_erase = spi_erase_at45db_block,
2786 }, {
2787 .eraseblocks = {
2788 {8 * 1024, 1},
2789 {248 * 1024, 1},
2790 {256 * 1024, 31},
2791 },
2792 .block_erase = spi_erase_at45db_sector
2793 }, {
2794 .eraseblocks = { {8192 * 1024, 1} },
2795 .block_erase = spi_erase_at45db_chip,
2796 }
2797 },
2798 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2799 .printlock = spi_prettyprint_status_register_at45db,
2800 /* granularity will be set by the probing function. */
2801 .write = spi_write_at45db,
2802 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002803 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002804 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002806 {
2807 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002808 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002809 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002810 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002811 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002812 .total_size = 64,
2813 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002814 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002815 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002816 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {64 * 1024, 1} },
2822 .block_erase = erase_chip_block_jedec,
2823 }
2824 },
Sean Nelson35727f72010-01-28 23:55:12 +00002825 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002827 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002828 },
2829
2830 {
2831 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002832 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002834 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002835 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002836 .total_size = 256,
2837 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002838 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002839 .tested = TEST_UNTESTED,
2840 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002841 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002842 .block_erasers =
2843 {
2844 {
2845 .eraseblocks = {
2846 {16 * 1024, 1},
2847 {8 * 1024, 2},
2848 {96 * 1024, 1},
2849 {128 * 1024, 1},
2850 },
2851 .block_erase = erase_sector_jedec,
2852 }, {
2853 .eraseblocks = { {256 * 1024, 1} },
2854 .block_erase = erase_chip_block_jedec,
2855 }
2856 },
Sean Nelson35727f72010-01-28 23:55:12 +00002857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002859 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002860 },
2861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002862 {
2863 .vendor = "Atmel",
2864 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002866 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002867 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 .total_size = 256,
2869 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002870 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002871 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = {
2878 {128 * 1024, 1},
2879 {96 * 1024, 1},
2880 {8 * 1024, 2},
2881 {16 * 1024, 1},
2882 },
2883 .block_erase = erase_sector_jedec,
2884 }, {
2885 .eraseblocks = { {256 * 1024, 1} },
2886 .block_erase = erase_chip_block_jedec,
2887 }
2888 },
Sean Nelson35727f72010-01-28 23:55:12 +00002889 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002890 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002891 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002892 },
2893
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002894 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002895 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002896 .name = "AT49(H)F010",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F010,
2900 .total_size = 128,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_OK_PREW,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {128 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 },
2913 .printlock = printlock_at49f,
2914 .write = write_jedec_1,
2915 .read = read_memmapped,
2916 .voltage = {4500, 5500},
2917 },
2918
2919 {
2920 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002921 .name = "AT49F020",
2922 .bustype = BUS_PARALLEL,
2923 .manufacture_id = ATMEL_ID,
2924 .model_id = ATMEL_AT49F020,
2925 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002926 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002927 .feature_bits = FEATURE_EITHER_RESET,
2928 .tested = TEST_OK_PRE,
2929 .probe = probe_jedec,
2930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2931 .block_erasers =
2932 {
2933 {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 /* Chip features an optional permanent write protection
2938 * of the first 8 kB. The erase function is the same as
2939 * above, but 00000H to 01FFFH will not be erased.
2940 * FIXME: add another eraser when partial erasers are
2941 * supported.
2942 */
2943 },
2944 .printlock = printlock_at49f,
2945 .write = write_jedec_1,
2946 .read = read_memmapped,
2947 .voltage = {4500, 5500},
2948 },
2949
2950 {
2951 .vendor = "Atmel",
2952 .name = "AT49F040",
2953 .bustype = BUS_PARALLEL,
2954 .manufacture_id = ATMEL_ID,
2955 .model_id = ATMEL_AT49F040,
2956 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002957 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002958 .feature_bits = FEATURE_EITHER_RESET,
2959 .tested = TEST_UNTESTED,
2960 .probe = probe_jedec,
2961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2962 .block_erasers =
2963 {
2964 {
2965 .eraseblocks = { {512 * 1024, 1} },
2966 .block_erase = erase_chip_block_jedec,
2967 }
2968 /* Chip features an optional permanent write protection
2969 * of the first 16 kB. The erase function is the same as
2970 * above, but 00000H to 03FFFH will not be erased.
2971 * FIXME: add another eraser when partial erasers are
2972 * supported.
2973 */
2974 },
2975 .printlock = printlock_at49f,
2976 .write = write_jedec_1,
2977 .read = read_memmapped,
2978 .voltage = {4500, 5500},
2979 },
2980
2981 {
2982 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002983 .name = "AT49F080",
2984 .bustype = BUS_PARALLEL,
2985 .manufacture_id = ATMEL_ID,
2986 .model_id = ATMEL_AT49F080,
2987 .total_size = 1024,
2988 .page_size = 0, /* unused */
2989 .feature_bits = FEATURE_EITHER_RESET,
2990 .tested = TEST_UNTESTED,
2991 .probe = probe_jedec,
2992 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2993 .block_erasers =
2994 {
2995 {
2996 .eraseblocks = { {1024 * 1024, 1} },
2997 .block_erase = erase_chip_block_jedec,
2998 }
2999 /* Chip features an optional permanent write protection
3000 * of the first 16 kB. The erase function is the same as
3001 * above, but 00000H to 03FFFH will not be erased.
3002 * FIXME: add another eraser when partial erasers are
3003 * supported.
3004 */
3005 },
3006 .printlock = printlock_at49f,
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
3009 .voltage = {4500, 5500},
3010 },
3011
3012 {
3013 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3014 .vendor = "Atmel",
3015 .name = "AT49F080T",
3016 .bustype = BUS_PARALLEL,
3017 .manufacture_id = ATMEL_ID,
3018 .model_id = ATMEL_AT49F080T,
3019 .total_size = 1024,
3020 .page_size = 0, /* unused */
3021 .feature_bits = FEATURE_EITHER_RESET,
3022 .tested = TEST_UNTESTED,
3023 .probe = probe_jedec,
3024 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3025 .block_erasers =
3026 {
3027 {
3028 .eraseblocks = { {1024 * 1024, 1} },
3029 .block_erase = erase_chip_block_jedec,
3030 }
3031 /* Chip features an optional permanent write protection
3032 * of the first 16 kB. The erase function is the same as
3033 * above, but FC000H to FFFFFH will not be erased.
3034 * FIXME: add another eraser when partial erasers are
3035 * supported.
3036 */
3037 },
3038 .printlock = printlock_at49f,
3039 .write = write_jedec_1,
3040 .read = read_memmapped,
3041 .voltage = {4500, 5500},
3042 },
3043
3044 {
3045 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003046 .name = "AT49LH002",
3047 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3048 .manufacture_id = ATMEL_ID,
3049 .model_id = ATMEL_AT49LH002,
3050 .total_size = 256,
3051 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003052 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003053 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003054 .probe = probe_82802ab,
3055 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = {
3060 {64 * 1024, 3},
3061 {32 * 1024, 1},
3062 {8 * 1024, 2},
3063 {16 * 1024, 1},
3064 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003065 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003066 }, {
3067 .eraseblocks = {
3068 {64 * 1024, 4},
3069 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003070 .block_erase = erase_block_82802ab,
3071 },
3072 },
3073 .printlock = printlock_regspace2_block_eraser_0,
3074 .unlock = unlock_regspace2_block_eraser_0,
3075 .write = write_82802ab,
3076 .read = read_memmapped,
3077 .voltage = {3000, 3600},
3078 },
3079
3080 {
3081 .vendor = "Atmel",
3082 .name = "AT49LH00B4",
3083 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3084 .manufacture_id = ATMEL_ID,
3085 .model_id = ATMEL_AT49LH00B4,
3086 .total_size = 512,
3087 .page_size = 0, /* unused */
3088 .feature_bits = FEATURE_REGISTERMAP,
3089 .tested = TEST_UNTESTED,
3090 .probe = probe_82802ab,
3091 .probe_timing = TIMING_ZERO,
3092 .block_erasers =
3093 {
3094 {
3095 .eraseblocks = {
3096 {8 * 1024, 2},
3097 {16 * 1024, 1},
3098 {32 * 1024, 1},
3099 {64 * 1024, 7},
3100 },
3101 .block_erase = NULL, /* TODO: Implement. */
3102 }, {
3103 .eraseblocks = {
3104 {64 * 1024, 8},
3105 },
3106 .block_erase = erase_block_82802ab,
3107 },
3108 },
3109 .printlock = printlock_regspace2_block_eraser_0,
3110 .unlock = unlock_regspace2_block_eraser_0,
3111 .write = write_82802ab,
3112 .read = read_memmapped,
3113 .voltage = {3000, 3600},
3114 },
3115
3116 {
3117 .vendor = "Atmel",
3118 .name = "AT49LH004",
3119 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3120 .manufacture_id = ATMEL_ID,
3121 .model_id = ATMEL_AT49LH004,
3122 .total_size = 512,
3123 .page_size = 0, /* unused */
3124 .feature_bits = FEATURE_REGISTERMAP,
3125 .tested = TEST_UNTESTED,
3126 .probe = probe_82802ab,
3127 .probe_timing = TIMING_ZERO,
3128 .block_erasers =
3129 {
3130 {
3131 .eraseblocks = {
3132 {64 * 1024, 7},
3133 {32 * 1024, 1},
3134 {8 * 1024, 2},
3135 {16 * 1024, 1},
3136 },
3137 .block_erase = erase_block_82802ab,
3138 }, {
3139 .eraseblocks = {
3140 {64 * 1024, 8},
3141 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003142 .block_erase = NULL, /* TODO: Implement. */
3143 },
3144 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003145 .printlock = printlock_regspace2_block_eraser_0,
3146 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 .write = write_82802ab,
3148 .read = read_memmapped,
3149 .voltage = {3000, 3600},
3150 },
3151
3152 {
Andrew Morganca081462011-09-13 22:05:44 +00003153 .vendor = "Catalyst",
3154 .name = "CAT28F512",
3155 .bustype = BUS_PARALLEL,
3156 .manufacture_id = CATALYST_ID,
3157 .model_id = CATALYST_CAT28F512,
3158 .total_size = 64,
3159 .page_size = 0, /* unused */
3160 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003161 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003162 .probe = probe_jedec, /* FIXME! */
3163 .probe_timing = TIMING_ZERO,
3164 .block_erasers =
3165 {
3166 {
3167 .eraseblocks = { {64 * 1024, 1} },
3168 .block_erase = NULL, /* TODO */
3169 },
3170 },
3171 .write = NULL, /* TODO */
3172 .read = read_memmapped,
3173 .voltage = {4500, 5500},
3174 },
3175
3176 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003177 .vendor = "Bright",
3178 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003179 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003180 .manufacture_id = BRIGHT_ID,
3181 .model_id = BRIGHT_BM29F040,
3182 .total_size = 512,
3183 .page_size = 64 * 1024,
3184 .feature_bits = FEATURE_EITHER_RESET,
3185 .tested = TEST_OK_PR,
3186 .probe = probe_jedec,
3187 .probe_timing = TIMING_ZERO,
3188 .block_erasers =
3189 {
3190 {
3191 .eraseblocks = { {64 * 1024, 8} },
3192 .block_erase = erase_sector_jedec,
3193 }, {
3194 .eraseblocks = { {512 * 1024, 1} },
3195 .block_erase = erase_chip_block_jedec,
3196 },
3197 },
3198 .write = write_jedec_1,
3199 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003200 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003201 },
3202
3203 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003204 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003205 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003206 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003207 .manufacture_id = ESMT_ID,
3208 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003209 .total_size = 256,
3210 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003211 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003212 .tested = TEST_UNTESTED,
3213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003215 .block_erasers =
3216 {
3217 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003218 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003219 {128 * 1024, 1},
3220 {96 * 1024, 1},
3221 {8 * 1024, 2},
3222 {16 * 1024, 1},
3223 },
3224 .block_erase = erase_sector_jedec,
3225 }, {
3226 .eraseblocks = { {256 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 }
3229 },
Sean Nelson35727f72010-01-28 23:55:12 +00003230 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003233 },
3234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003235 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003236 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003237 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003238 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003239 .manufacture_id = ESMT_ID,
3240 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003241 .total_size = 1024,
3242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003243 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003244 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003245 .probe = probe_spi_rdid,
3246 .probe_timing = TIMING_ZERO,
3247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = { {4 * 1024, 256} },
3251 .block_erase = spi_block_erase_20,
3252 }, {
3253 .eraseblocks = { {64 * 1024, 16} },
3254 .block_erase = spi_block_erase_d8,
3255 }, {
3256 .eraseblocks = { {1024 * 1024, 1} },
3257 .block_erase = spi_block_erase_60,
3258 }, {
3259 .eraseblocks = { {1024 * 1024, 1} },
3260 .block_erase = spi_block_erase_c7,
3261 }
3262 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003263 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003264 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003265 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003266 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003267 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003268 },
3269
3270 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003271 .vendor = "ESMT",
3272 .name = "F25L32PA",
3273 .bustype = BUS_SPI,
3274 .manufacture_id = ESMT_ID,
3275 .model_id = ESMT_F25L32PA,
3276 .total_size = 4096,
3277 .page_size = 256,
3278 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3279 .tested = TEST_UNTESTED,
3280 .probe = probe_spi_rdid,
3281 .probe_timing = TIMING_ZERO,
3282 .block_erasers =
3283 {
3284 {
3285 .eraseblocks = { {4 * 1024, 1024} },
3286 .block_erase = spi_block_erase_20,
3287 }, {
3288 .eraseblocks = { {64 * 1024, 64} },
3289 .block_erase = spi_block_erase_d8,
3290 }, {
3291 .eraseblocks = { {4 * 1024 * 1024, 1} },
3292 .block_erase = spi_block_erase_60,
3293 }, {
3294 .eraseblocks = { {4 * 1024 * 1024, 1} },
3295 .block_erase = spi_block_erase_c7,
3296 }
3297 },
3298 .printlock = spi_prettyprint_status_register_bp2_bpl,
3299 .unlock = spi_disable_blockprotect,
3300 .write = spi_chip_write_256,
3301 .read = spi_chip_read,
3302 .voltage = {2700, 3600},
3303 },
3304
3305 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003306 .vendor = "Eon",
3307 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003308 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003309 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003310 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003311 .total_size = 64,
3312 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003313 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003314 .tested = TEST_UNTESTED,
3315 .probe = probe_spi_rdid,
3316 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003317 .block_erasers =
3318 {
3319 {
3320 .eraseblocks = {
3321 {4 * 1024, 2},
3322 {8 * 1024, 1},
3323 {16 * 1024, 1},
3324 {32 * 1024, 1},
3325 },
3326 .block_erase = spi_block_erase_d8,
3327 }, {
3328 .eraseblocks = { {64 * 1024, 1} },
3329 .block_erase = spi_block_erase_c7,
3330 }
3331 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003333 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003334 .write = spi_chip_write_256,
3335 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003336 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003337 },
3338
3339 {
3340 .vendor = "Eon",
3341 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003342 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003343 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003344 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003345 .total_size = 64,
3346 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003347 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003348 .tested = TEST_UNTESTED,
3349 .probe = probe_spi_rdid,
3350 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003351 .block_erasers =
3352 {
3353 {
3354 .eraseblocks = {
3355 {32 * 1024, 1},
3356 {16 * 1024, 1},
3357 {8 * 1024, 1},
3358 {4 * 1024, 2},
3359 },
3360 .block_erase = spi_block_erase_d8,
3361 }, {
3362 .eraseblocks = { {64 * 1024, 1} },
3363 .block_erase = spi_block_erase_c7,
3364 }
3365 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003367 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003368 .write = spi_chip_write_256,
3369 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003370 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003371 },
3372
3373 {
3374 .vendor = "Eon",
3375 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003376 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003377 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003378 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003379 .total_size = 128,
3380 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003381 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003382 .tested = TEST_UNTESTED,
3383 .probe = probe_spi_rdid,
3384 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {4 * 1024, 2},
3390 {8 * 1024, 1},
3391 {16 * 1024, 1},
3392 {32 * 1024, 3},
3393 },
3394 .block_erase = spi_block_erase_d8,
3395 }, {
3396 .eraseblocks = { {128 * 1024, 1} },
3397 .block_erase = spi_block_erase_c7,
3398 }
3399 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003400 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003401 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003402 .write = spi_chip_write_256,
3403 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003404 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003405 },
3406
3407 {
3408 .vendor = "Eon",
3409 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003410 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003411 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003412 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003413 .total_size = 128,
3414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003415 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003416 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003417 .probe = probe_spi_rdid,
3418 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003419 .block_erasers =
3420 {
3421 {
3422 .eraseblocks = {
3423 {32 * 1024, 3},
3424 {16 * 1024, 1},
3425 {8 * 1024, 1},
3426 {4 * 1024, 2},
3427 },
3428 .block_erase = spi_block_erase_d8,
3429 }, {
3430 .eraseblocks = { {128 * 1024, 1} },
3431 .block_erase = spi_block_erase_c7,
3432 }
3433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003435 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003436 .write = spi_chip_write_256,
3437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003438 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003439 },
3440
3441 {
3442 .vendor = "Eon",
3443 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003444 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003445 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003446 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003447 .total_size = 256,
3448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003449 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003450 .tested = TEST_UNTESTED,
3451 .probe = probe_spi_rdid,
3452 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003453 .block_erasers =
3454 {
3455 {
3456 .eraseblocks = {
3457 {4 * 1024, 2},
3458 {8 * 1024, 1},
3459 {16 * 1024, 1},
3460 {32 * 1024, 1},
3461 {64 * 1024, 3}
3462 },
3463 .block_erase = spi_block_erase_d8,
3464 }, {
3465 .eraseblocks = { {256 * 1024, 1} },
3466 .block_erase = spi_block_erase_c7,
3467 }
3468 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003469 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003470 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003471 .write = spi_chip_write_256,
3472 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003473 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003474 },
3475
3476 {
3477 .vendor = "Eon",
3478 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003479 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003480 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003481 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003482 .total_size = 256,
3483 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003484 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003485 .tested = TEST_UNTESTED,
3486 .probe = probe_spi_rdid,
3487 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003488 .block_erasers =
3489 {
3490 {
3491 .eraseblocks = {
3492 {64 * 1024, 3},
3493 {32 * 1024, 1},
3494 {16 * 1024, 1},
3495 {8 * 1024, 1},
3496 {4 * 1024, 2},
3497 },
3498 .block_erase = spi_block_erase_d8,
3499 }, {
3500 .eraseblocks = { {256 * 1024, 1} },
3501 .block_erase = spi_block_erase_c7,
3502 }
3503 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003504 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003505 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003506 .write = spi_chip_write_256,
3507 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003508 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003509 },
3510
3511 {
3512 .vendor = "Eon",
3513 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003514 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003515 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003516 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003517 .total_size = 512,
3518 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003519 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003520 .tested = TEST_UNTESTED,
3521 .probe = probe_spi_rdid,
3522 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003523 .block_erasers =
3524 {
3525 {
3526 .eraseblocks = {
3527 {4 * 1024, 2},
3528 {8 * 1024, 1},
3529 {16 * 1024, 1},
3530 {32 * 1024, 1},
3531 {64 * 1024, 7}
3532 },
3533 .block_erase = spi_block_erase_d8,
3534 }, {
3535 .eraseblocks = { {512 * 1024, 1} },
3536 .block_erase = spi_block_erase_c7,
3537 }
3538 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003540 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003541 .write = spi_chip_write_256,
3542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003543 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003544 },
3545
3546 {
3547 .vendor = "Eon",
3548 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003549 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003550 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003551 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003552 .total_size = 512,
3553 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003554 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003555 .tested = TEST_UNTESTED,
3556 .probe = probe_spi_rdid,
3557 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003558 .block_erasers =
3559 {
3560 {
3561 .eraseblocks = {
3562 {64 * 1024, 7},
3563 {32 * 1024, 1},
3564 {16 * 1024, 1},
3565 {8 * 1024, 1},
3566 {4 * 1024, 2},
3567 },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {512 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003575 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003576 .write = spi_chip_write_256,
3577 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 1024,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 15}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
3612 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 1024,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 15},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {1024 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
3647 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003648 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003654 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003655 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003656 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003657 .total_size = 2048,
3658 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003659 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = {
3667 {4 * 1024, 2},
3668 {8 * 1024, 1},
3669 {16 * 1024, 1},
3670 {32 * 1024, 1},
3671 {64 * 1024, 31},
3672 },
3673 .block_erase = spi_block_erase_d8,
3674 }, {
3675 .eraseblocks = { {2 * 1024 * 1024, 1} },
3676 .block_erase = spi_block_erase_c7,
3677 }
3678 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003680 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003681 .write = spi_chip_write_256,
3682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003683 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003684 },
3685
3686 {
3687 .vendor = "Eon",
3688 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003689 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003690 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003691 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .total_size = 2048,
3693 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003694 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003695 .tested = TEST_UNTESTED,
3696 .probe = probe_spi_rdid,
3697 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003698 .block_erasers =
3699 {
3700 {
3701 .eraseblocks = {
3702 {64 * 1024, 31},
3703 {32 * 1024, 1},
3704 {16 * 1024, 1},
3705 {8 * 1024, 1},
3706 {4 * 1024, 2},
3707 },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {2 * 1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_c7,
3712 }
3713 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003714 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003715 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .write = spi_chip_write_256,
3717 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003718 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003719 },
3720
3721 {
3722 .vendor = "Eon",
3723 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003724 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003725 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003726 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003727 .total_size = 4096,
3728 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003729 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003730 .tested = TEST_UNTESTED,
3731 .probe = probe_spi_rdid,
3732 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003733 .block_erasers =
3734 {
3735 {
3736 .eraseblocks = {
3737 {4 * 1024, 2},
3738 {8 * 1024, 1},
3739 {16 * 1024, 1},
3740 {32 * 1024, 1},
3741 {64 * 1024, 63},
3742 },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_c7,
3747 }
3748 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003749 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003750 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003751 .write = spi_chip_write_256,
3752 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003753 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003754 },
3755
3756 {
3757 .vendor = "Eon",
3758 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003759 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003760 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003761 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003762 .total_size = 4096,
3763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003764 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003765 .tested = TEST_UNTESTED,
3766 .probe = probe_spi_rdid,
3767 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003768 .block_erasers =
3769 {
3770 {
3771 .eraseblocks = {
3772 {64 * 1024, 63},
3773 {32 * 1024, 1},
3774 {16 * 1024, 1},
3775 {8 * 1024, 1},
3776 {4 * 1024, 2},
3777 },
3778 .block_erase = spi_block_erase_d8,
3779 }, {
3780 .eraseblocks = { {4 * 1024 * 1024, 1} },
3781 .block_erase = spi_block_erase_c7,
3782 }
3783 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003784 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003786 .write = spi_chip_write_256,
3787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003788 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 },
3790
3791 {
3792 .vendor = "Eon",
3793 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 8192,
3798 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 {64 * 1024, 127},
3812 },
3813 .block_erase = spi_block_erase_d8,
3814 }, {
3815 .eraseblocks = { {8 * 1024 * 1024, 1} },
3816 .block_erase = spi_block_erase_c7,
3817 }
3818 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .write = spi_chip_write_256,
3822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003824 },
3825
3826 {
3827 .vendor = "Eon",
3828 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003831 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003832 .total_size = 8192,
3833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003834 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003835 .tested = TEST_UNTESTED,
3836 .probe = probe_spi_rdid,
3837 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003838 .block_erasers =
3839 {
3840 {
3841 .eraseblocks = {
3842 {64 * 1024, 127},
3843 {32 * 1024, 1},
3844 {16 * 1024, 1},
3845 {8 * 1024, 1},
3846 {4 * 1024, 2},
3847 },
3848 .block_erase = spi_block_erase_d8,
3849 }, {
3850 .eraseblocks = { {8 * 1024 * 1024, 1} },
3851 .block_erase = spi_block_erase_c7,
3852 }
3853 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003854 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003855 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003856 .write = spi_chip_write_256,
3857 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003858 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003859 },
3860
3861 {
3862 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003864 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003865 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003866 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003867 .total_size = 64,
3868 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003869 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003870 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003871 .probe = probe_spi_rdid,
3872 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003873 .block_erasers =
3874 {
3875 {
3876 .eraseblocks = { {4 * 1024, 16} },
3877 .block_erase = spi_block_erase_20,
3878 }, {
3879 .eraseblocks = { {32 * 1024, 2} },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {32 * 1024, 2} },
3883 .block_erase = spi_block_erase_52,
3884 }, {
3885 .eraseblocks = { {64 * 1024, 1} },
3886 .block_erase = spi_block_erase_60,
3887 }, {
3888 .eraseblocks = { {64 * 1024, 1} },
3889 .block_erase = spi_block_erase_c7,
3890 }
3891 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003892 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003893 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003894 .write = spi_chip_write_256,
3895 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003896 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003897 },
3898
3899 {
3900 .vendor = "Eon",
3901 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003902 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003903 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003904 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003905 .total_size = 128,
3906 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003907 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003908 .tested = TEST_UNTESTED,
3909 .probe = probe_spi_rdid,
3910 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003911 .block_erasers =
3912 {
3913 {
3914 .eraseblocks = { {4 * 1024, 32} },
3915 .block_erase = spi_block_erase_20,
3916 }, {
3917 .eraseblocks = { {32 * 1024, 4} },
3918 .block_erase = spi_block_erase_d8,
3919 }, {
3920 .eraseblocks = { {32 * 1024, 4} },
3921 .block_erase = spi_block_erase_52,
3922 }, {
3923 .eraseblocks = { {128 * 1024, 1} },
3924 .block_erase = spi_block_erase_60,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003932 .write = spi_chip_write_256,
3933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003934 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003935 },
3936
3937 {
3938 .vendor = "Eon",
3939 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003943 .total_size = 256,
3944 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = { {4 * 1024, 64} },
3953 .block_erase = spi_block_erase_20,
3954 }, {
3955 .eraseblocks = { {64 * 1024, 4} },
3956 .block_erase = spi_block_erase_d8,
3957 }, {
3958 .eraseblocks = { {64 * 1024, 4} },
3959 .block_erase = spi_block_erase_52,
3960 }, {
3961 .eraseblocks = { {256 * 1024, 1} },
3962 .block_erase = spi_block_erase_60,
3963 }, {
3964 .eraseblocks = { {256 * 1024, 1} },
3965 .block_erase = spi_block_erase_c7,
3966 }
3967 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003969 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003970 .write = spi_chip_write_256,
3971 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003972 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003973 },
3974
3975 {
3976 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003977 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003978 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003979 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003980 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003981 .total_size = 512,
3982 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003983 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003984 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003985 .probe = probe_spi_rdid,
3986 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003987 .block_erasers =
3988 {
3989 {
Sean Nelson54596372010-01-09 05:30:14 +00003990 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003991 .block_erase = spi_block_erase_20,
3992 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003993 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003994 .block_erase = spi_block_erase_d8,
3995 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003996 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003997 .block_erase = spi_block_erase_60,
3998 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003999 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004000 .block_erase = spi_block_erase_c7,
4001 },
4002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004004 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004005 .write = spi_chip_write_256,
4006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004007 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004008 },
4009
4010 {
4011 .vendor = "Eon",
4012 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004013 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004014 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004015 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004016 .total_size = 1024,
4017 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004018 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004019 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004020 .probe = probe_spi_rdid,
4021 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .block_erasers =
4023 {
4024 {
4025 .eraseblocks = { {4 * 1024, 256} },
4026 .block_erase = spi_block_erase_20,
4027 }, {
4028 .eraseblocks = { {64 * 1024, 16} },
4029 .block_erase = spi_block_erase_d8,
4030 }, {
4031 .eraseblocks = { {1024 * 1024, 1} },
4032 .block_erase = spi_block_erase_60,
4033 }, {
4034 .eraseblocks = { {1024 * 1024, 1} },
4035 .block_erase = spi_block_erase_c7,
4036 }
4037 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004038 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004039 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004040 .write = spi_chip_write_256,
4041 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004042 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004043 },
4044
4045 {
4046 .vendor = "Eon",
4047 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004048 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004049 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004050 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004051 .total_size = 2048,
4052 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004053 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004055 .probe = probe_spi_rdid,
4056 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004057 .block_erasers =
4058 {
4059 {
4060 .eraseblocks = { {4 * 1024, 512} },
4061 .block_erase = spi_block_erase_20,
4062 }, {
4063 .eraseblocks = { {64 * 1024, 32} },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {2 * 1024 * 1024, 1} },
4067 .block_erase = spi_block_erase_60,
4068 }, {
4069 .eraseblocks = { {2 * 1024 * 1024, 1} },
4070 .block_erase = spi_block_erase_c7,
4071 }
4072 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 .write = spi_chip_write_256,
4076 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004077 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004078 },
4079
4080 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .vendor = "Eon",
4082 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004083 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004084 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004085 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004086 .total_size = 4096,
4087 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004088 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .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 */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004110 .write = spi_chip_write_256,
4111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004113 },
4114
4115 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004116 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004117 .name = "EN25F64",
4118 .bustype = BUS_SPI,
4119 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004120 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004121 .total_size = 8192,
4122 .page_size = 256,
4123 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004124 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004125 .probe = probe_spi_rdid,
4126 .probe_timing = TIMING_ZERO,
4127 .block_erasers =
4128 {
4129 {
4130 .eraseblocks = { {4 * 1024, 2048} },
4131 .block_erase = spi_block_erase_20,
4132 }, {
4133 .eraseblocks = { {64 * 1024, 128} },
4134 .block_erase = spi_block_erase_d8,
4135 }, {
4136 .eraseblocks = { {8 * 1024 * 1024, 1} },
4137 .block_erase = spi_block_erase_60,
4138 }, {
4139 .eraseblocks = { {8 * 1024 * 1024, 1} },
4140 .block_erase = spi_block_erase_c7,
4141 }
4142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004144 .unlock = spi_disable_blockprotect,
4145 .write = spi_chip_write_256,
4146 .read = spi_chip_read,
4147 .voltage = {2700, 3600},
4148 },
4149
4150 {
4151 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004152 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004153 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004154 .manufacture_id = EON_ID_NOPREFIX,
4155 .model_id = EON_EN25Q40,
4156 .total_size = 512,
4157 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004158 /* OTP: 256B total; enter 0x3A */
4159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004160 .tested = TEST_UNTESTED,
4161 .probe = probe_spi_rdid,
4162 .probe_timing = TIMING_ZERO,
4163 .block_erasers =
4164 {
4165 {
4166 .eraseblocks = { {4 * 1024, 128} },
4167 .block_erase = spi_block_erase_20,
4168 }, {
4169 .eraseblocks = { {64 * 1024, 8} },
4170 .block_erase = spi_block_erase_d8,
4171 }, {
4172 .eraseblocks = { {512 * 1024, 1} },
4173 .block_erase = spi_block_erase_60,
4174 }, {
4175 .eraseblocks = { {512 * 1024, 1} },
4176 .block_erase = spi_block_erase_c7,
4177 }
4178 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004180 .unlock = spi_disable_blockprotect,
4181 .write = spi_chip_write_256,
4182 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004183 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004184 },
4185
4186 {
4187 .vendor = "Eon",
4188 .name = "EN25Q80(A)",
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_EN25Q80,
4192 .total_size = 1024,
4193 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004194 /* OTP: 256B total; enter 0x3A */
4195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004196 .tested = TEST_UNTESTED,
4197 .probe = probe_spi_rdid,
4198 .probe_timing = TIMING_ZERO,
4199 .block_erasers =
4200 {
4201 {
4202 .eraseblocks = { {4 * 1024, 256} },
4203 .block_erase = spi_block_erase_20,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 16} },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {1024 * 1024, 1} },
4209 .block_erase = spi_block_erase_60,
4210 }, {
4211 .eraseblocks = { {1024 * 1024, 1} },
4212 .block_erase = spi_block_erase_c7,
4213 }
4214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004216 .unlock = spi_disable_blockprotect,
4217 .write = spi_chip_write_256,
4218 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004219 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004220 },
4221
4222 {
4223 /* Note: EN25D16 is an evil twin which shares the model ID
4224 but has different write protection capabilities */
4225 .vendor = "Eon",
4226 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004227 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004228 .manufacture_id = EON_ID_NOPREFIX,
4229 .model_id = EON_EN25Q16,
4230 .total_size = 2048,
4231 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004232 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004234 .tested = TEST_UNTESTED,
4235 .probe = probe_spi_rdid,
4236 .probe_timing = TIMING_ZERO,
4237 .block_erasers =
4238 {
4239 {
4240 .eraseblocks = { {4 * 1024, 512} },
4241 .block_erase = spi_block_erase_20,
4242 }, {
4243 .eraseblocks = { {64 * 1024, 32} },
4244 .block_erase = spi_block_erase_d8,
4245 }, {
4246 /* not supported by Q16 version */
4247 .eraseblocks = { {64 * 1024, 32} },
4248 .block_erase = spi_block_erase_52,
4249 }, {
4250 .eraseblocks = { {2 * 1024 * 1024, 1} },
4251 .block_erase = spi_block_erase_60,
4252 }, {
4253 .eraseblocks = { {2 * 1024 * 1024, 1} },
4254 .block_erase = spi_block_erase_c7,
4255 }
4256 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004257 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004258 .unlock = spi_disable_blockprotect,
4259 .write = spi_chip_write_256,
4260 .read = spi_chip_read,
4261 .voltage = {2700, 3600},
4262 },
4263
4264 {
4265 .vendor = "Eon",
4266 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004267 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004268 .manufacture_id = EON_ID_NOPREFIX,
4269 .model_id = EON_EN25Q32,
4270 .total_size = 4096,
4271 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004272 /* OTP: 512B total; enter 0x3A */
4273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004274 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004275 .probe = probe_spi_rdid,
4276 .probe_timing = TIMING_ZERO,
4277 .block_erasers =
4278 {
4279 {
4280 .eraseblocks = { {4 * 1024, 1024} },
4281 .block_erase = spi_block_erase_20,
4282 }, {
4283 .eraseblocks = { {64 * 1024, 64} },
4284 .block_erase = spi_block_erase_d8,
4285 }, {
4286 .eraseblocks = { {4 * 1024 * 1024, 1} },
4287 .block_erase = spi_block_erase_60,
4288 }, {
4289 .eraseblocks = { {4 * 1024 * 1024, 1} },
4290 .block_erase = spi_block_erase_c7,
4291 }
4292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004294 .unlock = spi_disable_blockprotect,
4295 .write = spi_chip_write_256,
4296 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004297 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004298 },
4299
4300 {
4301 .vendor = "Eon",
4302 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004303 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004304 .manufacture_id = EON_ID_NOPREFIX,
4305 .model_id = EON_EN25Q64,
4306 .total_size = 8192,
4307 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004308 /* OTP: 512B total; enter 0x3A */
4309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004310 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004311 .probe = probe_spi_rdid,
4312 .probe_timing = TIMING_ZERO,
4313 .block_erasers =
4314 {
4315 {
4316 .eraseblocks = { {4 * 1024, 2048} },
4317 .block_erase = spi_block_erase_20,
4318 }, {
4319 .eraseblocks = { {64 * 1024, 128} },
4320 .block_erase = spi_block_erase_d8,
4321 }, {
4322 .eraseblocks = { {8 * 1024 * 1024, 1} },
4323 .block_erase = spi_block_erase_60,
4324 }, {
4325 .eraseblocks = { {8 * 1024 * 1024, 1} },
4326 .block_erase = spi_block_erase_c7,
4327 }
4328 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004329 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004330 .unlock = spi_disable_blockprotect,
4331 .write = spi_chip_write_256,
4332 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004333 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004334 },
4335
4336 {
4337 .vendor = "Eon",
4338 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004339 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004340 .manufacture_id = EON_ID_NOPREFIX,
4341 .model_id = EON_EN25Q128,
4342 .total_size = 16384,
4343 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004344 /* OTP: 512B total; enter 0x3A */
4345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004346 .tested = TEST_UNTESTED,
4347 .probe = probe_spi_rdid,
4348 .probe_timing = TIMING_ZERO,
4349 .block_erasers =
4350 {
4351 {
4352 .eraseblocks = { {4 * 1024, 4096} },
4353 .block_erase = spi_block_erase_20,
4354 }, {
4355 .eraseblocks = { {64 * 1024, 256} },
4356 .block_erase = spi_block_erase_d8,
4357 }, {
4358 .eraseblocks = { {16 * 1024 * 1024, 1} },
4359 .block_erase = spi_block_erase_60,
4360 }, {
4361 .eraseblocks = { {16 * 1024 * 1024, 1} },
4362 .block_erase = spi_block_erase_c7,
4363 }
4364 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004366 .unlock = spi_disable_blockprotect,
4367 .write = spi_chip_write_256,
4368 .read = spi_chip_read,
4369 },
4370
4371 {
4372 .vendor = "Eon",
4373 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004374 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004375 .manufacture_id = EON_ID_NOPREFIX,
4376 .model_id = EON_EN25QH16,
4377 .total_size = 2048,
4378 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004379 /* supports SFDP */
4380 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004381 /* QPI enable 0x38, disable 0xFF */
4382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004383 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004384 .probe = probe_spi_rdid,
4385 .probe_timing = TIMING_ZERO,
4386 .block_erasers =
4387 {
4388 {
4389 .eraseblocks = { {4 * 1024, 512} },
4390 .block_erase = spi_block_erase_20,
4391 }, {
4392 .eraseblocks = { {64 * 1024, 32} },
4393 .block_erase = spi_block_erase_d8,
4394 }, {
4395 .eraseblocks = { {1024 * 2048, 1} },
4396 .block_erase = spi_block_erase_60,
4397 }, {
4398 .eraseblocks = { {1024 * 2048, 1} },
4399 .block_erase = spi_block_erase_c7,
4400 }
4401 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004402 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004403 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004404 .write = spi_chip_write_256,
4405 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004406 .voltage = {2700, 3600},
4407 },
4408
4409 {
4410 .vendor = "Eon",
4411 .name = "EN25QH32",
4412 .bustype = BUS_SPI,
4413 .manufacture_id = EON_ID_NOPREFIX,
4414 .model_id = EON_EN25QH32,
4415 .total_size = 4096,
4416 .page_size = 256,
4417 /* supports SFDP */
4418 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004419 /* QPI enable 0x38, disable 0xFF */
4420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004421 .tested = TEST_UNTESTED,
4422 .probe = probe_spi_rdid,
4423 .probe_timing = TIMING_ZERO,
4424 .block_erasers =
4425 {
4426 {
4427 .eraseblocks = { {4 * 1024, 1024} },
4428 .block_erase = spi_block_erase_20,
4429 }, {
4430 .eraseblocks = { {64 * 1024, 64} },
4431 .block_erase = spi_block_erase_d8,
4432 }, {
4433 .eraseblocks = { {1024 * 4096, 1} },
4434 .block_erase = spi_block_erase_60,
4435 }, {
4436 .eraseblocks = { {1024 * 4096, 1} },
4437 .block_erase = spi_block_erase_c7,
4438 }
4439 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004440 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004441 .unlock = spi_disable_blockprotect_bp3_srwd,
4442 .write = spi_chip_write_256,
4443 .read = spi_chip_read,
4444 .voltage = {2700, 3600},
4445 },
4446
4447 {
4448 .vendor = "Eon",
4449 .name = "EN25QH64",
4450 .bustype = BUS_SPI,
4451 .manufacture_id = EON_ID_NOPREFIX,
4452 .model_id = EON_EN25QH64,
4453 .total_size = 8192,
4454 .page_size = 256,
4455 /* supports SFDP */
4456 /* OTP: 512B total; enter 0x3A */
4457 /* QPI enable 0x38, disable 0xFF */
4458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004459 .tested = TEST_OK_PR,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004460 .probe = probe_spi_rdid,
4461 .probe_timing = TIMING_ZERO,
4462 .block_erasers = {
4463 {
4464 .eraseblocks = { {4 * 1024, 2048} },
4465 .block_erase = spi_block_erase_20,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 128} },
4468 .block_erase = spi_block_erase_d8,
4469 }, {
4470 .eraseblocks = { { 8192 * 1024, 1} },
4471 .block_erase = spi_block_erase_60,
4472 }, {
4473 .eraseblocks = { { 8192 * 1024, 1} },
4474 .block_erase = spi_block_erase_c7,
4475 }
4476 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004477 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004478 .unlock = spi_disable_blockprotect_bp3_srwd,
4479 .write = spi_chip_write_256,
4480 .read = spi_chip_read,
4481 .voltage = {2700, 3600},
4482 },
4483
4484 {
4485 .vendor = "Eon",
4486 .name = "EN25QH128",
4487 .bustype = BUS_SPI,
4488 .manufacture_id = EON_ID_NOPREFIX,
4489 .model_id = EON_EN25QH128,
4490 .total_size = 16384,
4491 .page_size = 256,
4492 /* supports SFDP */
4493 /* OTP: 512B total; enter 0x3A */
4494 /* QPI enable 0x38, disable 0xFF */
4495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4496 .tested = TEST_UNTESTED,
4497 .probe = probe_spi_rdid,
4498 .probe_timing = TIMING_ZERO,
4499 .block_erasers = {
4500 {
4501 .eraseblocks = { {4 * 1024, 4096} },
4502 .block_erase = spi_block_erase_20,
4503 }, {
4504 .eraseblocks = { {64 * 1024, 256} },
4505 .block_erase = spi_block_erase_d8,
4506 }, {
4507 .eraseblocks = { { 16384 * 1024, 1} },
4508 .block_erase = spi_block_erase_60,
4509 }, {
4510 .eraseblocks = { { 16384 * 1024, 1} },
4511 .block_erase = spi_block_erase_c7,
4512 }
4513 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004514 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004515 .unlock = spi_disable_blockprotect_bp3_srwd,
4516 .write = spi_chip_write_256,
4517 .read = spi_chip_read,
4518 .voltage = {2700, 3600},
4519 },
4520
4521 {
4522 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004523 .name = "EN25S10",
4524 .bustype = BUS_SPI,
4525 .manufacture_id = EON_ID_NOPREFIX,
4526 .model_id = EON_EN25S10,
4527 .total_size = 128,
4528 .page_size = 256,
4529 /* OTP: 256B total; enter 0x3A */
4530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4531 .tested = TEST_UNTESTED,
4532 .probe = probe_spi_rdid,
4533 .probe_timing = TIMING_ZERO,
4534 .block_erasers = {
4535 {
4536 .eraseblocks = { {4 * 1024, 32} },
4537 .block_erase = spi_block_erase_20,
4538 }, {
4539 .eraseblocks = { {32 * 1024, 4} },
4540 .block_erase = spi_block_erase_52,
4541 }, {
4542 .eraseblocks = { {128 * 1024, 1} },
4543 .block_erase = spi_block_erase_60,
4544 }, {
4545 .eraseblocks = { {128 * 1024, 1} },
4546 .block_erase = spi_block_erase_c7,
4547 }
4548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004549 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004550 .unlock = spi_disable_blockprotect,
4551 .write = spi_chip_write_256,
4552 .read = spi_chip_read,
4553 .voltage = {1650, 1950},
4554 },
4555
4556 {
4557 .vendor = "Eon",
4558 .name = "EN25S20",
4559 .bustype = BUS_SPI,
4560 .manufacture_id = EON_ID_NOPREFIX,
4561 .model_id = EON_EN25S20,
4562 .total_size = 256,
4563 .page_size = 256,
4564 /* OTP: 256B total; enter 0x3A */
4565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4566 .tested = TEST_UNTESTED,
4567 .probe = probe_spi_rdid,
4568 .probe_timing = TIMING_ZERO,
4569 .block_erasers = {
4570 {
4571 .eraseblocks = { {4 * 1024, 64} },
4572 .block_erase = spi_block_erase_20,
4573 }, {
4574 .eraseblocks = { {64 * 1024, 4} },
4575 .block_erase = spi_block_erase_d8,
4576 }, {
4577 .eraseblocks = { {256 * 1024, 1} },
4578 .block_erase = spi_block_erase_60,
4579 }, {
4580 .eraseblocks = { {256 * 1024, 1} },
4581 .block_erase = spi_block_erase_c7,
4582 }
4583 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004584 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004585 .unlock = spi_disable_blockprotect,
4586 .write = spi_chip_write_256,
4587 .read = spi_chip_read,
4588 .voltage = {1650, 1950},
4589 },
4590
4591 {
4592 .vendor = "Eon",
4593 .name = "EN25S40",
4594 .bustype = BUS_SPI,
4595 .manufacture_id = EON_ID_NOPREFIX,
4596 .model_id = EON_EN25S40,
4597 .total_size = 512,
4598 .page_size = 256,
4599 /* OTP: 256B total; enter 0x3A */
4600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4601 .tested = TEST_UNTESTED,
4602 .probe = probe_spi_rdid,
4603 .probe_timing = TIMING_ZERO,
4604 .block_erasers = {
4605 {
4606 .eraseblocks = { {4 * 1024, 128} },
4607 .block_erase = spi_block_erase_20,
4608 }, {
4609 .eraseblocks = { {64 * 1024, 8} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {512 * 1024, 1} },
4613 .block_erase = spi_block_erase_60,
4614 }, {
4615 .eraseblocks = { {512 * 1024, 1} },
4616 .block_erase = spi_block_erase_c7,
4617 }
4618 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004619 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004620 .unlock = spi_disable_blockprotect,
4621 .write = spi_chip_write_256,
4622 .read = spi_chip_read,
4623 .voltage = {1650, 1950},
4624 },
4625
4626 {
4627 .vendor = "Eon",
4628 .name = "EN25S80",
4629 .bustype = BUS_SPI,
4630 .manufacture_id = EON_ID_NOPREFIX,
4631 .model_id = EON_EN25S80,
4632 .total_size = 1024,
4633 .page_size = 256,
4634 /* OTP: 256B total; enter 0x3A */
4635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4636 .tested = TEST_UNTESTED,
4637 .probe = probe_spi_rdid,
4638 .probe_timing = TIMING_ZERO,
4639 .block_erasers = {
4640 {
4641 .eraseblocks = { {4 * 1024, 256} },
4642 .block_erase = spi_block_erase_20,
4643 }, {
4644 .eraseblocks = { {64 * 1024, 16} },
4645 .block_erase = spi_block_erase_d8,
4646 }, {
4647 .eraseblocks = { {1024 * 1024, 1} },
4648 .block_erase = spi_block_erase_60,
4649 }, {
4650 .eraseblocks = { {1024 * 1024, 1} },
4651 .block_erase = spi_block_erase_c7,
4652 }
4653 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004654 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004655 .unlock = spi_disable_blockprotect,
4656 .write = spi_chip_write_256,
4657 .read = spi_chip_read,
4658 .voltage = {1650, 1950},
4659 },
4660
4661 {
4662 .vendor = "Eon",
4663 .name = "EN25S16",
4664 .bustype = BUS_SPI,
4665 .manufacture_id = EON_ID_NOPREFIX,
4666 .model_id = EON_EN25S16,
4667 .total_size = 2048,
4668 .page_size = 256,
4669 /* OTP: 512B total; enter 0x3A */
4670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4671 .tested = TEST_UNTESTED,
4672 .probe = probe_spi_rdid,
4673 .probe_timing = TIMING_ZERO,
4674 .block_erasers = {
4675 {
4676 .eraseblocks = { {4 * 1024, 512} },
4677 .block_erase = spi_block_erase_20,
4678 }, {
4679 .eraseblocks = { {64 * 1024, 32} },
4680 .block_erase = spi_block_erase_52,
4681 }, {
4682 .eraseblocks = { {32 * 1024, 64} },
4683 .block_erase = spi_block_erase_d8,
4684 }, {
4685 .eraseblocks = { {2048 * 1024, 1} },
4686 .block_erase = spi_block_erase_60,
4687 }, {
4688 .eraseblocks = { {2048 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_en25s_wp,
4693 .unlock = spi_disable_blockprotect_bp3_srwd,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read,
4696 .voltage = {1650, 1950},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25S32",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25S32,
4705 .total_size = 4096,
4706 .page_size = 256,
4707 /* OTP: 512B total; enter 0x3A */
4708 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4709 .tested = TEST_UNTESTED,
4710 .probe = probe_spi_rdid,
4711 .probe_timing = TIMING_ZERO,
4712 .block_erasers = {
4713 {
4714 .eraseblocks = { {4 * 1024, 1024} },
4715 .block_erase = spi_block_erase_20,
4716 }, {
4717 .eraseblocks = { {32 * 1024, 128} },
4718 .block_erase = spi_block_erase_52,
4719 }, {
4720 .eraseblocks = { {64 * 1024, 64} },
4721 .block_erase = spi_block_erase_d8,
4722 }, {
4723 .eraseblocks = { {4096 * 1024, 1} },
4724 .block_erase = spi_block_erase_60,
4725 }, {
4726 .eraseblocks = { {4096 * 1024, 1} },
4727 .block_erase = spi_block_erase_c7,
4728 }
4729 },
4730 .printlock = spi_prettyprint_status_register_en25s_wp,
4731 .unlock = spi_disable_blockprotect_bp3_srwd,
4732 .write = spi_chip_write_256,
4733 .read = spi_chip_read,
4734 .voltage = {1650, 1950},
4735 },
4736
4737 {
4738 .vendor = "Eon",
4739 .name = "EN25S64",
4740 .bustype = BUS_SPI,
4741 .manufacture_id = EON_ID_NOPREFIX,
4742 .model_id = EON_EN25S64,
4743 .total_size = 8192,
4744 .page_size = 256,
4745 /* OTP: 512B total; enter 0x3A */
4746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers = {
4751 {
4752 .eraseblocks = { {4 * 1024, 2048} },
4753 .block_erase = spi_block_erase_20,
4754 }, {
4755 .eraseblocks = { {64 * 1024, 128} },
4756 .block_erase = spi_block_erase_d8,
4757 }, {
4758 .eraseblocks = { {8192 * 1024, 1} },
4759 .block_erase = spi_block_erase_60,
4760 }, {
4761 .eraseblocks = { {8192 * 1024, 1} },
4762 .block_erase = spi_block_erase_c7,
4763 }
4764 },
4765 .printlock = spi_prettyprint_status_register_en25s_wp,
4766 .unlock = spi_disable_blockprotect_bp3_srwd,
4767 .write = spi_chip_write_256,
4768 .read = spi_chip_read,
4769 .voltage = {1650, 1950},
4770 },
4771
4772 {
4773 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004774 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004775 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004776 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004777 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004778 .total_size = 128,
4779 .page_size = 128,
4780 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004781 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004782 .probe = probe_jedec,
4783 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4784 .block_erasers =
4785 {
4786 {
4787 .eraseblocks = { {16 * 1024, 8} },
4788 .block_erase = erase_sector_jedec,
4789 },
4790 {
4791 .eraseblocks = { {128 * 1024, 1} },
4792 .block_erase = erase_chip_block_jedec,
4793 },
4794 },
4795 .write = write_jedec_1,
4796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004797 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004798 },
4799
4800 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004801 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004802 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004803 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004804 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004805 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004806 .total_size = 256,
4807 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004808 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004809 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004810 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004811 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004812 .block_erasers =
4813 {
4814 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004815 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004816 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004817 {8 * 1024, 2},
4818 {32 * 1024, 1},
4819 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004820 },
4821 .block_erase = erase_sector_jedec,
4822 }, {
4823 .eraseblocks = { {256 * 1024, 1} },
4824 .block_erase = erase_chip_block_jedec,
4825 },
4826 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004829 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004830 },
4831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004833 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004834 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004837 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 .total_size = 256,
4839 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004840 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004841 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004842 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004843 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004844 .block_erasers =
4845 {
4846 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004847 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004848 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004849 {32 * 1024, 1},
4850 {8 * 1024, 2},
4851 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004852 },
4853 .block_erase = erase_sector_jedec,
4854 }, {
4855 .eraseblocks = { {256 * 1024, 1} },
4856 .block_erase = erase_chip_block_jedec,
4857 },
4858 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004859 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004860 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004861 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004862 },
4863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004864 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004865 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00004866 .name = "EN29LV040(A)",
4867 .bustype = BUS_PARALLEL,
4868 .manufacture_id = EON_ID,
4869 .model_id = EON_EN29LV040,
4870 .total_size = 512,
4871 .page_size = 4 * 1024,
4872 .tested = TEST_OK_PREW,
4873 .probe = probe_jedec,
4874 .probe_timing = TIMING_ZERO,
4875 .block_erasers =
4876 {
4877 {
4878 .eraseblocks = { {64 * 1024, 8} },
4879 .block_erase = erase_sector_jedec,
4880 },
4881 {
4882 .eraseblocks = { {512 * 1024, 1} },
4883 .block_erase = erase_chip_block_jedec,
4884 },
4885 },
4886 .write = write_jedec_1,
4887 .read = read_memmapped,
4888 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
4889 },
4890
4891 {
4892 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004893 .name = "EN29LV640B",
4894 .bustype = BUS_PARALLEL,
4895 .manufacture_id = EON_ID,
4896 .model_id = EON_EN29LV640B,
4897 .total_size = 8192,
4898 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004899 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004900 .tested = TEST_OK_PREW,
4901 .probe = probe_en29lv640b,
4902 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4903 .block_erasers =
4904 {
4905 {
4906 .eraseblocks = {
4907 {8 * 1024, 8},
4908 {64 * 1024, 127},
4909 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004910 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004911 }, {
4912 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00004913 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004914 },
4915 },
4916 .write = write_en29lv640b,
4917 .read = read_memmapped,
4918 .voltage = {2700, 3600},
4919 },
4920
4921 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00004922 .vendor = "Eon",
4923 .name = "EN29GL064(A)B",
4924 .bustype = BUS_PARALLEL,
4925 .manufacture_id = EON_ID,
4926 .model_id = EON_EN29GL064B,
4927 .total_size = 8192,
4928 .page_size = 128 * 1024, /* actual page size is 16 */
4929 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4930 .tested = TEST_UNTESTED,
4931 .probe = probe_jedec_29gl,
4932 .probe_timing = TIMING_ZERO,
4933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = {
4937 {8 * 1024, 8},
4938 {64 * 1024, 127},
4939 },
4940 .block_erase = erase_sector_jedec,
4941 }, {
4942 .eraseblocks = { {8 * 1024 * 1024, 1} },
4943 .block_erase = erase_chip_block_jedec,
4944 },
4945 },
4946 .write = write_jedec_1,
4947 .read = read_memmapped,
4948 .voltage = {2700, 3600},
4949 },
4950
4951 {
4952 .vendor = "Eon",
4953 .name = "EN29GL064(A)T",
4954 .bustype = BUS_PARALLEL,
4955 .manufacture_id = EON_ID,
4956 .model_id = EON_EN29GL064T,
4957 .total_size = 8192,
4958 .page_size = 128 * 1024, /* actual page size is 16 */
4959 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_jedec_29gl,
4962 .probe_timing = TIMING_ZERO,
4963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = {
4967 {64 * 1024, 127},
4968 {8 * 1024, 8},
4969 },
4970 .block_erase = erase_sector_jedec,
4971 }, {
4972 .eraseblocks = { {8 * 1024 * 1024, 1} },
4973 .block_erase = erase_chip_block_jedec,
4974 },
4975 },
4976 .write = write_jedec_1,
4977 .read = read_memmapped,
4978 .voltage = {2700, 3600},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN29GL064H/L",
4984 .bustype = BUS_PARALLEL,
4985 .manufacture_id = EON_ID,
4986 .model_id = EON_EN29GL064HL,
4987 .total_size = 8192,
4988 .page_size = 128 * 1024, /* actual page size is 16 */
4989 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4990 .tested = TEST_UNTESTED,
4991 .probe = probe_jedec_29gl,
4992 .probe_timing = TIMING_ZERO,
4993 .block_erasers =
4994 {
4995 {
4996 .eraseblocks = { {64 * 1024, 128} },
4997 .block_erase = erase_sector_jedec,
4998 }, {
4999 .eraseblocks = { {8 * 1024 * 1024, 1} },
5000 .block_erase = erase_chip_block_jedec,
5001 },
5002 },
5003 .write = write_jedec_1,
5004 .read = read_memmapped,
5005 .voltage = {2700, 3600},
5006 },
5007
5008 {
5009 .vendor = "Eon",
5010 .name = "EN29GL128",
5011 .bustype = BUS_PARALLEL,
5012 .manufacture_id = EON_ID,
5013 .model_id = EON_EN29GL128HL,
5014 .total_size = 16384,
5015 .page_size = 128 * 1024, /* actual page size is 16 */
5016 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5017 .tested = TEST_UNTESTED,
5018 .probe = probe_jedec_29gl,
5019 .probe_timing = TIMING_ZERO,
5020 .block_erasers =
5021 {
5022 {
5023 .eraseblocks = { {128 * 1024, 128} },
5024 .block_erase = erase_sector_jedec,
5025 }, {
5026 .eraseblocks = { {16 * 1024 * 1024, 1} },
5027 .block_erase = erase_chip_block_jedec,
5028 },
5029 },
5030 .write = write_jedec_1,
5031 .read = read_memmapped,
5032 .voltage = {2700, 3600},
5033 },
5034
5035 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005036 .vendor = "Fujitsu",
5037 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005038 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005039 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005040 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005041 .total_size = 512,
5042 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005043 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .tested = TEST_UNTESTED,
5045 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005046 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005047 .block_erasers =
5048 {
5049 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005050 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005051 {16 * 1024, 1},
5052 {8 * 1024, 2},
5053 {32 * 1024, 1},
5054 {64 * 1024, 7},
5055 },
Sean Nelson35727f72010-01-28 23:55:12 +00005056 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005057 }, {
5058 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005059 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005060 },
5061 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005062 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005064 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005065 },
5066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005067 {
5068 .vendor = "Fujitsu",
5069 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005070 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005071 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005072 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005073 .total_size = 512,
5074 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005075 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .tested = TEST_UNTESTED,
5077 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005078 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005079 .block_erasers =
5080 {
5081 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005082 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005083 {64 * 1024, 7},
5084 {32 * 1024, 1},
5085 {8 * 1024, 2},
5086 {16 * 1024, 1},
5087 },
Sean Nelson35727f72010-01-28 23:55:12 +00005088 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005089 }, {
5090 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005091 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005092 },
5093 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005094 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005095 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005096 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005097 },
5098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005099 {
Sean Nelson35727f72010-01-28 23:55:12 +00005100 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005101 .vendor = "Fujitsu",
5102 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005103 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005105 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005106 .total_size = 512,
5107 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005108 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005109 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005110 .probe = probe_jedec,
5111 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005112 .block_erasers =
5113 {
5114 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005115 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005116 {16 * 1024, 1},
5117 {8 * 1024, 2},
5118 {32 * 1024, 1},
5119 {64 * 1024, 7},
5120 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005121 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005122 }, {
5123 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005124 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005125 },
5126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005127 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005128 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005129 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005130 },
5131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005132 {
5133 .vendor = "Fujitsu",
5134 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005135 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005136 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005137 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 .total_size = 512,
5139 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005140 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005141 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005142 .probe = probe_jedec,
5143 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005144 .block_erasers =
5145 {
5146 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005147 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005148 {64 * 1024, 7},
5149 {32 * 1024, 1},
5150 {8 * 1024, 2},
5151 {16 * 1024, 1},
5152 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005153 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005154 }, {
5155 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005156 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005157 },
5158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005159 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005160 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005161 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005162 },
5163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005165 .vendor = "Fujitsu",
5166 .name = "MBM29LV160BE",
5167 .bustype = BUS_PARALLEL,
5168 .manufacture_id = FUJITSU_ID,
5169 .model_id = FUJITSU_MBM29LV160BE,
5170 .total_size = 2 * 1024,
5171 .page_size = 0,
5172 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5173 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005174 .probe = probe_jedec,
5175 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005176 .block_erasers =
5177 {
5178 {
5179 .eraseblocks = {
5180 {16 * 1024, 1},
5181 {8 * 1024, 2},
5182 {32 * 1024, 1},
5183 {64 * 1024, 31},
5184 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005185 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005186 }, {
5187 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005188 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005189 },
5190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005191 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005192 .read = read_memmapped,
5193 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5194 },
5195
5196 {
5197 .vendor = "Fujitsu",
5198 .name = "MBM29LV160TE",
5199 .bustype = BUS_PARALLEL,
5200 .manufacture_id = FUJITSU_ID,
5201 .model_id = FUJITSU_MBM29LV160TE,
5202 .total_size = 2 * 1024,
5203 .page_size = 0,
5204 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5205 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005206 .probe = probe_jedec,
5207 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005208 .block_erasers =
5209 {
5210 {
5211 .eraseblocks = {
5212 {64 * 1024, 31},
5213 {32 * 1024, 1},
5214 {8 * 1024, 2},
5215 {16 * 1024, 1},
5216 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005217 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005218 }, {
5219 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005220 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005221 },
5222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005223 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005224 .read = read_memmapped,
5225 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5226 },
5227
5228 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005229 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005230 .name = "GD25LQ32",
5231 .bustype = BUS_SPI,
5232 .manufacture_id = GIGADEVICE_ID,
5233 .model_id = GIGADEVICE_GD25LQ32,
5234 .total_size = 4096,
5235 .page_size = 256,
5236 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5238 .tested = TEST_OK_PREW,
5239 .probe = probe_spi_rdid,
5240 .probe_timing = TIMING_ZERO,
5241 .block_erasers =
5242 {
5243 {
5244 .eraseblocks = { {4 * 1024, 1024} },
5245 .block_erase = spi_block_erase_20,
5246 }, {
5247 .eraseblocks = { {32 * 1024, 128} },
5248 .block_erase = spi_block_erase_52,
5249 }, {
5250 .eraseblocks = { {64 * 1024, 64} },
5251 .block_erase = spi_block_erase_d8,
5252 }, {
5253 .eraseblocks = { {4 * 1024 * 1024, 1} },
5254 .block_erase = spi_block_erase_60,
5255 }, {
5256 .eraseblocks = { {4 * 1024 * 1024, 1} },
5257 .block_erase = spi_block_erase_c7,
5258 }
5259 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005260 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005261 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5262 .write = spi_chip_write_256,
5263 .read = spi_chip_read,
5264 .voltage = {1700, 1950},
5265 },
5266
5267 {
5268 .vendor = "GigaDevice",
5269 .name = "GD25Q512",
5270 .bustype = BUS_SPI,
5271 .manufacture_id = GIGADEVICE_ID,
5272 .model_id = GIGADEVICE_GD25Q512,
5273 .total_size = 64,
5274 .page_size = 256,
5275 .feature_bits = FEATURE_WRSR_WREN,
5276 .tested = TEST_UNTESTED,
5277 .probe = probe_spi_rdid,
5278 .probe_timing = TIMING_ZERO,
5279 .block_erasers = {
5280 {
5281 .eraseblocks = { {4 * 1024, 16} },
5282 .block_erase = spi_block_erase_20,
5283 }, {
5284 .eraseblocks = { {32 * 1024, 2} },
5285 .block_erase = spi_block_erase_52,
5286 }, {
5287 .eraseblocks = { {64 * 1024, 1} },
5288 .block_erase = spi_block_erase_60,
5289 }, {
5290 .eraseblocks = { {64 * 1024, 1} },
5291 .block_erase = spi_block_erase_c7,
5292 }
5293 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005294 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005295 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5296 .write = spi_chip_write_256,
5297 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5298 .voltage = {2700, 3600},
5299 },
5300
5301 {
5302 .vendor = "GigaDevice",
5303 .name = "GD25Q10",
5304 .bustype = BUS_SPI,
5305 .manufacture_id = GIGADEVICE_ID,
5306 .model_id = GIGADEVICE_GD25Q10,
5307 .total_size = 128,
5308 .page_size = 256,
5309 .feature_bits = FEATURE_WRSR_WREN,
5310 .tested = TEST_UNTESTED,
5311 .probe = probe_spi_rdid,
5312 .probe_timing = TIMING_ZERO,
5313 .block_erasers = {
5314 {
5315 .eraseblocks = { {4 * 1024, 32} },
5316 .block_erase = spi_block_erase_20,
5317 }, {
5318 .eraseblocks = { {32 * 1024, 4} },
5319 .block_erase = spi_block_erase_52,
5320 }, {
5321 .eraseblocks = { {64 * 1024, 2} },
5322 .block_erase = spi_block_erase_d8,
5323 }, {
5324 .eraseblocks = { {128 * 1024, 1} },
5325 .block_erase = spi_block_erase_60,
5326 }, {
5327 .eraseblocks = { {128 * 1024, 1} },
5328 .block_erase = spi_block_erase_c7,
5329 }
5330 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005331 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005332 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5333 .write = spi_chip_write_256,
5334 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5335 .voltage = {2700, 3600},
5336 },
5337
5338 {
5339 .vendor = "GigaDevice",
5340 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005341 .bustype = BUS_SPI,
5342 .manufacture_id = GIGADEVICE_ID,
5343 .model_id = GIGADEVICE_GD25Q20,
5344 .total_size = 256,
5345 .page_size = 256,
5346 .feature_bits = FEATURE_WRSR_WREN,
5347 .tested = TEST_UNTESTED,
5348 .probe = probe_spi_rdid,
5349 .probe_timing = TIMING_ZERO,
5350 .block_erasers =
5351 {
5352 {
5353 .eraseblocks = { {4 * 1024, 64} },
5354 .block_erase = spi_block_erase_20,
5355 }, {
5356 .eraseblocks = { {32 * 1024, 8} },
5357 .block_erase = spi_block_erase_52,
5358 }, {
5359 .eraseblocks = { {64 * 1024, 4} },
5360 .block_erase = spi_block_erase_d8,
5361 }, {
5362 .eraseblocks = { {256 * 1024, 1} },
5363 .block_erase = spi_block_erase_60,
5364 }, {
5365 .eraseblocks = { {256 * 1024, 1} },
5366 .block_erase = spi_block_erase_c7,
5367 }
5368 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005369 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005370 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005371 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005372 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005373 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005374 },
5375
5376 {
5377 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005378 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005379 .bustype = BUS_SPI,
5380 .manufacture_id = GIGADEVICE_ID,
5381 .model_id = GIGADEVICE_GD25Q40,
5382 .total_size = 512,
5383 .page_size = 256,
5384 .feature_bits = FEATURE_WRSR_WREN,
5385 .tested = TEST_UNTESTED,
5386 .probe = probe_spi_rdid,
5387 .probe_timing = TIMING_ZERO,
5388 .block_erasers =
5389 {
5390 {
5391 .eraseblocks = { {4 * 1024, 128} },
5392 .block_erase = spi_block_erase_20,
5393 }, {
5394 .eraseblocks = { {32 * 1024, 16} },
5395 .block_erase = spi_block_erase_52,
5396 }, {
5397 .eraseblocks = { {64 * 1024, 8} },
5398 .block_erase = spi_block_erase_d8,
5399 }, {
5400 .eraseblocks = { {512 * 1024, 1} },
5401 .block_erase = spi_block_erase_60,
5402 }, {
5403 .eraseblocks = { {512 * 1024, 1} },
5404 .block_erase = spi_block_erase_c7,
5405 }
5406 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005407 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005408 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005409 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005410 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005411 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005412 },
5413
5414 {
5415 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005416 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005417 .bustype = BUS_SPI,
5418 .manufacture_id = GIGADEVICE_ID,
5419 .model_id = GIGADEVICE_GD25Q80,
5420 .total_size = 1024,
5421 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005422 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5424 .tested = TEST_OK_PREW,
5425 .probe = probe_spi_rdid,
5426 .probe_timing = TIMING_ZERO,
5427 .block_erasers =
5428 {
5429 {
5430 .eraseblocks = { {4 * 1024, 256} },
5431 .block_erase = spi_block_erase_20,
5432 }, {
5433 .eraseblocks = { {32 * 1024, 32} },
5434 .block_erase = spi_block_erase_52,
5435 }, {
5436 .eraseblocks = { {64 * 1024, 16} },
5437 .block_erase = spi_block_erase_d8,
5438 }, {
5439 .eraseblocks = { {1024 * 1024, 1} },
5440 .block_erase = spi_block_erase_60,
5441 }, {
5442 .eraseblocks = { {1024 * 1024, 1} },
5443 .block_erase = spi_block_erase_c7,
5444 }
5445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005446 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005447 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005448 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005449 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005450 .voltage = {2700, 3600},
5451 },
5452
5453 {
5454 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005455 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005456 .bustype = BUS_SPI,
5457 .manufacture_id = GIGADEVICE_ID,
5458 .model_id = GIGADEVICE_GD25Q16,
5459 .total_size = 2048,
5460 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005461 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005462 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00005463 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005464 .probe = probe_spi_rdid,
5465 .probe_timing = TIMING_ZERO,
5466 .block_erasers =
5467 {
5468 {
5469 .eraseblocks = { {4 * 1024, 512} },
5470 .block_erase = spi_block_erase_20,
5471 }, {
5472 .eraseblocks = { {32 * 1024, 64} },
5473 .block_erase = spi_block_erase_52,
5474 }, {
5475 .eraseblocks = { {64 * 1024, 32} },
5476 .block_erase = spi_block_erase_d8,
5477 }, {
5478 .eraseblocks = { {2 * 1024 * 1024, 1} },
5479 .block_erase = spi_block_erase_60,
5480 }, {
5481 .eraseblocks = { {2 * 1024 * 1024, 1} },
5482 .block_erase = spi_block_erase_c7,
5483 }
5484 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005485 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005486 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005487 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005488 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005489 .voltage = {2700, 3600},
5490 },
5491
5492 {
5493 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005494 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005495 .bustype = BUS_SPI,
5496 .manufacture_id = GIGADEVICE_ID,
5497 .model_id = GIGADEVICE_GD25Q32,
5498 .total_size = 4096,
5499 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005500 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00005502 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005503 .probe = probe_spi_rdid,
5504 .probe_timing = TIMING_ZERO,
5505 .block_erasers =
5506 {
5507 {
5508 .eraseblocks = { {4 * 1024, 1024} },
5509 .block_erase = spi_block_erase_20,
5510 }, {
5511 .eraseblocks = { {32 * 1024, 128} },
5512 .block_erase = spi_block_erase_52,
5513 }, {
5514 .eraseblocks = { {64 * 1024, 64} },
5515 .block_erase = spi_block_erase_d8,
5516 }, {
5517 .eraseblocks = { {4 * 1024 * 1024, 1} },
5518 .block_erase = spi_block_erase_60,
5519 }, {
5520 .eraseblocks = { {4 * 1024 * 1024, 1} },
5521 .block_erase = spi_block_erase_c7,
5522 }
5523 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005524 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005525 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005526 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005527 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005528 .voltage = {2700, 3600},
5529 },
5530
5531 {
5532 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005533 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005534 .bustype = BUS_SPI,
5535 .manufacture_id = GIGADEVICE_ID,
5536 .model_id = GIGADEVICE_GD25Q64,
5537 .total_size = 8192,
5538 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005539 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005541 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005542 .probe = probe_spi_rdid,
5543 .probe_timing = TIMING_ZERO,
5544 .block_erasers =
5545 {
5546 {
5547 .eraseblocks = { {4 * 1024, 2048} },
5548 .block_erase = spi_block_erase_20,
5549 }, {
5550 .eraseblocks = { {32 * 1024, 256} },
5551 .block_erase = spi_block_erase_52,
5552 }, {
5553 .eraseblocks = { {64 * 1024, 128} },
5554 .block_erase = spi_block_erase_d8,
5555 }, {
5556 .eraseblocks = { {8 * 1024 * 1024, 1} },
5557 .block_erase = spi_block_erase_60,
5558 }, {
5559 .eraseblocks = { {8 * 1024 * 1024, 1} },
5560 .block_erase = spi_block_erase_c7,
5561 }
5562 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005563 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005564 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005565 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005566 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005567 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005568 },
5569
5570 {
5571 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005572 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005573 .bustype = BUS_SPI,
5574 .manufacture_id = GIGADEVICE_ID,
5575 .model_id = GIGADEVICE_GD25Q128,
5576 .total_size = 16384,
5577 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005578 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5580 .tested = TEST_UNTESTED,
5581 .probe = probe_spi_rdid,
5582 .probe_timing = TIMING_ZERO,
5583 .block_erasers =
5584 {
5585 {
5586 .eraseblocks = { {4 * 1024, 4096} },
5587 .block_erase = spi_block_erase_20,
5588 }, {
5589 .eraseblocks = { {32 * 1024, 512} },
5590 .block_erase = spi_block_erase_52,
5591 }, {
5592 .eraseblocks = { {64 * 1024, 256} },
5593 .block_erase = spi_block_erase_d8,
5594 }, {
5595 .eraseblocks = { {16 * 1024 * 1024, 1} },
5596 .block_erase = spi_block_erase_60,
5597 }, {
5598 .eraseblocks = { {16 * 1024 * 1024, 1} },
5599 .block_erase = spi_block_erase_c7,
5600 }
5601 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005602 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005603 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5604 .write = spi_chip_write_256,
5605 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "GigaDevice",
5611 .name = "GD25T80",
5612 .bustype = BUS_SPI,
5613 .manufacture_id = GIGADEVICE_ID,
5614 .model_id = GIGADEVICE_GD25T80,
5615 .total_size = 1024,
5616 .page_size = 256,
5617 /* OTP: 256B total; enter 0x3A */
5618 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5619 .tested = TEST_UNTESTED,
5620 .probe = probe_spi_rdid,
5621 .probe_timing = TIMING_ZERO,
5622 .block_erasers = {
5623 {
5624 .eraseblocks = { {4 * 1024, 256} },
5625 .block_erase = spi_block_erase_20,
5626 }, {
5627 .eraseblocks = { {64 * 1024, 16} },
5628 .block_erase = spi_block_erase_52,
5629 }, {
5630 .eraseblocks = { {64 * 1024, 16} },
5631 .block_erase = spi_block_erase_d8,
5632 }, {
5633 .eraseblocks = { {1024 * 1024, 1} },
5634 .block_erase = spi_block_erase_60,
5635 }, {
5636 .eraseblocks = { {1024 * 1024, 1} },
5637 .block_erase = spi_block_erase_c7,
5638 }
5639 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005641 .unlock = spi_disable_blockprotect,
5642 .write = spi_chip_write_256,
5643 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005644 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005645 },
5646
5647 {
David Borgc96a8bd2010-06-21 16:12:22 +00005648 .vendor = "Hyundai",
5649 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005650 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005651 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005652 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005653 .total_size = 256,
5654 .page_size = 256 * 1024,
5655 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005656 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005657 .probe = probe_jedec,
5658 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5659 .block_erasers =
5660 {
5661 {
5662 .eraseblocks = {
5663 {64 * 1024, 3},
5664 {32 * 1024, 1},
5665 {8 * 1024, 2},
5666 {16 * 1024, 1},
5667 },
5668 .block_erase = erase_sector_jedec,
5669 }, {
5670 .eraseblocks = { {256 * 1024, 1} },
5671 .block_erase = erase_chip_block_jedec,
5672 },
5673 },
5674 .write = write_jedec_1,
5675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005677 },
5678
5679 {
5680 .vendor = "Hyundai",
5681 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005682 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005683 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005684 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005685 .total_size = 256,
5686 .page_size = 256 * 1024,
5687 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5688 .tested = TEST_UNTESTED,
5689 .probe = probe_jedec,
5690 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5691 .block_erasers =
5692 {
5693 {
5694 .eraseblocks = {
5695 {16 * 1024, 1},
5696 {8 * 1024, 2},
5697 {32 * 1024, 1},
5698 {64 * 1024, 3},
5699 },
5700 .block_erase = erase_sector_jedec,
5701 }, {
5702 .eraseblocks = { {256 * 1024, 1} },
5703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005708 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005709 },
5710
5711 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005712 .vendor = "Hyundai",
5713 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005714 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005715 .manufacture_id = HYUNDAI_ID,
5716 .model_id = HYUNDAI_HY29F040A,
5717 .total_size = 512,
5718 .page_size = 64 * 1024,
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec,
5722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = { {64 * 1024, 8} },
5727 .block_erase = erase_sector_jedec,
5728 }, {
5729 .eraseblocks = { {512 * 1024, 1} },
5730 .block_erase = erase_chip_block_jedec,
5731 },
5732 },
5733 .write = write_jedec_1,
5734 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005735 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005736 },
5737
5738 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005739 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005740 .name = "25F160S33B8",
5741 .bustype = BUS_SPI,
5742 .manufacture_id = INTEL_ID,
5743 .model_id = INTEL_25F160S33B8,
5744 .total_size = 2048,
5745 .page_size = 256,
5746 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5748 .tested = TEST_UNTESTED,
5749 .probe = probe_spi_rdid,
5750 .probe_timing = TIMING_ZERO,
5751 .block_erasers =
5752 {
5753 {
5754 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5755 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5756 * have no effect on the memory contents, but sets a flag in the SR.
5757 .eraseblocks = {
5758 {8 * 1024, 8},
5759 {64 * 1024, 31} // inaccessible
5760 },
5761 .block_erase = spi_block_erase_40,
5762 }, { */
5763 .eraseblocks = { {64 * 1024, 32} },
5764 .block_erase = spi_block_erase_d8,
5765 }, {
5766 .eraseblocks = { {2 * 1024 * 1024, 1} },
5767 .block_erase = spi_block_erase_c7,
5768 }
5769 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005770 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5771 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005772 .write = spi_chip_write_256,
5773 .read = spi_chip_read, /* also fast read 0x0B */
5774 .voltage = {2700, 3600},
5775 },
5776
5777 {
5778 .vendor = "Intel",
5779 .name = "25F160S33T8",
5780 .bustype = BUS_SPI,
5781 .manufacture_id = INTEL_ID,
5782 .model_id = INTEL_25F160S33T8,
5783 .total_size = 2048,
5784 .page_size = 256,
5785 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5787 .tested = TEST_UNTESTED,
5788 .probe = probe_spi_rdid,
5789 .probe_timing = TIMING_ZERO,
5790 .block_erasers =
5791 {
5792 {
5793 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5794 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5795 * have no effect on the memory contents, but sets a flag in the SR.
5796 .eraseblocks = {
5797 {64 * 1024, 31}, // inaccessible
5798 {8 * 1024, 8}
5799 },
5800 .block_erase = spi_block_erase_40,
5801 }, { */
5802 .eraseblocks = { {64 * 1024, 32} },
5803 .block_erase = spi_block_erase_d8,
5804 }, {
5805 .eraseblocks = { {2 * 1024 * 1024, 1} },
5806 .block_erase = spi_block_erase_c7,
5807 }
5808 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005809 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5810 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005811 .write = spi_chip_write_256,
5812 .read = spi_chip_read, /* also fast read 0x0B */
5813 .voltage = {2700, 3600},
5814 },
5815
5816 {
5817 .vendor = "Intel",
5818 .name = "25F320S33B8",
5819 .bustype = BUS_SPI,
5820 .manufacture_id = INTEL_ID,
5821 .model_id = INTEL_25F320S33B8,
5822 .total_size = 4096,
5823 .page_size = 256,
5824 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5826 .tested = TEST_UNTESTED,
5827 .probe = probe_spi_rdid,
5828 .probe_timing = TIMING_ZERO,
5829 .block_erasers =
5830 {
5831 {
5832 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5833 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5834 * have no effect on the memory contents, but sets a flag in the SR.
5835 .eraseblocks = {
5836 {8 * 1024, 8},
5837 {64 * 1024, 63} // inaccessible
5838 },
5839 .block_erase = spi_block_erase_40,
5840 }, { */
5841 .eraseblocks = { {64 * 1024, 64} },
5842 .block_erase = spi_block_erase_d8,
5843 }, {
5844 .eraseblocks = { {4 * 1024 * 1024, 1} },
5845 .block_erase = spi_block_erase_c7,
5846 }
5847 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005848 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5849 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005850 .write = spi_chip_write_256,
5851 .read = spi_chip_read, /* also fast read 0x0B */
5852 .voltage = {2700, 3600},
5853 },
5854
5855 {
5856 .vendor = "Intel",
5857 .name = "25F320S33T8",
5858 .bustype = BUS_SPI,
5859 .manufacture_id = INTEL_ID,
5860 .model_id = INTEL_25F320S33T8,
5861 .total_size = 4096,
5862 .page_size = 256,
5863 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5865 .tested = TEST_UNTESTED,
5866 .probe = probe_spi_rdid,
5867 .probe_timing = TIMING_ZERO,
5868 .block_erasers =
5869 {
5870 {
5871 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5872 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5873 * have no effect on the memory contents, but sets a flag in the SR.
5874 .eraseblocks = {
5875 {64 * 1024, 63}, // inaccessible
5876 {8 * 1024, 8}
5877 },
5878 .block_erase = spi_block_erase_40,
5879 }, { */
5880 .eraseblocks = { {64 * 1024, 64} },
5881 .block_erase = spi_block_erase_d8,
5882 }, {
5883 .eraseblocks = { {4 * 1024 * 1024, 1} },
5884 .block_erase = spi_block_erase_c7,
5885 }
5886 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005887 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5888 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005889 .write = spi_chip_write_256,
5890 .read = spi_chip_read, /* also fast read 0x0B */
5891 .voltage = {2700, 3600},
5892 },
5893
5894 {
5895 .vendor = "Intel",
5896 .name = "25F640S33B8",
5897 .bustype = BUS_SPI,
5898 .manufacture_id = INTEL_ID,
5899 .model_id = INTEL_25F640S33B8,
5900 .total_size = 8192,
5901 .page_size = 256,
5902 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5904 .tested = TEST_UNTESTED,
5905 .probe = probe_spi_rdid,
5906 .probe_timing = TIMING_ZERO,
5907 .block_erasers =
5908 {
5909 {
5910 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5911 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5912 * have no effect on the memory contents, but sets a flag in the SR.
5913 .eraseblocks = {
5914 {8 * 1024, 8},
5915 {64 * 1024, 127} // inaccessible
5916 },
5917 .block_erase = spi_block_erase_40,
5918 }, { */
5919 .eraseblocks = { {64 * 1024, 128} },
5920 .block_erase = spi_block_erase_d8,
5921 }, {
5922 .eraseblocks = { {8 * 1024 * 1024, 1} },
5923 .block_erase = spi_block_erase_c7,
5924 }
5925 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005926 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5927 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005928 .write = spi_chip_write_256,
5929 .read = spi_chip_read, /* also fast read 0x0B */
5930 .voltage = {2700, 3600},
5931 },
5932
5933 {
5934 .vendor = "Intel",
5935 .name = "25F640S33T8",
5936 .bustype = BUS_SPI,
5937 .manufacture_id = INTEL_ID,
5938 .model_id = INTEL_25F640S33T8,
5939 .total_size = 8192,
5940 .page_size = 256,
5941 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5943 .tested = TEST_UNTESTED,
5944 .probe = probe_spi_rdid,
5945 .probe_timing = TIMING_ZERO,
5946 .block_erasers =
5947 {
5948 {
5949 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5950 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5951 * have no effect on the memory contents, but sets a flag in the SR.
5952 .eraseblocks = {
5953 {64 * 1024, 127}, // inaccessible
5954 {8 * 1024, 8}
5955 },
5956 .block_erase = spi_block_erase_40,
5957 }, { */
5958 .eraseblocks = { {64 * 1024, 128} },
5959 .block_erase = spi_block_erase_d8,
5960 }, {
5961 .eraseblocks = { {8 * 1024 * 1024, 1} },
5962 .block_erase = spi_block_erase_c7,
5963 }
5964 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005965 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5966 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005967 .write = spi_chip_write_256,
5968 .read = spi_chip_read, /* also fast read 0x0B */
5969 .voltage = {2700, 3600},
5970 },
5971
5972 {
5973 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005974 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005975 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005976 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005977 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005978 .total_size = 128,
5979 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005980 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005981 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005982 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005983 .block_erasers =
5984 {
5985 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005986 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005987 {8 * 1024, 1},
5988 {4 * 1024, 2},
5989 {112 * 1024, 1},
5990 },
Sean Nelson28accc22010-03-19 18:47:06 +00005991 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005992 },
5993 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005994 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005996 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005997 },
5998
5999 {
6000 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006001 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006002 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006003 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006004 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006005 .total_size = 128,
6006 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006007 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006008 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006010 .block_erasers =
6011 {
6012 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006013 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006014 {112 * 1024, 1},
6015 {4 * 1024, 2},
6016 {8 * 1024, 1},
6017 },
Sean Nelson28accc22010-03-19 18:47:06 +00006018 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006019 },
6020 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006021 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006023 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006024 },
6025
6026 {
6027 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006028 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006030 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006031 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006032 .total_size = 256,
6033 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006034 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006035 .probe = probe_82802ab,
6036 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6037 .block_erasers =
6038 {
6039 {
6040 .eraseblocks = {
6041 {128 * 1024, 1},
6042 {96 * 1024, 1},
6043 {8 * 1024, 2},
6044 {16 * 1024, 1},
6045 },
6046 .block_erase = erase_block_82802ab,
6047 },
6048 },
6049 .write = write_82802ab,
6050 .read = read_memmapped,
6051 },
6052
6053 {
6054 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006055 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006056 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006057 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006058 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006059 .total_size = 512,
6060 .page_size = 256,
6061 .tested = TEST_UNTESTED,
6062 .probe = probe_82802ab,
6063 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006064 .block_erasers =
6065 {
6066 {
6067 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006068 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006069 },
6070 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006071 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006072 .write = write_82802ab,
6073 .read = read_memmapped,
6074 },
6075
6076 {
6077 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006078 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006079 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006080 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006081 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006082 .total_size = 512,
6083 .page_size = 128 * 1024, /* maximal block size */
6084 .tested = TEST_UNTESTED,
6085 .probe = probe_82802ab,
6086 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6087 .block_erasers =
6088 {
6089 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006090 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006091 {16 * 1024, 1},
6092 {8 * 1024, 2},
6093 {96 * 1024, 1},
6094 {128 * 1024, 3},
6095 },
6096 .block_erase = erase_block_82802ab,
6097 },
6098 },
6099 .write = write_82802ab,
6100 .read = read_memmapped,
6101 },
6102
6103 {
6104 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006105 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006106 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006107 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006108 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006109 .total_size = 512,
6110 .page_size = 128 * 1024, /* maximal block size */
6111 .tested = TEST_UNTESTED,
6112 .probe = probe_82802ab,
6113 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6114 .block_erasers =
6115 {
6116 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006117 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006118 {128 * 1024, 3},
6119 {96 * 1024, 1},
6120 {8 * 1024, 2},
6121 {16 * 1024, 1},
6122 },
6123 .block_erase = erase_block_82802ab,
6124 },
6125 },
6126 .write = write_82802ab,
6127 .read = read_memmapped,
6128 },
6129
6130 {
6131 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006132 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006133 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006134 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006135 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006136 .total_size = 512,
6137 .page_size = 128 * 1024, /* maximal block size */
6138 .feature_bits = FEATURE_ADDR_SHIFTED,
6139 .tested = TEST_UNTESTED,
6140 .probe = probe_82802ab,
6141 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6142 .block_erasers =
6143 {
6144 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006145 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006146 {16 * 1024, 1},
6147 {8 * 1024, 2},
6148 {96 * 1024, 1},
6149 {128 * 1024, 3},
6150 },
6151 .block_erase = erase_block_82802ab,
6152 },
6153 },
6154 .write = write_82802ab,
6155 .read = read_memmapped,
6156 },
6157
6158 {
6159 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006160 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006161 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006162 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006163 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006164 .total_size = 512,
6165 .page_size = 128 * 1024, /* maximal block size */
6166 .feature_bits = FEATURE_ADDR_SHIFTED,
6167 .tested = TEST_UNTESTED,
6168 .probe = probe_82802ab,
6169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6170 .block_erasers =
6171 {
6172 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006173 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006174 {128 * 1024, 3},
6175 {96 * 1024, 1},
6176 {8 * 1024, 2},
6177 {16 * 1024, 1},
6178 },
6179 .block_erase = erase_block_82802ab,
6180 },
6181 },
6182 .write = write_82802ab,
6183 .read = read_memmapped,
6184 },
6185
6186 {
6187 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006189 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006191 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .total_size = 512,
6193 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006194 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006195 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006196 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006197 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006198 .block_erasers =
6199 {
6200 {
6201 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006202 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006203 },
6204 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006205 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006206 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006208 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006209 },
6210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006211 {
6212 .vendor = "Intel",
6213 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006214 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006215 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006216 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006217 .total_size = 1024,
6218 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006219 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006220 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006221 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006222 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00006223 .block_erasers =
6224 {
6225 {
6226 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00006227 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006228 },
6229 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00006230 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006231 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006233 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006234 },
6235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006236 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006237 .vendor = "ISSI",
6238 .name = "IS29GL064B",
6239 .bustype = BUS_PARALLEL,
6240 .manufacture_id = ISSI_ID,
6241 .model_id = ISSI_PMC_IS29GL064B,
6242 .total_size = 8192,
6243 .page_size = 128 * 1024, /* actual page size is 16 */
6244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6245 .tested = TEST_UNTESTED,
6246 .probe = probe_jedec_29gl,
6247 .probe_timing = TIMING_ZERO,
6248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = {
6252 {8 * 1024, 8},
6253 {64 * 1024, 127},
6254 },
6255 .block_erase = erase_sector_jedec,
6256 }, {
6257 .eraseblocks = { {8 * 1024 * 1024, 1} },
6258 .block_erase = erase_chip_block_jedec,
6259 },
6260 },
6261 .write = write_jedec_1,
6262 .read = read_memmapped,
6263 .voltage = {2700, 3600},
6264 },
6265
6266 {
6267 .vendor = "ISSI",
6268 .name = "IS29GL064T",
6269 .bustype = BUS_PARALLEL,
6270 .manufacture_id = ISSI_ID,
6271 .model_id = ISSI_PMC_IS29GL064T,
6272 .total_size = 8192,
6273 .page_size = 128 * 1024, /* actual page size is 16 */
6274 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6275 .tested = TEST_UNTESTED,
6276 .probe = probe_jedec_29gl,
6277 .probe_timing = TIMING_ZERO,
6278 .block_erasers =
6279 {
6280 {
6281 .eraseblocks = {
6282 {64 * 1024, 127},
6283 {8 * 1024, 8},
6284 },
6285 .block_erase = erase_sector_jedec,
6286 }, {
6287 .eraseblocks = { {8 * 1024 * 1024, 1} },
6288 .block_erase = erase_chip_block_jedec,
6289 },
6290 },
6291 .write = write_jedec_1,
6292 .read = read_memmapped,
6293 .voltage = {2700, 3600},
6294 },
6295
6296 {
6297 .vendor = "ISSI",
6298 .name = "IS29GL064H/L",
6299 .bustype = BUS_PARALLEL,
6300 .manufacture_id = ISSI_ID,
6301 .model_id = ISSI_PMC_IS29GL064HL,
6302 .total_size = 8192,
6303 .page_size = 128 * 1024, /* actual page size is 16 */
6304 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6305 .tested = TEST_UNTESTED,
6306 .probe = probe_jedec_29gl,
6307 .probe_timing = TIMING_ZERO,
6308 .block_erasers =
6309 {
6310 {
6311 .eraseblocks = { {64 * 1024, 128} },
6312 .block_erase = erase_sector_jedec,
6313 }, {
6314 .eraseblocks = { {8 * 1024 * 1024, 1} },
6315 .block_erase = erase_chip_block_jedec,
6316 },
6317 },
6318 .write = write_jedec_1,
6319 .read = read_memmapped,
6320 .voltage = {2700, 3600},
6321 },
6322
6323 {
6324 .vendor = "ISSI",
6325 .name = "IS29GL128H/L",
6326 .bustype = BUS_PARALLEL,
6327 .manufacture_id = ISSI_ID,
6328 .model_id = ISSI_PMC_IS29GL128HL,
6329 .total_size = 16384,
6330 .page_size = 128 * 1024, /* actual page size is 16 */
6331 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6332 .tested = TEST_UNTESTED,
6333 .probe = probe_jedec_29gl,
6334 .probe_timing = TIMING_ZERO,
6335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {128 * 1024, 128} },
6339 .block_erase = erase_sector_jedec,
6340 }, {
6341 .eraseblocks = { {16 * 1024 * 1024, 1} },
6342 .block_erase = erase_chip_block_jedec,
6343 },
6344 },
6345 .write = write_jedec_1,
6346 .read = read_memmapped,
6347 .voltage = {2700, 3600},
6348 },
6349
6350 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006351 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006352 .name = "MX23L1654",
6353 .bustype = BUS_SPI,
6354 .manufacture_id = MACRONIX_ID,
6355 .model_id = MACRONIX_MX23L1654,
6356 .total_size = 2048,
6357 .page_size = 256,
6358 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6359 .probe = probe_spi_rdid,
6360 .probe_timing = TIMING_ZERO,
6361 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
6362 .read = spi_chip_read, /* Fast read (0x0B) supported */
6363 .voltage = {3000, 3600},
6364 },
6365
6366 {
6367 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006368 .name = "MX23L3254",
6369 .bustype = BUS_SPI,
6370 .manufacture_id = MACRONIX_ID,
6371 .model_id = MACRONIX_MX23L3254,
6372 .total_size = 4096,
6373 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00006374 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00006375 .probe = probe_spi_rdid,
6376 .probe_timing = TIMING_ZERO,
6377 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
6378 .read = spi_chip_read, /* Fast read (0x0B) supported */
6379 .voltage = {3000, 3600},
6380 },
6381
6382 {
6383 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00006384 .name = "MX23L6454",
6385 .bustype = BUS_SPI,
6386 .manufacture_id = MACRONIX_ID,
6387 .model_id = MACRONIX_MX23L6454,
6388 .total_size = 8192,
6389 .page_size = 256,
6390 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6391 .probe = probe_spi_rdid,
6392 .probe_timing = TIMING_ZERO,
6393 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
6394 .read = spi_chip_read, /* Fast read (0x0B) supported */
6395 .voltage = {3000, 3600},
6396 },
6397
6398 {
6399 .vendor = "Macronix",
6400 .name = "MX23L12854",
6401 .bustype = BUS_SPI,
6402 .manufacture_id = MACRONIX_ID,
6403 .model_id = MACRONIX_MX23L12854,
6404 .total_size = 16384,
6405 .page_size = 256,
6406 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
6407 .probe = probe_spi_rdid,
6408 .probe_timing = TIMING_ZERO,
6409 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
6410 .read = spi_chip_read, /* Fast read (0x0B) supported */
6411 .voltage = {3000, 3600},
6412 },
6413
6414 {
6415 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006416 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006417 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006418 .manufacture_id = MACRONIX_ID,
6419 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .total_size = 64,
6421 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006422 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006423 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006424 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006426 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006427 .block_erasers =
6428 {
6429 {
6430 .eraseblocks = { {4 * 1024, 16} },
6431 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006432 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006433 .eraseblocks = { {64 * 1024, 1} },
6434 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006435 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006436 .eraseblocks = { {64 * 1024, 1} },
6437 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006438 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006439 .eraseblocks = { {64 * 1024, 1} },
6440 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006441 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006442 .eraseblocks = { {64 * 1024, 1} },
6443 .block_erase = spi_block_erase_c7,
6444 },
6445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006446 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006447 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006448 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006449 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
6450 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00006451 },
6452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 {
6454 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006455 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006456 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006457 .manufacture_id = MACRONIX_ID,
6458 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006459 .total_size = 128,
6460 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006461 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00006462 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00006463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006464 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006465 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006466 .block_erasers =
6467 {
6468 {
6469 .eraseblocks = { {4 * 1024, 32} },
6470 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006471 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006472 .eraseblocks = { {64 * 1024, 2} },
6473 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006474 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006475 .eraseblocks = { {128 * 1024, 1} },
6476 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006477 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00006478 .eraseblocks = { {128 * 1024, 1} },
6479 .block_erase = spi_block_erase_c7,
6480 },
6481 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006482 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006483 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006484 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006485 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006487 },
6488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 {
6490 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006491 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006492 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006493 .manufacture_id = MACRONIX_ID,
6494 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006495 .total_size = 256,
6496 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006497 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006499 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006500 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006501 .block_erasers =
6502 {
6503 {
6504 .eraseblocks = { {4 * 1024, 64} },
6505 .block_erase = spi_block_erase_20,
6506 }, {
6507 .eraseblocks = { {64 * 1024, 4} },
6508 .block_erase = spi_block_erase_52,
6509 }, {
6510 .eraseblocks = { {64 * 1024, 4} },
6511 .block_erase = spi_block_erase_d8,
6512 }, {
6513 .eraseblocks = { {256 * 1024, 1} },
6514 .block_erase = spi_block_erase_60,
6515 }, {
6516 .eraseblocks = { {256 * 1024, 1} },
6517 .block_erase = spi_block_erase_c7,
6518 },
6519 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006520 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006521 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006522 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006523 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006525 },
6526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 {
6528 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006529 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006530 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006531 .manufacture_id = MACRONIX_ID,
6532 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006533 .total_size = 512,
6534 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006535 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00006536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006538 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006539 .block_erasers =
6540 {
6541 {
6542 .eraseblocks = { {4 * 1024, 128} },
6543 .block_erase = spi_block_erase_20,
6544 }, {
6545 .eraseblocks = { {64 * 1024, 8} },
6546 .block_erase = spi_block_erase_52,
6547 }, {
6548 .eraseblocks = { {64 * 1024, 8} },
6549 .block_erase = spi_block_erase_d8,
6550 }, {
6551 .eraseblocks = { {512 * 1024, 1} },
6552 .block_erase = spi_block_erase_60,
6553 }, {
6554 .eraseblocks = { {512 * 1024, 1} },
6555 .block_erase = spi_block_erase_c7,
6556 },
6557 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006558 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006559 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006560 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006561 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006563 },
6564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006565 {
6566 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006567 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006568 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006569 .manufacture_id = MACRONIX_ID,
6570 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006571 .total_size = 1024,
6572 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006573 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006576 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006577 .block_erasers =
6578 {
6579 {
6580 .eraseblocks = { {4 * 1024, 256} },
6581 .block_erase = spi_block_erase_20,
6582 }, {
6583 .eraseblocks = { {64 * 1024, 16} },
6584 .block_erase = spi_block_erase_52,
6585 }, {
6586 .eraseblocks = { {64 * 1024, 16} },
6587 .block_erase = spi_block_erase_d8,
6588 }, {
6589 .eraseblocks = { {1024 * 1024, 1} },
6590 .block_erase = spi_block_erase_60,
6591 }, {
6592 .eraseblocks = { {1024 * 1024, 1} },
6593 .block_erase = spi_block_erase_c7,
6594 },
6595 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006596 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006597 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006598 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006599 .read = spi_chip_read, /* Fast read (0x0B) supported */
6600 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006601 },
6602
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006603 {
6604 .vendor = "Macronix",
6605 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006606 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006607 .manufacture_id = MACRONIX_ID,
6608 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .total_size = 2048,
6610 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006611 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006614 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006615 .block_erasers =
6616 {
6617 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006618 .eraseblocks = { {64 * 1024, 32} },
6619 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006620 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006621 .eraseblocks = { {64 * 1024, 32} },
6622 .block_erase = spi_block_erase_d8,
6623 }, {
6624 .eraseblocks = { {2 * 1024 * 1024, 1} },
6625 .block_erase = spi_block_erase_60,
6626 }, {
6627 .eraseblocks = { {2 * 1024 * 1024, 1} },
6628 .block_erase = spi_block_erase_c7,
6629 },
6630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006631 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00006632 .unlock = spi_disable_blockprotect,
6633 .write = spi_chip_write_256,
6634 .read = spi_chip_read, /* Fast read (0x0B) supported */
6635 .voltage = {2700, 3600},
6636 },
6637
6638 {
6639 .vendor = "Macronix",
6640 .name = "MX25L1605A/MX25L1606E",
6641 .bustype = BUS_SPI,
6642 .manufacture_id = MACRONIX_ID,
6643 .model_id = MACRONIX_MX25L1605,
6644 .total_size = 2048,
6645 .page_size = 256,
6646 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6648 .tested = TEST_OK_PREW,
6649 .probe = probe_spi_rdid,
6650 .probe_timing = TIMING_ZERO,
6651 .block_erasers =
6652 {
6653 {
6654 .eraseblocks = { {4 * 1024, 512} },
6655 .block_erase = spi_block_erase_20,
6656 }, {
6657 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006658 .block_erase = spi_block_erase_52,
6659 }, {
6660 .eraseblocks = { {64 * 1024, 32} },
6661 .block_erase = spi_block_erase_d8,
6662 }, {
6663 .eraseblocks = { {2 * 1024 * 1024, 1} },
6664 .block_erase = spi_block_erase_60,
6665 }, {
6666 .eraseblocks = { {2 * 1024 * 1024, 1} },
6667 .block_erase = spi_block_erase_c7,
6668 },
6669 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006670 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006671 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006672 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006673 .read = spi_chip_read, /* Fast read (0x0B) supported */
6674 .voltage = {2700, 3600},
6675 },
6676
6677 {
6678 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006679 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00006680 .bustype = BUS_SPI,
6681 .manufacture_id = MACRONIX_ID,
6682 .model_id = MACRONIX_MX25L1605,
6683 .total_size = 2048,
6684 .page_size = 256,
6685 .feature_bits = FEATURE_WRSR_WREN,
6686 .tested = TEST_OK_PREW,
6687 .probe = probe_spi_rdid,
6688 .probe_timing = TIMING_ZERO,
6689 .block_erasers =
6690 {
6691 {
6692 .eraseblocks = { {4 * 1024, 512} },
6693 .block_erase = spi_block_erase_20,
6694 }, {
6695 .eraseblocks = { {64 * 1024, 32} },
6696 .block_erase = spi_block_erase_d8,
6697 }, {
6698 .eraseblocks = { {2 * 1024 * 1024, 1} },
6699 .block_erase = spi_block_erase_60,
6700 }, {
6701 .eraseblocks = { {2 * 1024 * 1024, 1} },
6702 .block_erase = spi_block_erase_c7,
6703 },
6704 },
Stefan Tauner6697f712014-08-06 15:09:15 +00006705 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006706 .unlock = spi_disable_blockprotect,
6707 .write = spi_chip_write_256,
6708 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006709 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006710 },
6711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006712 {
6713 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006714 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006715 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006716 .manufacture_id = MACRONIX_ID,
6717 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006718 .total_size = 2048,
6719 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006720 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006722 .tested = TEST_UNTESTED,
6723 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006724 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006725 .block_erasers =
6726 {
6727 {
6728 .eraseblocks = { {4 * 1024, 512} },
6729 .block_erase = spi_block_erase_20,
6730 }, {
6731 .eraseblocks = { {64 * 1024, 32} },
6732 .block_erase = spi_block_erase_d8,
6733 }, {
6734 .eraseblocks = { {2 * 1024 * 1024, 1} },
6735 .block_erase = spi_block_erase_60,
6736 }, {
6737 .eraseblocks = { {2 * 1024 * 1024, 1} },
6738 .block_erase = spi_block_erase_c7,
6739 }
6740 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006741 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006742 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006743 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006744 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006745 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006746 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006747
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006748 {
6749 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006750 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006751 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006752 .manufacture_id = MACRONIX_ID,
6753 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006754 .total_size = 2048,
6755 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006756 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006758 .tested = TEST_UNTESTED,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { {4 * 1024, 512} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {64 * 1024, 32} },
6768 .block_erase = spi_block_erase_d8,
6769 }, {
6770 .eraseblocks = { {2 * 1024 * 1024, 1} },
6771 .block_erase = spi_block_erase_60,
6772 }, {
6773 .eraseblocks = { {2 * 1024 * 1024, 1} },
6774 .block_erase = spi_block_erase_c7,
6775 }
6776 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006777 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006778 .unlock = spi_disable_blockprotect,
6779 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006780 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006781 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006782 },
6783
6784 {
6785 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006786 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006787 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006788 .manufacture_id = MACRONIX_ID,
6789 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006790 .total_size = 4096,
6791 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006792 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006793 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006794 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006795 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006796 .block_erasers =
6797 {
6798 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006799 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006800 .block_erase = spi_block_erase_20,
6801 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006802 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006803 .block_erase = spi_block_erase_d8,
6804 }, {
6805 .eraseblocks = { {4 * 1024 * 1024, 1} },
6806 .block_erase = spi_block_erase_60,
6807 }, {
6808 .eraseblocks = { {4 * 1024 * 1024, 1} },
6809 .block_erase = spi_block_erase_c7,
6810 },
6811 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006812 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006813 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006814 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006815 .read = spi_chip_read, /* Fast read (0x0B) supported */
6816 .voltage = {2700, 3600},
6817 },
6818
6819 {
6820 .vendor = "Macronix",
6821 .name = "MX25L3205D/MX25L3208D",
6822 .bustype = BUS_SPI,
6823 .manufacture_id = MACRONIX_ID,
6824 .model_id = MACRONIX_MX25L3205,
6825 .total_size = 4096,
6826 .page_size = 256,
6827 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6829 .tested = TEST_OK_PREW,
6830 .probe = probe_spi_rdid,
6831 .probe_timing = TIMING_ZERO,
6832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = { {4 * 1024, 1024} },
6836 .block_erase = spi_block_erase_20,
6837 }, {
6838 .eraseblocks = { {64 * 1024, 64} },
6839 .block_erase = spi_block_erase_d8,
6840 }, {
6841 .eraseblocks = { {4 * 1024 * 1024, 1} },
6842 .block_erase = spi_block_erase_60,
6843 }, {
6844 .eraseblocks = { {4 * 1024 * 1024, 1} },
6845 .block_erase = spi_block_erase_c7,
6846 },
6847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006848 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */
Stefan Tauner226037d2013-03-16 01:22:12 +00006849 .unlock = spi_disable_blockprotect,
6850 .write = spi_chip_write_256,
6851 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6852 .voltage = {2700, 3600},
6853 },
6854
6855 {
6856 .vendor = "Macronix",
6857 .name = "MX25L3206E",
6858 .bustype = BUS_SPI,
6859 .manufacture_id = MACRONIX_ID,
6860 .model_id = MACRONIX_MX25L3205,
6861 .total_size = 4096,
6862 .page_size = 256,
6863 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6865 .tested = TEST_OK_PREW,
6866 .probe = probe_spi_rdid,
6867 .probe_timing = TIMING_ZERO,
6868 .block_erasers =
6869 {
6870 {
6871 .eraseblocks = { {4 * 1024, 1024} },
6872 .block_erase = spi_block_erase_20,
6873 }, {
6874 .eraseblocks = { {64 * 1024, 64} },
6875 .block_erase = spi_block_erase_d8,
6876 }, {
6877 .eraseblocks = { {64 * 1024, 64} },
6878 .block_erase = spi_block_erase_52,
6879 }, {
6880 .eraseblocks = { {4 * 1024 * 1024, 1} },
6881 .block_erase = spi_block_erase_60,
6882 }, {
6883 .eraseblocks = { {4 * 1024 * 1024, 1} },
6884 .block_erase = spi_block_erase_c7,
6885 },
6886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006887 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00006888 .unlock = spi_disable_blockprotect,
6889 .write = spi_chip_write_256,
6890 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006891 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006892 },
6893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006894 {
6895 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006896 .name = "MX25L3273E",
6897 .bustype = BUS_SPI,
6898 .manufacture_id = MACRONIX_ID,
6899 .model_id = MACRONIX_MX25L3205,
6900 .total_size = 4096,
6901 .page_size = 256,
6902 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6904 .tested = TEST_UNTESTED,
6905 .probe = probe_spi_rdid,
6906 .probe_timing = TIMING_ZERO,
6907 .block_erasers =
6908 {
6909 {
6910 .eraseblocks = { {4 * 1024, 1024} },
6911 .block_erase = spi_block_erase_20,
6912 }, {
6913 .eraseblocks = { {32 * 1024, 128} },
6914 .block_erase = spi_block_erase_52,
6915 }, {
6916 .eraseblocks = { {64 * 1024, 64} },
6917 .block_erase = spi_block_erase_d8,
6918 }, {
6919 .eraseblocks = { {4 * 1024 * 1024, 1} },
6920 .block_erase = spi_block_erase_60,
6921 }, {
6922 .eraseblocks = { {4 * 1024 * 1024, 1} },
6923 .block_erase = spi_block_erase_c7,
6924 },
6925 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006926 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006927 .unlock = spi_disable_blockprotect,
6928 .write = spi_chip_write_256,
6929 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6930 .voltage = {2700, 3600},
6931 },
6932
6933 {
6934 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006935 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006936 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006937 .manufacture_id = MACRONIX_ID,
6938 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006939 .total_size = 4096,
6940 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006941 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006943 .tested = TEST_UNTESTED,
6944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006945 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006946 .block_erasers =
6947 {
6948 {
6949 .eraseblocks = { {4 * 1024, 1024} },
6950 .block_erase = spi_block_erase_20,
6951 }, {
6952 .eraseblocks = { {64 * 1024, 64} },
6953 .block_erase = spi_block_erase_d8,
6954 }, {
6955 .eraseblocks = { {4 * 1024 * 1024, 1} },
6956 .block_erase = spi_block_erase_60,
6957 }, {
6958 .eraseblocks = { {4 * 1024 * 1024, 1} },
6959 .block_erase = spi_block_erase_c7,
6960 }
6961 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006962 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006963 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006964 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006966 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006967 },
6968
6969 {
6970 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006971 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006972 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006973 .manufacture_id = MACRONIX_ID,
6974 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006975 .total_size = 8192,
6976 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006977 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006981 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006982 .block_erasers =
6983 {
6984 {
6985 .eraseblocks = { {64 * 1024, 128} },
6986 .block_erase = spi_block_erase_20,
6987 }, {
6988 .eraseblocks = { {64 * 1024, 128} },
6989 .block_erase = spi_block_erase_d8,
6990 }, {
6991 .eraseblocks = { {8 * 1024 * 1024, 1} },
6992 .block_erase = spi_block_erase_60,
6993 }, {
6994 .eraseblocks = { {8 * 1024 * 1024, 1} },
6995 .block_erase = spi_block_erase_c7,
6996 }
6997 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006998 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006999 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007000 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007002 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007003 },
7004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 {
7006 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007007 .name = "MX25L6406E/MX25L6436E",
7008 .bustype = BUS_SPI,
7009 .manufacture_id = MACRONIX_ID,
7010 .model_id = MACRONIX_MX25L6405,
7011 .total_size = 8192,
7012 .page_size = 256,
7013 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
7014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7015 .tested = TEST_OK_PREW,
7016 .probe = probe_spi_rdid,
7017 .probe_timing = TIMING_ZERO,
7018 .block_erasers =
7019 {
7020 {
7021 .eraseblocks = { {4 * 1024, 2048} },
7022 .block_erase = spi_block_erase_20,
7023 }, {
7024 .eraseblocks = { {64 * 1024, 128} },
7025 .block_erase = spi_block_erase_d8,
7026 }, {
7027 .eraseblocks = { {8 * 1024 * 1024, 1} },
7028 .block_erase = spi_block_erase_60,
7029 }, {
7030 .eraseblocks = { {8 * 1024 * 1024, 1} },
7031 .block_erase = spi_block_erase_c7,
7032 }
7033 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007034 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007035 .unlock = spi_disable_blockprotect,
7036 .write = spi_chip_write_256,
7037 .read = spi_chip_read,
7038 .voltage = {2700, 3600},
7039 },
7040
7041 {
7042 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007043 .name = "MX25L6445E/MX25L6473E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007044 .bustype = BUS_SPI,
7045 .manufacture_id = MACRONIX_ID,
7046 .model_id = MACRONIX_MX25L6405,
7047 .total_size = 8192,
7048 .page_size = 256,
7049 /* supports SFDP */
7050 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7052 .tested = TEST_OK_PREW,
7053 .probe = probe_spi_rdid,
7054 .probe_timing = TIMING_ZERO,
7055 .block_erasers =
7056 {
7057 {
7058 .eraseblocks = { {4 * 1024, 2048} },
7059 .block_erase = spi_block_erase_20,
7060 }, {
7061 .eraseblocks = { {32 * 1024, 256} },
7062 .block_erase = spi_block_erase_52,
7063 }, {
7064 .eraseblocks = { {64 * 1024, 128} },
7065 .block_erase = spi_block_erase_d8,
7066 }, {
7067 .eraseblocks = { {8 * 1024 * 1024, 1} },
7068 .block_erase = spi_block_erase_60,
7069 }, {
7070 .eraseblocks = { {8 * 1024 * 1024, 1} },
7071 .block_erase = spi_block_erase_c7,
7072 }
7073 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007074 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner226037d2013-03-16 01:22:12 +00007075 .unlock = spi_disable_blockprotect,
7076 .write = spi_chip_write_256,
7077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7078 .voltage = {2700, 3600},
7079 },
7080
7081 {
7082 .vendor = "Macronix",
7083 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007084 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007085 .manufacture_id = MACRONIX_ID,
7086 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007087 .total_size = 16384,
7088 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007089 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
7090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00007091 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007093 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007094 .block_erasers =
7095 {
7096 {
7097 .eraseblocks = { {4 * 1024, 4096} },
7098 .block_erase = spi_block_erase_20,
7099 }, {
7100 .eraseblocks = { {64 * 1024, 256} },
7101 .block_erase = spi_block_erase_d8,
7102 }, {
7103 .eraseblocks = { {16 * 1024 * 1024, 1} },
7104 .block_erase = spi_block_erase_60,
7105 }, {
7106 .eraseblocks = { {16 * 1024 * 1024, 1} },
7107 .block_erase = spi_block_erase_c7,
7108 }
7109 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007110 .printlock = spi_prettyprint_status_register_bp3_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007111 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007112 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007113 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007114 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00007115 },
7116
7117 {
7118 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00007119 .name = "MX25U1635E",
7120 .bustype = BUS_SPI,
7121 .manufacture_id = MACRONIX_ID,
7122 .model_id = MACRONIX_MX25U1635E,
7123 .total_size = 2048,
7124 .page_size = 256,
7125 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7126 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7128 .tested = TEST_UNTESTED,
7129 .probe = probe_spi_rdid,
7130 .probe_timing = TIMING_ZERO,
7131 .block_erasers =
7132 {
7133 {
7134 .eraseblocks = { {4 * 1024, 512} },
7135 .block_erase = spi_block_erase_20,
7136 }, {
7137 .eraseblocks = { {32 * 1024, 64} },
7138 .block_erase = spi_block_erase_52,
7139 }, {
7140 .eraseblocks = { {64 * 1024, 32} },
7141 .block_erase = spi_block_erase_d8,
7142 }, {
7143 .eraseblocks = { {2 * 1024 * 1024, 1} },
7144 .block_erase = spi_block_erase_60,
7145 }, {
7146 .eraseblocks = { {2 * 1024 * 1024, 1} },
7147 .block_erase = spi_block_erase_c7,
7148 }
7149 },
7150 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007151 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007152 .unlock = spi_disable_blockprotect,
7153 .write = spi_chip_write_256,
7154 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7155 .voltage = {1650, 2000},
7156 },
7157
7158 {
7159 .vendor = "Macronix",
7160 .name = "MX25U3235E/F",
7161 .bustype = BUS_SPI,
7162 .manufacture_id = MACRONIX_ID,
7163 .model_id = MACRONIX_MX25U3235E,
7164 .total_size = 4096,
7165 .page_size = 256,
7166 /* F model supports SFDP */
7167 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7168 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7170 .tested = TEST_OK_PREW,
7171 .probe = probe_spi_rdid,
7172 .probe_timing = TIMING_ZERO,
7173 .block_erasers =
7174 {
7175 {
7176 .eraseblocks = { {4 * 1024, 1024} },
7177 .block_erase = spi_block_erase_20,
7178 }, {
7179 .eraseblocks = { {32 * 1024, 128} },
7180 .block_erase = spi_block_erase_52,
7181 }, {
7182 .eraseblocks = { {64 * 1024, 64} },
7183 .block_erase = spi_block_erase_d8,
7184 }, {
7185 .eraseblocks = { {4 * 1024 * 1024, 1} },
7186 .block_erase = spi_block_erase_60,
7187 }, {
7188 .eraseblocks = { {4 * 1024 * 1024, 1} },
7189 .block_erase = spi_block_erase_c7,
7190 }
7191 },
7192 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007193 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007194 .unlock = spi_disable_blockprotect,
7195 .write = spi_chip_write_256,
7196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7197 .voltage = {1650, 2000},
7198 },
7199
7200 {
7201 .vendor = "Macronix",
7202 .name = "MX25U6435E/F",
7203 .bustype = BUS_SPI,
7204 .manufacture_id = MACRONIX_ID,
7205 .model_id = MACRONIX_MX25U6435E,
7206 .total_size = 8192,
7207 .page_size = 256,
7208 /* F model supports SFDP */
7209 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7210 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
7211 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7212 .tested = TEST_UNTESTED,
7213 .probe = probe_spi_rdid,
7214 .probe_timing = TIMING_ZERO,
7215 .block_erasers =
7216 {
7217 {
7218 .eraseblocks = { {4 * 1024, 2048} },
7219 .block_erase = spi_block_erase_20,
7220 }, {
7221 .eraseblocks = { {32 * 1024, 256} },
7222 .block_erase = spi_block_erase_52,
7223 }, {
7224 .eraseblocks = { {64 * 1024, 128} },
7225 .block_erase = spi_block_erase_d8,
7226 }, {
7227 .eraseblocks = { {8 * 1024 * 1024, 1} },
7228 .block_erase = spi_block_erase_60,
7229 }, {
7230 .eraseblocks = { {8 * 1024 * 1024, 1} },
7231 .block_erase = spi_block_erase_c7,
7232 }
7233 },
7234 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00007235 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Vincent Palatinf800f552013-03-15 02:03:16 +00007236 .unlock = spi_disable_blockprotect,
7237 .write = spi_chip_write_256,
7238 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7239 .voltage = {1650, 2000},
7240 },
7241
7242 {
7243 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00007244 .name = "MX25U12835F",
7245 .bustype = BUS_SPI,
7246 .manufacture_id = MACRONIX_ID,
7247 .model_id = MACRONIX_MX25U12835E,
7248 .total_size = 16384,
7249 .page_size = 256,
7250 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7251 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7252 .tested = TEST_UNTESTED,
7253 .probe = probe_spi_rdid,
7254 .probe_timing = TIMING_ZERO,
7255 .block_erasers =
7256 {
7257 {
7258 .eraseblocks = { {4 * 1024, 4096} },
7259 .block_erase = spi_block_erase_20,
7260 }, {
7261 .eraseblocks = { {32 * 1024, 512} },
7262 .block_erase = spi_block_erase_52,
7263 }, {
7264 .eraseblocks = { {64 * 1024, 256} },
7265 .block_erase = spi_block_erase_d8,
7266 }, {
7267 .eraseblocks = { {16 * 1024 * 1024, 1} },
7268 .block_erase = spi_block_erase_60,
7269 }, {
7270 .eraseblocks = { {16 * 1024 * 1024, 1} },
7271 .block_erase = spi_block_erase_c7,
7272 }
7273 },
7274 /* TODO: security register */
7275 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7276 .unlock = spi_disable_blockprotect_bp3_srwd,
7277 .write = spi_chip_write_256, /* Multi I/O supported */
7278 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7279 .voltage = {1650, 2000},
7280 },
7281
7282 {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00007283 .name = "MX25L6495F",
7284 .bustype = BUS_SPI,
7285 .manufacture_id = MACRONIX_ID,
7286 .model_id = MACRONIX_MX25L6495F,
7287 .total_size = 8192,
7288 .page_size = 256,
7289 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
7290 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7291 .tested = TEST_OK_PREW,
7292 .probe = probe_spi_rdid,
7293 .probe_timing = TIMING_ZERO,
7294 .block_erasers =
7295 {
7296 {
7297 .eraseblocks = { {4 * 1024, 2048} },
7298 .block_erase = spi_block_erase_20,
7299 }, {
7300 .eraseblocks = { {64 * 1024, 128} },
7301 .block_erase = spi_block_erase_d8,
7302 }, {
7303 .eraseblocks = { {32 * 1024, 256} },
7304 .block_erase = spi_block_erase_52,
7305 }, {
7306 .eraseblocks = { {8 * 1024 * 1024, 1} },
7307 .block_erase = spi_block_erase_60,
7308 }, {
7309 .eraseblocks = { {8 * 1024 * 1024, 1} },
7310 .block_erase = spi_block_erase_c7,
7311 }
7312 },
7313 .unlock = spi_disable_blockprotect,
7314 .write = spi_chip_write_256,
7315 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7316 .voltage = {2700, 3600},
7317 },
7318
7319 {
Martin Roth440057a2014-07-13 00:05:07 +00007320 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00007321 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007322 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007323 .manufacture_id = MACRONIX_ID,
7324 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007325 .total_size = 128,
7326 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007327 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7328 .tested = TEST_UNTESTED,
7329 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007330 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007331 .block_erasers =
7332 {
7333 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007334 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007335 {8 * 1024, 1},
7336 {4 * 1024, 2},
7337 {8 * 1024, 2},
7338 {32 * 1024, 1},
7339 {64 * 1024, 1},
7340 },
Sean Nelson35727f72010-01-28 23:55:12 +00007341 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007342 }, {
7343 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007344 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007345 }
7346 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007347 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007349 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007350 },
7351
7352 {
7353 .vendor = "Macronix",
7354 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007355 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007356 .manufacture_id = MACRONIX_ID,
7357 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007358 .total_size = 128,
7359 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007360 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00007361 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007362 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007363 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007364 .block_erasers =
7365 {
7366 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007367 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00007368 {64 * 1024, 1},
7369 {32 * 1024, 1},
7370 {8 * 1024, 2},
7371 {4 * 1024, 2},
7372 {8 * 1024, 1},
7373 },
Sean Nelson35727f72010-01-28 23:55:12 +00007374 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007375 }, {
7376 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007377 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007378 }
7379 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007380 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00007381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007382 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00007383 },
7384
7385 {
7386 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007387 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007388 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007389 .manufacture_id = MACRONIX_ID,
7390 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007391 .total_size = 256,
7392 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007394 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007395 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007396 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007397 .block_erasers =
7398 {
7399 {
7400 .eraseblocks = {
7401 {16 * 1024, 1},
7402 {8 * 1024, 2},
7403 {32 * 1024, 1},
7404 {64 * 1024, 3},
7405 },
Sean Nelson35727f72010-01-28 23:55:12 +00007406 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007407 }, {
7408 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007409 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007410 },
7411 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007412 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007414 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007415 },
7416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007417 {
7418 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007419 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007420 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007421 .manufacture_id = MACRONIX_ID,
7422 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007423 .total_size = 256,
7424 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007425 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00007426 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00007427 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007428 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007429 .block_erasers =
7430 {
7431 {
7432 .eraseblocks = {
7433 {64 * 1024, 3},
7434 {32 * 1024, 1},
7435 {8 * 1024, 2},
7436 {16 * 1024, 1},
7437 },
Sean Nelson35727f72010-01-28 23:55:12 +00007438 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007439 }, {
7440 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007441 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007442 },
7443 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007446 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007447 },
7448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007449 {
7450 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00007451 .name = "MX29F022(N)B",
7452 .bustype = BUS_PARALLEL,
7453 .manufacture_id = MACRONIX_ID,
7454 .model_id = MACRONIX_MX29F022B,
7455 .total_size = 256,
7456 .page_size = 0, /* unused */
7457 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7458 .tested = TEST_UNTESTED,
7459 .probe = probe_jedec,
7460 .probe_timing = TIMING_ZERO,
7461 .block_erasers =
7462 {
7463 {
7464 .eraseblocks = {
7465 {16 * 1024, 1},
7466 {8 * 1024, 2},
7467 {32 * 1024, 1},
7468 {64 * 1024, 3},
7469 },
7470 .block_erase = erase_sector_jedec,
7471 }, {
7472 .eraseblocks = { {256 * 1024, 1} },
7473 .block_erase = erase_chip_block_jedec,
7474 }
7475 },
7476 .write = write_jedec_1,
7477 .read = read_memmapped,
7478 .voltage = {4500, 5500},
7479 },
7480
7481 {
7482 .vendor = "Macronix",
7483 .name = "MX29F022(N)T",
7484 .bustype = BUS_PARALLEL,
7485 .manufacture_id = MACRONIX_ID,
7486 .model_id = MACRONIX_MX29F022T,
7487 .total_size = 256,
7488 .page_size = 0, /* unused */
7489 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7490 .tested = TEST_OK_PREW,
7491 .probe = probe_jedec,
7492 .probe_timing = TIMING_ZERO,
7493 .block_erasers =
7494 {
7495 {
7496 .eraseblocks = {
7497 {64 * 1024, 3},
7498 {32 * 1024, 1},
7499 {8 * 1024, 2},
7500 {16 * 1024, 1},
7501 },
7502 .block_erase = erase_sector_jedec,
7503 }, {
7504 .eraseblocks = { {256 * 1024, 1} },
7505 .block_erase = erase_chip_block_jedec,
7506 }
7507 },
7508 .write = write_jedec_1,
7509 .read = read_memmapped,
7510 .voltage = {4500, 5500},
7511 },
7512
7513 {
7514 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00007515 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007516 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007517 .manufacture_id = MACRONIX_ID,
7518 .model_id = MACRONIX_MX29F040,
7519 .total_size = 512,
7520 .page_size = 64 * 1024,
7521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7522 .tested = TEST_UNTESTED,
7523 .probe = probe_jedec,
7524 .probe_timing = TIMING_ZERO,
7525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { {64 * 1024, 8} },
7529 .block_erase = erase_sector_jedec,
7530 }, {
7531 .eraseblocks = { {512 * 1024, 1} },
7532 .block_erase = erase_chip_block_jedec,
7533 },
7534 },
7535 .write = write_jedec_1,
7536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007537 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007538 },
7539
7540 {
7541 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007542 .name = "MX29GL320EB",
7543 .bustype = BUS_PARALLEL,
7544 .manufacture_id = MACRONIX_ID,
7545 .model_id = MACRONIX_MX29GL320EB,
7546 .total_size = 4096,
7547 .page_size = 128 * 1024, /* actual page size is 16 */
7548 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7549 .tested = TEST_UNTESTED,
7550 .probe = probe_jedec_29gl,
7551 .probe_timing = TIMING_ZERO,
7552 .block_erasers =
7553 {
7554 {
7555 .eraseblocks = {
7556 {8 * 1024, 8},
7557 {64 * 1024, 63},
7558 },
7559 .block_erase = erase_sector_jedec,
7560 }, {
7561 .eraseblocks = { {4 * 1024 * 1024, 1} },
7562 .block_erase = erase_chip_block_jedec,
7563 },
7564 },
7565 .write = write_jedec_1,
7566 .read = read_memmapped,
7567 .voltage = {2700, 3600},
7568 },
7569
7570 {
7571 .vendor = "Macronix",
7572 .name = "MX29GL320ET",
7573 .bustype = BUS_PARALLEL,
7574 .manufacture_id = MACRONIX_ID,
7575 .model_id = MACRONIX_MX29GL320ET,
7576 .total_size = 4096,
7577 .page_size = 128 * 1024, /* actual page size is 16 */
7578 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7579 .tested = TEST_UNTESTED,
7580 .probe = probe_jedec_29gl,
7581 .probe_timing = TIMING_ZERO,
7582 .block_erasers =
7583 {
7584 {
7585 .eraseblocks = {
7586 {64 * 1024, 63},
7587 {8 * 1024, 8},
7588 },
7589 .block_erase = erase_sector_jedec,
7590 }, {
7591 .eraseblocks = { {4 * 1024 * 1024, 1} },
7592 .block_erase = erase_chip_block_jedec,
7593 },
7594 },
7595 .write = write_jedec_1,
7596 .read = read_memmapped,
7597 .voltage = {2700, 3600},
7598 },
7599
7600 {
7601 .vendor = "Macronix",
7602 .name = "MX29GL320EH/L",
7603 .bustype = BUS_PARALLEL,
7604 .manufacture_id = MACRONIX_ID,
7605 .model_id = MACRONIX_MX29GL320EHL,
7606 .total_size = 4096,
7607 .page_size = 128 * 1024, /* actual page size is 16 */
7608 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7609 .tested = TEST_UNTESTED,
7610 .probe = probe_jedec_29gl,
7611 .probe_timing = TIMING_ZERO,
7612 .block_erasers =
7613 {
7614 {
7615 .eraseblocks = { {64 * 1024, 64} },
7616 .block_erase = erase_sector_jedec,
7617 }, {
7618 .eraseblocks = { {4 * 1024 * 1024, 1} },
7619 .block_erase = erase_chip_block_jedec,
7620 },
7621 },
7622 .write = write_jedec_1,
7623 .read = read_memmapped,
7624 .voltage = {2700, 3600},
7625 },
7626
7627 {
7628 .vendor = "Macronix",
7629 .name = "MX29GL640EB",
7630 .bustype = BUS_PARALLEL,
7631 .manufacture_id = MACRONIX_ID,
7632 .model_id = MACRONIX_MX29GL640EB,
7633 .total_size = 8192,
7634 .page_size = 128 * 1024, /* actual page size is 16 */
7635 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7636 .tested = TEST_UNTESTED,
7637 .probe = probe_jedec_29gl,
7638 .probe_timing = TIMING_ZERO,
7639 .block_erasers =
7640 {
7641 {
7642 .eraseblocks = {
7643 {8 * 1024, 8},
7644 {64 * 1024, 127},
7645 },
7646 .block_erase = erase_sector_jedec,
7647 }, {
7648 .eraseblocks = { {8 * 1024 * 1024, 1} },
7649 .block_erase = erase_chip_block_jedec,
7650 },
7651 },
7652 .write = write_jedec_1,
7653 .read = read_memmapped,
7654 .voltage = {2700, 3600},
7655 },
7656
7657 {
7658 .vendor = "Macronix",
7659 .name = "MX29GL640ET",
7660 .bustype = BUS_PARALLEL,
7661 .manufacture_id = MACRONIX_ID,
7662 .model_id = MACRONIX_MX29GL640ET,
7663 .total_size = 8192,
7664 .page_size = 128 * 1024, /* actual page size is 16 */
7665 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7666 .tested = TEST_UNTESTED,
7667 .probe = probe_jedec_29gl,
7668 .probe_timing = TIMING_ZERO,
7669 .block_erasers =
7670 {
7671 {
7672 .eraseblocks = {
7673 {64 * 1024, 127},
7674 {8 * 1024, 8},
7675 },
7676 .block_erase = erase_sector_jedec,
7677 }, {
7678 .eraseblocks = { {8 * 1024 * 1024, 1} },
7679 .block_erase = erase_chip_block_jedec,
7680 },
7681 },
7682 .write = write_jedec_1,
7683 .read = read_memmapped,
7684 .voltage = {2700, 3600},
7685 },
7686
7687 {
7688 .vendor = "Macronix",
7689 .name = "MX29GL640EH/L",
7690 .bustype = BUS_PARALLEL,
7691 .manufacture_id = MACRONIX_ID,
7692 .model_id = MACRONIX_MX29GL640EHL,
7693 .total_size = 8192,
7694 .page_size = 128 * 1024, /* actual page size is 16 */
7695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7696 .tested = TEST_UNTESTED,
7697 .probe = probe_jedec_29gl,
7698 .probe_timing = TIMING_ZERO,
7699 .block_erasers =
7700 {
7701 {
7702 .eraseblocks = { {64 * 1024, 128} },
7703 .block_erase = erase_sector_jedec,
7704 }, {
7705 .eraseblocks = { {8 * 1024 * 1024, 1} },
7706 .block_erase = erase_chip_block_jedec,
7707 },
7708 },
7709 .write = write_jedec_1,
7710 .read = read_memmapped,
7711 .voltage = {2700, 3600},
7712 },
7713
7714 {
7715 .vendor = "Macronix",
7716 .name = "MX29GL128F",
7717 .bustype = BUS_PARALLEL,
7718 .manufacture_id = MACRONIX_ID,
7719 .model_id = MACRONIX_MX29GL128F,
7720 .total_size = 16384,
7721 .page_size = 128 * 1024, /* actual page size is 16 */
7722 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7723 .tested = TEST_UNTESTED,
7724 .probe = probe_jedec_29gl,
7725 .probe_timing = TIMING_ZERO,
7726 .block_erasers =
7727 {
7728 {
7729 .eraseblocks = { {128 * 1024, 128} },
7730 .block_erase = erase_sector_jedec,
7731 }, {
7732 .eraseblocks = { {16 * 1024 * 1024, 1} },
7733 .block_erase = erase_chip_block_jedec,
7734 },
7735 },
7736 .write = write_jedec_1,
7737 .read = read_memmapped,
7738 .voltage = {2700, 3600},
7739 },
7740
7741 {
7742 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00007743 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007744 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007745 .manufacture_id = MACRONIX_ID,
7746 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007747 .total_size = 512,
7748 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7750 .tested = TEST_UNTESTED,
7751 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007752 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007753 .block_erasers =
7754 {
7755 {
Stefan Tauner6697f712014-08-06 15:09:15 +00007756 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00007757 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007758 }, {
7759 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007760 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00007761 },
7762 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00007763 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007765 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00007766 },
7767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007768 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007769 .vendor = "Micron/Numonyx/ST",
7770 .name = "M25P05-A",
7771 .bustype = BUS_SPI,
7772 .manufacture_id = ST_ID,
7773 .model_id = ST_M25P05A,
7774 .total_size = 64,
7775 .page_size = 256,
7776 .feature_bits = FEATURE_WRSR_WREN,
7777 .tested = TEST_OK_PREW,
7778 .probe = probe_spi_rdid,
7779 .probe_timing = TIMING_ZERO,
7780 .block_erasers =
7781 {
7782 {
7783 .eraseblocks = { {32 * 1024, 2} },
7784 .block_erase = spi_block_erase_d8,
7785 }, {
7786 .eraseblocks = { {64 * 1024, 1} },
7787 .block_erase = spi_block_erase_c7,
7788 }
7789 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007790 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007791 .unlock = spi_disable_blockprotect,
7792 .write = spi_chip_write_256,
7793 .read = spi_chip_read,
7794 .voltage = {2700, 3600},
7795 },
7796
7797 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7798 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
7799 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
7800 * only is successful if RDID does not work.
7801 */
7802 {
7803 .vendor = "Micron/Numonyx/ST",
7804 .name = "M25P05",
7805 .bustype = BUS_SPI,
7806 .manufacture_id = 0, /* Not used. */
7807 .model_id = ST_M25P05_RES,
7808 .total_size = 64,
7809 .page_size = 256,
7810 .feature_bits = FEATURE_WRSR_WREN,
7811 .tested = TEST_UNTESTED,
7812 .probe = probe_spi_res1,
7813 .probe_timing = TIMING_ZERO,
7814 .block_erasers =
7815 {
7816 {
7817 .eraseblocks = { {32 * 1024, 2} },
7818 .block_erase = spi_block_erase_d8,
7819 }, {
7820 .eraseblocks = { {64 * 1024, 1} },
7821 .block_erase = spi_block_erase_c7,
7822 }
7823 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007824 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007825 .unlock = spi_disable_blockprotect,
7826 .write = spi_chip_write_1, /* 128 */
7827 .read = spi_chip_read,
7828 .voltage = {2700, 3600},
7829 },
7830
7831 {
7832 .vendor = "Micron/Numonyx/ST",
7833 .name = "M25P10-A",
7834 .bustype = BUS_SPI,
7835 .manufacture_id = ST_ID,
7836 .model_id = ST_M25P10A,
7837 .total_size = 128,
7838 .page_size = 256,
7839 .feature_bits = FEATURE_WRSR_WREN,
7840 .tested = TEST_OK_PRE,
7841 .probe = probe_spi_rdid,
7842 .probe_timing = TIMING_ZERO,
7843 .block_erasers =
7844 {
7845 {
7846 .eraseblocks = { {32 * 1024, 4} },
7847 .block_erase = spi_block_erase_d8,
7848 }, {
7849 .eraseblocks = { {128 * 1024, 1} },
7850 .block_erase = spi_block_erase_c7,
7851 }
7852 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007853 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007854 .unlock = spi_disable_blockprotect,
7855 .write = spi_chip_write_256,
7856 .read = spi_chip_read,
7857 .voltage = {2700, 3600},
7858 },
7859
7860 /* The ST M25P10 has the same problem as the M25P05. */
7861 {
7862 .vendor = "Micron/Numonyx/ST",
7863 .name = "M25P10",
7864 .bustype = BUS_SPI,
7865 .manufacture_id = 0, /* Not used. */
7866 .model_id = ST_M25P10_RES,
7867 .total_size = 128,
7868 .page_size = 256,
7869 .feature_bits = FEATURE_WRSR_WREN,
7870 .tested = TEST_UNTESTED,
7871 .probe = probe_spi_res1,
7872 .probe_timing = TIMING_ZERO,
7873 .block_erasers =
7874 {
7875 {
7876 .eraseblocks = { {32 * 1024, 4} },
7877 .block_erase = spi_block_erase_d8,
7878 }, {
7879 .eraseblocks = { {128 * 1024, 1} },
7880 .block_erase = spi_block_erase_c7,
7881 }
7882 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007883 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007884 .unlock = spi_disable_blockprotect,
7885 .write = spi_chip_write_1, /* 128 */
7886 .read = spi_chip_read,
7887 .voltage = {2700, 3600},
7888 },
7889
7890 {
7891 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7892 .name = "M25P20",
7893 .bustype = BUS_SPI,
7894 .manufacture_id = ST_ID,
7895 .model_id = ST_M25P20,
7896 .total_size = 256,
7897 .page_size = 256,
7898 .feature_bits = FEATURE_WRSR_WREN,
7899 .tested = TEST_UNTESTED,
7900 .probe = probe_spi_rdid,
7901 .probe_timing = TIMING_ZERO,
7902 .block_erasers =
7903 {
7904 {
7905 .eraseblocks = { {64 * 1024, 4} },
7906 .block_erase = spi_block_erase_d8,
7907 }, {
7908 .eraseblocks = { {256 * 1024, 1} },
7909 .block_erase = spi_block_erase_c7,
7910 }
7911 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007912 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007913 .unlock = spi_disable_blockprotect,
7914 .write = spi_chip_write_256,
7915 .read = spi_chip_read, /* Fast read (0x0B) supported */
7916 .voltage = {2700, 3600},
7917 },
7918
7919 {
7920 .vendor = "Micron/Numonyx/ST",
7921 .name = "M25P20-old",
7922 .bustype = BUS_SPI,
7923 .manufacture_id = 0, /* Not used. */
7924 .model_id = ST_M25P20_RES,
7925 .total_size = 256,
7926 .page_size = 256,
7927 .feature_bits = FEATURE_WRSR_WREN,
7928 .tested = TEST_OK_PREW,
7929 .probe = probe_spi_res1,
7930 .probe_timing = TIMING_ZERO,
7931 .block_erasers =
7932 {
7933 {
7934 .eraseblocks = { {64 * 1024, 4} },
7935 .block_erase = spi_block_erase_d8,
7936 }, {
7937 .eraseblocks = { {256 * 1024, 1} },
7938 .block_erase = spi_block_erase_c7,
7939 }
7940 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007941 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007942 .unlock = spi_disable_blockprotect,
7943 .write = spi_chip_write_256,
7944 .read = spi_chip_read, /* Fast read (0x0B) supported */
7945 .voltage = {2700, 3600},
7946 },
7947
7948 {
7949 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7950 .name = "M25P40",
7951 .bustype = BUS_SPI,
7952 .manufacture_id = ST_ID,
7953 .model_id = ST_M25P40,
7954 .total_size = 512,
7955 .page_size = 256,
7956 .feature_bits = FEATURE_WRSR_WREN,
7957 .tested = TEST_OK_PREW,
7958 .probe = probe_spi_rdid,
7959 .probe_timing = TIMING_ZERO,
7960 .block_erasers =
7961 {
7962 {
7963 .eraseblocks = { {64 * 1024, 8} },
7964 .block_erase = spi_block_erase_d8,
7965 }, {
7966 .eraseblocks = { {512 * 1024, 1} },
7967 .block_erase = spi_block_erase_c7,
7968 }
7969 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007970 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00007971 .unlock = spi_disable_blockprotect,
7972 .write = spi_chip_write_256,
7973 .read = spi_chip_read,
7974 .voltage = {2700, 3600},
7975 },
7976
7977 {
7978 .vendor = "Micron/Numonyx/ST",
7979 .name = "M25P40-old",
7980 .bustype = BUS_SPI,
7981 .manufacture_id = 0, /* Not used. */
7982 .model_id = ST_M25P40_RES,
7983 .total_size = 512,
7984 .page_size = 256,
7985 .feature_bits = FEATURE_WRSR_WREN,
7986 .tested = TEST_UNTESTED,
7987 .probe = probe_spi_res1,
7988 .probe_timing = TIMING_ZERO,
7989 .block_erasers =
7990 {
7991 {
7992 .eraseblocks = { {64 * 1024, 8} },
7993 .block_erase = spi_block_erase_d8,
7994 }, {
7995 .eraseblocks = { {512 * 1024, 1} },
7996 .block_erase = spi_block_erase_c7,
7997 }
7998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007999 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008000 .unlock = spi_disable_blockprotect,
8001 .write = spi_chip_write_256,
8002 .read = spi_chip_read,
8003 },
8004
8005 {
8006 .vendor = "Micron/Numonyx/ST",
8007 .name = "M25P80",
8008 .bustype = BUS_SPI,
8009 .manufacture_id = ST_ID,
8010 .model_id = ST_M25P80,
8011 .total_size = 1024,
8012 .page_size = 256,
8013 .feature_bits = FEATURE_WRSR_WREN,
8014 .tested = TEST_OK_PREW,
8015 .probe = probe_spi_rdid,
8016 .probe_timing = TIMING_ZERO,
8017 .block_erasers =
8018 {
8019 {
8020 .eraseblocks = { {64 * 1024, 16} },
8021 .block_erase = spi_block_erase_d8,
8022 }, {
8023 .eraseblocks = { {1024 * 1024, 1} },
8024 .block_erase = spi_block_erase_c7,
8025 }
8026 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008027 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008028 .unlock = spi_disable_blockprotect,
8029 .write = spi_chip_write_256,
8030 .read = spi_chip_read,
8031 .voltage = {2700, 3600},
8032 },
8033
8034 {
8035 .vendor = "Micron/Numonyx/ST",
8036 .name = "M25P16",
8037 .bustype = BUS_SPI,
8038 .manufacture_id = ST_ID,
8039 .model_id = ST_M25P16,
8040 .total_size = 2048,
8041 .page_size = 256,
8042 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008043 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008044 .probe = probe_spi_rdid,
8045 .probe_timing = TIMING_ZERO,
8046 .block_erasers =
8047 {
8048 {
8049 .eraseblocks = { {64 * 1024, 32} },
8050 .block_erase = spi_block_erase_d8,
8051 }, {
8052 .eraseblocks = { {2 * 1024 * 1024, 1} },
8053 .block_erase = spi_block_erase_c7,
8054 }
8055 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008056 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008057 .unlock = spi_disable_blockprotect,
8058 .write = spi_chip_write_256,
8059 .read = spi_chip_read,
8060 .voltage = {2700, 3600},
8061 },
8062
8063 {
8064 .vendor = "Micron/Numonyx/ST",
8065 .name = "M25P32",
8066 .bustype = BUS_SPI,
8067 .manufacture_id = ST_ID,
8068 .model_id = ST_M25P32,
8069 .total_size = 4096,
8070 .page_size = 256,
8071 .feature_bits = FEATURE_WRSR_WREN,
8072 .tested = TEST_OK_PREW,
8073 .probe = probe_spi_rdid,
8074 .probe_timing = TIMING_ZERO,
8075 .block_erasers =
8076 {
8077 {
8078 .eraseblocks = { {64 * 1024, 64} },
8079 .block_erase = spi_block_erase_d8,
8080 }, {
8081 .eraseblocks = { {4 * 1024 * 1024, 1} },
8082 .block_erase = spi_block_erase_c7,
8083 }
8084 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008085 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008086 .unlock = spi_disable_blockprotect,
8087 .write = spi_chip_write_256,
8088 .read = spi_chip_read,
8089 .voltage = {2700, 3600},
8090 },
8091
8092 {
8093 .vendor = "Micron/Numonyx/ST",
8094 .name = "M25P64",
8095 .bustype = BUS_SPI,
8096 .manufacture_id = ST_ID,
8097 .model_id = ST_M25P64,
8098 .total_size = 8192,
8099 .page_size = 256,
8100 .feature_bits = FEATURE_WRSR_WREN,
8101 .tested = TEST_OK_PREW,
8102 .probe = probe_spi_rdid,
8103 .probe_timing = TIMING_ZERO,
8104 .block_erasers =
8105 {
8106 {
8107 .eraseblocks = { {64 * 1024, 128} },
8108 .block_erase = spi_block_erase_d8,
8109 }, {
8110 .eraseblocks = { {8 * 1024 * 1024, 1} },
8111 .block_erase = spi_block_erase_c7,
8112 }
8113 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008114 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008115 .unlock = spi_disable_blockprotect,
8116 .write = spi_chip_write_256,
8117 .read = spi_chip_read,
8118 .voltage = {2700, 3600},
8119 },
8120
8121 {
8122 .vendor = "Micron/Numonyx/ST",
8123 .name = "M25P128",
8124 .bustype = BUS_SPI,
8125 .manufacture_id = ST_ID,
8126 .model_id = ST_M25P128,
8127 .total_size = 16384,
8128 .page_size = 256,
8129 .feature_bits = FEATURE_WRSR_WREN,
8130 .tested = TEST_OK_PREW,
8131 .probe = probe_spi_rdid,
8132 .probe_timing = TIMING_ZERO,
8133 .block_erasers =
8134 {
8135 {
8136 .eraseblocks = { {256 * 1024, 64} },
8137 .block_erase = spi_block_erase_d8,
8138 }, {
8139 .eraseblocks = { {16 * 1024 * 1024, 1} },
8140 .block_erase = spi_block_erase_c7,
8141 }
8142 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008143 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008144 .unlock = spi_disable_blockprotect,
8145 .write = spi_chip_write_256,
8146 .read = spi_chip_read,
8147 .voltage = {2700, 3600},
8148 },
8149
8150 {
8151 .vendor = "Micron/Numonyx/ST",
8152 .name = "M25PE10",
8153 .bustype = BUS_SPI,
8154 .manufacture_id = ST_ID,
8155 .model_id = ST_M25PE10,
8156 .total_size = 128,
8157 .page_size = 256,
8158 .feature_bits = FEATURE_WRSR_WREN,
8159 .tested = TEST_UNTESTED,
8160 .probe = probe_spi_rdid,
8161 .probe_timing = TIMING_ZERO,
8162 .block_erasers =
8163 {
8164 {
8165 .eraseblocks = { {4 * 1024, 32} },
8166 .block_erase = spi_block_erase_20,
8167 }, {
8168 .eraseblocks = { {64 * 1024, 2} },
8169 .block_erase = spi_block_erase_d8,
8170 }, {
8171 .eraseblocks = { {128 * 1024, 1} },
8172 .block_erase = spi_block_erase_c7,
8173 }
8174 },
8175 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8176 .unlock = spi_disable_blockprotect,
8177 .write = spi_chip_write_256,
8178 .read = spi_chip_read,
8179 .voltage = {2700, 3600},
8180 },
8181
8182 {
8183 .vendor = "Micron/Numonyx/ST",
8184 .name = "M25PE20",
8185 .bustype = BUS_SPI,
8186 .manufacture_id = ST_ID,
8187 .model_id = ST_M25PE20,
8188 .total_size = 256,
8189 .page_size = 256,
8190 .feature_bits = FEATURE_WRSR_WREN,
8191 .tested = TEST_UNTESTED,
8192 .probe = probe_spi_rdid,
8193 .probe_timing = TIMING_ZERO,
8194 .block_erasers =
8195 {
8196 {
8197 .eraseblocks = { {4 * 1024, 64} },
8198 .block_erase = spi_block_erase_20,
8199 }, {
8200 .eraseblocks = { {64 * 1024, 4} },
8201 .block_erase = spi_block_erase_d8,
8202 }, {
8203 .eraseblocks = { {256 * 1024, 1} },
8204 .block_erase = spi_block_erase_c7,
8205 }
8206 },
8207 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8208 .unlock = spi_disable_blockprotect,
8209 .write = spi_chip_write_256,
8210 .read = spi_chip_read,
8211 .voltage = {2700, 3600},
8212 },
8213
8214 {
8215 .vendor = "Micron/Numonyx/ST",
8216 .name = "M25PE40",
8217 .bustype = BUS_SPI,
8218 .manufacture_id = ST_ID,
8219 .model_id = ST_M25PE40,
8220 .total_size = 512,
8221 .page_size = 256,
8222 .feature_bits = FEATURE_WRSR_WREN,
8223 .tested = TEST_UNTESTED,
8224 .probe = probe_spi_rdid,
8225 .probe_timing = TIMING_ZERO,
8226 .block_erasers =
8227 {
8228 {
8229 .eraseblocks = { {4 * 1024, 128} },
8230 .block_erase = spi_block_erase_20,
8231 }, {
8232 .eraseblocks = { {64 * 1024, 8} },
8233 .block_erase = spi_block_erase_d8,
8234 }, {
8235 .eraseblocks = { {512 * 1024, 1} },
8236 .block_erase = spi_block_erase_c7,
8237 }
8238 },
8239 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8240 .unlock = spi_disable_blockprotect,
8241 .write = spi_chip_write_256,
8242 .read = spi_chip_read,
8243 .voltage = {2700, 3600},
8244 },
8245
8246 {
8247 .vendor = "Micron/Numonyx/ST",
8248 .name = "M25PE80",
8249 .bustype = BUS_SPI,
8250 .manufacture_id = ST_ID,
8251 .model_id = ST_M25PE80,
8252 .total_size = 1024,
8253 .page_size = 256,
8254 .feature_bits = FEATURE_WRSR_WREN,
8255 .tested = TEST_OK_PREW,
8256 .probe = probe_spi_rdid,
8257 .probe_timing = TIMING_ZERO,
8258 .block_erasers =
8259 {
8260 {
8261 .eraseblocks = { {4 * 1024, 256} },
8262 .block_erase = spi_block_erase_20,
8263 }, {
8264 .eraseblocks = { {64 * 1024, 16} },
8265 .block_erase = spi_block_erase_d8,
8266 }, {
8267 .eraseblocks = { {1024 * 1024, 1} },
8268 .block_erase = spi_block_erase_c7,
8269 }
8270 },
8271 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8272 .unlock = spi_disable_blockprotect,
8273 .write = spi_chip_write_256,
8274 .read = spi_chip_read,
8275 .voltage = {2700, 3600},
8276 },
8277
8278 {
8279 .vendor = "Micron/Numonyx/ST",
8280 .name = "M25PE16",
8281 .bustype = BUS_SPI,
8282 .manufacture_id = ST_ID,
8283 .model_id = ST_M25PE16,
8284 .total_size = 2048,
8285 .page_size = 256,
8286 .feature_bits = FEATURE_WRSR_WREN,
8287 .tested = TEST_UNTESTED,
8288 .probe = probe_spi_rdid,
8289 .probe_timing = TIMING_ZERO,
8290 .block_erasers =
8291 {
8292 {
8293 .eraseblocks = { {4 * 1024, 512} },
8294 .block_erase = spi_block_erase_20,
8295 }, {
8296 .eraseblocks = { {64 * 1024, 32} },
8297 .block_erase = spi_block_erase_d8,
8298 }, {
8299 .eraseblocks = { {2 * 1024 * 1024, 1} },
8300 .block_erase = spi_block_erase_c7,
8301 }
8302 },
8303 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
8304 .unlock = spi_disable_blockprotect,
8305 .write = spi_chip_write_256,
8306 .read = spi_chip_read,
8307 .voltage = {2700, 3600},
8308 },
8309
8310 {
8311 .vendor = "Micron/Numonyx/ST",
8312 .name = "M25PX80",
8313 .bustype = BUS_SPI,
8314 .manufacture_id = ST_ID,
8315 .model_id = ST_M25PX80,
8316 .total_size = 1024,
8317 .page_size = 256,
8318 /* OTP: 64B total; read 0x4B, write 0x42 */
8319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8320 .tested = TEST_OK_PREW,
8321 .probe = probe_spi_rdid,
8322 .probe_timing = TIMING_ZERO,
8323 .block_erasers = {
8324 {
8325 .eraseblocks = { { 4 * 1024, 256 } },
8326 .block_erase = spi_block_erase_20,
8327 }, {
8328 .eraseblocks = { {64 * 1024, 16} },
8329 .block_erase = spi_block_erase_d8,
8330 }, {
8331 .eraseblocks = { {1024 * 1024, 1} },
8332 .block_erase = spi_block_erase_c7,
8333 }
8334 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008335 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008336 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8337 .write = spi_chip_write_256,
8338 .read = spi_chip_read,
8339 .voltage = {2700, 3600},
8340 },
8341
8342 {
8343 .vendor = "Micron/Numonyx/ST",
8344 .name = "M25PX16",
8345 .bustype = BUS_SPI,
8346 .manufacture_id = ST_ID,
8347 .model_id = ST_M25PX16,
8348 .total_size = 2048,
8349 .page_size = 256,
8350 /* OTP: 64B total; read 0x4B; write 0x42 */
8351 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8352 .tested = TEST_OK_PREW,
8353 .probe = probe_spi_rdid,
8354 .probe_timing = TIMING_ZERO,
8355 .block_erasers =
8356 {
8357 {
8358 .eraseblocks = { { 4 * 1024, 512 } },
8359 .block_erase = spi_block_erase_20,
8360 }, {
8361 .eraseblocks = { {64 * 1024, 32} },
8362 .block_erase = spi_block_erase_d8,
8363 }, {
8364 .eraseblocks = { {2 * 1024 * 1024, 1} },
8365 .block_erase = spi_block_erase_c7,
8366 }
8367 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008368 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008369 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8370 .write = spi_chip_write_256,
8371 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008372 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008373 },
8374
8375 {
8376 .vendor = "Micron/Numonyx/ST",
8377 .name = "M25PX32",
8378 .bustype = BUS_SPI,
8379 .manufacture_id = ST_ID,
8380 .model_id = ST_M25PX32,
8381 .total_size = 4096,
8382 .page_size = 256,
8383 /* OTP: 64B total; read 0x4B; write 0x42 */
8384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8385 .tested = TEST_OK_PRE,
8386 .probe = probe_spi_rdid,
8387 .probe_timing = TIMING_ZERO,
8388 .block_erasers =
8389 {
8390 {
8391 .eraseblocks = { { 4 * 1024, 1024 } },
8392 .block_erase = spi_block_erase_20,
8393 }, {
8394 .eraseblocks = { {64 * 1024, 64} },
8395 .block_erase = spi_block_erase_d8,
8396 }, {
8397 .eraseblocks = { {4 * 1024 * 1024, 1} },
8398 .block_erase = spi_block_erase_c7,
8399 }
8400 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008401 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008402 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8403 .write = spi_chip_write_256,
8404 .read = spi_chip_read,
8405 .voltage = {2700, 3600},
8406 },
8407
8408 {
8409 .vendor = "Micron/Numonyx/ST",
8410 .name = "M25PX64",
8411 .bustype = BUS_SPI,
8412 .manufacture_id = ST_ID,
8413 .model_id = ST_M25PX64,
8414 .total_size = 8192,
8415 .page_size = 256,
8416 /* OTP: 64B total; read 0x4B; write 0x42 */
8417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008418 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008419 .probe = probe_spi_rdid,
8420 .probe_timing = TIMING_ZERO,
8421 .block_erasers =
8422 {
8423 {
8424 .eraseblocks = { { 4 * 1024, 2048 } },
8425 .block_erase = spi_block_erase_20,
8426 }, {
8427 .eraseblocks = { {64 * 1024, 128} },
8428 .block_erase = spi_block_erase_d8,
8429 }, {
8430 .eraseblocks = { {8 * 1024 * 1024, 1} },
8431 .block_erase = spi_block_erase_c7,
8432 }
8433 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008434 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008435 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
8436 .write = spi_chip_write_256,
8437 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008438 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008439 },
8440
8441 {
8442 .vendor = "Micron/Numonyx/ST",
8443 .name = "M45PE10",
8444 .bustype = BUS_SPI,
8445 .manufacture_id = ST_ID,
8446 .model_id = ST_M45PE10,
8447 .total_size = 128,
8448 .page_size = 256,
8449 .tested = TEST_UNTESTED,
8450 .probe = probe_spi_rdid,
8451 .probe_timing = TIMING_ZERO,
8452 .block_erasers = {
8453 {
8454 .eraseblocks = { {256, 512} },
8455 .block_erase = spi_block_erase_db,
8456 }, {
8457 .eraseblocks = { {64 * 1024, 2} },
8458 .block_erase = spi_block_erase_d8,
8459 }
8460 },
8461 .printlock = spi_prettyprint_status_register_default_welwip,
8462 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8463 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8464 .read = spi_chip_read, /* Fast read (0x0B) supported */
8465 .voltage = {2700, 3600},
8466 },
8467
8468 {
8469 .vendor = "Micron/Numonyx/ST",
8470 .name = "M45PE20",
8471 .bustype = BUS_SPI,
8472 .manufacture_id = ST_ID,
8473 .model_id = ST_M45PE20,
8474 .total_size = 256,
8475 .page_size = 256,
8476 .tested = TEST_UNTESTED,
8477 .probe = probe_spi_rdid,
8478 .probe_timing = TIMING_ZERO,
8479 .block_erasers = {
8480 {
8481 .eraseblocks = { {256, 1024} },
8482 .block_erase = spi_block_erase_db,
8483 }, {
8484 .eraseblocks = { {64 * 1024, 4} },
8485 .block_erase = spi_block_erase_d8,
8486 }
8487 },
8488 .printlock = spi_prettyprint_status_register_default_welwip,
8489 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8490 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8491 .read = spi_chip_read, /* Fast read (0x0B) supported */
8492 .voltage = {2700, 3600},
8493 },
8494
8495 {
8496 .vendor = "Micron/Numonyx/ST",
8497 .name = "M45PE40",
8498 .bustype = BUS_SPI,
8499 .manufacture_id = ST_ID,
8500 .model_id = ST_M45PE40,
8501 .total_size = 512,
8502 .page_size = 256,
8503 .tested = TEST_UNTESTED,
8504 .probe = probe_spi_rdid,
8505 .probe_timing = TIMING_ZERO,
8506 .block_erasers = {
8507 {
8508 .eraseblocks = { {256, 2048} },
8509 .block_erase = spi_block_erase_db,
8510 }, {
8511 .eraseblocks = { {64 * 1024, 8} },
8512 .block_erase = spi_block_erase_d8,
8513 }
8514 },
8515 .printlock = spi_prettyprint_status_register_default_welwip,
8516 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8517 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8518 .read = spi_chip_read, /* Fast read (0x0B) supported */
8519 .voltage = {2700, 3600},
8520 },
8521
8522 {
8523 .vendor = "Micron/Numonyx/ST",
8524 .name = "M45PE80",
8525 .bustype = BUS_SPI,
8526 .manufacture_id = ST_ID,
8527 .model_id = ST_M45PE80,
8528 .total_size = 1024,
8529 .page_size = 256,
8530 .tested = TEST_UNTESTED,
8531 .probe = probe_spi_rdid,
8532 .probe_timing = TIMING_ZERO,
8533 .block_erasers = {
8534 {
8535 .eraseblocks = { {256, 4096} },
8536 .block_erase = spi_block_erase_db,
8537 }, {
8538 .eraseblocks = { {64 * 1024, 16} },
8539 .block_erase = spi_block_erase_d8,
8540 }
8541 },
8542 .printlock = spi_prettyprint_status_register_default_welwip,
8543 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8544 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8545 .read = spi_chip_read, /* Fast read (0x0B) supported */
8546 .voltage = {2700, 3600},
8547 },
8548
8549 {
8550 .vendor = "Micron/Numonyx/ST",
8551 .name = "M45PE16",
8552 .bustype = BUS_SPI,
8553 .manufacture_id = ST_ID,
8554 .model_id = ST_M45PE16,
8555 .total_size = 2048,
8556 .page_size = 256,
8557 .tested = TEST_UNTESTED,
8558 .probe = probe_spi_rdid,
8559 .probe_timing = TIMING_ZERO,
8560 .block_erasers = {
8561 {
8562 .eraseblocks = { {256, 8192} },
8563 .block_erase = spi_block_erase_db,
8564 }, {
8565 .eraseblocks = { {64 * 1024, 32} },
8566 .block_erase = spi_block_erase_d8,
8567 }
8568 },
8569 .printlock = spi_prettyprint_status_register_default_welwip,
8570 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8571 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
8572 .read = spi_chip_read, /* Fast read (0x0B) supported */
8573 .voltage = {2700, 3600},
8574 },
8575
8576 {
8577 .vendor = "Micron/Numonyx/ST",
8578 .name = "N25Q016",
8579 .bustype = BUS_SPI,
8580 .manufacture_id = ST_ID,
8581 .model_id = ST_N25Q016__1E,
8582 .total_size = 2048,
8583 .page_size = 256,
8584 /* supports SFDP */
8585 /* OTP: 64B total; read 0x4B, write 0x42 */
8586 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8587 .tested = TEST_UNTESTED,
8588 .probe = probe_spi_rdid,
8589 .probe_timing = TIMING_ZERO,
8590 .block_erasers =
8591 {
8592 {
8593 .eraseblocks = { {4 * 1024, 512} },
8594 .block_erase = spi_block_erase_20,
8595 }, {
8596 .eraseblocks = { {32 * 1024, 64} },
8597 .block_erase = spi_block_erase_52,
8598 }, {
8599 .eraseblocks = { {64 * 1024, 32} },
8600 .block_erase = spi_block_erase_d8,
8601 }, {
8602 .eraseblocks = { {2 * 1024 * 1024, 1} },
8603 .block_erase = spi_block_erase_c7,
8604 }
8605 },
8606 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8607 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8608 .write = spi_chip_write_256, /* Multi I/O supported */
8609 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8610 .voltage = {1700, 2000},
8611 },
8612
8613 {
8614 .vendor = "Micron/Numonyx/ST",
8615 .name = "N25Q032..1E",
8616 .bustype = BUS_SPI,
8617 .manufacture_id = ST_ID,
8618 .model_id = ST_N25Q032__1E,
8619 .total_size = 4096,
8620 .page_size = 256,
8621 /* supports SFDP */
8622 /* OTP: 64B total; read 0x4B, write 0x42 */
8623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8624 .tested = TEST_UNTESTED,
8625 .probe = probe_spi_rdid,
8626 .probe_timing = TIMING_ZERO,
8627 .block_erasers =
8628 {
8629 {
8630 .eraseblocks = { {4 * 1024, 1024} },
8631 .block_erase = spi_block_erase_20,
8632 }, {
8633 .eraseblocks = { {64 * 1024, 64} },
8634 .block_erase = spi_block_erase_d8,
8635 }, {
8636 .eraseblocks = { {4 * 1024 * 1024, 1} },
8637 .block_erase = spi_block_erase_c7,
8638 }
8639 },
8640 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8641 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8642 .write = spi_chip_write_256, /* Multi I/O supported */
8643 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8644 .voltage = {1700, 2000},
8645 },
8646
8647 {
8648 .vendor = "Micron/Numonyx/ST",
8649 .name = "N25Q032..3E",
8650 .bustype = BUS_SPI,
8651 .manufacture_id = ST_ID,
8652 .model_id = ST_N25Q032__3E,
8653 .total_size = 4096,
8654 .page_size = 256,
8655 /* supports SFDP */
8656 /* OTP: 64B total; read 0x4B, write 0x42 */
8657 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8658 .tested = TEST_OK_PREW,
8659 .probe = probe_spi_rdid,
8660 .probe_timing = TIMING_ZERO,
8661 .block_erasers =
8662 {
8663 {
8664 .eraseblocks = { {4 * 1024, 1024} },
8665 .block_erase = spi_block_erase_20,
8666 }, {
8667 .eraseblocks = { {64 * 1024, 64} },
8668 .block_erase = spi_block_erase_d8,
8669 }, {
8670 .eraseblocks = { {4 * 1024 * 1024, 1} },
8671 .block_erase = spi_block_erase_c7,
8672 }
8673 },
8674 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8675 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8676 .write = spi_chip_write_256, /* Multi I/O supported */
8677 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8678 .voltage = {2700, 3600},
8679 },
8680
8681 {
8682 .vendor = "Micron/Numonyx/ST",
8683 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8684 .bustype = BUS_SPI,
8685 .manufacture_id = ST_ID,
8686 .model_id = ST_N25Q064__1E,
8687 .total_size = 8192,
8688 .page_size = 256,
8689 /* supports SFDP */
8690 /* OTP: 64B total; read 0x4B, write 0x42 */
8691 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008692 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008693 .probe = probe_spi_rdid,
8694 .probe_timing = TIMING_ZERO,
8695 .block_erasers =
8696 {
8697 {
8698 .eraseblocks = { {4 * 1024, 2048 } },
8699 .block_erase = spi_block_erase_20,
8700 }, {
8701 .eraseblocks = { {64 * 1024, 128} },
8702 .block_erase = spi_block_erase_d8,
8703 }, {
8704 .eraseblocks = { {8 * 1024 * 1024, 1} },
8705 .block_erase = spi_block_erase_c7,
8706 }
8707 },
8708 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8709 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8710 .write = spi_chip_write_256, /* Multi I/O supported */
8711 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8712 .voltage = {1700, 2000},
8713 },
8714
8715 {
8716 .vendor = "Micron/Numonyx/ST",
8717 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8718 .bustype = BUS_SPI,
8719 .manufacture_id = ST_ID,
8720 .model_id = ST_N25Q064__3E,
8721 .total_size = 8192,
8722 .page_size = 256,
8723 /* supports SFDP */
8724 /* OTP: 64B total; read 0x4B, write 0x42 */
8725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8726 .tested = TEST_OK_PREW,
8727 .probe = probe_spi_rdid,
8728 .probe_timing = TIMING_ZERO,
8729 .block_erasers =
8730 {
8731 {
8732 .eraseblocks = { {4 * 1024, 2048 } },
8733 .block_erase = spi_block_erase_20,
8734 }, {
8735 .eraseblocks = { {64 * 1024, 128} },
8736 .block_erase = spi_block_erase_d8,
8737 }, {
8738 .eraseblocks = { {8 * 1024 * 1024, 1} },
8739 .block_erase = spi_block_erase_c7,
8740 }
8741 },
8742 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8743 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8744 .write = spi_chip_write_256, /* Multi I/O supported */
8745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8746 .voltage = {2700, 3600},
8747 },
8748
8749 {
8750 .vendor = "Micron/Numonyx/ST",
8751 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
8752 .bustype = BUS_SPI,
8753 .manufacture_id = ST_ID,
8754 .model_id = ST_N25Q128__1E,
8755 .total_size = 16384,
8756 .page_size = 256,
8757 /* supports SFDP */
8758 /* OTP: 64B total; read 0x4B, write 0x42 */
8759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8760 .tested = TEST_UNTESTED,
8761 .probe = probe_spi_rdid,
8762 .probe_timing = TIMING_ZERO,
8763 .block_erasers = {
8764 {
8765 .eraseblocks = { {4 * 1024, 4096 } },
8766 .block_erase = spi_block_erase_20,
8767 }, {
8768 .eraseblocks = { {64 * 1024, 256} },
8769 .block_erase = spi_block_erase_d8,
8770 }, {
8771 .eraseblocks = { {16384 * 1024, 1} },
8772 .block_erase = spi_block_erase_c7,
8773 }
8774 },
8775 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8776 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8777 .write = spi_chip_write_256, /* Multi I/O supported */
8778 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8779 .voltage = {1700, 2000},
8780 },
8781
8782 {
8783 .vendor = "Micron/Numonyx/ST",
8784 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
8785 .bustype = BUS_SPI,
8786 .manufacture_id = ST_ID,
8787 .model_id = ST_N25Q128__3E,
8788 .total_size = 16384,
8789 .page_size = 256,
8790 /* supports SFDP */
8791 /* OTP: 64B total; read 0x4B, write 0x42 */
8792 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8793 .tested = TEST_OK_PREW,
8794 .probe = probe_spi_rdid,
8795 .probe_timing = TIMING_ZERO,
8796 .block_erasers = {
8797 {
8798 .eraseblocks = { {4 * 1024, 4096 } },
8799 .block_erase = spi_block_erase_20,
8800 }, {
8801 .eraseblocks = { {64 * 1024, 256} },
8802 .block_erase = spi_block_erase_d8,
8803 }, {
8804 .eraseblocks = { {16384 * 1024, 1} },
8805 .block_erase = spi_block_erase_c7,
8806 }
8807 },
8808 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
8809 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
8810 .write = spi_chip_write_256, /* Multi I/O supported */
8811 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8812 .voltage = {2700, 3600},
8813 },
8814
8815 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008816 .vendor = "MoselVitelic",
8817 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008818 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008819 .manufacture_id = SYNCMOS_MVC_ID,
8820 .model_id = MVC_V29C51000B,
8821 .total_size = 64,
8822 .page_size = 512,
8823 .feature_bits = FEATURE_EITHER_RESET,
8824 .tested = TEST_UNTESTED,
8825 .probe = probe_jedec,
8826 .probe_timing = TIMING_ZERO,
8827 .block_erasers =
8828 {
8829 {
8830 .eraseblocks = { {512, 128} },
8831 .block_erase = erase_sector_jedec,
8832 }, {
8833 .eraseblocks = { {64 * 1024, 1} },
8834 .block_erase = erase_chip_block_jedec,
8835 },
8836 },
8837 .write = write_jedec_1,
8838 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008839 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008840 },
8841
8842 {
8843 .vendor = "MoselVitelic",
8844 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008845 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008846 .manufacture_id = SYNCMOS_MVC_ID,
8847 .model_id = MVC_V29C51000T,
8848 .total_size = 64,
8849 .page_size = 512,
8850 .feature_bits = FEATURE_EITHER_RESET,
8851 .tested = TEST_UNTESTED,
8852 .probe = probe_jedec,
8853 .probe_timing = TIMING_ZERO,
8854 .block_erasers =
8855 {
8856 {
8857 .eraseblocks = { {512, 128} },
8858 .block_erase = erase_sector_jedec,
8859 }, {
8860 .eraseblocks = { {64 * 1024, 1} },
8861 .block_erase = erase_chip_block_jedec,
8862 },
8863 },
8864 .write = write_jedec_1,
8865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008866 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008867 },
8868
8869 {
8870 .vendor = "MoselVitelic",
8871 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008872 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008873 .manufacture_id = SYNCMOS_MVC_ID,
8874 .model_id = MVC_V29C51400B,
8875 .total_size = 512,
8876 .page_size = 1024,
8877 .feature_bits = FEATURE_EITHER_RESET,
8878 .tested = TEST_UNTESTED,
8879 .probe = probe_jedec,
8880 .probe_timing = TIMING_ZERO,
8881 .block_erasers =
8882 {
8883 {
8884 .eraseblocks = { {1024, 512} },
8885 .block_erase = erase_sector_jedec,
8886 }, {
8887 .eraseblocks = { {512 * 1024, 1} },
8888 .block_erase = erase_chip_block_jedec,
8889 },
8890 },
8891 .write = write_jedec_1,
8892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008893 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008894 },
8895
8896 {
8897 .vendor = "MoselVitelic",
8898 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008899 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008900 .manufacture_id = SYNCMOS_MVC_ID,
8901 .model_id = MVC_V29C51400T,
8902 .total_size = 512,
8903 .page_size = 1024,
8904 .feature_bits = FEATURE_EITHER_RESET,
8905 .tested = TEST_UNTESTED,
8906 .probe = probe_jedec,
8907 .probe_timing = TIMING_ZERO,
8908 .block_erasers =
8909 {
8910 {
8911 .eraseblocks = { {1024, 512} },
8912 .block_erase = erase_sector_jedec,
8913 }, {
8914 .eraseblocks = { {512 * 1024, 1} },
8915 .block_erase = erase_chip_block_jedec,
8916 },
8917 },
8918 .write = write_jedec_1,
8919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008920 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008921 },
8922
8923 {
8924 .vendor = "MoselVitelic",
8925 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008926 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008927 .manufacture_id = SYNCMOS_MVC_ID,
8928 .model_id = MVC_V29LC51000,
8929 .total_size = 64,
8930 .page_size = 512,
8931 .feature_bits = FEATURE_EITHER_RESET,
8932 .tested = TEST_UNTESTED,
8933 .probe = probe_jedec,
8934 .probe_timing = TIMING_ZERO,
8935 .block_erasers =
8936 {
8937 {
8938 .eraseblocks = { {512, 128} },
8939 .block_erase = erase_sector_jedec,
8940 }, {
8941 .eraseblocks = { {64 * 1024, 1} },
8942 .block_erase = erase_chip_block_jedec,
8943 },
8944 },
8945 .write = write_jedec_1,
8946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008947 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008948 },
8949
8950 {
8951 .vendor = "MoselVitelic",
8952 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008953 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008954 .manufacture_id = SYNCMOS_MVC_ID,
8955 .model_id = MVC_V29LC51001,
8956 .total_size = 128,
8957 .page_size = 512,
8958 .feature_bits = FEATURE_EITHER_RESET,
8959 .tested = TEST_UNTESTED,
8960 .probe = probe_jedec,
8961 .probe_timing = TIMING_ZERO,
8962 .block_erasers =
8963 {
8964 {
8965 .eraseblocks = { {512, 256} },
8966 .block_erase = erase_sector_jedec,
8967 }, {
8968 .eraseblocks = { {128 * 1024, 1} },
8969 .block_erase = erase_chip_block_jedec,
8970 },
8971 },
8972 .write = write_jedec_1,
8973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008974 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008975 },
8976
8977 {
8978 .vendor = "MoselVitelic",
8979 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008980 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008981 .manufacture_id = SYNCMOS_MVC_ID,
8982 .model_id = MVC_V29LC51002,
8983 .total_size = 256,
8984 .page_size = 512,
8985 .feature_bits = FEATURE_EITHER_RESET,
8986 .tested = TEST_UNTESTED,
8987 .probe = probe_jedec,
8988 .probe_timing = TIMING_ZERO,
8989 .block_erasers =
8990 {
8991 {
8992 .eraseblocks = { {512, 512} },
8993 .block_erase = erase_sector_jedec,
8994 }, {
8995 .eraseblocks = { {256 * 1024, 1} },
8996 .block_erase = erase_chip_block_jedec,
8997 },
8998 },
8999 .write = write_jedec_1,
9000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009001 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00009002 },
9003
9004 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009005 .vendor = "Nantronics",
9006 .name = "N25S10",
9007 .bustype = BUS_SPI,
9008 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9009 .model_id = NANTRONICS_N25S10,
9010 .total_size = 128,
9011 .page_size = 256,
9012 .feature_bits = FEATURE_WRSR_WREN,
9013 .tested = TEST_UNTESTED,
9014 .probe = probe_spi_rdid,
9015 .probe_timing = TIMING_ZERO,
9016 .block_erasers =
9017 {
9018 {
9019 .eraseblocks = { {4 * 1024, 32} },
9020 .block_erase = spi_block_erase_20,
9021 }, {
9022 .eraseblocks = { {4 * 1024, 32} },
9023 .block_erase = spi_block_erase_d7,
9024 }, {
9025 .eraseblocks = { {32 * 1024, 4} },
9026 .block_erase = spi_block_erase_52,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 2} },
9029 .block_erase = spi_block_erase_d8,
9030 }, {
9031 .eraseblocks = { {128 * 1024, 1} },
9032 .block_erase = spi_block_erase_60,
9033 }, {
9034 .eraseblocks = { {128 * 1024, 1} },
9035 .block_erase = spi_block_erase_c7,
9036 }
9037 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009038 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009039 .unlock = spi_disable_blockprotect_bp3_srwd,
9040 .write = spi_chip_write_256,
9041 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9042 .voltage = {2700, 3600},
9043 },
9044
9045 {
9046 .vendor = "Nantronics",
9047 .name = "N25S20",
9048 .bustype = BUS_SPI,
9049 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9050 .model_id = NANTRONICS_N25S20,
9051 .total_size = 256,
9052 .page_size = 256,
9053 .feature_bits = FEATURE_WRSR_WREN,
9054 .tested = TEST_UNTESTED,
9055 .probe = probe_spi_rdid,
9056 .probe_timing = TIMING_ZERO,
9057 .block_erasers =
9058 {
9059 {
9060 .eraseblocks = { {4 * 1024, 64} },
9061 .block_erase = spi_block_erase_20,
9062 }, {
9063 .eraseblocks = { {4 * 1024, 64} },
9064 .block_erase = spi_block_erase_d7,
9065 }, {
9066 .eraseblocks = { {32 * 1024, 8} },
9067 .block_erase = spi_block_erase_52,
9068 }, {
9069 .eraseblocks = { {64 * 1024, 4} },
9070 .block_erase = spi_block_erase_d8,
9071 }, {
9072 .eraseblocks = { {256 * 1024, 1} },
9073 .block_erase = spi_block_erase_60,
9074 }, {
9075 .eraseblocks = { {256 * 1024, 1} },
9076 .block_erase = spi_block_erase_c7,
9077 }
9078 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009079 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009080 .unlock = spi_disable_blockprotect_bp3_srwd,
9081 .write = spi_chip_write_256,
9082 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9083 .voltage = {2700, 3600},
9084 },
9085
9086 {
9087 .vendor = "Nantronics",
9088 .name = "N25S40",
9089 .bustype = BUS_SPI,
9090 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9091 .model_id = NANTRONICS_N25S40,
9092 .total_size = 512,
9093 .page_size = 256,
9094 .feature_bits = FEATURE_WRSR_WREN,
9095 .tested = TEST_UNTESTED,
9096 .probe = probe_spi_rdid,
9097 .probe_timing = TIMING_ZERO,
9098 .block_erasers =
9099 {
9100 {
9101 .eraseblocks = { {4 * 1024, 128} },
9102 .block_erase = spi_block_erase_20,
9103 }, {
9104 .eraseblocks = { {4 * 1024, 128} },
9105 .block_erase = spi_block_erase_d7,
9106 }, {
9107 .eraseblocks = { {32 * 1024, 16} },
9108 .block_erase = spi_block_erase_52,
9109 }, {
9110 .eraseblocks = { {64 * 1024, 8} },
9111 .block_erase = spi_block_erase_d8,
9112 }, {
9113 .eraseblocks = { {512 * 1024, 1} },
9114 .block_erase = spi_block_erase_60,
9115 }, {
9116 .eraseblocks = { {512 * 1024, 1} },
9117 .block_erase = spi_block_erase_c7,
9118 }
9119 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009120 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009121 .unlock = spi_disable_blockprotect_bp3_srwd,
9122 .write = spi_chip_write_256,
9123 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9124 .voltage = {2700, 3600},
9125 },
9126
9127 {
9128 .vendor = "Nantronics",
9129 .name = "N25S80",
9130 .bustype = BUS_SPI,
9131 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9132 .model_id = NANTRONICS_N25S80,
9133 .total_size = 1024,
9134 .page_size = 256,
9135 .feature_bits = FEATURE_WRSR_WREN,
9136 .tested = TEST_UNTESTED,
9137 .probe = probe_spi_rdid,
9138 .probe_timing = TIMING_ZERO,
9139 .block_erasers =
9140 {
9141 {
9142 .eraseblocks = { {4 * 1024, 256} },
9143 .block_erase = spi_block_erase_20,
9144 }, {
9145 .eraseblocks = { {32 * 1024, 32} },
9146 .block_erase = spi_block_erase_52,
9147 }, {
9148 .eraseblocks = { {64 * 1024, 16} },
9149 .block_erase = spi_block_erase_d8,
9150 }, {
9151 .eraseblocks = { {1024 * 1024, 1} },
9152 .block_erase = spi_block_erase_60,
9153 }, {
9154 .eraseblocks = { {1024 * 1024, 1} },
9155 .block_erase = spi_block_erase_c7,
9156 }
9157 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009158 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009159 .unlock = spi_disable_blockprotect_bp3_srwd,
9160 .write = spi_chip_write_256,
9161 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9162 .voltage = {2700, 3600},
9163 },
9164
9165 {
9166 .vendor = "Nantronics",
9167 .name = "N25S16",
9168 .bustype = BUS_SPI,
9169 .manufacture_id = NANTRONICS_ID_NOPREFIX,
9170 .model_id = NANTRONICS_N25S16,
9171 .total_size = 2048,
9172 .page_size = 256,
9173 .feature_bits = FEATURE_WRSR_WREN,
9174 .tested = TEST_UNTESTED,
9175 .probe = probe_spi_rdid,
9176 .probe_timing = TIMING_ZERO,
9177 .block_erasers =
9178 {
9179 {
9180 .eraseblocks = { {4 * 1024, 512} },
9181 .block_erase = spi_block_erase_20,
9182 }, {
9183 .eraseblocks = { {64 * 1024, 32} },
9184 .block_erase = spi_block_erase_d8,
9185 }, {
9186 .eraseblocks = { {2048 * 1024, 1} },
9187 .block_erase = spi_block_erase_60,
9188 }, {
9189 .eraseblocks = { {2048 * 1024, 1} },
9190 .block_erase = spi_block_erase_c7,
9191 }
9192 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009193 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +00009194 .unlock = spi_disable_blockprotect_bp3_srwd,
9195 .write = spi_chip_write_256,
9196 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
9197 .voltage = {2700, 3600},
9198 },
9199
9200 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009201 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00009202 .name = "Pm25LD256C",
9203 .bustype = BUS_SPI,
9204 .manufacture_id = PMC_ID,
9205 .model_id = PMC_PM25LD256C,
9206 .total_size = 32,
9207 .page_size = 256,
9208 .feature_bits = FEATURE_WRSR_WREN,
9209 .tested = TEST_UNTESTED,
9210 .probe = probe_spi_rdid,
9211 .probe_timing = TIMING_ZERO,
9212 .block_erasers =
9213 {
9214 {
9215 .eraseblocks = { {4 * 1024, 8} },
9216 .block_erase = spi_block_erase_20,
9217 }, {
9218 .eraseblocks = { {4 * 1024, 8} },
9219 .block_erase = spi_block_erase_d7,
9220 }, {
9221 .eraseblocks = { {32 * 1024, 1} },
9222 .block_erase = spi_block_erase_d8,
9223 }, {
9224 .eraseblocks = { {32 * 1024, 1} },
9225 .block_erase = spi_block_erase_60,
9226 }, {
9227 .eraseblocks = { {32 * 1024, 1} },
9228 .block_erase = spi_block_erase_c7,
9229 }
9230 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009231 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009232 .unlock = spi_disable_blockprotect,
9233 .write = spi_chip_write_256,
9234 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9235 .voltage = {2700, 3600},
9236 },
9237 {
9238 .vendor = "PMC",
9239 .name = "Pm25LD512(C)",
9240 .bustype = BUS_SPI,
9241 .manufacture_id = PMC_ID,
9242 .model_id = PMC_PM25LD512,
9243 .total_size = 64,
9244 .page_size = 256,
9245 .feature_bits = FEATURE_WRSR_WREN,
9246 .tested = TEST_OK_PREW,
9247 .probe = probe_spi_rdid,
9248 .probe_timing = TIMING_ZERO,
9249 .block_erasers =
9250 {
9251 {
9252 .eraseblocks = { {4 * 1024, 16} },
9253 .block_erase = spi_block_erase_20,
9254 }, {
9255 .eraseblocks = { {4 * 1024, 16} },
9256 .block_erase = spi_block_erase_d7,
9257 }, {
9258 .eraseblocks = { {32 * 1024, 2} },
9259 .block_erase = spi_block_erase_d8,
9260 }, {
9261 .eraseblocks = { {64 * 1024, 1} },
9262 .block_erase = spi_block_erase_60,
9263 }, {
9264 .eraseblocks = { {64 * 1024, 1} },
9265 .block_erase = spi_block_erase_c7,
9266 }
9267 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009268 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009269 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9270 .write = spi_chip_write_256,
9271 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9272 .voltage = {2300, 3600},
9273 },
9274
9275 {
9276 .vendor = "PMC",
9277 .name = "Pm25LD010(C)",
9278 .bustype = BUS_SPI,
9279 .manufacture_id = PMC_ID,
9280 .model_id = PMC_PM25LD010,
9281 .total_size = 128,
9282 .page_size = 256,
9283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009284 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +00009285 .probe = probe_spi_rdid,
9286 .probe_timing = TIMING_ZERO,
9287 .block_erasers =
9288 {
9289 {
9290 .eraseblocks = { {4 * 1024, 32} },
9291 .block_erase = spi_block_erase_20,
9292 }, {
9293 .eraseblocks = { {4 * 1024, 32} },
9294 .block_erase = spi_block_erase_d7,
9295 }, {
9296 .eraseblocks = { {32 * 1024, 4} },
9297 .block_erase = spi_block_erase_d8,
9298 }, {
9299 .eraseblocks = { {128 * 1024, 1} },
9300 .block_erase = spi_block_erase_60,
9301 }, {
9302 .eraseblocks = { {128 * 1024, 1} },
9303 .block_erase = spi_block_erase_c7,
9304 }
9305 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009306 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009307 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9308 .write = spi_chip_write_256,
9309 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9310 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
9311 },
9312
9313 {
9314 .vendor = "PMC",
9315 .name = "Pm25LD020(C)",
9316 .bustype = BUS_SPI,
9317 .manufacture_id = PMC_ID,
9318 .model_id = PMC_PM25LD020,
9319 .total_size = 256,
9320 .page_size = 256,
9321 .feature_bits = FEATURE_WRSR_WREN,
9322 .tested = TEST_UNTESTED,
9323 .probe = probe_spi_rdid,
9324 .probe_timing = TIMING_ZERO,
9325 .block_erasers =
9326 {
9327 {
9328 .eraseblocks = { {4 * 1024, 64} },
9329 .block_erase = spi_block_erase_20,
9330 }, {
9331 .eraseblocks = { {4 * 1024, 64} },
9332 .block_erase = spi_block_erase_d7,
9333 }, {
9334 .eraseblocks = { {64 * 1024, 4} },
9335 .block_erase = spi_block_erase_d8,
9336 }, {
9337 .eraseblocks = { {256 * 1024, 1} },
9338 .block_erase = spi_block_erase_60,
9339 }, {
9340 .eraseblocks = { {256 * 1024, 1} },
9341 .block_erase = spi_block_erase_c7,
9342 }
9343 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009344 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009345 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
9346 .write = spi_chip_write_256,
9347 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9348 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
9349 },
9350
9351 {
9352 .vendor = "PMC",
9353 .name = "Pm25LD040(C)",
9354 .bustype = BUS_SPI,
9355 .manufacture_id = PMC_ID,
9356 .model_id = PMC_PM25LV040,
9357 .total_size = 512,
9358 .page_size = 256,
9359 .feature_bits = FEATURE_WRSR_WREN,
9360 .tested = TEST_UNTESTED,
9361 .probe = probe_spi_rdid,
9362 .probe_timing = TIMING_ZERO,
9363 .block_erasers =
9364 {
9365 {
9366 .eraseblocks = { {4 * 1024, 128} },
9367 .block_erase = spi_block_erase_20,
9368 }, {
9369 .eraseblocks = { {4 * 1024, 128} },
9370 .block_erase = spi_block_erase_d7,
9371 }, {
9372 .eraseblocks = { {64 * 1024, 8} },
9373 .block_erase = spi_block_erase_d8,
9374 }, {
9375 .eraseblocks = { {512 * 1024, 1} },
9376 .block_erase = spi_block_erase_60,
9377 }, {
9378 .eraseblocks = { {512 * 1024, 1} },
9379 .block_erase = spi_block_erase_c7,
9380 }
9381 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009382 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +00009383 .unlock = spi_disable_blockprotect,
9384 .write = spi_chip_write_256,
9385 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
9386 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
9387 },
9388
9389{
9390 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009391 .name = "Pm25LV512(A)",
9392 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009393 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009394 .model_id = PMC_PM25LV512,
9395 .total_size = 64,
9396 .page_size = 256,
9397 .feature_bits = FEATURE_WRSR_WREN,
9398 .tested = TEST_UNTESTED,
Stefan Taunerbecda742014-05-30 19:34:00 +00009399 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009400 .probe_timing = TIMING_ZERO,
9401 .block_erasers =
9402 {
9403 {
9404 .eraseblocks = { {4 * 1024, 16} },
9405 .block_erase = spi_block_erase_d7,
9406 }, {
9407 .eraseblocks = { {32 * 1024, 2} },
9408 .block_erase = spi_block_erase_d8,
9409 }, {
9410 .eraseblocks = { {64 * 1024, 1} },
9411 .block_erase = spi_block_erase_c7,
9412 }
9413 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009414 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009415 .unlock = spi_disable_blockprotect,
9416 .write = spi_chip_write_256,
9417 .read = spi_chip_read, /* Fast read (0x0B) supported */
9418 .voltage = {2700, 3600},
9419 },
9420
9421 {
9422 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009423 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009424 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +00009425 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009426 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009427 .total_size = 128,
9428 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009429 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +00009430 .tested = TEST_OK_PREW,
9431 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009432 .probe_timing = TIMING_ZERO,
9433 .block_erasers =
9434 {
9435 {
9436 .eraseblocks = { {4 * 1024, 32} },
9437 .block_erase = spi_block_erase_d7,
9438 }, {
9439 .eraseblocks = { {32 * 1024, 4} },
9440 .block_erase = spi_block_erase_d8,
9441 }, {
9442 .eraseblocks = { {128 * 1024, 1} },
9443 .block_erase = spi_block_erase_c7,
9444 }
9445 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009446 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009447 .unlock = spi_disable_blockprotect,
9448 .write = spi_chip_write_256,
9449 .read = spi_chip_read, /* Fast read (0x0B) supported */
9450 .voltage = {2700, 3600},
9451 },
9452
9453 {
9454 .vendor = "PMC",
9455 .name = "Pm25LV010A",
9456 .bustype = BUS_SPI,
9457 .manufacture_id = PMC_ID,
9458 .model_id = PMC_PM25LV010,
9459 .total_size = 128,
9460 .page_size = 256,
9461 .feature_bits = FEATURE_WRSR_WREN,
9462 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009463 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009464 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009465 .block_erasers =
9466 {
9467 {
9468 .eraseblocks = { {4 * 1024, 32} },
9469 .block_erase = spi_block_erase_d7,
9470 }, {
9471 .eraseblocks = { {32 * 1024, 4} },
9472 .block_erase = spi_block_erase_d8,
9473 }, {
9474 .eraseblocks = { {128 * 1024, 1} },
9475 .block_erase = spi_block_erase_c7,
9476 }
9477 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009478 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009479 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009480 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009481 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009482 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009483 },
9484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009485 {
9486 .vendor = "PMC",
9487 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009489 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009490 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009491 .total_size = 256,
9492 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009493 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009494 .tested = TEST_UNTESTED,
9495 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009496 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009497 .block_erasers =
9498 {
9499 {
9500 .eraseblocks = { {4 * 1024, 64} },
9501 .block_erase = spi_block_erase_d7,
9502 }, {
9503 .eraseblocks = { {64 * 1024, 4} },
9504 .block_erase = spi_block_erase_d8,
9505 }, {
9506 .eraseblocks = { {256 * 1024, 1} },
9507 .block_erase = spi_block_erase_c7,
9508 }
9509 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009510 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009511 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009515 },
9516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009517 {
9518 .vendor = "PMC",
9519 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009521 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009522 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009523 .total_size = 512,
9524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00009526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009528 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009529 .block_erasers =
9530 {
9531 {
9532 .eraseblocks = { {4 * 1024, 128} },
9533 .block_erase = spi_block_erase_d7,
9534 }, {
9535 .eraseblocks = { {64 * 1024, 8} },
9536 .block_erase = spi_block_erase_d8,
9537 }, {
9538 .eraseblocks = { {512 * 1024, 1} },
9539 .block_erase = spi_block_erase_c7,
9540 }
9541 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009542 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009543 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009544 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009545 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009546 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009547 },
9548
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009549 {
9550 .vendor = "PMC",
9551 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009552 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009553 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009554 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009555 .total_size = 1024,
9556 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009557 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009558 .tested = TEST_UNTESTED,
9559 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009560 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009561 .block_erasers =
9562 {
9563 {
9564 .eraseblocks = { {4 * 1024, 256} },
9565 .block_erase = spi_block_erase_d7,
9566 }, {
9567 .eraseblocks = { {4 * 1024, 256} },
9568 .block_erase = spi_block_erase_20,
9569 }, {
9570 .eraseblocks = { {64 * 1024, 16} },
9571 .block_erase = spi_block_erase_d8,
9572 }, {
9573 .eraseblocks = { {1024 * 1024, 1} },
9574 .block_erase = spi_block_erase_60,
9575 }, {
9576 .eraseblocks = { {1024 * 1024, 1} },
9577 .block_erase = spi_block_erase_c7,
9578 }
9579 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009580 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009581 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009582 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009583 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009584 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009585 },
9586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009587 {
9588 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009589 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009590 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009591 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009592 .model_id = PMC_PM25LV016B,
9593 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009594 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009595 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009596 .tested = TEST_UNTESTED,
9597 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009598 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009599 .block_erasers =
9600 {
9601 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009602 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00009603 .block_erase = spi_block_erase_d7,
9604 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009605 .eraseblocks = { {4 * 1024, 512} },
9606 .block_erase = spi_block_erase_20,
9607 }, {
9608 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00009609 .block_erase = spi_block_erase_d8,
9610 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009611 .eraseblocks = { {2 * 1024 * 1024, 1} },
9612 .block_erase = spi_block_erase_60,
9613 }, {
9614 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009615 .block_erase = spi_block_erase_c7,
9616 }
9617 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009618 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009619 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009620 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00009621 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00009622 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009623 },
9624
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009625 {
9626 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009627 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009628 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009629 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009630 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009631 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009632 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009633 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009634 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009635 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009636 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009637 .block_erasers =
9638 {
9639 {
9640 .eraseblocks = {
9641 {128 * 1024, 1},
9642 {96 * 1024, 1},
9643 {8 * 1024, 2},
9644 {16 * 1024, 1},
9645 },
Sean Nelson35727f72010-01-28 23:55:12 +00009646 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009647 }, {
9648 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009649 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009650 },
9651 },
Sean Nelson35727f72010-01-28 23:55:12 +00009652 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009654 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009655 },
9656
9657 {
9658 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00009659 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009660 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009661 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009662 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009663 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00009664 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009665 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009666 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009667 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009668 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00009669 .block_erasers =
9670 {
9671 {
9672 .eraseblocks = {
9673 {16 * 1024, 1},
9674 {8 * 1024, 2},
9675 {96 * 1024, 1},
9676 {128 * 1024, 1},
9677 },
Sean Nelson35727f72010-01-28 23:55:12 +00009678 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009679 }, {
9680 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009681 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00009682 },
9683 },
Sean Nelson35727f72010-01-28 23:55:12 +00009684 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009686 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00009687 },
9688
9689 {
9690 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009691 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009692 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009693 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009694 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009695 .total_size = 128,
9696 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00009697 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009698 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009699 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009700 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00009701 .block_erasers =
9702 {
9703 {
9704 .eraseblocks = { {4 * 1024, 32} },
9705 .block_erase = erase_sector_jedec,
9706 }, {
9707 .eraseblocks = { {64 * 1024, 2} },
9708 .block_erase = erase_block_jedec,
9709 }, {
9710 .eraseblocks = { {128 * 1024, 1} },
9711 .block_erase = erase_chip_block_jedec,
9712 }
9713 },
Sean Nelson35727f72010-01-28 23:55:12 +00009714 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009715 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009716 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00009717 },
9718
9719 {
9720 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009721 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009722 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009723 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009724 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009725 .total_size = 256,
9726 .page_size = 4096,
9727 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9728 .tested = TEST_UNTESTED,
9729 .probe = probe_jedec,
9730 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9731 .block_erasers =
9732 {
9733 {
9734 .eraseblocks = { {4 * 1024, 64} },
9735 .block_erase = erase_sector_jedec,
9736 }, {
9737 .eraseblocks = { {64 * 1024, 4} },
9738 .block_erase = erase_block_jedec,
9739 }, {
9740 .eraseblocks = { {256 * 1024, 1} },
9741 .block_erase = erase_chip_block_jedec,
9742 }
9743 },
9744 .write = write_jedec_1,
9745 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009746 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009747 },
9748
9749 {
9750 .vendor = "PMC",
9751 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009752 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009753 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009754 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009755 .total_size = 512,
9756 .page_size = 4096,
9757 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009758 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009759 .probe = probe_jedec,
9760 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9761 .block_erasers =
9762 {
9763 {
9764 .eraseblocks = { {4 * 1024, 128} },
9765 .block_erase = erase_sector_jedec,
9766 }, {
9767 .eraseblocks = { {64 * 1024, 8} },
9768 .block_erase = erase_block_jedec,
9769 }, {
9770 .eraseblocks = { {512 * 1024, 1} },
9771 .block_erase = erase_chip_block_jedec,
9772 }
9773 },
9774 .write = write_jedec_1,
9775 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009776 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009777 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00009778
9779 {
9780 .vendor = "PMC",
9781 .name = "Pm39LV512",
9782 .bustype = BUS_PARALLEL,
9783 .manufacture_id = PMC_ID_NOPREFIX,
9784 .model_id = PMC_PM39LV512,
9785 .total_size = 64,
9786 .page_size = 4096,
9787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
9788 .tested = TEST_OK_PREW,
9789 .probe = probe_jedec,
9790 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
9791 .block_erasers =
9792 {
9793 {
9794 .eraseblocks = { {4 * 1024, 16} },
9795 .block_erase = erase_sector_jedec,
9796 }, {
9797 .eraseblocks = { {64 * 1024, 1} },
9798 .block_erase = erase_block_jedec,
9799 }, {
9800 .eraseblocks = { {64 * 1024, 1} },
9801 .block_erase = erase_chip_block_jedec,
9802 }
9803 },
9804 .write = write_jedec_1,
9805 .read = read_memmapped,
9806 .voltage = {2700, 3600},
9807 },
9808
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00009809 {
9810 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009811 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009812 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009813 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009814 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009815 .total_size = 256,
9816 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009817 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009818 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009819 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009820 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009821 .block_erasers =
9822 {
9823 {
9824 .eraseblocks = { {4 * 1024, 64} },
9825 .block_erase = erase_sector_jedec,
9826 }, {
9827 .eraseblocks = { {16 * 1024, 16} },
9828 .block_erase = erase_block_jedec,
9829 }, {
9830 .eraseblocks = { {256 * 1024, 1} },
9831 .block_erase = erase_chip_block_jedec,
9832 }
9833 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009834 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +00009835 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009836 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009837 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009838 },
9839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009840 {
9841 .vendor = "PMC",
9842 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009843 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009844 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009845 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009846 .total_size = 512,
9847 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009848 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009849 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009850 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009851 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00009852 .block_erasers =
9853 {
9854 {
9855 .eraseblocks = { {4 * 1024, 128} },
9856 .block_erase = erase_sector_jedec,
9857 }, {
9858 .eraseblocks = { {64 * 1024, 8} },
9859 .block_erase = erase_block_jedec,
9860 }, {
9861 .eraseblocks = { {512 * 1024, 1} },
9862 .block_erase = erase_chip_block_jedec,
9863 }
9864 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00009865 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +00009866 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009868 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009869 },
9870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009871 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00009872 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +00009873 .name = "LE25FW106",
9874 .bustype = BUS_SPI,
9875 .manufacture_id = SANYO_ID,
9876 .model_id = SANYO_LE25FW106,
9877 .total_size = 128,
9878 .page_size = 256,
9879 .feature_bits = FEATURE_WRSR_WREN,
9880 .tested = TEST_OK_PREW,
9881 .probe = probe_spi_res2,
9882 .probe_timing = TIMING_ZERO,
9883 .block_erasers = {
9884 {
9885 .eraseblocks = { {2 * 1024, 64} },
9886 .block_erase = spi_block_erase_d7,
9887 }, {
9888 .eraseblocks = { {32 * 1024, 4} },
9889 .block_erase = spi_block_erase_d8,
9890 }, {
9891 .eraseblocks = { {128 * 1024, 1} },
9892 .block_erase = spi_block_erase_c7,
9893 }
9894 },
9895 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
9896 .unlock = spi_disable_blockprotect_bp1_srwd,
9897 .write = spi_chip_write_256,
9898 .read = spi_chip_read,
9899 .voltage = {2700, 3600},
9900 },
9901
9902 {
9903 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +00009904 .name = "LE25FW406A",
9905 .bustype = BUS_SPI,
9906 .manufacture_id = SANYO_ID,
9907 .model_id = SANYO_LE25FW406A,
9908 .total_size = 512,
9909 .page_size = 256,
9910 .feature_bits = FEATURE_WRSR_WREN,
9911 .tested = TEST_OK_PREW,
9912 .probe = probe_spi_res2,
9913 .probe_timing = TIMING_ZERO,
9914 .block_erasers = {
9915 {
9916 .eraseblocks = { {4 * 1024, 128} },
9917 .block_erase = spi_block_erase_d7,
9918 }, {
9919 .eraseblocks = { {64 * 1024, 8} },
9920 .block_erase = spi_block_erase_d8,
9921 }, {
9922 .eraseblocks = { {512 * 1024, 1} },
9923 .block_erase = spi_block_erase_c7,
9924 }
9925 },
9926 .printlock = spi_prettyprint_status_register_plain,
9927 .unlock = spi_disable_blockprotect,
9928 .write = spi_chip_write_256,
9929 .read = spi_chip_read,
9930 .voltage = {2700, 3600},
9931 },
9932
9933 {
9934 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +00009935 .name = "LE25FU406B",
9936 .bustype = BUS_SPI,
9937 .manufacture_id = SANYO_ID,
9938 .model_id = SANYO_LE25FU406B,
9939 .total_size = 512,
9940 .page_size = 256,
9941 .feature_bits = FEATURE_WRSR_WREN,
9942 .tested = TEST_OK_PREW,
9943 .probe = probe_spi_res2,
9944 .probe_timing = TIMING_ZERO,
9945 .block_erasers = {
9946 {
9947 .eraseblocks = { {4 * 1024, 128} },
9948 .block_erase = spi_block_erase_d7,
9949 }, {
9950 .eraseblocks = { {64 * 1024, 8} },
9951 .block_erase = spi_block_erase_d8,
9952 }, {
9953 .eraseblocks = { {512 * 1024, 1} },
9954 .block_erase = spi_block_erase_c7,
9955 }
9956 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009957 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +00009958 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9959 .write = spi_chip_write_256,
9960 .read = spi_chip_read,
9961 .voltage = {2300, 3600},
9962 },
9963
9964 {
9965 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009966 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009967 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009968 .manufacture_id = SANYO_ID,
9969 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009970 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00009971 .page_size = 256,
9972 .tested = TEST_UNTESTED,
9973 .probe = probe_spi_rdid,
9974 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009975 .block_erasers =
9976 {
9977 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009978 .eraseblocks = { {256, 1024} },
9979 .block_erase = spi_block_erase_db,
9980 }, {
9981 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00009982 .block_erase = spi_block_erase_d8,
9983 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009984 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00009985 .block_erase = spi_block_erase_c7,
9986 }
9987 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009988 .printlock = spi_prettyprint_status_register_default_welwip,
9989 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00009990 .write = spi_chip_write_256,
9991 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00009992 .voltage = {2700, 3600},
9993 },
9994
9995 {
9996 .vendor = "Sanyo",
9997 .name = "LE25FW403A",
9998 .bustype = BUS_SPI,
9999 .manufacture_id = SANYO_ID,
10000 .model_id = SANYO_LE25FW403A,
10001 .total_size = 512,
10002 .page_size = 256,
10003 .tested = TEST_UNTESTED,
10004 .probe = probe_spi_rdid,
10005 .probe_timing = TIMING_ZERO,
10006 .block_erasers = {
10007 {
10008 .eraseblocks = { {256, 2 * 1024} },
10009 .block_erase = spi_block_erase_db,
10010 }, {
10011 .eraseblocks = { {64 * 1024, 8} },
10012 .block_erase = spi_block_erase_d8,
10013 }, {
10014 .eraseblocks = { {512 * 1024, 1} },
10015 .block_erase = spi_block_erase_c7,
10016 }
10017 },
10018 .printlock = spi_prettyprint_status_register_default_welwip,
10019 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10020 .write = spi_chip_write_256,
10021 .read = spi_chip_read,
10022 .voltage = {2700, 3600},
10023 },
10024
10025 {
10026 .vendor = "Sanyo",
10027 .name = "LE25FW418A",
10028 .bustype = BUS_SPI,
10029 .manufacture_id = SANYO_ID,
10030 .model_id = SANYO_LE25FW418A,
10031 .total_size = 512,
10032 .page_size = 256,
10033 .feature_bits = FEATURE_WRSR_WREN,
10034 .tested = TEST_UNTESTED,
10035 .probe = probe_spi_res2,
10036 .probe_timing = TIMING_ZERO,
10037 .block_erasers = {
10038 {
10039 .eraseblocks = { {4 * 1024, 128} },
10040 .block_erase = spi_block_erase_d7,
10041 }, {
10042 .eraseblocks = { {64 * 1024, 8} },
10043 .block_erase = spi_block_erase_d8,
10044 }, {
10045 .eraseblocks = { {512 * 1024, 1} },
10046 .block_erase = spi_block_erase_c7,
10047 }
10048 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010049 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010050 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10051 .write = spi_chip_write_256,
10052 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10053 .voltage = {2700, 3600},
10054 },
10055
10056 {
10057 .vendor = "Sanyo",
10058 .name = "LE25FW806",
10059 .bustype = BUS_SPI,
10060 .manufacture_id = SANYO_ID,
10061 .model_id = SANYO_LE25FW806,
10062 .total_size = 1024,
10063 .page_size = 256,
10064 .feature_bits = FEATURE_WRSR_WREN,
10065 .tested = TEST_UNTESTED,
10066 .probe = probe_spi_res2,
10067 .probe_timing = TIMING_ZERO,
10068 .block_erasers = {
10069 {
10070 .eraseblocks = { {4 * 1024, 256} },
10071 .block_erase = spi_block_erase_20,
10072 }, {
10073 .eraseblocks = { {4 * 1024, 256} },
10074 .block_erase = spi_block_erase_d7,
10075 }, {
10076 .eraseblocks = { {64 * 1024, 16} },
10077 .block_erase = spi_block_erase_d8,
10078 }, {
10079 .eraseblocks = { {1024 * 1024, 1} },
10080 .block_erase = spi_block_erase_c7,
10081 }
10082 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010083 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010084 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10085 .write = spi_chip_write_256,
10086 .read = spi_chip_read,
10087 .voltage = {2700, 3600},
10088 },
10089
10090 {
10091 .vendor = "Sanyo",
10092 .name = "LE25FW808",
10093 .bustype = BUS_SPI,
10094 .manufacture_id = SANYO_ID,
10095 .model_id = SANYO_LE25FW808,
10096 .total_size = 1024,
10097 .page_size = 256,
10098 .feature_bits = FEATURE_WRSR_WREN,
10099 .tested = TEST_UNTESTED,
10100 .probe = probe_spi_res2,
10101 .probe_timing = TIMING_ZERO,
10102 .block_erasers = {
10103 {
10104 .eraseblocks = { {8 * 1024, 128} },
10105 .block_erase = spi_block_erase_d7,
10106 }, {
10107 .eraseblocks = { {64 * 1024, 16} },
10108 .block_erase = spi_block_erase_d8,
10109 }, {
10110 .eraseblocks = { {1024 * 1024, 1} },
10111 .block_erase = spi_block_erase_c7,
10112 }
10113 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010114 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000010115 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
10116 .write = spi_chip_write_256,
10117 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
10118 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000010119 },
10120
10121 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010122 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010123 .name = "LH28F008BJT-BTLZ1",
10124 .bustype = BUS_PARALLEL,
10125 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000010126 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000010127 .total_size = 1024,
10128 .page_size = 64 * 1024,
10129 .tested = TEST_OK_PREW,
10130 .probe = probe_82802ab,
10131 .probe_timing = TIMING_ZERO,
10132 .block_erasers =
10133 {
10134 {
10135 .eraseblocks = {
10136 {8 * 1024, 8},
10137 {64 * 1024, 15}
10138 },
10139 .block_erase = erase_block_82802ab,
10140 }, {
10141 .eraseblocks = { {1024 * 1024, 1} },
10142 .block_erase = erase_sector_49lfxxxc,
10143 }
10144 },
10145 .unlock = unlock_lh28f008bjt,
10146 .write = write_82802ab,
10147 .read = read_memmapped,
10148 .voltage = {2700, 3600},
10149 },
10150
10151 {
10152 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010153 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010154 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010155 .manufacture_id = SHARP_ID,
10156 .model_id = SHARP_LHF00L04,
10157 .total_size = 1024,
10158 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010159 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010160 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010161 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010162 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010163 .block_erasers =
10164 {
10165 {
10166 .eraseblocks = {
10167 {64 * 1024, 15},
10168 {8 * 1024, 8}
10169 },
Sean Nelson28accc22010-03-19 18:47:06 +000010170 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010171 }, {
10172 .eraseblocks = {
10173 {1024 * 1024, 1}
10174 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010175 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000010176 },
10177 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000010178 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000010179 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010181 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010182 },
10183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010184 {
10185 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000010186 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010187 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010188 .manufacture_id = SPANSION_ID,
10189 .model_id = SPANSION_S25FL004A,
10190 .total_size = 512,
10191 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010192 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010193 .tested = TEST_UNTESTED,
10194 .probe = probe_spi_rdid,
10195 .probe_timing = TIMING_ZERO,
10196 .block_erasers =
10197 {
10198 {
10199 .eraseblocks = { {64 * 1024, 8} },
10200 .block_erase = spi_block_erase_d8,
10201 }, {
10202 .eraseblocks = { {512 * 1024, 1} },
10203 .block_erase = spi_block_erase_c7,
10204 }
10205 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010206 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010207 .unlock = spi_disable_blockprotect,
10208 .write = spi_chip_write_256,
10209 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010210 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010211 },
10212
10213 {
10214 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000010215 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010216 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000010217 .manufacture_id = SPANSION_ID,
10218 .model_id = SPANSION_S25FL008A,
10219 .total_size = 1024,
10220 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010221 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010222 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000010223 .probe = probe_spi_rdid,
10224 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000010225 .block_erasers =
10226 {
10227 {
10228 .eraseblocks = { {64 * 1024, 16} },
10229 .block_erase = spi_block_erase_d8,
10230 }, {
10231 .eraseblocks = { {1024 * 1024, 1} },
10232 .block_erase = spi_block_erase_c7,
10233 }
10234 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010235 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010236 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000010237 .write = spi_chip_write_256,
10238 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010239 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000010240 },
10241
10242 {
10243 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010244 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010245 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010246 .manufacture_id = SPANSION_ID,
10247 .model_id = SPANSION_S25FL016A,
10248 .total_size = 2048,
10249 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010250 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010251 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010252 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010253 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010254 .block_erasers =
10255 {
10256 {
10257 .eraseblocks = { {64 * 1024, 32} },
10258 .block_erase = spi_block_erase_d8,
10259 }, {
10260 .eraseblocks = { {2 * 1024 * 1024, 1} },
10261 .block_erase = spi_block_erase_c7,
10262 }
10263 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010264 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010265 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010266 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010267 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010268 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010269 },
10270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010271 {
Rudy Hostf4e57772010-11-29 00:37:49 +000010272 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010273 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010274 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010275 .manufacture_id = SPANSION_ID,
10276 .model_id = SPANSION_S25FL032A,
10277 .total_size = 4096,
10278 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010279 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010280 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000010281 .probe = probe_spi_rdid,
10282 .probe_timing = TIMING_ZERO,
10283 .block_erasers =
10284 {
10285 {
10286 .eraseblocks = { {64 * 1024, 64} },
10287 .block_erase = spi_block_erase_d8,
10288 }, {
10289 .eraseblocks = { {4 * 1024 * 1024, 1} },
10290 .block_erase = spi_block_erase_c7,
10291 }
10292 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010293 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010294 .unlock = spi_disable_blockprotect,
10295 .write = spi_chip_write_256,
10296 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010297 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010298 },
10299
10300 {
10301 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010302 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010303 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000010304 .manufacture_id = SPANSION_ID,
10305 .model_id = SPANSION_S25FL064A,
10306 .total_size = 8192,
10307 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010308 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000010309 .tested = TEST_OK_PREW,
10310 .probe = probe_spi_rdid,
10311 .probe_timing = TIMING_ZERO,
10312 .block_erasers =
10313 {
10314 {
10315 .eraseblocks = { {64 * 1024, 128} },
10316 .block_erase = spi_block_erase_d8,
10317 }, {
10318 .eraseblocks = { {8 * 1024 * 1024, 1} },
10319 .block_erase = spi_block_erase_c7,
10320 }
10321 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010322 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000010323 .unlock = spi_disable_blockprotect,
10324 .write = spi_chip_write_256,
10325 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010326 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000010327 },
10328
10329 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010330 .vendor = "Spansion",
10331 .name = "S25FL204K",
10332 .bustype = BUS_SPI,
10333 .manufacture_id = SPANSION_ID,
10334 .model_id = SPANSION_S25FL204,
10335 .total_size = 512,
10336 .page_size = 256,
10337 .feature_bits = FEATURE_WRSR_WREN,
10338 .tested = TEST_UNTESTED,
10339 .probe = probe_spi_rdid,
10340 .probe_timing = TIMING_ZERO,
10341 .block_erasers = {
10342 {
10343 .eraseblocks = { {4 * 1024, 128} },
10344 .block_erase = spi_block_erase_20,
10345 }, {
10346 .eraseblocks = { {64 * 1024, 8} },
10347 .block_erase = spi_block_erase_d8,
10348 }, {
10349 .eraseblocks = { { 512 * 1024, 1} },
10350 .block_erase = spi_block_erase_60,
10351 }, {
10352 .eraseblocks = { { 512 * 1024, 1} },
10353 .block_erase = spi_block_erase_c7,
10354 }
10355 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010356 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010357 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010358 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010359 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010360 .voltage = {2700, 3600},
10361 },
10362
10363 {
10364 .vendor = "Spansion",
10365 .name = "S25FL208K",
10366 .bustype = BUS_SPI,
10367 .manufacture_id = SPANSION_ID,
10368 .model_id = SPANSION_S25FL208,
10369 .total_size = 1024,
10370 .page_size = 256,
10371 .feature_bits = FEATURE_WRSR_WREN,
10372 .tested = TEST_UNTESTED,
10373 .probe = probe_spi_rdid,
10374 .probe_timing = TIMING_ZERO,
10375 .block_erasers = {
10376 {
10377 .eraseblocks = { {4 * 1024, 256} },
10378 .block_erase = spi_block_erase_20,
10379 }, {
10380 .eraseblocks = { {64 * 1024, 16} },
10381 .block_erase = spi_block_erase_d8,
10382 }, {
10383 .eraseblocks = { { 1024 * 1024, 1} },
10384 .block_erase = spi_block_erase_60,
10385 }, {
10386 .eraseblocks = { { 1024 * 1024, 1} },
10387 .block_erase = spi_block_erase_c7,
10388 }
10389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010390 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010391 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010392 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010393 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010394 .voltage = {2700, 3600},
10395 },
10396
10397 {
10398 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000010399 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010400 .bustype = BUS_SPI,
10401 .manufacture_id = SPANSION_ID,
10402 .model_id = SPANSION_S25FL216,
10403 .total_size = 2048,
10404 .page_size = 256,
10405 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
10406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10407 .tested = TEST_UNTESTED,
10408 .probe = probe_spi_rdid,
10409 .probe_timing = TIMING_ZERO,
10410 .block_erasers = {
10411 {
10412 .eraseblocks = { {4 * 1024, 512} },
10413 .block_erase = spi_block_erase_20,
10414 }, {
10415 .eraseblocks = { {64 * 1024, 32} },
10416 .block_erase = spi_block_erase_d8,
10417 }, {
10418 .eraseblocks = { { 2048 * 1024, 1} },
10419 .block_erase = spi_block_erase_60,
10420 }, {
10421 .eraseblocks = { { 2048 * 1024, 1} },
10422 .block_erase = spi_block_erase_c7,
10423 }
10424 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010425 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000010426 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010427 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000010428 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000010429 .voltage = {2700, 3600},
10430 },
10431
10432 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010433 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000010434 .name = "S25FL132K",
10435 .bustype = BUS_SPI,
10436 .manufacture_id = SPANSION_ID,
10437 .model_id = SPANSION_S25FL132K,
10438 .total_size = 4096,
10439 .page_size = 256,
10440 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10441 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10442 .tested = TEST_UNTESTED,
10443 .probe = probe_spi_rdid,
10444 .probe_timing = TIMING_ZERO,
10445 .block_erasers = {
10446 {
10447 .eraseblocks = { {4 * 1024, 1024} },
10448 .block_erase = spi_block_erase_20,
10449 }, {
10450 .eraseblocks = { {64 * 1024, 64} },
10451 .block_erase = spi_block_erase_d8,
10452 }, {
10453 .eraseblocks = { { 4096 * 1024, 1} },
10454 .block_erase = spi_block_erase_60,
10455 }, {
10456 .eraseblocks = { { 4096 * 1024, 1} },
10457 .block_erase = spi_block_erase_c7,
10458 }
10459 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010460 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010461 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10462 .write = spi_chip_write_256,
10463 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10464 .voltage = {2700, 3600},
10465 },
10466
10467 {
10468 .vendor = "Spansion",
10469 .name = "S25FL164K",
10470 .bustype = BUS_SPI,
10471 .manufacture_id = SPANSION_ID,
10472 .model_id = SPANSION_S25FL164K,
10473 .total_size = 8192,
10474 .page_size = 256,
10475 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
10476 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10477 .tested = TEST_OK_PREW,
10478 .probe = probe_spi_rdid,
10479 .probe_timing = TIMING_ZERO,
10480 .block_erasers = {
10481 {
10482 .eraseblocks = { {4 * 1024, 2048} },
10483 .block_erase = spi_block_erase_20,
10484 }, {
10485 .eraseblocks = { {64 * 1024, 128} },
10486 .block_erase = spi_block_erase_d8,
10487 }, {
10488 .eraseblocks = { { 8192 * 1024, 1} },
10489 .block_erase = spi_block_erase_60,
10490 }, {
10491 .eraseblocks = { { 8192 * 1024, 1} },
10492 .block_erase = spi_block_erase_c7,
10493 }
10494 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010495 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000010496 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10497 .write = spi_chip_write_256,
10498 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10499 .voltage = {2700, 3600},
10500 },
10501
10502 {
10503 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000010504 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10505 .bustype = BUS_SPI,
10506 .manufacture_id = SPANSION_ID,
10507 .model_id = SPANSION_S25FL128,
10508 .total_size = 16384,
10509 .page_size = 256,
10510 /* supports 4B addressing */
10511 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10512 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10513 .tested = TEST_OK_PREW,
10514 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
10515 .probe = probe_spi_rdid,
10516 .probe_timing = TIMING_ZERO,
10517 .block_erasers = {
10518 {
10519 /* This chip supports erasing of 32 so-called "parameter sectors" with
10520 * opcode 0x20 which may be configured to be on top or bottom of the address
10521 * space. Trying to access an address outside these 4kB blocks does have no
10522 * effect on the memory contents, e.g.
10523 .eraseblocks = {
10524 {4 * 1024, 32},
10525 {64 * 1024, 254} // inaccessible
10526 },
10527 .block_erase = spi_block_erase_20,
10528 }, { */
10529 .eraseblocks = { { 64 * 1024, 256} },
10530 .block_erase = spi_block_erase_d8,
10531 }, {
10532 .eraseblocks = { { 16384 * 1024, 1} },
10533 .block_erase = spi_block_erase_60,
10534 }, {
10535 .eraseblocks = { { 16384 * 1024, 1} },
10536 .block_erase = spi_block_erase_c7,
10537 }
10538 },
10539 .printlock = spi_prettyprint_status_register_bp2_srwd,
10540 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10541 .write = spi_chip_write_256, /* Multi I/O supported */
10542 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10543 .voltage = {2700, 3600},
10544 },
10545
10546 {
10547 .vendor = "Spansion",
10548 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
10549 .bustype = BUS_SPI,
10550 .manufacture_id = SPANSION_ID,
10551 .model_id = SPANSION_S25FL128,
10552 .total_size = 16384,
10553 .page_size = 512,
10554 /* supports 4B addressing */
10555 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10557 .tested = TEST_UNTESTED,
10558 .probe = probe_spi_rdid,
10559 .probe_timing = TIMING_ZERO,
10560 .block_erasers = {
10561 {
10562 .eraseblocks = { {256 * 1024, 64} },
10563 .block_erase = spi_block_erase_d8,
10564 }, {
10565 .eraseblocks = { { 16384 * 1024, 1} },
10566 .block_erase = spi_block_erase_60,
10567 }, {
10568 .eraseblocks = { { 16384 * 1024, 1} },
10569 .block_erase = spi_block_erase_c7,
10570 }
10571 },
10572 .printlock = spi_prettyprint_status_register_bp2_srwd,
10573 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
10574 .write = spi_chip_write_256, /* Multi I/O supported */
10575 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10576 .voltage = {2700, 3600},
10577 },
10578
10579 {
10580 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000010581 .name = "S25FL128P......0", /* uniform 64 kB sectors */
10582 .bustype = BUS_SPI,
10583 .manufacture_id = SPANSION_ID,
10584 .model_id = SPANSION_S25FL128,
10585 .total_size = 16384,
10586 .page_size = 256,
10587 .feature_bits = FEATURE_WRSR_WREN,
10588 .tested = TEST_UNTESTED,
10589 .probe = probe_spi_rdid,
10590 .probe_timing = TIMING_ZERO,
10591 .block_erasers = {
10592 {
10593 .eraseblocks = { {64 * 1024, 256} },
10594 .block_erase = spi_block_erase_20,
10595 }, {
10596 .eraseblocks = { {64 * 1024, 256} },
10597 .block_erase = spi_block_erase_d8,
10598 }, {
10599 .eraseblocks = { { 16384 * 1024, 1} },
10600 .block_erase = spi_block_erase_60,
10601 }, {
10602 .eraseblocks = { { 16384 * 1024, 1} },
10603 .block_erase = spi_block_erase_c7,
10604 }
10605 },
10606 .printlock = spi_prettyprint_status_register_bp3_srwd,
10607 .unlock = spi_disable_blockprotect_bp3_srwd,
10608 .write = spi_chip_write_256,
10609 .read = spi_chip_read, /* Fast read (0x0B) supported */
10610 .voltage = {2700, 3600},
10611 },
10612
10613 {
10614 .vendor = "Spansion",
10615 .name = "S25FL128P......1", /* uniform 256kB sectors */
10616 .bustype = BUS_SPI,
10617 .manufacture_id = SPANSION_ID,
10618 .model_id = SPANSION_S25FL128,
10619 .total_size = 16384,
10620 .page_size = 256,
10621 .feature_bits = FEATURE_WRSR_WREN,
10622 .tested = TEST_UNTESTED,
10623 .probe = probe_spi_rdid,
10624 .probe_timing = TIMING_ZERO,
10625 .block_erasers = {
10626 {
10627 .eraseblocks = { {256 * 1024, 64} },
10628 .block_erase = spi_block_erase_d8,
10629 }, {
10630 .eraseblocks = { { 16384 * 1024, 1} },
10631 .block_erase = spi_block_erase_c7,
10632 }
10633 },
10634 .printlock = spi_prettyprint_status_register_bp2_srwd,
10635 .unlock = spi_disable_blockprotect_bp2_srwd,
10636 .write = spi_chip_write_256,
10637 .read = spi_chip_read, /* Fast read (0x0B) supported */
10638 .voltage = {2700, 3600},
10639 },
10640
10641 {
10642 .vendor = "Spansion",
10643 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010644 .bustype = BUS_SPI,
10645 .manufacture_id = SPANSION_ID,
10646 .model_id = SPANSION_S25FL128,
10647 .total_size = 16384,
10648 .page_size = 256,
10649 /* supports 4B addressing */
10650 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10652 .tested = TEST_UNTESTED,
10653 .probe = probe_spi_rdid,
10654 .probe_timing = TIMING_ZERO,
10655 .block_erasers = {
10656 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010657 /* This chip supports erasing of the 32 so-called "parameter sectors" with
10658 * opcode 0x20. Trying to access an address outside these 4kB blocks does
10659 * have no effect on the memory contents, but sets a flag in the SR.
10660 .eraseblocks = {
10661 {4 * 1024, 32},
10662 {64 * 1024, 254} // inaccessible
10663 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010664 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000010665 }, { */
10666 .eraseblocks = { { 64 * 1024, 256} },
10667 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010668 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000010669 .eraseblocks = { { 16384 * 1024, 1} },
10670 .block_erase = spi_block_erase_60,
10671 }, {
10672 .eraseblocks = { { 16384 * 1024, 1} },
10673 .block_erase = spi_block_erase_c7,
10674 }
10675 },
10676 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10677 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10678 .write = spi_chip_write_256, /* Multi I/O supported */
10679 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10680 .voltage = {2700, 3600},
10681 },
10682
10683 {
10684 .vendor = "Spansion",
10685 .name = "S25FL128S......1", /* uniform 256 kB sectors */
10686 .bustype = BUS_SPI,
10687 .manufacture_id = SPANSION_ID,
10688 .model_id = SPANSION_S25FL128,
10689 .total_size = 16384,
10690 .page_size = 512,
10691 /* supports 4B addressing */
10692 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
10693 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10694 .tested = TEST_UNTESTED,
10695 .probe = probe_spi_rdid,
10696 .probe_timing = TIMING_ZERO,
10697 .block_erasers = {
10698 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000010699 .eraseblocks = { {256 * 1024, 64} },
10700 .block_erase = spi_block_erase_d8,
10701 }, {
10702 .eraseblocks = { { 16384 * 1024, 1} },
10703 .block_erase = spi_block_erase_60,
10704 }, {
10705 .eraseblocks = { { 16384 * 1024, 1} },
10706 .block_erase = spi_block_erase_c7,
10707 }
10708 },
10709 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
10710 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
10711 .write = spi_chip_write_256, /* Multi I/O supported */
10712 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10713 .voltage = {2700, 3600},
10714 },
10715
10716 {
Stefan Tauner88b19252014-08-06 14:36:27 +000010717 .vendor = "Spansion",
10718 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
10719 .bustype = BUS_SPI,
10720 .manufacture_id = SPANSION_ID,
10721 .model_id = SPANSION_S25FL128,
10722 .total_size = 16384,
10723 .page_size = 256,
10724 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10726 .tested = TEST_OK_PREW,
10727 .probe = probe_spi_rdid,
10728 .probe_timing = TIMING_ZERO,
10729 .block_erasers = {
10730 {
10731 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
10732 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
10733 * effect on the memory contents, but sets a flag in the SR.
10734 .eraseblocks = {
10735 {4 * 1024, 32},
10736 {64 * 1024, 254} // inaccessible
10737 },
10738 .block_erase = spi_block_erase_20,
10739 }, { */
10740 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
10741 .eraseblocks = {
10742 {8 * 1024, 16},
10743 {64 * 1024, 254} // inaccessible
10744 },
10745 .block_erase = spi_block_erase_40,
10746 }, { */
10747 .eraseblocks = { { 64 * 1024, 256} },
10748 .block_erase = spi_block_erase_d8,
10749 }, {
10750 .eraseblocks = { { 16384 * 1024, 1} },
10751 .block_erase = spi_block_erase_60,
10752 }, {
10753 .eraseblocks = { { 16384 * 1024, 1} },
10754 .block_erase = spi_block_erase_c7,
10755 }
10756 },
10757 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10758 .unlock = spi_disable_blockprotect_bp2_srwd,
10759 .write = spi_chip_write_256, /* Multi I/O supported */
10760 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10761 .voltage = {2700, 3600},
10762 },
10763
10764 {
10765 .vendor = "Spansion",
10766 .name = "S25FL129P......1", /* uniform 256 kB sectors */
10767 .bustype = BUS_SPI,
10768 .manufacture_id = SPANSION_ID,
10769 .model_id = SPANSION_S25FL128,
10770 .total_size = 16384,
10771 .page_size = 512,
10772 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
10773 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10774 .tested = TEST_UNTESTED,
10775 .probe = probe_spi_rdid,
10776 .probe_timing = TIMING_ZERO,
10777 .block_erasers = {
10778 {
10779 .eraseblocks = { {256 * 1024, 64} },
10780 .block_erase = spi_block_erase_d8,
10781 }, {
10782 .eraseblocks = { { 16384 * 1024, 1} },
10783 .block_erase = spi_block_erase_60,
10784 }, {
10785 .eraseblocks = { { 16384 * 1024, 1} },
10786 .block_erase = spi_block_erase_c7,
10787 }
10788 },
10789 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
10790 .unlock = spi_disable_blockprotect_bp2_srwd,
10791 .write = spi_chip_write_256, /* Multi I/O supported */
10792 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10793 .voltage = {2700, 3600},
10794 },
10795
10796 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010797 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000010798 .name = "SST25LF020A",
10799 .bustype = BUS_SPI,
10800 .manufacture_id = SST_ID,
10801 .model_id = SST_SST25VF020_REMS,
10802 .total_size = 256,
10803 .page_size = 256,
10804 .feature_bits = FEATURE_WRSR_EWSR,
10805 .tested = TEST_OK_PREW,
10806 .probe = probe_spi_rems,
10807 .probe_timing = TIMING_ZERO,
10808 .block_erasers =
10809 {
10810 {
10811 .eraseblocks = { {4 * 1024, 64} },
10812 .block_erase = spi_block_erase_20,
10813 }, {
10814 .eraseblocks = { {32 * 1024, 8} },
10815 .block_erase = spi_block_erase_52,
10816 }, {
10817 .eraseblocks = { {256 * 1024, 1} },
10818 .block_erase = spi_block_erase_60,
10819 },
10820 },
10821 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10822 .unlock = spi_disable_blockprotect,
10823 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10824 .read = spi_chip_read, /* Fast read (0x0B) supported */
10825 .voltage = {2700, 3600},
10826 },
10827
10828 {
10829 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000010830 .name = "SST25LF040A",
10831 .bustype = BUS_SPI,
10832 .manufacture_id = SST_ID,
10833 .model_id = SST_SST25VF040_REMS,
10834 .total_size = 512,
10835 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010836 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000010837 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000010838 .probe = probe_spi_res2,
10839 .probe_timing = TIMING_ZERO,
10840 .block_erasers =
10841 {
10842 {
10843 .eraseblocks = { {4 * 1024, 128} },
10844 .block_erase = spi_block_erase_20,
10845 }, {
10846 .eraseblocks = { {32 * 1024, 16} },
10847 .block_erase = spi_block_erase_52,
10848 }, {
10849 .eraseblocks = { {512 * 1024, 1} },
10850 .block_erase = spi_block_erase_60,
10851 },
10852 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010853 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010854 .unlock = spi_disable_blockprotect,
10855 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10856 .read = spi_chip_read,
10857 .voltage = {3000, 3600},
10858 },
10859
10860 {
10861 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000010862 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000010863 .bustype = BUS_SPI,
10864 .manufacture_id = SST_ID,
10865 .model_id = SST_SST25VF080_REMS,
10866 .total_size = 1024,
10867 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010868 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000010869 .tested = TEST_UNTESTED,
10870 .probe = probe_spi_res2,
10871 .probe_timing = TIMING_ZERO,
10872 .block_erasers =
10873 {
10874 {
10875 .eraseblocks = { {4 * 1024, 256} },
10876 .block_erase = spi_block_erase_20,
10877 }, {
10878 .eraseblocks = { {32 * 1024, 32} },
10879 .block_erase = spi_block_erase_52,
10880 }, {
10881 .eraseblocks = { {1024 * 1024, 1} },
10882 .block_erase = spi_block_erase_60,
10883 },
10884 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000010885 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000010886 .unlock = spi_disable_blockprotect,
10887 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10888 .read = spi_chip_read,
10889 .voltage = {3000, 3600},
10890 },
10891
10892 {
10893 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010894 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000010895 .bustype = BUS_SPI,
10896 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000010897 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000010898 .total_size = 64,
10899 .page_size = 256,
10900 .feature_bits = FEATURE_WRSR_EWSR,
10901 .tested = TEST_OK_PREW,
10902 .probe = probe_spi_rems,
10903 .probe_timing = TIMING_ZERO,
10904 .block_erasers =
10905 {
10906 {
10907 .eraseblocks = { {4 * 1024, 16} },
10908 .block_erase = spi_block_erase_20,
10909 }, {
10910 .eraseblocks = { {32 * 1024, 2} },
10911 .block_erase = spi_block_erase_52,
10912 }, {
10913 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010914 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010915 }, {
10916 .eraseblocks = { {64 * 1024, 1} },
10917 .block_erase = spi_block_erase_60,
10918 }, {
10919 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010920 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010921 },
10922 },
10923 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10924 .unlock = spi_disable_blockprotect,
10925 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010926 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010927 .voltage = {2700, 3600},
10928 },
10929
10930 {
10931 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000010932 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010933 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000010934 .manufacture_id = SST_ID,
10935 .model_id = SST_SST25VF010_REMS,
10936 .total_size = 128,
10937 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010938 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000010939 .tested = TEST_OK_PREW,
10940 .probe = probe_spi_rems,
10941 .probe_timing = TIMING_ZERO,
10942 .block_erasers =
10943 {
10944 {
10945 .eraseblocks = { {4 * 1024, 32} },
10946 .block_erase = spi_block_erase_20,
10947 }, {
10948 .eraseblocks = { {32 * 1024, 4} },
10949 .block_erase = spi_block_erase_52,
10950 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000010951 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010952 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010953 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000010954 .eraseblocks = { {128 * 1024, 1} },
10955 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000010956 }, {
10957 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000010958 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010959 },
10960 },
10961 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10962 .unlock = spi_disable_blockprotect,
10963 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000010964 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000010965 .voltage = {2700, 3600},
10966 },
10967
10968 {
10969 .vendor = "SST",
10970 .name = "SST25VF020",
10971 .bustype = BUS_SPI,
10972 .manufacture_id = SST_ID,
10973 .model_id = SST_SST25VF020_REMS,
10974 .total_size = 256,
10975 .page_size = 256,
10976 .feature_bits = FEATURE_WRSR_EWSR,
10977 .tested = TEST_UNTESTED,
10978 .probe = probe_spi_rems,
10979 .probe_timing = TIMING_ZERO,
10980 .block_erasers =
10981 {
10982 {
10983 .eraseblocks = { {4 * 1024, 64} },
10984 .block_erase = spi_block_erase_20,
10985 }, {
10986 .eraseblocks = { {32 * 1024, 8} },
10987 .block_erase = spi_block_erase_52,
10988 }, {
10989 .eraseblocks = { {256 * 1024, 1} },
10990 .block_erase = spi_block_erase_60,
10991 },
10992 },
10993 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
10994 .unlock = spi_disable_blockprotect,
10995 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
10996 .read = spi_chip_read, /* only */
10997 .voltage = {2700, 3600},
10998 },
10999
11000 {
11001 .vendor = "SST",
11002 .name = "SST25VF020B",
11003 .bustype = BUS_SPI,
11004 .manufacture_id = SST_ID,
11005 .model_id = SST_SST25VF020B,
11006 .total_size = 256,
11007 .page_size = 256,
11008 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011009 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000011010 .probe = probe_spi_rdid,
11011 .probe_timing = TIMING_ZERO,
11012 .block_erasers =
11013 {
11014 {
11015 .eraseblocks = { {4 * 1024, 64} },
11016 .block_erase = spi_block_erase_20,
11017 }, {
11018 .eraseblocks = { {32 * 1024, 8} },
11019 .block_erase = spi_block_erase_52,
11020 }, {
11021 .eraseblocks = { {64 * 1024, 4} },
11022 .block_erase = spi_block_erase_d8,
11023 }, {
11024 .eraseblocks = { {256 * 1024, 1} },
11025 .block_erase = spi_block_erase_60,
11026 }, {
11027 .eraseblocks = { {256 * 1024, 1} },
11028 .block_erase = spi_block_erase_c7,
11029 },
11030 },
11031 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
11032 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
11033 .write = spi_aai_write, /* AAI supported (0xAD) */
11034 .read = spi_chip_read, /* Fast read (0x0B) supported */
11035 .voltage = {2700, 3600},
11036 },
11037
11038 {
11039 .vendor = "SST",
11040 .name = "SST25VF040",
11041 .bustype = BUS_SPI,
11042 .manufacture_id = SST_ID,
11043 .model_id = SST_SST25VF040_REMS,
11044 .total_size = 512,
11045 .page_size = 256,
11046 .feature_bits = FEATURE_WRSR_EWSR,
11047 .tested = TEST_OK_PR,
11048 .probe = probe_spi_rems,
11049 .probe_timing = TIMING_ZERO,
11050 .block_erasers =
11051 {
11052 {
11053 .eraseblocks = { {4 * 1024, 128} },
11054 .block_erase = spi_block_erase_20,
11055 }, {
11056 .eraseblocks = { {32 * 1024, 16} },
11057 .block_erase = spi_block_erase_52,
11058 }, {
11059 .eraseblocks = { {512 * 1024, 1} },
11060 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000011061 },
11062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011063 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000011064 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000011065 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11066 .read = spi_chip_read,
11067 .voltage = {2700, 3600},
11068 },
11069
11070 {
11071 .vendor = "SST",
11072 .name = "SST25VF040B",
11073 .bustype = BUS_SPI,
11074 .manufacture_id = SST_ID,
11075 .model_id = SST_SST25VF040B,
11076 .total_size = 512,
11077 .page_size = 256,
11078 .feature_bits = FEATURE_WRSR_EWSR,
11079 .tested = TEST_OK_PREW,
11080 .probe = probe_spi_rdid,
11081 .probe_timing = TIMING_ZERO,
11082 .block_erasers =
11083 {
11084 {
11085 .eraseblocks = { {4 * 1024, 128} },
11086 .block_erase = spi_block_erase_20,
11087 }, {
11088 .eraseblocks = { {32 * 1024, 16} },
11089 .block_erase = spi_block_erase_52,
11090 }, {
11091 .eraseblocks = { {64 * 1024, 8} },
11092 .block_erase = spi_block_erase_d8,
11093 }, {
11094 .eraseblocks = { {512 * 1024, 1} },
11095 .block_erase = spi_block_erase_60,
11096 }, {
11097 .eraseblocks = { {512 * 1024, 1} },
11098 .block_erase = spi_block_erase_c7,
11099 },
11100 },
11101 .printlock = spi_prettyprint_status_register_sst25vf040b,
11102 .unlock = spi_disable_blockprotect,
11103 .write = spi_aai_write, /* AAI supported (0xAD) */
11104 .read = spi_chip_read, /* Fast read (0x0B) supported */
11105 .voltage = {2700, 3600},
11106 },
11107
11108 {
11109 .vendor = "SST",
11110 .name = "SST25VF040B.REMS",
11111 .bustype = BUS_SPI,
11112 .manufacture_id = SST_ID,
11113 .model_id = SST_SST25VF040B_REMS,
11114 .total_size = 512,
11115 .page_size = 256,
11116 .feature_bits = FEATURE_WRSR_EWSR,
11117 .tested = TEST_OK_PREW,
11118 .probe = probe_spi_rems,
11119 .probe_timing = TIMING_ZERO,
11120 .block_erasers =
11121 {
11122 {
11123 .eraseblocks = { {4 * 1024, 128} },
11124 .block_erase = spi_block_erase_20,
11125 }, {
11126 .eraseblocks = { {32 * 1024, 16} },
11127 .block_erase = spi_block_erase_52,
11128 }, {
11129 .eraseblocks = { {64 * 1024, 8} },
11130 .block_erase = spi_block_erase_d8,
11131 }, {
11132 .eraseblocks = { {512 * 1024, 1} },
11133 .block_erase = spi_block_erase_60,
11134 }, {
11135 .eraseblocks = { {512 * 1024, 1} },
11136 .block_erase = spi_block_erase_c7,
11137 },
11138 },
11139 .printlock = spi_prettyprint_status_register_sst25vf040b,
11140 .unlock = spi_disable_blockprotect,
11141 .write = spi_aai_write,
11142 .read = spi_chip_read,
11143 .voltage = {2700, 3600},
11144 },
11145
11146 {
11147 .vendor = "SST",
11148 .name = "SST25VF080B",
11149 .bustype = BUS_SPI,
11150 .manufacture_id = SST_ID,
11151 .model_id = SST_SST25VF080B,
11152 .total_size = 1024,
11153 .page_size = 256,
11154 .feature_bits = FEATURE_WRSR_EWSR,
11155 .tested = TEST_OK_PREW,
11156 .probe = probe_spi_rdid,
11157 .probe_timing = TIMING_ZERO,
11158 .block_erasers =
11159 {
11160 {
11161 .eraseblocks = { {4 * 1024, 256} },
11162 .block_erase = spi_block_erase_20,
11163 }, {
11164 .eraseblocks = { {32 * 1024, 32} },
11165 .block_erase = spi_block_erase_52,
11166 }, {
11167 .eraseblocks = { {64 * 1024, 16} },
11168 .block_erase = spi_block_erase_d8,
11169 }, {
11170 .eraseblocks = { {1024 * 1024, 1} },
11171 .block_erase = spi_block_erase_60,
11172 }, {
11173 .eraseblocks = { {1024 * 1024, 1} },
11174 .block_erase = spi_block_erase_c7,
11175 },
11176 },
11177 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
11178 .unlock = spi_disable_blockprotect,
11179 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000011180 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011181 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000011182 },
11183
11184 {
11185 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011186 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011188 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011189 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011190 .total_size = 2048,
11191 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011192 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000011193 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011195 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011196 .block_erasers =
11197 {
11198 {
11199 .eraseblocks = { {4 * 1024, 512} },
11200 .block_erase = spi_block_erase_20,
11201 }, {
11202 .eraseblocks = { {32 * 1024, 64} },
11203 .block_erase = spi_block_erase_52,
11204 }, {
11205 .eraseblocks = { {64 * 1024, 32} },
11206 .block_erase = spi_block_erase_d8,
11207 }, {
11208 .eraseblocks = { {2 * 1024 * 1024, 1} },
11209 .block_erase = spi_block_erase_60,
11210 }, {
11211 .eraseblocks = { {2 * 1024 * 1024, 1} },
11212 .block_erase = spi_block_erase_c7,
11213 },
11214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011215 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011216 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000011217 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011218 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011219 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011220 },
11221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011222 {
11223 .vendor = "SST",
11224 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011225 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011226 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011227 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011228 .total_size = 4096,
11229 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011230 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000011231 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011232 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011233 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011234 .block_erasers =
11235 {
11236 {
11237 .eraseblocks = { {4 * 1024, 1024} },
11238 .block_erase = spi_block_erase_20,
11239 }, {
11240 .eraseblocks = { {32 * 1024, 128} },
11241 .block_erase = spi_block_erase_52,
11242 }, {
11243 .eraseblocks = { {64 * 1024, 64} },
11244 .block_erase = spi_block_erase_d8,
11245 }, {
11246 .eraseblocks = { {4 * 1024 * 1024, 1} },
11247 .block_erase = spi_block_erase_60,
11248 }, {
11249 .eraseblocks = { {4 * 1024 * 1024, 1} },
11250 .block_erase = spi_block_erase_c7,
11251 },
11252 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011253 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011254 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011255 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011256 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011257 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000011258 },
11259
11260 {
11261 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011262 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011263 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011264 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011265 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011266 .total_size = 8192,
11267 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011268 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000011269 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011270 .probe = probe_spi_rdid,
11271 .probe_timing = TIMING_ZERO,
11272 .block_erasers =
11273 {
11274 {
11275 .eraseblocks = { {4 * 1024, 2048} },
11276 .block_erase = spi_block_erase_20,
11277 }, {
11278 .eraseblocks = { {32 * 1024, 256} },
11279 .block_erase = spi_block_erase_52,
11280 }, {
11281 .eraseblocks = { {64 * 1024, 128} },
11282 .block_erase = spi_block_erase_d8,
11283 }, {
11284 .eraseblocks = { {8 * 1024 * 1024, 1} },
11285 .block_erase = spi_block_erase_60,
11286 }, {
11287 .eraseblocks = { {8 * 1024 * 1024, 1} },
11288 .block_erase = spi_block_erase_c7,
11289 },
11290 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011291 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011292 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000011293 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011294 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011295 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000011296 },
11297
11298 {
11299 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000011300 .name = "SST25WF512",
11301 .bustype = BUS_SPI,
11302 .manufacture_id = SST_ID,
11303 .model_id = SST_SST25WF512,
11304 .total_size = 64,
11305 .page_size = 256,
11306 .feature_bits = FEATURE_WRSR_EITHER,
11307 .tested = TEST_UNTESTED,
11308 .probe = probe_spi_rdid,
11309 .probe_timing = TIMING_ZERO,
11310 .block_erasers =
11311 {
11312 {
11313 .eraseblocks = { {4 * 1024, 16} },
11314 .block_erase = spi_block_erase_20,
11315 }, {
11316 .eraseblocks = { {32 * 1024, 2} },
11317 .block_erase = spi_block_erase_52,
11318 }, {
11319 .eraseblocks = { {1024 * 64, 1} },
11320 .block_erase = spi_block_erase_60,
11321 }, {
11322 .eraseblocks = { {1024 * 64, 1} },
11323 .block_erase = spi_block_erase_c7,
11324 },
11325 },
Jason Harper43ddef02014-05-04 00:55:24 +000011326 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11327 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011328 .write = spi_aai_write,
11329 .read = spi_chip_read, /* Fast read (0x0B) supported */
11330 .voltage = {1650, 1950},
11331 },
11332
11333 {
11334 .vendor = "SST",
11335 .name = "SST25WF010",
11336 .bustype = BUS_SPI,
11337 .manufacture_id = SST_ID,
11338 .model_id = SST_SST25WF010,
11339 .total_size = 128,
11340 .page_size = 256,
11341 .feature_bits = FEATURE_WRSR_EITHER,
11342 .tested = TEST_UNTESTED,
11343 .probe = probe_spi_rdid,
11344 .probe_timing = TIMING_ZERO,
11345 .block_erasers =
11346 {
11347 {
11348 .eraseblocks = { {4 * 1024, 32} },
11349 .block_erase = spi_block_erase_20,
11350 }, {
11351 .eraseblocks = { {32 * 1024, 4} },
11352 .block_erase = spi_block_erase_52,
11353 }, {
11354 .eraseblocks = { {1024 * 128, 1} },
11355 .block_erase = spi_block_erase_60,
11356 }, {
11357 .eraseblocks = { {1024 * 128, 1} },
11358 .block_erase = spi_block_erase_c7,
11359 },
11360 },
Jason Harper43ddef02014-05-04 00:55:24 +000011361 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11362 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011363 .write = spi_aai_write,
11364 .read = spi_chip_read, /* Fast read (0x0B) supported */
11365 .voltage = {1650, 1950},
11366 },
11367
11368 {
11369 .vendor = "SST",
11370 .name = "SST25WF020",
11371 .bustype = BUS_SPI,
11372 .manufacture_id = SST_ID,
11373 .model_id = SST_SST25WF020,
11374 .total_size = 256,
11375 .page_size = 256,
11376 .feature_bits = FEATURE_WRSR_EITHER,
11377 .tested = TEST_UNTESTED,
11378 .probe = probe_spi_rdid,
11379 .probe_timing = TIMING_ZERO,
11380 .block_erasers =
11381 {
11382 {
11383 .eraseblocks = { {4 * 1024, 64} },
11384 .block_erase = spi_block_erase_20,
11385 }, {
11386 .eraseblocks = { {32 * 1024, 8} },
11387 .block_erase = spi_block_erase_52,
11388 }, {
11389 .eraseblocks = { {64 * 1024, 4} },
11390 .block_erase = spi_block_erase_d8,
11391 }, {
11392 .eraseblocks = { {1024 * 256, 1} },
11393 .block_erase = spi_block_erase_60,
11394 }, {
11395 .eraseblocks = { {1024 * 256, 1} },
11396 .block_erase = spi_block_erase_c7,
11397 },
11398 },
Jason Harper43ddef02014-05-04 00:55:24 +000011399 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11400 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011401 .write = spi_aai_write,
11402 .read = spi_chip_read, /* Fast read (0x0B) supported */
11403 .voltage = {1650, 1950},
11404 },
11405
11406 {
11407 .vendor = "SST",
11408 .name = "SST25WF040",
11409 .bustype = BUS_SPI,
11410 .manufacture_id = SST_ID,
11411 .model_id = SST_SST25WF040,
11412 .total_size = 512,
11413 .page_size = 256,
11414 .feature_bits = FEATURE_WRSR_EITHER,
11415 .tested = TEST_UNTESTED,
11416 .probe = probe_spi_rdid,
11417 .probe_timing = TIMING_ZERO,
11418 .block_erasers =
11419 {
11420 {
11421 .eraseblocks = { {4 * 1024, 128} },
11422 .block_erase = spi_block_erase_20,
11423 }, {
11424 .eraseblocks = { {32 * 1024, 16} },
11425 .block_erase = spi_block_erase_52,
11426 }, {
11427 .eraseblocks = { {64 * 1024, 8} },
11428 .block_erase = spi_block_erase_d8,
11429 }, {
11430 .eraseblocks = { {1024 * 512, 1} },
11431 .block_erase = spi_block_erase_60,
11432 }, {
11433 .eraseblocks = { {1024 * 512, 1} },
11434 .block_erase = spi_block_erase_c7,
11435 },
11436 },
Jason Harper43ddef02014-05-04 00:55:24 +000011437 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
11438 .unlock = spi_disable_blockprotect_bp2_srwd,
11439 .write = spi_aai_write,
11440 .read = spi_chip_read, /* Fast read (0x0B) supported */
11441 .voltage = {1650, 1950},
11442 },
11443
11444 {
11445 .vendor = "SST",
11446 .name = "SST25WF080",
11447 .bustype = BUS_SPI,
11448 .manufacture_id = SST_ID,
11449 .model_id = SST_SST25WF080,
11450 .total_size = 1024,
11451 .page_size = 256,
11452 .feature_bits = FEATURE_WRSR_EITHER,
11453 .tested = TEST_OK_PREW,
11454 .probe = probe_spi_rdid,
11455 .probe_timing = TIMING_ZERO,
11456 .block_erasers =
11457 {
11458 {
11459 .eraseblocks = { {4 * 1024, 256} },
11460 .block_erase = spi_block_erase_20,
11461 }, {
11462 .eraseblocks = { {32 * 1024, 32} },
11463 .block_erase = spi_block_erase_52,
11464 }, {
11465 .eraseblocks = { {64 * 1024, 16} },
11466 .block_erase = spi_block_erase_d8,
11467 }, {
11468 .eraseblocks = { {1024 * 1024, 1} },
11469 .block_erase = spi_block_erase_60,
11470 }, {
11471 .eraseblocks = { {1024 * 1024, 1} },
11472 .block_erase = spi_block_erase_c7,
11473 },
11474 },
11475 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
11476 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000011477 .write = spi_aai_write,
11478 .read = spi_chip_read, /* Fast read (0x0B) supported */
11479 .voltage = {1650, 1950},
11480 },
11481
11482 {
11483 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011484 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011485 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011486 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011487 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011488 .total_size = 512,
11489 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000011490 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011491 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011492 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011493 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011494 .block_erasers =
11495 {
11496 {
11497 .eraseblocks = { {128, 4096} },
11498 .block_erase = erase_sector_28sf040,
11499 }, {
11500 .eraseblocks = { {512 * 1024, 1} },
11501 .block_erase = erase_chip_28sf040,
11502 }
11503 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011504 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011505 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011507 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011508 },
11509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011510 {
11511 .vendor = "SST",
11512 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011513 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011514 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011515 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011516 .total_size = 128,
11517 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011518 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011519 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011520 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011521 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011522 .block_erasers =
11523 {
11524 {
11525 .eraseblocks = { {128 * 1024, 1} },
11526 .block_erase = erase_chip_block_jedec,
11527 }
11528 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011529 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011530 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011531 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011532 },
11533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011534 {
11535 .vendor = "SST",
11536 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011537 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011538 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011539 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011540 .total_size = 128,
11541 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011542 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011543 .tested = TEST_UNTESTED,
11544 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011545 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011546 .block_erasers =
11547 {
11548 {
11549 .eraseblocks = { {128 * 1024, 1} },
11550 .block_erase = erase_chip_block_jedec,
11551 }
11552 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011553 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011555 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011556 },
11557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011558 {
11559 .vendor = "SST",
11560 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011561 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011562 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011563 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011564 .total_size = 256,
11565 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011566 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011567 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011568 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011569 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011570 .block_erasers =
11571 {
11572 {
11573 .eraseblocks = { {256 * 1024, 1} },
11574 .block_erase = erase_chip_block_jedec,
11575 }
11576 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011577 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011579 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011580 },
11581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011582 {
11583 .vendor = "SST",
11584 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011585 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011586 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011587 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011588 .total_size = 256,
11589 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000011590 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011591 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011592 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011593 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011594 .block_erasers =
11595 {
11596 {
11597 .eraseblocks = { {256 * 1024, 1} },
11598 .block_erase = erase_chip_block_jedec,
11599 }
11600 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011601 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011603 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011604 },
11605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011606 {
11607 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000011608 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011609 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011610 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011611 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011612 .total_size = 64,
11613 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011614 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000011615 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011616 .probe = probe_jedec,
11617 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000011618 .block_erasers =
11619 {
11620 {
11621 .eraseblocks = { {4 * 1024, 16} },
11622 .block_erase = erase_sector_jedec,
11623 }, {
11624 .eraseblocks = { {64 * 1024, 1} },
11625 .block_erase = erase_chip_block_jedec,
11626 }
11627 },
Sean Nelson35727f72010-01-28 23:55:12 +000011628 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000011629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011630 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000011631 },
11632
11633 {
11634 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011635 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011636 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011637 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011638 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011639 .total_size = 128,
11640 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011641 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011642 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011643 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011644 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011645 .block_erasers =
11646 {
11647 {
11648 .eraseblocks = { {4 * 1024, 32} },
11649 .block_erase = erase_sector_jedec,
11650 }, {
11651 .eraseblocks = { {128 * 1024, 1} },
11652 .block_erase = erase_chip_block_jedec,
11653 }
11654 },
Sean Nelson35727f72010-01-28 23:55:12 +000011655 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011657 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011658 },
11659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011660 {
11661 .vendor = "SST",
11662 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011663 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011664 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011665 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011666 .total_size = 256,
11667 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011668 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000011669 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011670 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011671 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011672 .block_erasers =
11673 {
11674 {
11675 .eraseblocks = { {4 * 1024, 64} },
11676 .block_erase = erase_sector_jedec,
11677 }, {
11678 .eraseblocks = { {256 * 1024, 1} },
11679 .block_erase = erase_chip_block_jedec,
11680 }
11681 },
Sean Nelson35727f72010-01-28 23:55:12 +000011682 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011684 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011685 },
11686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011687 {
11688 .vendor = "SST",
11689 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011691 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011692 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011693 .total_size = 512,
11694 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011695 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000011696 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011697 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011698 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011699 .block_erasers =
11700 {
11701 {
11702 .eraseblocks = { {4 * 1024, 128} },
11703 .block_erase = erase_sector_jedec,
11704 }, {
11705 .eraseblocks = { {512 * 1024, 1} },
11706 .block_erase = erase_chip_block_jedec,
11707 }
11708 },
Sean Nelson35727f72010-01-28 23:55:12 +000011709 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011711 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011712 },
11713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011714 {
11715 .vendor = "SST",
11716 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011717 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011718 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011719 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011720 .total_size = 64,
11721 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011722 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000011723 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011724 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011725 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011726 .block_erasers =
11727 {
11728 {
11729 .eraseblocks = { {4 * 1024, 16} },
11730 .block_erase = erase_sector_jedec,
11731 }, {
11732 .eraseblocks = { {64 * 1024, 1} },
11733 .block_erase = erase_chip_block_jedec,
11734 }
11735 },
Sean Nelson35727f72010-01-28 23:55:12 +000011736 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011738 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011739 },
11740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011741 {
11742 .vendor = "SST",
11743 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011744 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011745 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011746 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011747 .total_size = 128,
11748 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011749 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000011750 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011751 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011752 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011753 .block_erasers =
11754 {
11755 {
11756 .eraseblocks = { {4 * 1024, 32} },
11757 .block_erase = erase_sector_jedec,
11758 }, {
11759 .eraseblocks = { {128 * 1024, 1} },
11760 .block_erase = erase_chip_block_jedec,
11761 }
11762 },
Sean Nelson35727f72010-01-28 23:55:12 +000011763 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011765 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011766 },
11767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011768 {
11769 .vendor = "SST",
11770 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011771 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011772 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011773 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011774 .total_size = 256,
11775 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011776 .feature_bits = FEATURE_EITHER_RESET,
11777 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011778 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011779 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011780 .block_erasers =
11781 {
11782 {
11783 .eraseblocks = { {4 * 1024, 64} },
11784 .block_erase = erase_sector_jedec,
11785 }, {
11786 .eraseblocks = { {256 * 1024, 1} },
11787 .block_erase = erase_chip_block_jedec,
11788 }
11789 },
Sean Nelson35727f72010-01-28 23:55:12 +000011790 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011791 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011792 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011793 },
11794
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011795 {
11796 .vendor = "SST",
11797 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011798 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011799 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011800 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011801 .total_size = 512,
11802 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011803 .feature_bits = FEATURE_EITHER_RESET,
11804 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011805 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011806 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011807 .block_erasers =
11808 {
11809 {
11810 .eraseblocks = { {4 * 1024, 128} },
11811 .block_erase = erase_sector_jedec,
11812 }, {
11813 .eraseblocks = { {512 * 1024, 1} },
11814 .block_erase = erase_chip_block_jedec,
11815 }
11816 },
Sean Nelson35727f72010-01-28 23:55:12 +000011817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011819 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000011820 },
FENG yu ningff692fb2008-12-08 18:15:10 +000011821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011822 {
11823 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000011824 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011825 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000011826 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011827 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000011828 .total_size = 1024,
11829 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011830 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000011831 .tested = TEST_UNTESTED,
11832 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000011833 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011834 .block_erasers =
11835 {
11836 {
11837 .eraseblocks = { {4 * 1024, 256} },
11838 .block_erase = erase_sector_jedec,
11839 }, {
11840 .eraseblocks = { {64 * 1024, 16} },
11841 .block_erase = erase_block_jedec,
11842 }, {
11843 .eraseblocks = { {1024 * 1024, 1} },
11844 .block_erase = erase_chip_block_jedec,
11845 }
11846 },
Sean Nelson35727f72010-01-28 23:55:12 +000011847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011849 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000011850 },
11851
11852 {
11853 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011854 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011855 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011856 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011857 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011858 .total_size = 256,
11859 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011860 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011861 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011862 .probe = probe_jedec,
11863 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011864 .block_erasers =
11865 {
11866 {
11867 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011868 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011869 }, {
11870 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011871 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011872 }, {
11873 .eraseblocks = { {256 * 1024, 1} },
11874 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11875 }
11876 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011877 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011878 .unlock = unlock_sst_fwhub,
11879 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011880 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011881 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011882 },
11883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011884 {
11885 .vendor = "SST",
11886 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011887 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011888 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011889 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011890 .total_size = 384,
11891 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011892 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000011893 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011894 .probe = probe_jedec,
11895 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011896 .block_erasers =
11897 {
11898 {
11899 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011900 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011901 }, {
11902 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011903 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011904 }, {
11905 .eraseblocks = { {384 * 1024, 1} },
11906 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
11907 }
11908 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011909 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011910 .unlock = unlock_sst_fwhub,
11911 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011913 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011914 },
11915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011916 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011917 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
11918 * and is only honored for 64k block erase, but not 4k sector erase.
11919 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011920 .vendor = "SST",
11921 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011922 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011923 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011924 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011925 .total_size = 512,
11926 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011927 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000011928 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011929 .probe = probe_jedec,
11930 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011931 .block_erasers =
11932 {
11933 {
11934 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011935 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011936 }, {
11937 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011938 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011939 }, {
11940 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011941 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000011942 },
11943 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011944 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000011945 .unlock = unlock_sst_fwhub,
11946 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011948 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011949 },
11950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011951 {
11952 .vendor = "SST",
11953 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011954 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011955 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011956 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011957 .total_size = 512,
11958 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011959 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011960 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011961 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011962 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011963 .block_erasers =
11964 {
11965 {
11966 .eraseblocks = { {4 * 1024, 128} },
11967 .block_erase = erase_sector_49lfxxxc,
11968 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000011969 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000011970 {64 * 1024, 7},
11971 {32 * 1024, 1},
11972 {8 * 1024, 2},
11973 {16 * 1024, 1},
11974 },
Sean Nelson69e58112010-03-23 17:10:28 +000011975 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000011976 }
11977 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011978 .printlock = printlock_regspace2_block_eraser_1,
11979 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000011980 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011982 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011983 },
11984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011985 {
11986 .vendor = "SST",
11987 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011988 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011989 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011990 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011991 .total_size = 1024,
11992 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011993 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011994 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011995 .probe = probe_jedec,
11996 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000011997 .block_erasers =
11998 {
11999 {
12000 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012001 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012002 }, {
12003 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012004 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012005 }, {
12006 .eraseblocks = { {1024 * 1024, 1} },
12007 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
12008 }
12009 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012010 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000012011 .unlock = unlock_sst_fwhub,
12012 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012013 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012014 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012015 },
12016
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012017 {
12018 .vendor = "SST",
12019 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012020 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012021 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012022 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012023 .total_size = 1024,
12024 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012025 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012026 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012027 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012028 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012029 .block_erasers =
12030 {
12031 {
12032 .eraseblocks = { {4 * 1024, 256} },
12033 .block_erase = erase_sector_49lfxxxc,
12034 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012035 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012036 {64 * 1024, 15},
12037 {32 * 1024, 1},
12038 {8 * 1024, 2},
12039 {16 * 1024, 1},
12040 },
Sean Nelson69e58112010-03-23 17:10:28 +000012041 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012042 }
12043 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012044 .printlock = printlock_regspace2_block_eraser_1,
12045 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012046 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012048 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012049 },
12050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012051 {
12052 .vendor = "SST",
12053 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012054 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012055 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012056 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012057 .total_size = 2048,
12058 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012059 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012060 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012061 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012062 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012063 .block_erasers =
12064 {
12065 {
12066 .eraseblocks = { {4 * 1024, 512} },
12067 .block_erase = erase_sector_49lfxxxc,
12068 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012069 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012070 {64 * 1024, 31},
12071 {32 * 1024, 1},
12072 {8 * 1024, 2},
12073 {16 * 1024, 1},
12074 },
Sean Nelson69e58112010-03-23 17:10:28 +000012075 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012076 }
12077 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012078 .printlock = printlock_regspace2_block_eraser_1,
12079 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012080 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012082 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012083 },
12084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012085 {
12086 .vendor = "SST",
12087 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012088 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012089 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012090 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012091 .total_size = 256,
12092 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012093 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000012094 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012095 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012096 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012097 .block_erasers =
12098 {
12099 {
12100 .eraseblocks = { {4 * 1024, 64} },
12101 .block_erase = erase_sector_jedec,
12102 }, {
12103 .eraseblocks = { {16 * 1024, 16} },
12104 .block_erase = erase_block_jedec,
12105 }, {
12106 .eraseblocks = { {256 * 1024, 1} },
12107 .block_erase = NULL,
12108 }
12109 },
Sean Nelson35727f72010-01-28 23:55:12 +000012110 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012111 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012112 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000012113 },
12114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012115 {
12116 .vendor = "SST",
12117 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012118 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012119 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012120 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012121 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000012122 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012123 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012124 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012125 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012126 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012127 .block_erasers =
12128 {
12129 {
12130 .eraseblocks = { {4 * 1024, 64} },
12131 .block_erase = erase_sector_jedec,
12132 }, {
12133 .eraseblocks = { {16 * 1024, 16} },
12134 .block_erase = erase_block_jedec,
12135 }, {
12136 .eraseblocks = { {256 * 1024, 1} },
12137 .block_erase = NULL,
12138 }
12139 },
Sean Nelson35727f72010-01-28 23:55:12 +000012140 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012141 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012142 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012143 },
12144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012145 {
12146 .vendor = "SST",
12147 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012148 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012149 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012150 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012151 .total_size = 512,
12152 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012153 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012154 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012155 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000012156 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012157 .block_erasers =
12158 {
12159 {
12160 .eraseblocks = { {4 * 1024, 128} },
12161 .block_erase = erase_sector_jedec,
12162 }, {
12163 .eraseblocks = { {64 * 1024, 8} },
12164 .block_erase = erase_block_jedec,
12165 }, {
12166 .eraseblocks = { {512 * 1024, 1} },
12167 .block_erase = NULL,
12168 }
12169 },
Sean Nelson35727f72010-01-28 23:55:12 +000012170 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012172 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012173 },
12174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012175 {
12176 .vendor = "SST",
12177 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012178 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012179 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012180 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012181 .total_size = 512,
12182 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000012183 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012184 .tested = TEST_OK_PR,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012185 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012186 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012187 .block_erasers =
12188 {
12189 {
12190 .eraseblocks = { {4 * 1024, 128} },
12191 .block_erase = erase_sector_jedec,
12192 }, {
12193 .eraseblocks = { {64 * 1024, 8} },
12194 .block_erase = erase_block_jedec,
12195 }, {
12196 .eraseblocks = { {512 * 1024, 1} },
12197 .block_erase = NULL,
12198 }
12199 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012200 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000012201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012203 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012204 },
12205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012206 {
12207 .vendor = "SST",
12208 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012209 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012210 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012211 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012212 .total_size = 1024,
12213 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012214 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000012215 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012216 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012217 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012218 .block_erasers =
12219 {
12220 {
12221 .eraseblocks = { {4 * 1024, 256} },
12222 .block_erase = erase_sector_jedec,
12223 }, {
12224 .eraseblocks = { {64 * 1024, 16} },
12225 .block_erase = erase_block_jedec,
12226 }, {
12227 .eraseblocks = { {1024 * 1024, 1} },
12228 .block_erase = NULL,
12229 }
12230 },
Sean Nelson35727f72010-01-28 23:55:12 +000012231 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012233 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012234 },
12235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012236 {
12237 .vendor = "SST",
12238 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012239 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012240 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012241 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012242 .total_size = 2048,
12243 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012244 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012245 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012246 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012247 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012248 .block_erasers =
12249 {
12250 {
12251 .eraseblocks = { {4 * 1024, 512} },
12252 .block_erase = erase_sector_49lfxxxc,
12253 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000012254 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000012255 {64 * 1024, 31},
12256 {32 * 1024, 1},
12257 {8 * 1024, 2},
12258 {16 * 1024, 1},
12259 },
Sean Nelson69e58112010-03-23 17:10:28 +000012260 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012261 }
12262 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012263 .printlock = printlock_regspace2_block_eraser_1,
12264 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012265 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012267 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012268 },
12269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012270 {
12271 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012272 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012273 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012274 .manufacture_id = ST_ID,
12275 .model_id = ST_M29F002B,
12276 .total_size = 256,
12277 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012278 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012279 .tested = TEST_UNTESTED,
12280 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012281 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012282 .block_erasers =
12283 {
12284 {
12285 .eraseblocks = {
12286 {16 * 1024, 1},
12287 {8 * 1024, 2},
12288 {32 * 1024, 1},
12289 {64 * 1024, 3},
12290 },
12291 .block_erase = erase_sector_jedec,
12292 }, {
12293 .eraseblocks = { {256 * 1024, 1} },
12294 .block_erase = erase_chip_block_jedec,
12295 }
12296 },
Sean Nelson35727f72010-01-28 23:55:12 +000012297 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012298 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012299 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012300 },
12301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012302 {
12303 .vendor = "ST",
12304 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012305 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012306 .manufacture_id = ST_ID,
12307 .model_id = ST_M29F002T,
12308 .total_size = 256,
12309 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012310 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012311 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012312 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012313 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012314 .block_erasers =
12315 {
12316 {
12317 .eraseblocks = {
12318 {64 * 1024, 3},
12319 {32 * 1024, 1},
12320 {8 * 1024, 2},
12321 {16 * 1024, 1},
12322 },
12323 .block_erase = erase_sector_jedec,
12324 }, {
12325 .eraseblocks = { {256 * 1024, 1} },
12326 .block_erase = erase_chip_block_jedec,
12327 }
12328 },
Sean Nelson35727f72010-01-28 23:55:12 +000012329 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012330 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012331 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000012332 },
12333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012334 {
12335 .vendor = "ST",
12336 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012337 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012338 .manufacture_id = ST_ID,
12339 .model_id = ST_M29F040B,
12340 .total_size = 512,
12341 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012342 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12343 .tested = TEST_UNTESTED,
12344 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000012345 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000012346 .block_erasers =
12347 {
12348 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012349 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000012350 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012351 }, {
12352 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012353 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012354 }
12355 },
Sean Nelson35727f72010-01-28 23:55:12 +000012356 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012357 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012358 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012359 },
12360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012361 {
Sean Nelson35727f72010-01-28 23:55:12 +000012362 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012363 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012364 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012365 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012366 .manufacture_id = ST_ID,
12367 .model_id = ST_M29F400BB,
12368 .total_size = 512,
12369 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012370 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012371 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012372 .probe = probe_jedec,
12373 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012374 .block_erasers =
12375 {
12376 {
12377 .eraseblocks = {
12378 {16 * 1024, 1},
12379 {8 * 1024, 2},
12380 {32 * 1024, 1},
12381 {64 * 1024, 7},
12382 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012383 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012384 }, {
12385 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012386 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012387 }
12388 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012389 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012390 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012391 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000012392 },
12393 {
12394 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
12395 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012396 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012397 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012398 .manufacture_id = ST_ID,
12399 .model_id = ST_M29F400BT,
12400 .total_size = 512,
12401 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012402 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012403 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012404 .probe = probe_jedec,
12405 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000012406 .block_erasers =
12407 {
12408 {
12409 .eraseblocks = {
12410 {64 * 1024, 7},
12411 {32 * 1024, 1},
12412 {8 * 1024, 2},
12413 {16 * 1024, 1},
12414 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012415 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012416 }, {
12417 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012418 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000012419 }
12420 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000012421 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012422 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012423 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012424 },
12425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012426 {
12427 .vendor = "ST",
12428 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012429 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012430 .manufacture_id = ST_ID,
12431 .model_id = ST_M29W010B,
12432 .total_size = 128,
12433 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012434 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012435 .tested = TEST_UNTESTED,
12436 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012437 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012438 .block_erasers =
12439 {
12440 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012441 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012442 .block_erase = erase_sector_jedec,
12443 }, {
12444 .eraseblocks = { {128 * 1024, 1} },
12445 .block_erase = erase_chip_block_jedec,
12446 }
12447 },
Sean Nelson35727f72010-01-28 23:55:12 +000012448 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012449 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012450 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012451 },
12452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012453 {
12454 .vendor = "ST",
12455 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012456 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012457 .manufacture_id = ST_ID,
12458 .model_id = ST_M29W040B,
12459 .total_size = 512,
12460 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012461 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012462 .tested = TEST_UNTESTED,
12463 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012464 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012465 .block_erasers =
12466 {
12467 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012468 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000012469 .block_erase = erase_sector_jedec,
12470 }, {
12471 .eraseblocks = { {512 * 1024, 1} },
12472 .block_erase = erase_chip_block_jedec,
12473 }
12474 },
Sean Nelson35727f72010-01-28 23:55:12 +000012475 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012477 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012478 },
12479
Stefan Taunereb582572012-09-21 12:52:50 +000012480 {
12481 .vendor = "ST",
12482 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012483 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000012484 .manufacture_id = ST_ID,
12485 .model_id = ST_M29W512B,
12486 .total_size = 64,
12487 .page_size = 64 * 1024,
12488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012489 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000012490 .probe = probe_jedec,
12491 .probe_timing = TIMING_ZERO,
12492 .block_erasers =
12493 {
12494 {
12495 .eraseblocks = { {64 * 1024, 1} },
12496 .block_erase = erase_chip_block_jedec,
12497 }
12498 },
12499 .write = write_jedec_1,
12500 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012501 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000012502 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000012503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012504 {
12505 .vendor = "ST",
12506 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012507 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012508 .manufacture_id = ST_ID,
12509 .model_id = ST_M50FLW040A,
12510 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012511 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012512 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012513 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012514 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012515 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012516 .block_erasers =
12517 {
12518 {
Sean Nelson329bde72010-01-19 16:39:19 +000012519 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012520 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012521 {64 * 1024, 5}, /* block */
12522 {4 * 1024, 16}, /* sector */
12523 {4 * 1024, 16}, /* sector */
12524 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012525 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012526 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012527 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012528 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012529 }
12530 },
Sean Nelson28accc22010-03-19 18:47:06 +000012531 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012532 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012534 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012535 },
12536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012537 {
12538 .vendor = "ST",
12539 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012540 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012541 .manufacture_id = ST_ID,
12542 .model_id = ST_M50FLW040B,
12543 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012544 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012545 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012546 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012547 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012548 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012549 .block_erasers =
12550 {
12551 {
Sean Nelson329bde72010-01-19 16:39:19 +000012552 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012553 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012554 {4 * 1024, 16}, /* sector */
12555 {64 * 1024, 5}, /* block */
12556 {4 * 1024, 16}, /* sector */
12557 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012558 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012559 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012560 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012561 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012562 }
12563 },
Sean Nelson28accc22010-03-19 18:47:06 +000012564 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012565 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012567 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012568 },
12569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012570 {
12571 .vendor = "ST",
12572 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012573 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012574 .manufacture_id = ST_ID,
12575 .model_id = ST_M50FLW080A,
12576 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012577 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012578 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012579 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012580 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012581 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012582 .block_erasers =
12583 {
12584 {
Sean Nelson329bde72010-01-19 16:39:19 +000012585 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012586 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012587 {64 * 1024, 13}, /* block */
12588 {4 * 1024, 16}, /* sector */
12589 {4 * 1024, 16}, /* sector */
12590 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012591 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012592 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012593 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012594 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012595 }
12596 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012597 .printlock = printlock_regspace2_block_eraser_0,
12598 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012599 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012601 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012602 },
12603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012604 {
12605 .vendor = "ST",
12606 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012607 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012608 .manufacture_id = ST_ID,
12609 .model_id = ST_M50FLW080B,
12610 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012611 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012612 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012613 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012614 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000012615 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000012616 .block_erasers =
12617 {
12618 {
Sean Nelson329bde72010-01-19 16:39:19 +000012619 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000012620 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000012621 {4 * 1024, 16}, /* sector */
12622 {64 * 1024, 13}, /* block */
12623 {4 * 1024, 16}, /* sector */
12624 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000012625 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000012626 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000012627 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012628 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012629 }
12630 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012631 .printlock = printlock_regspace2_block_eraser_0,
12632 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012633 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012635 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012636 },
12637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012638 {
12639 .vendor = "ST",
12640 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012641 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012642 .manufacture_id = ST_ID,
12643 .model_id = ST_M50FW002,
12644 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000012645 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012646 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012647 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000012648 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012649 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012650 .block_erasers =
12651 {
12652 {
12653 .eraseblocks = {
12654 {64 * 1024, 3},
12655 {32 * 1024, 1},
12656 {8 * 1024, 2},
12657 {16 * 1024, 1},
12658 },
Sean Nelson28accc22010-03-19 18:47:06 +000012659 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012660 }, {
12661 .eraseblocks = { {256 * 1024, 1}, },
12662 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000012663 }
12664 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012665 .printlock = printlock_regspace2_block_eraser_0,
12666 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012667 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012669 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012670 },
12671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012672 {
12673 .vendor = "ST",
12674 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012675 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012676 .manufacture_id = ST_ID,
12677 .model_id = ST_M50FW016,
12678 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012679 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012680 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012681 .tested = TEST_UNTESTED,
12682 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012683 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012684 .block_erasers =
12685 {
12686 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012687 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000012688 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012689 }
12690 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012691 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012692 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012694 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012695 },
12696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012697 {
12698 .vendor = "ST",
12699 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012700 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012701 .manufacture_id = ST_ID,
12702 .model_id = ST_M50FW040,
12703 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000012704 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012705 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000012706 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012707 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012708 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012709 .block_erasers =
12710 {
12711 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012712 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000012713 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012714 }
12715 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012716 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012717 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012718 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012719 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012720 },
12721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012722 {
12723 .vendor = "ST",
12724 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012725 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012726 .manufacture_id = ST_ID,
12727 .model_id = ST_M50FW080,
12728 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000012729 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012730 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012731 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012732 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012733 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000012734 .block_erasers =
12735 {
12736 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012737 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000012738 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012739 }
12740 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012741 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000012742 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012744 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012745 },
12746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012747 {
12748 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012749 .name = "M50LPW080",
12750 .bustype = BUS_LPC, /* A/A Mux */
12751 .manufacture_id = ST_ID,
12752 .model_id = ST_M50LPW080,
12753 .total_size = 1024,
12754 .page_size = 0,
12755 .feature_bits = FEATURE_REGISTERMAP,
12756 .tested = TEST_UNTESTED,
12757 .probe = probe_82802ab,
12758 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12759 .block_erasers =
12760 {
12761 {
Stefan Tauner6697f712014-08-06 15:09:15 +000012762 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012763 .block_erase = erase_block_82802ab,
12764 }
12765 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012766 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000012767 .write = write_82802ab,
12768 .read = read_memmapped,
12769 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
12770 },
12771
12772 {
12773 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012774 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012775 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012776 .manufacture_id = ST_ID,
12777 .model_id = ST_M50LPW116,
12778 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000012779 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012780 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012781 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012782 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000012783 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012784 .block_erasers =
12785 {
12786 {
12787 .eraseblocks = {
12788 {4 * 1024, 16},
12789 {64 * 1024, 30},
12790 {32 * 1024, 1},
12791 {8 * 1024, 2},
12792 {16 * 1024, 1},
12793 },
Sean Nelson28accc22010-03-19 18:47:06 +000012794 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000012795 }
12796 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012797 .printlock = printlock_regspace2_block_eraser_0,
12798 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000012799 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012801 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000012802 },
12803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012804 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012805 .vendor = "SyncMOS/MoselVitelic",
12806 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012807 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012808 .manufacture_id = SYNCMOS_MVC_ID,
12809 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012810 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012811 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012812 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012813 .tested = TEST_UNTESTED,
12814 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012816 .block_erasers =
12817 {
12818 {
12819 .eraseblocks = { {512, 256} },
12820 .block_erase = erase_sector_jedec,
12821 }, {
12822 .eraseblocks = { {128 * 1024, 1} },
12823 .block_erase = erase_chip_block_jedec,
12824 },
12825 },
Sean Nelson35727f72010-01-28 23:55:12 +000012826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012828 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012829 },
12830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012831 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012832 .vendor = "SyncMOS/MoselVitelic",
12833 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012834 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012835 .manufacture_id = SYNCMOS_MVC_ID,
12836 .model_id = SM_MVC_29C51001T,
12837 .total_size = 128,
12838 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000012839 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012840 .tested = TEST_UNTESTED,
12841 .probe = probe_jedec,
12842 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12843 .block_erasers =
12844 {
12845 {
12846 .eraseblocks = { {512, 256} },
12847 .block_erase = erase_sector_jedec,
12848 }, {
12849 .eraseblocks = { {128 * 1024, 1} },
12850 .block_erase = erase_chip_block_jedec,
12851 },
12852 },
12853 .write = write_jedec_1,
12854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012855 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012856 },
12857
12858 {
12859 .vendor = "SyncMOS/MoselVitelic",
12860 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012861 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012862 .manufacture_id = SYNCMOS_MVC_ID,
12863 .model_id = SM_MVC_29C51002B,
12864 .total_size = 256,
12865 .page_size = 512,
12866 .feature_bits = FEATURE_EITHER_RESET,
12867 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012868 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000012870 .block_erasers =
12871 {
12872 {
12873 .eraseblocks = { {512, 512} },
12874 .block_erase = erase_sector_jedec,
12875 }, {
12876 .eraseblocks = { {256 * 1024, 1} },
12877 .block_erase = erase_chip_block_jedec,
12878 },
12879 },
Sean Nelson35727f72010-01-28 23:55:12 +000012880 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012881 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012882 },
12883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012884 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012885 .vendor = "SyncMOS/MoselVitelic",
12886 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012887 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012888 .manufacture_id = SYNCMOS_MVC_ID,
12889 .model_id = SM_MVC_29C51002T,
12890 .total_size = 256,
12891 .page_size = 512,
12892 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012893 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012894 .probe = probe_jedec,
12895 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12896 .block_erasers =
12897 {
12898 {
12899 .eraseblocks = { {512, 512} },
12900 .block_erase = erase_sector_jedec,
12901 }, {
12902 .eraseblocks = { {256 * 1024, 1} },
12903 .block_erase = erase_chip_block_jedec,
12904 },
12905 },
12906 .write = write_jedec_1,
12907 .read = read_memmapped,
12908 },
12909
12910 {
12911 .vendor = "SyncMOS/MoselVitelic",
12912 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012913 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012914 .manufacture_id = SYNCMOS_MVC_ID,
12915 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012916 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012917 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012918 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012919 .tested = TEST_UNTESTED,
12920 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012921 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000012922 .block_erasers =
12923 {
12924 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012925 .eraseblocks = { {1024, 512} },
12926 .block_erase = erase_sector_jedec,
12927 }, {
12928 .eraseblocks = { {512 * 1024, 1} },
12929 .block_erase = erase_chip_block_jedec,
12930 },
12931 },
12932 .write = write_jedec_1,
12933 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012934 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012935 },
12936
12937 {
12938 .vendor = "SyncMOS/MoselVitelic",
12939 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012940 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012941 .manufacture_id = SYNCMOS_MVC_ID,
12942 .model_id = SM_MVC_29C51004T,
12943 .total_size = 512,
12944 .page_size = 1024,
12945 .feature_bits = FEATURE_EITHER_RESET,
12946 .tested = TEST_UNTESTED,
12947 .probe = probe_jedec,
12948 .probe_timing = TIMING_ZERO,
12949 .block_erasers =
12950 {
12951 {
12952 .eraseblocks = { {1024, 512} },
12953 .block_erase = erase_sector_jedec,
12954 }, {
12955 .eraseblocks = { {512 * 1024, 1} },
12956 .block_erase = erase_chip_block_jedec,
12957 },
12958 },
12959 .write = write_jedec_1,
12960 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012961 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012962 },
12963
12964 {
12965 .vendor = "SyncMOS/MoselVitelic",
12966 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012967 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012968 .manufacture_id = SYNCMOS_MVC_ID,
12969 .model_id = SM_MVC_29C31004B,
12970 .total_size = 512,
12971 .page_size = 1024,
12972 .feature_bits = FEATURE_EITHER_RESET,
12973 .tested = TEST_UNTESTED,
12974 .probe = probe_jedec,
12975 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12976 .block_erasers =
12977 {
12978 {
12979 .eraseblocks = { {1024, 512} },
12980 .block_erase = erase_sector_jedec,
12981 }, {
12982 .eraseblocks = { {512 * 1024, 1} },
12983 .block_erase = erase_chip_block_jedec,
12984 },
12985 },
12986 .write = write_jedec_1,
12987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012988 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012989 },
12990
12991 {
12992 .vendor = "SyncMOS/MoselVitelic",
12993 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012994 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012995 .manufacture_id = SYNCMOS_MVC_ID,
12996 .model_id = SM_MVC_29C31004T,
12997 .total_size = 512,
12998 .page_size = 1024,
12999 .feature_bits = FEATURE_EITHER_RESET,
13000 .tested = TEST_UNTESTED,
13001 .probe = probe_jedec,
13002 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13003 .block_erasers =
13004 {
13005 {
13006 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013007 .block_erase = erase_sector_jedec,
13008 }, {
13009 .eraseblocks = { {512 * 1024, 1} },
13010 .block_erase = erase_chip_block_jedec,
13011 },
13012 },
Sean Nelson35727f72010-01-28 23:55:12 +000013013 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013014 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013015 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013016 },
13017
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013018 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013019 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013020 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013021 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013022 .manufacture_id = TI_OLD_ID,
13023 .model_id = TI_TMS29F002RB,
13024 .total_size = 256,
13025 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013026 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013027 .tested = TEST_UNTESTED,
13028 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013029 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013030 .block_erasers =
13031 {
13032 {
13033 .eraseblocks = {
13034 {16 * 1024, 1},
13035 {8 * 1024, 2},
13036 {32 * 1024, 1},
13037 {64 * 1024, 3},
13038 },
13039 .block_erase = erase_sector_jedec,
13040 }, {
13041 .eraseblocks = { {256 * 1024, 1} },
13042 .block_erase = erase_chip_block_jedec,
13043 },
13044 },
Sean Nelson35727f72010-01-28 23:55:12 +000013045 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013046 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013047 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013048 },
13049
13050 {
Uwe Hermanna106d152009-05-27 23:17:40 +000013051 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013052 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013053 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013054 .manufacture_id = TI_OLD_ID,
13055 .model_id = TI_TMS29F002RT,
13056 .total_size = 256,
13057 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000013058 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013059 .tested = TEST_UNTESTED,
13060 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013061 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013062 .block_erasers =
13063 {
13064 {
13065 .eraseblocks = {
13066 {64 * 1024, 3},
13067 {32 * 1024, 1},
13068 {8 * 1024, 2},
13069 {16 * 1024, 1},
13070 },
13071 .block_erase = erase_sector_jedec,
13072 }, {
13073 .eraseblocks = { {256 * 1024, 1} },
13074 .block_erase = erase_chip_block_jedec,
13075 },
13076 },
Sean Nelson35727f72010-01-28 23:55:12 +000013077 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013078 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013079 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000013080 },
13081
13082 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013083 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000013084 .name = "W25Q40.V",
13085 .bustype = BUS_SPI,
13086 .manufacture_id = WINBOND_NEX_ID,
13087 .model_id = WINBOND_NEX_W25Q40_V,
13088 .total_size = 512,
13089 .page_size = 256,
13090 /* supports SFDP */
13091 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13093 .tested = TEST_OK_PR,
13094 .probe = probe_spi_rdid,
13095 .probe_timing = TIMING_ZERO,
13096 .block_erasers =
13097 {
13098 {
13099 .eraseblocks = { {4 * 1024, 128} },
13100 .block_erase = spi_block_erase_20,
13101 }, {
13102 .eraseblocks = { {32 * 1024, 16} },
13103 .block_erase = spi_block_erase_52,
13104 }, {
13105 .eraseblocks = { {64 * 1024, 8} },
13106 .block_erase = spi_block_erase_d8,
13107 }, {
13108 .eraseblocks = { {512 * 1024, 1} },
13109 .block_erase = spi_block_erase_60,
13110 }, {
13111 .eraseblocks = { {512 * 1024, 1} },
13112 .block_erase = spi_block_erase_c7,
13113 }
13114 },
13115 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13116 .unlock = spi_disable_blockprotect,
13117 .write = spi_chip_write_256, /* Multi I/O supported */
13118 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13119 .voltage = {2700, 3600},
13120 },
13121
13122 {
13123 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013124 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013125 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013126 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013127 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013128 .total_size = 1024,
13129 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013130 /* supports SFDP */
13131 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013133 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013134 .probe = probe_spi_rdid,
13135 .probe_timing = TIMING_ZERO,
13136 .block_erasers =
13137 {
13138 {
13139 .eraseblocks = { {4 * 1024, 256} },
13140 .block_erase = spi_block_erase_20,
13141 }, {
13142 .eraseblocks = { {32 * 1024, 32} },
13143 .block_erase = spi_block_erase_52,
13144 }, {
13145 .eraseblocks = { {64 * 1024, 16} },
13146 .block_erase = spi_block_erase_d8,
13147 }, {
13148 .eraseblocks = { {1024 * 1024, 1} },
13149 .block_erase = spi_block_erase_60,
13150 }, {
13151 .eraseblocks = { {1024 * 1024, 1} },
13152 .block_erase = spi_block_erase_c7,
13153 }
13154 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013155 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013156 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013157 .write = spi_chip_write_256,
13158 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013159 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013160 },
13161
13162 {
13163 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013164 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013165 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013166 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013167 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013168 .total_size = 2048,
13169 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013170 /* supports SFDP */
13171 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013172 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000013173 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013174 .probe = probe_spi_rdid,
13175 .probe_timing = TIMING_ZERO,
13176 .block_erasers =
13177 {
13178 {
13179 .eraseblocks = { {4 * 1024, 512} },
13180 .block_erase = spi_block_erase_20,
13181 }, {
13182 .eraseblocks = { {32 * 1024, 64} },
13183 .block_erase = spi_block_erase_52,
13184 }, {
13185 .eraseblocks = { {64 * 1024, 32} },
13186 .block_erase = spi_block_erase_d8,
13187 }, {
13188 .eraseblocks = { {2 * 1024 * 1024, 1} },
13189 .block_erase = spi_block_erase_60,
13190 }, {
13191 .eraseblocks = { {2 * 1024 * 1024, 1} },
13192 .block_erase = spi_block_erase_c7,
13193 }
13194 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013195 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013196 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013197 .write = spi_chip_write_256,
13198 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013199 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013200 },
13201
13202 {
13203 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013204 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013205 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013206 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013207 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013208 .total_size = 4096,
13209 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013210 /* supports SFDP */
13211 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013213 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013214 .probe = probe_spi_rdid,
13215 .probe_timing = TIMING_ZERO,
13216 .block_erasers =
13217 {
13218 {
13219 .eraseblocks = { {4 * 1024, 1024} },
13220 .block_erase = spi_block_erase_20,
13221 }, {
13222 .eraseblocks = { {32 * 1024, 128} },
13223 .block_erase = spi_block_erase_52,
13224 }, {
13225 .eraseblocks = { {64 * 1024, 64} },
13226 .block_erase = spi_block_erase_d8,
13227 }, {
13228 .eraseblocks = { {4 * 1024 * 1024, 1} },
13229 .block_erase = spi_block_erase_60,
13230 }, {
13231 .eraseblocks = { {4 * 1024 * 1024, 1} },
13232 .block_erase = spi_block_erase_c7,
13233 }
13234 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013235 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013236 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000013237 .write = spi_chip_write_256,
13238 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013239 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000013240 },
13241
13242 {
13243 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013244 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013245 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000013246 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013247 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000013248 .total_size = 8192,
13249 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013250 /* supports SFDP */
13251 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013252 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000013253 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000013254 .probe = probe_spi_rdid,
13255 .probe_timing = TIMING_ZERO,
13256 .block_erasers =
13257 {
13258 {
13259 .eraseblocks = { {4 * 1024, 2048} },
13260 .block_erase = spi_block_erase_20,
13261 }, {
13262 .eraseblocks = { {32 * 1024, 256} },
13263 .block_erase = spi_block_erase_52,
13264 }, {
13265 .eraseblocks = { {64 * 1024, 128} },
13266 .block_erase = spi_block_erase_d8,
13267 }, {
13268 .eraseblocks = { {8 * 1024 * 1024, 1} },
13269 .block_erase = spi_block_erase_60,
13270 }, {
13271 .eraseblocks = { {8 * 1024 * 1024, 1} },
13272 .block_erase = spi_block_erase_c7,
13273 }
13274 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013275 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013276 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000013277 .write = spi_chip_write_256,
13278 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013279 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000013280 },
13281
13282 {
13283 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013284 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013285 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013286 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013287 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013288 .total_size = 16384,
13289 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013290 /* supports SFDP */
13291 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000013292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013293 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013294 .probe = probe_spi_rdid,
13295 .probe_timing = TIMING_ZERO,
13296 .block_erasers =
13297 {
13298 {
13299 .eraseblocks = { {4 * 1024, 4096} },
13300 .block_erase = spi_block_erase_20,
13301 }, {
13302 .eraseblocks = { {32 * 1024, 512} },
13303 .block_erase = spi_block_erase_52,
13304 }, {
13305 .eraseblocks = { {64 * 1024, 256} },
13306 .block_erase = spi_block_erase_d8,
13307 }, {
13308 .eraseblocks = { {16 * 1024 * 1024, 1} },
13309 .block_erase = spi_block_erase_60,
13310 }, {
13311 .eraseblocks = { {16 * 1024 * 1024, 1} },
13312 .block_erase = spi_block_erase_c7,
13313 }
13314 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013315 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013316 .unlock = spi_disable_blockprotect,
13317 .write = spi_chip_write_256,
13318 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013319 .voltage = {2700, 3600},
13320 },
13321
13322 {
13323 .vendor = "Winbond",
13324 .name = "W25Q20.W",
13325 .bustype = BUS_SPI,
13326 .manufacture_id = WINBOND_NEX_ID,
13327 .model_id = WINBOND_NEX_W25Q20_W,
13328 .total_size = 256,
13329 .page_size = 256,
13330 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13332 .tested = TEST_UNTESTED,
13333 .probe = probe_spi_rdid,
13334 .probe_timing = TIMING_ZERO,
13335 .block_erasers =
13336 {
13337 {
13338 .eraseblocks = { {4 * 1024, 64} },
13339 .block_erase = spi_block_erase_20,
13340 }, {
13341 .eraseblocks = { {32 * 1024, 8} },
13342 .block_erase = spi_block_erase_52,
13343 }, {
13344 .eraseblocks = { {64 * 1024, 4} },
13345 .block_erase = spi_block_erase_d8,
13346 }, {
13347 .eraseblocks = { {256 * 1024, 1} },
13348 .block_erase = spi_block_erase_60,
13349 }, {
13350 .eraseblocks = { {256 * 1024, 1} },
13351 .block_erase = spi_block_erase_c7,
13352 }
13353 },
13354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13355 .unlock = spi_disable_blockprotect,
13356 .write = spi_chip_write_256,
13357 .read = spi_chip_read,
13358 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13359 },
13360
13361 {
13362 .vendor = "Winbond",
13363 .name = "W25Q40.W",
13364 .bustype = BUS_SPI,
13365 .manufacture_id = WINBOND_NEX_ID,
13366 .model_id = WINBOND_NEX_W25Q40_W,
13367 .total_size = 512,
13368 .page_size = 256,
13369 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13371 .tested = TEST_UNTESTED,
13372 .probe = probe_spi_rdid,
13373 .probe_timing = TIMING_ZERO,
13374 .block_erasers =
13375 {
13376 {
13377 .eraseblocks = { {4 * 1024, 128} },
13378 .block_erase = spi_block_erase_20,
13379 }, {
13380 .eraseblocks = { {32 * 1024, 16} },
13381 .block_erase = spi_block_erase_52,
13382 }, {
13383 .eraseblocks = { {64 * 1024, 8} },
13384 .block_erase = spi_block_erase_d8,
13385 }, {
13386 .eraseblocks = { {512 * 1024, 1} },
13387 .block_erase = spi_block_erase_60,
13388 }, {
13389 .eraseblocks = { {512 * 1024, 1} },
13390 .block_erase = spi_block_erase_c7,
13391 }
13392 },
13393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13394 .unlock = spi_disable_blockprotect,
13395 .write = spi_chip_write_256,
13396 .read = spi_chip_read,
13397 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13398 },
13399
13400 {
13401 .vendor = "Winbond",
13402 .name = "W25Q80.W",
13403 .bustype = BUS_SPI,
13404 .manufacture_id = WINBOND_NEX_ID,
13405 .model_id = WINBOND_NEX_W25Q80_W,
13406 .total_size = 1024,
13407 .page_size = 256,
13408 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13409 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13410 .tested = TEST_UNTESTED,
13411 .probe = probe_spi_rdid,
13412 .probe_timing = TIMING_ZERO,
13413 .block_erasers =
13414 {
13415 {
13416 .eraseblocks = { {4 * 1024, 256} },
13417 .block_erase = spi_block_erase_20,
13418 }, {
13419 .eraseblocks = { {32 * 1024, 32} },
13420 .block_erase = spi_block_erase_52,
13421 }, {
13422 .eraseblocks = { {64 * 1024, 16} },
13423 .block_erase = spi_block_erase_d8,
13424 }, {
13425 .eraseblocks = { {1 * 1024 * 1024, 1} },
13426 .block_erase = spi_block_erase_60,
13427 }, {
13428 .eraseblocks = { {1 * 1024 * 1024, 1} },
13429 .block_erase = spi_block_erase_c7,
13430 }
13431 },
13432 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13433 .unlock = spi_disable_blockprotect,
13434 .write = spi_chip_write_256,
13435 .read = spi_chip_read,
13436 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13437 },
13438
13439 {
13440 .vendor = "Winbond",
13441 .name = "W25Q16.W",
13442 .bustype = BUS_SPI,
13443 .manufacture_id = WINBOND_NEX_ID,
13444 .model_id = WINBOND_NEX_W25Q16_W,
13445 .total_size = 2048,
13446 .page_size = 256,
13447 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13448 /* QPI enable 0x38, disable 0xFF */
13449 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13450 .tested = TEST_UNTESTED,
13451 .probe = probe_spi_rdid,
13452 .probe_timing = TIMING_ZERO,
13453 .block_erasers =
13454 {
13455 {
13456 .eraseblocks = { {4 * 1024, 512} },
13457 .block_erase = spi_block_erase_20,
13458 }, {
13459 .eraseblocks = { {32 * 1024, 64} },
13460 .block_erase = spi_block_erase_52,
13461 }, {
13462 .eraseblocks = { {64 * 1024, 32} },
13463 .block_erase = spi_block_erase_d8,
13464 }, {
13465 .eraseblocks = { {2 * 1024 * 1024, 1} },
13466 .block_erase = spi_block_erase_60,
13467 }, {
13468 .eraseblocks = { {2 * 1024 * 1024, 1} },
13469 .block_erase = spi_block_erase_c7,
13470 }
13471 },
13472 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13473 .unlock = spi_disable_blockprotect,
13474 .write = spi_chip_write_256,
13475 .read = spi_chip_read,
13476 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13477 },
13478
13479 {
13480 .vendor = "Winbond",
13481 .name = "W25Q32.W",
13482 .bustype = BUS_SPI,
13483 .manufacture_id = WINBOND_NEX_ID,
13484 .model_id = WINBOND_NEX_W25Q32_W,
13485 .total_size = 4096,
13486 .page_size = 256,
13487 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13488 /* QPI enable 0x38, disable 0xFF */
13489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
13490 .tested = TEST_OK_PREW,
13491 .probe = probe_spi_rdid,
13492 .probe_timing = TIMING_ZERO,
13493 .block_erasers =
13494 {
13495 {
13496 .eraseblocks = { {4 * 1024, 1024} },
13497 .block_erase = spi_block_erase_20,
13498 }, {
13499 .eraseblocks = { {32 * 1024, 128} },
13500 .block_erase = spi_block_erase_52,
13501 }, {
13502 .eraseblocks = { {64 * 1024, 64} },
13503 .block_erase = spi_block_erase_d8,
13504 }, {
13505 .eraseblocks = { {4 * 1024 * 1024, 1} },
13506 .block_erase = spi_block_erase_60,
13507 }, {
13508 .eraseblocks = { {4 * 1024 * 1024, 1} },
13509 .block_erase = spi_block_erase_c7,
13510 }
13511 },
13512 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13513 .unlock = spi_disable_blockprotect,
13514 .write = spi_chip_write_256,
13515 .read = spi_chip_read,
13516 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
13517 },
13518
13519 {
13520 .vendor = "Winbond",
13521 .name = "W25Q64.W",
13522 .bustype = BUS_SPI,
13523 .manufacture_id = WINBOND_NEX_ID,
13524 .model_id = WINBOND_NEX_W25Q64_W,
13525 .total_size = 8192,
13526 .page_size = 256,
13527 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
13528 /* QPI enable 0x38, disable 0xFF */
13529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013530 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000013531 .probe = probe_spi_rdid,
13532 .probe_timing = TIMING_ZERO,
13533 .block_erasers =
13534 {
13535 {
13536 .eraseblocks = { {4 * 1024, 2048} },
13537 .block_erase = spi_block_erase_20,
13538 }, {
13539 .eraseblocks = { {32 * 1024, 256} },
13540 .block_erase = spi_block_erase_52,
13541 }, {
13542 .eraseblocks = { {64 * 1024, 128} },
13543 .block_erase = spi_block_erase_d8,
13544 }, {
13545 .eraseblocks = { {8 * 1024 * 1024, 1} },
13546 .block_erase = spi_block_erase_60,
13547 }, {
13548 .eraseblocks = { {8 * 1024 * 1024, 1} },
13549 .block_erase = spi_block_erase_c7,
13550 }
13551 },
13552 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13553 .unlock = spi_disable_blockprotect,
13554 .write = spi_chip_write_256,
13555 .read = spi_chip_read,
13556 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000013557 },
13558
13559 {
13560 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013561 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013562 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013563 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013564 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013565 .total_size = 128,
13566 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013567 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013568 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013569 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013570 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013571 .block_erasers =
13572 {
13573 {
13574 .eraseblocks = { {4 * 1024, 32} },
13575 .block_erase = spi_block_erase_20,
13576 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013577 .eraseblocks = { {64 * 1024, 2} },
13578 .block_erase = spi_block_erase_d8,
13579 }, {
13580 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013581 .block_erase = spi_block_erase_c7,
13582 }
13583 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013584 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013585 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013589 },
13590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013591 {
13592 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013593 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013595 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013596 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013597 .total_size = 256,
13598 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013599 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013600 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013602 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013603 .block_erasers =
13604 {
13605 {
13606 .eraseblocks = { {4 * 1024, 64} },
13607 .block_erase = spi_block_erase_20,
13608 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013609 .eraseblocks = { {64 * 1024, 4} },
13610 .block_erase = spi_block_erase_d8,
13611 }, {
13612 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013613 .block_erase = spi_block_erase_c7,
13614 }
13615 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013617 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013618 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013619 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013620 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013621 },
13622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013623 {
13624 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013625 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013626 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013627 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013628 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013629 .total_size = 512,
13630 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013631 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000013632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013634 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013635 .block_erasers =
13636 {
13637 {
13638 .eraseblocks = { {4 * 1024, 128} },
13639 .block_erase = spi_block_erase_20,
13640 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013641 .eraseblocks = { {64 * 1024, 8} },
13642 .block_erase = spi_block_erase_d8,
13643 }, {
13644 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013645 .block_erase = spi_block_erase_c7,
13646 }
13647 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013648 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013649 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013650 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013652 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013653 },
13654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 {
13656 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013657 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013659 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013660 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013661 .total_size = 1024,
13662 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013663 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000013664 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013666 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013667 .block_erasers =
13668 {
13669 {
13670 .eraseblocks = { {4 * 1024, 256} },
13671 .block_erase = spi_block_erase_20,
13672 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013673 .eraseblocks = { {64 * 1024, 16} },
13674 .block_erase = spi_block_erase_d8,
13675 }, {
13676 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013677 .block_erase = spi_block_erase_c7,
13678 }
13679 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013680 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013681 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013682 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013683 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013684 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013685 },
13686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013687 {
13688 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013689 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013690 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000013691 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013692 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000013693 .total_size = 2048,
13694 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013695 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000013696 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000013697 .probe = probe_spi_rdid,
13698 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013699 .block_erasers =
13700 {
13701 {
13702 .eraseblocks = { {4 * 1024, 512} },
13703 .block_erase = spi_block_erase_20,
13704 }, {
13705 .eraseblocks = { {32 * 1024, 64} },
13706 .block_erase = spi_block_erase_52,
13707 }, {
13708 .eraseblocks = { {64 * 1024, 32} },
13709 .block_erase = spi_block_erase_d8,
13710 }, {
13711 .eraseblocks = { {2 * 1024 * 1024, 1} },
13712 .block_erase = spi_block_erase_60,
13713 }, {
13714 .eraseblocks = { {2 * 1024 * 1024, 1} },
13715 .block_erase = spi_block_erase_c7,
13716 }
13717 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013718 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013719 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000013720 .write = spi_chip_write_256,
13721 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013722 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000013723 },
13724
13725 {
13726 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013727 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013728 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013729 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013730 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000013731 .total_size = 4096,
13732 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013733 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013734 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000013735 .probe = probe_spi_rdid,
13736 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013737 .block_erasers =
13738 {
13739 {
13740 .eraseblocks = { {4 * 1024, 1024} },
13741 .block_erase = spi_block_erase_20,
13742 }, {
13743 .eraseblocks = { {32 * 1024, 128} },
13744 .block_erase = spi_block_erase_52,
13745 }, {
13746 .eraseblocks = { {64 * 1024, 64} },
13747 .block_erase = spi_block_erase_d8,
13748 }, {
13749 .eraseblocks = { {4 * 1024 * 1024, 1} },
13750 .block_erase = spi_block_erase_60,
13751 }, {
13752 .eraseblocks = { {4 * 1024 * 1024, 1} },
13753 .block_erase = spi_block_erase_c7,
13754 }
13755 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013756 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013757 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013758 .write = spi_chip_write_256,
13759 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013760 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013761 },
13762
13763 {
13764 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013765 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013766 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000013767 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013768 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000013769 .total_size = 8192,
13770 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000013771 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000013772 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000013773 .probe = probe_spi_rdid,
13774 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013775 .block_erasers =
13776 {
13777 {
13778 .eraseblocks = { {4 * 1024, 2048} },
13779 .block_erase = spi_block_erase_20,
13780 }, {
13781 .eraseblocks = { {32 * 1024, 256} },
13782 .block_erase = spi_block_erase_52,
13783 }, {
13784 .eraseblocks = { {64 * 1024, 128} },
13785 .block_erase = spi_block_erase_d8,
13786 }, {
13787 .eraseblocks = { {8 * 1024 * 1024, 1} },
13788 .block_erase = spi_block_erase_60,
13789 }, {
13790 .eraseblocks = { {8 * 1024 * 1024, 1} },
13791 .block_erase = spi_block_erase_c7,
13792 }
13793 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013794 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013795 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000013796 .write = spi_chip_write_256,
13797 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013798 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000013799 },
13800
13801 {
13802 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013803 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013804 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013805 .manufacture_id = WINBOND_ID,
13806 .model_id = WINBOND_W29C010,
13807 .total_size = 128,
13808 .page_size = 128,
13809 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013810 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000013811 .probe = probe_w29ee011,
13812 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
13813 .block_erasers =
13814 {
13815 {
13816 .eraseblocks = { {128 * 1024, 1} },
13817 .block_erase = erase_chip_block_jedec,
13818 }
13819 },
13820 .write = write_jedec,
13821 .read = read_memmapped,
13822 },
13823
13824 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
13825 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013826 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013827 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013828 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013829 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013830 .total_size = 128,
13831 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013832 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000013833 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013834 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013835 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013836 .block_erasers =
13837 {
13838 {
13839 .eraseblocks = { {128 * 1024, 1} },
13840 .block_erase = erase_chip_block_jedec,
13841 }
13842 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013843 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013844 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000013845 },
13846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013847 {
13848 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013849 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013850 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013851 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013852 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013853 .total_size = 256,
13854 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013855 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013856 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013857 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013858 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013859 .block_erasers =
13860 {
13861 {
13862 .eraseblocks = { {256 * 1024, 1} },
13863 .block_erase = erase_chip_block_jedec,
13864 }
13865 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013866 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013868 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013869 },
13870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013871 {
13872 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000013873 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013874 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013875 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000013876 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013877 .total_size = 512,
13878 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013879 .feature_bits = FEATURE_LONG_RESET,
13880 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013881 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013882 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000013883 .block_erasers =
13884 {
13885 {
13886 .eraseblocks = { {512 * 1024, 1} },
13887 .block_erase = erase_chip_block_jedec,
13888 }
13889 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013890 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013892 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013893 },
13894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013895 {
13896 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000013897 .name = "W29GL032CB",
13898 .bustype = BUS_PARALLEL,
13899 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13900 .model_id = WINBOND_W29GL032CB,
13901 .total_size = 4096,
13902 .page_size = 128 * 1024, /* actual page size is 16 */
13903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13904 .tested = TEST_UNTESTED,
13905 .probe = probe_jedec_29gl,
13906 .probe_timing = TIMING_ZERO,
13907 .block_erasers =
13908 {
13909 {
13910 .eraseblocks = {
13911 {8 * 1024, 8},
13912 {64 * 1024, 63},
13913 },
13914 .block_erase = erase_sector_jedec,
13915 }, {
13916 .eraseblocks = { {4 * 1024 * 1024, 1} },
13917 .block_erase = erase_chip_block_jedec,
13918 },
13919 },
13920 .write = write_jedec_1,
13921 .read = read_memmapped,
13922 .voltage = {2700, 3600},
13923 },
13924
13925 {
13926 .vendor = "Winbond",
13927 .name = "W29GL032CT",
13928 .bustype = BUS_PARALLEL,
13929 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13930 .model_id = WINBOND_W29GL032CT,
13931 .total_size = 4096,
13932 .page_size = 128 * 1024, /* actual page size is 16 */
13933 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13934 .tested = TEST_UNTESTED,
13935 .probe = probe_jedec_29gl,
13936 .probe_timing = TIMING_ZERO,
13937 .block_erasers =
13938 {
13939 {
13940 .eraseblocks = {
13941 {64 * 1024, 63},
13942 {8 * 1024, 8},
13943 },
13944 .block_erase = erase_sector_jedec,
13945 }, {
13946 .eraseblocks = { {4 * 1024 * 1024, 1} },
13947 .block_erase = erase_chip_block_jedec,
13948 },
13949 },
13950 .write = write_jedec_1,
13951 .read = read_memmapped,
13952 .voltage = {2700, 3600},
13953 },
13954
13955 {
13956 .vendor = "Winbond",
13957 .name = "W29GL032CH/L",
13958 .bustype = BUS_PARALLEL,
13959 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13960 .model_id = WINBOND_W29GL032CHL,
13961 .total_size = 4096,
13962 .page_size = 128 * 1024, /* actual page size is 16 */
13963 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13964 .tested = TEST_UNTESTED,
13965 .probe = probe_jedec_29gl,
13966 .probe_timing = TIMING_ZERO,
13967 .block_erasers =
13968 {
13969 {
13970 .eraseblocks = { {64 * 1024, 64} },
13971 .block_erase = erase_sector_jedec,
13972 }, {
13973 .eraseblocks = { {4 * 1024 * 1024, 1} },
13974 .block_erase = erase_chip_block_jedec,
13975 },
13976 },
13977 .write = write_jedec_1,
13978 .read = read_memmapped,
13979 .voltage = {2700, 3600},
13980 },
13981
13982 {
13983 .vendor = "Winbond",
13984 .name = "W29GL064CB",
13985 .bustype = BUS_PARALLEL,
13986 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
13987 .model_id = WINBOND_W29GL064CB,
13988 .total_size = 8192,
13989 .page_size = 128 * 1024, /* actual page size is 16 */
13990 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
13991 .tested = TEST_UNTESTED,
13992 .probe = probe_jedec_29gl,
13993 .probe_timing = TIMING_ZERO,
13994 .block_erasers =
13995 {
13996 {
13997 .eraseblocks = {
13998 {8 * 1024, 8},
13999 {64 * 1024, 127},
14000 },
14001 .block_erase = erase_sector_jedec,
14002 }, {
14003 .eraseblocks = { {8 * 1024 * 1024, 1} },
14004 .block_erase = erase_chip_block_jedec,
14005 },
14006 },
14007 .write = write_jedec_1,
14008 .read = read_memmapped,
14009 .voltage = {2700, 3600},
14010 },
14011
14012 {
14013 .vendor = "Winbond",
14014 .name = "W29GL064CT",
14015 .bustype = BUS_PARALLEL,
14016 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14017 .model_id = WINBOND_W29GL064CT,
14018 .total_size = 8192,
14019 .page_size = 128 * 1024, /* actual page size is 16 */
14020 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14021 .tested = TEST_UNTESTED,
14022 .probe = probe_jedec_29gl,
14023 .probe_timing = TIMING_ZERO,
14024 .block_erasers =
14025 {
14026 {
14027 .eraseblocks = {
14028 {64 * 1024, 127},
14029 {8 * 1024, 8},
14030 },
14031 .block_erase = erase_sector_jedec,
14032 }, {
14033 .eraseblocks = { {8 * 1024 * 1024, 1} },
14034 .block_erase = erase_chip_block_jedec,
14035 },
14036 },
14037 .write = write_jedec_1,
14038 .read = read_memmapped,
14039 .voltage = {2700, 3600},
14040 },
14041
14042 {
14043 .vendor = "Winbond",
14044 .name = "W29GL064CH/L",
14045 .bustype = BUS_PARALLEL,
14046 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14047 .model_id = WINBOND_W29GL064CHL,
14048 .total_size = 8192,
14049 .page_size = 128 * 1024, /* actual page size is 16 */
14050 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14051 .tested = TEST_UNTESTED,
14052 .probe = probe_jedec_29gl,
14053 .probe_timing = TIMING_ZERO,
14054 .block_erasers =
14055 {
14056 {
14057 .eraseblocks = { {64 * 1024, 128} },
14058 .block_erase = erase_sector_jedec,
14059 }, {
14060 .eraseblocks = { {8 * 1024 * 1024, 1} },
14061 .block_erase = erase_chip_block_jedec,
14062 },
14063 },
14064 .write = write_jedec_1,
14065 .read = read_memmapped,
14066 .voltage = {2700, 3600},
14067 },
14068
14069 {
14070 .vendor = "Winbond",
14071 .name = "W29GL128C",
14072 .bustype = BUS_PARALLEL,
14073 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
14074 .model_id = WINBOND_W29GL128CHL,
14075 .total_size = 16384,
14076 .page_size = 128 * 1024, /* actual page size is 16 */
14077 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
14078 .tested = TEST_UNTESTED,
14079 .probe = probe_jedec_29gl,
14080 .probe_timing = TIMING_ZERO,
14081 .block_erasers =
14082 {
14083 {
14084 .eraseblocks = { {128 * 1024, 128} },
14085 .block_erase = erase_sector_jedec,
14086 }, {
14087 .eraseblocks = { {16 * 1024 * 1024, 1} },
14088 .block_erase = erase_chip_block_jedec,
14089 },
14090 },
14091 .write = write_jedec_1,
14092 .read = read_memmapped,
14093 .voltage = {2700, 3600},
14094 },
14095
14096 {
14097 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000014098 .name = "W39F010",
14099 .bustype = BUS_PARALLEL,
14100 .manufacture_id = WINBOND_ID,
14101 .model_id = WINBOND_W39F010,
14102 .total_size = 128,
14103 .page_size = 4 * 1024,
14104 .feature_bits = FEATURE_EITHER_RESET,
14105 .tested = TEST_OK_PREW,
14106 .probe = probe_jedec,
14107 .probe_timing = 10,
14108 .block_erasers =
14109 {
14110 {
14111 .eraseblocks = { {4 * 1024, 32} },
14112 .block_erase = erase_block_jedec,
14113 }, {
14114 .eraseblocks = { {128 * 1024, 1} },
14115 .block_erase = erase_chip_block_jedec,
14116 }
14117 },
14118 .printlock = printlock_w39f010,
14119 .write = write_jedec_1,
14120 .read = read_memmapped,
14121 .voltage = {4500, 5500},
14122 },
14123
14124 {
14125 .vendor = "Winbond",
14126 .name = "W39L010",
14127 .bustype = BUS_PARALLEL,
14128 .manufacture_id = WINBOND_ID,
14129 .model_id = WINBOND_W39L010,
14130 .total_size = 128,
14131 .page_size = 4 * 1024,
14132 .feature_bits = FEATURE_EITHER_RESET,
14133 .tested = TEST_UNTESTED,
14134 .probe = probe_jedec,
14135 .probe_timing = 10,
14136 .block_erasers =
14137 {
14138 {
14139 .eraseblocks = { {4 * 1024, 32} },
14140 .block_erase = erase_block_jedec,
14141 }, {
14142 .eraseblocks = { {128 * 1024, 1} },
14143 .block_erase = erase_chip_block_jedec,
14144 }
14145 },
14146 .printlock = printlock_w39l010,
14147 .write = write_jedec_1,
14148 .read = read_memmapped,
14149 .voltage = {3000, 3600},
14150 },
14151
14152 {
14153 .vendor = "Winbond",
14154 .name = "W39L020",
14155 .bustype = BUS_PARALLEL,
14156 .manufacture_id = WINBOND_ID,
14157 .model_id = WINBOND_W39L020,
14158 .total_size = 256,
14159 .page_size = 4 * 1024,
14160 .feature_bits = FEATURE_EITHER_RESET,
14161 .tested = TEST_UNTESTED,
14162 .probe = probe_jedec,
14163 .probe_timing = 10,
14164 .block_erasers =
14165 {
14166 {
14167 .eraseblocks = { {4 * 1024, 64} },
14168 .block_erase = erase_block_jedec,
14169 }, {
14170 .eraseblocks = { {64 * 1024, 4} },
14171 .block_erase = erase_sector_jedec,
14172 }, {
14173 .eraseblocks = { {256 * 1024, 1} },
14174 .block_erase = erase_chip_block_jedec,
14175 }
14176 },
14177 .printlock = printlock_w39l020,
14178 .write = write_jedec_1,
14179 .read = read_memmapped,
14180 .voltage = {3000, 3600},
14181 },
14182
14183 {
14184 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000014185 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014186 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000014187 .manufacture_id = WINBOND_ID,
14188 .model_id = WINBOND_W39L040,
14189 .total_size = 512,
14190 .page_size = 64 * 1024,
14191 .feature_bits = FEATURE_EITHER_RESET,
14192 .tested = TEST_OK_PR,
14193 .probe = probe_jedec,
14194 .probe_timing = 10,
14195 .block_erasers =
14196 {
14197 {
14198 .eraseblocks = { {4 * 1024, 128} },
14199 .block_erase = erase_block_jedec,
14200 }, {
14201 .eraseblocks = { {64 * 1024, 8} },
14202 .block_erase = erase_sector_jedec,
14203 }, {
14204 .eraseblocks = { {512 * 1024, 1} },
14205 .block_erase = erase_chip_block_jedec,
14206 }
14207 },
14208 .printlock = printlock_w39l040,
14209 .write = write_jedec_1,
14210 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014211 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000014212 },
14213
14214 {
14215 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014216 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014217 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014218 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014219 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014220 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014221 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014222 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014223 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014224 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000014225 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014226 .block_erasers =
14227 {
14228 {
14229 .eraseblocks = { {64 * 1024, 8} },
14230 .block_erase = erase_sector_jedec,
14231 }, {
14232 .eraseblocks = { {512 * 1024, 1} },
14233 .block_erase = erase_chip_block_jedec,
14234 }
14235 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014236 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000014237 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014239 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014240 },
14241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014242 {
14243 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014244 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014245 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014246 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014247 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014248 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014249 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014250 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014251 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014252 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000014253 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014254 .block_erasers =
14255 {
14256 {
14257 .eraseblocks = { {64 * 1024, 8} },
14258 .block_erase = erase_sector_jedec,
14259 }, {
14260 .eraseblocks = { {512 * 1024, 1} },
14261 .block_erase = erase_chip_block_jedec,
14262 }
14263 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014264 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000014265 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014267 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014268 },
14269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014270 {
14271 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014272 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014273 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014274 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014275 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014276 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014277 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014278 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014279 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000014280 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014281 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014282 .block_erasers =
14283 {
14284 {
14285 .eraseblocks = { {64 * 1024, 8} },
14286 .block_erase = erase_sector_jedec,
14287 }, {
14288 .eraseblocks = { {512 * 1024, 1} },
14289 .block_erase = erase_chip_block_jedec,
14290 }
14291 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000014292 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000014293 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014295 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014296 },
14297
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014298 {
14299 .vendor = "Winbond",
14300 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014301 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014302 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014303 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014304 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014305 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000014306 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014307 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014308 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014309 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014310 .block_erasers =
14311 {
14312 {
14313 .eraseblocks = { {4 * 1024, 128} },
14314 .block_erase = erase_block_jedec,
14315 }, {
14316 .eraseblocks = { {64 * 1024, 8} },
14317 .block_erase = erase_sector_jedec,
14318 }, {
14319 .eraseblocks = { {512 * 1024, 1} },
14320 .block_erase = erase_chip_block_jedec,
14321 }
14322 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014323 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014324 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014325 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014326 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014327 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014328 },
14329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014330 {
14331 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014332 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014333 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014334 .manufacture_id = WINBOND_ID,
14335 .model_id = WINBOND_W39V040B,
14336 .total_size = 512,
14337 .page_size = 64 * 1024,
14338 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014339 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014340 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014341 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014342 .block_erasers =
14343 {
14344 {
14345 .eraseblocks = { {64 * 1024, 8} },
14346 .block_erase = erase_sector_jedec,
14347 }, {
14348 .eraseblocks = { {512 * 1024, 1} },
14349 .block_erase = erase_chip_block_jedec,
14350 }
14351 },
14352 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014353 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014354 .write = write_jedec_1,
14355 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014356 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014357 },
14358
14359 {
14360 .vendor = "Winbond",
14361 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014362 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014363 .manufacture_id = WINBOND_ID,
14364 .model_id = WINBOND_W39V040C,
14365 .total_size = 512,
14366 .page_size = 64 * 1024,
14367 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000014368 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014369 .probe = probe_jedec,
14370 .probe_timing = 10,
14371 .block_erasers =
14372 {
14373 {
14374 .eraseblocks = { {64 * 1024, 8} },
14375 .block_erase = erase_sector_jedec,
14376 }, {
14377 .eraseblocks = { {512 * 1024, 1} },
14378 .block_erase = erase_chip_block_jedec,
14379 }
14380 },
14381 .printlock = printlock_w39v040fc,
14382 .write = write_jedec_1,
14383 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014384 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014385 },
14386
14387 {
14388 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014389 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014390 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014391 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014392 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014393 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014394 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014395 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000014396 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014397 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000014398 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014399 .block_erasers =
14400 {
14401 {
14402 .eraseblocks = { {64 * 1024, 16} },
14403 .block_erase = erase_sector_jedec,
14404 }, {
14405 .eraseblocks = { {1024 * 1024, 1} },
14406 .block_erase = erase_chip_block_jedec,
14407 }
14408 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014409 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000014410 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014412 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014413 },
14414
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014415 {
14416 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000014417 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014418 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014419 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014420 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014421 .total_size = 256,
14422 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014423 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000014424 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014425 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014426 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014427 .block_erasers =
14428 {
14429 {
14430 .eraseblocks = {
14431 {128 * 1024, 1},
14432 {96 * 1024, 1},
14433 {8 * 1024, 2},
14434 {16 * 1024, 1},
14435 },
14436 .block_erase = erase_sector_jedec,
14437 }, {
14438 .eraseblocks = { {256 * 1024, 1} },
14439 .block_erase = erase_chip_block_jedec,
14440 }
14441 },
Sean Nelson35727f72010-01-28 23:55:12 +000014442 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014444 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014445 },
14446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014447 {
14448 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014449 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014450 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014451 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014452 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014453 .total_size = 256,
14454 .page_size = 128,
14455 .feature_bits = FEATURE_EITHER_RESET,
14456 .tested = TEST_OK_PROBE,
14457 .probe = probe_jedec,
14458 .probe_timing = 10,
14459 .block_erasers =
14460 {
14461 {
14462 .eraseblocks = { {256 * 1024, 1} },
14463 .block_erase = erase_chip_block_jedec,
14464 }
14465 },
14466 .write = write_jedec_1,
14467 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014468 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000014469 },
14470
14471 {
14472 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014473 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014474 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014475 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014476 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014477 .total_size = 256,
14478 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014479 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014480 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014481 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014482 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014483 .block_erasers =
14484 {
14485 {
14486 .eraseblocks = {
14487 {64 * 1024, 3},
14488 {32 * 1024, 1},
14489 {8 * 1024, 2},
14490 {16 * 1024, 1},
14491 },
14492 .block_erase = erase_sector_jedec,
14493 }, {
14494 .eraseblocks = { {256 * 1024, 1} },
14495 .block_erase = erase_chip_block_jedec,
14496 }
14497 },
Sean Nelson35727f72010-01-28 23:55:12 +000014498 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014500 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014501 },
14502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014503 {
14504 .vendor = "Winbond",
14505 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014506 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014507 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014508 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 .total_size = 256,
14510 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014511 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014513 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014514 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014515 .block_erasers =
14516 {
14517 {
14518 .eraseblocks = {
14519 {64 * 1024, 3},
14520 {32 * 1024, 1},
14521 {8 * 1024, 2},
14522 {16 * 1024, 1},
14523 },
14524 .block_erase = erase_sector_jedec,
14525 }, {
14526 .eraseblocks = { {256 * 1024, 1} },
14527 .block_erase = erase_chip_block_jedec,
14528 }
14529 },
Sean Nelson35727f72010-01-28 23:55:12 +000014530 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014531 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014532 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014533 },
14534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014535 {
14536 .vendor = "Winbond",
14537 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014538 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014539 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014540 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014541 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000014542 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014543 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014544 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014545 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014546 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014547 .block_erasers =
14548 {
14549 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014550 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014551 .block_erase = erase_sector_jedec,
14552 }, {
14553 .eraseblocks = { {1024 * 1024, 1} },
14554 .block_erase = erase_chip_block_jedec,
14555 }
14556 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014557 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014558 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014559 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014560 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014561 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014562 },
14563
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014564 {
14565 .vendor = "Winbond",
14566 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014567 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000014569 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014570 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000014571 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014572 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014573 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000014574 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014575 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014576 .block_erasers =
14577 {
14578 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014579 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000014580 .block_erase = erase_sector_jedec,
14581 }, {
14582 .eraseblocks = { {512 * 1024, 1} },
14583 .block_erase = erase_chip_block_jedec,
14584 }
14585 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000014586 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000014587 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014588 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014589 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000014590 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014591
14592 {
14593 .vendor = "Unknown",
14594 .name = "SFDP-capable chip",
14595 .bustype = BUS_SPI,
14596 .manufacture_id = GENERIC_MANUF_ID,
14597 .model_id = SFDP_DEVICE_ID,
14598 /* We present our own "report this" text hence we do not
14599 * want the default "This flash part has status UNTESTED..."
14600 * text to be printed. */
14601 .tested = TEST_OK_PREW,
14602 .probe = probe_spi_sfdp,
14603 .unlock = spi_disable_blockprotect, /* is this safe? */
14604 .read = spi_chip_read,
14605 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000014606 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000014607 /* Everything below will be set by the probing function. */
14608 .write = NULL,
14609 .total_size = 0,
14610 .page_size = 0,
14611 .feature_bits = 0,
14612 .block_erasers = {},
14613 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014615 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000014616 .vendor = "Programmer",
14617 .name = "Opaque flash chip",
14618 .bustype = BUS_PROG,
14619 .manufacture_id = PROGMANUF_ID,
14620 .model_id = PROGDEV_ID,
14621 .total_size = 0,
14622 .page_size = 256,
14623 /* probe is assumed to work, rest will be filled in by probe */
14624 .tested = TEST_OK_PROBE,
14625 .probe = probe_opaque,
14626 /* eraseblock sizes will be set by the probing function */
14627 .block_erasers =
14628 {
14629 {
14630 .block_erase = erase_opaque,
14631 }
14632 },
14633 .write = write_opaque,
14634 .read = read_opaque,
14635 },
14636
14637 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014638 .vendor = "AMIC",
14639 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014640 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000014641 .manufacture_id = AMIC_ID,
14642 .model_id = GENERIC_DEVICE_ID,
14643 .total_size = 0,
14644 .page_size = 256,
14645 .tested = TEST_BAD_PREW,
14646 .probe = probe_spi_rdid4,
14647 .probe_timing = TIMING_ZERO,
14648 .write = NULL,
14649 .read = NULL,
14650 },
14651
14652 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014653 .vendor = "Atmel",
14654 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014655 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014656 .manufacture_id = ATMEL_ID,
14657 .model_id = GENERIC_DEVICE_ID,
14658 .total_size = 0,
14659 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014660 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014661 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014662 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014663 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014664 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014665 },
14666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014667 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000014668 .vendor = "Eon",
14669 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014670 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014671 .manufacture_id = EON_ID_NOPREFIX,
14672 .model_id = GENERIC_DEVICE_ID,
14673 .total_size = 0,
14674 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014675 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014676 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014677 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014678 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014679 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014680 },
14681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014682 {
14683 .vendor = "Macronix",
14684 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014685 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014686 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014687 .model_id = GENERIC_DEVICE_ID,
14688 .total_size = 0,
14689 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014690 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014691 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014692 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014693 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014694 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014695 },
14696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014697 {
14698 .vendor = "PMC",
14699 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014700 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014701 .manufacture_id = PMC_ID,
14702 .model_id = GENERIC_DEVICE_ID,
14703 .total_size = 0,
14704 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014705 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014706 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014707 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014708 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014709 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014710 },
14711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014712 {
14713 .vendor = "SST",
14714 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014715 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014716 .manufacture_id = SST_ID,
14717 .model_id = GENERIC_DEVICE_ID,
14718 .total_size = 0,
14719 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014720 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014721 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014722 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014723 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014724 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014725 },
14726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014727 {
14728 .vendor = "ST",
14729 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014730 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014731 .manufacture_id = ST_ID,
14732 .model_id = GENERIC_DEVICE_ID,
14733 .total_size = 0,
14734 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000014735 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014736 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014737 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014738 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014739 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000014740 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000014741
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014742 {
Sean Nelson118e1d62009-11-24 02:08:11 +000014743 .vendor = "Sanyo",
14744 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014745 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000014746 .manufacture_id = SANYO_ID,
14747 .model_id = GENERIC_DEVICE_ID,
14748 .total_size = 0,
14749 .page_size = 256,
14750 .tested = TEST_BAD_PREW,
14751 .probe = probe_spi_rdid,
14752 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000014753 .write = NULL,
14754 .read = NULL,
14755 },
14756
14757 {
Stefan Taunereb582572012-09-21 12:52:50 +000014758 .vendor = "Winbond",
14759 .name = "unknown Winbond (ex Nexcom) SPI chip",
14760 .bustype = BUS_SPI,
14761 .manufacture_id = WINBOND_NEX_ID,
14762 .model_id = GENERIC_DEVICE_ID,
14763 .total_size = 0,
14764 .page_size = 256,
14765 .tested = TEST_BAD_PREW,
14766 .probe = probe_spi_rdid,
14767 .probe_timing = TIMING_ZERO,
14768 .write = NULL,
14769 .read = NULL,
14770 },
14771
14772 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014773 .vendor = "Generic",
14774 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014775 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014776 .manufacture_id = GENERIC_MANUF_ID,
14777 .model_id = GENERIC_DEVICE_ID,
14778 .total_size = 0,
14779 .page_size = 256,
14780 .tested = TEST_BAD_PREW,
14781 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014782 .write = NULL,
14783 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000014784
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014785 {
14786 .vendor = "Generic",
14787 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014788 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014789 .manufacture_id = GENERIC_MANUF_ID,
14790 .model_id = GENERIC_DEVICE_ID,
14791 .total_size = 0,
14792 .page_size = 256,
14793 .tested = TEST_BAD_PREW,
14794 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000014795 .write = NULL,
14796 },
14797
Stefan Tauner96658be2014-05-26 22:05:31 +000014798 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000014799};
Stefan Tauner96658be2014-05-26 22:05:31 +000014800
14801const unsigned int flashchips_size = ARRAY_SIZE(flashchips);