blob: 527fb829555bf40aac8f20b9f317d584081b0976 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000567 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000601 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000636 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000671 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000706 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000741 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000781 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000816 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000851 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000889 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000927 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000957 }
Dan Lenski11617122010-07-29 15:00:40 +0000958 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000959 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +0000989 }
Dan Lenski11617122010-07-29 15:00:40 +0000990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +0000991 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001021 }
Dan Lenski11617122010-07-29 15:00:40 +00001022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001023 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001053 }
Dan Lenski11617122010-07-29 15:00:40 +00001054 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001055 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001085 }
Dan Lenski11617122010-07-29 15:00:40 +00001086 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001087 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001117 }
Dan Lenski11617122010-07-29 15:00:40 +00001118 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00001119 .printlock = spi_prettyprint_status_register_default_bp2,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001136 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001156 }
Dan Lenski11617122010-07-29 15:00:40 +00001157 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001167 .name = "A25LQ16",
1168 .bustype = BUS_SPI,
1169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ16,
1171 .total_size = 2048,
1172 .page_size = 256,
1173 /* supports SFDP */
1174 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1176 .tested = TEST_UNTESTED,
1177 .probe = probe_spi_rdid,
1178 .probe_timing = TIMING_ZERO,
1179 .block_erasers = {
1180 {
1181 .eraseblocks = { { 4 * 1024, 512 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 32 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 32 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 2048 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 2048 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
1197 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
1201 .voltage = {2700, 3600},
1202 },
1203
1204 {
1205 .vendor = "AMIC",
1206 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A25LQ032,
1210 .total_size = 4096,
1211 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001212 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001213 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001215 .tested = TEST_UNTESTED,
1216 .probe = probe_spi_rdid,
1217 .probe_timing = TIMING_ZERO,
1218 .block_erasers =
1219 {
1220 {
1221 .eraseblocks = { { 4 * 1024, 1024 } },
1222 .block_erase = spi_block_erase_20,
1223 }, {
1224 .eraseblocks = { { 64 * 1024, 64 } },
1225 .block_erase = spi_block_erase_52,
1226 }, {
1227 .eraseblocks = { { 64 * 1024, 64 } },
1228 .block_erase = spi_block_erase_d8,
1229 }, {
1230 .eraseblocks = { { 4096 * 1024, 1 } },
1231 .block_erase = spi_block_erase_60,
1232 }, {
1233 .eraseblocks = { { 4096 * 1024, 1 } },
1234 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001235 }
Dan Lenski11617122010-07-29 15:00:40 +00001236 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001237 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1238 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1239 .write = spi_chip_write_256,
1240 .read = spi_chip_read,
1241 .voltage = {2700, 3600},
1242 },
1243
1244 {
1245 .vendor = "AMIC",
1246 .name = "A25LQ64",
1247 .bustype = BUS_SPI,
1248 .manufacture_id = AMIC_ID_NOPREFIX,
1249 .model_id = AMIC_A25LQ032,
1250 .total_size = 8192,
1251 .page_size = 256,
1252 /* supports SFDP */
1253 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1254 /* QPI enable 0x35, disable 0xF5 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1256 .tested = TEST_UNTESTED,
1257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 2048 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 32 * 1024, 256 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 128 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 8192 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 8192 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enhance (sic!) */
1279 .unlock = spi_disable_blockprotect,
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001287 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A29002B,
1291 .total_size = 256,
1292 .page_size = 64 * 1024,
1293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1294 .tested = TEST_UNTESTED,
1295 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001296 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001297 .block_erasers =
1298 {
1299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001300 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001301 {16 * 1024, 1},
1302 {8 * 1024, 2},
1303 {32 * 1024, 1},
1304 {64 * 1024, 3},
1305 },
1306 .block_erase = erase_sector_jedec,
1307 }, {
1308 .eraseblocks = { {256 * 1024, 1} },
1309 .block_erase = erase_chip_block_jedec,
1310 },
1311 },
1312 .write = write_jedec_1,
1313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001314 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001315 },
1316
1317 {
1318 .vendor = "AMIC",
1319 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001320 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 .manufacture_id = AMIC_ID_NOPREFIX,
1322 .model_id = AMIC_A29002T,
1323 .total_size = 256,
1324 .page_size = 64 * 1024,
1325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001326 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001327 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001328 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001329 .block_erasers =
1330 {
1331 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001332 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001333 {64 * 1024, 3},
1334 {32 * 1024, 1},
1335 {8 * 1024, 2},
1336 {16 * 1024, 1},
1337 },
1338 .block_erase = erase_sector_jedec,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = erase_chip_block_jedec,
1342 },
1343 },
1344 .write = write_jedec_1,
1345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001346 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001347 },
1348
1349 {
1350 .vendor = "AMIC",
1351 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001353 .manufacture_id = AMIC_ID_NOPREFIX,
1354 .model_id = AMIC_A29040B,
1355 .total_size = 512,
1356 .page_size = 64 * 1024,
1357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1358 .tested = TEST_UNTESTED,
1359 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001361 .block_erasers =
1362 {
1363 {
1364 .eraseblocks = { {64 * 1024, 8} },
1365 .block_erase = erase_sector_jedec,
1366 }, {
1367 .eraseblocks = { {512 * 1024, 1} },
1368 .block_erase = erase_chip_block_jedec,
1369 },
1370 },
1371 .write = write_jedec_1,
1372 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001373 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001374 },
1375
1376 {
1377 .vendor = "AMIC",
1378 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001379 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001380 .manufacture_id = AMIC_ID_NOPREFIX,
1381 .model_id = AMIC_A49LF040A,
1382 .total_size = 512,
1383 .page_size = 64 * 1024,
1384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001385 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001386 .probe = probe_jedec,
1387 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1388 .block_erasers =
1389 {
1390 {
1391 .eraseblocks = { {64 * 1024, 8} },
1392 .block_erase = erase_block_jedec,
1393 }, {
1394 .eraseblocks = { {512 * 1024, 1} },
1395 .block_erase = erase_chip_block_jedec,
1396 }
1397 },
1398 .unlock = unlock_49fl00x,
1399 .write = write_jedec_1,
1400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 },
1403
1404 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .vendor = "Atmel",
1406 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001409 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .total_size = 256,
1411 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001412 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 64} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
1423 .eraseblocks = { {32 * 1024, 8} },
1424 .block_erase = spi_block_erase_52,
1425 }, {
1426 .eraseblocks = { {64 * 1024, 4} },
1427 .block_erase = spi_block_erase_d8,
1428 }, {
1429 .eraseblocks = { {256 * 1024, 1} },
1430 .block_erase = spi_block_erase_60,
1431 }, {
1432 .eraseblocks = { {256 * 1024, 1} },
1433 .block_erase = spi_block_erase_c7,
1434 }
1435 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001437 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001438 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001439 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001440 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001441 },
1442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001443 {
1444 .vendor = "Atmel",
1445 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001446 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001448 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .total_size = 512,
1450 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001451 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001452 .tested = TEST_UNTESTED,
1453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001454 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001455 .block_erasers =
1456 {
1457 {
1458 .eraseblocks = { {4 * 1024, 128} },
1459 .block_erase = spi_block_erase_20,
1460 }, {
1461 .eraseblocks = { {32 * 1024, 16} },
1462 .block_erase = spi_block_erase_52,
1463 }, {
1464 .eraseblocks = { {64 * 1024, 8} },
1465 .block_erase = spi_block_erase_d8,
1466 }, {
1467 .eraseblocks = { {512 * 1024, 1} },
1468 .block_erase = spi_block_erase_60,
1469 }, {
1470 .eraseblocks = { {512 * 1024, 1} },
1471 .block_erase = spi_block_erase_c7,
1472 }
1473 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001474 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001475 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001478 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001484 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001486 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001487 .total_size = 1024,
1488 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001489 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001490 .tested = TEST_UNTESTED,
1491 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001492 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001493 .block_erasers =
1494 {
1495 {
1496 .eraseblocks = { {4 * 1024, 256} },
1497 .block_erase = spi_block_erase_20,
1498 }, {
1499 .eraseblocks = { {32 * 1024, 32} },
1500 .block_erase = spi_block_erase_52,
1501 }, {
1502 .eraseblocks = { {64 * 1024, 16} },
1503 .block_erase = spi_block_erase_d8,
1504 }, {
1505 .eraseblocks = { {1024 * 1024, 1} },
1506 .block_erase = spi_block_erase_60,
1507 }, {
1508 .eraseblocks = { {1024 * 1024, 1} },
1509 .block_erase = spi_block_erase_c7,
1510 }
1511 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001512 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001513 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001514 .write = spi_chip_write_256,
1515 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001516 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 },
1518
1519 {
1520 .vendor = "Atmel",
1521 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001522 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001523 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001524 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001525 .total_size = 1024,
1526 .page_size = 256,
1527 .feature_bits = FEATURE_WRSR_WREN,
1528 .tested = TEST_UNTESTED,
1529 .probe = probe_spi_rdid,
1530 .probe_timing = TIMING_ZERO,
1531 .block_erasers =
1532 {
1533 {
1534 .eraseblocks = { {4 * 1024, 256} },
1535 .block_erase = spi_block_erase_20,
1536 }, {
1537 .eraseblocks = { {32 * 1024, 32} },
1538 .block_erase = spi_block_erase_52,
1539 }, {
1540 .eraseblocks = { {64 * 1024, 16} },
1541 .block_erase = spi_block_erase_d8,
1542 }, {
1543 .eraseblocks = { {1024 * 1024, 1} },
1544 .block_erase = spi_block_erase_60,
1545 }, {
1546 .eraseblocks = { {1024 * 1024, 1} },
1547 .block_erase = spi_block_erase_c7,
1548 }
1549 },
1550 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001551 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001552 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001553 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001555 },
1556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001557 {
1558 .vendor = "Atmel",
1559 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001561 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001562 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .total_size = 2048,
1564 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001565 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001566 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001568 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001569 .block_erasers =
1570 {
1571 {
1572 .eraseblocks = { {4 * 1024, 512} },
1573 .block_erase = spi_block_erase_20,
1574 }, {
1575 .eraseblocks = { {32 * 1024, 64} },
1576 .block_erase = spi_block_erase_52,
1577 }, {
1578 .eraseblocks = { {64 * 1024, 32} },
1579 .block_erase = spi_block_erase_d8,
1580 }, {
1581 .eraseblocks = { {2 * 1024 * 1024, 1} },
1582 .block_erase = spi_block_erase_60,
1583 }, {
1584 .eraseblocks = { {2 * 1024 * 1024, 1} },
1585 .block_erase = spi_block_erase_c7,
1586 }
1587 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001589 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001590 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001592 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001593 },
1594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001598 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 4096,
1602 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001606 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001607 .block_erasers =
1608 {
1609 {
1610 .eraseblocks = { {4 * 1024, 1024} },
1611 .block_erase = spi_block_erase_20,
1612 }, {
1613 .eraseblocks = { {32 * 1024, 128} },
1614 .block_erase = spi_block_erase_52,
1615 }, {
1616 .eraseblocks = { {64 * 1024, 64} },
1617 .block_erase = spi_block_erase_d8,
1618 }, {
1619 .eraseblocks = { {4 * 1024 * 1024, 1} },
1620 .block_erase = spi_block_erase_60,
1621 }, {
1622 .eraseblocks = { {4 * 1024 * 1024, 1} },
1623 .block_erase = spi_block_erase_c7,
1624 }
1625 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001626 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001627 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001628 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001630 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001631 },
1632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001633 {
1634 .vendor = "Atmel",
1635 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001636 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001637 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001638 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001639 .total_size = 4096,
1640 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001641 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001645 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001646 .block_erasers =
1647 {
1648 {
1649 .eraseblocks = { {4 * 1024, 1024} },
1650 .block_erase = spi_block_erase_20,
1651 }, {
1652 .eraseblocks = { {32 * 1024, 128} },
1653 .block_erase = spi_block_erase_52,
1654 }, {
1655 .eraseblocks = { {64 * 1024, 64} },
1656 .block_erase = spi_block_erase_d8,
1657 }, {
1658 .eraseblocks = { {4 * 1024 * 1024, 1} },
1659 .block_erase = spi_block_erase_60,
1660 }, {
1661 .eraseblocks = { {4 * 1024 * 1024, 1} },
1662 .block_erase = spi_block_erase_c7,
1663 }
1664 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001665 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001666 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001667 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001669 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001670 },
1671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 {
1673 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001674 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001677 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .total_size = 8192,
1679 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001681 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001683 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001684 .block_erasers =
1685 {
1686 {
1687 .eraseblocks = { {4 * 1024, 2048} },
1688 .block_erase = spi_block_erase_20,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 256} },
1691 .block_erase = spi_block_erase_52,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 128} },
1694 .block_erase = spi_block_erase_d8,
1695 }, {
1696 .eraseblocks = { {8 * 1024 * 1024, 1} },
1697 .block_erase = spi_block_erase_60,
1698 }, {
1699 .eraseblocks = { {8 * 1024 * 1024, 1} },
1700 .block_erase = spi_block_erase_c7,
1701 }
1702 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001703 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001704 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001705 .write = spi_chip_write_256,
1706 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001707 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 },
1709
1710 {
1711 .vendor = "Atmel",
1712 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001713 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001714 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001715 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001716 .total_size = 2048,
1717 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001718 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001720 .tested = TEST_UNTESTED,
1721 .probe = probe_spi_rdid,
1722 .probe_timing = TIMING_ZERO,
1723 .block_erasers =
1724 {
1725 {
1726 .eraseblocks = { {4 * 1024, 512} },
1727 .block_erase = spi_block_erase_20,
1728 }, {
1729 .eraseblocks = { {32 * 1024, 64} },
1730 .block_erase = spi_block_erase_52,
1731 }, {
1732 .eraseblocks = { {64 * 1024, 32} },
1733 .block_erase = spi_block_erase_d8,
1734 }, {
1735 .eraseblocks = { {2 * 1024 * 1024, 1} },
1736 .block_erase = spi_block_erase_60,
1737 }, {
1738 .eraseblocks = { {2 * 1024 * 1024, 1} },
1739 .block_erase = spi_block_erase_c7,
1740 }
1741 },
1742 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001743 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001746 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001747 },
1748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 {
1750 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001751 .name = "AT25F512",
1752 .bustype = BUS_SPI,
1753 .manufacture_id = ATMEL_ID,
1754 .model_id = ATMEL_AT25F512,
1755 .total_size = 64,
1756 .page_size = 256,
1757 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001758 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001759 .probe = probe_spi_at25f,
1760 .probe_timing = TIMING_ZERO,
1761 .block_erasers =
1762 {
1763 {
1764 .eraseblocks = { {32 * 1024, 2} },
1765 .block_erase = spi_block_erase_52,
1766 }, {
1767 .eraseblocks = { {64 * 1024, 1} },
1768 .block_erase = spi_block_erase_62,
1769 }
1770 },
1771 .printlock = spi_prettyprint_status_register_at25f,
1772 .unlock = spi_disable_blockprotect_at25f,
1773 .write = spi_chip_write_256,
1774 .read = spi_chip_read,
1775 .voltage = {2700, 3600},
1776 },
1777
1778 {
1779 .vendor = "Atmel",
1780 .name = "AT25F512A",
1781 .bustype = BUS_SPI,
1782 .manufacture_id = ATMEL_ID,
1783 .model_id = ATMEL_AT25F512A,
1784 .total_size = 64,
1785 .page_size = 128,
1786 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001787 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001788 .probe = probe_spi_at25f,
1789 .probe_timing = TIMING_ZERO,
1790 .block_erasers =
1791 {
1792 {
1793 .eraseblocks = { {32 * 1024, 2} },
1794 .block_erase = spi_block_erase_52,
1795 }, {
1796 .eraseblocks = { {64 * 1024, 1} },
1797 .block_erase = spi_block_erase_62,
1798 }
1799 },
1800 .printlock = spi_prettyprint_status_register_at25f512a,
1801 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1802 .unlock = spi_disable_blockprotect_at25f512a,
1803 .write = spi_chip_write_256,
1804 .read = spi_chip_read,
1805 .voltage = {2700, 3600},
1806 },
1807
1808 {
1809 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 64,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001818 .tested = TEST_UNTESTED,
1819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 16} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 2} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {32 * 1024, 2} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {64 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {64 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001838 }, {
1839 .eraseblocks = { {64 * 1024, 1} },
1840 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00001841 }
1842 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00001843 .printlock = spi_prettyprint_status_register_at25f512b,
1844 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001845 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001847 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001848 },
1849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 {
1851 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001852 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1853 * All other properties seem to be the same.*/
1854 .name = "AT25F1024(A)",
1855 .bustype = BUS_SPI,
1856 .manufacture_id = ATMEL_ID,
1857 .model_id = ATMEL_AT25F1024,
1858 .total_size = 128,
1859 .page_size = 256,
1860 .feature_bits = FEATURE_WRSR_WREN,
1861 .tested = TEST_OK_PREW,
1862 .probe = probe_spi_at25f,
1863 .probe_timing = TIMING_ZERO,
1864 .block_erasers =
1865 {
1866 {
1867 .eraseblocks = { {32 * 1024, 4} },
1868 .block_erase = spi_block_erase_52,
1869 }, {
1870 .eraseblocks = { {128 * 1024, 1} },
1871 .block_erase = spi_block_erase_62,
1872 }
1873 },
1874 .printlock = spi_prettyprint_status_register_at25f,
1875 .unlock = spi_disable_blockprotect_at25f,
1876 .write = spi_chip_write_256,
1877 .read = spi_chip_read,
1878 .voltage = {2700, 3600},
1879 },
1880
1881 {
1882 .vendor = "Atmel",
1883 .name = "AT25F2048",
1884 .bustype = BUS_SPI,
1885 .manufacture_id = ATMEL_ID,
1886 .model_id = ATMEL_AT25F2048,
1887 .total_size = 256,
1888 .page_size = 256,
1889 .feature_bits = FEATURE_WRSR_WREN,
1890 .tested = TEST_UNTESTED,
1891 .probe = probe_spi_at25f,
1892 .probe_timing = TIMING_ZERO,
1893 .block_erasers =
1894 {
1895 {
1896 .eraseblocks = { {64 * 1024, 4} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {256 * 1024, 1} },
1900 .block_erase = spi_block_erase_62,
1901 }
1902 },
1903 .printlock = spi_prettyprint_status_register_at25f,
1904 .unlock = spi_disable_blockprotect_at25f,
1905 .write = spi_chip_write_256,
1906 .read = spi_chip_read,
1907 .voltage = {2700, 3600},
1908 },
1909
1910 {
1911 .vendor = "Atmel",
1912 .name = "AT25F4096",
1913 .bustype = BUS_SPI,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = ATMEL_AT25F4096,
1916 .total_size = 512,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_WRSR_WREN,
1919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_at25f,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {64 * 1024, 8} },
1926 .block_erase = spi_block_erase_52,
1927 }, {
1928 .eraseblocks = { {512 * 1024, 1} },
1929 .block_erase = spi_block_erase_62,
1930 }
1931 },
1932 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00001933 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
1934 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001935 .write = spi_chip_write_256,
1936 .read = spi_chip_read,
1937 .voltage = {2700, 3600},
1938 },
1939
1940 {
1941 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001945 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001946 .total_size = 128,
1947 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001948 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00001949 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001951 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001952 .block_erasers =
1953 {
1954 {
1955 .eraseblocks = { {4 * 1024, 32} },
1956 .block_erase = spi_block_erase_20,
1957 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001958 .eraseblocks = { {4 * 1024, 32} },
1959 .block_erase = spi_block_erase_d7,
1960 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001961 .eraseblocks = { {32 * 1024, 4} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {32 * 1024, 4} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {128 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {128 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001974 .printlock = spi_prettyprint_status_register_at25fs010,
1975 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001976 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001978 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001979 },
1980
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001981 {
1982 .vendor = "Atmel",
1983 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001984 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001985 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001986 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .total_size = 512,
1988 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001989 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .tested = TEST_UNTESTED,
1991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001992 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001993 .block_erasers =
1994 {
1995 {
1996 .eraseblocks = { {4 * 1024, 128} },
1997 .block_erase = spi_block_erase_20,
1998 }, {
1999 .eraseblocks = { {64 * 1024, 8} },
2000 .block_erase = spi_block_erase_52,
2001 }, {
2002 .eraseblocks = { {64 * 1024, 8} },
2003 .block_erase = spi_block_erase_d8,
2004 }, {
2005 .eraseblocks = { {512 * 1024, 1} },
2006 .block_erase = spi_block_erase_60,
2007 }, {
2008 .eraseblocks = { {512 * 1024, 1} },
2009 .block_erase = spi_block_erase_c7,
2010 }
2011 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002012 .printlock = spi_prettyprint_status_register_at25fs040,
2013 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002014 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002016 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002017 },
2018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 {
2020 .vendor = "Atmel",
2021 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002024 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002025 .total_size = 512,
2026 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002028 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002030 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002031 .block_erasers =
2032 {
2033 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002034 .eraseblocks = { {256, 2048} },
2035 .block_erase = spi_block_erase_81,
2036 }, {
2037 .eraseblocks = { {2 * 1024, 256} },
2038 .block_erase = spi_block_erase_50,
2039 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002040 .eraseblocks = { {4 * 1024, 128} },
2041 .block_erase = spi_block_erase_20,
2042 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002043 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002044 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002045 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002046 .write = spi_chip_write_1,
2047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002048 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 1024,
2058 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002059 .feature_bits = FEATURE_WRSR_WREN,
2060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002062 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {4 * 1024, 256} },
2067 .block_erase = spi_block_erase_20,
2068 }, {
2069 .eraseblocks = { {32 * 1024, 32} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {64 * 1024, 16} },
2073 .block_erase = spi_block_erase_d8,
2074 }, {
2075 .eraseblocks = { {1024 * 1024, 1} },
2076 .block_erase = spi_block_erase_60,
2077 }, {
2078 .eraseblocks = { {1024 * 1024, 1} },
2079 .block_erase = spi_block_erase_c7,
2080 }
2081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002082 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002083 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002084 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002085 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002087 },
2088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002095 .total_size = 2048,
2096 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002097 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00002098 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002100 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002101 .block_erasers =
2102 {
2103 {
2104 .eraseblocks = { {4 * 1024, 512} },
2105 .block_erase = spi_block_erase_20,
2106 }, {
2107 .eraseblocks = { {32 * 1024, 64} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 32} },
2111 .block_erase = spi_block_erase_d8,
2112 }, {
2113 .eraseblocks = { {2 * 1024 * 1024, 1} },
2114 .block_erase = spi_block_erase_60,
2115 }, {
2116 .eraseblocks = { {2 * 1024 * 1024, 1} },
2117 .block_erase = spi_block_erase_c7,
2118 }
2119 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002120 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002121 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002125 },
2126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002127 {
2128 .vendor = "Atmel",
2129 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002130 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002132 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002133 .total_size = 2048,
2134 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002138 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002139 .block_erasers =
2140 {
2141 {
2142 .eraseblocks = { {4 * 1024, 512} },
2143 .block_erase = spi_block_erase_20,
2144 }, {
2145 .eraseblocks = { {32 * 1024, 64} },
2146 .block_erase = spi_block_erase_52,
2147 }, {
2148 .eraseblocks = { {64 * 1024, 32} },
2149 .block_erase = spi_block_erase_d8,
2150 }, {
2151 .eraseblocks = { {2 * 1024 * 1024, 1} },
2152 .block_erase = spi_block_erase_60,
2153 }, {
2154 .eraseblocks = { {2 * 1024 * 1024, 1} },
2155 .block_erase = spi_block_erase_c7,
2156 }
2157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002158 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002159 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002160 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002163 },
2164
2165 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002166 /*{
2167 .vendor = "Atmel",
2168 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002169 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002170 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002171 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .total_size = 4096,
2173 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002174 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002175 .tested = TEST_UNTESTED,
2176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002177 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002178 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002179 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
2182 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 {
2185 .vendor = "Atmel",
2186 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002189 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .total_size = 512,
2191 .page_size = 256,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002192 .tested = TEST_BAD_WRITE,
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002196 .block_erasers =
2197 {
2198 {
2199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }, {
2202 .eraseblocks = { {32 * 1024, 16} },
2203 .block_erase = spi_block_erase_52,
2204 }, {
2205 .eraseblocks = { {64 * 1024, 8} },
2206 .block_erase = spi_block_erase_d8,
2207 }, {
2208 .eraseblocks = { {512 * 1024, 1} },
2209 .block_erase = spi_block_erase_60,
2210 }, {
2211 .eraseblocks = { {512 * 1024, 1} },
2212 .block_erase = spi_block_erase_c7,
2213 }
2214 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002215 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .write = NULL /* Incompatible Page write */,
2217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002218 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002219 },
2220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002221 {
2222 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002223 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002224 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002225 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002226 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002227 .total_size = 64,
2228 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002229 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002230 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002231 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002232 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002233 .block_erasers =
2234 {
2235 {
2236 .eraseblocks = { {64 * 1024, 1} },
2237 .block_erase = erase_chip_block_jedec,
2238 }
2239 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002240 .write = write_jedec,
2241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002242 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002243 },
2244
2245 {
2246 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002247 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002248 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002249 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002250 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002251 .total_size = 128,
2252 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002253 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002254 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002255 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002256 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = { {128 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002264 .write = write_jedec, /* FIXME */
2265 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002266 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002267 },
2268
2269 {
2270 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002271 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002272 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002273 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002274 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 .total_size = 256,
2276 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002277 .feature_bits = FEATURE_LONG_RESET,
2278 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002280 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002281 .block_erasers =
2282 {
2283 {
2284 .eraseblocks = { {256 * 1024, 1} },
2285 .block_erase = erase_chip_block_jedec,
2286 }
2287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002290 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002291 },
2292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 {
2294 .vendor = "Atmel",
2295 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002297 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002298 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002299 .total_size = 512,
2300 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002301 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002302 .tested = TEST_UNTESTED,
2303 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002304 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002305 .block_erasers =
2306 {
2307 {
2308 .eraseblocks = { {512 * 1024, 1} },
2309 .block_erase = erase_chip_block_jedec,
2310 }
2311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002312 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002314 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002315 },
2316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002317 {
2318 .vendor = "Atmel",
2319 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002320 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002321 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002322 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002323 .total_size = 16896 /* No power of two sizes */,
2324 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002325 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002326 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002327 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002328 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .write = NULL /* Incompatible Page write */,
2330 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002331 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002332 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 {
2335 .vendor = "Atmel",
2336 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002337 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002339 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002340 .total_size = 128 /* or 132, determined from status register */,
2341 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002342 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002343 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2344 .feature_bits = FEATURE_OTP,
2345 .tested = TEST_UNTESTED,
2346 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002347 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002348 .block_erasers =
2349 {
2350 {
2351 .eraseblocks = { {256, 512} },
2352 .block_erase = spi_erase_at45db_page,
2353 }, {
2354 .eraseblocks = { {8 * 256, 512/8} },
2355 .block_erase = spi_erase_at45db_block,
2356 }, {
2357 .eraseblocks = {
2358 {8 * 256, 1},
2359 {120 * 256, 1},
2360 {128 * 256, 3},
2361 },
2362 .block_erase = spi_erase_at45db_sector
2363 }, {
2364 .eraseblocks = { {128 * 1024, 1} },
2365 .block_erase = spi_erase_at45db_chip,
2366 }
2367 },
2368 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2369 .printlock = spi_prettyprint_status_register_at45db,
2370 /* granularity will be set by the probing function. */
2371 .write = spi_write_at45db,
2372 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002373 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002374 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002376 {
2377 .vendor = "Atmel",
2378 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002379 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002381 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002382 .total_size = 256 /* or 264, determined from status register */,
2383 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002384 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002385 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2386 .feature_bits = FEATURE_OTP,
2387 .tested = TEST_UNTESTED,
2388 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002389 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002390 .block_erasers =
2391 {
2392 {
2393 .eraseblocks = { {256, 1024} },
2394 .block_erase = spi_erase_at45db_page,
2395 }, {
2396 .eraseblocks = { {8 * 256, 1024/8} },
2397 .block_erase = spi_erase_at45db_block,
2398 }, {
2399 .eraseblocks = {
2400 {8 * 256, 1},
2401 {120 * 256, 1},
2402 {128 * 256, 7},
2403 },
2404 .block_erase = spi_erase_at45db_sector
2405 }, {
2406 .eraseblocks = { {256 * 1024, 1} },
2407 .block_erase = spi_erase_at45db_chip,
2408 }
2409 },
2410 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2411 .printlock = spi_prettyprint_status_register_at45db,
2412 /* granularity will be set by the probing function. */
2413 .write = spi_write_at45db,
2414 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002415 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002416 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002418 {
2419 .vendor = "Atmel",
2420 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002421 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002422 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002423 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002424 .total_size = 512 /* or 528, determined from status register */,
2425 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002426 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002427 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2428 .feature_bits = FEATURE_OTP,
2429 .tested = TEST_OK_PREW,
2430 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002431 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002432 .block_erasers =
2433 {
2434 {
2435 .eraseblocks = { {256, 2048} },
2436 .block_erase = spi_erase_at45db_page,
2437 }, {
2438 .eraseblocks = { {8 * 256, 2048/8} },
2439 .block_erase = spi_erase_at45db_block,
2440 }, {
2441 .eraseblocks = {
2442 {8 * 256, 1},
2443 {248 * 256, 1},
2444 {256 * 256, 7},
2445 },
2446 .block_erase = spi_erase_at45db_sector
2447 }, {
2448 .eraseblocks = { {512 * 1024, 1} },
2449 .block_erase = spi_erase_at45db_chip,
2450 }
2451 },
2452 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2453 .printlock = spi_prettyprint_status_register_at45db,
2454 /* granularity will be set by the probing function. */
2455 .write = spi_write_at45db,
2456 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2457 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002458 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002460 {
2461 .vendor = "Atmel",
2462 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002463 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002464 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002465 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002466 .total_size = 1024 /* or 1056, determined from status register */,
2467 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002468 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002469 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2470 .feature_bits = FEATURE_OTP,
2471 .tested = TEST_UNTESTED,
2472 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002473 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002474 .block_erasers =
2475 {
2476 {
2477 .eraseblocks = { {256, 4096} },
2478 .block_erase = spi_erase_at45db_page,
2479 }, {
2480 .eraseblocks = { {8 * 256, 4096/8} },
2481 .block_erase = spi_erase_at45db_block,
2482 }, {
2483 .eraseblocks = {
2484 {8 * 256, 1},
2485 {248 * 256, 1},
2486 {256 * 256, 15},
2487 },
2488 .block_erase = spi_erase_at45db_sector
2489 }, {
2490 .eraseblocks = { {1024 * 1024, 1} },
2491 .block_erase = spi_erase_at45db_chip,
2492 }
2493 },
2494 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2495 .printlock = spi_prettyprint_status_register_at45db,
2496 /* granularity will be set by the probing function. */
2497 .write = spi_write_at45db,
2498 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002499 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002500 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002501
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002502 {
2503 .vendor = "Atmel",
2504 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002505 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002506 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002507 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002508 .total_size = 2048 /* or 2112, determined from status register */,
2509 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002510 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002511 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2512 .feature_bits = FEATURE_OTP,
2513 .tested = TEST_OK_PREW,
2514 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002515 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002516 .block_erasers =
2517 {
2518 {
2519 .eraseblocks = { {512, 4096} },
2520 .block_erase = spi_erase_at45db_page,
2521 }, {
2522 .eraseblocks = { {8 * 512, 4096/8} },
2523 .block_erase = spi_erase_at45db_block,
2524 }, {
2525 .eraseblocks = {
2526 {8 * 512, 1},
2527 {248 * 512, 1},
2528 {256 * 512, 15},
2529 },
2530 .block_erase = spi_erase_at45db_sector
2531 }, {
2532 .eraseblocks = { {2048 * 1024, 1} },
2533 .block_erase = spi_erase_at45db_chip,
2534 }
2535 },
2536 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2537 .printlock = spi_prettyprint_status_register_at45db,
2538 /* granularity will be set by the probing function. */
2539 .write = spi_write_at45db,
2540 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002541 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002542 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002544 {
2545 .vendor = "Atmel",
2546 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002547 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002548 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002549 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002550 .total_size = 4224 /* No power of two sizes */,
2551 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002552 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002553 .tested = TEST_BAD_REW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002554 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002555 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002556 .write = NULL,
2557 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002558 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002559 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 {
2562 .vendor = "Atmel",
2563 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002564 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002566 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002567 .total_size = 4096 /* or 4224, determined from status register */,
2568 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002569 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002570 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002571 .feature_bits = FEATURE_OTP,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002572 .tested = TEST_UNTESTED,
2573 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002574 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002575 .block_erasers =
2576 {
2577 {
2578 .eraseblocks = { {512, 8192} },
2579 .block_erase = spi_erase_at45db_page,
2580 }, {
2581 .eraseblocks = { {8 * 512, 8192/8} },
2582 .block_erase = spi_erase_at45db_block,
2583 }, {
2584 .eraseblocks = {
2585 {8 * 512, 1},
2586 {120 * 512, 1},
2587 {128 * 512, 63},
2588 },
2589 .block_erase = spi_erase_at45db_sector
2590 }, {
2591 .eraseblocks = { {4096 * 1024, 1} },
2592 .block_erase = spi_erase_at45db_chip,
2593 }
2594 },
2595 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2596 .printlock = spi_prettyprint_status_register_at45db,
2597 /* granularity will be set by the probing function. */
2598 .write = spi_write_at45db,
2599 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2600 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2601 },
2602
2603 {
2604 .vendor = "Atmel",
2605 .name = "AT45DB321E",
2606 .bustype = BUS_SPI,
2607 .manufacture_id = ATMEL_ID,
2608 .model_id = ATMEL_AT45DB321C,
2609 .total_size = 4096 /* or 4224, determined from status register */,
2610 .page_size = 512 /* or 528, determined from status register */,
2611 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2612 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2613 .feature_bits = FEATURE_OTP,
2614 .tested = TEST_UNTESTED,
2615 .probe = probe_spi_at45db,
2616 .probe_timing = TIMING_ZERO,
2617 .block_erasers =
2618 {
2619 {
2620 .eraseblocks = { {512, 8192} },
2621 .block_erase = spi_erase_at45db_page,
2622 }, {
2623 .eraseblocks = { {8 * 512, 8192/8} },
2624 .block_erase = spi_erase_at45db_block,
2625 }, {
2626 .eraseblocks = {
2627 {8 * 512, 1},
2628 {120 * 512, 1},
2629 {128 * 512, 63},
2630 },
2631 .block_erase = spi_erase_at45db_sector
2632 }, {
2633 .eraseblocks = { {4096 * 1024, 1} },
2634 .block_erase = spi_erase_at45db_chip,
2635 }
2636 },
2637 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2638 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2639 /* granularity will be set by the probing function. */
2640 .write = spi_write_at45db,
2641 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2642 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002643 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002645 {
2646 .vendor = "Atmel",
2647 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002648 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002650 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002651 .total_size = 8192 /* or 8448, determined from status register */,
2652 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002653 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002654 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2655 .feature_bits = FEATURE_OTP,
2656 .tested = TEST_UNTESTED,
2657 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002658 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002659 .block_erasers =
2660 {
2661 {
2662 .eraseblocks = { {1024, 8192} },
2663 .block_erase = spi_erase_at45db_page,
2664 }, {
2665 .eraseblocks = { {8 * 1024, 8192/8} },
2666 .block_erase = spi_erase_at45db_block,
2667 }, {
2668 .eraseblocks = {
2669 {8 * 1024, 1},
2670 {248 * 1024, 1},
2671 {256 * 1024, 31},
2672 },
2673 .block_erase = spi_erase_at45db_sector
2674 }, {
2675 .eraseblocks = { {8192 * 1024, 1} },
2676 .block_erase = spi_erase_at45db_chip,
2677 }
2678 },
2679 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2680 .printlock = spi_prettyprint_status_register_at45db,
2681 /* granularity will be set by the probing function. */
2682 .write = spi_write_at45db,
2683 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002684 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002685 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002687 {
2688 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002689 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002690 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002691 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002692 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002693 .total_size = 64,
2694 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002695 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002696 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002698 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002699 .block_erasers =
2700 {
2701 {
2702 .eraseblocks = { {64 * 1024, 1} },
2703 .block_erase = erase_chip_block_jedec,
2704 }
2705 },
Sean Nelson35727f72010-01-28 23:55:12 +00002706 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002708 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002709 },
2710
2711 {
2712 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002713 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002714 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002715 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002716 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002717 .total_size = 256,
2718 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002719 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 .tested = TEST_UNTESTED,
2721 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002722 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002723 .block_erasers =
2724 {
2725 {
2726 .eraseblocks = {
2727 {16 * 1024, 1},
2728 {8 * 1024, 2},
2729 {96 * 1024, 1},
2730 {128 * 1024, 1},
2731 },
2732 .block_erase = erase_sector_jedec,
2733 }, {
2734 .eraseblocks = { {256 * 1024, 1} },
2735 .block_erase = erase_chip_block_jedec,
2736 }
2737 },
Sean Nelson35727f72010-01-28 23:55:12 +00002738 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002740 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002741 },
2742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002743 {
2744 .vendor = "Atmel",
2745 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002746 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002747 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002748 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002749 .total_size = 256,
2750 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002751 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002752 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002753 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002754 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002755 .block_erasers =
2756 {
2757 {
2758 .eraseblocks = {
2759 {128 * 1024, 1},
2760 {96 * 1024, 1},
2761 {8 * 1024, 2},
2762 {16 * 1024, 1},
2763 },
2764 .block_erase = erase_sector_jedec,
2765 }, {
2766 .eraseblocks = { {256 * 1024, 1} },
2767 .block_erase = erase_chip_block_jedec,
2768 }
2769 },
Sean Nelson35727f72010-01-28 23:55:12 +00002770 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002772 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002773 },
2774
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002775 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002776 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002777 .name = "AT49(H)F010",
2778 .bustype = BUS_PARALLEL,
2779 .manufacture_id = ATMEL_ID,
2780 .model_id = ATMEL_AT49F010,
2781 .total_size = 128,
2782 .page_size = 0, /* unused */
2783 .feature_bits = FEATURE_EITHER_RESET,
2784 .tested = TEST_OK_PREW,
2785 .probe = probe_jedec,
2786 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2787 .block_erasers =
2788 {
2789 {
2790 .eraseblocks = { {128 * 1024, 1} },
2791 .block_erase = erase_chip_block_jedec,
2792 }
2793 },
2794 .printlock = printlock_at49f,
2795 .write = write_jedec_1,
2796 .read = read_memmapped,
2797 .voltage = {4500, 5500},
2798 },
2799
2800 {
2801 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002802 .name = "AT49F020",
2803 .bustype = BUS_PARALLEL,
2804 .manufacture_id = ATMEL_ID,
2805 .model_id = ATMEL_AT49F020,
2806 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002807 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002808 .feature_bits = FEATURE_EITHER_RESET,
2809 .tested = TEST_OK_PRE,
2810 .probe = probe_jedec,
2811 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2812 .block_erasers =
2813 {
2814 {
2815 .eraseblocks = { {256 * 1024, 1} },
2816 .block_erase = erase_chip_block_jedec,
2817 }
2818 /* Chip features an optional permanent write protection
2819 * of the first 8 kB. The erase function is the same as
2820 * above, but 00000H to 01FFFH will not be erased.
2821 * FIXME: add another eraser when partial erasers are
2822 * supported.
2823 */
2824 },
2825 .printlock = printlock_at49f,
2826 .write = write_jedec_1,
2827 .read = read_memmapped,
2828 .voltage = {4500, 5500},
2829 },
2830
2831 {
2832 .vendor = "Atmel",
2833 .name = "AT49F040",
2834 .bustype = BUS_PARALLEL,
2835 .manufacture_id = ATMEL_ID,
2836 .model_id = ATMEL_AT49F040,
2837 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002838 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00002839 .feature_bits = FEATURE_EITHER_RESET,
2840 .tested = TEST_UNTESTED,
2841 .probe = probe_jedec,
2842 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2843 .block_erasers =
2844 {
2845 {
2846 .eraseblocks = { {512 * 1024, 1} },
2847 .block_erase = erase_chip_block_jedec,
2848 }
2849 /* Chip features an optional permanent write protection
2850 * of the first 16 kB. The erase function is the same as
2851 * above, but 00000H to 03FFFH will not be erased.
2852 * FIXME: add another eraser when partial erasers are
2853 * supported.
2854 */
2855 },
2856 .printlock = printlock_at49f,
2857 .write = write_jedec_1,
2858 .read = read_memmapped,
2859 .voltage = {4500, 5500},
2860 },
2861
2862 {
2863 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002864 .name = "AT49F080",
2865 .bustype = BUS_PARALLEL,
2866 .manufacture_id = ATMEL_ID,
2867 .model_id = ATMEL_AT49F080,
2868 .total_size = 1024,
2869 .page_size = 0, /* unused */
2870 .feature_bits = FEATURE_EITHER_RESET,
2871 .tested = TEST_UNTESTED,
2872 .probe = probe_jedec,
2873 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2874 .block_erasers =
2875 {
2876 {
2877 .eraseblocks = { {1024 * 1024, 1} },
2878 .block_erase = erase_chip_block_jedec,
2879 }
2880 /* Chip features an optional permanent write protection
2881 * of the first 16 kB. The erase function is the same as
2882 * above, but 00000H to 03FFFH will not be erased.
2883 * FIXME: add another eraser when partial erasers are
2884 * supported.
2885 */
2886 },
2887 .printlock = printlock_at49f,
2888 .write = write_jedec_1,
2889 .read = read_memmapped,
2890 .voltage = {4500, 5500},
2891 },
2892
2893 {
2894 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
2895 .vendor = "Atmel",
2896 .name = "AT49F080T",
2897 .bustype = BUS_PARALLEL,
2898 .manufacture_id = ATMEL_ID,
2899 .model_id = ATMEL_AT49F080T,
2900 .total_size = 1024,
2901 .page_size = 0, /* unused */
2902 .feature_bits = FEATURE_EITHER_RESET,
2903 .tested = TEST_UNTESTED,
2904 .probe = probe_jedec,
2905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {1024 * 1024, 1} },
2910 .block_erase = erase_chip_block_jedec,
2911 }
2912 /* Chip features an optional permanent write protection
2913 * of the first 16 kB. The erase function is the same as
2914 * above, but FC000H to FFFFFH will not be erased.
2915 * FIXME: add another eraser when partial erasers are
2916 * supported.
2917 */
2918 },
2919 .printlock = printlock_at49f,
2920 .write = write_jedec_1,
2921 .read = read_memmapped,
2922 .voltage = {4500, 5500},
2923 },
2924
2925 {
2926 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002927 .name = "AT49LH002",
2928 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2929 .manufacture_id = ATMEL_ID,
2930 .model_id = ATMEL_AT49LH002,
2931 .total_size = 256,
2932 .page_size = 0, /* unused */
2933 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2934 .tested = TEST_UNTESTED,
2935 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2936 .probe_timing = TIMING_FIXME,
2937 .block_erasers =
2938 {
2939 {
2940 .eraseblocks = {
2941 {64 * 1024, 3},
2942 {32 * 1024, 1},
2943 {8 * 1024, 2},
2944 {16 * 1024, 1},
2945 },
2946 .block_erase = erase_block_82802ab,
2947 }, {
2948 .eraseblocks = {
2949 {64 * 1024, 4},
2950 },
2951 .block_erase = NULL, /* TODO: Implement. */
2952 },
2953 },
2954 .printlock = NULL, /* TODO */
2955 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2956 .write = write_82802ab,
2957 .read = read_memmapped,
2958 .voltage = {3000, 3600},
2959 },
2960
2961 {
Andrew Morganca081462011-09-13 22:05:44 +00002962 .vendor = "Catalyst",
2963 .name = "CAT28F512",
2964 .bustype = BUS_PARALLEL,
2965 .manufacture_id = CATALYST_ID,
2966 .model_id = CATALYST_CAT28F512,
2967 .total_size = 64,
2968 .page_size = 0, /* unused */
2969 .feature_bits = 0,
2970 .tested = TEST_OK_PR,
2971 .probe = probe_jedec, /* FIXME! */
2972 .probe_timing = TIMING_ZERO,
2973 .block_erasers =
2974 {
2975 {
2976 .eraseblocks = { {64 * 1024, 1} },
2977 .block_erase = NULL, /* TODO */
2978 },
2979 },
2980 .write = NULL, /* TODO */
2981 .read = read_memmapped,
2982 .voltage = {4500, 5500},
2983 },
2984
2985 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002986 .vendor = "Bright",
2987 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002988 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002989 .manufacture_id = BRIGHT_ID,
2990 .model_id = BRIGHT_BM29F040,
2991 .total_size = 512,
2992 .page_size = 64 * 1024,
2993 .feature_bits = FEATURE_EITHER_RESET,
2994 .tested = TEST_OK_PR,
2995 .probe = probe_jedec,
2996 .probe_timing = TIMING_ZERO,
2997 .block_erasers =
2998 {
2999 {
3000 .eraseblocks = { {64 * 1024, 8} },
3001 .block_erase = erase_sector_jedec,
3002 }, {
3003 .eraseblocks = { {512 * 1024, 1} },
3004 .block_erase = erase_chip_block_jedec,
3005 },
3006 },
3007 .write = write_jedec_1,
3008 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003009 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003010 },
3011
3012 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003013 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003014 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003015 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003016 .manufacture_id = ESMT_ID,
3017 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003018 .total_size = 256,
3019 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003020 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003021 .tested = TEST_UNTESTED,
3022 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003023 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003024 .block_erasers =
3025 {
3026 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003027 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003028 {128 * 1024, 1},
3029 {96 * 1024, 1},
3030 {8 * 1024, 2},
3031 {16 * 1024, 1},
3032 },
3033 .block_erase = erase_sector_jedec,
3034 }, {
3035 .eraseblocks = { {256 * 1024, 1} },
3036 .block_erase = erase_chip_block_jedec,
3037 }
3038 },
Sean Nelson35727f72010-01-28 23:55:12 +00003039 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003041 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003042 },
3043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003044 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003045 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003046 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003047 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003048 .manufacture_id = ESMT_ID,
3049 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003050 .total_size = 1024,
3051 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003052 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003053 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003054 .probe = probe_spi_rdid,
3055 .probe_timing = TIMING_ZERO,
3056 .block_erasers =
3057 {
3058 {
3059 .eraseblocks = { {4 * 1024, 256} },
3060 .block_erase = spi_block_erase_20,
3061 }, {
3062 .eraseblocks = { {64 * 1024, 16} },
3063 .block_erase = spi_block_erase_d8,
3064 }, {
3065 .eraseblocks = { {1024 * 1024, 1} },
3066 .block_erase = spi_block_erase_60,
3067 }, {
3068 .eraseblocks = { {1024 * 1024, 1} },
3069 .block_erase = spi_block_erase_c7,
3070 }
3071 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003073 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003074 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003075 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003076 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003077 },
3078
3079 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003080 .vendor = "Eon",
3081 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003082 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003083 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003084 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003085 .total_size = 64,
3086 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003087 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003088 .tested = TEST_UNTESTED,
3089 .probe = probe_spi_rdid,
3090 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003091 .block_erasers =
3092 {
3093 {
3094 .eraseblocks = {
3095 {4 * 1024, 2},
3096 {8 * 1024, 1},
3097 {16 * 1024, 1},
3098 {32 * 1024, 1},
3099 },
3100 .block_erase = spi_block_erase_d8,
3101 }, {
3102 .eraseblocks = { {64 * 1024, 1} },
3103 .block_erase = spi_block_erase_c7,
3104 }
3105 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003107 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003108 .write = spi_chip_write_256,
3109 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003110 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003111 },
3112
3113 {
3114 .vendor = "Eon",
3115 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003116 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003117 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003118 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003119 .total_size = 64,
3120 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003121 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003122 .tested = TEST_UNTESTED,
3123 .probe = probe_spi_rdid,
3124 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003125 .block_erasers =
3126 {
3127 {
3128 .eraseblocks = {
3129 {32 * 1024, 1},
3130 {16 * 1024, 1},
3131 {8 * 1024, 1},
3132 {4 * 1024, 2},
3133 },
3134 .block_erase = spi_block_erase_d8,
3135 }, {
3136 .eraseblocks = { {64 * 1024, 1} },
3137 .block_erase = spi_block_erase_c7,
3138 }
3139 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003140 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003141 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003142 .write = spi_chip_write_256,
3143 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003144 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003145 },
3146
3147 {
3148 .vendor = "Eon",
3149 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003150 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003151 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003152 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003153 .total_size = 128,
3154 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003155 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003156 .tested = TEST_UNTESTED,
3157 .probe = probe_spi_rdid,
3158 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003159 .block_erasers =
3160 {
3161 {
3162 .eraseblocks = {
3163 {4 * 1024, 2},
3164 {8 * 1024, 1},
3165 {16 * 1024, 1},
3166 {32 * 1024, 3},
3167 },
3168 .block_erase = spi_block_erase_d8,
3169 }, {
3170 .eraseblocks = { {128 * 1024, 1} },
3171 .block_erase = spi_block_erase_c7,
3172 }
3173 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003175 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003176 .write = spi_chip_write_256,
3177 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003178 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003179 },
3180
3181 {
3182 .vendor = "Eon",
3183 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003184 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003185 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003186 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003187 .total_size = 128,
3188 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003189 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003190 .tested = TEST_UNTESTED,
3191 .probe = probe_spi_rdid,
3192 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003193 .block_erasers =
3194 {
3195 {
3196 .eraseblocks = {
3197 {32 * 1024, 3},
3198 {16 * 1024, 1},
3199 {8 * 1024, 1},
3200 {4 * 1024, 2},
3201 },
3202 .block_erase = spi_block_erase_d8,
3203 }, {
3204 .eraseblocks = { {128 * 1024, 1} },
3205 .block_erase = spi_block_erase_c7,
3206 }
3207 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003209 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003210 .write = spi_chip_write_256,
3211 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003212 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003213 },
3214
3215 {
3216 .vendor = "Eon",
3217 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003218 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003219 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003220 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003221 .total_size = 256,
3222 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003223 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003224 .tested = TEST_UNTESTED,
3225 .probe = probe_spi_rdid,
3226 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003227 .block_erasers =
3228 {
3229 {
3230 .eraseblocks = {
3231 {4 * 1024, 2},
3232 {8 * 1024, 1},
3233 {16 * 1024, 1},
3234 {32 * 1024, 1},
3235 {64 * 1024, 3}
3236 },
3237 .block_erase = spi_block_erase_d8,
3238 }, {
3239 .eraseblocks = { {256 * 1024, 1} },
3240 .block_erase = spi_block_erase_c7,
3241 }
3242 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003243 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003244 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003245 .write = spi_chip_write_256,
3246 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003247 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003248 },
3249
3250 {
3251 .vendor = "Eon",
3252 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003253 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003254 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003255 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003256 .total_size = 256,
3257 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003258 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003259 .tested = TEST_UNTESTED,
3260 .probe = probe_spi_rdid,
3261 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003262 .block_erasers =
3263 {
3264 {
3265 .eraseblocks = {
3266 {64 * 1024, 3},
3267 {32 * 1024, 1},
3268 {16 * 1024, 1},
3269 {8 * 1024, 1},
3270 {4 * 1024, 2},
3271 },
3272 .block_erase = spi_block_erase_d8,
3273 }, {
3274 .eraseblocks = { {256 * 1024, 1} },
3275 .block_erase = spi_block_erase_c7,
3276 }
3277 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003278 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003279 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003280 .write = spi_chip_write_256,
3281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003282 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003283 },
3284
3285 {
3286 .vendor = "Eon",
3287 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003288 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003289 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003290 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003291 .total_size = 512,
3292 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003293 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003294 .tested = TEST_UNTESTED,
3295 .probe = probe_spi_rdid,
3296 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003297 .block_erasers =
3298 {
3299 {
3300 .eraseblocks = {
3301 {4 * 1024, 2},
3302 {8 * 1024, 1},
3303 {16 * 1024, 1},
3304 {32 * 1024, 1},
3305 {64 * 1024, 7}
3306 },
3307 .block_erase = spi_block_erase_d8,
3308 }, {
3309 .eraseblocks = { {512 * 1024, 1} },
3310 .block_erase = spi_block_erase_c7,
3311 }
3312 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003313 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003314 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003315 .write = spi_chip_write_256,
3316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003317 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003318 },
3319
3320 {
3321 .vendor = "Eon",
3322 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003323 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003324 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003325 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003326 .total_size = 512,
3327 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003328 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003329 .tested = TEST_UNTESTED,
3330 .probe = probe_spi_rdid,
3331 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003332 .block_erasers =
3333 {
3334 {
3335 .eraseblocks = {
3336 {64 * 1024, 7},
3337 {32 * 1024, 1},
3338 {16 * 1024, 1},
3339 {8 * 1024, 1},
3340 {4 * 1024, 2},
3341 },
3342 .block_erase = spi_block_erase_d8,
3343 }, {
3344 .eraseblocks = { {512 * 1024, 1} },
3345 .block_erase = spi_block_erase_c7,
3346 }
3347 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003348 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003349 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003350 .write = spi_chip_write_256,
3351 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003352 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003353 },
3354
3355 {
3356 .vendor = "Eon",
3357 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003358 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003359 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003360 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003361 .total_size = 1024,
3362 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003363 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003364 .tested = TEST_UNTESTED,
3365 .probe = probe_spi_rdid,
3366 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003367 .block_erasers =
3368 {
3369 {
3370 .eraseblocks = {
3371 {4 * 1024, 2},
3372 {8 * 1024, 1},
3373 {16 * 1024, 1},
3374 {32 * 1024, 1},
3375 {64 * 1024, 15}
3376 },
3377 .block_erase = spi_block_erase_d8,
3378 }, {
3379 .eraseblocks = { {1024 * 1024, 1} },
3380 .block_erase = spi_block_erase_c7,
3381 }
3382 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003383 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003384 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003385 .write = spi_chip_write_256,
3386 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003387 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003388 },
3389
3390 {
3391 .vendor = "Eon",
3392 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003393 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003394 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003395 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003396 .total_size = 1024,
3397 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003398 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003399 .tested = TEST_UNTESTED,
3400 .probe = probe_spi_rdid,
3401 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003402 .block_erasers =
3403 {
3404 {
3405 .eraseblocks = {
3406 {64 * 1024, 15},
3407 {32 * 1024, 1},
3408 {16 * 1024, 1},
3409 {8 * 1024, 1},
3410 {4 * 1024, 2},
3411 },
3412 .block_erase = spi_block_erase_d8,
3413 }, {
3414 .eraseblocks = { {1024 * 1024, 1} },
3415 .block_erase = spi_block_erase_c7,
3416 }
3417 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003418 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003419 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003420 .write = spi_chip_write_256,
3421 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003422 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003423 },
3424
3425 {
3426 .vendor = "Eon",
3427 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003428 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003429 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003430 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003431 .total_size = 2048,
3432 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003433 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003434 .tested = TEST_UNTESTED,
3435 .probe = probe_spi_rdid,
3436 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003437 .block_erasers =
3438 {
3439 {
3440 .eraseblocks = {
3441 {4 * 1024, 2},
3442 {8 * 1024, 1},
3443 {16 * 1024, 1},
3444 {32 * 1024, 1},
3445 {64 * 1024, 31},
3446 },
3447 .block_erase = spi_block_erase_d8,
3448 }, {
3449 .eraseblocks = { {2 * 1024 * 1024, 1} },
3450 .block_erase = spi_block_erase_c7,
3451 }
3452 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003453 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003454 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003455 .write = spi_chip_write_256,
3456 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003457 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003458 },
3459
3460 {
3461 .vendor = "Eon",
3462 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003463 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003464 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003465 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003466 .total_size = 2048,
3467 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003468 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003469 .tested = TEST_UNTESTED,
3470 .probe = probe_spi_rdid,
3471 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003472 .block_erasers =
3473 {
3474 {
3475 .eraseblocks = {
3476 {64 * 1024, 31},
3477 {32 * 1024, 1},
3478 {16 * 1024, 1},
3479 {8 * 1024, 1},
3480 {4 * 1024, 2},
3481 },
3482 .block_erase = spi_block_erase_d8,
3483 }, {
3484 .eraseblocks = { {2 * 1024 * 1024, 1} },
3485 .block_erase = spi_block_erase_c7,
3486 }
3487 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003488 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003489 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003490 .write = spi_chip_write_256,
3491 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003492 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003493 },
3494
3495 {
3496 .vendor = "Eon",
3497 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003498 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003499 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003500 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003501 .total_size = 4096,
3502 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003503 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003504 .tested = TEST_UNTESTED,
3505 .probe = probe_spi_rdid,
3506 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003507 .block_erasers =
3508 {
3509 {
3510 .eraseblocks = {
3511 {4 * 1024, 2},
3512 {8 * 1024, 1},
3513 {16 * 1024, 1},
3514 {32 * 1024, 1},
3515 {64 * 1024, 63},
3516 },
3517 .block_erase = spi_block_erase_d8,
3518 }, {
3519 .eraseblocks = { {4 * 1024 * 1024, 1} },
3520 .block_erase = spi_block_erase_c7,
3521 }
3522 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003523 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003524 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003525 .write = spi_chip_write_256,
3526 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003527 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003528 },
3529
3530 {
3531 .vendor = "Eon",
3532 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003533 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003535 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003536 .total_size = 4096,
3537 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003538 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003539 .tested = TEST_UNTESTED,
3540 .probe = probe_spi_rdid,
3541 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003542 .block_erasers =
3543 {
3544 {
3545 .eraseblocks = {
3546 {64 * 1024, 63},
3547 {32 * 1024, 1},
3548 {16 * 1024, 1},
3549 {8 * 1024, 1},
3550 {4 * 1024, 2},
3551 },
3552 .block_erase = spi_block_erase_d8,
3553 }, {
3554 .eraseblocks = { {4 * 1024 * 1024, 1} },
3555 .block_erase = spi_block_erase_c7,
3556 }
3557 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003558 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003559 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003560 .write = spi_chip_write_256,
3561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003562 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003563 },
3564
3565 {
3566 .vendor = "Eon",
3567 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003568 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003569 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003570 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003571 .total_size = 8192,
3572 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003573 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003574 .tested = TEST_UNTESTED,
3575 .probe = probe_spi_rdid,
3576 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003577 .block_erasers =
3578 {
3579 {
3580 .eraseblocks = {
3581 {4 * 1024, 2},
3582 {8 * 1024, 1},
3583 {16 * 1024, 1},
3584 {32 * 1024, 1},
3585 {64 * 1024, 127},
3586 },
3587 .block_erase = spi_block_erase_d8,
3588 }, {
3589 .eraseblocks = { {8 * 1024 * 1024, 1} },
3590 .block_erase = spi_block_erase_c7,
3591 }
3592 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003593 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003594 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003595 .write = spi_chip_write_256,
3596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003597 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003598 },
3599
3600 {
3601 .vendor = "Eon",
3602 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003603 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003604 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003605 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003606 .total_size = 8192,
3607 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003608 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003609 .tested = TEST_UNTESTED,
3610 .probe = probe_spi_rdid,
3611 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003612 .block_erasers =
3613 {
3614 {
3615 .eraseblocks = {
3616 {64 * 1024, 127},
3617 {32 * 1024, 1},
3618 {16 * 1024, 1},
3619 {8 * 1024, 1},
3620 {4 * 1024, 2},
3621 },
3622 .block_erase = spi_block_erase_d8,
3623 }, {
3624 .eraseblocks = { {8 * 1024 * 1024, 1} },
3625 .block_erase = spi_block_erase_c7,
3626 }
3627 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003628 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003629 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003630 .write = spi_chip_write_256,
3631 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003632 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003633 },
3634
3635 {
3636 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003637 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003638 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003639 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003640 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003641 .total_size = 64,
3642 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003643 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00003644 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003645 .probe = probe_spi_rdid,
3646 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003647 .block_erasers =
3648 {
3649 {
3650 .eraseblocks = { {4 * 1024, 16} },
3651 .block_erase = spi_block_erase_20,
3652 }, {
3653 .eraseblocks = { {32 * 1024, 2} },
3654 .block_erase = spi_block_erase_d8,
3655 }, {
3656 .eraseblocks = { {32 * 1024, 2} },
3657 .block_erase = spi_block_erase_52,
3658 }, {
3659 .eraseblocks = { {64 * 1024, 1} },
3660 .block_erase = spi_block_erase_60,
3661 }, {
3662 .eraseblocks = { {64 * 1024, 1} },
3663 .block_erase = spi_block_erase_c7,
3664 }
3665 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003666 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003667 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003668 .write = spi_chip_write_256,
3669 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003670 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003671 },
3672
3673 {
3674 .vendor = "Eon",
3675 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003676 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003677 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003678 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003679 .total_size = 128,
3680 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003681 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003682 .tested = TEST_UNTESTED,
3683 .probe = probe_spi_rdid,
3684 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003685 .block_erasers =
3686 {
3687 {
3688 .eraseblocks = { {4 * 1024, 32} },
3689 .block_erase = spi_block_erase_20,
3690 }, {
3691 .eraseblocks = { {32 * 1024, 4} },
3692 .block_erase = spi_block_erase_d8,
3693 }, {
3694 .eraseblocks = { {32 * 1024, 4} },
3695 .block_erase = spi_block_erase_52,
3696 }, {
3697 .eraseblocks = { {128 * 1024, 1} },
3698 .block_erase = spi_block_erase_60,
3699 }, {
3700 .eraseblocks = { {128 * 1024, 1} },
3701 .block_erase = spi_block_erase_c7,
3702 }
3703 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003705 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003706 .write = spi_chip_write_256,
3707 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003708 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003709 },
3710
3711 {
3712 .vendor = "Eon",
3713 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003714 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003715 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003716 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003717 .total_size = 256,
3718 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003719 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003720 .tested = TEST_UNTESTED,
3721 .probe = probe_spi_rdid,
3722 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003723 .block_erasers =
3724 {
3725 {
3726 .eraseblocks = { {4 * 1024, 64} },
3727 .block_erase = spi_block_erase_20,
3728 }, {
3729 .eraseblocks = { {64 * 1024, 4} },
3730 .block_erase = spi_block_erase_d8,
3731 }, {
3732 .eraseblocks = { {64 * 1024, 4} },
3733 .block_erase = spi_block_erase_52,
3734 }, {
3735 .eraseblocks = { {256 * 1024, 1} },
3736 .block_erase = spi_block_erase_60,
3737 }, {
3738 .eraseblocks = { {256 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003743 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003744 .write = spi_chip_write_256,
3745 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003746 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003747 },
3748
3749 {
3750 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003751 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003752 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003753 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003754 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003755 .total_size = 512,
3756 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003757 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003758 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003759 .probe = probe_spi_rdid,
3760 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003761 .block_erasers =
3762 {
3763 {
Sean Nelson54596372010-01-09 05:30:14 +00003764 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003765 .block_erase = spi_block_erase_20,
3766 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003767 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003768 .block_erase = spi_block_erase_d8,
3769 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003770 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003771 .block_erase = spi_block_erase_60,
3772 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003773 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003774 .block_erase = spi_block_erase_c7,
3775 },
3776 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003777 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003778 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003779 .write = spi_chip_write_256,
3780 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003781 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003782 },
3783
3784 {
3785 .vendor = "Eon",
3786 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003787 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003788 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003789 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003790 .total_size = 1024,
3791 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003792 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003793 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003794 .probe = probe_spi_rdid,
3795 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003796 .block_erasers =
3797 {
3798 {
3799 .eraseblocks = { {4 * 1024, 256} },
3800 .block_erase = spi_block_erase_20,
3801 }, {
3802 .eraseblocks = { {64 * 1024, 16} },
3803 .block_erase = spi_block_erase_d8,
3804 }, {
3805 .eraseblocks = { {1024 * 1024, 1} },
3806 .block_erase = spi_block_erase_60,
3807 }, {
3808 .eraseblocks = { {1024 * 1024, 1} },
3809 .block_erase = spi_block_erase_c7,
3810 }
3811 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003812 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003813 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003814 .write = spi_chip_write_256,
3815 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003816 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003817 },
3818
3819 {
3820 .vendor = "Eon",
3821 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003822 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003823 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003824 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003825 .total_size = 2048,
3826 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003827 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003828 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003829 .probe = probe_spi_rdid,
3830 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003831 .block_erasers =
3832 {
3833 {
3834 .eraseblocks = { {4 * 1024, 512} },
3835 .block_erase = spi_block_erase_20,
3836 }, {
3837 .eraseblocks = { {64 * 1024, 32} },
3838 .block_erase = spi_block_erase_d8,
3839 }, {
3840 .eraseblocks = { {2 * 1024 * 1024, 1} },
3841 .block_erase = spi_block_erase_60,
3842 }, {
3843 .eraseblocks = { {2 * 1024 * 1024, 1} },
3844 .block_erase = spi_block_erase_c7,
3845 }
3846 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003847 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003848 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003849 .write = spi_chip_write_256,
3850 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003851 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003852 },
3853
3854 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003855 .vendor = "Eon",
3856 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003857 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003858 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003859 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003860 .total_size = 4096,
3861 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003862 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .tested = TEST_UNTESTED,
3864 .probe = probe_spi_rdid,
3865 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003866 .block_erasers =
3867 {
3868 {
3869 .eraseblocks = { {4 * 1024, 1024} },
3870 .block_erase = spi_block_erase_20,
3871 }, {
3872 .eraseblocks = { {64 * 1024, 64} },
3873 .block_erase = spi_block_erase_d8,
3874 }, {
3875 .eraseblocks = { {4 * 1024 * 1024, 1} },
3876 .block_erase = spi_block_erase_60,
3877 }, {
3878 .eraseblocks = { {4 * 1024 * 1024, 1} },
3879 .block_erase = spi_block_erase_c7,
3880 }
3881 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003882 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003883 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003884 .write = spi_chip_write_256,
3885 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003886 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003887 },
3888
3889 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003890 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00003891 .name = "EN25F64",
3892 .bustype = BUS_SPI,
3893 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00003894 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003895 .total_size = 8192,
3896 .page_size = 256,
3897 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00003898 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00003899 .probe = probe_spi_rdid,
3900 .probe_timing = TIMING_ZERO,
3901 .block_erasers =
3902 {
3903 {
3904 .eraseblocks = { {4 * 1024, 2048} },
3905 .block_erase = spi_block_erase_20,
3906 }, {
3907 .eraseblocks = { {64 * 1024, 128} },
3908 .block_erase = spi_block_erase_d8,
3909 }, {
3910 .eraseblocks = { {8 * 1024 * 1024, 1} },
3911 .block_erase = spi_block_erase_60,
3912 }, {
3913 .eraseblocks = { {8 * 1024 * 1024, 1} },
3914 .block_erase = spi_block_erase_c7,
3915 }
3916 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003917 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00003918 .unlock = spi_disable_blockprotect,
3919 .write = spi_chip_write_256,
3920 .read = spi_chip_read,
3921 .voltage = {2700, 3600},
3922 },
3923
3924 {
3925 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003926 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003927 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003928 .manufacture_id = EON_ID_NOPREFIX,
3929 .model_id = EON_EN25Q40,
3930 .total_size = 512,
3931 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003932 /* OTP: 256B total; enter 0x3A */
3933 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003934 .tested = TEST_UNTESTED,
3935 .probe = probe_spi_rdid,
3936 .probe_timing = TIMING_ZERO,
3937 .block_erasers =
3938 {
3939 {
3940 .eraseblocks = { {4 * 1024, 128} },
3941 .block_erase = spi_block_erase_20,
3942 }, {
3943 .eraseblocks = { {64 * 1024, 8} },
3944 .block_erase = spi_block_erase_d8,
3945 }, {
3946 .eraseblocks = { {512 * 1024, 1} },
3947 .block_erase = spi_block_erase_60,
3948 }, {
3949 .eraseblocks = { {512 * 1024, 1} },
3950 .block_erase = spi_block_erase_c7,
3951 }
3952 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003953 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003954 .unlock = spi_disable_blockprotect,
3955 .write = spi_chip_write_256,
3956 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003957 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003958 },
3959
3960 {
3961 .vendor = "Eon",
3962 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003963 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003964 .manufacture_id = EON_ID_NOPREFIX,
3965 .model_id = EON_EN25Q80,
3966 .total_size = 1024,
3967 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003968 /* OTP: 256B total; enter 0x3A */
3969 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003970 .tested = TEST_UNTESTED,
3971 .probe = probe_spi_rdid,
3972 .probe_timing = TIMING_ZERO,
3973 .block_erasers =
3974 {
3975 {
3976 .eraseblocks = { {4 * 1024, 256} },
3977 .block_erase = spi_block_erase_20,
3978 }, {
3979 .eraseblocks = { {64 * 1024, 16} },
3980 .block_erase = spi_block_erase_d8,
3981 }, {
3982 .eraseblocks = { {1024 * 1024, 1} },
3983 .block_erase = spi_block_erase_60,
3984 }, {
3985 .eraseblocks = { {1024 * 1024, 1} },
3986 .block_erase = spi_block_erase_c7,
3987 }
3988 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003989 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00003990 .unlock = spi_disable_blockprotect,
3991 .write = spi_chip_write_256,
3992 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00003993 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003994 },
3995
3996 {
3997 /* Note: EN25D16 is an evil twin which shares the model ID
3998 but has different write protection capabilities */
3999 .vendor = "Eon",
4000 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004001 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004002 .manufacture_id = EON_ID_NOPREFIX,
4003 .model_id = EON_EN25Q16,
4004 .total_size = 2048,
4005 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004006 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004008 .tested = TEST_UNTESTED,
4009 .probe = probe_spi_rdid,
4010 .probe_timing = TIMING_ZERO,
4011 .block_erasers =
4012 {
4013 {
4014 .eraseblocks = { {4 * 1024, 512} },
4015 .block_erase = spi_block_erase_20,
4016 }, {
4017 .eraseblocks = { {64 * 1024, 32} },
4018 .block_erase = spi_block_erase_d8,
4019 }, {
4020 /* not supported by Q16 version */
4021 .eraseblocks = { {64 * 1024, 32} },
4022 .block_erase = spi_block_erase_52,
4023 }, {
4024 .eraseblocks = { {2 * 1024 * 1024, 1} },
4025 .block_erase = spi_block_erase_60,
4026 }, {
4027 .eraseblocks = { {2 * 1024 * 1024, 1} },
4028 .block_erase = spi_block_erase_c7,
4029 }
4030 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004031 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004032 .unlock = spi_disable_blockprotect,
4033 .write = spi_chip_write_256,
4034 .read = spi_chip_read,
4035 .voltage = {2700, 3600},
4036 },
4037
4038 {
4039 .vendor = "Eon",
4040 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004041 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004042 .manufacture_id = EON_ID_NOPREFIX,
4043 .model_id = EON_EN25Q32,
4044 .total_size = 4096,
4045 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004046 /* OTP: 512B total; enter 0x3A */
4047 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004048 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004049 .probe = probe_spi_rdid,
4050 .probe_timing = TIMING_ZERO,
4051 .block_erasers =
4052 {
4053 {
4054 .eraseblocks = { {4 * 1024, 1024} },
4055 .block_erase = spi_block_erase_20,
4056 }, {
4057 .eraseblocks = { {64 * 1024, 64} },
4058 .block_erase = spi_block_erase_d8,
4059 }, {
4060 .eraseblocks = { {4 * 1024 * 1024, 1} },
4061 .block_erase = spi_block_erase_60,
4062 }, {
4063 .eraseblocks = { {4 * 1024 * 1024, 1} },
4064 .block_erase = spi_block_erase_c7,
4065 }
4066 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004067 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004068 .unlock = spi_disable_blockprotect,
4069 .write = spi_chip_write_256,
4070 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004071 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004072 },
4073
4074 {
4075 .vendor = "Eon",
4076 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004077 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004078 .manufacture_id = EON_ID_NOPREFIX,
4079 .model_id = EON_EN25Q64,
4080 .total_size = 8192,
4081 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004082 /* OTP: 512B total; enter 0x3A */
4083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004084 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004085 .probe = probe_spi_rdid,
4086 .probe_timing = TIMING_ZERO,
4087 .block_erasers =
4088 {
4089 {
4090 .eraseblocks = { {4 * 1024, 2048} },
4091 .block_erase = spi_block_erase_20,
4092 }, {
4093 .eraseblocks = { {64 * 1024, 128} },
4094 .block_erase = spi_block_erase_d8,
4095 }, {
4096 .eraseblocks = { {8 * 1024 * 1024, 1} },
4097 .block_erase = spi_block_erase_60,
4098 }, {
4099 .eraseblocks = { {8 * 1024 * 1024, 1} },
4100 .block_erase = spi_block_erase_c7,
4101 }
4102 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004103 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004104 .unlock = spi_disable_blockprotect,
4105 .write = spi_chip_write_256,
4106 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004107 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004108 },
4109
4110 {
4111 .vendor = "Eon",
4112 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004113 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004114 .manufacture_id = EON_ID_NOPREFIX,
4115 .model_id = EON_EN25Q128,
4116 .total_size = 16384,
4117 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004118 /* OTP: 512B total; enter 0x3A */
4119 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004120 .tested = TEST_UNTESTED,
4121 .probe = probe_spi_rdid,
4122 .probe_timing = TIMING_ZERO,
4123 .block_erasers =
4124 {
4125 {
4126 .eraseblocks = { {4 * 1024, 4096} },
4127 .block_erase = spi_block_erase_20,
4128 }, {
4129 .eraseblocks = { {64 * 1024, 256} },
4130 .block_erase = spi_block_erase_d8,
4131 }, {
4132 .eraseblocks = { {16 * 1024 * 1024, 1} },
4133 .block_erase = spi_block_erase_60,
4134 }, {
4135 .eraseblocks = { {16 * 1024 * 1024, 1} },
4136 .block_erase = spi_block_erase_c7,
4137 }
4138 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004139 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004140 .unlock = spi_disable_blockprotect,
4141 .write = spi_chip_write_256,
4142 .read = spi_chip_read,
4143 },
4144
4145 {
4146 .vendor = "Eon",
4147 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004148 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004149 .manufacture_id = EON_ID_NOPREFIX,
4150 .model_id = EON_EN25QH16,
4151 .total_size = 2048,
4152 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004153 /* supports SFDP */
4154 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004155 /* QPI enable 0x38, disable 0xFF */
4156 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00004157 .tested = TEST_OK_PR,
David Hendricks6d715302011-07-24 22:21:57 +00004158 .probe = probe_spi_rdid,
4159 .probe_timing = TIMING_ZERO,
4160 .block_erasers =
4161 {
4162 {
4163 .eraseblocks = { {4 * 1024, 512} },
4164 .block_erase = spi_block_erase_20,
4165 }, {
4166 .eraseblocks = { {64 * 1024, 32} },
4167 .block_erase = spi_block_erase_d8,
4168 }, {
4169 .eraseblocks = { {1024 * 2048, 1} },
4170 .block_erase = spi_block_erase_60,
4171 }, {
4172 .eraseblocks = { {1024 * 2048, 1} },
4173 .block_erase = spi_block_erase_c7,
4174 }
4175 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004176 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4177 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004178 .write = spi_chip_write_256,
4179 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004180 .voltage = {2700, 3600},
4181 },
4182
4183 {
4184 .vendor = "Eon",
4185 .name = "EN25QH32",
4186 .bustype = BUS_SPI,
4187 .manufacture_id = EON_ID_NOPREFIX,
4188 .model_id = EON_EN25QH32,
4189 .total_size = 4096,
4190 .page_size = 256,
4191 /* supports SFDP */
4192 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004193 /* QPI enable 0x38, disable 0xFF */
4194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004195 .tested = TEST_UNTESTED,
4196 .probe = probe_spi_rdid,
4197 .probe_timing = TIMING_ZERO,
4198 .block_erasers =
4199 {
4200 {
4201 .eraseblocks = { {4 * 1024, 1024} },
4202 .block_erase = spi_block_erase_20,
4203 }, {
4204 .eraseblocks = { {64 * 1024, 64} },
4205 .block_erase = spi_block_erase_d8,
4206 }, {
4207 .eraseblocks = { {1024 * 4096, 1} },
4208 .block_erase = spi_block_erase_60,
4209 }, {
4210 .eraseblocks = { {1024 * 4096, 1} },
4211 .block_erase = spi_block_erase_c7,
4212 }
4213 },
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004214 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4215 .unlock = spi_disable_blockprotect_bp3_srwd,
4216 .write = spi_chip_write_256,
4217 .read = spi_chip_read,
4218 .voltage = {2700, 3600},
4219 },
4220
4221 {
4222 .vendor = "Eon",
4223 .name = "EN25QH64",
4224 .bustype = BUS_SPI,
4225 .manufacture_id = EON_ID_NOPREFIX,
4226 .model_id = EON_EN25QH64,
4227 .total_size = 8192,
4228 .page_size = 256,
4229 /* supports SFDP */
4230 /* OTP: 512B total; enter 0x3A */
4231 /* QPI enable 0x38, disable 0xFF */
4232 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4233 .tested = TEST_UNTESTED,
4234 .probe = probe_spi_rdid,
4235 .probe_timing = TIMING_ZERO,
4236 .block_erasers = {
4237 {
4238 .eraseblocks = { {4 * 1024, 2048} },
4239 .block_erase = spi_block_erase_20,
4240 }, {
4241 .eraseblocks = { {64 * 1024, 128} },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { { 8192 * 1024, 1} },
4245 .block_erase = spi_block_erase_60,
4246 }, {
4247 .eraseblocks = { { 8192 * 1024, 1} },
4248 .block_erase = spi_block_erase_c7,
4249 }
4250 },
4251 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4252 .unlock = spi_disable_blockprotect_bp3_srwd,
4253 .write = spi_chip_write_256,
4254 .read = spi_chip_read,
4255 .voltage = {2700, 3600},
4256 },
4257
4258 {
4259 .vendor = "Eon",
4260 .name = "EN25QH128",
4261 .bustype = BUS_SPI,
4262 .manufacture_id = EON_ID_NOPREFIX,
4263 .model_id = EON_EN25QH128,
4264 .total_size = 16384,
4265 .page_size = 256,
4266 /* supports SFDP */
4267 /* OTP: 512B total; enter 0x3A */
4268 /* QPI enable 0x38, disable 0xFF */
4269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4270 .tested = TEST_UNTESTED,
4271 .probe = probe_spi_rdid,
4272 .probe_timing = TIMING_ZERO,
4273 .block_erasers = {
4274 {
4275 .eraseblocks = { {4 * 1024, 4096} },
4276 .block_erase = spi_block_erase_20,
4277 }, {
4278 .eraseblocks = { {64 * 1024, 256} },
4279 .block_erase = spi_block_erase_d8,
4280 }, {
4281 .eraseblocks = { { 16384 * 1024, 1} },
4282 .block_erase = spi_block_erase_60,
4283 }, {
4284 .eraseblocks = { { 16384 * 1024, 1} },
4285 .block_erase = spi_block_erase_c7,
4286 }
4287 },
4288 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
4289 .unlock = spi_disable_blockprotect_bp3_srwd,
4290 .write = spi_chip_write_256,
4291 .read = spi_chip_read,
4292 .voltage = {2700, 3600},
4293 },
4294
4295 {
4296 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004297 .name = "EN25S10",
4298 .bustype = BUS_SPI,
4299 .manufacture_id = EON_ID_NOPREFIX,
4300 .model_id = EON_EN25S10,
4301 .total_size = 128,
4302 .page_size = 256,
4303 /* OTP: 256B total; enter 0x3A */
4304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4305 .tested = TEST_UNTESTED,
4306 .probe = probe_spi_rdid,
4307 .probe_timing = TIMING_ZERO,
4308 .block_erasers = {
4309 {
4310 .eraseblocks = { {4 * 1024, 32} },
4311 .block_erase = spi_block_erase_20,
4312 }, {
4313 .eraseblocks = { {32 * 1024, 4} },
4314 .block_erase = spi_block_erase_52,
4315 }, {
4316 .eraseblocks = { {128 * 1024, 1} },
4317 .block_erase = spi_block_erase_60,
4318 }, {
4319 .eraseblocks = { {128 * 1024, 1} },
4320 .block_erase = spi_block_erase_c7,
4321 }
4322 },
4323 .printlock = spi_prettyprint_status_register_default_bp2,
4324 .unlock = spi_disable_blockprotect,
4325 .write = spi_chip_write_256,
4326 .read = spi_chip_read,
4327 .voltage = {1650, 1950},
4328 },
4329
4330 {
4331 .vendor = "Eon",
4332 .name = "EN25S20",
4333 .bustype = BUS_SPI,
4334 .manufacture_id = EON_ID_NOPREFIX,
4335 .model_id = EON_EN25S20,
4336 .total_size = 256,
4337 .page_size = 256,
4338 /* OTP: 256B total; enter 0x3A */
4339 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4340 .tested = TEST_UNTESTED,
4341 .probe = probe_spi_rdid,
4342 .probe_timing = TIMING_ZERO,
4343 .block_erasers = {
4344 {
4345 .eraseblocks = { {4 * 1024, 64} },
4346 .block_erase = spi_block_erase_20,
4347 }, {
4348 .eraseblocks = { {64 * 1024, 4} },
4349 .block_erase = spi_block_erase_d8,
4350 }, {
4351 .eraseblocks = { {256 * 1024, 1} },
4352 .block_erase = spi_block_erase_60,
4353 }, {
4354 .eraseblocks = { {256 * 1024, 1} },
4355 .block_erase = spi_block_erase_c7,
4356 }
4357 },
4358 .printlock = spi_prettyprint_status_register_default_bp2,
4359 .unlock = spi_disable_blockprotect,
4360 .write = spi_chip_write_256,
4361 .read = spi_chip_read,
4362 .voltage = {1650, 1950},
4363 },
4364
4365 {
4366 .vendor = "Eon",
4367 .name = "EN25S40",
4368 .bustype = BUS_SPI,
4369 .manufacture_id = EON_ID_NOPREFIX,
4370 .model_id = EON_EN25S40,
4371 .total_size = 512,
4372 .page_size = 256,
4373 /* OTP: 256B total; enter 0x3A */
4374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4375 .tested = TEST_UNTESTED,
4376 .probe = probe_spi_rdid,
4377 .probe_timing = TIMING_ZERO,
4378 .block_erasers = {
4379 {
4380 .eraseblocks = { {4 * 1024, 128} },
4381 .block_erase = spi_block_erase_20,
4382 }, {
4383 .eraseblocks = { {64 * 1024, 8} },
4384 .block_erase = spi_block_erase_d8,
4385 }, {
4386 .eraseblocks = { {512 * 1024, 1} },
4387 .block_erase = spi_block_erase_60,
4388 }, {
4389 .eraseblocks = { {512 * 1024, 1} },
4390 .block_erase = spi_block_erase_c7,
4391 }
4392 },
4393 .printlock = spi_prettyprint_status_register_default_bp2,
4394 .unlock = spi_disable_blockprotect,
4395 .write = spi_chip_write_256,
4396 .read = spi_chip_read,
4397 .voltage = {1650, 1950},
4398 },
4399
4400 {
4401 .vendor = "Eon",
4402 .name = "EN25S80",
4403 .bustype = BUS_SPI,
4404 .manufacture_id = EON_ID_NOPREFIX,
4405 .model_id = EON_EN25S80,
4406 .total_size = 1024,
4407 .page_size = 256,
4408 /* OTP: 256B total; enter 0x3A */
4409 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4410 .tested = TEST_UNTESTED,
4411 .probe = probe_spi_rdid,
4412 .probe_timing = TIMING_ZERO,
4413 .block_erasers = {
4414 {
4415 .eraseblocks = { {4 * 1024, 256} },
4416 .block_erase = spi_block_erase_20,
4417 }, {
4418 .eraseblocks = { {64 * 1024, 16} },
4419 .block_erase = spi_block_erase_d8,
4420 }, {
4421 .eraseblocks = { {1024 * 1024, 1} },
4422 .block_erase = spi_block_erase_60,
4423 }, {
4424 .eraseblocks = { {1024 * 1024, 1} },
4425 .block_erase = spi_block_erase_c7,
4426 }
4427 },
4428 .printlock = spi_prettyprint_status_register_default_bp2,
4429 .unlock = spi_disable_blockprotect,
4430 .write = spi_chip_write_256,
4431 .read = spi_chip_read,
4432 .voltage = {1650, 1950},
4433 },
4434
4435 {
4436 .vendor = "Eon",
4437 .name = "EN25S16",
4438 .bustype = BUS_SPI,
4439 .manufacture_id = EON_ID_NOPREFIX,
4440 .model_id = EON_EN25S16,
4441 .total_size = 2048,
4442 .page_size = 256,
4443 /* OTP: 512B total; enter 0x3A */
4444 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4445 .tested = TEST_UNTESTED,
4446 .probe = probe_spi_rdid,
4447 .probe_timing = TIMING_ZERO,
4448 .block_erasers = {
4449 {
4450 .eraseblocks = { {4 * 1024, 512} },
4451 .block_erase = spi_block_erase_20,
4452 }, {
4453 .eraseblocks = { {64 * 1024, 32} },
4454 .block_erase = spi_block_erase_52,
4455 }, {
4456 .eraseblocks = { {32 * 1024, 64} },
4457 .block_erase = spi_block_erase_d8,
4458 }, {
4459 .eraseblocks = { {2048 * 1024, 1} },
4460 .block_erase = spi_block_erase_60,
4461 }, {
4462 .eraseblocks = { {2048 * 1024, 1} },
4463 .block_erase = spi_block_erase_c7,
4464 }
4465 },
4466 .printlock = spi_prettyprint_status_register_en25s_wp,
4467 .unlock = spi_disable_blockprotect_bp3_srwd,
4468 .write = spi_chip_write_256,
4469 .read = spi_chip_read,
4470 .voltage = {1650, 1950},
4471 },
4472
4473 {
4474 .vendor = "Eon",
4475 .name = "EN25S32",
4476 .bustype = BUS_SPI,
4477 .manufacture_id = EON_ID_NOPREFIX,
4478 .model_id = EON_EN25S32,
4479 .total_size = 4096,
4480 .page_size = 256,
4481 /* OTP: 512B total; enter 0x3A */
4482 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4483 .tested = TEST_UNTESTED,
4484 .probe = probe_spi_rdid,
4485 .probe_timing = TIMING_ZERO,
4486 .block_erasers = {
4487 {
4488 .eraseblocks = { {4 * 1024, 1024} },
4489 .block_erase = spi_block_erase_20,
4490 }, {
4491 .eraseblocks = { {32 * 1024, 128} },
4492 .block_erase = spi_block_erase_52,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 64} },
4495 .block_erase = spi_block_erase_d8,
4496 }, {
4497 .eraseblocks = { {4096 * 1024, 1} },
4498 .block_erase = spi_block_erase_60,
4499 }, {
4500 .eraseblocks = { {4096 * 1024, 1} },
4501 .block_erase = spi_block_erase_c7,
4502 }
4503 },
4504 .printlock = spi_prettyprint_status_register_en25s_wp,
4505 .unlock = spi_disable_blockprotect_bp3_srwd,
4506 .write = spi_chip_write_256,
4507 .read = spi_chip_read,
4508 .voltage = {1650, 1950},
4509 },
4510
4511 {
4512 .vendor = "Eon",
4513 .name = "EN25S64",
4514 .bustype = BUS_SPI,
4515 .manufacture_id = EON_ID_NOPREFIX,
4516 .model_id = EON_EN25S64,
4517 .total_size = 8192,
4518 .page_size = 256,
4519 /* OTP: 512B total; enter 0x3A */
4520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4521 .tested = TEST_UNTESTED,
4522 .probe = probe_spi_rdid,
4523 .probe_timing = TIMING_ZERO,
4524 .block_erasers = {
4525 {
4526 .eraseblocks = { {4 * 1024, 2048} },
4527 .block_erase = spi_block_erase_20,
4528 }, {
4529 .eraseblocks = { {64 * 1024, 128} },
4530 .block_erase = spi_block_erase_d8,
4531 }, {
4532 .eraseblocks = { {8192 * 1024, 1} },
4533 .block_erase = spi_block_erase_60,
4534 }, {
4535 .eraseblocks = { {8192 * 1024, 1} },
4536 .block_erase = spi_block_erase_c7,
4537 }
4538 },
4539 .printlock = spi_prettyprint_status_register_en25s_wp,
4540 .unlock = spi_disable_blockprotect_bp3_srwd,
4541 .write = spi_chip_write_256,
4542 .read = spi_chip_read,
4543 .voltage = {1650, 1950},
4544 },
4545
4546 {
4547 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00004548 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004549 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00004550 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004551 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00004552 .total_size = 128,
4553 .page_size = 128,
4554 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004555 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00004556 .probe = probe_jedec,
4557 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4558 .block_erasers =
4559 {
4560 {
4561 .eraseblocks = { {16 * 1024, 8} },
4562 .block_erase = erase_sector_jedec,
4563 },
4564 {
4565 .eraseblocks = { {128 * 1024, 1} },
4566 .block_erase = erase_chip_block_jedec,
4567 },
4568 },
4569 .write = write_jedec_1,
4570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004571 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00004572 },
4573
4574 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004575 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004576 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004577 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004578 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004579 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004580 .total_size = 256,
4581 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004582 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004583 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004584 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004585 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004586 .block_erasers =
4587 {
4588 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004589 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004590 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004591 {8 * 1024, 2},
4592 {32 * 1024, 1},
4593 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004594 },
4595 .block_erase = erase_sector_jedec,
4596 }, {
4597 .eraseblocks = { {256 * 1024, 1} },
4598 .block_erase = erase_chip_block_jedec,
4599 },
4600 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004601 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004603 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004604 },
4605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004606 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00004607 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004608 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004609 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004610 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004611 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004612 .total_size = 256,
4613 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00004614 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004615 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004616 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004617 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004618 .block_erasers =
4619 {
4620 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004621 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004622 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00004623 {32 * 1024, 1},
4624 {8 * 1024, 2},
4625 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00004626 },
4627 .block_erase = erase_sector_jedec,
4628 }, {
4629 .eraseblocks = { {256 * 1024, 1} },
4630 .block_erase = erase_chip_block_jedec,
4631 },
4632 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004633 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004635 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004636 },
4637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004638 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00004639 .vendor = "Eon",
4640 .name = "EN29LV640B",
4641 .bustype = BUS_PARALLEL,
4642 .manufacture_id = EON_ID,
4643 .model_id = EON_EN29LV640B,
4644 .total_size = 8192,
4645 .page_size = 8192,
4646 .feature_bits = 0,
4647 .tested = TEST_OK_PREW,
4648 .probe = probe_en29lv640b,
4649 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4650 .block_erasers =
4651 {
4652 {
4653 .eraseblocks = {
4654 {8 * 1024, 8},
4655 {64 * 1024, 127},
4656 },
4657 .block_erase = block_erase_en29lv640b,
4658 }, {
4659 .eraseblocks = { {8 * 1024 * 1024, 1} },
4660 .block_erase = block_erase_chip_en29lv640b,
4661 },
4662 },
4663 .write = write_en29lv640b,
4664 .read = read_memmapped,
4665 .voltage = {2700, 3600},
4666 },
4667
4668 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004669 .vendor = "Fujitsu",
4670 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004671 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004672 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004673 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004674 .total_size = 512,
4675 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004676 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004677 .tested = TEST_UNTESTED,
4678 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004679 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004680 .block_erasers =
4681 {
4682 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004683 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004684 {16 * 1024, 1},
4685 {8 * 1024, 2},
4686 {32 * 1024, 1},
4687 {64 * 1024, 7},
4688 },
Sean Nelson35727f72010-01-28 23:55:12 +00004689 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004690 }, {
4691 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004692 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004693 },
4694 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004695 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004697 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004698 },
4699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004700 {
4701 .vendor = "Fujitsu",
4702 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004703 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004704 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004705 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004706 .total_size = 512,
4707 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004708 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004709 .tested = TEST_UNTESTED,
4710 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004712 .block_erasers =
4713 {
4714 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004715 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004716 {64 * 1024, 7},
4717 {32 * 1024, 1},
4718 {8 * 1024, 2},
4719 {16 * 1024, 1},
4720 },
Sean Nelson35727f72010-01-28 23:55:12 +00004721 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004722 }, {
4723 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004724 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004725 },
4726 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004727 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004728 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004729 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004730 },
4731
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004732 {
Sean Nelson35727f72010-01-28 23:55:12 +00004733 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004734 .vendor = "Fujitsu",
4735 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004736 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004737 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004738 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004739 .total_size = 512,
4740 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004741 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004742 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004743 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004744 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004745 .block_erasers =
4746 {
4747 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004748 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004749 {16 * 1024, 1},
4750 {8 * 1024, 2},
4751 {32 * 1024, 1},
4752 {64 * 1024, 7},
4753 },
4754 .block_erase = block_erase_m29f400bt,
4755 }, {
4756 .eraseblocks = { {512 * 1024, 1} },
4757 .block_erase = block_erase_chip_m29f400bt,
4758 },
4759 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00004760 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004761 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004762 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004763 },
4764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004765 {
4766 .vendor = "Fujitsu",
4767 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004768 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004769 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004770 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004771 .total_size = 512,
4772 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004773 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004774 .tested = TEST_UNTESTED,
4775 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00004776 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00004777 .block_erasers =
4778 {
4779 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00004780 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00004781 {64 * 1024, 7},
4782 {32 * 1024, 1},
4783 {8 * 1024, 2},
4784 {16 * 1024, 1},
4785 },
4786 .block_erase = block_erase_m29f400bt,
4787 }, {
4788 .eraseblocks = { {512 * 1024, 1} },
4789 .block_erase = block_erase_chip_m29f400bt,
4790 },
4791 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00004792 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004793 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004794 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00004795 },
4796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004797 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00004798 .vendor = "Fujitsu",
4799 .name = "MBM29LV160BE",
4800 .bustype = BUS_PARALLEL,
4801 .manufacture_id = FUJITSU_ID,
4802 .model_id = FUJITSU_MBM29LV160BE,
4803 .total_size = 2 * 1024,
4804 .page_size = 0,
4805 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4806 .tested = TEST_UNTESTED,
4807 .probe = probe_m29f400bt,
4808 .probe_timing = TIMING_IGNORED,
4809 .block_erasers =
4810 {
4811 {
4812 .eraseblocks = {
4813 {16 * 1024, 1},
4814 {8 * 1024, 2},
4815 {32 * 1024, 1},
4816 {64 * 1024, 31},
4817 },
4818 .block_erase = block_erase_m29f400bt,
4819 }, {
4820 .eraseblocks = { {2048 * 1024, 1} },
4821 .block_erase = block_erase_chip_m29f400bt,
4822 },
4823 },
4824 .write = write_m29f400bt, /* Supports a fast mode too */
4825 .read = read_memmapped,
4826 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4827 },
4828
4829 {
4830 .vendor = "Fujitsu",
4831 .name = "MBM29LV160TE",
4832 .bustype = BUS_PARALLEL,
4833 .manufacture_id = FUJITSU_ID,
4834 .model_id = FUJITSU_MBM29LV160TE,
4835 .total_size = 2 * 1024,
4836 .page_size = 0,
4837 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
4838 .tested = TEST_UNTESTED,
4839 .probe = probe_m29f400bt,
4840 .probe_timing = TIMING_IGNORED,
4841 .block_erasers =
4842 {
4843 {
4844 .eraseblocks = {
4845 {64 * 1024, 31},
4846 {32 * 1024, 1},
4847 {8 * 1024, 2},
4848 {16 * 1024, 1},
4849 },
4850 .block_erase = block_erase_m29f400bt,
4851 }, {
4852 .eraseblocks = { {2048 * 1024, 1} },
4853 .block_erase = block_erase_chip_m29f400bt,
4854 },
4855 },
4856 .write = write_m29f400bt, /* Supports a fast mode too */
4857 .read = read_memmapped,
4858 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
4859 },
4860
4861 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004862 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00004863 .name = "GD25LQ32",
4864 .bustype = BUS_SPI,
4865 .manufacture_id = GIGADEVICE_ID,
4866 .model_id = GIGADEVICE_GD25LQ32,
4867 .total_size = 4096,
4868 .page_size = 256,
4869 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
4870 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4871 .tested = TEST_OK_PREW,
4872 .probe = probe_spi_rdid,
4873 .probe_timing = TIMING_ZERO,
4874 .block_erasers =
4875 {
4876 {
4877 .eraseblocks = { {4 * 1024, 1024} },
4878 .block_erase = spi_block_erase_20,
4879 }, {
4880 .eraseblocks = { {32 * 1024, 128} },
4881 .block_erase = spi_block_erase_52,
4882 }, {
4883 .eraseblocks = { {64 * 1024, 64} },
4884 .block_erase = spi_block_erase_d8,
4885 }, {
4886 .eraseblocks = { {4 * 1024 * 1024, 1} },
4887 .block_erase = spi_block_erase_60,
4888 }, {
4889 .eraseblocks = { {4 * 1024 * 1024, 1} },
4890 .block_erase = spi_block_erase_c7,
4891 }
4892 },
4893 .printlock = spi_prettyprint_status_register_default_bp4,
4894 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4895 .write = spi_chip_write_256,
4896 .read = spi_chip_read,
4897 .voltage = {1700, 1950},
4898 },
4899
4900 {
4901 .vendor = "GigaDevice",
4902 .name = "GD25Q512",
4903 .bustype = BUS_SPI,
4904 .manufacture_id = GIGADEVICE_ID,
4905 .model_id = GIGADEVICE_GD25Q512,
4906 .total_size = 64,
4907 .page_size = 256,
4908 .feature_bits = FEATURE_WRSR_WREN,
4909 .tested = TEST_UNTESTED,
4910 .probe = probe_spi_rdid,
4911 .probe_timing = TIMING_ZERO,
4912 .block_erasers = {
4913 {
4914 .eraseblocks = { {4 * 1024, 16} },
4915 .block_erase = spi_block_erase_20,
4916 }, {
4917 .eraseblocks = { {32 * 1024, 2} },
4918 .block_erase = spi_block_erase_52,
4919 }, {
4920 .eraseblocks = { {64 * 1024, 1} },
4921 .block_erase = spi_block_erase_60,
4922 }, {
4923 .eraseblocks = { {64 * 1024, 1} },
4924 .block_erase = spi_block_erase_c7,
4925 }
4926 },
4927 .printlock = spi_prettyprint_status_register_default_bp4,
4928 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4929 .write = spi_chip_write_256,
4930 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4931 .voltage = {2700, 3600},
4932 },
4933
4934 {
4935 .vendor = "GigaDevice",
4936 .name = "GD25Q10",
4937 .bustype = BUS_SPI,
4938 .manufacture_id = GIGADEVICE_ID,
4939 .model_id = GIGADEVICE_GD25Q10,
4940 .total_size = 128,
4941 .page_size = 256,
4942 .feature_bits = FEATURE_WRSR_WREN,
4943 .tested = TEST_UNTESTED,
4944 .probe = probe_spi_rdid,
4945 .probe_timing = TIMING_ZERO,
4946 .block_erasers = {
4947 {
4948 .eraseblocks = { {4 * 1024, 32} },
4949 .block_erase = spi_block_erase_20,
4950 }, {
4951 .eraseblocks = { {32 * 1024, 4} },
4952 .block_erase = spi_block_erase_52,
4953 }, {
4954 .eraseblocks = { {64 * 1024, 2} },
4955 .block_erase = spi_block_erase_d8,
4956 }, {
4957 .eraseblocks = { {128 * 1024, 1} },
4958 .block_erase = spi_block_erase_60,
4959 }, {
4960 .eraseblocks = { {128 * 1024, 1} },
4961 .block_erase = spi_block_erase_c7,
4962 }
4963 },
4964 .printlock = spi_prettyprint_status_register_default_bp4,
4965 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
4966 .write = spi_chip_write_256,
4967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
4968 .voltage = {2700, 3600},
4969 },
4970
4971 {
4972 .vendor = "GigaDevice",
4973 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00004974 .bustype = BUS_SPI,
4975 .manufacture_id = GIGADEVICE_ID,
4976 .model_id = GIGADEVICE_GD25Q20,
4977 .total_size = 256,
4978 .page_size = 256,
4979 .feature_bits = FEATURE_WRSR_WREN,
4980 .tested = TEST_UNTESTED,
4981 .probe = probe_spi_rdid,
4982 .probe_timing = TIMING_ZERO,
4983 .block_erasers =
4984 {
4985 {
4986 .eraseblocks = { {4 * 1024, 64} },
4987 .block_erase = spi_block_erase_20,
4988 }, {
4989 .eraseblocks = { {32 * 1024, 8} },
4990 .block_erase = spi_block_erase_52,
4991 }, {
4992 .eraseblocks = { {64 * 1024, 4} },
4993 .block_erase = spi_block_erase_d8,
4994 }, {
4995 .eraseblocks = { {256 * 1024, 1} },
4996 .block_erase = spi_block_erase_60,
4997 }, {
4998 .eraseblocks = { {256 * 1024, 1} },
4999 .block_erase = spi_block_erase_c7,
5000 }
5001 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005002 .printlock = spi_prettyprint_status_register_default_bp4,
5003 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005004 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005005 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005006 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005007 },
5008
5009 {
5010 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005011 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005012 .bustype = BUS_SPI,
5013 .manufacture_id = GIGADEVICE_ID,
5014 .model_id = GIGADEVICE_GD25Q40,
5015 .total_size = 512,
5016 .page_size = 256,
5017 .feature_bits = FEATURE_WRSR_WREN,
5018 .tested = TEST_UNTESTED,
5019 .probe = probe_spi_rdid,
5020 .probe_timing = TIMING_ZERO,
5021 .block_erasers =
5022 {
5023 {
5024 .eraseblocks = { {4 * 1024, 128} },
5025 .block_erase = spi_block_erase_20,
5026 }, {
5027 .eraseblocks = { {32 * 1024, 16} },
5028 .block_erase = spi_block_erase_52,
5029 }, {
5030 .eraseblocks = { {64 * 1024, 8} },
5031 .block_erase = spi_block_erase_d8,
5032 }, {
5033 .eraseblocks = { {512 * 1024, 1} },
5034 .block_erase = spi_block_erase_60,
5035 }, {
5036 .eraseblocks = { {512 * 1024, 1} },
5037 .block_erase = spi_block_erase_c7,
5038 }
5039 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005040 .printlock = spi_prettyprint_status_register_default_bp4,
5041 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005042 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005043 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005044 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005045 },
5046
5047 {
5048 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005049 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005050 .bustype = BUS_SPI,
5051 .manufacture_id = GIGADEVICE_ID,
5052 .model_id = GIGADEVICE_GD25Q80,
5053 .total_size = 1024,
5054 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005055 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5057 .tested = TEST_OK_PREW,
5058 .probe = probe_spi_rdid,
5059 .probe_timing = TIMING_ZERO,
5060 .block_erasers =
5061 {
5062 {
5063 .eraseblocks = { {4 * 1024, 256} },
5064 .block_erase = spi_block_erase_20,
5065 }, {
5066 .eraseblocks = { {32 * 1024, 32} },
5067 .block_erase = spi_block_erase_52,
5068 }, {
5069 .eraseblocks = { {64 * 1024, 16} },
5070 .block_erase = spi_block_erase_d8,
5071 }, {
5072 .eraseblocks = { {1024 * 1024, 1} },
5073 .block_erase = spi_block_erase_60,
5074 }, {
5075 .eraseblocks = { {1024 * 1024, 1} },
5076 .block_erase = spi_block_erase_c7,
5077 }
5078 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005079 .printlock = spi_prettyprint_status_register_default_bp4,
5080 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005081 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005082 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005083 .voltage = {2700, 3600},
5084 },
5085
5086 {
5087 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005088 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005089 .bustype = BUS_SPI,
5090 .manufacture_id = GIGADEVICE_ID,
5091 .model_id = GIGADEVICE_GD25Q16,
5092 .total_size = 2048,
5093 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005094 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005095 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5096 .tested = TEST_UNTESTED,
5097 .probe = probe_spi_rdid,
5098 .probe_timing = TIMING_ZERO,
5099 .block_erasers =
5100 {
5101 {
5102 .eraseblocks = { {4 * 1024, 512} },
5103 .block_erase = spi_block_erase_20,
5104 }, {
5105 .eraseblocks = { {32 * 1024, 64} },
5106 .block_erase = spi_block_erase_52,
5107 }, {
5108 .eraseblocks = { {64 * 1024, 32} },
5109 .block_erase = spi_block_erase_d8,
5110 }, {
5111 .eraseblocks = { {2 * 1024 * 1024, 1} },
5112 .block_erase = spi_block_erase_60,
5113 }, {
5114 .eraseblocks = { {2 * 1024 * 1024, 1} },
5115 .block_erase = spi_block_erase_c7,
5116 }
5117 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005118 .printlock = spi_prettyprint_status_register_default_bp4,
5119 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005120 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005121 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005122 .voltage = {2700, 3600},
5123 },
5124
5125 {
5126 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005127 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005128 .bustype = BUS_SPI,
5129 .manufacture_id = GIGADEVICE_ID,
5130 .model_id = GIGADEVICE_GD25Q32,
5131 .total_size = 4096,
5132 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005133 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005134 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5135 .tested = TEST_UNTESTED,
5136 .probe = probe_spi_rdid,
5137 .probe_timing = TIMING_ZERO,
5138 .block_erasers =
5139 {
5140 {
5141 .eraseblocks = { {4 * 1024, 1024} },
5142 .block_erase = spi_block_erase_20,
5143 }, {
5144 .eraseblocks = { {32 * 1024, 128} },
5145 .block_erase = spi_block_erase_52,
5146 }, {
5147 .eraseblocks = { {64 * 1024, 64} },
5148 .block_erase = spi_block_erase_d8,
5149 }, {
5150 .eraseblocks = { {4 * 1024 * 1024, 1} },
5151 .block_erase = spi_block_erase_60,
5152 }, {
5153 .eraseblocks = { {4 * 1024 * 1024, 1} },
5154 .block_erase = spi_block_erase_c7,
5155 }
5156 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005157 .printlock = spi_prettyprint_status_register_default_bp4,
5158 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005159 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005160 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005161 .voltage = {2700, 3600},
5162 },
5163
5164 {
5165 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005166 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005167 .bustype = BUS_SPI,
5168 .manufacture_id = GIGADEVICE_ID,
5169 .model_id = GIGADEVICE_GD25Q64,
5170 .total_size = 8192,
5171 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005172 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005173 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00005174 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005175 .probe = probe_spi_rdid,
5176 .probe_timing = TIMING_ZERO,
5177 .block_erasers =
5178 {
5179 {
5180 .eraseblocks = { {4 * 1024, 2048} },
5181 .block_erase = spi_block_erase_20,
5182 }, {
5183 .eraseblocks = { {32 * 1024, 256} },
5184 .block_erase = spi_block_erase_52,
5185 }, {
5186 .eraseblocks = { {64 * 1024, 128} },
5187 .block_erase = spi_block_erase_d8,
5188 }, {
5189 .eraseblocks = { {8 * 1024 * 1024, 1} },
5190 .block_erase = spi_block_erase_60,
5191 }, {
5192 .eraseblocks = { {8 * 1024 * 1024, 1} },
5193 .block_erase = spi_block_erase_c7,
5194 }
5195 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005196 .printlock = spi_prettyprint_status_register_default_bp4,
5197 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005198 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005199 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00005200 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005201 },
5202
5203 {
5204 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00005205 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005206 .bustype = BUS_SPI,
5207 .manufacture_id = GIGADEVICE_ID,
5208 .model_id = GIGADEVICE_GD25Q128,
5209 .total_size = 16384,
5210 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005211 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5213 .tested = TEST_UNTESTED,
5214 .probe = probe_spi_rdid,
5215 .probe_timing = TIMING_ZERO,
5216 .block_erasers =
5217 {
5218 {
5219 .eraseblocks = { {4 * 1024, 4096} },
5220 .block_erase = spi_block_erase_20,
5221 }, {
5222 .eraseblocks = { {32 * 1024, 512} },
5223 .block_erase = spi_block_erase_52,
5224 }, {
5225 .eraseblocks = { {64 * 1024, 256} },
5226 .block_erase = spi_block_erase_d8,
5227 }, {
5228 .eraseblocks = { {16 * 1024 * 1024, 1} },
5229 .block_erase = spi_block_erase_60,
5230 }, {
5231 .eraseblocks = { {16 * 1024 * 1024, 1} },
5232 .block_erase = spi_block_erase_c7,
5233 }
5234 },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005235 .printlock = spi_prettyprint_status_register_default_bp4,
5236 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5237 .write = spi_chip_write_256,
5238 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5239 .voltage = {2700, 3600},
5240 },
5241
5242 {
5243 .vendor = "GigaDevice",
5244 .name = "GD25T80",
5245 .bustype = BUS_SPI,
5246 .manufacture_id = GIGADEVICE_ID,
5247 .model_id = GIGADEVICE_GD25T80,
5248 .total_size = 1024,
5249 .page_size = 256,
5250 /* OTP: 256B total; enter 0x3A */
5251 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5252 .tested = TEST_UNTESTED,
5253 .probe = probe_spi_rdid,
5254 .probe_timing = TIMING_ZERO,
5255 .block_erasers = {
5256 {
5257 .eraseblocks = { {4 * 1024, 256} },
5258 .block_erase = spi_block_erase_20,
5259 }, {
5260 .eraseblocks = { {64 * 1024, 16} },
5261 .block_erase = spi_block_erase_52,
5262 }, {
5263 .eraseblocks = { {64 * 1024, 16} },
5264 .block_erase = spi_block_erase_d8,
5265 }, {
5266 .eraseblocks = { {1024 * 1024, 1} },
5267 .block_erase = spi_block_erase_60,
5268 }, {
5269 .eraseblocks = { {1024 * 1024, 1} },
5270 .block_erase = spi_block_erase_c7,
5271 }
5272 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005273 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005274 .unlock = spi_disable_blockprotect,
5275 .write = spi_chip_write_256,
5276 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005277 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005278 },
5279
5280 {
David Borgc96a8bd2010-06-21 16:12:22 +00005281 .vendor = "Hyundai",
5282 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005283 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005284 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005285 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00005286 .total_size = 256,
5287 .page_size = 256 * 1024,
5288 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005289 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00005290 .probe = probe_jedec,
5291 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5292 .block_erasers =
5293 {
5294 {
5295 .eraseblocks = {
5296 {64 * 1024, 3},
5297 {32 * 1024, 1},
5298 {8 * 1024, 2},
5299 {16 * 1024, 1},
5300 },
5301 .block_erase = erase_sector_jedec,
5302 }, {
5303 .eraseblocks = { {256 * 1024, 1} },
5304 .block_erase = erase_chip_block_jedec,
5305 },
5306 },
5307 .write = write_jedec_1,
5308 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005309 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005310 },
5311
5312 {
5313 .vendor = "Hyundai",
5314 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005315 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00005316 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005317 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00005318 .total_size = 256,
5319 .page_size = 256 * 1024,
5320 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
5321 .tested = TEST_UNTESTED,
5322 .probe = probe_jedec,
5323 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5324 .block_erasers =
5325 {
5326 {
5327 .eraseblocks = {
5328 {16 * 1024, 1},
5329 {8 * 1024, 2},
5330 {32 * 1024, 1},
5331 {64 * 1024, 3},
5332 },
5333 .block_erase = erase_sector_jedec,
5334 }, {
5335 .eraseblocks = { {256 * 1024, 1} },
5336 .block_erase = erase_chip_block_jedec,
5337 },
5338 },
5339 .write = write_jedec_1,
5340 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005341 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00005342 },
5343
5344 {
Joshua Roysf1324e02010-09-16 00:51:51 +00005345 .vendor = "Hyundai",
5346 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005347 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005348 .manufacture_id = HYUNDAI_ID,
5349 .model_id = HYUNDAI_HY29F040A,
5350 .total_size = 512,
5351 .page_size = 64 * 1024,
5352 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5353 .tested = TEST_UNTESTED,
5354 .probe = probe_jedec,
5355 .probe_timing = TIMING_ZERO,
5356 .block_erasers =
5357 {
5358 {
5359 .eraseblocks = { {64 * 1024, 8} },
5360 .block_erase = erase_sector_jedec,
5361 }, {
5362 .eraseblocks = { {512 * 1024, 1} },
5363 .block_erase = erase_chip_block_jedec,
5364 },
5365 },
5366 .write = write_jedec_1,
5367 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005368 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005369 },
5370
5371 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005372 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005373 .name = "25F160S33B8",
5374 .bustype = BUS_SPI,
5375 .manufacture_id = INTEL_ID,
5376 .model_id = INTEL_25F160S33B8,
5377 .total_size = 2048,
5378 .page_size = 256,
5379 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5381 .tested = TEST_UNTESTED,
5382 .probe = probe_spi_rdid,
5383 .probe_timing = TIMING_ZERO,
5384 .block_erasers =
5385 {
5386 {
5387 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5388 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5389 * have no effect on the memory contents, but sets a flag in the SR.
5390 .eraseblocks = {
5391 {8 * 1024, 8},
5392 {64 * 1024, 31} // inaccessible
5393 },
5394 .block_erase = spi_block_erase_40,
5395 }, { */
5396 .eraseblocks = { {64 * 1024, 32} },
5397 .block_erase = spi_block_erase_d8,
5398 }, {
5399 .eraseblocks = { {2 * 1024 * 1024, 1} },
5400 .block_erase = spi_block_erase_c7,
5401 }
5402 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005403 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5404 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005405 .write = spi_chip_write_256,
5406 .read = spi_chip_read, /* also fast read 0x0B */
5407 .voltage = {2700, 3600},
5408 },
5409
5410 {
5411 .vendor = "Intel",
5412 .name = "25F160S33T8",
5413 .bustype = BUS_SPI,
5414 .manufacture_id = INTEL_ID,
5415 .model_id = INTEL_25F160S33T8,
5416 .total_size = 2048,
5417 .page_size = 256,
5418 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5420 .tested = TEST_UNTESTED,
5421 .probe = probe_spi_rdid,
5422 .probe_timing = TIMING_ZERO,
5423 .block_erasers =
5424 {
5425 {
5426 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5427 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5428 * have no effect on the memory contents, but sets a flag in the SR.
5429 .eraseblocks = {
5430 {64 * 1024, 31}, // inaccessible
5431 {8 * 1024, 8}
5432 },
5433 .block_erase = spi_block_erase_40,
5434 }, { */
5435 .eraseblocks = { {64 * 1024, 32} },
5436 .block_erase = spi_block_erase_d8,
5437 }, {
5438 .eraseblocks = { {2 * 1024 * 1024, 1} },
5439 .block_erase = spi_block_erase_c7,
5440 }
5441 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005442 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5443 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005444 .write = spi_chip_write_256,
5445 .read = spi_chip_read, /* also fast read 0x0B */
5446 .voltage = {2700, 3600},
5447 },
5448
5449 {
5450 .vendor = "Intel",
5451 .name = "25F320S33B8",
5452 .bustype = BUS_SPI,
5453 .manufacture_id = INTEL_ID,
5454 .model_id = INTEL_25F320S33B8,
5455 .total_size = 4096,
5456 .page_size = 256,
5457 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5459 .tested = TEST_UNTESTED,
5460 .probe = probe_spi_rdid,
5461 .probe_timing = TIMING_ZERO,
5462 .block_erasers =
5463 {
5464 {
5465 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5466 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5467 * have no effect on the memory contents, but sets a flag in the SR.
5468 .eraseblocks = {
5469 {8 * 1024, 8},
5470 {64 * 1024, 63} // inaccessible
5471 },
5472 .block_erase = spi_block_erase_40,
5473 }, { */
5474 .eraseblocks = { {64 * 1024, 64} },
5475 .block_erase = spi_block_erase_d8,
5476 }, {
5477 .eraseblocks = { {4 * 1024 * 1024, 1} },
5478 .block_erase = spi_block_erase_c7,
5479 }
5480 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005481 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5482 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005483 .write = spi_chip_write_256,
5484 .read = spi_chip_read, /* also fast read 0x0B */
5485 .voltage = {2700, 3600},
5486 },
5487
5488 {
5489 .vendor = "Intel",
5490 .name = "25F320S33T8",
5491 .bustype = BUS_SPI,
5492 .manufacture_id = INTEL_ID,
5493 .model_id = INTEL_25F320S33T8,
5494 .total_size = 4096,
5495 .page_size = 256,
5496 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5498 .tested = TEST_UNTESTED,
5499 .probe = probe_spi_rdid,
5500 .probe_timing = TIMING_ZERO,
5501 .block_erasers =
5502 {
5503 {
5504 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5505 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5506 * have no effect on the memory contents, but sets a flag in the SR.
5507 .eraseblocks = {
5508 {64 * 1024, 63}, // inaccessible
5509 {8 * 1024, 8}
5510 },
5511 .block_erase = spi_block_erase_40,
5512 }, { */
5513 .eraseblocks = { {64 * 1024, 64} },
5514 .block_erase = spi_block_erase_d8,
5515 }, {
5516 .eraseblocks = { {4 * 1024 * 1024, 1} },
5517 .block_erase = spi_block_erase_c7,
5518 }
5519 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005520 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5521 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005522 .write = spi_chip_write_256,
5523 .read = spi_chip_read, /* also fast read 0x0B */
5524 .voltage = {2700, 3600},
5525 },
5526
5527 {
5528 .vendor = "Intel",
5529 .name = "25F640S33B8",
5530 .bustype = BUS_SPI,
5531 .manufacture_id = INTEL_ID,
5532 .model_id = INTEL_25F640S33B8,
5533 .total_size = 8192,
5534 .page_size = 256,
5535 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5536 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5537 .tested = TEST_UNTESTED,
5538 .probe = probe_spi_rdid,
5539 .probe_timing = TIMING_ZERO,
5540 .block_erasers =
5541 {
5542 {
5543 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5544 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5545 * have no effect on the memory contents, but sets a flag in the SR.
5546 .eraseblocks = {
5547 {8 * 1024, 8},
5548 {64 * 1024, 127} // inaccessible
5549 },
5550 .block_erase = spi_block_erase_40,
5551 }, { */
5552 .eraseblocks = { {64 * 1024, 128} },
5553 .block_erase = spi_block_erase_d8,
5554 }, {
5555 .eraseblocks = { {8 * 1024 * 1024, 1} },
5556 .block_erase = spi_block_erase_c7,
5557 }
5558 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005559 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5560 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005561 .write = spi_chip_write_256,
5562 .read = spi_chip_read, /* also fast read 0x0B */
5563 .voltage = {2700, 3600},
5564 },
5565
5566 {
5567 .vendor = "Intel",
5568 .name = "25F640S33T8",
5569 .bustype = BUS_SPI,
5570 .manufacture_id = INTEL_ID,
5571 .model_id = INTEL_25F640S33T8,
5572 .total_size = 8192,
5573 .page_size = 256,
5574 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
5575 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5576 .tested = TEST_UNTESTED,
5577 .probe = probe_spi_rdid,
5578 .probe_timing = TIMING_ZERO,
5579 .block_erasers =
5580 {
5581 {
5582 /* This chip supports erasing of the 8 so-called "parameter blocks" with
5583 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
5584 * have no effect on the memory contents, but sets a flag in the SR.
5585 .eraseblocks = {
5586 {64 * 1024, 127}, // inaccessible
5587 {8 * 1024, 8}
5588 },
5589 .block_erase = spi_block_erase_40,
5590 }, { */
5591 .eraseblocks = { {64 * 1024, 128} },
5592 .block_erase = spi_block_erase_d8,
5593 }, {
5594 .eraseblocks = { {8 * 1024 * 1024, 1} },
5595 .block_erase = spi_block_erase_c7,
5596 }
5597 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00005598 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
5599 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00005600 .write = spi_chip_write_256,
5601 .read = spi_chip_read, /* also fast read 0x0B */
5602 .voltage = {2700, 3600},
5603 },
5604
5605 {
5606 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005607 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005608 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005609 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005610 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005611 .total_size = 128,
5612 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00005613 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005614 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005615 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005616 .block_erasers =
5617 {
5618 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005619 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005620 {8 * 1024, 1},
5621 {4 * 1024, 2},
5622 {112 * 1024, 1},
5623 },
Sean Nelson28accc22010-03-19 18:47:06 +00005624 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005625 },
5626 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005627 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005628 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005629 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005630 },
5631
5632 {
5633 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005634 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005635 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005636 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005637 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005638 .total_size = 128,
5639 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005640 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005641 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005642 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00005643 .block_erasers =
5644 {
5645 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005646 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00005647 {112 * 1024, 1},
5648 {4 * 1024, 2},
5649 {8 * 1024, 1},
5650 },
Sean Nelson28accc22010-03-19 18:47:06 +00005651 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005652 },
5653 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005654 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005656 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00005657 },
5658
5659 {
5660 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005661 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005662 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005663 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005664 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005665 .total_size = 256,
5666 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005667 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00005668 .probe = probe_82802ab,
5669 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5670 .block_erasers =
5671 {
5672 {
5673 .eraseblocks = {
5674 {128 * 1024, 1},
5675 {96 * 1024, 1},
5676 {8 * 1024, 2},
5677 {16 * 1024, 1},
5678 },
5679 .block_erase = erase_block_82802ab,
5680 },
5681 },
5682 .write = write_82802ab,
5683 .read = read_memmapped,
5684 },
5685
5686 {
5687 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005688 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005689 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005690 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005691 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005692 .total_size = 512,
5693 .page_size = 256,
5694 .tested = TEST_UNTESTED,
5695 .probe = probe_82802ab,
5696 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005701 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005702 },
5703 },
Sean Nelsondee4a832010-03-22 04:39:31 +00005704 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00005705 .write = write_82802ab,
5706 .read = read_memmapped,
5707 },
5708
5709 {
5710 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005711 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005712 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005713 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005714 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005715 .total_size = 512,
5716 .page_size = 128 * 1024, /* maximal block size */
5717 .tested = TEST_UNTESTED,
5718 .probe = probe_82802ab,
5719 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5720 .block_erasers =
5721 {
5722 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005723 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005724 {16 * 1024, 1},
5725 {8 * 1024, 2},
5726 {96 * 1024, 1},
5727 {128 * 1024, 3},
5728 },
5729 .block_erase = erase_block_82802ab,
5730 },
5731 },
5732 .write = write_82802ab,
5733 .read = read_memmapped,
5734 },
5735
5736 {
5737 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005738 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005739 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005740 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005741 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005742 .total_size = 512,
5743 .page_size = 128 * 1024, /* maximal block size */
5744 .tested = TEST_UNTESTED,
5745 .probe = probe_82802ab,
5746 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5747 .block_erasers =
5748 {
5749 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005750 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005751 {128 * 1024, 3},
5752 {96 * 1024, 1},
5753 {8 * 1024, 2},
5754 {16 * 1024, 1},
5755 },
5756 .block_erase = erase_block_82802ab,
5757 },
5758 },
5759 .write = write_82802ab,
5760 .read = read_memmapped,
5761 },
5762
5763 {
5764 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005765 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005766 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005767 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005768 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00005769 .total_size = 512,
5770 .page_size = 128 * 1024, /* maximal block size */
5771 .feature_bits = FEATURE_ADDR_SHIFTED,
5772 .tested = TEST_UNTESTED,
5773 .probe = probe_82802ab,
5774 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5775 .block_erasers =
5776 {
5777 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005778 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005779 {16 * 1024, 1},
5780 {8 * 1024, 2},
5781 {96 * 1024, 1},
5782 {128 * 1024, 3},
5783 },
5784 .block_erase = erase_block_82802ab,
5785 },
5786 },
5787 .write = write_82802ab,
5788 .read = read_memmapped,
5789 },
5790
5791 {
5792 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005793 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005794 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00005795 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005796 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00005797 .total_size = 512,
5798 .page_size = 128 * 1024, /* maximal block size */
5799 .feature_bits = FEATURE_ADDR_SHIFTED,
5800 .tested = TEST_UNTESTED,
5801 .probe = probe_82802ab,
5802 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5803 .block_erasers =
5804 {
5805 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005806 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00005807 {128 * 1024, 3},
5808 {96 * 1024, 1},
5809 {8 * 1024, 2},
5810 {16 * 1024, 1},
5811 },
5812 .block_erase = erase_block_82802ab,
5813 },
5814 },
5815 .write = write_82802ab,
5816 .read = read_memmapped,
5817 },
5818
5819 {
5820 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005821 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005822 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005823 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005824 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005825 .total_size = 512,
5826 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005827 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005828 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005829 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005830 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005831 .block_erasers =
5832 {
5833 {
5834 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00005835 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005836 },
5837 },
Sean Nelson28accc22010-03-19 18:47:06 +00005838 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005839 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005840 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005841 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005842 },
5843
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005844 {
5845 .vendor = "Intel",
5846 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005847 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005848 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00005849 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005850 .total_size = 1024,
5851 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005852 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00005853 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005854 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005855 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00005856 .block_erasers =
5857 {
5858 {
5859 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00005860 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00005861 },
5862 },
Sean Nelson28accc22010-03-19 18:47:06 +00005863 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005864 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005866 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005867 },
5868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005869 {
5870 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005871 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005872 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005873 .manufacture_id = MACRONIX_ID,
5874 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005875 .total_size = 64,
5876 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005877 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005878 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005879 .tested = TEST_UNTESTED,
5880 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005881 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005882 .block_erasers =
5883 {
5884 {
5885 .eraseblocks = { {4 * 1024, 16} },
5886 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005887 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005888 .eraseblocks = { {64 * 1024, 1} },
5889 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005890 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005891 .eraseblocks = { {64 * 1024, 1} },
5892 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005893 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005894 .eraseblocks = { {64 * 1024, 1} },
5895 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005896 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005897 .eraseblocks = { {64 * 1024, 1} },
5898 .block_erase = spi_block_erase_c7,
5899 },
5900 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005901 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005902 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005903 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005904 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
5905 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00005906 },
5907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005908 {
5909 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005910 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005911 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005912 .manufacture_id = MACRONIX_ID,
5913 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005914 .total_size = 128,
5915 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005916 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00005917 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00005918 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005919 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005920 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005921 .block_erasers =
5922 {
5923 {
5924 .eraseblocks = { {4 * 1024, 32} },
5925 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005926 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005927 .eraseblocks = { {64 * 1024, 2} },
5928 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005929 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005930 .eraseblocks = { {128 * 1024, 1} },
5931 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005932 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00005933 .eraseblocks = { {128 * 1024, 1} },
5934 .block_erase = spi_block_erase_c7,
5935 },
5936 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005937 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005938 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005939 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005940 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005941 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005942 },
5943
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005944 {
5945 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005946 .name = "MX25L2005(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005947 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005948 .manufacture_id = MACRONIX_ID,
5949 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005950 .total_size = 256,
5951 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005952 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005953 .tested = TEST_UNTESTED,
5954 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005955 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005956 .block_erasers =
5957 {
5958 {
5959 .eraseblocks = { {4 * 1024, 64} },
5960 .block_erase = spi_block_erase_20,
5961 }, {
5962 .eraseblocks = { {64 * 1024, 4} },
5963 .block_erase = spi_block_erase_52,
5964 }, {
5965 .eraseblocks = { {64 * 1024, 4} },
5966 .block_erase = spi_block_erase_d8,
5967 }, {
5968 .eraseblocks = { {256 * 1024, 1} },
5969 .block_erase = spi_block_erase_60,
5970 }, {
5971 .eraseblocks = { {256 * 1024, 1} },
5972 .block_erase = spi_block_erase_c7,
5973 },
5974 },
Stefan Taunerf656e802013-02-02 15:35:44 +00005975 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005977 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00005978 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005980 },
5981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005982 {
5983 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00005984 .name = "MX25L4005(A/C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005985 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005986 .manufacture_id = MACRONIX_ID,
5987 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005988 .total_size = 512,
5989 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00005990 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00005991 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005992 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005993 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00005994 .block_erasers =
5995 {
5996 {
5997 .eraseblocks = { {4 * 1024, 128} },
5998 .block_erase = spi_block_erase_20,
5999 }, {
6000 .eraseblocks = { {64 * 1024, 8} },
6001 .block_erase = spi_block_erase_52,
6002 }, {
6003 .eraseblocks = { {64 * 1024, 8} },
6004 .block_erase = spi_block_erase_d8,
6005 }, {
6006 .eraseblocks = { {512 * 1024, 1} },
6007 .block_erase = spi_block_erase_60,
6008 }, {
6009 .eraseblocks = { {512 * 1024, 1} },
6010 .block_erase = spi_block_erase_c7,
6011 },
6012 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006013 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006014 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006015 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006016 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006017 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006018 },
6019
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006020 {
6021 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00006022 .name = "MX25L8005/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006023 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006024 .manufacture_id = MACRONIX_ID,
6025 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006026 .total_size = 1024,
6027 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006028 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00006029 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006030 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006031 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006032 .block_erasers =
6033 {
6034 {
6035 .eraseblocks = { {4 * 1024, 256} },
6036 .block_erase = spi_block_erase_20,
6037 }, {
6038 .eraseblocks = { {64 * 1024, 16} },
6039 .block_erase = spi_block_erase_52,
6040 }, {
6041 .eraseblocks = { {64 * 1024, 16} },
6042 .block_erase = spi_block_erase_d8,
6043 }, {
6044 .eraseblocks = { {1024 * 1024, 1} },
6045 .block_erase = spi_block_erase_60,
6046 }, {
6047 .eraseblocks = { {1024 * 1024, 1} },
6048 .block_erase = spi_block_erase_c7,
6049 },
6050 },
Stefan Taunerf656e802013-02-02 15:35:44 +00006051 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006052 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006053 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00006054 .read = spi_chip_read, /* Fast read (0x0B) supported */
6055 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00006056 },
6057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006058 {
6059 .vendor = "Macronix",
6060 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006061 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006062 .manufacture_id = MACRONIX_ID,
6063 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006064 .total_size = 2048,
6065 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006066 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00006067 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006069 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006070 .block_erasers =
6071 {
6072 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006073 .eraseblocks = { {64 * 1024, 32} },
6074 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006075 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006076 .eraseblocks = { {64 * 1024, 32} },
6077 .block_erase = spi_block_erase_d8,
6078 }, {
6079 .eraseblocks = { {2 * 1024 * 1024, 1} },
6080 .block_erase = spi_block_erase_60,
6081 }, {
6082 .eraseblocks = { {2 * 1024 * 1024, 1} },
6083 .block_erase = spi_block_erase_c7,
6084 },
6085 },
6086 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
6087 .unlock = spi_disable_blockprotect,
6088 .write = spi_chip_write_256,
6089 .read = spi_chip_read, /* Fast read (0x0B) supported */
6090 .voltage = {2700, 3600},
6091 },
6092
6093 {
6094 .vendor = "Macronix",
6095 .name = "MX25L1605A/MX25L1606E",
6096 .bustype = BUS_SPI,
6097 .manufacture_id = MACRONIX_ID,
6098 .model_id = MACRONIX_MX25L1605,
6099 .total_size = 2048,
6100 .page_size = 256,
6101 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */
6102 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6103 .tested = TEST_OK_PREW,
6104 .probe = probe_spi_rdid,
6105 .probe_timing = TIMING_ZERO,
6106 .block_erasers =
6107 {
6108 {
6109 .eraseblocks = { {4 * 1024, 512} },
6110 .block_erase = spi_block_erase_20,
6111 }, {
6112 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00006113 .block_erase = spi_block_erase_52,
6114 }, {
6115 .eraseblocks = { {64 * 1024, 32} },
6116 .block_erase = spi_block_erase_d8,
6117 }, {
6118 .eraseblocks = { {2 * 1024 * 1024, 1} },
6119 .block_erase = spi_block_erase_60,
6120 }, {
6121 .eraseblocks = { {2 * 1024 * 1024, 1} },
6122 .block_erase = spi_block_erase_c7,
6123 },
6124 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006125 .printlock = spi_prettyprint_status_register_default_bp3, /* MX25L1605A bp2 only */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006126 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006127 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006128 .read = spi_chip_read, /* Fast read (0x0B) supported */
6129 .voltage = {2700, 3600},
6130 },
6131
6132 {
6133 .vendor = "Macronix",
6134 .name = "MX25L1605D/MX25L1608D",
6135 .bustype = BUS_SPI,
6136 .manufacture_id = MACRONIX_ID,
6137 .model_id = MACRONIX_MX25L1605,
6138 .total_size = 2048,
6139 .page_size = 256,
6140 .feature_bits = FEATURE_WRSR_WREN,
6141 .tested = TEST_OK_PREW,
6142 .probe = probe_spi_rdid,
6143 .probe_timing = TIMING_ZERO,
6144 .block_erasers =
6145 {
6146 {
6147 .eraseblocks = { {4 * 1024, 512} },
6148 .block_erase = spi_block_erase_20,
6149 }, {
6150 .eraseblocks = { {64 * 1024, 32} },
6151 .block_erase = spi_block_erase_d8,
6152 }, {
6153 .eraseblocks = { {2 * 1024 * 1024, 1} },
6154 .block_erase = spi_block_erase_60,
6155 }, {
6156 .eraseblocks = { {2 * 1024 * 1024, 1} },
6157 .block_erase = spi_block_erase_c7,
6158 },
6159 },
6160 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: Continously Program (CP) mode */
6161 .unlock = spi_disable_blockprotect,
6162 .write = spi_chip_write_256,
6163 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006165 },
6166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006167 {
6168 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006169 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006170 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006171 .manufacture_id = MACRONIX_ID,
6172 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006173 .total_size = 2048,
6174 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006175 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6176 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006177 .tested = TEST_UNTESTED,
6178 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006179 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006180 .block_erasers =
6181 {
6182 {
6183 .eraseblocks = { {4 * 1024, 512} },
6184 .block_erase = spi_block_erase_20,
6185 }, {
6186 .eraseblocks = { {64 * 1024, 32} },
6187 .block_erase = spi_block_erase_d8,
6188 }, {
6189 .eraseblocks = { {2 * 1024 * 1024, 1} },
6190 .block_erase = spi_block_erase_60,
6191 }, {
6192 .eraseblocks = { {2 * 1024 * 1024, 1} },
6193 .block_erase = spi_block_erase_c7,
6194 }
6195 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006196 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006197 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006198 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006199 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006200 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006201 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00006202
Stephan Guillouxf5c70902009-04-19 23:04:00 +00006203 {
6204 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00006205 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006206 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006207 .manufacture_id = MACRONIX_ID,
6208 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006209 .total_size = 2048,
6210 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006211 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6212 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00006213 .tested = TEST_UNTESTED,
6214 .probe = probe_spi_rdid,
6215 .probe_timing = TIMING_ZERO,
6216 .block_erasers =
6217 {
6218 {
6219 .eraseblocks = { {4 * 1024, 512} },
6220 .block_erase = spi_block_erase_20,
6221 }, {
6222 .eraseblocks = { {64 * 1024, 32} },
6223 .block_erase = spi_block_erase_d8,
6224 }, {
6225 .eraseblocks = { {2 * 1024 * 1024, 1} },
6226 .block_erase = spi_block_erase_60,
6227 }, {
6228 .eraseblocks = { {2 * 1024 * 1024, 1} },
6229 .block_erase = spi_block_erase_c7,
6230 }
6231 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006232 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Stephan Guilloux3611b802010-09-13 19:59:28 +00006233 .unlock = spi_disable_blockprotect,
6234 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00006236 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00006237 },
6238
6239 {
6240 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006241 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006242 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006243 .manufacture_id = MACRONIX_ID,
6244 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006245 .total_size = 4096,
6246 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00006247 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00006248 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006249 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006250 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006251 .block_erasers =
6252 {
6253 {
Stefan Tauner226037d2013-03-16 01:22:12 +00006254 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006255 .block_erase = spi_block_erase_20,
6256 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00006257 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00006258 .block_erase = spi_block_erase_d8,
6259 }, {
6260 .eraseblocks = { {4 * 1024 * 1024, 1} },
6261 .block_erase = spi_block_erase_60,
6262 }, {
6263 .eraseblocks = { {4 * 1024 * 1024, 1} },
6264 .block_erase = spi_block_erase_c7,
6265 },
6266 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006267 .printlock = spi_prettyprint_status_register_default_bp2, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006268 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006269 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006270 .read = spi_chip_read, /* Fast read (0x0B) supported */
6271 .voltage = {2700, 3600},
6272 },
6273
6274 {
6275 .vendor = "Macronix",
6276 .name = "MX25L3205D/MX25L3208D",
6277 .bustype = BUS_SPI,
6278 .manufacture_id = MACRONIX_ID,
6279 .model_id = MACRONIX_MX25L3205,
6280 .total_size = 4096,
6281 .page_size = 256,
6282 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6284 .tested = TEST_OK_PREW,
6285 .probe = probe_spi_rdid,
6286 .probe_timing = TIMING_ZERO,
6287 .block_erasers =
6288 {
6289 {
6290 .eraseblocks = { {4 * 1024, 1024} },
6291 .block_erase = spi_block_erase_20,
6292 }, {
6293 .eraseblocks = { {64 * 1024, 64} },
6294 .block_erase = spi_block_erase_d8,
6295 }, {
6296 .eraseblocks = { {4 * 1024 * 1024, 1} },
6297 .block_erase = spi_block_erase_60,
6298 }, {
6299 .eraseblocks = { {4 * 1024 * 1024, 1} },
6300 .block_erase = spi_block_erase_c7,
6301 },
6302 },
6303 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6: CP mode */
6304 .unlock = spi_disable_blockprotect,
6305 .write = spi_chip_write_256,
6306 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
6307 .voltage = {2700, 3600},
6308 },
6309
6310 {
6311 .vendor = "Macronix",
6312 .name = "MX25L3206E",
6313 .bustype = BUS_SPI,
6314 .manufacture_id = MACRONIX_ID,
6315 .model_id = MACRONIX_MX25L3205,
6316 .total_size = 4096,
6317 .page_size = 256,
6318 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
6319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6320 .tested = TEST_OK_PREW,
6321 .probe = probe_spi_rdid,
6322 .probe_timing = TIMING_ZERO,
6323 .block_erasers =
6324 {
6325 {
6326 .eraseblocks = { {4 * 1024, 1024} },
6327 .block_erase = spi_block_erase_20,
6328 }, {
6329 .eraseblocks = { {64 * 1024, 64} },
6330 .block_erase = spi_block_erase_d8,
6331 }, {
6332 .eraseblocks = { {64 * 1024, 64} },
6333 .block_erase = spi_block_erase_52,
6334 }, {
6335 .eraseblocks = { {4 * 1024 * 1024, 1} },
6336 .block_erase = spi_block_erase_60,
6337 }, {
6338 .eraseblocks = { {4 * 1024 * 1024, 1} },
6339 .block_erase = spi_block_erase_c7,
6340 },
6341 },
6342 .printlock = spi_prettyprint_status_register_default_bp3,
6343 .unlock = spi_disable_blockprotect,
6344 .write = spi_chip_write_256,
6345 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006346 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006347 },
6348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006349 {
6350 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006351 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006352 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006353 .manufacture_id = MACRONIX_ID,
6354 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006355 .total_size = 4096,
6356 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006357 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
6358 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006359 .tested = TEST_UNTESTED,
6360 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006361 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006362 .block_erasers =
6363 {
6364 {
6365 .eraseblocks = { {4 * 1024, 1024} },
6366 .block_erase = spi_block_erase_20,
6367 }, {
6368 .eraseblocks = { {64 * 1024, 64} },
6369 .block_erase = spi_block_erase_d8,
6370 }, {
6371 .eraseblocks = { {4 * 1024 * 1024, 1} },
6372 .block_erase = spi_block_erase_60,
6373 }, {
6374 .eraseblocks = { {4 * 1024 * 1024, 1} },
6375 .block_erase = spi_block_erase_c7,
6376 }
6377 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006378 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006379 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006380 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006381 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006382 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00006383 },
6384
6385 {
6386 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006387 .name = "MX25L6405(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006388 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006389 .manufacture_id = MACRONIX_ID,
6390 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006391 .total_size = 8192,
6392 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006393 /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */
6394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Paul Menzelac427b22012-02-16 21:07:07 +00006395 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006398 .block_erasers =
6399 {
6400 {
6401 .eraseblocks = { {64 * 1024, 128} },
6402 .block_erase = spi_block_erase_20,
6403 }, {
6404 .eraseblocks = { {64 * 1024, 128} },
6405 .block_erase = spi_block_erase_d8,
6406 }, {
6407 .eraseblocks = { {8 * 1024 * 1024, 1} },
6408 .block_erase = spi_block_erase_60,
6409 }, {
6410 .eraseblocks = { {8 * 1024 * 1024, 1} },
6411 .block_erase = spi_block_erase_c7,
6412 }
6413 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006414 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 has different meanings */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006416 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006418 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006419 },
6420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006421 {
6422 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00006423 .name = "MX25L6406E/MX25L6436E",
6424 .bustype = BUS_SPI,
6425 .manufacture_id = MACRONIX_ID,
6426 .model_id = MACRONIX_MX25L6405,
6427 .total_size = 8192,
6428 .page_size = 256,
6429 /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */
6430 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6431 .tested = TEST_OK_PREW,
6432 .probe = probe_spi_rdid,
6433 .probe_timing = TIMING_ZERO,
6434 .block_erasers =
6435 {
6436 {
6437 .eraseblocks = { {4 * 1024, 2048} },
6438 .block_erase = spi_block_erase_20,
6439 }, {
6440 .eraseblocks = { {64 * 1024, 128} },
6441 .block_erase = spi_block_erase_d8,
6442 }, {
6443 .eraseblocks = { {8 * 1024 * 1024, 1} },
6444 .block_erase = spi_block_erase_60,
6445 }, {
6446 .eraseblocks = { {8 * 1024 * 1024, 1} },
6447 .block_erase = spi_block_erase_c7,
6448 }
6449 },
6450 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 for 36E is quad enable */
6451 .unlock = spi_disable_blockprotect,
6452 .write = spi_chip_write_256,
6453 .read = spi_chip_read,
6454 .voltage = {2700, 3600},
6455 },
6456
6457 {
6458 .vendor = "Macronix",
6459 .name = "MX25L6445E",
6460 .bustype = BUS_SPI,
6461 .manufacture_id = MACRONIX_ID,
6462 .model_id = MACRONIX_MX25L6405,
6463 .total_size = 8192,
6464 .page_size = 256,
6465 /* supports SFDP */
6466 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6468 .tested = TEST_OK_PREW,
6469 .probe = probe_spi_rdid,
6470 .probe_timing = TIMING_ZERO,
6471 .block_erasers =
6472 {
6473 {
6474 .eraseblocks = { {4 * 1024, 2048} },
6475 .block_erase = spi_block_erase_20,
6476 }, {
6477 .eraseblocks = { {32 * 1024, 256} },
6478 .block_erase = spi_block_erase_52,
6479 }, {
6480 .eraseblocks = { {64 * 1024, 128} },
6481 .block_erase = spi_block_erase_d8,
6482 }, {
6483 .eraseblocks = { {8 * 1024 * 1024, 1} },
6484 .block_erase = spi_block_erase_60,
6485 }, {
6486 .eraseblocks = { {8 * 1024 * 1024, 1} },
6487 .block_erase = spi_block_erase_c7,
6488 }
6489 },
6490 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6491 .unlock = spi_disable_blockprotect,
6492 .write = spi_chip_write_256,
6493 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6494 .voltage = {2700, 3600},
6495 },
6496
6497 {
6498 .vendor = "Macronix",
6499 .name = "MX25L12805(D)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006500 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006501 .manufacture_id = MACRONIX_ID,
6502 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006503 .total_size = 16384,
6504 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006505 /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */
6506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00006507 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006508 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006510 .block_erasers =
6511 {
6512 {
6513 .eraseblocks = { {4 * 1024, 4096} },
6514 .block_erase = spi_block_erase_20,
6515 }, {
6516 .eraseblocks = { {64 * 1024, 256} },
6517 .block_erase = spi_block_erase_d8,
6518 }, {
6519 .eraseblocks = { {16 * 1024 * 1024, 1} },
6520 .block_erase = spi_block_erase_60,
6521 }, {
6522 .eraseblocks = { {16 * 1024 * 1024, 1} },
6523 .block_erase = spi_block_erase_c7,
6524 }
6525 },
Stefan Tauner226037d2013-03-16 01:22:12 +00006526 .printlock = spi_prettyprint_status_register_default_bp3,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006527 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006528 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00006529 .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006530 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00006531 },
6532
6533 {
6534 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00006535 .name = "MX25U1635E",
6536 .bustype = BUS_SPI,
6537 .manufacture_id = MACRONIX_ID,
6538 .model_id = MACRONIX_MX25U1635E,
6539 .total_size = 2048,
6540 .page_size = 256,
6541 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6542 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6543 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6544 .tested = TEST_UNTESTED,
6545 .probe = probe_spi_rdid,
6546 .probe_timing = TIMING_ZERO,
6547 .block_erasers =
6548 {
6549 {
6550 .eraseblocks = { {4 * 1024, 512} },
6551 .block_erase = spi_block_erase_20,
6552 }, {
6553 .eraseblocks = { {32 * 1024, 64} },
6554 .block_erase = spi_block_erase_52,
6555 }, {
6556 .eraseblocks = { {64 * 1024, 32} },
6557 .block_erase = spi_block_erase_d8,
6558 }, {
6559 .eraseblocks = { {2 * 1024 * 1024, 1} },
6560 .block_erase = spi_block_erase_60,
6561 }, {
6562 .eraseblocks = { {2 * 1024 * 1024, 1} },
6563 .block_erase = spi_block_erase_c7,
6564 }
6565 },
6566 /* TODO: security register */
6567 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6568 .unlock = spi_disable_blockprotect,
6569 .write = spi_chip_write_256,
6570 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6571 .voltage = {1650, 2000},
6572 },
6573
6574 {
6575 .vendor = "Macronix",
6576 .name = "MX25U3235E/F",
6577 .bustype = BUS_SPI,
6578 .manufacture_id = MACRONIX_ID,
6579 .model_id = MACRONIX_MX25U3235E,
6580 .total_size = 4096,
6581 .page_size = 256,
6582 /* F model supports SFDP */
6583 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6584 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6585 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6586 .tested = TEST_OK_PREW,
6587 .probe = probe_spi_rdid,
6588 .probe_timing = TIMING_ZERO,
6589 .block_erasers =
6590 {
6591 {
6592 .eraseblocks = { {4 * 1024, 1024} },
6593 .block_erase = spi_block_erase_20,
6594 }, {
6595 .eraseblocks = { {32 * 1024, 128} },
6596 .block_erase = spi_block_erase_52,
6597 }, {
6598 .eraseblocks = { {64 * 1024, 64} },
6599 .block_erase = spi_block_erase_d8,
6600 }, {
6601 .eraseblocks = { {4 * 1024 * 1024, 1} },
6602 .block_erase = spi_block_erase_60,
6603 }, {
6604 .eraseblocks = { {4 * 1024 * 1024, 1} },
6605 .block_erase = spi_block_erase_c7,
6606 }
6607 },
6608 /* TODO: security register */
6609 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6610 .unlock = spi_disable_blockprotect,
6611 .write = spi_chip_write_256,
6612 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6613 .voltage = {1650, 2000},
6614 },
6615
6616 {
6617 .vendor = "Macronix",
6618 .name = "MX25U6435E/F",
6619 .bustype = BUS_SPI,
6620 .manufacture_id = MACRONIX_ID,
6621 .model_id = MACRONIX_MX25U6435E,
6622 .total_size = 8192,
6623 .page_size = 256,
6624 /* F model supports SFDP */
6625 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
6626 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
6627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6628 .tested = TEST_UNTESTED,
6629 .probe = probe_spi_rdid,
6630 .probe_timing = TIMING_ZERO,
6631 .block_erasers =
6632 {
6633 {
6634 .eraseblocks = { {4 * 1024, 2048} },
6635 .block_erase = spi_block_erase_20,
6636 }, {
6637 .eraseblocks = { {32 * 1024, 256} },
6638 .block_erase = spi_block_erase_52,
6639 }, {
6640 .eraseblocks = { {64 * 1024, 128} },
6641 .block_erase = spi_block_erase_d8,
6642 }, {
6643 .eraseblocks = { {8 * 1024 * 1024, 1} },
6644 .block_erase = spi_block_erase_60,
6645 }, {
6646 .eraseblocks = { {8 * 1024 * 1024, 1} },
6647 .block_erase = spi_block_erase_c7,
6648 }
6649 },
6650 /* TODO: security register */
6651 .printlock = spi_prettyprint_status_register_default_bp3, /* bit6 is quad enable */
6652 .unlock = spi_disable_blockprotect,
6653 .write = spi_chip_write_256,
6654 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6655 .voltage = {1650, 2000},
6656 },
6657
6658 {
6659 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00006660 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006661 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006662 .manufacture_id = MACRONIX_ID,
6663 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006664 .total_size = 128,
6665 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6667 .tested = TEST_UNTESTED,
6668 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006669 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006670 .block_erasers =
6671 {
6672 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006673 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006674 {8 * 1024, 1},
6675 {4 * 1024, 2},
6676 {8 * 1024, 2},
6677 {32 * 1024, 1},
6678 {64 * 1024, 1},
6679 },
Sean Nelson35727f72010-01-28 23:55:12 +00006680 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006681 }, {
6682 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006683 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006684 }
6685 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006686 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006687 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006688 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006689 },
6690
6691 {
6692 .vendor = "Macronix",
6693 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006694 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006695 .manufacture_id = MACRONIX_ID,
6696 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006697 .total_size = 128,
6698 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006699 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00006700 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006701 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006702 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006703 .block_erasers =
6704 {
6705 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006706 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006707 {64 * 1024, 1},
6708 {32 * 1024, 1},
6709 {8 * 1024, 2},
6710 {4 * 1024, 2},
6711 {8 * 1024, 1},
6712 },
Sean Nelson35727f72010-01-28 23:55:12 +00006713 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006714 }, {
6715 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006716 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006717 }
6718 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006719 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00006720 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006721 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00006722 },
6723
6724 {
6725 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006726 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006727 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006728 .manufacture_id = MACRONIX_ID,
6729 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006730 .total_size = 256,
6731 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006732 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006733 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006734 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006735 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006736 .block_erasers =
6737 {
6738 {
6739 .eraseblocks = {
6740 {16 * 1024, 1},
6741 {8 * 1024, 2},
6742 {32 * 1024, 1},
6743 {64 * 1024, 3},
6744 },
Sean Nelson35727f72010-01-28 23:55:12 +00006745 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006746 }, {
6747 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006748 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006749 },
6750 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006751 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006752 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006753 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006754 },
6755
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006756 {
6757 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006758 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006759 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006760 .manufacture_id = MACRONIX_ID,
6761 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006762 .total_size = 256,
6763 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006764 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006765 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006766 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006767 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006768 .block_erasers =
6769 {
6770 {
6771 .eraseblocks = {
6772 {64 * 1024, 3},
6773 {32 * 1024, 1},
6774 {8 * 1024, 2},
6775 {16 * 1024, 1},
6776 },
Sean Nelson35727f72010-01-28 23:55:12 +00006777 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006778 }, {
6779 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006780 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006781 },
6782 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006783 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006784 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006785 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006786 },
6787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006788 {
6789 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00006790 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006791 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006792 .manufacture_id = MACRONIX_ID,
6793 .model_id = MACRONIX_MX29F040,
6794 .total_size = 512,
6795 .page_size = 64 * 1024,
6796 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6797 .tested = TEST_UNTESTED,
6798 .probe = probe_jedec,
6799 .probe_timing = TIMING_ZERO,
6800 .block_erasers =
6801 {
6802 {
6803 .eraseblocks = { {64 * 1024, 8} },
6804 .block_erase = erase_sector_jedec,
6805 }, {
6806 .eraseblocks = { {512 * 1024, 1} },
6807 .block_erase = erase_chip_block_jedec,
6808 },
6809 },
6810 .write = write_jedec_1,
6811 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006812 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006813 },
6814
6815 {
6816 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00006817 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006818 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006819 .manufacture_id = MACRONIX_ID,
6820 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006821 .total_size = 512,
6822 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006823 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
6824 .tested = TEST_UNTESTED,
6825 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006826 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00006827 .block_erasers =
6828 {
6829 {
6830 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006831 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006832 }, {
6833 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006834 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00006835 },
6836 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00006837 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006838 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006839 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00006840 },
6841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006842 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00006843 .vendor = "Micron/Numonyx/ST",
6844 .name = "M25P05-A",
6845 .bustype = BUS_SPI,
6846 .manufacture_id = ST_ID,
6847 .model_id = ST_M25P05A,
6848 .total_size = 64,
6849 .page_size = 256,
6850 .feature_bits = FEATURE_WRSR_WREN,
6851 .tested = TEST_OK_PREW,
6852 .probe = probe_spi_rdid,
6853 .probe_timing = TIMING_ZERO,
6854 .block_erasers =
6855 {
6856 {
6857 .eraseblocks = { {32 * 1024, 2} },
6858 .block_erase = spi_block_erase_d8,
6859 }, {
6860 .eraseblocks = { {64 * 1024, 1} },
6861 .block_erase = spi_block_erase_c7,
6862 }
6863 },
6864 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6865 .unlock = spi_disable_blockprotect,
6866 .write = spi_chip_write_256,
6867 .read = spi_chip_read,
6868 .voltage = {2700, 3600},
6869 },
6870
6871 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6872 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
6873 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
6874 * only is successful if RDID does not work.
6875 */
6876 {
6877 .vendor = "Micron/Numonyx/ST",
6878 .name = "M25P05",
6879 .bustype = BUS_SPI,
6880 .manufacture_id = 0, /* Not used. */
6881 .model_id = ST_M25P05_RES,
6882 .total_size = 64,
6883 .page_size = 256,
6884 .feature_bits = FEATURE_WRSR_WREN,
6885 .tested = TEST_UNTESTED,
6886 .probe = probe_spi_res1,
6887 .probe_timing = TIMING_ZERO,
6888 .block_erasers =
6889 {
6890 {
6891 .eraseblocks = { {32 * 1024, 2} },
6892 .block_erase = spi_block_erase_d8,
6893 }, {
6894 .eraseblocks = { {64 * 1024, 1} },
6895 .block_erase = spi_block_erase_c7,
6896 }
6897 },
6898 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6899 .unlock = spi_disable_blockprotect,
6900 .write = spi_chip_write_1, /* 128 */
6901 .read = spi_chip_read,
6902 .voltage = {2700, 3600},
6903 },
6904
6905 {
6906 .vendor = "Micron/Numonyx/ST",
6907 .name = "M25P10-A",
6908 .bustype = BUS_SPI,
6909 .manufacture_id = ST_ID,
6910 .model_id = ST_M25P10A,
6911 .total_size = 128,
6912 .page_size = 256,
6913 .feature_bits = FEATURE_WRSR_WREN,
6914 .tested = TEST_OK_PRE,
6915 .probe = probe_spi_rdid,
6916 .probe_timing = TIMING_ZERO,
6917 .block_erasers =
6918 {
6919 {
6920 .eraseblocks = { {32 * 1024, 4} },
6921 .block_erase = spi_block_erase_d8,
6922 }, {
6923 .eraseblocks = { {128 * 1024, 1} },
6924 .block_erase = spi_block_erase_c7,
6925 }
6926 },
6927 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6928 .unlock = spi_disable_blockprotect,
6929 .write = spi_chip_write_256,
6930 .read = spi_chip_read,
6931 .voltage = {2700, 3600},
6932 },
6933
6934 /* The ST M25P10 has the same problem as the M25P05. */
6935 {
6936 .vendor = "Micron/Numonyx/ST",
6937 .name = "M25P10",
6938 .bustype = BUS_SPI,
6939 .manufacture_id = 0, /* Not used. */
6940 .model_id = ST_M25P10_RES,
6941 .total_size = 128,
6942 .page_size = 256,
6943 .feature_bits = FEATURE_WRSR_WREN,
6944 .tested = TEST_UNTESTED,
6945 .probe = probe_spi_res1,
6946 .probe_timing = TIMING_ZERO,
6947 .block_erasers =
6948 {
6949 {
6950 .eraseblocks = { {32 * 1024, 4} },
6951 .block_erase = spi_block_erase_d8,
6952 }, {
6953 .eraseblocks = { {128 * 1024, 1} },
6954 .block_erase = spi_block_erase_c7,
6955 }
6956 },
6957 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
6958 .unlock = spi_disable_blockprotect,
6959 .write = spi_chip_write_1, /* 128 */
6960 .read = spi_chip_read,
6961 .voltage = {2700, 3600},
6962 },
6963
6964 {
6965 .vendor = "Micron/Numonyx/ST", /* Numonyx */
6966 .name = "M25P20",
6967 .bustype = BUS_SPI,
6968 .manufacture_id = ST_ID,
6969 .model_id = ST_M25P20,
6970 .total_size = 256,
6971 .page_size = 256,
6972 .feature_bits = FEATURE_WRSR_WREN,
6973 .tested = TEST_UNTESTED,
6974 .probe = probe_spi_rdid,
6975 .probe_timing = TIMING_ZERO,
6976 .block_erasers =
6977 {
6978 {
6979 .eraseblocks = { {64 * 1024, 4} },
6980 .block_erase = spi_block_erase_d8,
6981 }, {
6982 .eraseblocks = { {256 * 1024, 1} },
6983 .block_erase = spi_block_erase_c7,
6984 }
6985 },
6986 .printlock = spi_prettyprint_status_register_default_bp1,
6987 .unlock = spi_disable_blockprotect,
6988 .write = spi_chip_write_256,
6989 .read = spi_chip_read, /* Fast read (0x0B) supported */
6990 .voltage = {2700, 3600},
6991 },
6992
6993 {
6994 .vendor = "Micron/Numonyx/ST",
6995 .name = "M25P20-old",
6996 .bustype = BUS_SPI,
6997 .manufacture_id = 0, /* Not used. */
6998 .model_id = ST_M25P20_RES,
6999 .total_size = 256,
7000 .page_size = 256,
7001 .feature_bits = FEATURE_WRSR_WREN,
7002 .tested = TEST_OK_PREW,
7003 .probe = probe_spi_res1,
7004 .probe_timing = TIMING_ZERO,
7005 .block_erasers =
7006 {
7007 {
7008 .eraseblocks = { {64 * 1024, 4} },
7009 .block_erase = spi_block_erase_d8,
7010 }, {
7011 .eraseblocks = { {256 * 1024, 1} },
7012 .block_erase = spi_block_erase_c7,
7013 }
7014 },
7015 .printlock = spi_prettyprint_status_register_default_bp1,
7016 .unlock = spi_disable_blockprotect,
7017 .write = spi_chip_write_256,
7018 .read = spi_chip_read, /* Fast read (0x0B) supported */
7019 .voltage = {2700, 3600},
7020 },
7021
7022 {
7023 .vendor = "Micron/Numonyx/ST", /* Numonyx */
7024 .name = "M25P40",
7025 .bustype = BUS_SPI,
7026 .manufacture_id = ST_ID,
7027 .model_id = ST_M25P40,
7028 .total_size = 512,
7029 .page_size = 256,
7030 .feature_bits = FEATURE_WRSR_WREN,
7031 .tested = TEST_OK_PREW,
7032 .probe = probe_spi_rdid,
7033 .probe_timing = TIMING_ZERO,
7034 .block_erasers =
7035 {
7036 {
7037 .eraseblocks = { {64 * 1024, 8} },
7038 .block_erase = spi_block_erase_d8,
7039 }, {
7040 .eraseblocks = { {512 * 1024, 1} },
7041 .block_erase = spi_block_erase_c7,
7042 }
7043 },
7044 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7045 .unlock = spi_disable_blockprotect,
7046 .write = spi_chip_write_256,
7047 .read = spi_chip_read,
7048 .voltage = {2700, 3600},
7049 },
7050
7051 {
7052 .vendor = "Micron/Numonyx/ST",
7053 .name = "M25P40-old",
7054 .bustype = BUS_SPI,
7055 .manufacture_id = 0, /* Not used. */
7056 .model_id = ST_M25P40_RES,
7057 .total_size = 512,
7058 .page_size = 256,
7059 .feature_bits = FEATURE_WRSR_WREN,
7060 .tested = TEST_UNTESTED,
7061 .probe = probe_spi_res1,
7062 .probe_timing = TIMING_ZERO,
7063 .block_erasers =
7064 {
7065 {
7066 .eraseblocks = { {64 * 1024, 8} },
7067 .block_erase = spi_block_erase_d8,
7068 }, {
7069 .eraseblocks = { {512 * 1024, 1} },
7070 .block_erase = spi_block_erase_c7,
7071 }
7072 },
7073 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7074 .unlock = spi_disable_blockprotect,
7075 .write = spi_chip_write_256,
7076 .read = spi_chip_read,
7077 },
7078
7079 {
7080 .vendor = "Micron/Numonyx/ST",
7081 .name = "M25P80",
7082 .bustype = BUS_SPI,
7083 .manufacture_id = ST_ID,
7084 .model_id = ST_M25P80,
7085 .total_size = 1024,
7086 .page_size = 256,
7087 .feature_bits = FEATURE_WRSR_WREN,
7088 .tested = TEST_OK_PREW,
7089 .probe = probe_spi_rdid,
7090 .probe_timing = TIMING_ZERO,
7091 .block_erasers =
7092 {
7093 {
7094 .eraseblocks = { {64 * 1024, 16} },
7095 .block_erase = spi_block_erase_d8,
7096 }, {
7097 .eraseblocks = { {1024 * 1024, 1} },
7098 .block_erase = spi_block_erase_c7,
7099 }
7100 },
7101 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7102 .unlock = spi_disable_blockprotect,
7103 .write = spi_chip_write_256,
7104 .read = spi_chip_read,
7105 .voltage = {2700, 3600},
7106 },
7107
7108 {
7109 .vendor = "Micron/Numonyx/ST",
7110 .name = "M25P16",
7111 .bustype = BUS_SPI,
7112 .manufacture_id = ST_ID,
7113 .model_id = ST_M25P16,
7114 .total_size = 2048,
7115 .page_size = 256,
7116 .feature_bits = FEATURE_WRSR_WREN,
7117 .tested = TEST_OK_PR,
7118 .probe = probe_spi_rdid,
7119 .probe_timing = TIMING_ZERO,
7120 .block_erasers =
7121 {
7122 {
7123 .eraseblocks = { {64 * 1024, 32} },
7124 .block_erase = spi_block_erase_d8,
7125 }, {
7126 .eraseblocks = { {2 * 1024 * 1024, 1} },
7127 .block_erase = spi_block_erase_c7,
7128 }
7129 },
7130 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7131 .unlock = spi_disable_blockprotect,
7132 .write = spi_chip_write_256,
7133 .read = spi_chip_read,
7134 .voltage = {2700, 3600},
7135 },
7136
7137 {
7138 .vendor = "Micron/Numonyx/ST",
7139 .name = "M25P32",
7140 .bustype = BUS_SPI,
7141 .manufacture_id = ST_ID,
7142 .model_id = ST_M25P32,
7143 .total_size = 4096,
7144 .page_size = 256,
7145 .feature_bits = FEATURE_WRSR_WREN,
7146 .tested = TEST_OK_PREW,
7147 .probe = probe_spi_rdid,
7148 .probe_timing = TIMING_ZERO,
7149 .block_erasers =
7150 {
7151 {
7152 .eraseblocks = { {64 * 1024, 64} },
7153 .block_erase = spi_block_erase_d8,
7154 }, {
7155 .eraseblocks = { {4 * 1024 * 1024, 1} },
7156 .block_erase = spi_block_erase_c7,
7157 }
7158 },
7159 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7160 .unlock = spi_disable_blockprotect,
7161 .write = spi_chip_write_256,
7162 .read = spi_chip_read,
7163 .voltage = {2700, 3600},
7164 },
7165
7166 {
7167 .vendor = "Micron/Numonyx/ST",
7168 .name = "M25P64",
7169 .bustype = BUS_SPI,
7170 .manufacture_id = ST_ID,
7171 .model_id = ST_M25P64,
7172 .total_size = 8192,
7173 .page_size = 256,
7174 .feature_bits = FEATURE_WRSR_WREN,
7175 .tested = TEST_OK_PREW,
7176 .probe = probe_spi_rdid,
7177 .probe_timing = TIMING_ZERO,
7178 .block_erasers =
7179 {
7180 {
7181 .eraseblocks = { {64 * 1024, 128} },
7182 .block_erase = spi_block_erase_d8,
7183 }, {
7184 .eraseblocks = { {8 * 1024 * 1024, 1} },
7185 .block_erase = spi_block_erase_c7,
7186 }
7187 },
7188 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7189 .unlock = spi_disable_blockprotect,
7190 .write = spi_chip_write_256,
7191 .read = spi_chip_read,
7192 .voltage = {2700, 3600},
7193 },
7194
7195 {
7196 .vendor = "Micron/Numonyx/ST",
7197 .name = "M25P128",
7198 .bustype = BUS_SPI,
7199 .manufacture_id = ST_ID,
7200 .model_id = ST_M25P128,
7201 .total_size = 16384,
7202 .page_size = 256,
7203 .feature_bits = FEATURE_WRSR_WREN,
7204 .tested = TEST_OK_PREW,
7205 .probe = probe_spi_rdid,
7206 .probe_timing = TIMING_ZERO,
7207 .block_erasers =
7208 {
7209 {
7210 .eraseblocks = { {256 * 1024, 64} },
7211 .block_erase = spi_block_erase_d8,
7212 }, {
7213 .eraseblocks = { {16 * 1024 * 1024, 1} },
7214 .block_erase = spi_block_erase_c7,
7215 }
7216 },
7217 .printlock = spi_prettyprint_status_register_default_bp3, /* TODO: check */
7218 .unlock = spi_disable_blockprotect,
7219 .write = spi_chip_write_256,
7220 .read = spi_chip_read,
7221 .voltage = {2700, 3600},
7222 },
7223
7224 {
7225 .vendor = "Micron/Numonyx/ST",
7226 .name = "M25PE10",
7227 .bustype = BUS_SPI,
7228 .manufacture_id = ST_ID,
7229 .model_id = ST_M25PE10,
7230 .total_size = 128,
7231 .page_size = 256,
7232 .feature_bits = FEATURE_WRSR_WREN,
7233 .tested = TEST_UNTESTED,
7234 .probe = probe_spi_rdid,
7235 .probe_timing = TIMING_ZERO,
7236 .block_erasers =
7237 {
7238 {
7239 .eraseblocks = { {4 * 1024, 32} },
7240 .block_erase = spi_block_erase_20,
7241 }, {
7242 .eraseblocks = { {64 * 1024, 2} },
7243 .block_erase = spi_block_erase_d8,
7244 }, {
7245 .eraseblocks = { {128 * 1024, 1} },
7246 .block_erase = spi_block_erase_c7,
7247 }
7248 },
7249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7250 .unlock = spi_disable_blockprotect,
7251 .write = spi_chip_write_256,
7252 .read = spi_chip_read,
7253 .voltage = {2700, 3600},
7254 },
7255
7256 {
7257 .vendor = "Micron/Numonyx/ST",
7258 .name = "M25PE20",
7259 .bustype = BUS_SPI,
7260 .manufacture_id = ST_ID,
7261 .model_id = ST_M25PE20,
7262 .total_size = 256,
7263 .page_size = 256,
7264 .feature_bits = FEATURE_WRSR_WREN,
7265 .tested = TEST_UNTESTED,
7266 .probe = probe_spi_rdid,
7267 .probe_timing = TIMING_ZERO,
7268 .block_erasers =
7269 {
7270 {
7271 .eraseblocks = { {4 * 1024, 64} },
7272 .block_erase = spi_block_erase_20,
7273 }, {
7274 .eraseblocks = { {64 * 1024, 4} },
7275 .block_erase = spi_block_erase_d8,
7276 }, {
7277 .eraseblocks = { {256 * 1024, 1} },
7278 .block_erase = spi_block_erase_c7,
7279 }
7280 },
7281 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7282 .unlock = spi_disable_blockprotect,
7283 .write = spi_chip_write_256,
7284 .read = spi_chip_read,
7285 .voltage = {2700, 3600},
7286 },
7287
7288 {
7289 .vendor = "Micron/Numonyx/ST",
7290 .name = "M25PE40",
7291 .bustype = BUS_SPI,
7292 .manufacture_id = ST_ID,
7293 .model_id = ST_M25PE40,
7294 .total_size = 512,
7295 .page_size = 256,
7296 .feature_bits = FEATURE_WRSR_WREN,
7297 .tested = TEST_UNTESTED,
7298 .probe = probe_spi_rdid,
7299 .probe_timing = TIMING_ZERO,
7300 .block_erasers =
7301 {
7302 {
7303 .eraseblocks = { {4 * 1024, 128} },
7304 .block_erase = spi_block_erase_20,
7305 }, {
7306 .eraseblocks = { {64 * 1024, 8} },
7307 .block_erase = spi_block_erase_d8,
7308 }, {
7309 .eraseblocks = { {512 * 1024, 1} },
7310 .block_erase = spi_block_erase_c7,
7311 }
7312 },
7313 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7314 .unlock = spi_disable_blockprotect,
7315 .write = spi_chip_write_256,
7316 .read = spi_chip_read,
7317 .voltage = {2700, 3600},
7318 },
7319
7320 {
7321 .vendor = "Micron/Numonyx/ST",
7322 .name = "M25PE80",
7323 .bustype = BUS_SPI,
7324 .manufacture_id = ST_ID,
7325 .model_id = ST_M25PE80,
7326 .total_size = 1024,
7327 .page_size = 256,
7328 .feature_bits = FEATURE_WRSR_WREN,
7329 .tested = TEST_OK_PREW,
7330 .probe = probe_spi_rdid,
7331 .probe_timing = TIMING_ZERO,
7332 .block_erasers =
7333 {
7334 {
7335 .eraseblocks = { {4 * 1024, 256} },
7336 .block_erase = spi_block_erase_20,
7337 }, {
7338 .eraseblocks = { {64 * 1024, 16} },
7339 .block_erase = spi_block_erase_d8,
7340 }, {
7341 .eraseblocks = { {1024 * 1024, 1} },
7342 .block_erase = spi_block_erase_c7,
7343 }
7344 },
7345 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7346 .unlock = spi_disable_blockprotect,
7347 .write = spi_chip_write_256,
7348 .read = spi_chip_read,
7349 .voltage = {2700, 3600},
7350 },
7351
7352 {
7353 .vendor = "Micron/Numonyx/ST",
7354 .name = "M25PE16",
7355 .bustype = BUS_SPI,
7356 .manufacture_id = ST_ID,
7357 .model_id = ST_M25PE16,
7358 .total_size = 2048,
7359 .page_size = 256,
7360 .feature_bits = FEATURE_WRSR_WREN,
7361 .tested = TEST_UNTESTED,
7362 .probe = probe_spi_rdid,
7363 .probe_timing = TIMING_ZERO,
7364 .block_erasers =
7365 {
7366 {
7367 .eraseblocks = { {4 * 1024, 512} },
7368 .block_erase = spi_block_erase_20,
7369 }, {
7370 .eraseblocks = { {64 * 1024, 32} },
7371 .block_erase = spi_block_erase_d8,
7372 }, {
7373 .eraseblocks = { {2 * 1024 * 1024, 1} },
7374 .block_erase = spi_block_erase_c7,
7375 }
7376 },
7377 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
7378 .unlock = spi_disable_blockprotect,
7379 .write = spi_chip_write_256,
7380 .read = spi_chip_read,
7381 .voltage = {2700, 3600},
7382 },
7383
7384 {
7385 .vendor = "Micron/Numonyx/ST",
7386 .name = "M25PX80",
7387 .bustype = BUS_SPI,
7388 .manufacture_id = ST_ID,
7389 .model_id = ST_M25PX80,
7390 .total_size = 1024,
7391 .page_size = 256,
7392 /* OTP: 64B total; read 0x4B, write 0x42 */
7393 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7394 .tested = TEST_OK_PREW,
7395 .probe = probe_spi_rdid,
7396 .probe_timing = TIMING_ZERO,
7397 .block_erasers = {
7398 {
7399 .eraseblocks = { { 4 * 1024, 256 } },
7400 .block_erase = spi_block_erase_20,
7401 }, {
7402 .eraseblocks = { {64 * 1024, 16} },
7403 .block_erase = spi_block_erase_d8,
7404 }, {
7405 .eraseblocks = { {1024 * 1024, 1} },
7406 .block_erase = spi_block_erase_c7,
7407 }
7408 },
7409 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7410 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7411 .write = spi_chip_write_256,
7412 .read = spi_chip_read,
7413 .voltage = {2700, 3600},
7414 },
7415
7416 {
7417 .vendor = "Micron/Numonyx/ST",
7418 .name = "M25PX16",
7419 .bustype = BUS_SPI,
7420 .manufacture_id = ST_ID,
7421 .model_id = ST_M25PX16,
7422 .total_size = 2048,
7423 .page_size = 256,
7424 /* OTP: 64B total; read 0x4B; write 0x42 */
7425 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7426 .tested = TEST_OK_PREW,
7427 .probe = probe_spi_rdid,
7428 .probe_timing = TIMING_ZERO,
7429 .block_erasers =
7430 {
7431 {
7432 .eraseblocks = { { 4 * 1024, 512 } },
7433 .block_erase = spi_block_erase_20,
7434 }, {
7435 .eraseblocks = { {64 * 1024, 32} },
7436 .block_erase = spi_block_erase_d8,
7437 }, {
7438 .eraseblocks = { {2 * 1024 * 1024, 1} },
7439 .block_erase = spi_block_erase_c7,
7440 }
7441 },
7442 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7443 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7444 .write = spi_chip_write_256,
7445 .read = spi_chip_read,
7446 },
7447
7448 {
7449 .vendor = "Micron/Numonyx/ST",
7450 .name = "M25PX32",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = ST_ID,
7453 .model_id = ST_M25PX32,
7454 .total_size = 4096,
7455 .page_size = 256,
7456 /* OTP: 64B total; read 0x4B; write 0x42 */
7457 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7458 .tested = TEST_OK_PRE,
7459 .probe = probe_spi_rdid,
7460 .probe_timing = TIMING_ZERO,
7461 .block_erasers =
7462 {
7463 {
7464 .eraseblocks = { { 4 * 1024, 1024 } },
7465 .block_erase = spi_block_erase_20,
7466 }, {
7467 .eraseblocks = { {64 * 1024, 64} },
7468 .block_erase = spi_block_erase_d8,
7469 }, {
7470 .eraseblocks = { {4 * 1024 * 1024, 1} },
7471 .block_erase = spi_block_erase_c7,
7472 }
7473 },
7474 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7475 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7476 .write = spi_chip_write_256,
7477 .read = spi_chip_read,
7478 .voltage = {2700, 3600},
7479 },
7480
7481 {
7482 .vendor = "Micron/Numonyx/ST",
7483 .name = "M25PX64",
7484 .bustype = BUS_SPI,
7485 .manufacture_id = ST_ID,
7486 .model_id = ST_M25PX64,
7487 .total_size = 8192,
7488 .page_size = 256,
7489 /* OTP: 64B total; read 0x4B; write 0x42 */
7490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7491 .tested = TEST_OK_PRE,
7492 .probe = probe_spi_rdid,
7493 .probe_timing = TIMING_ZERO,
7494 .block_erasers =
7495 {
7496 {
7497 .eraseblocks = { { 4 * 1024, 2048 } },
7498 .block_erase = spi_block_erase_20,
7499 }, {
7500 .eraseblocks = { {64 * 1024, 128} },
7501 .block_erase = spi_block_erase_d8,
7502 }, {
7503 .eraseblocks = { {8 * 1024 * 1024, 1} },
7504 .block_erase = spi_block_erase_c7,
7505 }
7506 },
7507 .printlock = spi_prettyprint_status_register_default_bp2, /* bit5: T/B */
7508 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
7509 .write = spi_chip_write_256,
7510 .read = spi_chip_read,
7511 },
7512
7513 {
7514 .vendor = "Micron/Numonyx/ST",
7515 .name = "M45PE10",
7516 .bustype = BUS_SPI,
7517 .manufacture_id = ST_ID,
7518 .model_id = ST_M45PE10,
7519 .total_size = 128,
7520 .page_size = 256,
7521 .tested = TEST_UNTESTED,
7522 .probe = probe_spi_rdid,
7523 .probe_timing = TIMING_ZERO,
7524 .block_erasers = {
7525 {
7526 .eraseblocks = { {256, 512} },
7527 .block_erase = spi_block_erase_db,
7528 }, {
7529 .eraseblocks = { {64 * 1024, 2} },
7530 .block_erase = spi_block_erase_d8,
7531 }
7532 },
7533 .printlock = spi_prettyprint_status_register_default_welwip,
7534 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7535 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7536 .read = spi_chip_read, /* Fast read (0x0B) supported */
7537 .voltage = {2700, 3600},
7538 },
7539
7540 {
7541 .vendor = "Micron/Numonyx/ST",
7542 .name = "M45PE20",
7543 .bustype = BUS_SPI,
7544 .manufacture_id = ST_ID,
7545 .model_id = ST_M45PE20,
7546 .total_size = 256,
7547 .page_size = 256,
7548 .tested = TEST_UNTESTED,
7549 .probe = probe_spi_rdid,
7550 .probe_timing = TIMING_ZERO,
7551 .block_erasers = {
7552 {
7553 .eraseblocks = { {256, 1024} },
7554 .block_erase = spi_block_erase_db,
7555 }, {
7556 .eraseblocks = { {64 * 1024, 4} },
7557 .block_erase = spi_block_erase_d8,
7558 }
7559 },
7560 .printlock = spi_prettyprint_status_register_default_welwip,
7561 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7562 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7563 .read = spi_chip_read, /* Fast read (0x0B) supported */
7564 .voltage = {2700, 3600},
7565 },
7566
7567 {
7568 .vendor = "Micron/Numonyx/ST",
7569 .name = "M45PE40",
7570 .bustype = BUS_SPI,
7571 .manufacture_id = ST_ID,
7572 .model_id = ST_M45PE40,
7573 .total_size = 512,
7574 .page_size = 256,
7575 .tested = TEST_UNTESTED,
7576 .probe = probe_spi_rdid,
7577 .probe_timing = TIMING_ZERO,
7578 .block_erasers = {
7579 {
7580 .eraseblocks = { {256, 2048} },
7581 .block_erase = spi_block_erase_db,
7582 }, {
7583 .eraseblocks = { {64 * 1024, 8} },
7584 .block_erase = spi_block_erase_d8,
7585 }
7586 },
7587 .printlock = spi_prettyprint_status_register_default_welwip,
7588 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7589 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7590 .read = spi_chip_read, /* Fast read (0x0B) supported */
7591 .voltage = {2700, 3600},
7592 },
7593
7594 {
7595 .vendor = "Micron/Numonyx/ST",
7596 .name = "M45PE80",
7597 .bustype = BUS_SPI,
7598 .manufacture_id = ST_ID,
7599 .model_id = ST_M45PE80,
7600 .total_size = 1024,
7601 .page_size = 256,
7602 .tested = TEST_UNTESTED,
7603 .probe = probe_spi_rdid,
7604 .probe_timing = TIMING_ZERO,
7605 .block_erasers = {
7606 {
7607 .eraseblocks = { {256, 4096} },
7608 .block_erase = spi_block_erase_db,
7609 }, {
7610 .eraseblocks = { {64 * 1024, 16} },
7611 .block_erase = spi_block_erase_d8,
7612 }
7613 },
7614 .printlock = spi_prettyprint_status_register_default_welwip,
7615 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7616 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7617 .read = spi_chip_read, /* Fast read (0x0B) supported */
7618 .voltage = {2700, 3600},
7619 },
7620
7621 {
7622 .vendor = "Micron/Numonyx/ST",
7623 .name = "M45PE16",
7624 .bustype = BUS_SPI,
7625 .manufacture_id = ST_ID,
7626 .model_id = ST_M45PE16,
7627 .total_size = 2048,
7628 .page_size = 256,
7629 .tested = TEST_UNTESTED,
7630 .probe = probe_spi_rdid,
7631 .probe_timing = TIMING_ZERO,
7632 .block_erasers = {
7633 {
7634 .eraseblocks = { {256, 8192} },
7635 .block_erase = spi_block_erase_db,
7636 }, {
7637 .eraseblocks = { {64 * 1024, 32} },
7638 .block_erase = spi_block_erase_d8,
7639 }
7640 },
7641 .printlock = spi_prettyprint_status_register_default_welwip,
7642 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
7643 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
7644 .read = spi_chip_read, /* Fast read (0x0B) supported */
7645 .voltage = {2700, 3600},
7646 },
7647
7648 {
7649 .vendor = "Micron/Numonyx/ST",
7650 .name = "N25Q016",
7651 .bustype = BUS_SPI,
7652 .manufacture_id = ST_ID,
7653 .model_id = ST_N25Q016__1E,
7654 .total_size = 2048,
7655 .page_size = 256,
7656 /* supports SFDP */
7657 /* OTP: 64B total; read 0x4B, write 0x42 */
7658 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7659 .tested = TEST_UNTESTED,
7660 .probe = probe_spi_rdid,
7661 .probe_timing = TIMING_ZERO,
7662 .block_erasers =
7663 {
7664 {
7665 .eraseblocks = { {4 * 1024, 512} },
7666 .block_erase = spi_block_erase_20,
7667 }, {
7668 .eraseblocks = { {32 * 1024, 64} },
7669 .block_erase = spi_block_erase_52,
7670 }, {
7671 .eraseblocks = { {64 * 1024, 32} },
7672 .block_erase = spi_block_erase_d8,
7673 }, {
7674 .eraseblocks = { {2 * 1024 * 1024, 1} },
7675 .block_erase = spi_block_erase_c7,
7676 }
7677 },
7678 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7679 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7680 .write = spi_chip_write_256, /* Multi I/O supported */
7681 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7682 .voltage = {1700, 2000},
7683 },
7684
7685 {
7686 .vendor = "Micron/Numonyx/ST",
7687 .name = "N25Q032..1E",
7688 .bustype = BUS_SPI,
7689 .manufacture_id = ST_ID,
7690 .model_id = ST_N25Q032__1E,
7691 .total_size = 4096,
7692 .page_size = 256,
7693 /* supports SFDP */
7694 /* OTP: 64B total; read 0x4B, write 0x42 */
7695 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7696 .tested = TEST_UNTESTED,
7697 .probe = probe_spi_rdid,
7698 .probe_timing = TIMING_ZERO,
7699 .block_erasers =
7700 {
7701 {
7702 .eraseblocks = { {4 * 1024, 1024} },
7703 .block_erase = spi_block_erase_20,
7704 }, {
7705 .eraseblocks = { {64 * 1024, 64} },
7706 .block_erase = spi_block_erase_d8,
7707 }, {
7708 .eraseblocks = { {4 * 1024 * 1024, 1} },
7709 .block_erase = spi_block_erase_c7,
7710 }
7711 },
7712 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7713 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7714 .write = spi_chip_write_256, /* Multi I/O supported */
7715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7716 .voltage = {1700, 2000},
7717 },
7718
7719 {
7720 .vendor = "Micron/Numonyx/ST",
7721 .name = "N25Q032..3E",
7722 .bustype = BUS_SPI,
7723 .manufacture_id = ST_ID,
7724 .model_id = ST_N25Q032__3E,
7725 .total_size = 4096,
7726 .page_size = 256,
7727 /* supports SFDP */
7728 /* OTP: 64B total; read 0x4B, write 0x42 */
7729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7730 .tested = TEST_OK_PREW,
7731 .probe = probe_spi_rdid,
7732 .probe_timing = TIMING_ZERO,
7733 .block_erasers =
7734 {
7735 {
7736 .eraseblocks = { {4 * 1024, 1024} },
7737 .block_erase = spi_block_erase_20,
7738 }, {
7739 .eraseblocks = { {64 * 1024, 64} },
7740 .block_erase = spi_block_erase_d8,
7741 }, {
7742 .eraseblocks = { {4 * 1024 * 1024, 1} },
7743 .block_erase = spi_block_erase_c7,
7744 }
7745 },
7746 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7747 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7748 .write = spi_chip_write_256, /* Multi I/O supported */
7749 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7750 .voltage = {2700, 3600},
7751 },
7752
7753 {
7754 .vendor = "Micron/Numonyx/ST",
7755 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7756 .bustype = BUS_SPI,
7757 .manufacture_id = ST_ID,
7758 .model_id = ST_N25Q064__1E,
7759 .total_size = 8192,
7760 .page_size = 256,
7761 /* supports SFDP */
7762 /* OTP: 64B total; read 0x4B, write 0x42 */
7763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7764 .tested = TEST_UNTESTED,
7765 .probe = probe_spi_rdid,
7766 .probe_timing = TIMING_ZERO,
7767 .block_erasers =
7768 {
7769 {
7770 .eraseblocks = { {4 * 1024, 2048 } },
7771 .block_erase = spi_block_erase_20,
7772 }, {
7773 .eraseblocks = { {64 * 1024, 128} },
7774 .block_erase = spi_block_erase_d8,
7775 }, {
7776 .eraseblocks = { {8 * 1024 * 1024, 1} },
7777 .block_erase = spi_block_erase_c7,
7778 }
7779 },
7780 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7781 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7782 .write = spi_chip_write_256, /* Multi I/O supported */
7783 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7784 .voltage = {1700, 2000},
7785 },
7786
7787 {
7788 .vendor = "Micron/Numonyx/ST",
7789 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7790 .bustype = BUS_SPI,
7791 .manufacture_id = ST_ID,
7792 .model_id = ST_N25Q064__3E,
7793 .total_size = 8192,
7794 .page_size = 256,
7795 /* supports SFDP */
7796 /* OTP: 64B total; read 0x4B, write 0x42 */
7797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7798 .tested = TEST_OK_PREW,
7799 .probe = probe_spi_rdid,
7800 .probe_timing = TIMING_ZERO,
7801 .block_erasers =
7802 {
7803 {
7804 .eraseblocks = { {4 * 1024, 2048 } },
7805 .block_erase = spi_block_erase_20,
7806 }, {
7807 .eraseblocks = { {64 * 1024, 128} },
7808 .block_erase = spi_block_erase_d8,
7809 }, {
7810 .eraseblocks = { {8 * 1024 * 1024, 1} },
7811 .block_erase = spi_block_erase_c7,
7812 }
7813 },
7814 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7815 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7816 .write = spi_chip_write_256, /* Multi I/O supported */
7817 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7818 .voltage = {2700, 3600},
7819 },
7820
7821 {
7822 .vendor = "Micron/Numonyx/ST",
7823 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
7824 .bustype = BUS_SPI,
7825 .manufacture_id = ST_ID,
7826 .model_id = ST_N25Q128__1E,
7827 .total_size = 16384,
7828 .page_size = 256,
7829 /* supports SFDP */
7830 /* OTP: 64B total; read 0x4B, write 0x42 */
7831 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7832 .tested = TEST_UNTESTED,
7833 .probe = probe_spi_rdid,
7834 .probe_timing = TIMING_ZERO,
7835 .block_erasers = {
7836 {
7837 .eraseblocks = { {4 * 1024, 4096 } },
7838 .block_erase = spi_block_erase_20,
7839 }, {
7840 .eraseblocks = { {64 * 1024, 256} },
7841 .block_erase = spi_block_erase_d8,
7842 }, {
7843 .eraseblocks = { {16384 * 1024, 1} },
7844 .block_erase = spi_block_erase_c7,
7845 }
7846 },
7847 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7848 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7849 .write = spi_chip_write_256, /* Multi I/O supported */
7850 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7851 .voltage = {1700, 2000},
7852 },
7853
7854 {
7855 .vendor = "Micron/Numonyx/ST",
7856 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
7857 .bustype = BUS_SPI,
7858 .manufacture_id = ST_ID,
7859 .model_id = ST_N25Q128__3E,
7860 .total_size = 16384,
7861 .page_size = 256,
7862 /* supports SFDP */
7863 /* OTP: 64B total; read 0x4B, write 0x42 */
7864 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7865 .tested = TEST_OK_PREW,
7866 .probe = probe_spi_rdid,
7867 .probe_timing = TIMING_ZERO,
7868 .block_erasers = {
7869 {
7870 .eraseblocks = { {4 * 1024, 4096 } },
7871 .block_erase = spi_block_erase_20,
7872 }, {
7873 .eraseblocks = { {64 * 1024, 256} },
7874 .block_erase = spi_block_erase_d8,
7875 }, {
7876 .eraseblocks = { {16384 * 1024, 1} },
7877 .block_erase = spi_block_erase_c7,
7878 }
7879 },
7880 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
7881 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
7882 .write = spi_chip_write_256, /* Multi I/O supported */
7883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7884 .voltage = {2700, 3600},
7885 },
7886
7887 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007888 .vendor = "MoselVitelic",
7889 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007890 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007891 .manufacture_id = SYNCMOS_MVC_ID,
7892 .model_id = MVC_V29C51000B,
7893 .total_size = 64,
7894 .page_size = 512,
7895 .feature_bits = FEATURE_EITHER_RESET,
7896 .tested = TEST_UNTESTED,
7897 .probe = probe_jedec,
7898 .probe_timing = TIMING_ZERO,
7899 .block_erasers =
7900 {
7901 {
7902 .eraseblocks = { {512, 128} },
7903 .block_erase = erase_sector_jedec,
7904 }, {
7905 .eraseblocks = { {64 * 1024, 1} },
7906 .block_erase = erase_chip_block_jedec,
7907 },
7908 },
7909 .write = write_jedec_1,
7910 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007911 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007912 },
7913
7914 {
7915 .vendor = "MoselVitelic",
7916 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007917 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007918 .manufacture_id = SYNCMOS_MVC_ID,
7919 .model_id = MVC_V29C51000T,
7920 .total_size = 64,
7921 .page_size = 512,
7922 .feature_bits = FEATURE_EITHER_RESET,
7923 .tested = TEST_UNTESTED,
7924 .probe = probe_jedec,
7925 .probe_timing = TIMING_ZERO,
7926 .block_erasers =
7927 {
7928 {
7929 .eraseblocks = { {512, 128} },
7930 .block_erase = erase_sector_jedec,
7931 }, {
7932 .eraseblocks = { {64 * 1024, 1} },
7933 .block_erase = erase_chip_block_jedec,
7934 },
7935 },
7936 .write = write_jedec_1,
7937 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007938 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007939 },
7940
7941 {
7942 .vendor = "MoselVitelic",
7943 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007944 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007945 .manufacture_id = SYNCMOS_MVC_ID,
7946 .model_id = MVC_V29C51400B,
7947 .total_size = 512,
7948 .page_size = 1024,
7949 .feature_bits = FEATURE_EITHER_RESET,
7950 .tested = TEST_UNTESTED,
7951 .probe = probe_jedec,
7952 .probe_timing = TIMING_ZERO,
7953 .block_erasers =
7954 {
7955 {
7956 .eraseblocks = { {1024, 512} },
7957 .block_erase = erase_sector_jedec,
7958 }, {
7959 .eraseblocks = { {512 * 1024, 1} },
7960 .block_erase = erase_chip_block_jedec,
7961 },
7962 },
7963 .write = write_jedec_1,
7964 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007965 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007966 },
7967
7968 {
7969 .vendor = "MoselVitelic",
7970 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007971 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007972 .manufacture_id = SYNCMOS_MVC_ID,
7973 .model_id = MVC_V29C51400T,
7974 .total_size = 512,
7975 .page_size = 1024,
7976 .feature_bits = FEATURE_EITHER_RESET,
7977 .tested = TEST_UNTESTED,
7978 .probe = probe_jedec,
7979 .probe_timing = TIMING_ZERO,
7980 .block_erasers =
7981 {
7982 {
7983 .eraseblocks = { {1024, 512} },
7984 .block_erase = erase_sector_jedec,
7985 }, {
7986 .eraseblocks = { {512 * 1024, 1} },
7987 .block_erase = erase_chip_block_jedec,
7988 },
7989 },
7990 .write = write_jedec_1,
7991 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007992 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007993 },
7994
7995 {
7996 .vendor = "MoselVitelic",
7997 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007998 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007999 .manufacture_id = SYNCMOS_MVC_ID,
8000 .model_id = MVC_V29LC51000,
8001 .total_size = 64,
8002 .page_size = 512,
8003 .feature_bits = FEATURE_EITHER_RESET,
8004 .tested = TEST_UNTESTED,
8005 .probe = probe_jedec,
8006 .probe_timing = TIMING_ZERO,
8007 .block_erasers =
8008 {
8009 {
8010 .eraseblocks = { {512, 128} },
8011 .block_erase = erase_sector_jedec,
8012 }, {
8013 .eraseblocks = { {64 * 1024, 1} },
8014 .block_erase = erase_chip_block_jedec,
8015 },
8016 },
8017 .write = write_jedec_1,
8018 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008019 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008020 },
8021
8022 {
8023 .vendor = "MoselVitelic",
8024 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008025 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008026 .manufacture_id = SYNCMOS_MVC_ID,
8027 .model_id = MVC_V29LC51001,
8028 .total_size = 128,
8029 .page_size = 512,
8030 .feature_bits = FEATURE_EITHER_RESET,
8031 .tested = TEST_UNTESTED,
8032 .probe = probe_jedec,
8033 .probe_timing = TIMING_ZERO,
8034 .block_erasers =
8035 {
8036 {
8037 .eraseblocks = { {512, 256} },
8038 .block_erase = erase_sector_jedec,
8039 }, {
8040 .eraseblocks = { {128 * 1024, 1} },
8041 .block_erase = erase_chip_block_jedec,
8042 },
8043 },
8044 .write = write_jedec_1,
8045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008046 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008047 },
8048
8049 {
8050 .vendor = "MoselVitelic",
8051 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008052 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008053 .manufacture_id = SYNCMOS_MVC_ID,
8054 .model_id = MVC_V29LC51002,
8055 .total_size = 256,
8056 .page_size = 512,
8057 .feature_bits = FEATURE_EITHER_RESET,
8058 .tested = TEST_UNTESTED,
8059 .probe = probe_jedec,
8060 .probe_timing = TIMING_ZERO,
8061 .block_erasers =
8062 {
8063 {
8064 .eraseblocks = { {512, 512} },
8065 .block_erase = erase_sector_jedec,
8066 }, {
8067 .eraseblocks = { {256 * 1024, 1} },
8068 .block_erase = erase_chip_block_jedec,
8069 },
8070 },
8071 .write = write_jedec_1,
8072 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008073 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008074 },
8075
8076 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +00008077 .vendor = "Nantronics",
8078 .name = "N25S10",
8079 .bustype = BUS_SPI,
8080 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8081 .model_id = NANTRONICS_N25S10,
8082 .total_size = 128,
8083 .page_size = 256,
8084 .feature_bits = FEATURE_WRSR_WREN,
8085 .tested = TEST_UNTESTED,
8086 .probe = probe_spi_rdid,
8087 .probe_timing = TIMING_ZERO,
8088 .block_erasers =
8089 {
8090 {
8091 .eraseblocks = { {4 * 1024, 32} },
8092 .block_erase = spi_block_erase_20,
8093 }, {
8094 .eraseblocks = { {4 * 1024, 32} },
8095 .block_erase = spi_block_erase_d7,
8096 }, {
8097 .eraseblocks = { {32 * 1024, 4} },
8098 .block_erase = spi_block_erase_52,
8099 }, {
8100 .eraseblocks = { {64 * 1024, 2} },
8101 .block_erase = spi_block_erase_d8,
8102 }, {
8103 .eraseblocks = { {128 * 1024, 1} },
8104 .block_erase = spi_block_erase_60,
8105 }, {
8106 .eraseblocks = { {128 * 1024, 1} },
8107 .block_erase = spi_block_erase_c7,
8108 }
8109 },
8110 .printlock = spi_prettyprint_status_register_default_bp3,
8111 .unlock = spi_disable_blockprotect_bp3_srwd,
8112 .write = spi_chip_write_256,
8113 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8114 .voltage = {2700, 3600},
8115 },
8116
8117 {
8118 .vendor = "Nantronics",
8119 .name = "N25S20",
8120 .bustype = BUS_SPI,
8121 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8122 .model_id = NANTRONICS_N25S20,
8123 .total_size = 256,
8124 .page_size = 256,
8125 .feature_bits = FEATURE_WRSR_WREN,
8126 .tested = TEST_UNTESTED,
8127 .probe = probe_spi_rdid,
8128 .probe_timing = TIMING_ZERO,
8129 .block_erasers =
8130 {
8131 {
8132 .eraseblocks = { {4 * 1024, 64} },
8133 .block_erase = spi_block_erase_20,
8134 }, {
8135 .eraseblocks = { {4 * 1024, 64} },
8136 .block_erase = spi_block_erase_d7,
8137 }, {
8138 .eraseblocks = { {32 * 1024, 8} },
8139 .block_erase = spi_block_erase_52,
8140 }, {
8141 .eraseblocks = { {64 * 1024, 4} },
8142 .block_erase = spi_block_erase_d8,
8143 }, {
8144 .eraseblocks = { {256 * 1024, 1} },
8145 .block_erase = spi_block_erase_60,
8146 }, {
8147 .eraseblocks = { {256 * 1024, 1} },
8148 .block_erase = spi_block_erase_c7,
8149 }
8150 },
8151 .printlock = spi_prettyprint_status_register_default_bp3,
8152 .unlock = spi_disable_blockprotect_bp3_srwd,
8153 .write = spi_chip_write_256,
8154 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8155 .voltage = {2700, 3600},
8156 },
8157
8158 {
8159 .vendor = "Nantronics",
8160 .name = "N25S40",
8161 .bustype = BUS_SPI,
8162 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8163 .model_id = NANTRONICS_N25S40,
8164 .total_size = 512,
8165 .page_size = 256,
8166 .feature_bits = FEATURE_WRSR_WREN,
8167 .tested = TEST_UNTESTED,
8168 .probe = probe_spi_rdid,
8169 .probe_timing = TIMING_ZERO,
8170 .block_erasers =
8171 {
8172 {
8173 .eraseblocks = { {4 * 1024, 128} },
8174 .block_erase = spi_block_erase_20,
8175 }, {
8176 .eraseblocks = { {4 * 1024, 128} },
8177 .block_erase = spi_block_erase_d7,
8178 }, {
8179 .eraseblocks = { {32 * 1024, 16} },
8180 .block_erase = spi_block_erase_52,
8181 }, {
8182 .eraseblocks = { {64 * 1024, 8} },
8183 .block_erase = spi_block_erase_d8,
8184 }, {
8185 .eraseblocks = { {512 * 1024, 1} },
8186 .block_erase = spi_block_erase_60,
8187 }, {
8188 .eraseblocks = { {512 * 1024, 1} },
8189 .block_erase = spi_block_erase_c7,
8190 }
8191 },
8192 .printlock = spi_prettyprint_status_register_default_bp3,
8193 .unlock = spi_disable_blockprotect_bp3_srwd,
8194 .write = spi_chip_write_256,
8195 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8196 .voltage = {2700, 3600},
8197 },
8198
8199 {
8200 .vendor = "Nantronics",
8201 .name = "N25S80",
8202 .bustype = BUS_SPI,
8203 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8204 .model_id = NANTRONICS_N25S80,
8205 .total_size = 1024,
8206 .page_size = 256,
8207 .feature_bits = FEATURE_WRSR_WREN,
8208 .tested = TEST_UNTESTED,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers =
8212 {
8213 {
8214 .eraseblocks = { {4 * 1024, 256} },
8215 .block_erase = spi_block_erase_20,
8216 }, {
8217 .eraseblocks = { {32 * 1024, 32} },
8218 .block_erase = spi_block_erase_52,
8219 }, {
8220 .eraseblocks = { {64 * 1024, 16} },
8221 .block_erase = spi_block_erase_d8,
8222 }, {
8223 .eraseblocks = { {1024 * 1024, 1} },
8224 .block_erase = spi_block_erase_60,
8225 }, {
8226 .eraseblocks = { {1024 * 1024, 1} },
8227 .block_erase = spi_block_erase_c7,
8228 }
8229 },
8230 .printlock = spi_prettyprint_status_register_default_bp3,
8231 .unlock = spi_disable_blockprotect_bp3_srwd,
8232 .write = spi_chip_write_256,
8233 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8234 .voltage = {2700, 3600},
8235 },
8236
8237 {
8238 .vendor = "Nantronics",
8239 .name = "N25S16",
8240 .bustype = BUS_SPI,
8241 .manufacture_id = NANTRONICS_ID_NOPREFIX,
8242 .model_id = NANTRONICS_N25S16,
8243 .total_size = 2048,
8244 .page_size = 256,
8245 .feature_bits = FEATURE_WRSR_WREN,
8246 .tested = TEST_UNTESTED,
8247 .probe = probe_spi_rdid,
8248 .probe_timing = TIMING_ZERO,
8249 .block_erasers =
8250 {
8251 {
8252 .eraseblocks = { {4 * 1024, 512} },
8253 .block_erase = spi_block_erase_20,
8254 }, {
8255 .eraseblocks = { {64 * 1024, 32} },
8256 .block_erase = spi_block_erase_d8,
8257 }, {
8258 .eraseblocks = { {2048 * 1024, 1} },
8259 .block_erase = spi_block_erase_60,
8260 }, {
8261 .eraseblocks = { {2048 * 1024, 1} },
8262 .block_erase = spi_block_erase_c7,
8263 }
8264 },
8265 .printlock = spi_prettyprint_status_register_default_bp3,
8266 .unlock = spi_disable_blockprotect_bp3_srwd,
8267 .write = spi_chip_write_256,
8268 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
8269 .voltage = {2700, 3600},
8270 },
8271
8272 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008273 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +00008274 .name = "Pm25LD256C",
8275 .bustype = BUS_SPI,
8276 .manufacture_id = PMC_ID,
8277 .model_id = PMC_PM25LD256C,
8278 .total_size = 32,
8279 .page_size = 256,
8280 .feature_bits = FEATURE_WRSR_WREN,
8281 .tested = TEST_UNTESTED,
8282 .probe = probe_spi_rdid,
8283 .probe_timing = TIMING_ZERO,
8284 .block_erasers =
8285 {
8286 {
8287 .eraseblocks = { {4 * 1024, 8} },
8288 .block_erase = spi_block_erase_20,
8289 }, {
8290 .eraseblocks = { {4 * 1024, 8} },
8291 .block_erase = spi_block_erase_d7,
8292 }, {
8293 .eraseblocks = { {32 * 1024, 1} },
8294 .block_erase = spi_block_erase_d8,
8295 }, {
8296 .eraseblocks = { {32 * 1024, 1} },
8297 .block_erase = spi_block_erase_60,
8298 }, {
8299 .eraseblocks = { {32 * 1024, 1} },
8300 .block_erase = spi_block_erase_c7,
8301 }
8302 },
8303 .printlock = spi_prettyprint_status_register_default_bp2,
8304 .unlock = spi_disable_blockprotect,
8305 .write = spi_chip_write_256,
8306 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8307 .voltage = {2700, 3600},
8308 },
8309 {
8310 .vendor = "PMC",
8311 .name = "Pm25LD512(C)",
8312 .bustype = BUS_SPI,
8313 .manufacture_id = PMC_ID,
8314 .model_id = PMC_PM25LD512,
8315 .total_size = 64,
8316 .page_size = 256,
8317 .feature_bits = FEATURE_WRSR_WREN,
8318 .tested = TEST_OK_PREW,
8319 .probe = probe_spi_rdid,
8320 .probe_timing = TIMING_ZERO,
8321 .block_erasers =
8322 {
8323 {
8324 .eraseblocks = { {4 * 1024, 16} },
8325 .block_erase = spi_block_erase_20,
8326 }, {
8327 .eraseblocks = { {4 * 1024, 16} },
8328 .block_erase = spi_block_erase_d7,
8329 }, {
8330 .eraseblocks = { {32 * 1024, 2} },
8331 .block_erase = spi_block_erase_d8,
8332 }, {
8333 .eraseblocks = { {64 * 1024, 1} },
8334 .block_erase = spi_block_erase_60,
8335 }, {
8336 .eraseblocks = { {64 * 1024, 1} },
8337 .block_erase = spi_block_erase_c7,
8338 }
8339 },
8340 .printlock = spi_prettyprint_status_register_default_bp2,
8341 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8342 .write = spi_chip_write_256,
8343 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8344 .voltage = {2300, 3600},
8345 },
8346
8347 {
8348 .vendor = "PMC",
8349 .name = "Pm25LD010(C)",
8350 .bustype = BUS_SPI,
8351 .manufacture_id = PMC_ID,
8352 .model_id = PMC_PM25LD010,
8353 .total_size = 128,
8354 .page_size = 256,
8355 .feature_bits = FEATURE_WRSR_WREN,
8356 .tested = TEST_UNTESTED,
8357 .probe = probe_spi_rdid,
8358 .probe_timing = TIMING_ZERO,
8359 .block_erasers =
8360 {
8361 {
8362 .eraseblocks = { {4 * 1024, 32} },
8363 .block_erase = spi_block_erase_20,
8364 }, {
8365 .eraseblocks = { {4 * 1024, 32} },
8366 .block_erase = spi_block_erase_d7,
8367 }, {
8368 .eraseblocks = { {32 * 1024, 4} },
8369 .block_erase = spi_block_erase_d8,
8370 }, {
8371 .eraseblocks = { {128 * 1024, 1} },
8372 .block_erase = spi_block_erase_60,
8373 }, {
8374 .eraseblocks = { {128 * 1024, 1} },
8375 .block_erase = spi_block_erase_c7,
8376 }
8377 },
8378 .printlock = spi_prettyprint_status_register_default_bp2,
8379 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8380 .write = spi_chip_write_256,
8381 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8382 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
8383 },
8384
8385 {
8386 .vendor = "PMC",
8387 .name = "Pm25LD020(C)",
8388 .bustype = BUS_SPI,
8389 .manufacture_id = PMC_ID,
8390 .model_id = PMC_PM25LD020,
8391 .total_size = 256,
8392 .page_size = 256,
8393 .feature_bits = FEATURE_WRSR_WREN,
8394 .tested = TEST_UNTESTED,
8395 .probe = probe_spi_rdid,
8396 .probe_timing = TIMING_ZERO,
8397 .block_erasers =
8398 {
8399 {
8400 .eraseblocks = { {4 * 1024, 64} },
8401 .block_erase = spi_block_erase_20,
8402 }, {
8403 .eraseblocks = { {4 * 1024, 64} },
8404 .block_erase = spi_block_erase_d7,
8405 }, {
8406 .eraseblocks = { {64 * 1024, 4} },
8407 .block_erase = spi_block_erase_d8,
8408 }, {
8409 .eraseblocks = { {256 * 1024, 1} },
8410 .block_erase = spi_block_erase_60,
8411 }, {
8412 .eraseblocks = { {256 * 1024, 1} },
8413 .block_erase = spi_block_erase_c7,
8414 }
8415 },
8416 .printlock = spi_prettyprint_status_register_default_bp2,
8417 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
8418 .write = spi_chip_write_256,
8419 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8420 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
8421 },
8422
8423 {
8424 .vendor = "PMC",
8425 .name = "Pm25LD040(C)",
8426 .bustype = BUS_SPI,
8427 .manufacture_id = PMC_ID,
8428 .model_id = PMC_PM25LV040,
8429 .total_size = 512,
8430 .page_size = 256,
8431 .feature_bits = FEATURE_WRSR_WREN,
8432 .tested = TEST_UNTESTED,
8433 .probe = probe_spi_rdid,
8434 .probe_timing = TIMING_ZERO,
8435 .block_erasers =
8436 {
8437 {
8438 .eraseblocks = { {4 * 1024, 128} },
8439 .block_erase = spi_block_erase_20,
8440 }, {
8441 .eraseblocks = { {4 * 1024, 128} },
8442 .block_erase = spi_block_erase_d7,
8443 }, {
8444 .eraseblocks = { {64 * 1024, 8} },
8445 .block_erase = spi_block_erase_d8,
8446 }, {
8447 .eraseblocks = { {512 * 1024, 1} },
8448 .block_erase = spi_block_erase_60,
8449 }, {
8450 .eraseblocks = { {512 * 1024, 1} },
8451 .block_erase = spi_block_erase_c7,
8452 }
8453 },
8454 .printlock = spi_prettyprint_status_register_default_bp2,
8455 .unlock = spi_disable_blockprotect,
8456 .write = spi_chip_write_256,
8457 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
8458 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
8459 },
8460
8461{
8462 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008463 .name = "Pm25LV512(A)",
8464 .bustype = BUS_SPI,
8465 .manufacture_id = PMC_ID,
8466 .model_id = PMC_PM25LV512,
8467 .total_size = 64,
8468 .page_size = 256,
8469 .feature_bits = FEATURE_WRSR_WREN,
8470 .tested = TEST_UNTESTED,
8471 .probe = probe_spi_res3,
8472 .probe_timing = TIMING_ZERO,
8473 .block_erasers =
8474 {
8475 {
8476 .eraseblocks = { {4 * 1024, 16} },
8477 .block_erase = spi_block_erase_d7,
8478 }, {
8479 .eraseblocks = { {32 * 1024, 2} },
8480 .block_erase = spi_block_erase_d8,
8481 }, {
8482 .eraseblocks = { {64 * 1024, 1} },
8483 .block_erase = spi_block_erase_c7,
8484 }
8485 },
8486 .printlock = spi_prettyprint_status_register_default_bp1,
8487 .unlock = spi_disable_blockprotect,
8488 .write = spi_chip_write_256,
8489 .read = spi_chip_read, /* Fast read (0x0B) supported */
8490 .voltage = {2700, 3600},
8491 },
8492
8493 {
8494 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008495 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008496 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008497 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008498 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008499 .total_size = 128,
8500 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008501 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008502 .tested = TEST_UNTESTED,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008503 .probe = probe_spi_res3,
8504 .probe_timing = TIMING_ZERO,
8505 .block_erasers =
8506 {
8507 {
8508 .eraseblocks = { {4 * 1024, 32} },
8509 .block_erase = spi_block_erase_d7,
8510 }, {
8511 .eraseblocks = { {32 * 1024, 4} },
8512 .block_erase = spi_block_erase_d8,
8513 }, {
8514 .eraseblocks = { {128 * 1024, 1} },
8515 .block_erase = spi_block_erase_c7,
8516 }
8517 },
8518 .printlock = spi_prettyprint_status_register_default_bp1,
8519 .unlock = spi_disable_blockprotect,
8520 .write = spi_chip_write_256,
8521 .read = spi_chip_read, /* Fast read (0x0B) supported */
8522 .voltage = {2700, 3600},
8523 },
8524
8525 {
8526 .vendor = "PMC",
8527 .name = "Pm25LV010A",
8528 .bustype = BUS_SPI,
8529 .manufacture_id = PMC_ID,
8530 .model_id = PMC_PM25LV010,
8531 .total_size = 128,
8532 .page_size = 256,
8533 .feature_bits = FEATURE_WRSR_WREN,
8534 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008535 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008536 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008537 .block_erasers =
8538 {
8539 {
8540 .eraseblocks = { {4 * 1024, 32} },
8541 .block_erase = spi_block_erase_d7,
8542 }, {
8543 .eraseblocks = { {32 * 1024, 4} },
8544 .block_erase = spi_block_erase_d8,
8545 }, {
8546 .eraseblocks = { {128 * 1024, 1} },
8547 .block_erase = spi_block_erase_c7,
8548 }
8549 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008550 .printlock = spi_prettyprint_status_register_default_bp1,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008551 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008552 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008553 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008555 },
8556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008557 {
8558 .vendor = "PMC",
8559 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008560 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008561 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008562 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008563 .total_size = 256,
8564 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008565 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008566 .tested = TEST_UNTESTED,
8567 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008568 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008569 .block_erasers =
8570 {
8571 {
8572 .eraseblocks = { {4 * 1024, 64} },
8573 .block_erase = spi_block_erase_d7,
8574 }, {
8575 .eraseblocks = { {64 * 1024, 4} },
8576 .block_erase = spi_block_erase_d8,
8577 }, {
8578 .eraseblocks = { {256 * 1024, 1} },
8579 .block_erase = spi_block_erase_c7,
8580 }
8581 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008582 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008583 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008584 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008585 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008586 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008587 },
8588
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008589 {
8590 .vendor = "PMC",
8591 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008592 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008593 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008594 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008595 .total_size = 512,
8596 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008597 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00008598 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008599 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008600 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008601 .block_erasers =
8602 {
8603 {
8604 .eraseblocks = { {4 * 1024, 128} },
8605 .block_erase = spi_block_erase_d7,
8606 }, {
8607 .eraseblocks = { {64 * 1024, 8} },
8608 .block_erase = spi_block_erase_d8,
8609 }, {
8610 .eraseblocks = { {512 * 1024, 1} },
8611 .block_erase = spi_block_erase_c7,
8612 }
8613 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008614 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008615 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008616 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008617 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008618 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008619 },
8620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008621 {
8622 .vendor = "PMC",
8623 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008624 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008625 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008626 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008627 .total_size = 1024,
8628 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008629 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008630 .tested = TEST_UNTESTED,
8631 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008632 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008633 .block_erasers =
8634 {
8635 {
8636 .eraseblocks = { {4 * 1024, 256} },
8637 .block_erase = spi_block_erase_d7,
8638 }, {
8639 .eraseblocks = { {4 * 1024, 256} },
8640 .block_erase = spi_block_erase_20,
8641 }, {
8642 .eraseblocks = { {64 * 1024, 16} },
8643 .block_erase = spi_block_erase_d8,
8644 }, {
8645 .eraseblocks = { {1024 * 1024, 1} },
8646 .block_erase = spi_block_erase_60,
8647 }, {
8648 .eraseblocks = { {1024 * 1024, 1} },
8649 .block_erase = spi_block_erase_c7,
8650 }
8651 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008652 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008653 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008654 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008655 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008656 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008657 },
8658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008659 {
8660 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008661 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008662 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008663 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008664 .model_id = PMC_PM25LV016B,
8665 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008666 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00008667 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008668 .tested = TEST_UNTESTED,
8669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008670 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008671 .block_erasers =
8672 {
8673 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008674 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +00008675 .block_erase = spi_block_erase_d7,
8676 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008677 .eraseblocks = { {4 * 1024, 512} },
8678 .block_erase = spi_block_erase_20,
8679 }, {
8680 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +00008681 .block_erase = spi_block_erase_d8,
8682 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008683 .eraseblocks = { {2 * 1024 * 1024, 1} },
8684 .block_erase = spi_block_erase_60,
8685 }, {
8686 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008687 .block_erase = spi_block_erase_c7,
8688 }
8689 },
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008690 .printlock = spi_prettyprint_status_register_default_bp2,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008691 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008692 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +00008693 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008694 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008695 },
8696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 {
8698 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008699 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008700 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008701 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008702 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008703 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008704 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008705 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008706 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008707 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008708 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008709 .block_erasers =
8710 {
8711 {
8712 .eraseblocks = {
8713 {128 * 1024, 1},
8714 {96 * 1024, 1},
8715 {8 * 1024, 2},
8716 {16 * 1024, 1},
8717 },
Sean Nelson35727f72010-01-28 23:55:12 +00008718 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008719 }, {
8720 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008721 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008722 },
8723 },
Sean Nelson35727f72010-01-28 23:55:12 +00008724 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008726 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008727 },
8728
8729 {
8730 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00008731 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008732 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008733 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008734 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008735 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00008736 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008737 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008738 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008739 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008740 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00008741 .block_erasers =
8742 {
8743 {
8744 .eraseblocks = {
8745 {16 * 1024, 1},
8746 {8 * 1024, 2},
8747 {96 * 1024, 1},
8748 {128 * 1024, 1},
8749 },
Sean Nelson35727f72010-01-28 23:55:12 +00008750 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008751 }, {
8752 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008753 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00008754 },
8755 },
Sean Nelson35727f72010-01-28 23:55:12 +00008756 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008758 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00008759 },
8760
8761 {
8762 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008763 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008764 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008765 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008766 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008767 .total_size = 128,
8768 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00008769 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008770 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008771 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008772 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00008773 .block_erasers =
8774 {
8775 {
8776 .eraseblocks = { {4 * 1024, 32} },
8777 .block_erase = erase_sector_jedec,
8778 }, {
8779 .eraseblocks = { {64 * 1024, 2} },
8780 .block_erase = erase_block_jedec,
8781 }, {
8782 .eraseblocks = { {128 * 1024, 1} },
8783 .block_erase = erase_chip_block_jedec,
8784 }
8785 },
Sean Nelson35727f72010-01-28 23:55:12 +00008786 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008787 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008788 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00008789 },
8790
8791 {
8792 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008793 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008794 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008795 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008796 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008797 .total_size = 256,
8798 .page_size = 4096,
8799 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8800 .tested = TEST_UNTESTED,
8801 .probe = probe_jedec,
8802 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8803 .block_erasers =
8804 {
8805 {
8806 .eraseblocks = { {4 * 1024, 64} },
8807 .block_erase = erase_sector_jedec,
8808 }, {
8809 .eraseblocks = { {64 * 1024, 4} },
8810 .block_erase = erase_block_jedec,
8811 }, {
8812 .eraseblocks = { {256 * 1024, 1} },
8813 .block_erase = erase_chip_block_jedec,
8814 }
8815 },
8816 .write = write_jedec_1,
8817 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008818 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008819 },
8820
8821 {
8822 .vendor = "PMC",
8823 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008824 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008825 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008826 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008827 .total_size = 512,
8828 .page_size = 4096,
8829 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008830 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008831 .probe = probe_jedec,
8832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8833 .block_erasers =
8834 {
8835 {
8836 .eraseblocks = { {4 * 1024, 128} },
8837 .block_erase = erase_sector_jedec,
8838 }, {
8839 .eraseblocks = { {64 * 1024, 8} },
8840 .block_erase = erase_block_jedec,
8841 }, {
8842 .eraseblocks = { {512 * 1024, 1} },
8843 .block_erase = erase_chip_block_jedec,
8844 }
8845 },
8846 .write = write_jedec_1,
8847 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008848 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008849 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +00008850
8851 {
8852 .vendor = "PMC",
8853 .name = "Pm39LV512",
8854 .bustype = BUS_PARALLEL,
8855 .manufacture_id = PMC_ID_NOPREFIX,
8856 .model_id = PMC_PM39LV512,
8857 .total_size = 64,
8858 .page_size = 4096,
8859 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
8860 .tested = TEST_OK_PREW,
8861 .probe = probe_jedec,
8862 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8863 .block_erasers =
8864 {
8865 {
8866 .eraseblocks = { {4 * 1024, 16} },
8867 .block_erase = erase_sector_jedec,
8868 }, {
8869 .eraseblocks = { {64 * 1024, 1} },
8870 .block_erase = erase_block_jedec,
8871 }, {
8872 .eraseblocks = { {64 * 1024, 1} },
8873 .block_erase = erase_chip_block_jedec,
8874 }
8875 },
8876 .write = write_jedec_1,
8877 .read = read_memmapped,
8878 .voltage = {2700, 3600},
8879 },
8880
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00008881 {
8882 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008883 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008884 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008885 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008886 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008887 .total_size = 256,
8888 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008889 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00008890 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008891 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008892 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008893 .block_erasers =
8894 {
8895 {
8896 .eraseblocks = { {4 * 1024, 64} },
8897 .block_erase = erase_sector_jedec,
8898 }, {
8899 .eraseblocks = { {16 * 1024, 16} },
8900 .block_erase = erase_block_jedec,
8901 }, {
8902 .eraseblocks = { {256 * 1024, 1} },
8903 .block_erase = erase_chip_block_jedec,
8904 }
8905 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008906 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008907 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008909 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008910 },
8911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008912 {
8913 .vendor = "PMC",
8914 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008915 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008916 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008917 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008918 .total_size = 512,
8919 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008920 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008921 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008922 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008923 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00008924 .block_erasers =
8925 {
8926 {
8927 .eraseblocks = { {4 * 1024, 128} },
8928 .block_erase = erase_sector_jedec,
8929 }, {
8930 .eraseblocks = { {64 * 1024, 8} },
8931 .block_erase = erase_block_jedec,
8932 }, {
8933 .eraseblocks = { {512 * 1024, 1} },
8934 .block_erase = erase_chip_block_jedec,
8935 }
8936 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008937 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00008938 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008939 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008940 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008941 },
8942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008943 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00008944 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008945 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008946 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008947 .manufacture_id = SANYO_ID,
8948 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008949 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +00008950 .page_size = 256,
8951 .tested = TEST_UNTESTED,
8952 .probe = probe_spi_rdid,
8953 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00008954 .block_erasers =
8955 {
8956 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008957 .eraseblocks = { {256, 1024} },
8958 .block_erase = spi_block_erase_db,
8959 }, {
8960 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +00008961 .block_erase = spi_block_erase_d8,
8962 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008963 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +00008964 .block_erase = spi_block_erase_c7,
8965 }
8966 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008967 .printlock = spi_prettyprint_status_register_default_welwip,
8968 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +00008969 .write = spi_chip_write_256,
8970 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +00008971 .voltage = {2700, 3600},
8972 },
8973
8974 {
8975 .vendor = "Sanyo",
8976 .name = "LE25FW403A",
8977 .bustype = BUS_SPI,
8978 .manufacture_id = SANYO_ID,
8979 .model_id = SANYO_LE25FW403A,
8980 .total_size = 512,
8981 .page_size = 256,
8982 .tested = TEST_UNTESTED,
8983 .probe = probe_spi_rdid,
8984 .probe_timing = TIMING_ZERO,
8985 .block_erasers = {
8986 {
8987 .eraseblocks = { {256, 2 * 1024} },
8988 .block_erase = spi_block_erase_db,
8989 }, {
8990 .eraseblocks = { {64 * 1024, 8} },
8991 .block_erase = spi_block_erase_d8,
8992 }, {
8993 .eraseblocks = { {512 * 1024, 1} },
8994 .block_erase = spi_block_erase_c7,
8995 }
8996 },
8997 .printlock = spi_prettyprint_status_register_default_welwip,
8998 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
8999 .write = spi_chip_write_256,
9000 .read = spi_chip_read,
9001 .voltage = {2700, 3600},
9002 },
9003
9004 {
9005 .vendor = "Sanyo",
9006 .name = "LE25FW418A",
9007 .bustype = BUS_SPI,
9008 .manufacture_id = SANYO_ID,
9009 .model_id = SANYO_LE25FW418A,
9010 .total_size = 512,
9011 .page_size = 256,
9012 .feature_bits = FEATURE_WRSR_WREN,
9013 .tested = TEST_UNTESTED,
9014 .probe = probe_spi_res2,
9015 .probe_timing = TIMING_ZERO,
9016 .block_erasers = {
9017 {
9018 .eraseblocks = { {4 * 1024, 128} },
9019 .block_erase = spi_block_erase_d7,
9020 }, {
9021 .eraseblocks = { {64 * 1024, 8} },
9022 .block_erase = spi_block_erase_d8,
9023 }, {
9024 .eraseblocks = { {512 * 1024, 1} },
9025 .block_erase = spi_block_erase_c7,
9026 }
9027 },
9028 .printlock = spi_prettyprint_status_register_default_bp2,
9029 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9030 .write = spi_chip_write_256,
9031 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9032 .voltage = {2700, 3600},
9033 },
9034
9035 {
9036 .vendor = "Sanyo",
9037 .name = "LE25FW806",
9038 .bustype = BUS_SPI,
9039 .manufacture_id = SANYO_ID,
9040 .model_id = SANYO_LE25FW806,
9041 .total_size = 1024,
9042 .page_size = 256,
9043 .feature_bits = FEATURE_WRSR_WREN,
9044 .tested = TEST_UNTESTED,
9045 .probe = probe_spi_res2,
9046 .probe_timing = TIMING_ZERO,
9047 .block_erasers = {
9048 {
9049 .eraseblocks = { {4 * 1024, 256} },
9050 .block_erase = spi_block_erase_20,
9051 }, {
9052 .eraseblocks = { {4 * 1024, 256} },
9053 .block_erase = spi_block_erase_d7,
9054 }, {
9055 .eraseblocks = { {64 * 1024, 16} },
9056 .block_erase = spi_block_erase_d8,
9057 }, {
9058 .eraseblocks = { {1024 * 1024, 1} },
9059 .block_erase = spi_block_erase_c7,
9060 }
9061 },
9062 .printlock = spi_prettyprint_status_register_default_bp2,
9063 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9064 .write = spi_chip_write_256,
9065 .read = spi_chip_read,
9066 .voltage = {2700, 3600},
9067 },
9068
9069 {
9070 .vendor = "Sanyo",
9071 .name = "LE25FW808",
9072 .bustype = BUS_SPI,
9073 .manufacture_id = SANYO_ID,
9074 .model_id = SANYO_LE25FW808,
9075 .total_size = 1024,
9076 .page_size = 256,
9077 .feature_bits = FEATURE_WRSR_WREN,
9078 .tested = TEST_UNTESTED,
9079 .probe = probe_spi_res2,
9080 .probe_timing = TIMING_ZERO,
9081 .block_erasers = {
9082 {
9083 .eraseblocks = { {8 * 1024, 128} },
9084 .block_erase = spi_block_erase_d7,
9085 }, {
9086 .eraseblocks = { {64 * 1024, 16} },
9087 .block_erase = spi_block_erase_d8,
9088 }, {
9089 .eraseblocks = { {1024 * 1024, 1} },
9090 .block_erase = spi_block_erase_c7,
9091 }
9092 },
9093 .printlock = spi_prettyprint_status_register_default_bp2,
9094 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
9095 .write = spi_chip_write_256,
9096 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
9097 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +00009098 },
9099
9100 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009101 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009102 .name = "LH28F008BJT-BTLZ1",
9103 .bustype = BUS_PARALLEL,
9104 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +00009105 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +00009106 .total_size = 1024,
9107 .page_size = 64 * 1024,
9108 .tested = TEST_OK_PREW,
9109 .probe = probe_82802ab,
9110 .probe_timing = TIMING_ZERO,
9111 .block_erasers =
9112 {
9113 {
9114 .eraseblocks = {
9115 {8 * 1024, 8},
9116 {64 * 1024, 15}
9117 },
9118 .block_erase = erase_block_82802ab,
9119 }, {
9120 .eraseblocks = { {1024 * 1024, 1} },
9121 .block_erase = erase_sector_49lfxxxc,
9122 }
9123 },
9124 .unlock = unlock_lh28f008bjt,
9125 .write = write_82802ab,
9126 .read = read_memmapped,
9127 .voltage = {2700, 3600},
9128 },
9129
9130 {
9131 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009132 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009133 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009134 .manufacture_id = SHARP_ID,
9135 .model_id = SHARP_LHF00L04,
9136 .total_size = 1024,
9137 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009138 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009139 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009140 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009141 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009142 .block_erasers =
9143 {
9144 {
9145 .eraseblocks = {
9146 {64 * 1024, 15},
9147 {8 * 1024, 8}
9148 },
Sean Nelson28accc22010-03-19 18:47:06 +00009149 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009150 }, {
9151 .eraseblocks = {
9152 {1024 * 1024, 1}
9153 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00009154 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00009155 },
9156 },
Sean Nelson28accc22010-03-19 18:47:06 +00009157 .unlock = unlock_82802ab,
9158 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009160 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009161 },
9162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009163 {
9164 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00009165 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009166 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009167 .manufacture_id = SPANSION_ID,
9168 .model_id = SPANSION_S25FL004A,
9169 .total_size = 512,
9170 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009171 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009172 .tested = TEST_UNTESTED,
9173 .probe = probe_spi_rdid,
9174 .probe_timing = TIMING_ZERO,
9175 .block_erasers =
9176 {
9177 {
9178 .eraseblocks = { {64 * 1024, 8} },
9179 .block_erase = spi_block_erase_d8,
9180 }, {
9181 .eraseblocks = { {512 * 1024, 1} },
9182 .block_erase = spi_block_erase_c7,
9183 }
9184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009185 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009186 .unlock = spi_disable_blockprotect,
9187 .write = spi_chip_write_256,
9188 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009189 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009190 },
9191
9192 {
9193 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00009194 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009195 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00009196 .manufacture_id = SPANSION_ID,
9197 .model_id = SPANSION_S25FL008A,
9198 .total_size = 1024,
9199 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009200 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009201 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00009202 .probe = probe_spi_rdid,
9203 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00009204 .block_erasers =
9205 {
9206 {
9207 .eraseblocks = { {64 * 1024, 16} },
9208 .block_erase = spi_block_erase_d8,
9209 }, {
9210 .eraseblocks = { {1024 * 1024, 1} },
9211 .block_erase = spi_block_erase_c7,
9212 }
9213 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009214 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009215 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00009216 .write = spi_chip_write_256,
9217 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009218 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00009219 },
9220
9221 {
9222 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009223 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009224 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009225 .manufacture_id = SPANSION_ID,
9226 .model_id = SPANSION_S25FL016A,
9227 .total_size = 2048,
9228 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009229 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009230 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009231 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009232 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00009233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = { {64 * 1024, 32} },
9237 .block_erase = spi_block_erase_d8,
9238 }, {
9239 .eraseblocks = { {2 * 1024 * 1024, 1} },
9240 .block_erase = spi_block_erase_c7,
9241 }
9242 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009243 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009244 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009245 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009246 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009247 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009248 },
9249
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009250 {
Rudy Hostf4e57772010-11-29 00:37:49 +00009251 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009252 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009253 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009254 .manufacture_id = SPANSION_ID,
9255 .model_id = SPANSION_S25FL032A,
9256 .total_size = 4096,
9257 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009258 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009259 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +00009260 .probe = probe_spi_rdid,
9261 .probe_timing = TIMING_ZERO,
9262 .block_erasers =
9263 {
9264 {
9265 .eraseblocks = { {64 * 1024, 64} },
9266 .block_erase = spi_block_erase_d8,
9267 }, {
9268 .eraseblocks = { {4 * 1024 * 1024, 1} },
9269 .block_erase = spi_block_erase_c7,
9270 }
9271 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009272 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009273 .unlock = spi_disable_blockprotect,
9274 .write = spi_chip_write_256,
9275 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009276 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009277 },
9278
9279 {
9280 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009281 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009282 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00009283 .manufacture_id = SPANSION_ID,
9284 .model_id = SPANSION_S25FL064A,
9285 .total_size = 8192,
9286 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009287 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00009288 .tested = TEST_OK_PREW,
9289 .probe = probe_spi_rdid,
9290 .probe_timing = TIMING_ZERO,
9291 .block_erasers =
9292 {
9293 {
9294 .eraseblocks = { {64 * 1024, 128} },
9295 .block_erase = spi_block_erase_d8,
9296 }, {
9297 .eraseblocks = { {8 * 1024 * 1024, 1} },
9298 .block_erase = spi_block_erase_c7,
9299 }
9300 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009301 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +00009302 .unlock = spi_disable_blockprotect,
9303 .write = spi_chip_write_256,
9304 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009305 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00009306 },
9307
9308 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +00009309 .vendor = "Spansion",
9310 .name = "S25FL204K",
9311 .bustype = BUS_SPI,
9312 .manufacture_id = SPANSION_ID,
9313 .model_id = SPANSION_S25FL204,
9314 .total_size = 512,
9315 .page_size = 256,
9316 .feature_bits = FEATURE_WRSR_WREN,
9317 .tested = TEST_UNTESTED,
9318 .probe = probe_spi_rdid,
9319 .probe_timing = TIMING_ZERO,
9320 .block_erasers = {
9321 {
9322 .eraseblocks = { {4 * 1024, 128} },
9323 .block_erase = spi_block_erase_20,
9324 }, {
9325 .eraseblocks = { {64 * 1024, 8} },
9326 .block_erase = spi_block_erase_d8,
9327 }, {
9328 .eraseblocks = { { 512 * 1024, 1} },
9329 .block_erase = spi_block_erase_60,
9330 }, {
9331 .eraseblocks = { { 512 * 1024, 1} },
9332 .block_erase = spi_block_erase_c7,
9333 }
9334 },
9335 .printlock = spi_prettyprint_status_register_default_bp3,
9336 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9337 .write = spi_chip_write_256,
9338 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9339 .voltage = {2700, 3600},
9340 },
9341
9342 {
9343 .vendor = "Spansion",
9344 .name = "S25FL208K",
9345 .bustype = BUS_SPI,
9346 .manufacture_id = SPANSION_ID,
9347 .model_id = SPANSION_S25FL208,
9348 .total_size = 1024,
9349 .page_size = 256,
9350 .feature_bits = FEATURE_WRSR_WREN,
9351 .tested = TEST_UNTESTED,
9352 .probe = probe_spi_rdid,
9353 .probe_timing = TIMING_ZERO,
9354 .block_erasers = {
9355 {
9356 .eraseblocks = { {4 * 1024, 256} },
9357 .block_erase = spi_block_erase_20,
9358 }, {
9359 .eraseblocks = { {64 * 1024, 16} },
9360 .block_erase = spi_block_erase_d8,
9361 }, {
9362 .eraseblocks = { { 1024 * 1024, 1} },
9363 .block_erase = spi_block_erase_60,
9364 }, {
9365 .eraseblocks = { { 1024 * 1024, 1} },
9366 .block_erase = spi_block_erase_c7,
9367 }
9368 },
9369 .printlock = spi_prettyprint_status_register_default_bp3,
9370 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9371 .write = spi_chip_write_256,
9372 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9373 .voltage = {2700, 3600},
9374 },
9375
9376 {
9377 .vendor = "Spansion",
9378 .name = "S25FL116K/S25FL216K",
9379 .bustype = BUS_SPI,
9380 .manufacture_id = SPANSION_ID,
9381 .model_id = SPANSION_S25FL216,
9382 .total_size = 2048,
9383 .page_size = 256,
9384 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
9385 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9386 .tested = TEST_UNTESTED,
9387 .probe = probe_spi_rdid,
9388 .probe_timing = TIMING_ZERO,
9389 .block_erasers = {
9390 {
9391 .eraseblocks = { {4 * 1024, 512} },
9392 .block_erase = spi_block_erase_20,
9393 }, {
9394 .eraseblocks = { {64 * 1024, 32} },
9395 .block_erase = spi_block_erase_d8,
9396 }, {
9397 .eraseblocks = { { 2048 * 1024, 1} },
9398 .block_erase = spi_block_erase_60,
9399 }, {
9400 .eraseblocks = { { 2048 * 1024, 1} },
9401 .block_erase = spi_block_erase_c7,
9402 }
9403 },
9404 .printlock = spi_prettyprint_status_register_default_bp3,
9405 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
9406 .write = spi_chip_write_256,
9407 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
9408 .voltage = {2700, 3600},
9409 },
9410
9411 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00009412 .vendor = "Spansion",
9413 .name = "S25FL128S......0", /* uniform 256kB sectors */
9414 .bustype = BUS_SPI,
9415 .manufacture_id = SPANSION_ID,
9416 .model_id = SPANSION_S25FL128,
9417 .total_size = 16384,
9418 .page_size = 256,
9419 /* supports 4B addressing */
9420 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
9421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9422 .tested = TEST_UNTESTED,
9423 .probe = probe_spi_rdid,
9424 .probe_timing = TIMING_ZERO,
9425 .block_erasers = {
9426 {
9427 .eraseblocks = { {4 * 1024, 4096} },
9428 .block_erase = spi_block_erase_20,
9429 }, {
9430 .eraseblocks = { {256 * 1024, 64} },
9431 .block_erase = spi_block_erase_d8,
9432 }, {
9433 .eraseblocks = { { 16384 * 1024, 1} },
9434 .block_erase = spi_block_erase_60,
9435 }, {
9436 .eraseblocks = { { 16384 * 1024, 1} },
9437 .block_erase = spi_block_erase_c7,
9438 }
9439 },
9440 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
9441 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
9442 .write = spi_chip_write_256, /* Multi I/O supported */
9443 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9444 .voltage = {2700, 3600},
9445 },
9446
9447 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009448 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00009449 .name = "SST25LF040A",
9450 .bustype = BUS_SPI,
9451 .manufacture_id = SST_ID,
9452 .model_id = SST_SST25VF040_REMS,
9453 .total_size = 512,
9454 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009455 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00009456 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00009457 .probe = probe_spi_res2,
9458 .probe_timing = TIMING_ZERO,
9459 .block_erasers =
9460 {
9461 {
9462 .eraseblocks = { {4 * 1024, 128} },
9463 .block_erase = spi_block_erase_20,
9464 }, {
9465 .eraseblocks = { {32 * 1024, 16} },
9466 .block_erase = spi_block_erase_52,
9467 }, {
9468 .eraseblocks = { {512 * 1024, 1} },
9469 .block_erase = spi_block_erase_60,
9470 },
9471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009472 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009473 .unlock = spi_disable_blockprotect,
9474 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9475 .read = spi_chip_read,
9476 .voltage = {3000, 3600},
9477 },
9478
9479 {
9480 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +00009481 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +00009482 .bustype = BUS_SPI,
9483 .manufacture_id = SST_ID,
9484 .model_id = SST_SST25VF080_REMS,
9485 .total_size = 1024,
9486 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009487 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +00009488 .tested = TEST_UNTESTED,
9489 .probe = probe_spi_res2,
9490 .probe_timing = TIMING_ZERO,
9491 .block_erasers =
9492 {
9493 {
9494 .eraseblocks = { {4 * 1024, 256} },
9495 .block_erase = spi_block_erase_20,
9496 }, {
9497 .eraseblocks = { {32 * 1024, 32} },
9498 .block_erase = spi_block_erase_52,
9499 }, {
9500 .eraseblocks = { {1024 * 1024, 1} },
9501 .block_erase = spi_block_erase_60,
9502 },
9503 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009504 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +00009505 .unlock = spi_disable_blockprotect,
9506 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
9507 .read = spi_chip_read,
9508 .voltage = {3000, 3600},
9509 },
9510
9511 {
9512 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009513 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009514 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00009515 .manufacture_id = SST_ID,
9516 .model_id = SST_SST25VF010_REMS,
9517 .total_size = 128,
9518 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009519 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00009520 .tested = TEST_OK_PREW,
9521 .probe = probe_spi_rems,
9522 .probe_timing = TIMING_ZERO,
9523 .block_erasers =
9524 {
9525 {
9526 .eraseblocks = { {4 * 1024, 32} },
9527 .block_erase = spi_block_erase_20,
9528 }, {
9529 .eraseblocks = { {32 * 1024, 4} },
9530 .block_erase = spi_block_erase_52,
9531 }, {
9532 .eraseblocks = { {128 * 1024, 1} },
9533 .block_erase = spi_block_erase_60,
9534 },
9535 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009536 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +00009537 .unlock = spi_disable_blockprotect,
9538 .write = spi_chip_write_1,
9539 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009540 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00009541 },
9542
9543 {
9544 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009545 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009546 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009547 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009548 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009549 .total_size = 2048,
9550 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +00009551 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +00009552 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009553 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009554 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009555 .block_erasers =
9556 {
9557 {
9558 .eraseblocks = { {4 * 1024, 512} },
9559 .block_erase = spi_block_erase_20,
9560 }, {
9561 .eraseblocks = { {32 * 1024, 64} },
9562 .block_erase = spi_block_erase_52,
9563 }, {
9564 .eraseblocks = { {64 * 1024, 32} },
9565 .block_erase = spi_block_erase_d8,
9566 }, {
9567 .eraseblocks = { {2 * 1024 * 1024, 1} },
9568 .block_erase = spi_block_erase_60,
9569 }, {
9570 .eraseblocks = { {2 * 1024 * 1024, 1} },
9571 .block_erase = spi_block_erase_c7,
9572 },
9573 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009574 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009575 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009576 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009577 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009578 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009579 },
9580
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009581 {
9582 .vendor = "SST",
9583 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009584 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009585 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009586 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009587 .total_size = 4096,
9588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009589 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00009590 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009591 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009592 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009593 .block_erasers =
9594 {
9595 {
9596 .eraseblocks = { {4 * 1024, 1024} },
9597 .block_erase = spi_block_erase_20,
9598 }, {
9599 .eraseblocks = { {32 * 1024, 128} },
9600 .block_erase = spi_block_erase_52,
9601 }, {
9602 .eraseblocks = { {64 * 1024, 64} },
9603 .block_erase = spi_block_erase_d8,
9604 }, {
9605 .eraseblocks = { {4 * 1024 * 1024, 1} },
9606 .block_erase = spi_block_erase_60,
9607 }, {
9608 .eraseblocks = { {4 * 1024 * 1024, 1} },
9609 .block_erase = spi_block_erase_c7,
9610 },
9611 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009612 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009613 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009614 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009615 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009616 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009617 },
9618
9619 {
9620 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009621 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009622 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009623 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009624 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009625 .total_size = 8192,
9626 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009627 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00009628 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009629 .probe = probe_spi_rdid,
9630 .probe_timing = TIMING_ZERO,
9631 .block_erasers =
9632 {
9633 {
9634 .eraseblocks = { {4 * 1024, 2048} },
9635 .block_erase = spi_block_erase_20,
9636 }, {
9637 .eraseblocks = { {32 * 1024, 256} },
9638 .block_erase = spi_block_erase_52,
9639 }, {
9640 .eraseblocks = { {64 * 1024, 128} },
9641 .block_erase = spi_block_erase_d8,
9642 }, {
9643 .eraseblocks = { {8 * 1024 * 1024, 1} },
9644 .block_erase = spi_block_erase_60,
9645 }, {
9646 .eraseblocks = { {8 * 1024 * 1024, 1} },
9647 .block_erase = spi_block_erase_c7,
9648 },
9649 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009650 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009651 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00009652 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009653 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009654 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00009655 },
9656
9657 {
9658 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009659 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009660 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009661 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009662 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009663 .total_size = 512,
9664 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009665 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009666 .tested = TEST_OK_PR,
9667 .probe = probe_spi_rems,
9668 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009669 .block_erasers =
9670 {
9671 {
9672 .eraseblocks = { {4 * 1024, 128} },
9673 .block_erase = spi_block_erase_20,
9674 }, {
9675 .eraseblocks = { {32 * 1024, 16} },
9676 .block_erase = spi_block_erase_52,
9677 }, {
9678 .eraseblocks = { {512 * 1024, 1} },
9679 .block_erase = spi_block_erase_60,
9680 },
9681 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009682 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009683 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009684 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009685 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009686 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009687 },
9688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009689 {
9690 .vendor = "SST",
9691 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009692 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009693 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009694 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009695 .total_size = 512,
9696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009697 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009699 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009700 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009701 .block_erasers =
9702 {
9703 {
9704 .eraseblocks = { {4 * 1024, 128} },
9705 .block_erase = spi_block_erase_20,
9706 }, {
9707 .eraseblocks = { {32 * 1024, 16} },
9708 .block_erase = spi_block_erase_52,
9709 }, {
9710 .eraseblocks = { {64 * 1024, 8} },
9711 .block_erase = spi_block_erase_d8,
9712 }, {
9713 .eraseblocks = { {512 * 1024, 1} },
9714 .block_erase = spi_block_erase_60,
9715 }, {
9716 .eraseblocks = { {512 * 1024, 1} },
9717 .block_erase = spi_block_erase_c7,
9718 },
9719 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009720 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009721 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009722 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00009723 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009724 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00009725 },
9726
9727 {
9728 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00009729 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009730 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00009731 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009732 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00009733 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009734 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009735 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009736 .tested = TEST_OK_PREW,
Peter Stugefd9217d2009-01-26 03:37:40 +00009737 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009738 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009739 .block_erasers =
9740 {
9741 {
9742 .eraseblocks = { {4 * 1024, 128} },
9743 .block_erase = spi_block_erase_20,
9744 }, {
9745 .eraseblocks = { {32 * 1024, 16} },
9746 .block_erase = spi_block_erase_52,
9747 }, {
9748 .eraseblocks = { {64 * 1024, 8} },
9749 .block_erase = spi_block_erase_d8,
9750 }, {
9751 .eraseblocks = { {512 * 1024, 1} },
9752 .block_erase = spi_block_erase_60,
9753 }, {
9754 .eraseblocks = { {512 * 1024, 1} },
9755 .block_erase = spi_block_erase_c7,
9756 },
9757 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009758 .printlock = spi_prettyprint_status_register_sst25vf040b,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009759 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009760 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00009761 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009762 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00009763 },
9764
9765 {
9766 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009767 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009768 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009769 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009770 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009771 .total_size = 1024,
9772 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00009773 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00009774 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009775 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009776 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00009777 .block_erasers =
9778 {
9779 {
9780 .eraseblocks = { {4 * 1024, 256} },
9781 .block_erase = spi_block_erase_20,
9782 }, {
9783 .eraseblocks = { {32 * 1024, 32} },
9784 .block_erase = spi_block_erase_52,
9785 }, {
9786 .eraseblocks = { {64 * 1024, 16} },
9787 .block_erase = spi_block_erase_d8,
9788 }, {
9789 .eraseblocks = { {1024 * 1024, 1} },
9790 .block_erase = spi_block_erase_60,
9791 }, {
9792 .eraseblocks = { {1024 * 1024, 1} },
9793 .block_erase = spi_block_erase_c7,
9794 },
9795 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00009796 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009797 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00009798 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009799 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009800 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009801 },
9802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009803 {
9804 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +00009805 .name = "SST25WF512",
9806 .bustype = BUS_SPI,
9807 .manufacture_id = SST_ID,
9808 .model_id = SST_SST25WF512,
9809 .total_size = 64,
9810 .page_size = 256,
9811 .feature_bits = FEATURE_WRSR_EITHER,
9812 .tested = TEST_UNTESTED,
9813 .probe = probe_spi_rdid,
9814 .probe_timing = TIMING_ZERO,
9815 .block_erasers =
9816 {
9817 {
9818 .eraseblocks = { {4 * 1024, 16} },
9819 .block_erase = spi_block_erase_20,
9820 }, {
9821 .eraseblocks = { {32 * 1024, 2} },
9822 .block_erase = spi_block_erase_52,
9823 }, {
9824 .eraseblocks = { {1024 * 64, 1} },
9825 .block_erase = spi_block_erase_60,
9826 }, {
9827 .eraseblocks = { {1024 * 64, 1} },
9828 .block_erase = spi_block_erase_c7,
9829 },
9830 },
9831 .unlock = spi_disable_blockprotect,
9832 .write = spi_aai_write,
9833 .read = spi_chip_read, /* Fast read (0x0B) supported */
9834 .voltage = {1650, 1950},
9835 },
9836
9837 {
9838 .vendor = "SST",
9839 .name = "SST25WF010",
9840 .bustype = BUS_SPI,
9841 .manufacture_id = SST_ID,
9842 .model_id = SST_SST25WF010,
9843 .total_size = 128,
9844 .page_size = 256,
9845 .feature_bits = FEATURE_WRSR_EITHER,
9846 .tested = TEST_UNTESTED,
9847 .probe = probe_spi_rdid,
9848 .probe_timing = TIMING_ZERO,
9849 .block_erasers =
9850 {
9851 {
9852 .eraseblocks = { {4 * 1024, 32} },
9853 .block_erase = spi_block_erase_20,
9854 }, {
9855 .eraseblocks = { {32 * 1024, 4} },
9856 .block_erase = spi_block_erase_52,
9857 }, {
9858 .eraseblocks = { {1024 * 128, 1} },
9859 .block_erase = spi_block_erase_60,
9860 }, {
9861 .eraseblocks = { {1024 * 128, 1} },
9862 .block_erase = spi_block_erase_c7,
9863 },
9864 },
9865 .unlock = spi_disable_blockprotect,
9866 .write = spi_aai_write,
9867 .read = spi_chip_read, /* Fast read (0x0B) supported */
9868 .voltage = {1650, 1950},
9869 },
9870
9871 {
9872 .vendor = "SST",
9873 .name = "SST25WF020",
9874 .bustype = BUS_SPI,
9875 .manufacture_id = SST_ID,
9876 .model_id = SST_SST25WF020,
9877 .total_size = 256,
9878 .page_size = 256,
9879 .feature_bits = FEATURE_WRSR_EITHER,
9880 .tested = TEST_UNTESTED,
9881 .probe = probe_spi_rdid,
9882 .probe_timing = TIMING_ZERO,
9883 .block_erasers =
9884 {
9885 {
9886 .eraseblocks = { {4 * 1024, 64} },
9887 .block_erase = spi_block_erase_20,
9888 }, {
9889 .eraseblocks = { {32 * 1024, 8} },
9890 .block_erase = spi_block_erase_52,
9891 }, {
9892 .eraseblocks = { {64 * 1024, 4} },
9893 .block_erase = spi_block_erase_d8,
9894 }, {
9895 .eraseblocks = { {1024 * 256, 1} },
9896 .block_erase = spi_block_erase_60,
9897 }, {
9898 .eraseblocks = { {1024 * 256, 1} },
9899 .block_erase = spi_block_erase_c7,
9900 },
9901 },
9902 .unlock = spi_disable_blockprotect,
9903 .write = spi_aai_write,
9904 .read = spi_chip_read, /* Fast read (0x0B) supported */
9905 .voltage = {1650, 1950},
9906 },
9907
9908 {
9909 .vendor = "SST",
9910 .name = "SST25WF040",
9911 .bustype = BUS_SPI,
9912 .manufacture_id = SST_ID,
9913 .model_id = SST_SST25WF040,
9914 .total_size = 512,
9915 .page_size = 256,
9916 .feature_bits = FEATURE_WRSR_EITHER,
9917 .tested = TEST_UNTESTED,
9918 .probe = probe_spi_rdid,
9919 .probe_timing = TIMING_ZERO,
9920 .block_erasers =
9921 {
9922 {
9923 .eraseblocks = { {4 * 1024, 128} },
9924 .block_erase = spi_block_erase_20,
9925 }, {
9926 .eraseblocks = { {32 * 1024, 16} },
9927 .block_erase = spi_block_erase_52,
9928 }, {
9929 .eraseblocks = { {64 * 1024, 8} },
9930 .block_erase = spi_block_erase_d8,
9931 }, {
9932 .eraseblocks = { {1024 * 512, 1} },
9933 .block_erase = spi_block_erase_60,
9934 }, {
9935 .eraseblocks = { {1024 * 512, 1} },
9936 .block_erase = spi_block_erase_c7,
9937 },
9938 },
9939 .unlock = spi_disable_blockprotect,
9940 .write = spi_aai_write,
9941 .read = spi_chip_read, /* Fast read (0x0B) supported */
9942 .voltage = {1650, 1950},
9943 },
9944
9945 {
9946 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009947 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009948 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009949 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009950 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009951 .total_size = 512,
9952 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00009953 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009954 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00009955 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00009956 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00009957 .block_erasers =
9958 {
9959 {
9960 .eraseblocks = { {128, 4096} },
9961 .block_erase = erase_sector_28sf040,
9962 }, {
9963 .eraseblocks = { {512 * 1024, 1} },
9964 .block_erase = erase_chip_28sf040,
9965 }
9966 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00009967 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009968 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009969 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009970 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009971 },
9972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009973 {
9974 .vendor = "SST",
9975 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009976 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009977 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009978 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009979 .total_size = 128,
9980 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009981 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009982 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009983 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009984 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00009985 .block_erasers =
9986 {
9987 {
9988 .eraseblocks = { {128 * 1024, 1} },
9989 .block_erase = erase_chip_block_jedec,
9990 }
9991 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009992 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009993 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009994 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009995 },
9996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009997 {
9998 .vendor = "SST",
9999 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010000 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010001 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010002 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010003 .total_size = 128,
10004 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010005 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010006 .tested = TEST_UNTESTED,
10007 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010008 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010009 .block_erasers =
10010 {
10011 {
10012 .eraseblocks = { {128 * 1024, 1} },
10013 .block_erase = erase_chip_block_jedec,
10014 }
10015 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010016 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010018 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010019 },
10020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010021 {
10022 .vendor = "SST",
10023 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010024 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010025 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010026 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010027 .total_size = 256,
10028 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010029 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010030 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010031 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010032 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010033 .block_erasers =
10034 {
10035 {
10036 .eraseblocks = { {256 * 1024, 1} },
10037 .block_erase = erase_chip_block_jedec,
10038 }
10039 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010040 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010042 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010043 },
10044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010045 {
10046 .vendor = "SST",
10047 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010048 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010049 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010050 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010051 .total_size = 256,
10052 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000010053 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010054 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010055 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010056 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010057 .block_erasers =
10058 {
10059 {
10060 .eraseblocks = { {256 * 1024, 1} },
10061 .block_erase = erase_chip_block_jedec,
10062 }
10063 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010064 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010066 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010067 },
10068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010069 {
10070 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000010071 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010072 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010073 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010074 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010075 .total_size = 64,
10076 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010077 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000010078 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010079 .probe = probe_jedec,
10080 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000010081 .block_erasers =
10082 {
10083 {
10084 .eraseblocks = { {4 * 1024, 16} },
10085 .block_erase = erase_sector_jedec,
10086 }, {
10087 .eraseblocks = { {64 * 1024, 1} },
10088 .block_erase = erase_chip_block_jedec,
10089 }
10090 },
Sean Nelson35727f72010-01-28 23:55:12 +000010091 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000010092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010093 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000010094 },
10095
10096 {
10097 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010098 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010099 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010100 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010101 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010102 .total_size = 128,
10103 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010104 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000010105 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010106 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010107 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010108 .block_erasers =
10109 {
10110 {
10111 .eraseblocks = { {4 * 1024, 32} },
10112 .block_erase = erase_sector_jedec,
10113 }, {
10114 .eraseblocks = { {128 * 1024, 1} },
10115 .block_erase = erase_chip_block_jedec,
10116 }
10117 },
Sean Nelson35727f72010-01-28 23:55:12 +000010118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010120 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010121 },
10122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010123 {
10124 .vendor = "SST",
10125 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010126 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010127 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010128 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010129 .total_size = 256,
10130 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010131 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000010132 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010133 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010134 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010135 .block_erasers =
10136 {
10137 {
10138 .eraseblocks = { {4 * 1024, 64} },
10139 .block_erase = erase_sector_jedec,
10140 }, {
10141 .eraseblocks = { {256 * 1024, 1} },
10142 .block_erase = erase_chip_block_jedec,
10143 }
10144 },
Sean Nelson35727f72010-01-28 23:55:12 +000010145 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010147 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010148 },
10149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010150 {
10151 .vendor = "SST",
10152 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010153 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010154 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010155 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010156 .total_size = 512,
10157 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010158 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010159 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010160 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010161 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010162 .block_erasers =
10163 {
10164 {
10165 .eraseblocks = { {4 * 1024, 128} },
10166 .block_erase = erase_sector_jedec,
10167 }, {
10168 .eraseblocks = { {512 * 1024, 1} },
10169 .block_erase = erase_chip_block_jedec,
10170 }
10171 },
Sean Nelson35727f72010-01-28 23:55:12 +000010172 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010173 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010174 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010175 },
10176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010177 {
10178 .vendor = "SST",
10179 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010181 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010182 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010183 .total_size = 64,
10184 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010185 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000010186 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010187 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010188 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010189 .block_erasers =
10190 {
10191 {
10192 .eraseblocks = { {4 * 1024, 16} },
10193 .block_erase = erase_sector_jedec,
10194 }, {
10195 .eraseblocks = { {64 * 1024, 1} },
10196 .block_erase = erase_chip_block_jedec,
10197 }
10198 },
Sean Nelson35727f72010-01-28 23:55:12 +000010199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010201 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010202 },
10203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010204 {
10205 .vendor = "SST",
10206 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010207 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010208 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010209 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010210 .total_size = 128,
10211 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010212 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000010213 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010214 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010215 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010216 .block_erasers =
10217 {
10218 {
10219 .eraseblocks = { {4 * 1024, 32} },
10220 .block_erase = erase_sector_jedec,
10221 }, {
10222 .eraseblocks = { {128 * 1024, 1} },
10223 .block_erase = erase_chip_block_jedec,
10224 }
10225 },
Sean Nelson35727f72010-01-28 23:55:12 +000010226 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010228 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010229 },
10230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010231 {
10232 .vendor = "SST",
10233 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010235 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010236 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010237 .total_size = 256,
10238 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010239 .feature_bits = FEATURE_EITHER_RESET,
10240 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010241 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010242 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010243 .block_erasers =
10244 {
10245 {
10246 .eraseblocks = { {4 * 1024, 64} },
10247 .block_erase = erase_sector_jedec,
10248 }, {
10249 .eraseblocks = { {256 * 1024, 1} },
10250 .block_erase = erase_chip_block_jedec,
10251 }
10252 },
Sean Nelson35727f72010-01-28 23:55:12 +000010253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010255 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010256 },
10257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010258 {
10259 .vendor = "SST",
10260 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010261 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010263 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010264 .total_size = 512,
10265 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010266 .feature_bits = FEATURE_EITHER_RESET,
10267 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010268 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010269 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010270 .block_erasers =
10271 {
10272 {
10273 .eraseblocks = { {4 * 1024, 128} },
10274 .block_erase = erase_sector_jedec,
10275 }, {
10276 .eraseblocks = { {512 * 1024, 1} },
10277 .block_erase = erase_chip_block_jedec,
10278 }
10279 },
Sean Nelson35727f72010-01-28 23:55:12 +000010280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010282 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000010283 },
FENG yu ningff692fb2008-12-08 18:15:10 +000010284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010285 {
10286 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000010287 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010288 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000010289 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010290 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000010291 .total_size = 1024,
10292 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010293 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000010294 .tested = TEST_UNTESTED,
10295 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010296 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010297 .block_erasers =
10298 {
10299 {
10300 .eraseblocks = { {4 * 1024, 256} },
10301 .block_erase = erase_sector_jedec,
10302 }, {
10303 .eraseblocks = { {64 * 1024, 16} },
10304 .block_erase = erase_block_jedec,
10305 }, {
10306 .eraseblocks = { {1024 * 1024, 1} },
10307 .block_erase = erase_chip_block_jedec,
10308 }
10309 },
Sean Nelson35727f72010-01-28 23:55:12 +000010310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010312 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000010313 },
10314
10315 {
10316 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010317 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010318 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010319 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010320 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010321 .total_size = 256,
10322 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010323 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010324 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010325 .probe = probe_jedec,
10326 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010327 .block_erasers =
10328 {
10329 {
10330 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010331 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010332 }, {
10333 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010334 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010335 }, {
10336 .eraseblocks = { {256 * 1024, 1} },
10337 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10338 }
10339 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010340 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010341 .unlock = unlock_sst_fwhub,
10342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010344 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010345 },
10346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010347 {
10348 .vendor = "SST",
10349 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010350 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010351 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010352 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010353 .total_size = 384,
10354 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010355 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000010356 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010357 .probe = probe_jedec,
10358 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010359 .block_erasers =
10360 {
10361 {
10362 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010363 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010364 }, {
10365 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010366 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010367 }, {
10368 .eraseblocks = { {384 * 1024, 1} },
10369 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10370 }
10371 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010372 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010373 .unlock = unlock_sst_fwhub,
10374 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010375 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010376 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010377 },
10378
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010379 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010380 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
10381 * and is only honored for 64k block erase, but not 4k sector erase.
10382 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010383 .vendor = "SST",
10384 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010385 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010386 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010387 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010388 .total_size = 512,
10389 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010390 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000010391 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010392 .probe = probe_jedec,
10393 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010394 .block_erasers =
10395 {
10396 {
10397 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010398 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010399 }, {
10400 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010401 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010402 }, {
10403 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000010404 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000010405 },
10406 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010407 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010408 .unlock = unlock_sst_fwhub,
10409 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010411 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010412 },
10413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010414 {
10415 .vendor = "SST",
10416 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010417 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010418 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010419 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010420 .total_size = 512,
10421 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010422 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010423 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010424 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010425 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010426 .block_erasers =
10427 {
10428 {
10429 .eraseblocks = { {4 * 1024, 128} },
10430 .block_erase = erase_sector_49lfxxxc,
10431 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010432 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010433 {64 * 1024, 7},
10434 {32 * 1024, 1},
10435 {8 * 1024, 2},
10436 {16 * 1024, 1},
10437 },
Sean Nelson69e58112010-03-23 17:10:28 +000010438 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010439 }
10440 },
Sean Nelson69e58112010-03-23 17:10:28 +000010441 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010442 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010444 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010445 },
10446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010447 {
10448 .vendor = "SST",
10449 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010450 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010451 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010452 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010453 .total_size = 1024,
10454 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010455 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010456 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010457 .probe = probe_jedec,
10458 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010459 .block_erasers =
10460 {
10461 {
10462 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010463 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010464 }, {
10465 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010466 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010467 }, {
10468 .eraseblocks = { {1024 * 1024, 1} },
10469 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
10470 }
10471 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010472 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000010473 .unlock = unlock_sst_fwhub,
10474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010476 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010477 },
10478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010479 {
10480 .vendor = "SST",
10481 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010482 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010483 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010484 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010485 .total_size = 1024,
10486 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010487 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010488 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010489 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010490 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010491 .block_erasers =
10492 {
10493 {
10494 .eraseblocks = { {4 * 1024, 256} },
10495 .block_erase = erase_sector_49lfxxxc,
10496 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010497 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010498 {64 * 1024, 15},
10499 {32 * 1024, 1},
10500 {8 * 1024, 2},
10501 {16 * 1024, 1},
10502 },
Sean Nelson69e58112010-03-23 17:10:28 +000010503 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010504 }
10505 },
Sean Nelson69e58112010-03-23 17:10:28 +000010506 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010507 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010509 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010510 },
10511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010512 {
10513 .vendor = "SST",
10514 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010515 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010516 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010517 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010518 .total_size = 2048,
10519 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010520 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +000010521 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010522 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010523 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010524 .block_erasers =
10525 {
10526 {
10527 .eraseblocks = { {4 * 1024, 512} },
10528 .block_erase = erase_sector_49lfxxxc,
10529 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010530 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010531 {64 * 1024, 31},
10532 {32 * 1024, 1},
10533 {8 * 1024, 2},
10534 {16 * 1024, 1},
10535 },
Sean Nelson69e58112010-03-23 17:10:28 +000010536 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010537 }
10538 },
Sean Nelson69e58112010-03-23 17:10:28 +000010539 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010540 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010541 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010542 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010543 },
10544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010545 {
10546 .vendor = "SST",
10547 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010548 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010549 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010550 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010551 .total_size = 256,
10552 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010553 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000010554 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010555 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010556 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010557 .block_erasers =
10558 {
10559 {
10560 .eraseblocks = { {4 * 1024, 64} },
10561 .block_erase = erase_sector_jedec,
10562 }, {
10563 .eraseblocks = { {16 * 1024, 16} },
10564 .block_erase = erase_block_jedec,
10565 }, {
10566 .eraseblocks = { {256 * 1024, 1} },
10567 .block_erase = NULL,
10568 }
10569 },
Sean Nelson35727f72010-01-28 23:55:12 +000010570 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010572 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000010573 },
10574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010575 {
10576 .vendor = "SST",
10577 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010578 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010579 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010580 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010581 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000010582 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010583 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010584 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010585 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010586 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010587 .block_erasers =
10588 {
10589 {
10590 .eraseblocks = { {4 * 1024, 64} },
10591 .block_erase = erase_sector_jedec,
10592 }, {
10593 .eraseblocks = { {16 * 1024, 16} },
10594 .block_erase = erase_block_jedec,
10595 }, {
10596 .eraseblocks = { {256 * 1024, 1} },
10597 .block_erase = NULL,
10598 }
10599 },
Sean Nelson35727f72010-01-28 23:55:12 +000010600 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010602 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010603 },
10604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010605 {
10606 .vendor = "SST",
10607 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010608 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010609 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010610 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010611 .total_size = 512,
10612 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010613 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010614 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010615 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000010616 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010617 .block_erasers =
10618 {
10619 {
10620 .eraseblocks = { {4 * 1024, 128} },
10621 .block_erase = erase_sector_jedec,
10622 }, {
10623 .eraseblocks = { {64 * 1024, 8} },
10624 .block_erase = erase_block_jedec,
10625 }, {
10626 .eraseblocks = { {512 * 1024, 1} },
10627 .block_erase = NULL,
10628 }
10629 },
Sean Nelson35727f72010-01-28 23:55:12 +000010630 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010632 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010633 },
10634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010635 {
10636 .vendor = "SST",
10637 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010638 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010639 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010640 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010641 .total_size = 512,
10642 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010643 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010644 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010645 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010646 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010647 .block_erasers =
10648 {
10649 {
10650 .eraseblocks = { {4 * 1024, 128} },
10651 .block_erase = erase_sector_jedec,
10652 }, {
10653 .eraseblocks = { {64 * 1024, 8} },
10654 .block_erase = erase_block_jedec,
10655 }, {
10656 .eraseblocks = { {512 * 1024, 1} },
10657 .block_erase = NULL,
10658 }
10659 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +000010660 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +000010661 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010663 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010664 },
10665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010666 {
10667 .vendor = "SST",
10668 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010669 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010670 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010671 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010672 .total_size = 1024,
10673 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000010674 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000010675 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010676 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010677 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010678 .block_erasers =
10679 {
10680 {
10681 .eraseblocks = { {4 * 1024, 256} },
10682 .block_erase = erase_sector_jedec,
10683 }, {
10684 .eraseblocks = { {64 * 1024, 16} },
10685 .block_erase = erase_block_jedec,
10686 }, {
10687 .eraseblocks = { {1024 * 1024, 1} },
10688 .block_erase = NULL,
10689 }
10690 },
Sean Nelson35727f72010-01-28 23:55:12 +000010691 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010692 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010693 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010694 },
10695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010696 {
10697 .vendor = "SST",
10698 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010699 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010700 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010701 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010702 .total_size = 2048,
10703 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010704 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000010705 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010706 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010707 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000010708 .block_erasers =
10709 {
10710 {
10711 .eraseblocks = { {4 * 1024, 512} },
10712 .block_erase = erase_sector_49lfxxxc,
10713 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010714 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000010715 {64 * 1024, 31},
10716 {32 * 1024, 1},
10717 {8 * 1024, 2},
10718 {16 * 1024, 1},
10719 },
Sean Nelson69e58112010-03-23 17:10:28 +000010720 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000010721 }
10722 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000010723 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010724 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010726 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010727 },
10728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010729 {
10730 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010731 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010732 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010733 .manufacture_id = ST_ID,
10734 .model_id = ST_M29F002B,
10735 .total_size = 256,
10736 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010737 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010738 .tested = TEST_UNTESTED,
10739 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010740 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010741 .block_erasers =
10742 {
10743 {
10744 .eraseblocks = {
10745 {16 * 1024, 1},
10746 {8 * 1024, 2},
10747 {32 * 1024, 1},
10748 {64 * 1024, 3},
10749 },
10750 .block_erase = erase_sector_jedec,
10751 }, {
10752 .eraseblocks = { {256 * 1024, 1} },
10753 .block_erase = erase_chip_block_jedec,
10754 }
10755 },
Sean Nelson35727f72010-01-28 23:55:12 +000010756 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010757 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010758 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010759 },
10760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010761 {
10762 .vendor = "ST",
10763 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010764 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010765 .manufacture_id = ST_ID,
10766 .model_id = ST_M29F002T,
10767 .total_size = 256,
10768 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010769 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000010770 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010771 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010772 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010773 .block_erasers =
10774 {
10775 {
10776 .eraseblocks = {
10777 {64 * 1024, 3},
10778 {32 * 1024, 1},
10779 {8 * 1024, 2},
10780 {16 * 1024, 1},
10781 },
10782 .block_erase = erase_sector_jedec,
10783 }, {
10784 .eraseblocks = { {256 * 1024, 1} },
10785 .block_erase = erase_chip_block_jedec,
10786 }
10787 },
Sean Nelson35727f72010-01-28 23:55:12 +000010788 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010789 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010790 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000010791 },
10792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010793 {
10794 .vendor = "ST",
10795 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010796 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010797 .manufacture_id = ST_ID,
10798 .model_id = ST_M29F040B,
10799 .total_size = 512,
10800 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010801 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
10802 .tested = TEST_UNTESTED,
10803 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010804 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000010805 .block_erasers =
10806 {
10807 {
10808 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +000010809 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010810 }, {
10811 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010812 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000010813 }
10814 },
Sean Nelson35727f72010-01-28 23:55:12 +000010815 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010816 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010817 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010818 },
10819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010820 {
Sean Nelson35727f72010-01-28 23:55:12 +000010821 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010822 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010823 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010824 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010825 .manufacture_id = ST_ID,
10826 .model_id = ST_M29F400BB,
10827 .total_size = 512,
10828 .page_size = 64 * 1024,
10829 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010830 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010831 .probe = probe_m29f400bt,
10832 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
10833 .block_erasers =
10834 {
10835 {
10836 .eraseblocks = {
10837 {16 * 1024, 1},
10838 {8 * 1024, 2},
10839 {32 * 1024, 1},
10840 {64 * 1024, 7},
10841 },
10842 .block_erase = block_erase_m29f400bt,
10843 }, {
10844 .eraseblocks = { {512 * 1024, 1} },
10845 .block_erase = block_erase_chip_m29f400bt,
10846 }
10847 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000010848 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010850 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010851 },
10852 {
10853 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
10854 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010855 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010856 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010857 .manufacture_id = ST_ID,
10858 .model_id = ST_M29F400BT,
10859 .total_size = 512,
10860 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010861 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010862 .tested = TEST_UNTESTED,
10863 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +000010864 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000010865 .block_erasers =
10866 {
10867 {
10868 .eraseblocks = {
10869 {64 * 1024, 7},
10870 {32 * 1024, 1},
10871 {8 * 1024, 2},
10872 {16 * 1024, 1},
10873 },
10874 .block_erase = block_erase_m29f400bt,
10875 }, {
10876 .eraseblocks = { {512 * 1024, 1} },
10877 .block_erase = block_erase_chip_m29f400bt,
10878 }
10879 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000010880 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010881 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010882 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000010883 },
10884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010885 {
10886 .vendor = "ST",
10887 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010888 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010889 .manufacture_id = ST_ID,
10890 .model_id = ST_M29W010B,
10891 .total_size = 128,
10892 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010893 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010894 .tested = TEST_UNTESTED,
10895 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010896 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010897 .block_erasers =
10898 {
10899 {
10900 .eraseblocks = { {16 * 1024, 8}, },
10901 .block_erase = erase_sector_jedec,
10902 }, {
10903 .eraseblocks = { {128 * 1024, 1} },
10904 .block_erase = erase_chip_block_jedec,
10905 }
10906 },
Sean Nelson35727f72010-01-28 23:55:12 +000010907 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010908 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010909 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010910 },
10911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010912 {
10913 .vendor = "ST",
10914 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010915 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010916 .manufacture_id = ST_ID,
10917 .model_id = ST_M29W040B,
10918 .total_size = 512,
10919 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010920 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010921 .tested = TEST_UNTESTED,
10922 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000010923 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000010924 .block_erasers =
10925 {
10926 {
10927 .eraseblocks = { {64 * 1024, 8}, },
10928 .block_erase = erase_sector_jedec,
10929 }, {
10930 .eraseblocks = { {512 * 1024, 1} },
10931 .block_erase = erase_chip_block_jedec,
10932 }
10933 },
Sean Nelson35727f72010-01-28 23:55:12 +000010934 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010936 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010937 },
10938
Stefan Taunereb582572012-09-21 12:52:50 +000010939 {
10940 .vendor = "ST",
10941 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010942 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000010943 .manufacture_id = ST_ID,
10944 .model_id = ST_M29W512B,
10945 .total_size = 64,
10946 .page_size = 64 * 1024,
10947 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000010948 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000010949 .probe = probe_jedec,
10950 .probe_timing = TIMING_ZERO,
10951 .block_erasers =
10952 {
10953 {
10954 .eraseblocks = { {64 * 1024, 1} },
10955 .block_erase = erase_chip_block_jedec,
10956 }
10957 },
10958 .write = write_jedec_1,
10959 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010960 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000010961 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000010962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010963 {
10964 .vendor = "ST",
10965 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010966 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010967 .manufacture_id = ST_ID,
10968 .model_id = ST_M50FLW040A,
10969 .total_size = 512,
10970 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000010971 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010972 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010973 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000010974 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000010975 .block_erasers =
10976 {
10977 {
Sean Nelson329bde72010-01-19 16:39:19 +000010978 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000010979 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000010980 {64 * 1024, 5}, /* block */
10981 {4 * 1024, 16}, /* sector */
10982 {4 * 1024, 16}, /* sector */
10983 },
10984 .block_erase = NULL,
10985 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000010986 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000010987 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000010988 }
10989 },
Sean Nelson28accc22010-03-19 18:47:06 +000010990 .unlock = unlock_stm50flw0x0x,
10991 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010993 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000010994 },
10995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010996 {
10997 .vendor = "ST",
10998 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010999 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011000 .manufacture_id = ST_ID,
11001 .model_id = ST_M50FLW040B,
11002 .total_size = 512,
11003 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011004 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011005 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011006 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011007 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011008 .block_erasers =
11009 {
11010 {
Sean Nelson329bde72010-01-19 16:39:19 +000011011 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011012 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011013 {4 * 1024, 16}, /* sector */
11014 {64 * 1024, 5}, /* block */
11015 {4 * 1024, 16}, /* sector */
11016 },
11017 .block_erase = NULL,
11018 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011019 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011020 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011021 }
11022 },
Sean Nelson28accc22010-03-19 18:47:06 +000011023 .unlock = unlock_stm50flw0x0x,
11024 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011026 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011027 },
11028
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011029 {
11030 .vendor = "ST",
11031 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011032 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011033 .manufacture_id = ST_ID,
11034 .model_id = ST_M50FLW080A,
11035 .total_size = 1024,
11036 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011037 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011038 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000011039 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011040 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011041 .block_erasers =
11042 {
11043 {
Sean Nelson329bde72010-01-19 16:39:19 +000011044 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011045 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011046 {64 * 1024, 13}, /* block */
11047 {4 * 1024, 16}, /* sector */
11048 {4 * 1024, 16}, /* sector */
11049 },
11050 .block_erase = NULL,
11051 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011052 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011053 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011054 }
11055 },
Sean Nelson28accc22010-03-19 18:47:06 +000011056 .unlock = unlock_stm50flw0x0x,
11057 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011058 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011059 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011060 },
11061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011062 {
11063 .vendor = "ST",
11064 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011065 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011066 .manufacture_id = ST_ID,
11067 .model_id = ST_M50FLW080B,
11068 .total_size = 1024,
11069 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011070 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011071 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011072 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000011073 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000011074 .block_erasers =
11075 {
11076 {
Sean Nelson329bde72010-01-19 16:39:19 +000011077 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000011078 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000011079 {4 * 1024, 16}, /* sector */
11080 {64 * 1024, 13}, /* block */
11081 {4 * 1024, 16}, /* sector */
11082 },
11083 .block_erase = NULL,
11084 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +000011085 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011086 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011087 }
11088 },
Sean Nelson28accc22010-03-19 18:47:06 +000011089 .unlock = unlock_stm50flw0x0x,
11090 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011091 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011092 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011093 },
11094
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011095 {
11096 .vendor = "ST",
11097 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011098 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011099 .manufacture_id = ST_ID,
11100 .model_id = ST_M50FW002,
11101 .total_size = 256,
11102 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011103 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011104 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011105 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011106 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011107 .block_erasers =
11108 {
11109 {
11110 .eraseblocks = {
11111 {64 * 1024, 3},
11112 {32 * 1024, 1},
11113 {8 * 1024, 2},
11114 {16 * 1024, 1},
11115 },
Sean Nelson28accc22010-03-19 18:47:06 +000011116 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011117 }
11118 },
Sean Nelson28accc22010-03-19 18:47:06 +000011119 .unlock = unlock_stm50flw0x0x,
11120 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011121 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011122 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011123 },
11124
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011125 {
11126 .vendor = "ST",
11127 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011128 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011129 .manufacture_id = ST_ID,
11130 .model_id = ST_M50FW016,
11131 .total_size = 2048,
11132 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011133 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011134 .tested = TEST_UNTESTED,
11135 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011136 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011137 .block_erasers =
11138 {
11139 {
11140 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011141 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011142 }
11143 },
Sean Nelson28accc22010-03-19 18:47:06 +000011144 .unlock = unlock_stm50flw0x0x,
11145 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011147 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011148 },
11149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011150 {
11151 .vendor = "ST",
11152 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011153 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011154 .manufacture_id = ST_ID,
11155 .model_id = ST_M50FW040,
11156 .total_size = 512,
11157 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011158 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000011159 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011160 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011161 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011162 .block_erasers =
11163 {
11164 {
11165 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011166 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011167 }
11168 },
Sean Nelson28accc22010-03-19 18:47:06 +000011169 .unlock = unlock_stm50flw0x0x,
11170 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011172 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011173 },
11174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011175 {
11176 .vendor = "ST",
11177 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011178 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011179 .manufacture_id = ST_ID,
11180 .model_id = ST_M50FW080,
11181 .total_size = 1024,
11182 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011183 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011184 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011185 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000011186 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000011187 .block_erasers =
11188 {
11189 {
11190 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +000011191 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011192 }
11193 },
Sean Nelson28accc22010-03-19 18:47:06 +000011194 .unlock = unlock_stm50flw0x0x,
11195 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011197 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011198 },
11199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011200 {
11201 .vendor = "ST",
11202 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011203 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011204 .manufacture_id = ST_ID,
11205 .model_id = ST_M50LPW116,
11206 .total_size = 2048,
11207 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011208 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011209 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011210 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000011211 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011212 .block_erasers =
11213 {
11214 {
11215 .eraseblocks = {
11216 {4 * 1024, 16},
11217 {64 * 1024, 30},
11218 {32 * 1024, 1},
11219 {8 * 1024, 2},
11220 {16 * 1024, 1},
11221 },
Sean Nelson28accc22010-03-19 18:47:06 +000011222 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000011223 }
11224 },
Sean Nelson28accc22010-03-19 18:47:06 +000011225 .unlock = unlock_stm50flw0x0x,
11226 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011228 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000011229 },
11230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011231 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011232 .vendor = "SyncMOS/MoselVitelic",
11233 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011234 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011235 .manufacture_id = SYNCMOS_MVC_ID,
11236 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011237 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011238 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011239 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011240 .tested = TEST_UNTESTED,
11241 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011242 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011243 .block_erasers =
11244 {
11245 {
11246 .eraseblocks = { {512, 256} },
11247 .block_erase = erase_sector_jedec,
11248 }, {
11249 .eraseblocks = { {128 * 1024, 1} },
11250 .block_erase = erase_chip_block_jedec,
11251 },
11252 },
Sean Nelson35727f72010-01-28 23:55:12 +000011253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000011256 },
11257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011258 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011259 .vendor = "SyncMOS/MoselVitelic",
11260 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011261 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011262 .manufacture_id = SYNCMOS_MVC_ID,
11263 .model_id = SM_MVC_29C51001T,
11264 .total_size = 128,
11265 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000011266 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011267 .tested = TEST_UNTESTED,
11268 .probe = probe_jedec,
11269 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11270 .block_erasers =
11271 {
11272 {
11273 .eraseblocks = { {512, 256} },
11274 .block_erase = erase_sector_jedec,
11275 }, {
11276 .eraseblocks = { {128 * 1024, 1} },
11277 .block_erase = erase_chip_block_jedec,
11278 },
11279 },
11280 .write = write_jedec_1,
11281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011282 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011283 },
11284
11285 {
11286 .vendor = "SyncMOS/MoselVitelic",
11287 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011288 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011289 .manufacture_id = SYNCMOS_MVC_ID,
11290 .model_id = SM_MVC_29C51002B,
11291 .total_size = 256,
11292 .page_size = 512,
11293 .feature_bits = FEATURE_EITHER_RESET,
11294 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011296 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011297 .block_erasers =
11298 {
11299 {
11300 .eraseblocks = { {512, 512} },
11301 .block_erase = erase_sector_jedec,
11302 }, {
11303 .eraseblocks = { {256 * 1024, 1} },
11304 .block_erase = erase_chip_block_jedec,
11305 },
11306 },
Sean Nelson35727f72010-01-28 23:55:12 +000011307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011308 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000011309 },
11310
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011311 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011312 .vendor = "SyncMOS/MoselVitelic",
11313 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011314 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011315 .manufacture_id = SYNCMOS_MVC_ID,
11316 .model_id = SM_MVC_29C51002T,
11317 .total_size = 256,
11318 .page_size = 512,
11319 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011320 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011321 .probe = probe_jedec,
11322 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11323 .block_erasers =
11324 {
11325 {
11326 .eraseblocks = { {512, 512} },
11327 .block_erase = erase_sector_jedec,
11328 }, {
11329 .eraseblocks = { {256 * 1024, 1} },
11330 .block_erase = erase_chip_block_jedec,
11331 },
11332 },
11333 .write = write_jedec_1,
11334 .read = read_memmapped,
11335 },
11336
11337 {
11338 .vendor = "SyncMOS/MoselVitelic",
11339 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011340 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011341 .manufacture_id = SYNCMOS_MVC_ID,
11342 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011343 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011344 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011345 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011346 .tested = TEST_UNTESTED,
11347 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011348 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000011349 .block_erasers =
11350 {
11351 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011352 .eraseblocks = { {1024, 512} },
11353 .block_erase = erase_sector_jedec,
11354 }, {
11355 .eraseblocks = { {512 * 1024, 1} },
11356 .block_erase = erase_chip_block_jedec,
11357 },
11358 },
11359 .write = write_jedec_1,
11360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011361 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011362 },
11363
11364 {
11365 .vendor = "SyncMOS/MoselVitelic",
11366 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011367 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011368 .manufacture_id = SYNCMOS_MVC_ID,
11369 .model_id = SM_MVC_29C51004T,
11370 .total_size = 512,
11371 .page_size = 1024,
11372 .feature_bits = FEATURE_EITHER_RESET,
11373 .tested = TEST_UNTESTED,
11374 .probe = probe_jedec,
11375 .probe_timing = TIMING_ZERO,
11376 .block_erasers =
11377 {
11378 {
11379 .eraseblocks = { {1024, 512} },
11380 .block_erase = erase_sector_jedec,
11381 }, {
11382 .eraseblocks = { {512 * 1024, 1} },
11383 .block_erase = erase_chip_block_jedec,
11384 },
11385 },
11386 .write = write_jedec_1,
11387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011388 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011389 },
11390
11391 {
11392 .vendor = "SyncMOS/MoselVitelic",
11393 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011394 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011395 .manufacture_id = SYNCMOS_MVC_ID,
11396 .model_id = SM_MVC_29C31004B,
11397 .total_size = 512,
11398 .page_size = 1024,
11399 .feature_bits = FEATURE_EITHER_RESET,
11400 .tested = TEST_UNTESTED,
11401 .probe = probe_jedec,
11402 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11403 .block_erasers =
11404 {
11405 {
11406 .eraseblocks = { {1024, 512} },
11407 .block_erase = erase_sector_jedec,
11408 }, {
11409 .eraseblocks = { {512 * 1024, 1} },
11410 .block_erase = erase_chip_block_jedec,
11411 },
11412 },
11413 .write = write_jedec_1,
11414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011415 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011416 },
11417
11418 {
11419 .vendor = "SyncMOS/MoselVitelic",
11420 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011421 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011422 .manufacture_id = SYNCMOS_MVC_ID,
11423 .model_id = SM_MVC_29C31004T,
11424 .total_size = 512,
11425 .page_size = 1024,
11426 .feature_bits = FEATURE_EITHER_RESET,
11427 .tested = TEST_UNTESTED,
11428 .probe = probe_jedec,
11429 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11430 .block_erasers =
11431 {
11432 {
11433 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000011434 .block_erase = erase_sector_jedec,
11435 }, {
11436 .eraseblocks = { {512 * 1024, 1} },
11437 .block_erase = erase_chip_block_jedec,
11438 },
11439 },
Sean Nelson35727f72010-01-28 23:55:12 +000011440 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011441 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011442 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011443 },
11444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011445 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011446 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011447 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011448 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011449 .manufacture_id = TI_OLD_ID,
11450 .model_id = TI_TMS29F002RB,
11451 .total_size = 256,
11452 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011453 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011454 .tested = TEST_UNTESTED,
11455 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011456 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011457 .block_erasers =
11458 {
11459 {
11460 .eraseblocks = {
11461 {16 * 1024, 1},
11462 {8 * 1024, 2},
11463 {32 * 1024, 1},
11464 {64 * 1024, 3},
11465 },
11466 .block_erase = erase_sector_jedec,
11467 }, {
11468 .eraseblocks = { {256 * 1024, 1} },
11469 .block_erase = erase_chip_block_jedec,
11470 },
11471 },
Sean Nelson35727f72010-01-28 23:55:12 +000011472 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011474 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011475 },
11476
11477 {
Uwe Hermanna106d152009-05-27 23:17:40 +000011478 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011479 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011480 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011481 .manufacture_id = TI_OLD_ID,
11482 .model_id = TI_TMS29F002RT,
11483 .total_size = 256,
11484 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000011485 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011486 .tested = TEST_UNTESTED,
11487 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011488 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000011489 .block_erasers =
11490 {
11491 {
11492 .eraseblocks = {
11493 {64 * 1024, 3},
11494 {32 * 1024, 1},
11495 {8 * 1024, 2},
11496 {16 * 1024, 1},
11497 },
11498 .block_erase = erase_sector_jedec,
11499 }, {
11500 .eraseblocks = { {256 * 1024, 1} },
11501 .block_erase = erase_chip_block_jedec,
11502 },
11503 },
Sean Nelson35727f72010-01-28 23:55:12 +000011504 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011505 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011506 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000011507 },
11508
11509 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011510 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011511 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011512 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011513 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011514 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011515 .total_size = 1024,
11516 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011517 /* supports SFDP */
11518 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011519 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011520 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011521 .probe = probe_spi_rdid,
11522 .probe_timing = TIMING_ZERO,
11523 .block_erasers =
11524 {
11525 {
11526 .eraseblocks = { {4 * 1024, 256} },
11527 .block_erase = spi_block_erase_20,
11528 }, {
11529 .eraseblocks = { {32 * 1024, 32} },
11530 .block_erase = spi_block_erase_52,
11531 }, {
11532 .eraseblocks = { {64 * 1024, 16} },
11533 .block_erase = spi_block_erase_d8,
11534 }, {
11535 .eraseblocks = { {1024 * 1024, 1} },
11536 .block_erase = spi_block_erase_60,
11537 }, {
11538 .eraseblocks = { {1024 * 1024, 1} },
11539 .block_erase = spi_block_erase_c7,
11540 }
11541 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011542 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011543 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011544 .write = spi_chip_write_256,
11545 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011546 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011547 },
11548
11549 {
11550 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011551 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011552 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011553 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011554 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011555 .total_size = 2048,
11556 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011557 /* supports SFDP */
11558 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011559 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000011560 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011561 .probe = probe_spi_rdid,
11562 .probe_timing = TIMING_ZERO,
11563 .block_erasers =
11564 {
11565 {
11566 .eraseblocks = { {4 * 1024, 512} },
11567 .block_erase = spi_block_erase_20,
11568 }, {
11569 .eraseblocks = { {32 * 1024, 64} },
11570 .block_erase = spi_block_erase_52,
11571 }, {
11572 .eraseblocks = { {64 * 1024, 32} },
11573 .block_erase = spi_block_erase_d8,
11574 }, {
11575 .eraseblocks = { {2 * 1024 * 1024, 1} },
11576 .block_erase = spi_block_erase_60,
11577 }, {
11578 .eraseblocks = { {2 * 1024 * 1024, 1} },
11579 .block_erase = spi_block_erase_c7,
11580 }
11581 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011582 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011583 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011584 .write = spi_chip_write_256,
11585 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011586 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011587 },
11588
11589 {
11590 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011591 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011592 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011593 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011594 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011595 .total_size = 4096,
11596 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011597 /* supports SFDP */
11598 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011599 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011600 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011601 .probe = probe_spi_rdid,
11602 .probe_timing = TIMING_ZERO,
11603 .block_erasers =
11604 {
11605 {
11606 .eraseblocks = { {4 * 1024, 1024} },
11607 .block_erase = spi_block_erase_20,
11608 }, {
11609 .eraseblocks = { {32 * 1024, 128} },
11610 .block_erase = spi_block_erase_52,
11611 }, {
11612 .eraseblocks = { {64 * 1024, 64} },
11613 .block_erase = spi_block_erase_d8,
11614 }, {
11615 .eraseblocks = { {4 * 1024 * 1024, 1} },
11616 .block_erase = spi_block_erase_60,
11617 }, {
11618 .eraseblocks = { {4 * 1024 * 1024, 1} },
11619 .block_erase = spi_block_erase_c7,
11620 }
11621 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011622 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011623 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000011624 .write = spi_chip_write_256,
11625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011626 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000011627 },
11628
11629 {
11630 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011631 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011632 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000011633 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011634 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000011635 .total_size = 8192,
11636 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011637 /* supports SFDP */
11638 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000011640 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000011641 .probe = probe_spi_rdid,
11642 .probe_timing = TIMING_ZERO,
11643 .block_erasers =
11644 {
11645 {
11646 .eraseblocks = { {4 * 1024, 2048} },
11647 .block_erase = spi_block_erase_20,
11648 }, {
11649 .eraseblocks = { {32 * 1024, 256} },
11650 .block_erase = spi_block_erase_52,
11651 }, {
11652 .eraseblocks = { {64 * 1024, 128} },
11653 .block_erase = spi_block_erase_d8,
11654 }, {
11655 .eraseblocks = { {8 * 1024 * 1024, 1} },
11656 .block_erase = spi_block_erase_60,
11657 }, {
11658 .eraseblocks = { {8 * 1024 * 1024, 1} },
11659 .block_erase = spi_block_erase_c7,
11660 }
11661 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011663 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000011664 .write = spi_chip_write_256,
11665 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011666 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000011667 },
11668
11669 {
11670 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011671 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011672 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011673 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011674 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011675 .total_size = 16384,
11676 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011677 /* supports SFDP */
11678 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000011679 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011680 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000011681 .probe = probe_spi_rdid,
11682 .probe_timing = TIMING_ZERO,
11683 .block_erasers =
11684 {
11685 {
11686 .eraseblocks = { {4 * 1024, 4096} },
11687 .block_erase = spi_block_erase_20,
11688 }, {
11689 .eraseblocks = { {32 * 1024, 512} },
11690 .block_erase = spi_block_erase_52,
11691 }, {
11692 .eraseblocks = { {64 * 1024, 256} },
11693 .block_erase = spi_block_erase_d8,
11694 }, {
11695 .eraseblocks = { {16 * 1024 * 1024, 1} },
11696 .block_erase = spi_block_erase_60,
11697 }, {
11698 .eraseblocks = { {16 * 1024 * 1024, 1} },
11699 .block_erase = spi_block_erase_c7,
11700 }
11701 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011703 .unlock = spi_disable_blockprotect,
11704 .write = spi_chip_write_256,
11705 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011706 .voltage = {2700, 3600},
11707 },
11708
11709 {
11710 .vendor = "Winbond",
11711 .name = "W25Q20.W",
11712 .bustype = BUS_SPI,
11713 .manufacture_id = WINBOND_NEX_ID,
11714 .model_id = WINBOND_NEX_W25Q20_W,
11715 .total_size = 256,
11716 .page_size = 256,
11717 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11718 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11719 .tested = TEST_UNTESTED,
11720 .probe = probe_spi_rdid,
11721 .probe_timing = TIMING_ZERO,
11722 .block_erasers =
11723 {
11724 {
11725 .eraseblocks = { {4 * 1024, 64} },
11726 .block_erase = spi_block_erase_20,
11727 }, {
11728 .eraseblocks = { {32 * 1024, 8} },
11729 .block_erase = spi_block_erase_52,
11730 }, {
11731 .eraseblocks = { {64 * 1024, 4} },
11732 .block_erase = spi_block_erase_d8,
11733 }, {
11734 .eraseblocks = { {256 * 1024, 1} },
11735 .block_erase = spi_block_erase_60,
11736 }, {
11737 .eraseblocks = { {256 * 1024, 1} },
11738 .block_erase = spi_block_erase_c7,
11739 }
11740 },
11741 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11742 .unlock = spi_disable_blockprotect,
11743 .write = spi_chip_write_256,
11744 .read = spi_chip_read,
11745 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11746 },
11747
11748 {
11749 .vendor = "Winbond",
11750 .name = "W25Q40.W",
11751 .bustype = BUS_SPI,
11752 .manufacture_id = WINBOND_NEX_ID,
11753 .model_id = WINBOND_NEX_W25Q40_W,
11754 .total_size = 512,
11755 .page_size = 256,
11756 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11758 .tested = TEST_UNTESTED,
11759 .probe = probe_spi_rdid,
11760 .probe_timing = TIMING_ZERO,
11761 .block_erasers =
11762 {
11763 {
11764 .eraseblocks = { {4 * 1024, 128} },
11765 .block_erase = spi_block_erase_20,
11766 }, {
11767 .eraseblocks = { {32 * 1024, 16} },
11768 .block_erase = spi_block_erase_52,
11769 }, {
11770 .eraseblocks = { {64 * 1024, 8} },
11771 .block_erase = spi_block_erase_d8,
11772 }, {
11773 .eraseblocks = { {512 * 1024, 1} },
11774 .block_erase = spi_block_erase_60,
11775 }, {
11776 .eraseblocks = { {512 * 1024, 1} },
11777 .block_erase = spi_block_erase_c7,
11778 }
11779 },
11780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11781 .unlock = spi_disable_blockprotect,
11782 .write = spi_chip_write_256,
11783 .read = spi_chip_read,
11784 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11785 },
11786
11787 {
11788 .vendor = "Winbond",
11789 .name = "W25Q80.W",
11790 .bustype = BUS_SPI,
11791 .manufacture_id = WINBOND_NEX_ID,
11792 .model_id = WINBOND_NEX_W25Q80_W,
11793 .total_size = 1024,
11794 .page_size = 256,
11795 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11797 .tested = TEST_UNTESTED,
11798 .probe = probe_spi_rdid,
11799 .probe_timing = TIMING_ZERO,
11800 .block_erasers =
11801 {
11802 {
11803 .eraseblocks = { {4 * 1024, 256} },
11804 .block_erase = spi_block_erase_20,
11805 }, {
11806 .eraseblocks = { {32 * 1024, 32} },
11807 .block_erase = spi_block_erase_52,
11808 }, {
11809 .eraseblocks = { {64 * 1024, 16} },
11810 .block_erase = spi_block_erase_d8,
11811 }, {
11812 .eraseblocks = { {1 * 1024 * 1024, 1} },
11813 .block_erase = spi_block_erase_60,
11814 }, {
11815 .eraseblocks = { {1 * 1024 * 1024, 1} },
11816 .block_erase = spi_block_erase_c7,
11817 }
11818 },
11819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11820 .unlock = spi_disable_blockprotect,
11821 .write = spi_chip_write_256,
11822 .read = spi_chip_read,
11823 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11824 },
11825
11826 {
11827 .vendor = "Winbond",
11828 .name = "W25Q16.W",
11829 .bustype = BUS_SPI,
11830 .manufacture_id = WINBOND_NEX_ID,
11831 .model_id = WINBOND_NEX_W25Q16_W,
11832 .total_size = 2048,
11833 .page_size = 256,
11834 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11835 /* QPI enable 0x38, disable 0xFF */
11836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11837 .tested = TEST_UNTESTED,
11838 .probe = probe_spi_rdid,
11839 .probe_timing = TIMING_ZERO,
11840 .block_erasers =
11841 {
11842 {
11843 .eraseblocks = { {4 * 1024, 512} },
11844 .block_erase = spi_block_erase_20,
11845 }, {
11846 .eraseblocks = { {32 * 1024, 64} },
11847 .block_erase = spi_block_erase_52,
11848 }, {
11849 .eraseblocks = { {64 * 1024, 32} },
11850 .block_erase = spi_block_erase_d8,
11851 }, {
11852 .eraseblocks = { {2 * 1024 * 1024, 1} },
11853 .block_erase = spi_block_erase_60,
11854 }, {
11855 .eraseblocks = { {2 * 1024 * 1024, 1} },
11856 .block_erase = spi_block_erase_c7,
11857 }
11858 },
11859 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11860 .unlock = spi_disable_blockprotect,
11861 .write = spi_chip_write_256,
11862 .read = spi_chip_read,
11863 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11864 },
11865
11866 {
11867 .vendor = "Winbond",
11868 .name = "W25Q32.W",
11869 .bustype = BUS_SPI,
11870 .manufacture_id = WINBOND_NEX_ID,
11871 .model_id = WINBOND_NEX_W25Q32_W,
11872 .total_size = 4096,
11873 .page_size = 256,
11874 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11875 /* QPI enable 0x38, disable 0xFF */
11876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
11877 .tested = TEST_OK_PREW,
11878 .probe = probe_spi_rdid,
11879 .probe_timing = TIMING_ZERO,
11880 .block_erasers =
11881 {
11882 {
11883 .eraseblocks = { {4 * 1024, 1024} },
11884 .block_erase = spi_block_erase_20,
11885 }, {
11886 .eraseblocks = { {32 * 1024, 128} },
11887 .block_erase = spi_block_erase_52,
11888 }, {
11889 .eraseblocks = { {64 * 1024, 64} },
11890 .block_erase = spi_block_erase_d8,
11891 }, {
11892 .eraseblocks = { {4 * 1024 * 1024, 1} },
11893 .block_erase = spi_block_erase_60,
11894 }, {
11895 .eraseblocks = { {4 * 1024 * 1024, 1} },
11896 .block_erase = spi_block_erase_c7,
11897 }
11898 },
11899 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11900 .unlock = spi_disable_blockprotect,
11901 .write = spi_chip_write_256,
11902 .read = spi_chip_read,
11903 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
11904 },
11905
11906 {
11907 .vendor = "Winbond",
11908 .name = "W25Q64.W",
11909 .bustype = BUS_SPI,
11910 .manufacture_id = WINBOND_NEX_ID,
11911 .model_id = WINBOND_NEX_W25Q64_W,
11912 .total_size = 8192,
11913 .page_size = 256,
11914 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
11915 /* QPI enable 0x38, disable 0xFF */
11916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011917 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000011918 .probe = probe_spi_rdid,
11919 .probe_timing = TIMING_ZERO,
11920 .block_erasers =
11921 {
11922 {
11923 .eraseblocks = { {4 * 1024, 2048} },
11924 .block_erase = spi_block_erase_20,
11925 }, {
11926 .eraseblocks = { {32 * 1024, 256} },
11927 .block_erase = spi_block_erase_52,
11928 }, {
11929 .eraseblocks = { {64 * 1024, 128} },
11930 .block_erase = spi_block_erase_d8,
11931 }, {
11932 .eraseblocks = { {8 * 1024 * 1024, 1} },
11933 .block_erase = spi_block_erase_60,
11934 }, {
11935 .eraseblocks = { {8 * 1024 * 1024, 1} },
11936 .block_erase = spi_block_erase_c7,
11937 }
11938 },
11939 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11940 .unlock = spi_disable_blockprotect,
11941 .write = spi_chip_write_256,
11942 .read = spi_chip_read,
11943 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000011944 },
11945
11946 {
11947 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011948 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011949 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011950 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011951 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011952 .total_size = 128,
11953 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011954 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011955 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011956 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011957 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011958 .block_erasers =
11959 {
11960 {
11961 .eraseblocks = { {4 * 1024, 32} },
11962 .block_erase = spi_block_erase_20,
11963 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011964 .eraseblocks = { {64 * 1024, 2} },
11965 .block_erase = spi_block_erase_d8,
11966 }, {
11967 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011968 .block_erase = spi_block_erase_c7,
11969 }
11970 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011971 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011972 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011973 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011974 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011975 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011976 },
11977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011978 {
11979 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000011980 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011981 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011982 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000011983 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011984 .total_size = 256,
11985 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000011986 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000011987 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011988 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011989 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011990 .block_erasers =
11991 {
11992 {
11993 .eraseblocks = { {4 * 1024, 64} },
11994 .block_erase = spi_block_erase_20,
11995 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000011996 .eraseblocks = { {64 * 1024, 4} },
11997 .block_erase = spi_block_erase_d8,
11998 }, {
11999 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012000 .block_erase = spi_block_erase_c7,
12001 }
12002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012004 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012005 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012006 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012007 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012008 },
12009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012010 {
12011 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012012 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012013 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012014 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012015 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012016 .total_size = 512,
12017 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012018 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000012019 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012020 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012021 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012022 .block_erasers =
12023 {
12024 {
12025 .eraseblocks = { {4 * 1024, 128} },
12026 .block_erase = spi_block_erase_20,
12027 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012028 .eraseblocks = { {64 * 1024, 8} },
12029 .block_erase = spi_block_erase_d8,
12030 }, {
12031 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012032 .block_erase = spi_block_erase_c7,
12033 }
12034 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012035 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012040 },
12041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012042 {
12043 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012044 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012045 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012046 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012047 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012048 .total_size = 1024,
12049 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012050 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000012051 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012052 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012053 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012054 .block_erasers =
12055 {
12056 {
12057 .eraseblocks = { {4 * 1024, 256} },
12058 .block_erase = spi_block_erase_20,
12059 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012060 .eraseblocks = { {64 * 1024, 16} },
12061 .block_erase = spi_block_erase_d8,
12062 }, {
12063 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012064 .block_erase = spi_block_erase_c7,
12065 }
12066 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012067 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012068 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012069 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012070 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012071 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012072 },
12073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012074 {
12075 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012076 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012077 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000012078 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012079 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000012080 .total_size = 2048,
12081 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012082 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000012083 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000012084 .probe = probe_spi_rdid,
12085 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012086 .block_erasers =
12087 {
12088 {
12089 .eraseblocks = { {4 * 1024, 512} },
12090 .block_erase = spi_block_erase_20,
12091 }, {
12092 .eraseblocks = { {32 * 1024, 64} },
12093 .block_erase = spi_block_erase_52,
12094 }, {
12095 .eraseblocks = { {64 * 1024, 32} },
12096 .block_erase = spi_block_erase_d8,
12097 }, {
12098 .eraseblocks = { {2 * 1024 * 1024, 1} },
12099 .block_erase = spi_block_erase_60,
12100 }, {
12101 .eraseblocks = { {2 * 1024 * 1024, 1} },
12102 .block_erase = spi_block_erase_c7,
12103 }
12104 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012106 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000012107 .write = spi_chip_write_256,
12108 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012109 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000012110 },
12111
12112 {
12113 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012114 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012115 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012116 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012117 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000012118 .total_size = 4096,
12119 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012120 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +000012121 .tested = TEST_OK_PROBE,
12122 .probe = probe_spi_rdid,
12123 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012124 .block_erasers =
12125 {
12126 {
12127 .eraseblocks = { {4 * 1024, 1024} },
12128 .block_erase = spi_block_erase_20,
12129 }, {
12130 .eraseblocks = { {32 * 1024, 128} },
12131 .block_erase = spi_block_erase_52,
12132 }, {
12133 .eraseblocks = { {64 * 1024, 64} },
12134 .block_erase = spi_block_erase_d8,
12135 }, {
12136 .eraseblocks = { {4 * 1024 * 1024, 1} },
12137 .block_erase = spi_block_erase_60,
12138 }, {
12139 .eraseblocks = { {4 * 1024 * 1024, 1} },
12140 .block_erase = spi_block_erase_c7,
12141 }
12142 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012144 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012145 .write = spi_chip_write_256,
12146 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012147 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012148 },
12149
12150 {
12151 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012152 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012153 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000012154 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012155 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000012156 .total_size = 8192,
12157 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000012158 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012159 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +000012160 .probe = probe_spi_rdid,
12161 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012162 .block_erasers =
12163 {
12164 {
12165 .eraseblocks = { {4 * 1024, 2048} },
12166 .block_erase = spi_block_erase_20,
12167 }, {
12168 .eraseblocks = { {32 * 1024, 256} },
12169 .block_erase = spi_block_erase_52,
12170 }, {
12171 .eraseblocks = { {64 * 1024, 128} },
12172 .block_erase = spi_block_erase_d8,
12173 }, {
12174 .eraseblocks = { {8 * 1024 * 1024, 1} },
12175 .block_erase = spi_block_erase_60,
12176 }, {
12177 .eraseblocks = { {8 * 1024 * 1024, 1} },
12178 .block_erase = spi_block_erase_c7,
12179 }
12180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012181 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012182 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000012183 .write = spi_chip_write_256,
12184 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012185 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000012186 },
12187
12188 {
12189 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012190 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012191 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000012192 .manufacture_id = WINBOND_ID,
12193 .model_id = WINBOND_W29C010,
12194 .total_size = 128,
12195 .page_size = 128,
12196 .feature_bits = FEATURE_LONG_RESET,
12197 .tested = TEST_OK_PRE,
12198 .probe = probe_w29ee011,
12199 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
12200 .block_erasers =
12201 {
12202 {
12203 .eraseblocks = { {128 * 1024, 1} },
12204 .block_erase = erase_chip_block_jedec,
12205 }
12206 },
12207 .write = write_jedec,
12208 .read = read_memmapped,
12209 },
12210
12211 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
12212 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012213 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012214 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012215 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012216 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012217 .total_size = 128,
12218 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012219 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000012220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012221 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012222 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012223 .block_erasers =
12224 {
12225 {
12226 .eraseblocks = { {128 * 1024, 1} },
12227 .block_erase = erase_chip_block_jedec,
12228 }
12229 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012230 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012231 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000012232 },
12233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012234 {
12235 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012236 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012237 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012238 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012239 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012240 .total_size = 256,
12241 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012242 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012243 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012244 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012245 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012246 .block_erasers =
12247 {
12248 {
12249 .eraseblocks = { {256 * 1024, 1} },
12250 .block_erase = erase_chip_block_jedec,
12251 }
12252 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012253 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012256 },
12257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012258 {
12259 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012260 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012261 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012262 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012263 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012264 .total_size = 512,
12265 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012266 .feature_bits = FEATURE_LONG_RESET,
12267 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012268 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012269 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012270 .block_erasers =
12271 {
12272 {
12273 .eraseblocks = { {512 * 1024, 1} },
12274 .block_erase = erase_chip_block_jedec,
12275 }
12276 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012277 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012279 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012280 },
12281
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012282 {
12283 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000012284 .name = "W39F010",
12285 .bustype = BUS_PARALLEL,
12286 .manufacture_id = WINBOND_ID,
12287 .model_id = WINBOND_W39F010,
12288 .total_size = 128,
12289 .page_size = 4 * 1024,
12290 .feature_bits = FEATURE_EITHER_RESET,
12291 .tested = TEST_OK_PREW,
12292 .probe = probe_jedec,
12293 .probe_timing = 10,
12294 .block_erasers =
12295 {
12296 {
12297 .eraseblocks = { {4 * 1024, 32} },
12298 .block_erase = erase_block_jedec,
12299 }, {
12300 .eraseblocks = { {128 * 1024, 1} },
12301 .block_erase = erase_chip_block_jedec,
12302 }
12303 },
12304 .printlock = printlock_w39f010,
12305 .write = write_jedec_1,
12306 .read = read_memmapped,
12307 .voltage = {4500, 5500},
12308 },
12309
12310 {
12311 .vendor = "Winbond",
12312 .name = "W39L010",
12313 .bustype = BUS_PARALLEL,
12314 .manufacture_id = WINBOND_ID,
12315 .model_id = WINBOND_W39L010,
12316 .total_size = 128,
12317 .page_size = 4 * 1024,
12318 .feature_bits = FEATURE_EITHER_RESET,
12319 .tested = TEST_UNTESTED,
12320 .probe = probe_jedec,
12321 .probe_timing = 10,
12322 .block_erasers =
12323 {
12324 {
12325 .eraseblocks = { {4 * 1024, 32} },
12326 .block_erase = erase_block_jedec,
12327 }, {
12328 .eraseblocks = { {128 * 1024, 1} },
12329 .block_erase = erase_chip_block_jedec,
12330 }
12331 },
12332 .printlock = printlock_w39l010,
12333 .write = write_jedec_1,
12334 .read = read_memmapped,
12335 .voltage = {3000, 3600},
12336 },
12337
12338 {
12339 .vendor = "Winbond",
12340 .name = "W39L020",
12341 .bustype = BUS_PARALLEL,
12342 .manufacture_id = WINBOND_ID,
12343 .model_id = WINBOND_W39L020,
12344 .total_size = 256,
12345 .page_size = 4 * 1024,
12346 .feature_bits = FEATURE_EITHER_RESET,
12347 .tested = TEST_UNTESTED,
12348 .probe = probe_jedec,
12349 .probe_timing = 10,
12350 .block_erasers =
12351 {
12352 {
12353 .eraseblocks = { {4 * 1024, 64} },
12354 .block_erase = erase_block_jedec,
12355 }, {
12356 .eraseblocks = { {64 * 1024, 4} },
12357 .block_erase = erase_sector_jedec,
12358 }, {
12359 .eraseblocks = { {256 * 1024, 1} },
12360 .block_erase = erase_chip_block_jedec,
12361 }
12362 },
12363 .printlock = printlock_w39l020,
12364 .write = write_jedec_1,
12365 .read = read_memmapped,
12366 .voltage = {3000, 3600},
12367 },
12368
12369 {
12370 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000012371 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012372 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000012373 .manufacture_id = WINBOND_ID,
12374 .model_id = WINBOND_W39L040,
12375 .total_size = 512,
12376 .page_size = 64 * 1024,
12377 .feature_bits = FEATURE_EITHER_RESET,
12378 .tested = TEST_OK_PR,
12379 .probe = probe_jedec,
12380 .probe_timing = 10,
12381 .block_erasers =
12382 {
12383 {
12384 .eraseblocks = { {4 * 1024, 128} },
12385 .block_erase = erase_block_jedec,
12386 }, {
12387 .eraseblocks = { {64 * 1024, 8} },
12388 .block_erase = erase_sector_jedec,
12389 }, {
12390 .eraseblocks = { {512 * 1024, 1} },
12391 .block_erase = erase_chip_block_jedec,
12392 }
12393 },
12394 .printlock = printlock_w39l040,
12395 .write = write_jedec_1,
12396 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012397 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000012398 },
12399
12400 {
12401 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012402 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012403 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012404 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012405 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012406 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012407 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012408 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012409 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012410 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000012411 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012412 .block_erasers =
12413 {
12414 {
12415 .eraseblocks = { {64 * 1024, 8} },
12416 .block_erase = erase_sector_jedec,
12417 }, {
12418 .eraseblocks = { {512 * 1024, 1} },
12419 .block_erase = erase_chip_block_jedec,
12420 }
12421 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012422 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000012423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012425 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012426 },
12427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012428 {
12429 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012430 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012431 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012432 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012433 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012434 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012435 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012436 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012438 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000012439 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012440 .block_erasers =
12441 {
12442 {
12443 .eraseblocks = { {64 * 1024, 8} },
12444 .block_erase = erase_sector_jedec,
12445 }, {
12446 .eraseblocks = { {512 * 1024, 1} },
12447 .block_erase = erase_chip_block_jedec,
12448 }
12449 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012450 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000012451 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012453 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012454 },
12455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012456 {
12457 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012458 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012459 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012460 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012461 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012462 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012463 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012464 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012465 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000012466 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012467 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012468 .block_erasers =
12469 {
12470 {
12471 .eraseblocks = { {64 * 1024, 8} },
12472 .block_erase = erase_sector_jedec,
12473 }, {
12474 .eraseblocks = { {512 * 1024, 1} },
12475 .block_erase = erase_chip_block_jedec,
12476 }
12477 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000012478 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000012479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012481 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012482 },
12483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012484 {
12485 .vendor = "Winbond",
12486 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012487 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012488 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012489 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012490 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012491 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000012492 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012493 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012494 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000012495 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012496 .block_erasers =
12497 {
12498 {
12499 .eraseblocks = { {4 * 1024, 128} },
12500 .block_erase = erase_block_jedec,
12501 }, {
12502 .eraseblocks = { {64 * 1024, 8} },
12503 .block_erase = erase_sector_jedec,
12504 }, {
12505 .eraseblocks = { {512 * 1024, 1} },
12506 .block_erase = erase_chip_block_jedec,
12507 }
12508 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012509 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +000012510 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +000012511 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012513 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012514 },
12515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012516 {
12517 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012518 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012519 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012520 .manufacture_id = WINBOND_ID,
12521 .model_id = WINBOND_W39V040B,
12522 .total_size = 512,
12523 .page_size = 64 * 1024,
12524 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000012525 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012526 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012527 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012528 .block_erasers =
12529 {
12530 {
12531 .eraseblocks = { {64 * 1024, 8} },
12532 .block_erase = erase_sector_jedec,
12533 }, {
12534 .eraseblocks = { {512 * 1024, 1} },
12535 .block_erase = erase_chip_block_jedec,
12536 }
12537 },
12538 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +000012539 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012540 .write = write_jedec_1,
12541 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012542 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012543 },
12544
12545 {
12546 .vendor = "Winbond",
12547 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012548 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012549 .manufacture_id = WINBOND_ID,
12550 .model_id = WINBOND_W39V040C,
12551 .total_size = 512,
12552 .page_size = 64 * 1024,
12553 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000012554 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012555 .probe = probe_jedec,
12556 .probe_timing = 10,
12557 .block_erasers =
12558 {
12559 {
12560 .eraseblocks = { {64 * 1024, 8} },
12561 .block_erase = erase_sector_jedec,
12562 }, {
12563 .eraseblocks = { {512 * 1024, 1} },
12564 .block_erase = erase_chip_block_jedec,
12565 }
12566 },
12567 .printlock = printlock_w39v040fc,
12568 .write = write_jedec_1,
12569 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012570 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012571 },
12572
12573 {
12574 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012575 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012576 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012577 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012578 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012579 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012580 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012581 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000012582 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012583 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000012584 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012585 .block_erasers =
12586 {
12587 {
12588 .eraseblocks = { {64 * 1024, 16} },
12589 .block_erase = erase_sector_jedec,
12590 }, {
12591 .eraseblocks = { {1024 * 1024, 1} },
12592 .block_erase = erase_chip_block_jedec,
12593 }
12594 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012595 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000012596 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012597 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012598 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012599 },
12600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012601 {
12602 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000012603 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012604 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012605 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012606 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012607 .total_size = 256,
12608 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012609 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012610 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012611 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012612 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012613 .block_erasers =
12614 {
12615 {
12616 .eraseblocks = {
12617 {128 * 1024, 1},
12618 {96 * 1024, 1},
12619 {8 * 1024, 2},
12620 {16 * 1024, 1},
12621 },
12622 .block_erase = erase_sector_jedec,
12623 }, {
12624 .eraseblocks = { {256 * 1024, 1} },
12625 .block_erase = erase_chip_block_jedec,
12626 }
12627 },
Sean Nelson35727f72010-01-28 23:55:12 +000012628 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012630 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012631 },
12632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012633 {
12634 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012635 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012636 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012637 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012638 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012639 .total_size = 256,
12640 .page_size = 128,
12641 .feature_bits = FEATURE_EITHER_RESET,
12642 .tested = TEST_OK_PROBE,
12643 .probe = probe_jedec,
12644 .probe_timing = 10,
12645 .block_erasers =
12646 {
12647 {
12648 .eraseblocks = { {256 * 1024, 1} },
12649 .block_erase = erase_chip_block_jedec,
12650 }
12651 },
12652 .write = write_jedec_1,
12653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012654 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000012655 },
12656
12657 {
12658 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012659 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012660 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012661 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012662 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012663 .total_size = 256,
12664 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012665 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012666 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012667 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012668 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012669 .block_erasers =
12670 {
12671 {
12672 .eraseblocks = {
12673 {64 * 1024, 3},
12674 {32 * 1024, 1},
12675 {8 * 1024, 2},
12676 {16 * 1024, 1},
12677 },
12678 .block_erase = erase_sector_jedec,
12679 }, {
12680 .eraseblocks = { {256 * 1024, 1} },
12681 .block_erase = erase_chip_block_jedec,
12682 }
12683 },
Sean Nelson35727f72010-01-28 23:55:12 +000012684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012686 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012687 },
12688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012689 {
12690 .vendor = "Winbond",
12691 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012692 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012693 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012694 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012695 .total_size = 256,
12696 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012697 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000012698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012699 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012700 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012701 .block_erasers =
12702 {
12703 {
12704 .eraseblocks = {
12705 {64 * 1024, 3},
12706 {32 * 1024, 1},
12707 {8 * 1024, 2},
12708 {16 * 1024, 1},
12709 },
12710 .block_erase = erase_sector_jedec,
12711 }, {
12712 .eraseblocks = { {256 * 1024, 1} },
12713 .block_erase = erase_chip_block_jedec,
12714 }
12715 },
Sean Nelson35727f72010-01-28 23:55:12 +000012716 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012717 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012718 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012719 },
12720
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012721 {
12722 .vendor = "Winbond",
12723 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012724 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012725 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012726 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012727 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000012728 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012729 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000012730 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012731 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012732 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012733 .block_erasers =
12734 {
12735 {
12736 .eraseblocks = { {64 * 1024, 16}, },
12737 .block_erase = erase_sector_jedec,
12738 }, {
12739 .eraseblocks = { {1024 * 1024, 1} },
12740 .block_erase = erase_chip_block_jedec,
12741 }
12742 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012743 .printlock = printlock_w39v080fa,
12744 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +000012745 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012746 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012747 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012748 },
12749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012750 {
12751 .vendor = "Winbond",
12752 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012753 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012754 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000012755 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012756 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000012757 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012758 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012759 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012760 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012761 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000012762 .block_erasers =
12763 {
12764 {
12765 .eraseblocks = { {64 * 1024, 8}, },
12766 .block_erase = erase_sector_jedec,
12767 }, {
12768 .eraseblocks = { {512 * 1024, 1} },
12769 .block_erase = erase_chip_block_jedec,
12770 }
12771 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000012772 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000012773 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012774 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012775 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000012776 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012777
12778 {
12779 .vendor = "Unknown",
12780 .name = "SFDP-capable chip",
12781 .bustype = BUS_SPI,
12782 .manufacture_id = GENERIC_MANUF_ID,
12783 .model_id = SFDP_DEVICE_ID,
12784 /* We present our own "report this" text hence we do not
12785 * want the default "This flash part has status UNTESTED..."
12786 * text to be printed. */
12787 .tested = TEST_OK_PREW,
12788 .probe = probe_spi_sfdp,
12789 .unlock = spi_disable_blockprotect, /* is this safe? */
12790 .read = spi_chip_read,
12791 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000012792 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000012793 /* Everything below will be set by the probing function. */
12794 .write = NULL,
12795 .total_size = 0,
12796 .page_size = 0,
12797 .feature_bits = 0,
12798 .block_erasers = {},
12799 },
FENG yu ningff692fb2008-12-08 18:15:10 +000012800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012801 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000012802 .vendor = "Programmer",
12803 .name = "Opaque flash chip",
12804 .bustype = BUS_PROG,
12805 .manufacture_id = PROGMANUF_ID,
12806 .model_id = PROGDEV_ID,
12807 .total_size = 0,
12808 .page_size = 256,
12809 /* probe is assumed to work, rest will be filled in by probe */
12810 .tested = TEST_OK_PROBE,
12811 .probe = probe_opaque,
12812 /* eraseblock sizes will be set by the probing function */
12813 .block_erasers =
12814 {
12815 {
12816 .block_erase = erase_opaque,
12817 }
12818 },
12819 .write = write_opaque,
12820 .read = read_opaque,
12821 },
12822
12823 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012824 .vendor = "AMIC",
12825 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012826 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000012827 .manufacture_id = AMIC_ID,
12828 .model_id = GENERIC_DEVICE_ID,
12829 .total_size = 0,
12830 .page_size = 256,
12831 .tested = TEST_BAD_PREW,
12832 .probe = probe_spi_rdid4,
12833 .probe_timing = TIMING_ZERO,
12834 .write = NULL,
12835 .read = NULL,
12836 },
12837
12838 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012839 .vendor = "Atmel",
12840 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012841 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012842 .manufacture_id = ATMEL_ID,
12843 .model_id = GENERIC_DEVICE_ID,
12844 .total_size = 0,
12845 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012846 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012847 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012848 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012850 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012851 },
12852
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012853 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000012854 .vendor = "Eon",
12855 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012856 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012857 .manufacture_id = EON_ID_NOPREFIX,
12858 .model_id = GENERIC_DEVICE_ID,
12859 .total_size = 0,
12860 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012861 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012862 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012863 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012864 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012865 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012866 },
12867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012868 {
12869 .vendor = "Macronix",
12870 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012871 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012872 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012873 .model_id = GENERIC_DEVICE_ID,
12874 .total_size = 0,
12875 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012876 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012877 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012878 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012879 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012880 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012881 },
12882
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012883 {
12884 .vendor = "PMC",
12885 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012886 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012887 .manufacture_id = PMC_ID,
12888 .model_id = GENERIC_DEVICE_ID,
12889 .total_size = 0,
12890 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012891 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012892 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012893 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012894 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012895 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012896 },
12897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012898 {
12899 .vendor = "SST",
12900 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012901 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012902 .manufacture_id = SST_ID,
12903 .model_id = GENERIC_DEVICE_ID,
12904 .total_size = 0,
12905 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012906 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012907 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012908 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012909 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012910 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012911 },
12912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012913 {
12914 .vendor = "ST",
12915 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012916 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012917 .manufacture_id = ST_ID,
12918 .model_id = GENERIC_DEVICE_ID,
12919 .total_size = 0,
12920 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000012921 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012922 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012923 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012924 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012925 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000012926 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000012927
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012928 {
Sean Nelson118e1d62009-11-24 02:08:11 +000012929 .vendor = "Sanyo",
12930 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012931 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000012932 .manufacture_id = SANYO_ID,
12933 .model_id = GENERIC_DEVICE_ID,
12934 .total_size = 0,
12935 .page_size = 256,
12936 .tested = TEST_BAD_PREW,
12937 .probe = probe_spi_rdid,
12938 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000012939 .write = NULL,
12940 .read = NULL,
12941 },
12942
12943 {
Stefan Taunereb582572012-09-21 12:52:50 +000012944 .vendor = "Winbond",
12945 .name = "unknown Winbond (ex Nexcom) SPI chip",
12946 .bustype = BUS_SPI,
12947 .manufacture_id = WINBOND_NEX_ID,
12948 .model_id = GENERIC_DEVICE_ID,
12949 .total_size = 0,
12950 .page_size = 256,
12951 .tested = TEST_BAD_PREW,
12952 .probe = probe_spi_rdid,
12953 .probe_timing = TIMING_ZERO,
12954 .write = NULL,
12955 .read = NULL,
12956 },
12957
12958 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012959 .vendor = "Generic",
12960 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012961 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012962 .manufacture_id = GENERIC_MANUF_ID,
12963 .model_id = GENERIC_DEVICE_ID,
12964 .total_size = 0,
12965 .page_size = 256,
12966 .tested = TEST_BAD_PREW,
12967 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012968 .write = NULL,
12969 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000012970
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012971 {
12972 .vendor = "Generic",
12973 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012974 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012975 .manufacture_id = GENERIC_MANUF_ID,
12976 .model_id = GENERIC_DEVICE_ID,
12977 .total_size = 0,
12978 .page_size = 256,
12979 .tested = TEST_BAD_PREW,
12980 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000012981 .write = NULL,
12982 },
12983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012984 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +000012985};